تغیرات اولیه

This commit is contained in:
Mehdi104797 2025-04-28 08:28:39 +03:30
parent 0e61ff5f8d
commit ad470940f4
4 changed files with 95 additions and 105 deletions

View File

@ -1,7 +0,0 @@
{
"workbench.colorCustomizations": {
"activityBar.background": "#452236",
"titleBar.activeBackground": "#61304C",
"titleBar.activeForeground": "#FCF9FB"
}
}

View File

@ -1,40 +0,0 @@
<template>
<router-view :key="$route.fullPath"></router-view>
</template>
<script>
import { mapActions } from "vuex";
import { clearBodyClass } from "@utilities/utilities";
export default {
data() {
return {
userLastStateIsLoaded: true,
modalComponentName: "",
actionMode: 1,
};
},
methods: {
...mapActions(["setBodyClass", "getState"]),
},
beforeCreate() {
ApiService.init(process.env.VUE_APP_LIST_BASE_URL);
},
beforeMount() {
clearBodyClass();
},
mounted() {
this.setBodyClass(process.env.VUE_APP_TASK_SYSTEM);
document.title = process.env.VUE_APP_CHAT_PAGE_TITLE;
},
destroyed() {
clearBodyClass();
},
};
</script>
<style lang="scss">
@import "../../assets/task/scss/task";
</style>

View File

@ -1,12 +1,6 @@
<template>
<section>
<Navbar class="task-navbar"> </Navbar>
<the-sidebar2
:showUserAvatar="true"
:menu="menu"
@statusPage="statusPage"
></the-sidebar2>
<main
class="task-dashboard main-page__content"
:class="{ expanded: !isSidebarCollapsed }"
@ -78,29 +72,19 @@
</template>
<script>
// import commentMixin from "@mixins/commentMixin";
// import apis from "@apis/listApi";
import { mapGetters, mapMutations, mapActions } from "vuex";
// import { handleErrors } from "@utilities/utilities";
// import HttpService from "@services/httpService";
import menu from "@task/json/menu.json";
import taskApi from "@apis/taskApi";
import HttpService from "@services/httpService";
import { mapState, mapActions } from "pinia";
import { useCommonStore } from "~/stores/commonStore";
import { useSearchStore } from "@search/stores/searchStore";
import { useAuthStore } from "~/stores/authStore";
import taskApi from "@task/apis/taskApi";
export default {
beforeMount() {
// const headers = {
// "app-id": process.env.VUE_APP_APP_ID,
// // "lang": process.env.VUE_APP_LANG,
// // "app-version-code": process.env.VUE_APP_APP_VERSION,
// };
// this.httpService = new HttpService(this.repoMicroServiceName);
},
// mixins: [commentMixin],
beforeMount() {
this.httpService = new HttpService( this.taskMicroServiceName
);
},
mounted() {
this.httpService = useNuxtApp()["$http"];
this.TOGGLE_PANEL(false);
this.getvalueChartDonut();
},
@ -123,43 +107,49 @@ export default {
data() {
return {
PieOptions: {
radius: ["40%", "70%"],
radius: ['40%', '70%'],
selectedMode: "single",
},
// #region mehdi
nomber: 0,
statusPagHedear: 1,
dataPie: [],
httpService: {},
// #endregion
rerenderChatList: 1,
showListPanel: false,
menu: menu,
};
},
computed: {
...mapGetters([
...mapState(useAuthStore,[
"currentUser",
]),
...mapState(useCommonStore,[
"getPanelStatus",
"isSidebarCollapsed",
"sidebarListStatusGetter",
]),
...mapGetters("list", [
...mapState(useSearchStore, [
"listComponentNameGetter",
"selectedProjectGetter",
"listIdGetter",
"selectedItemGetter",
"listGetter",
]),
taskMicroServiceName() {
return process.env.VUE_APP_TASK;
},
// taskUrl() {
// return import.meta.env.VITE_TASK;
// },
},
methods: {
...mapMutations([
...mapActions(useCommonStore,[
"TOGGLE_PANEL",
"sidebarCollapsedSetter",
"SET_SIDEBAR_LIST_STATUS",
"checkPermissions", "storeState", "getState"
]),
...mapMutations("list", [
...mapActions(useSearchStore, [
"SET_LIST_COMPONENT_NAME",
"SET_SELECTED_ITEM",
"SET_SELECTED_PROJECT",
@ -167,7 +157,7 @@ export default {
"SET_LIST",
"SET_LIST_ID",
]),
...mapActions(["checkPermissions", "storeState", "getState"]),
selectedListBackTitle(name) {
if (name == "groups") return "دانشتو با بقیه به اشتراک بزار.";
if (name == "privates") return "به هر کی دوست داری، پیام بده.";
@ -212,11 +202,13 @@ export default {
// #endregion
getvalueChartDonut() {
let payload = {
user_id: this.$store.getters.currentUser.user_id,
user_id: this.currentUser.user_id,
};
let url = taskApi.taskChart.donut;
let url = taskUrl() + taskApi.taskChart.donut;
var vm = this;
this.httpService.postRequest(url, payload).then((res) => {
this.httpService
.postRequest(url, payload)
.then((res) => {
vm.dataPie = [];
res.data.forEach((element) => {
vm.dataPie.push({
@ -229,17 +221,12 @@ export default {
},
});
});
});
})
},
},
components: {
MainSection: () => import("@task/components/MainSection"),
RightSection: () => import("@task/components/RightSection"),
Navbar: () => import("@task/components/Navbar"),
Gantt: () => import("@components/charts/Gantt.vue"),
PieDonut: () => import("@components/charts/PieDonut.vue"),
},
};
</script>

50
pages/index.vue Normal file
View File

@ -0,0 +1,50 @@
<template>
<NuxtLayout name="default" :menu="menu">
<router-view></router-view>
</NuxtLayout>
</template>
<script>
import { clearBodyClass } from "@manuals/utilities";
import menu from "@chat/json/menu.json";
export default {
name: "taskRouterView",
setup() {
useHead({
title: import.meta.env.VITE_TASK_PAGE_TITLE,
meta: [{ name: "description", content: "My page description" }],
bodyAttrs: {
class: import.meta.env.VITE_TASK_SYSTEM,
},
bodyAttrs: {
class: import.meta.env.VITE_TASK_SYSTEM,
},
});
definePageMeta({
name: "taskRouterView",
layout: false,
});
},
data() {
return {
menu: menu,
};
},
beforeMount() {
clearBodyClass();
},
destroyed() {
clearBodyClass();
},
};
</script>
<style lang="scss">
@import "../assets/task/scss/task";
</style>