@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ozdao/prometheus-framework",
3
- "version": "0.1.40",
3
+ "version": "0.1.41",
4
4
  "description": "Web3 Framework focused on user experience and ease of development.",
5
5
  "author": "OZ DAO <hello@ozdao.dev>",
6
6
  "license": "GPL-3.0-or-later",
@@ -1,13 +1,18 @@
1
1
  <template>
2
- <div :class="['sidebar t-black bg-grey', stateSidebar ? 'open' : '']">
3
- <div class="sidebar-content">
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, } from 'vue';
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';
@@ -28,8 +28,6 @@ import { ref, watch } from 'vue'
28
28
 
29
29
  import { useI18n } from 'vue-i18n'
30
30
 
31
-
32
- // Пропсы и данные, которые вы передаёте в компонент
33
31
  const props = defineProps({
34
32
  categories: Array,
35
33
  prices: Array,
@@ -1,12 +1,12 @@
1
- import { reactive, watch, computed } from "vue";
2
-
3
- import Cookies from "js-cookie";
4
- import axios from "axios";
5
-
6
- import { setError } from "@pf/src/modules/globals/store/globals";
7
-
8
- const clientUrl = process.env.API_URL;
9
- const $axios = axios.create({ baseURL: clientUrl, withCredentials: true });
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
- import { reactive, watch } from "vue";
2
- import axios from "axios";
3
- import { setError } from "@pf/src/modules/globals/store/globals";
4
-
5
- const clientUrl = process.env.API_URL;
6
- const $axios = axios.create({ baseURL: clientUrl, withCredentials: true });
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: [],
@@ -2,8 +2,6 @@
2
2
  // DEPENDENCIES
3
3
  /////////////////////////////
4
4
  import { reactive, watch, computed } from "vue";
5
- // Dependencies
6
- import Cookies from 'js-cookie'
7
5
  import axios from 'axios';
8
6
  // Globals
9
7
  import { setError } from '@pf/src/modules/globals/store/globals'