diff --git a/components/admin/TheSidebar.vue b/components/admin/TheSidebar.vue index 6e4b02e..b63c179 100644 --- a/components/admin/TheSidebar.vue +++ b/components/admin/TheSidebar.vue @@ -3,10 +3,8 @@ fixed :minimize="minimize" :show="show" - @update:show=" - (value) => - $store.commit('admin/set', ['sidebarShow', value]) - "> + @update:show="(value) => $store.commit('admin/set', ['sidebarShow', value])" + > پرتال خبری @@ -20,68 +18,86 @@ + font-icon="fal fa-home" + /> + :exact="false" + /> + :exact="false" + /> + :exact="false" + /> + :exact="false" + /> + :exact="false" + /> + :exact="false" + /> + :exact="false" + /> + font-icon="fal fa-box-ballot" + /> + + + font-icon="fal fa-browser" + > + :to="{ name: 'admin-meeting' }" + /> @@ -233,7 +264,8 @@ :to="{ name: 'admin-contents-details', params: { details: 'privacy' }, - }" /> + }" + /> @@ -251,31 +283,30 @@ :to="{ name: 'admin-contents-details', params: { details: 'faq' }, - }" /> + }" + /> + }" + /> + }" + /> + @click.native="$store.commit('admin/set', ['sidebarMinimize', !minimize])" + /> @@ -294,11 +325,7 @@ export default { "مشکلی هنگام خروج از سیسیتم بوجود امده لطفا دوباره تلاش کنید", }; }, - mixins: [ - unreadNewsMessages, - unreadContactMessages, - unreadMeetingReq, - ], + mixins: [unreadNewsMessages, unreadContactMessages, unreadMeetingReq], computed: { show() { return this.$store.state.admin.sidebarShow; @@ -307,12 +334,10 @@ export default { return this.$store.state.admin.sidebarMinimize; }, unreadNewsMessages() { - return this.$store.state.admin - .unreadNewsMessagesCount; + return this.$store.state.admin.unreadNewsMessagesCount; }, unreadContactMessages() { - return this.$store.state.admin - .unreadContactMessagesCount; + return this.$store.state.admin.unreadContactMessagesCount; }, unreadMeetingReq() { return this.$store.state.admin.unreadMeetingReqCount; @@ -321,13 +346,9 @@ export default { methods: { hasPermission(permission) { if (this.$auth.loggedIn) { - if ( - this.$auth.user.permissions.includes("superAdmin") - ) { + if (this.$auth.user.permissions.includes("superAdmin")) { return true; - } else if ( - this.$auth.user.permissions.includes(permission) - ) { + } else if (this.$auth.user.permissions.includes(permission)) { return true; } else { return false; diff --git a/nuxt.config.js b/nuxt.config.js index e69bf10..130ad3f 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -1,9 +1,8 @@ const webpack = require("webpack"); - + const serverPort = 3756; export default { - // Global page headers: https://go.nuxtjs.dev/config-head head: { title: "پورتال خبری استانداری", @@ -39,23 +38,32 @@ export default { type: "text/css", href: "/js/flipBook/flipbook.style.css", }, - { + { rel: "stylesheet", type: "text/css", href: "/js/flipBook/font-awesome.css", }, - { rel: 'stylesheet', - href: 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js' } + { + rel: "stylesheet", + href: "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js", + }, ], - script: [ { src: "https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.js" }, - { src: "https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js" }, + { + src: "https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js", + }, { src: "/js/flipBook/flipbook.min.js" }, { src: "/js/lightBox/simple-lightbox.min.js" }, - { src: 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js', defer: true }, - { src: 'https://cdnjs.cloudflare.com/ajax/libs/jquery-flipbook/1.0.5/jquery.flipbook.min.js', defer: true } + { + src: "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js", + defer: true, + }, + { + src: "https://cdnjs.cloudflare.com/ajax/libs/jquery-flipbook/1.0.5/jquery.flipbook.min.js", + defer: true, + }, ], }, loading: "~/components/pageLoad.vue", @@ -68,7 +76,6 @@ export default { "~/assets/scss/main.scss", ], - // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins plugins: [ "@/plugins/element-ui", @@ -85,10 +92,7 @@ export default { ], // Auto import components: https://go.nuxtjs.dev/config-components - components: [ - "~/components/", - { path: "~/components/admin/", prefix: "" }, - ], + components: ["~/components/", { path: "~/components/admin/", prefix: "" }], // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules buildModules: [], diff --git a/pages/admin/Login.vue b/pages/admin/Login.vue index ea20db5..77d744d 100644 --- a/pages/admin/Login.vue +++ b/pages/admin/Login.vue @@ -4,23 +4,23 @@ - +

پنل مدیریت

- + - - - - - - ارسال کد + + + ارسال کد - + -
- - - +

پنل مدیریت

- - + :class="validation.username ? 'err' : null" + placeholder="کد ورود را وارد کنید" + :description=" + validation.username ? validation.username.msg : null + " + autocomplete="username email" + v-model="otp" + > + + - ارسال کد + ورود
- - -
@@ -96,71 +94,111 @@