@ozdao/prometheus-framework 0.1.40 → 0.1.41
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/components/Sidebar/Sidebar.vue +8 -10
- package/src/modules/backoffice/components/admin/ProductEdit.vue +0 -2
- package/src/modules/products/components/sections/FilterProducts.vue +2 -0
- package/src/modules/products/components/sections/SortProducts.vue +0 -2
- package/src/modules/products/store/categories.js +9 -9
- package/src/modules/products/store/leftovers.js +9 -6
- package/src/modules/products/store/products.js +0 -2
package/package.json
CHANGED
@@ -1,13 +1,18 @@
|
|
1
1
|
<template>
|
2
|
-
<div
|
3
|
-
|
2
|
+
<div
|
3
|
+
:class="['sidebar t-black bg-grey', stateSidebar ? 'open' : '']"
|
4
|
+
>
|
5
|
+
<div
|
6
|
+
class="sidebar-content"
|
7
|
+
>
|
4
8
|
<slot></slot>
|
5
9
|
</div>
|
6
10
|
</div>
|
7
11
|
</template>
|
8
12
|
|
9
13
|
<script setup>
|
10
|
-
import { ref
|
14
|
+
import { ref } from 'vue';
|
15
|
+
|
11
16
|
import { useRoute, useRouter } from 'vue-router'
|
12
17
|
|
13
18
|
const router = useRouter()
|
@@ -16,7 +21,6 @@ const route = useRoute()
|
|
16
21
|
const isOpen = ref(false);
|
17
22
|
|
18
23
|
const props = defineProps(['stateSidebar'])
|
19
|
-
|
20
24
|
</script>
|
21
25
|
|
22
26
|
<style scoped>
|
@@ -31,12 +35,6 @@ const props = defineProps(['stateSidebar'])
|
|
31
35
|
z-index: 1000;
|
32
36
|
}
|
33
37
|
|
34
|
-
.active {
|
35
|
-
|
36
|
-
}
|
37
|
-
|
38
|
-
|
39
|
-
|
40
38
|
.sidebar.open {
|
41
39
|
left: 0;
|
42
40
|
}
|
@@ -61,7 +61,6 @@
|
|
61
61
|
<script setup>
|
62
62
|
// Import libs
|
63
63
|
import { reactive, computed, onMounted, toRefs } from 'vue'
|
64
|
-
import { useStore } from 'vuex'
|
65
64
|
import { useRoute, useRouter } from 'vue-router'
|
66
65
|
// Import components
|
67
66
|
import EditProductInfo from '@/components/sections/product/EditProductInfo.vue';
|
@@ -71,7 +70,6 @@
|
|
71
70
|
import EditModifications from '@/components/sections/product/EditModifications.vue';
|
72
71
|
|
73
72
|
// Accessing router and store
|
74
|
-
const store = useStore()
|
75
73
|
const route = useRoute()
|
76
74
|
const router = useRouter()
|
77
75
|
|
@@ -82,8 +82,10 @@
|
|
82
82
|
|
83
83
|
<script setup>
|
84
84
|
import { ref, watch } from 'vue'
|
85
|
+
|
85
86
|
import Spoiler from "@pf/src/components/Spoiler/Spoiler.vue"
|
86
87
|
import Checkbox from "@pf/src/components/Checkbox/Checkbox.vue"
|
88
|
+
|
87
89
|
import { useI18n } from 'vue-i18n'
|
88
90
|
|
89
91
|
import * as categories from '@pf/src/modules/products/store/categories';
|
@@ -1,12 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
import
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
const $axios = axios.create({
|
1
|
+
/////////////////////////////
|
2
|
+
// DEPENDENCIES
|
3
|
+
/////////////////////////////
|
4
|
+
import { reactive, watch, computed } from "vue";
|
5
|
+
import axios from 'axios';
|
6
|
+
// Globals
|
7
|
+
import { setError } from '@pf/src/modules/globals/store/globals'
|
8
|
+
// Setup Axios
|
9
|
+
const $axios = axios.create({baseURL: process.env.API_URL, withCredentials: true})
|
10
10
|
|
11
11
|
const state = reactive({
|
12
12
|
all: [],
|
@@ -1,9 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
/////////////////////////////
|
2
|
+
// DEPENDENCIES
|
3
|
+
/////////////////////////////
|
4
|
+
import { reactive, watch, computed } from "vue";
|
5
|
+
import axios from 'axios';
|
6
|
+
// Globals
|
7
|
+
import { setError } from '@pf/src/modules/globals/store/globals'
|
8
|
+
// Setup Axios
|
9
|
+
const $axios = axios.create({baseURL: process.env.API_URL, withCredentials: true})
|
7
10
|
|
8
11
|
const state = reactive({
|
9
12
|
all: [],
|