@ozdao/prometheus-framework 0.1.69 → 0.1.72
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +1 -1
- package/dist/auth.server.mjs +1 -1
- package/dist/components/Upload/Upload.vue.d.ts.map +1 -1
- package/dist/main.css +1 -1
- package/dist/modules/constructor/components/elements/H2.vue.d.ts +1 -1
- package/dist/modules/constructor/components/elements/Textarea.vue.d.ts +1 -1
- package/dist/modules/events/components/sections/Feed.vue.d.ts +1 -1
- package/dist/modules/products/components/sections/EditProductInfo.vue.d.ts +5 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +72 -2
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +2 -72
- package/dist/prometheus-framework/src/modules/auth/auth.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/auth.client.js +27 -24
- package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.js +5 -2
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/community.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/community.client.js +33 -30
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +24 -21
- package/dist/prometheus-framework/src/modules/events/events.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/events.client.js +21 -18
- package/dist/prometheus-framework/src/modules/gallery/gallery.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/gallery.client.js +7 -4
- package/dist/prometheus-framework/src/modules/globals/globals.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/globals.client.js +9 -6
- package/dist/prometheus-framework/src/modules/icons/icons.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/icons.client.js +49 -46
- package/dist/prometheus-framework/src/modules/icons/socials/facebook.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/icons/socials/instagram.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/linkedin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/linkedin.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/reddit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/telegram.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/icons/socials/twitter.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/twitter.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/landing/landing.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/landing.client.js +5 -2
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/legal.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/legal.client.js +14 -10
- package/dist/prometheus-framework/src/modules/middlewares/middlewares.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/middlewares/middlewares.client.js +8 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +11 -2
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +2 -11
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +61 -58
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue.js +2 -78
- package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.js +78 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/reports.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/reports.client.js +7 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/users.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/users.client.js +11 -8
- package/dist/prometheus-framework.cjs.js +21 -21
- package/dist/prometheus-framework.es.js +705 -687
- package/dist/style.css +1 -1
- package/package.json +40 -39
- package/src/components/Button/Button.vue +1 -1
- package/src/components/Search/Search.vue +1 -1
- package/src/components/Sidebar/Sidebar.vue +8 -10
- package/src/components/Status/Status.vue +1 -1
- package/src/components/Upload/Upload.vue +28 -8
- package/src/{main.ts → main.js} +1 -2
- package/src/modules/auth/auth.client.js +1 -1
- package/src/modules/auth/controllers/auth.controller.js +1 -1
- package/src/modules/auth/store/auth.js +24 -21
- package/src/modules/backoffice/backoffice.client.js +1 -1
- package/src/modules/backoffice/components/admin/Backcalls.vue +1 -1
- package/src/modules/backoffice/components/admin/Categories.vue +1 -1
- package/src/modules/backoffice/components/admin/CategoryEdit.vue +1 -1
- package/src/modules/backoffice/components/admin/Dashboard.vue +1 -1
- package/src/modules/backoffice/components/admin/FastOrders.vue +1 -1
- package/src/modules/backoffice/components/admin/PageEdit.vue +1 -1
- package/src/modules/backoffice/components/admin/Pages.vue +1 -1
- package/src/modules/backoffice/components/admin/ProductEdit.vue +0 -2
- package/src/modules/backoffice/components/admin/User.vue +1 -1
- package/src/modules/backoffice/components/admin/Users.vue +1 -1
- package/src/modules/community/community.client.js +1 -1
- package/src/modules/constructor/components/elements/Audio.vue +82 -0
- package/src/modules/constructor/components/elements/Embed.vue +85 -0
- package/src/modules/constructor/components/sections/Constructor.vue +54 -7
- package/src/modules/events/components/pages/Events.vue +2 -2
- package/src/modules/events/events.client.js +1 -1
- package/src/modules/gallery/components/pages/Gallery.vue +1 -7
- package/src/modules/gallery/components/sections/GalleryWithCategories.vue +8 -24
- package/src/modules/gallery/gallery.client.js +2 -6
- package/src/modules/globals/globals.client.js +1 -1
- package/src/modules/globals/mixins/mixins.js +52 -0
- package/src/modules/globals/router/routerGuards.js +28 -0
- package/src/modules/icons/icons.client.js +1 -1
- package/src/modules/landing/landing.client.js +1 -1
- package/src/modules/legal/legal.client.js +1 -1
- package/src/modules/marketplace/components/layouts/Marketplace.vue +0 -1
- package/src/modules/middlewares/middlewares.client.js +1 -1
- package/src/modules/orders/components/blocks/Positions.vue +1 -1
- package/src/modules/orders/components/pages/ViewOrder.vue +1 -1
- package/src/modules/organizations/components/pages/Organization.vue +2 -2
- package/src/modules/organizations/organizations.client.js +1 -1
- package/src/modules/payments/components/pages/Payments.vue +3 -4
- package/src/modules/products/components/blocks/CardLeftover.vue +1 -0
- package/src/modules/products/components/blocks/CardProduct.vue +1 -15
- package/src/modules/products/components/sections/EditProductInfo.vue +14 -16
- package/src/modules/products/components/sections/FilterProducts.vue +2 -0
- package/src/modules/products/components/sections/ProductInformationSection.vue +2 -5
- package/src/modules/products/components/sections/SectionProduct.vue +0 -1
- 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/src/modules/reports/reports.client.js +1 -1
- package/src/modules/users/components/pages/Profile.vue +5 -3
- package/src/modules/users/users.client.js +1 -1
- package/src/modules/wallet/components/pages/Wallet.vue +1 -1
- package/src/styles/theme.scss +0 -1
- package/src/styles/components/button.scss +0 -253
- /package/src/components/{index.ts → index.js} +0 -0
@@ -0,0 +1,28 @@
|
|
1
|
+
// routerGuards.js
|
2
|
+
export function setupRouterGuards(router, store, app) {
|
3
|
+
router.beforeEach((to, from, next) => {
|
4
|
+
const { authorize } = to.meta;
|
5
|
+
|
6
|
+
if (authorize) {
|
7
|
+
if (store.auth.state.access.status === false) {
|
8
|
+
return next({ path: '/', query: { returnUrl: to.path } });
|
9
|
+
}
|
10
|
+
|
11
|
+
if (authorize.length && !authorize.some(r => store.auth.state.access.roles.includes(r))) {
|
12
|
+
return next({ path: '/' });
|
13
|
+
}
|
14
|
+
}
|
15
|
+
|
16
|
+
const locale = to.params.locale;
|
17
|
+
if (
|
18
|
+
app.config.globalProperties.$i18n.locale !== locale
|
19
|
+
&& locale
|
20
|
+
&& Object.keys(i18n.global.availableLocales).includes(locale)
|
21
|
+
) {
|
22
|
+
app.config.globalProperties.$i18n.locale = locale;
|
23
|
+
return next();
|
24
|
+
}
|
25
|
+
|
26
|
+
next();
|
27
|
+
});
|
28
|
+
}
|
@@ -49,9 +49,9 @@
|
|
49
49
|
:tabs="[
|
50
50
|
|
51
51
|
{ name: 'Community', value: 'community' },
|
52
|
-
{ name: 'Products', value: 'products' },
|
52
|
+
// { name: 'Products', value: 'products' },
|
53
53
|
{ name: 'Events', value: 'events' },
|
54
|
-
{ name: 'Spots', value: 'spots' }
|
54
|
+
// { name: 'Spots', value: 'spots' }
|
55
55
|
]"
|
56
56
|
class="mn-small o-hidden h5 radius-big bg-grey"
|
57
57
|
/>
|
@@ -37,7 +37,7 @@ import * as organizationStore from './store/organizations.js';
|
|
37
37
|
import organizationsRouter from './router/organizations.js';
|
38
38
|
|
39
39
|
// Export components, store modules, and routes
|
40
|
-
export {
|
40
|
+
export default {
|
41
41
|
Organization,
|
42
42
|
Department,
|
43
43
|
OrganizationEdit,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<template>
|
2
2
|
<!-- Toolbar -->
|
3
|
-
|
3
|
+
<section class="br-bot-dark bg-white pd-big">
|
4
4
|
<header class="flex-nojustify flex-bottom flex-nowrap flex">
|
5
5
|
<h1 class="mn-r-small">Заказы</h1>
|
6
6
|
|
@@ -54,7 +54,7 @@
|
|
54
54
|
|
55
55
|
</p>
|
56
56
|
</div>
|
57
|
-
</section>
|
57
|
+
</section>
|
58
58
|
</template>
|
59
59
|
|
60
60
|
|
@@ -65,9 +65,8 @@
|
|
65
65
|
import { useRoute,useRouter } from 'vue-router'
|
66
66
|
|
67
67
|
|
68
|
-
// const store = useStore()
|
69
68
|
const route = useRoute()
|
70
|
-
|
69
|
+
const router = useRouter()
|
71
70
|
|
72
71
|
// await store.dispatch('orders/fetchOrders').then(
|
73
72
|
// succes => { console.log('sycces') },
|
@@ -25,6 +25,7 @@
|
|
25
25
|
>
|
26
26
|
<!-- Image Wrappers -->
|
27
27
|
<img v-if="product.images[0]" :src="(FILE_SERVER_URL || '') + product.images[0]" class="w-100 h-100">
|
28
|
+
|
28
29
|
<svg
|
29
30
|
v-else
|
30
31
|
class="h-100 w-100"
|
@@ -107,22 +108,7 @@
|
|
107
108
|
|
108
109
|
const props = defineProps(['product'])
|
109
110
|
|
110
|
-
function addToFavorites(product) {
|
111
|
-
store.dispatch('favorites/addProductToFavorites', product);
|
112
|
-
|
113
|
-
console.log('hello');
|
114
|
-
}
|
115
111
|
const { t } = useI18n()
|
116
|
-
|
117
|
-
const isInFavorites = computed(() => {
|
118
|
-
return store.state.favorites.items.filter(function(item, index) {
|
119
|
-
if (item._id === props.product._id) {
|
120
|
-
return true;
|
121
|
-
}
|
122
|
-
})
|
123
|
-
})
|
124
|
-
|
125
|
-
|
126
112
|
</script>
|
127
113
|
|
128
114
|
<style lang="scss">
|
@@ -1,13 +1,13 @@
|
|
1
1
|
<template>
|
2
|
-
|
3
|
-
{{
|
2
|
+
<div class="mn-big flex-column flex">
|
3
|
+
<!-- {{
|
4
4
|
store.products.current
|
5
5
|
}}
|
6
6
|
<Select
|
7
7
|
:options="[
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
'unpublished',
|
9
|
+
'published',
|
10
|
+
'archivied'
|
11
11
|
]"
|
12
12
|
v-model:select="store.products.state.current.status"
|
13
13
|
placeholder="Display product"
|
@@ -31,8 +31,8 @@
|
|
31
31
|
placeholder="Введите описание"
|
32
32
|
class="w-100 mn-small bg-white radius-small pd-medium"
|
33
33
|
type="textarea"
|
34
|
-
/>
|
35
|
-
</div>
|
34
|
+
/> -->
|
35
|
+
</div>
|
36
36
|
</template>
|
37
37
|
|
38
38
|
<script setup="props">
|
@@ -49,20 +49,18 @@ import { toRefs } from 'vue';
|
|
49
49
|
/////////////////////////////
|
50
50
|
// HELPERS
|
51
51
|
/////////////////////////////
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
// location.reload()
|
56
|
-
// }
|
52
|
+
function functionReload () {
|
53
|
+
location.reload()
|
54
|
+
}
|
57
55
|
|
58
56
|
/////////////////////////////
|
59
57
|
// CREATED
|
60
58
|
/////////////////////////////
|
61
|
-
|
62
|
-
|
63
|
-
|
59
|
+
const props = defineProps({
|
60
|
+
product: Object,
|
61
|
+
});
|
64
62
|
|
65
|
-
|
63
|
+
const { product } = toRefs(props);
|
66
64
|
|
67
65
|
/////////////////////////////
|
68
66
|
// MOUNTED
|
@@ -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';
|
@@ -73,7 +73,7 @@
|
|
73
73
|
<li class="mn-thin">Ожидайте курьера в назначенную дату. Вы можете примерить все что заказали, выбрать и оплатить только то, что вам подошло + за доставку курьеру</li>
|
74
74
|
<li class="mn-thin">Оплатить можно как наличными, так и по карте, у наших курьеров всегда с собой терминал</li>
|
75
75
|
</ul>
|
76
|
-
<p>В <a @click="store.commit('toggleShopAdress')" class="t-demi underline">шоуруме в Москве</a> оплатить товары вы сможете как наличными, так и по карте.</p>
|
76
|
+
<!-- <p>В <a @click="store.commit('toggleShopAdress')" class="t-demi underline">шоуруме в Москве</a> оплатить товары вы сможете как наличными, так и по карте.</p> -->
|
77
77
|
</div>
|
78
78
|
<!-- Right col -->
|
79
79
|
<div class="col">
|
@@ -98,10 +98,7 @@
|
|
98
98
|
|
99
99
|
<script setup scoped>
|
100
100
|
import { ref, computed, toRefs, reactive } from 'vue'
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
const store = useStore()
|
101
|
+
|
105
102
|
|
106
103
|
let data = reactive({currentTab: 'description'})
|
107
104
|
let reactiveData = toRefs(data)
|
@@ -109,7 +109,6 @@ import ImagesThumbnails from "@pf/src/modules/products/components/blocks/ImagesT
|
|
109
109
|
|
110
110
|
import IconEdit from '@pf/src/modules/icons/navigation/IconEdit.vue'
|
111
111
|
|
112
|
-
|
113
112
|
import THC from '@pf/src/modules/products/components/elements/THC.vue'
|
114
113
|
import Price from '@pf/src/modules/products/components/elements/Price.vue'
|
115
114
|
// import SelectElement from '@/components/elements/SelectElement.vue'
|
@@ -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: [],
|
@@ -192,11 +192,14 @@
|
|
192
192
|
|
193
193
|
|
194
194
|
|
195
|
-
<Menu class="mn-regular bg-grey">
|
195
|
+
<!-- <Menu class="mn-regular bg-grey">
|
196
196
|
<MenuItem @click="router.push({name: 'User Wallet', params: {_id: route.params._id}})" class="cursor-pointer">
|
197
197
|
<IconGroups class="i-semi" :icon="true"/>
|
198
198
|
<span>Wallet</span>
|
199
199
|
</MenuItem>
|
200
|
+
</Menu> -->
|
201
|
+
|
202
|
+
|
200
203
|
|
201
204
|
<!-- <MenuItem @click="router.push({name: 'User Comments', params: {_id: route.params._id}})" class="cursor-pointer">
|
202
205
|
<span>Comments</span>
|
@@ -204,8 +207,7 @@
|
|
204
207
|
<MenuItem @click="router.push({name: 'User Likes', params: {_id: route.params._id}})" class="cursor-pointer">
|
205
208
|
<span>Likes</span>
|
206
209
|
</MenuItem> -->
|
207
|
-
|
208
|
-
|
210
|
+
|
209
211
|
<Menu
|
210
212
|
v-if="auth.state.user._id === route.params._id"
|
211
213
|
class="bg-grey"
|
@@ -109,9 +109,9 @@
|
|
109
109
|
|
110
110
|
|
111
111
|
<script setup>
|
112
|
-
import { computed, onMounted,reactive, ref,toRefs } from 'vue'
|
113
112
|
import Web3 from 'web3'
|
114
113
|
|
114
|
+
import { computed, onMounted,reactive, ref,toRefs } from 'vue'
|
115
115
|
|
116
116
|
import { useRoute,useRouter } from 'vue-router'
|
117
117
|
|
package/src/styles/theme.scss
CHANGED
@@ -1,253 +0,0 @@
|
|
1
|
-
button[disabled] {background: grey; &:hover {background: grey; } }
|
2
|
-
|
3
|
-
.button {
|
4
|
-
display: flex;
|
5
|
-
width: fit-content;
|
6
|
-
|
7
|
-
padding: 1rem 1.75rem;
|
8
|
-
border-radius: 3rem;
|
9
|
-
|
10
|
-
transform: scale(1);
|
11
|
-
opacity: 1;
|
12
|
-
|
13
|
-
align-items: center;
|
14
|
-
justify-content: center;
|
15
|
-
|
16
|
-
text-align: center;
|
17
|
-
text-transform: uppercase;
|
18
|
-
font-size: 1rem;
|
19
|
-
font-weight: 500;
|
20
|
-
letter-spacing: 5%;
|
21
|
-
|
22
|
-
transition: all 0.33s ease;
|
23
|
-
|
24
|
-
&:hover {
|
25
|
-
opacity: 1;
|
26
|
-
cursor: pointer;
|
27
|
-
}
|
28
|
-
|
29
|
-
&:active {
|
30
|
-
transform: scale(0.95);
|
31
|
-
}
|
32
|
-
|
33
|
-
&-small {
|
34
|
-
padding: 0.5rem 0.75rem;
|
35
|
-
border-radius: 0.5rem;
|
36
|
-
height: fit-content;
|
37
|
-
}
|
38
|
-
|
39
|
-
&-square {
|
40
|
-
height: 2.5rem;
|
41
|
-
width: 2.5rem;
|
42
|
-
|
43
|
-
padding: 1rem;
|
44
|
-
border-radius: 0.5rem;
|
45
|
-
font-size: 1.125rem;
|
46
|
-
}
|
47
|
-
|
48
|
-
&-close-popup {
|
49
|
-
position: absolute;
|
50
|
-
|
51
|
-
right: 0;
|
52
|
-
top: 0;
|
53
|
-
|
54
|
-
width: 3rem;
|
55
|
-
height: 3rem;
|
56
|
-
|
57
|
-
background: transparent;
|
58
|
-
|
59
|
-
padding: 0;
|
60
|
-
|
61
|
-
border-radius: 0;
|
62
|
-
|
63
|
-
img {
|
64
|
-
width: 33%;
|
65
|
-
}
|
66
|
-
}
|
67
|
-
|
68
|
-
&-delete {
|
69
|
-
&:hover {
|
70
|
-
background: red;
|
71
|
-
}
|
72
|
-
}
|
73
|
-
|
74
|
-
&-grey {
|
75
|
-
background: rgba(var(--dark), 1);;
|
76
|
-
background-color: #F7F7F7;
|
77
|
-
}
|
78
|
-
|
79
|
-
&-sort {
|
80
|
-
height: 2.5rem;
|
81
|
-
|
82
|
-
padding: 0.5rem 1.25rem;
|
83
|
-
|
84
|
-
text-transform: none;
|
85
|
-
font-size: 1rem;
|
86
|
-
background: rgba(var(--dark), 1);;
|
87
|
-
background-color: #F7F7F7;
|
88
|
-
}
|
89
|
-
|
90
|
-
&-active {
|
91
|
-
background: rgb(var(--main));;
|
92
|
-
color: white;
|
93
|
-
&:hover {
|
94
|
-
background: rgb(var(--main));;
|
95
|
-
color: rgba(255,255,255,0.75);
|
96
|
-
|
97
|
-
}
|
98
|
-
}
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
&-filter {
|
104
|
-
height: 2.5rem;
|
105
|
-
|
106
|
-
padding: 0;
|
107
|
-
border-radius: 0.5rem;
|
108
|
-
font-size: 1.125rem;
|
109
|
-
|
110
|
-
background: rgba(var(--dark), 1);;
|
111
|
-
background: white;
|
112
|
-
}
|
113
|
-
|
114
|
-
&-disabled {
|
115
|
-
color: rgba(0,0,0,0.5);
|
116
|
-
|
117
|
-
&:hover {
|
118
|
-
color: rgba(0,0,0,0.5);
|
119
|
-
}
|
120
|
-
&:active {
|
121
|
-
pointer-events: none;
|
122
|
-
transform: scale(1,1);
|
123
|
-
}
|
124
|
-
}
|
125
|
-
&-active {
|
126
|
-
background: rgb(var(--main));;
|
127
|
-
color: white;
|
128
|
-
&:hover {
|
129
|
-
background: rgb(var(--main));;
|
130
|
-
color: rgba(255,255,255,0.75);
|
131
|
-
|
132
|
-
}
|
133
|
-
}
|
134
|
-
&-reset-filter {
|
135
|
-
width: 100%;
|
136
|
-
text-transform: uppecase;
|
137
|
-
height: 3.75rem;
|
138
|
-
|
139
|
-
background: transparent;
|
140
|
-
|
141
|
-
&:hover {
|
142
|
-
background: rgb(var(--main));;
|
143
|
-
color: black;
|
144
|
-
|
145
|
-
}
|
146
|
-
}
|
147
|
-
|
148
|
-
&-icon {
|
149
|
-
height: 1rem; width: 1rem; background: transparent; img { width: 100%; height: 100%}
|
150
|
-
background: transparent;
|
151
|
-
box-shadow: none;
|
152
|
-
border-radius: 0;
|
153
|
-
padding: 0;
|
154
|
-
|
155
|
-
&:hover {
|
156
|
-
cursor: pointer;
|
157
|
-
}
|
158
|
-
}
|
159
|
-
|
160
|
-
|
161
|
-
&-link {
|
162
|
-
color: rgba(0, 0, 0, 0.5);
|
163
|
-
font-size: 1.125rem;
|
164
|
-
display: flex;
|
165
|
-
align-items: center;
|
166
|
-
font-weight: 600;
|
167
|
-
|
168
|
-
&-blue {color: #2495FF;}
|
169
|
-
|
170
|
-
&-black{color: rgba(0, 0, 0, 0.5);}
|
171
|
-
|
172
|
-
&-cream {color: #DBADAA; text-align: left; font-weight: 600; letter-spacing: 0;}
|
173
|
-
|
174
|
-
}
|
175
|
-
|
176
|
-
&-otr-link {
|
177
|
-
display: inline-flex;
|
178
|
-
margin-top: 0.25rem;
|
179
|
-
align-items: center;
|
180
|
-
color: #000;
|
181
|
-
|
182
|
-
img { margin-right: 0.5rem;}
|
183
|
-
}
|
184
|
-
|
185
|
-
&-cart {
|
186
|
-
display: inline-flex;
|
187
|
-
color: #000;
|
188
|
-
height: 3rem;
|
189
|
-
width: 3rem;
|
190
|
-
font-weight: 700;
|
191
|
-
width: fit-content;
|
192
|
-
font-size: 1.5rem;
|
193
|
-
background: rgb(var(--main));;
|
194
|
-
background: #FAF7F3;
|
195
|
-
text-transform: none;
|
196
|
-
padding: 0.75rem 1rem;
|
197
|
-
border-radius: 4rem;
|
198
|
-
|
199
|
-
&:hover {
|
200
|
-
background: rgb(var(--main));;
|
201
|
-
color: white;
|
202
|
-
opacity: 1;
|
203
|
-
|
204
|
-
cursor: pointer;
|
205
|
-
}
|
206
|
-
}
|
207
|
-
|
208
|
-
&-cart-big {
|
209
|
-
display: inline-flex;
|
210
|
-
color: #000;
|
211
|
-
font-weight: 700;
|
212
|
-
width: fit-content;
|
213
|
-
background: #FFE500;
|
214
|
-
text-transform: none;
|
215
|
-
font-size: 2rme;
|
216
|
-
padding: 1.5rem 2rem;
|
217
|
-
border-radius: 2rem;
|
218
|
-
}
|
219
|
-
|
220
|
-
&-blog {
|
221
|
-
padding: 0.75rem 1rem;
|
222
|
-
background-color: #2495FF;
|
223
|
-
color: #fff;
|
224
|
-
border-radius: 0.375rem;
|
225
|
-
font-size: 1.125rem;
|
226
|
-
text-transform: uppercase;
|
227
|
-
width: fit-content;
|
228
|
-
}
|
229
|
-
|
230
|
-
&-nav-footer{
|
231
|
-
color: #000;
|
232
|
-
font-size: 0.875rem;
|
233
|
-
font-weight: 700; display: flex;
|
234
|
-
align-items: center;
|
235
|
-
svg {margin-right: 0.5rem;}}
|
236
|
-
|
237
|
-
&-inst {
|
238
|
-
background: radial-gradient(179.06% 43.44% at -16.75% 7.2%, #3771C8 0%, #3771C8 12.8%, rgba(102, 0, 255, 0) 100%),
|
239
|
-
radial-gradient(92.18% 99.11% at 26.56% 107.7%, #FFDD55 0%, #FFDD55 10%, #FF543E 50%, #C837AB 100%);
|
240
|
-
color: white;
|
241
|
-
font-size: 1.125rem;
|
242
|
-
font-weight: 700;
|
243
|
-
text-transform: uppercase;
|
244
|
-
padding: 0.75rem 0.75rem;
|
245
|
-
border-radius: 0.5625rem;
|
246
|
-
display: flex;
|
247
|
-
align-items: center;
|
248
|
-
justify-content: center;
|
249
|
-
width: fit-content;
|
250
|
-
box-shadow: 4px 4px 24px -12px rgba(201, 163, 163, 0.5);
|
251
|
-
img {margin-right: 0.5rem}
|
252
|
-
}
|
253
|
-
}
|
File without changes
|