diff --git a/.gitignore b/.gitignore
index 198ade7..94c91d0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,6 +4,8 @@
/vendor
/modules
/development/
+/.idea
+/.vscode
jsconfig.json
.env
.phpunit.result.cache
diff --git a/.idea/symfony2.xml b/.idea/symfony2.xml
new file mode 100644
index 0000000..b5fbe71
--- /dev/null
+++ b/.idea/symfony2.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/js/Global/components/Drawer/SideBar.vue b/resources/js/Global/components/Drawer/SideBar.vue
index 64528f7..f7fc842 100644
--- a/resources/js/Global/components/Drawer/SideBar.vue
+++ b/resources/js/Global/components/Drawer/SideBar.vue
@@ -43,7 +43,7 @@
-
+
@@ -57,7 +57,6 @@ import Tile from "@Global/components/Drawer/Tile";
import Notifications from "@Global/components/Drawer/Notifications";
import Routes from "@Global/utils/common/routes";
import { mapActions, mapGetters } from "vuex";
-// import { getTime } from "@Global/utils/date/time";
export default {
data() {
return {
@@ -88,43 +87,43 @@ export default {
{
titleEn: " Blog Management ",
titleFa: " مدیریت خبرنامه ",
+ moduleName: "blog",
icon: "rss",
- permissionClass: "SMS::manage",
href: '/blog',
tileClass: 'orange-theme',
},
{
titleEn: " Portfolio Management ",
titleFa: " مدیریت نمونه کارها ",
+ moduleName: "portfolio",
icon: "art-gallery",
href: '/portfolio',
},
- {
- titleEn: " SMS Management ",
- titleFa: " مدیریت پیام های کوتاه ",
- icon: "comment-alt",
- permissionClass: "SMS::manage",
- href: '/sms/manage',
- }
+ // {
+ // titleEn: " SMS Management ",
+ // titleFa: " مدیریت پیام های کوتاه ",
+ // icon: "comment-alt",
+ // permissionClass: "SMS::manage",
+ // href: '/sms/manage',
+ // }
],
user: { name: "" },
mainHref: Routes.main(),
};
},
- mounted() {
- let self = this;
- },
- components: {
+ components: {
"wm-list-tile": Tile,
"wm-notifications": Notifications
},
- computed: {
+ methods: {
+ ...mapActions("auth", ["logout"]),
+ },
+ computed: {
...mapGetters("auth", ["getAuthUser"]),
...mapGetters("common", ["getCurrentTime"]),
- },
- methods: {
- ...mapActions("auth", ["logout"]),
- }
+ ...mapGetters("rolePermission", ["getModules"]),
+
+ }
};
diff --git a/resources/js/Global/components/Misc/NoItems.vue b/resources/js/Global/components/Misc/NoItems.vue
index d737943..73ca0d7 100644
--- a/resources/js/Global/components/Misc/NoItems.vue
+++ b/resources/js/Global/components/Misc/NoItems.vue
@@ -3,9 +3,11 @@
{{ textFa }}
{{ textEn }}
-
- WMi-{{btnIcon}} {{ btnText }}
-
+
+
+ WMi-{{btnIcon}} {{ btnText }}
+
+
@@ -19,7 +21,9 @@ export default {
themeColor: { default: "black" },
btnText: { default: "ثبت اولین آیتم" },
btnIcon: { default: "cancel" },
-
+ modal: { default: null },
+ routeName: { default: null },
+ hasBtn: { default: true },
},
};