diff --git a/src/Helpers/ApiResponse.php b/src/Helpers/ApiResponse.php index e8db1c01d..009fcc40f 100644 --- a/src/Helpers/ApiResponse.php +++ b/src/Helpers/ApiResponse.php @@ -4,8 +4,8 @@ use Exception; use Illuminate\Database\QueryException; +use Illuminate\Http\Request; use Illuminate\Support\Facades\Log; -use Illuminate\Support\Facades\Storage; use Illuminate\Validation\ValidationException; use Uasoft\Badaso\Exceptions\SingleException; @@ -13,13 +13,11 @@ class ApiResponse { private static function send($data, $http_status = 200) { - if (is_object($data)) { - $data->meta = ['media_base_url' => Storage::url('/')]; - } else { - $data['meta']['media_base_url'] = Storage::url('/'); - } - + $request = new Request; $response = CaseConvert::camel($data); + if ($request->method() === 'GET') { + $response = HandleFile::handle($response); + } return response()->json($response, $http_status); } diff --git a/src/Helpers/HandleFile.php b/src/Helpers/HandleFile.php new file mode 100644 index 000000000..40dd75681 --- /dev/null +++ b/src/Helpers/HandleFile.php @@ -0,0 +1,67 @@ + $value) { + if (is_array($value)) { + $objects[$key] = self::handle($value); + } else { + $objects[$key] = self::handleUrl($value); + } + } + + return $objects; + } + + protected static function handleUrl($val) + { + if (stristr($val, 'http://') ?: stristr($val, 'https://')) { + return $val; + } + + if (preg_match('/^.*\.(jpg|jpeg|gif|svg|ico|tif|tiff|webp|heif|png|bmp)$/i', $val)) { + return Storage::url($val); + } + + if (Str::contains($val, config('lfm.folder_categories.file.folder_name').'/')) { + return str_replace( + config('lfm.folder_categories.file.folder_name').'/', + Storage::url('/').config('lfm.folder_categories.file.folder_name').'/', + $val + ); + } + + return $val; + } + + public static function normalize($val) + { + $objects = []; + foreach ($val as $key => $value) { + if (is_array($value)) { + $objects[$key] = self::normalize($value); + } else { + $objects[$key] = self::removeBaseUrl($value); + } + } + + return $objects; + } + + protected static function removeBaseUrl($val) + { + if (Str::contains($val, Storage::url('/'))) { + return str_replace(Storage::url('/'), '', $val); + } + + return $val; + } +} diff --git a/src/Images/badaso-images/thumbs/auth-bg.jpg b/src/Images/badaso-images/thumbs/auth-bg.jpg new file mode 100644 index 000000000..ebf8ddbff Binary files /dev/null and b/src/Images/badaso-images/thumbs/auth-bg.jpg differ diff --git a/src/Images/badaso-images/thumbs/badaso.png b/src/Images/badaso-images/thumbs/badaso.png new file mode 100644 index 000000000..d09d1f527 Binary files /dev/null and b/src/Images/badaso-images/thumbs/badaso.png differ diff --git a/src/Images/badaso-images/thumbs/default-user.png b/src/Images/badaso-images/thumbs/default-user.png new file mode 100644 index 000000000..f709e04a8 Binary files /dev/null and b/src/Images/badaso-images/thumbs/default-user.png differ diff --git a/src/Images/badaso-images/thumbs/favicon.png b/src/Images/badaso-images/thumbs/favicon.png new file mode 100644 index 000000000..f804a11e9 Binary files /dev/null and b/src/Images/badaso-images/thumbs/favicon.png differ diff --git a/src/Images/badaso-images/thumbs/logo-144px.png b/src/Images/badaso-images/thumbs/logo-144px.png new file mode 100644 index 000000000..477abf2ca Binary files /dev/null and b/src/Images/badaso-images/thumbs/logo-144px.png differ diff --git a/src/Images/badaso-images/thumbs/logo-192px.png b/src/Images/badaso-images/thumbs/logo-192px.png new file mode 100644 index 000000000..74d3c72aa Binary files /dev/null and b/src/Images/badaso-images/thumbs/logo-192px.png differ diff --git a/src/Images/badaso-images/thumbs/logo-512px.png b/src/Images/badaso-images/thumbs/logo-512px.png new file mode 100644 index 000000000..f804a11e9 Binary files /dev/null and b/src/Images/badaso-images/thumbs/logo-512px.png differ diff --git a/src/Images/badaso-images/thumbs/logo.png b/src/Images/badaso-images/thumbs/logo.png new file mode 100644 index 000000000..f804a11e9 Binary files /dev/null and b/src/Images/badaso-images/thumbs/logo.png differ diff --git a/src/Images/badaso-images/thumbs/logo.webp b/src/Images/badaso-images/thumbs/logo.webp new file mode 100644 index 000000000..150b1724c Binary files /dev/null and b/src/Images/badaso-images/thumbs/logo.webp differ diff --git a/src/Images/badaso-images/thumbs/maintenance.png b/src/Images/badaso-images/thumbs/maintenance.png new file mode 100644 index 000000000..ee0a420ba Binary files /dev/null and b/src/Images/badaso-images/thumbs/maintenance.png differ diff --git a/src/Middleware/ApiRequest.php b/src/Middleware/ApiRequest.php index aaedec46b..892279cac 100644 --- a/src/Middleware/ApiRequest.php +++ b/src/Middleware/ApiRequest.php @@ -6,6 +6,7 @@ use Illuminate\Contracts\Foundation\Application; use Uasoft\Badaso\Helpers\ApiResponse; use Uasoft\Badaso\Helpers\CaseConvert; +use Uasoft\Badaso\Helpers\HandleFile; use Uasoft\Badaso\Models\Configuration; use Uasoft\Badaso\Models\DataType; @@ -52,6 +53,7 @@ public function handle($request, Closure $next) app()->setLocale($lang); $request->merge(CaseConvert::snake($request->all())); + $request->merge(HandleFile::normalize($request->all())); if ($this->isUnderMaintenance() || $this->app->isDownForMaintenance() || $this->isCrudGeneratedMaintenance($request)) { if ($this->isAdministrator()) { diff --git a/src/Seeder/Configurations/ConfigurationsSeeder.php b/src/Seeder/Configurations/ConfigurationsSeeder.php index 71071167c..bc25fd7f6 100644 --- a/src/Seeder/Configurations/ConfigurationsSeeder.php +++ b/src/Seeder/Configurations/ConfigurationsSeeder.php @@ -128,6 +128,17 @@ public function run() 'group' => 'adminPanel', 'can_delete' => 0, ], + 10 => [ + 'id' => 11, + 'key' => 'maintenanceImage', + 'display_name' => 'Image for maintenance page', + 'value' => 'files/shares/maintenance.png', + 'details' => '{"type":"shares-only"}', + 'type' => 'upload_image', + 'order' => 10, + 'group' => 'adminPanel', + 'can_delete' => 0, + ], ]; foreach ($settings as $key => $value) { diff --git a/src/resources/js/assets/scss/module/_upload-file-multiple.scss b/src/resources/js/assets/scss/module/_upload-file-multiple.scss index bc6e10ea1..ad9258a6b 100644 --- a/src/resources/js/assets/scss/module/_upload-file-multiple.scss +++ b/src/resources/js/assets/scss/module/_upload-file-multiple.scss @@ -120,6 +120,12 @@ margin-top: 10px; overflow: hidden; position: relative; + + &:hover { + & > .badaso-upload-file-multiple__remove-button { + opacity: 1; + } + } } &__preview-text { diff --git a/src/resources/js/assets/scss/module/_upload-file.scss b/src/resources/js/assets/scss/module/_upload-file.scss index cbd7a59c8..443b610c9 100644 --- a/src/resources/js/assets/scss/module/_upload-file.scss +++ b/src/resources/js/assets/scss/module/_upload-file.scss @@ -120,6 +120,12 @@ margin-top: 10px; overflow: hidden; position: relative; + + &:hover { + & > .badaso-upload-file__remove-button { + opacity: 1; + } + } } &__preview-text { diff --git a/src/resources/js/assets/scss/module/_upload-image-multiple.scss b/src/resources/js/assets/scss/module/_upload-image-multiple.scss index 8387052f9..09875bbe9 100644 --- a/src/resources/js/assets/scss/module/_upload-image-multiple.scss +++ b/src/resources/js/assets/scss/module/_upload-image-multiple.scss @@ -131,6 +131,12 @@ width: auto; margin: 0 auto; } + + &:hover { + & > .badaso-upload-image-multiple__remove-button { + opacity: 1; + } + } } &__preview-image { diff --git a/src/resources/js/assets/scss/module/_upload-image.scss b/src/resources/js/assets/scss/module/_upload-image.scss index 4beed7fee..f64da5f33 100644 --- a/src/resources/js/assets/scss/module/_upload-image.scss +++ b/src/resources/js/assets/scss/module/_upload-image.scss @@ -14,6 +14,14 @@ } } + &__menu { + &--disabled { + opacity: 0.25; + pointer-events: none; + cursor: not-allowed; + } + } + &__popup { &--bottom-bar { grid-column: 1/3; @@ -131,6 +139,12 @@ width: auto; margin: 0 auto; } + + &:hover { + & > .badaso-upload-image__remove-button { + opacity: 1; + } + } } &__preview-image { diff --git a/src/resources/js/components/BadasoLogoDisplay.vue b/src/resources/js/components/BadasoLogoDisplay.vue index 799318811..09916872d 100644 --- a/src/resources/js/components/BadasoLogoDisplay.vue +++ b/src/resources/js/components/BadasoLogoDisplay.vue @@ -17,12 +17,7 @@ export default { adminPanelLogo: { get() { let config = this.$store.getters["badaso/getConfig"]; - let meta = this.$store.getters["badaso/getMeta"]; - if (config.adminPanelLogo && config.adminPanelLogo != "") { - return meta.mediaBaseUrl + config.adminPanelLogo; - } else { - return null; - } + return config.adminPanelLogo; }, }, adminPanelHeaderColor: { diff --git a/src/resources/js/components/BadasoUploadFile.vue b/src/resources/js/components/BadasoUploadFile.vue index fc2646c83..2e4ce6f99 100644 --- a/src/resources/js/components/BadasoUploadFile.vue +++ b/src/resources/js/components/BadasoUploadFile.vue @@ -179,11 +179,13 @@ export default { showOverlay() { this.show = true document.body.style.setProperty('position', 'fixed') + document.body.style.setProperty("width", "100%"); this.getFiles() }, closeOverlay() { this.show = false document.body.style.removeProperty('position') + document.body.style.removeProperty("width"); }, onFilePicked(e) { const files = e.target.files; @@ -234,7 +236,7 @@ export default { } }, emitInput() { - var url = this.files.items[this.activeFile].url.replace(this.$store.state.badaso.meta.mediaBaseUrl, '') + let url = this.files.items[this.activeFile].url this.$emit('input', url) this.closeOverlay() }, diff --git a/src/resources/js/components/BadasoUploadFileMultiple.vue b/src/resources/js/components/BadasoUploadFileMultiple.vue index f24ef97f3..deddf99c6 100644 --- a/src/resources/js/components/BadasoUploadFileMultiple.vue +++ b/src/resources/js/components/BadasoUploadFileMultiple.vue @@ -184,11 +184,13 @@ export default { showOverlay() { this.show = true document.body.style.setProperty('position', 'fixed') + document.body.style.setProperty("width", "100%"); this.getFiles() }, closeOverlay() { this.show = false document.body.style.removeProperty('position') + document.body.style.removeProperty("width"); }, onFilePicked(e) { let files = e.target.files; @@ -235,7 +237,7 @@ export default { emitInput() { let url = [] this.activeFile.forEach(element => { - url.push(this.files.items[element].url.replace(this.$store.state.badaso.meta.mediaBaseUrl, '')) + url.push(this.files.items[element].url) }); this.filesName = url.join(', ') this.$emit('input', url) diff --git a/src/resources/js/components/BadasoUploadImage.vue b/src/resources/js/components/BadasoUploadImage.vue index d92df96d4..b05232c2b 100644 --- a/src/resources/js/components/BadasoUploadImage.vue +++ b/src/resources/js/components/BadasoUploadImage.vue @@ -5,7 +5,7 @@
- +
@@ -21,7 +21,7 @@
@@ -187,12 +187,14 @@ export default { showOverlay() { this.show = true document.body.style.setProperty('position', 'fixed') + document.body.style.setProperty("width", "100%"); this.getImages() }, closeOverlay() { this.show = false this.activeImage = null - document.body.style.setProperty('position', 'relative') + document.body.style.removeProperty('position') + document.body.style.removeProperty("width"); }, onFilePicked(e) { this.$refs.image.tabindex = -1; @@ -224,13 +226,6 @@ export default { if (typeof str === "string" || str instanceof String) return true; else return false; }, - getImageSrc(value) { - if (this.$helper.isValidHttpUrl(value)) { - return value - } - - return this.$store.state.badaso.meta.mediaBaseUrl + value - }, getImages() { this.images.items = [] if (this.getSelectedFolder) { @@ -251,7 +246,7 @@ export default { }, emitInput() { if (this.selected !== 'url') { - var url = this.images.items[this.activeImage].url.replace(this.$store.state.badaso.meta.mediaBaseUrl, '') + var url = this.images.items[this.activeImage].url this.$emit('input', url) } else { this.$emit('input', this.inputByUrl) diff --git a/src/resources/js/components/BadasoUploadImageMultiple.vue b/src/resources/js/components/BadasoUploadImageMultiple.vue index 1733a875a..d1c12da28 100644 --- a/src/resources/js/components/BadasoUploadImageMultiple.vue +++ b/src/resources/js/components/BadasoUploadImageMultiple.vue @@ -5,7 +5,7 @@
- +
@@ -21,7 +21,7 @@
@@ -172,11 +172,13 @@ export default { showOverlay() { this.show = true document.body.style.setProperty('position', 'fixed') + document.body.style.setProperty("width", "100%"); this.getImages() }, closeOverlay() { this.show = false document.body.style.removeProperty('position') + document.body.style.removeProperty("width"); }, onFilePicked(e) { let files = e.target.files; @@ -200,13 +202,6 @@ export default { console.error(error); }) }, - getImageSrc(value) { - if (this.$helper.isValidHttpUrl(value)) { - return value - } - - return this.$store.state.badaso.meta.mediaBaseUrl + value - }, getImages() { this.images.items = [] if (this.getSelectedFolder) { @@ -229,7 +224,7 @@ export default { if (this.selected !== 'url') { let url = [] this.activeImage.forEach(element => { - url.push(this.images.items[element].url.replace(this.$store.state.badaso.meta.mediaBaseUrl, '')) + url.push(this.images.items[element].url) }); this.imagesName = url.join(', ') this.$emit('input', url) diff --git a/src/resources/js/layout/admin/Container.vue b/src/resources/js/layout/admin/Container.vue index aa93d7b65..f323ec31f 100644 --- a/src/resources/js/layout/admin/Container.vue +++ b/src/resources/js/layout/admin/Container.vue @@ -55,8 +55,7 @@ export default { adminPanelLogo: { get() { let config = this.$store.getters["badaso/getConfig"]; - let url = this.$store.state.badaso.meta.mediaBaseUrl + config.adminPanelLogo - return url ? url : '/storage/' + config.adminPanelLogo; + return config.adminPanelLogo; }, }, adminPanelHeaderColor: { diff --git a/src/resources/js/layout/admin/sidebar/SideBar.vue b/src/resources/js/layout/admin/sidebar/SideBar.vue index 962982a38..a7e3b49fa 100644 --- a/src/resources/js/layout/admin/sidebar/SideBar.vue +++ b/src/resources/js/layout/admin/sidebar/SideBar.vue @@ -284,9 +284,7 @@ export default { }, getAvatar() { let user = this.$store.getters["badaso/getUser"]; - return user.avatar - ? this.$store.state.badaso.meta.mediaBaseUrl + user.avatar - : '/storage/files/shares/default-user.png'; + return user.avatar } }, methods: { diff --git a/src/resources/js/layout/auth/Container.vue b/src/resources/js/layout/auth/Container.vue index ecc4513ac..8261acd93 100644 --- a/src/resources/js/layout/auth/Container.vue +++ b/src/resources/js/layout/auth/Container.vue @@ -13,8 +13,7 @@ export default { computed: { authBackgroundImage() { let config = this.$store.getters["badaso/getConfig"]; - let url = this.$store.getters["badaso/getMeta"]; - return config.authBackgroundImage ? url.mediaBaseUrl + config.authBackgroundImage : url.mediaBaseUrl + "files/shares/auth-bg.jpg"; + return config.authBackgroundImage; } } }; diff --git a/src/resources/js/pages/activity-log/read.vue b/src/resources/js/pages/activity-log/read.vue index 0a2262af3..35b6a97d2 100644 --- a/src/resources/js/pages/activity-log/read.vue +++ b/src/resources/js/pages/activity-log/read.vue @@ -57,7 +57,7 @@ @@ -81,7 +81,7 @@ diff --git a/src/resources/js/pages/crud-generated/add.vue b/src/resources/js/pages/crud-generated/add.vue index 4dfd52da0..268adc8f3 100644 --- a/src/resources/js/pages/crud-generated/add.vue +++ b/src/resources/js/pages/crud-generated/add.vue @@ -324,7 +324,7 @@
- Maintenance Icon + Maintenance Icon

We are under
maintenance

@@ -489,6 +489,10 @@ export default { base64PathName() { return window.btoa(location.pathname); }, + maintenanceImg() { + let config = this.$store.getters["badaso/getConfig"]; + return config.maintenanceImage; + } }, }; diff --git a/src/resources/js/pages/crud-generated/browse-bin.vue b/src/resources/js/pages/crud-generated/browse-bin.vue index 83bef2ade..2e3101b40 100644 --- a/src/resources/js/pages/crud-generated/browse-bin.vue +++ b/src/resources/js/pages/crud-generated/browse-bin.vue @@ -116,8 +116,7 @@ ({ - meta: {}, errors: {}, data: {}, descriptionItems: [10, 50, 100], @@ -818,7 +815,6 @@ export default { showSoftDelete: this.isShowDataRecycle, }) .then((response) => { - this.meta = response.meta; this.$closeLoader(); this.data = response.data.entities; this.records = response.data.entities.data; diff --git a/src/resources/js/pages/crud-generated/browse.vue b/src/resources/js/pages/crud-generated/browse.vue index f7ea0e8b5..e850ec3c9 100644 --- a/src/resources/js/pages/crud-generated/browse.vue +++ b/src/resources/js/pages/crud-generated/browse.vue @@ -162,8 +162,7 @@
- Maintenance Icon + Maintenance Icon

We are under
maintenance

@@ -720,7 +718,6 @@ export default { components: { downloadExcel }, name: "CrudGeneratedBrowse", data: () => ({ - meta: {}, errors: {}, data: {}, descriptionItems: [10, 50, 100], @@ -821,7 +818,6 @@ export default { orderDirection: this.$caseConvert.snake(this.orderDirection), }) .then((response) => { - this.meta = response.meta; this.$closeLoader(); this.data = response.data.entities; this.records = response.data.entities.data; diff --git a/src/resources/js/pages/crud-generated/edit.vue b/src/resources/js/pages/crud-generated/edit.vue index eb41ab1a7..dcb33e522 100644 --- a/src/resources/js/pages/crud-generated/edit.vue +++ b/src/resources/js/pages/crud-generated/edit.vue @@ -320,7 +320,7 @@
- Maintenance Icon + Maintenance Icon

We are under
maintenance

@@ -519,6 +519,10 @@ export default { base64PathName() { return window.btoa(location.pathname); }, + maintenanceImg() { + let config = this.$store.getters["badaso/getConfig"]; + return config.maintenanceImage; + } }, }; diff --git a/src/resources/js/pages/crud-generated/read.vue b/src/resources/js/pages/crud-generated/read.vue index 99a65f62d..12b5d1a16 100644 --- a/src/resources/js/pages/crud-generated/read.vue +++ b/src/resources/js/pages/crud-generated/read.vue @@ -41,7 +41,7 @@ @@ -54,7 +54,7 @@ record[$caseConvert.stringSnakeToCamel(dataRow.field)] )" :key="indexImage" - :src="meta.mediaBaseUrl + image" + :src="image" width="100%" alt="" class="crud-generated__item--image" @@ -187,7 +187,7 @@
- Maintenance Icon + Maintenance Icon

We are under
maintenance

@@ -203,7 +203,6 @@ export default { name: "CrudGeneratedRead", components: {}, data: () => ({ - meta: {}, dataType: {}, record: {}, isMaintenance: false @@ -225,7 +224,6 @@ export default { id: this.$route.params.id, }) .then((response) => { - this.meta = response.meta this.$closeLoader(); this.dataType = response.data.dataType; this.record = response.data.entities; diff --git a/src/resources/js/pages/crud-generated/sort.vue b/src/resources/js/pages/crud-generated/sort.vue index ef9e799b6..6b8f8bd8c 100644 --- a/src/resources/js/pages/crud-generated/sort.vue +++ b/src/resources/js/pages/crud-generated/sort.vue @@ -73,7 +73,7 @@
- Maintenance Icon + Maintenance Icon

We are under
maintenance

@@ -100,6 +100,12 @@ export default { mounted() { this.getAllEntityData(); }, + computed: { + maintenanceImg() { + let config = this.$store.getters["badaso/getConfig"]; + return config.maintenanceImage; + } + }, methods: { getAllEntityData() { this.$openLoader(); diff --git a/src/resources/js/pages/maintenance.vue b/src/resources/js/pages/maintenance.vue index 565b4541c..7487a6ce7 100644 --- a/src/resources/js/pages/maintenance.vue +++ b/src/resources/js/pages/maintenance.vue @@ -1,6 +1,6 @@ @@ -8,5 +8,11 @@ diff --git a/src/resources/js/pages/user-management/read.vue b/src/resources/js/pages/user-management/read.vue index c99a74377..e5dec1742 100644 --- a/src/resources/js/pages/user-management/read.vue +++ b/src/resources/js/pages/user-management/read.vue @@ -33,7 +33,7 @@ {{ $t("user.detail.avatar") }} @@ -73,7 +73,6 @@ export default { components: {}, data: () => ({ user: {}, - meta: {}, }), mounted() { this.getUserDetail(); @@ -86,7 +85,6 @@ export default { id: this.$route.params.id, }) .then((response) => { - this.meta = response.meta this.$closeLoader(); this.user = response.data.user; this.user.additionalInfo = JSON.parse(this.user.additionalInfo); diff --git a/src/resources/js/router/admin/configuration-router.js b/src/resources/js/router/admin/configuration-router.js index c30f0ff8a..cf71d7866 100644 --- a/src/resources/js/router/admin/configuration-router.js +++ b/src/resources/js/router/admin/configuration-router.js @@ -231,7 +231,7 @@ export default [ name: "SiteManagementBrowse", component: Pages, meta: { - title: "Site Configuration", + title: "Configuration", }, }, { @@ -239,7 +239,7 @@ export default [ name: "SiteManagementAdd", component: Pages, meta: { - title: "Add Site Configuration", + title: "Add Configuration", }, }, { diff --git a/src/resources/js/router/router.js b/src/resources/js/router/router.js index a0cd6adef..137a38246 100644 --- a/src/resources/js/router/router.js +++ b/src/resources/js/router/router.js @@ -209,7 +209,6 @@ router.beforeEach((to, from, next) => { path: to.path }) .then((res) => { - store.commit('badaso/SET_META', res.meta) if (res.data.maintenance) { next({ name: "Maintenance" }); } else { diff --git a/src/resources/js/store/modules/badaso.js b/src/resources/js/store/modules/badaso.js index 0ee2c695f..a22c7b64a 100644 --- a/src/resources/js/store/modules/badaso.js +++ b/src/resources/js/store/modules/badaso.js @@ -30,7 +30,6 @@ export default { }, isOnline: false, countUnreadMessage: 0, - meta: {} }, mutations: { //This is for Sidbar trigger in mobile @@ -105,7 +104,6 @@ export default { }); } state.menu = menus; - state.meta = res.meta }) .catch((err) => {}); }, @@ -142,7 +140,6 @@ export default { menu: res.data.menu, menuItems: menuItems, }; - state.meta = res.meta }) .catch((err) => {}); }, @@ -151,7 +148,6 @@ export default { .component() .then((res) => { state.componentList = res.data.components; - state.meta = res.meta }) .catch((err) => {}); }, @@ -160,7 +156,6 @@ export default { .configurationGroups() .then((res) => { state.groupList = res.data.groups; - state.meta = res.meta }) .catch((err) => {}); }, @@ -169,7 +164,6 @@ export default { .applyable() .then((res) => { state.config = res.data.configuration; - state.meta = res.meta }) .catch((err) => {}); }, @@ -178,7 +172,6 @@ export default { .user() .then((res) => { state.user = res.data.user; - state.meta = res.meta }) .catch((err) => {}); }, @@ -198,9 +191,6 @@ export default { SET_GLOBAL_STATE(state, { key, value }) { state[key] = value; }, - SET_META(state, payload) { - state.meta = payload - } }, actions: {}, getters: { @@ -219,9 +209,6 @@ export default { getConfig: (state) => { return state.config; }, - getMeta: (state) => { - return state.meta; - }, getUser: (state) => { return state.user; },