@ozdao/prometheus-framework 0.2.52 → 0.2.53
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main-0a2437f4.js +91 -0
- package/dist/main-4fnApBsF.js +91 -0
- package/dist/main-cdd0be68.mjs +13628 -0
- package/dist/main-kjbLXQEa.mjs +13606 -0
- package/dist/main.css +1 -1
- package/dist/products.server.js +61 -49
- package/dist/products.server.mjs +61 -49
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +2 -223
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +223 -2
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +2 -76
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +78 -2
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +2 -44
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +44 -2
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +3 -3
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.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 +2 -2
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- 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 +3 -3
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.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 +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/organizations/router/products.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/products.router.js +22 -0
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue.js +45 -0
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue2.js +4 -0
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +79 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +193 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue2.js +4 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
- 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 +67 -57
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +21 -18
- 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/products/products.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/products.client.js +2 -2
- package/dist/prometheus-framework/src/modules/products/store/categories.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/categories.js +39 -27
- 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/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +1 -1
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/web-0066fd51.mjs +55 -0
- package/dist/web-6b9fa713.js +1 -0
- package/dist/web-ngl7bNhF.js +1 -0
- package/dist/web-t91TrxXa.mjs +55 -0
- package/package.json +1 -1
- package/src/components/Button/Button.vue +1 -3
- package/src/components/Field/Field.vue +3 -1
- package/src/modules/marketplace/components/sections/Filters.vue +7 -1
- package/src/modules/organizations/router/products.router.js +24 -4
- package/src/modules/products/components/blocks/CardCategory.vue +53 -0
- package/src/modules/products/components/pages/Categories.vue +90 -0
- package/src/modules/products/components/pages/CategoryEdit.vue +214 -0
- package/src/modules/products/components/pages/ProductEdit.vue +9 -1
- package/src/modules/products/components/sections/FilterProducts.vue +4 -1
- package/src/modules/products/controllers/categories.controller.js +30 -13
- package/src/modules/products/models/category.model.js +42 -32
- package/src/modules/products/products.client.js +4 -2
- package/src/modules/products/store/categories.js +17 -3
- package/src/modules/backoffice/components/admin/Categories.vue +0 -53
- package/src/modules/backoffice/components/admin/CategoryEdit.vue +0 -98
- package/src/modules/products/components/blocks/CategoryCard.vue +0 -42
- package/src/modules/products/router/products.router.js +0 -48
- /package/src/modules/{products → organizations}/components/pages/OrganizationCreate.vue +0 -0
- /package/src/modules/{products → organizations}/components/pages/OrganizationDetails.vue +0 -0
- /package/src/modules/{products → organizations}/components/pages/OrganizationDocuments.vue +0 -0
- /package/src/modules/{products → organizations}/components/pages/OrganizationPeople.vue +0 -0
@@ -1,98 +0,0 @@
|
|
1
|
-
<template>
|
2
|
-
<!-- ---------------------------------------------------------------- -->
|
3
|
-
<!-- 01. Page Title -->
|
4
|
-
<!-- ---------------------------------------------------------------- -->
|
5
|
-
<section class="pageheader section">
|
6
|
-
<div class="mn-b-big title">
|
7
|
-
<h1 v-if="route.params.url">Редактировать категорию</h1>
|
8
|
-
<h1 v-else>Добавить категорию</h1>
|
9
|
-
</div>
|
10
|
-
</section>
|
11
|
-
|
12
|
-
<!-- ---------------------------------------------------------------- -->
|
13
|
-
<!-- 03. Page Content -->
|
14
|
-
<!-- ---------------------------------------------------------------- -->
|
15
|
-
<section class=" bg-grey br-bot-dark section-subsection section">
|
16
|
-
|
17
|
-
<form onsubmit="return false">
|
18
|
-
<!-- ---------------------------------------------------------------- -->
|
19
|
-
<!-- Category Info -->
|
20
|
-
<!-- ---------------------------------------------------------------- -->
|
21
|
-
<div class="mn-b-big flex-column flex block">
|
22
|
-
<div class="w-100 flex-nowrap flex">
|
23
|
-
<InputText :obj="'categories'" :prop="'current.url'" :value="category.url" label="URL категории" class="mn-r-small"/>
|
24
|
-
<InputText :obj="'categories'" :prop="'current.name'" :value="category.name" label="Название"/>
|
25
|
-
</div>
|
26
|
-
</div>
|
27
|
-
<!-- Subcategories -->
|
28
|
-
<EditCategories
|
29
|
-
:category="category"
|
30
|
-
title="Подкатегории"
|
31
|
-
obj="categories"
|
32
|
-
prop="current.subcategories"
|
33
|
-
name="subcategories"
|
34
|
-
keyname="name"
|
35
|
-
parname="url"
|
36
|
-
/>
|
37
|
-
<!-- Filters -->
|
38
|
-
<EditCategories
|
39
|
-
:category="category"
|
40
|
-
title="Фильтры для категории"
|
41
|
-
obj="categories"
|
42
|
-
prop='current.filters'
|
43
|
-
name="filters"
|
44
|
-
keyname="name"
|
45
|
-
parname="options"
|
46
|
-
/>
|
47
|
-
<!-- Localization -->
|
48
|
-
<EditCategories
|
49
|
-
:category="category"
|
50
|
-
title="Локализация"
|
51
|
-
obj="categories"
|
52
|
-
prop='current.localization'
|
53
|
-
name="localization"
|
54
|
-
keyname="locale"
|
55
|
-
parname="text"
|
56
|
-
/>
|
57
|
-
<!-- Sumbmit -->
|
58
|
-
<a @click="onSubmit()" class="button">Сохранить</a>
|
59
|
-
</form>
|
60
|
-
<!-- End of page form -->
|
61
|
-
</section>
|
62
|
-
<!-- End of page content -->
|
63
|
-
</template>
|
64
|
-
|
65
|
-
<script setup>
|
66
|
-
// Import components
|
67
|
-
import InputText from '@/components/elements/InputText.vue'
|
68
|
-
import EditCategories from '@pf/src/modules/products/components/blocks/EditCategories.vue'
|
69
|
-
import EditFilters from '@/components/blocks/EditFilters.vue'
|
70
|
-
// Import libs
|
71
|
-
import { computed, onMounted } from 'vue'
|
72
|
-
|
73
|
-
import { useRoute } from 'vue-router'
|
74
|
-
// Accessing router and store
|
75
|
-
const store = useStore()
|
76
|
-
const route = useRoute()
|
77
|
-
// Data prefetching
|
78
|
-
if (route.params.url) {
|
79
|
-
store.dispatch('categories/fetchCategory', route.params.url)
|
80
|
-
} else {
|
81
|
-
await store.commit('categories/cleanCategoryState')
|
82
|
-
}
|
83
|
-
// Accessing state
|
84
|
-
const category = computed(() => store.state.categories.current)
|
85
|
-
const routePath = computed(() => route.name)
|
86
|
-
// Filters and subcategory
|
87
|
-
function onSubmit() {
|
88
|
-
if (route.params.url) {
|
89
|
-
store.dispatch('categories/updateCategory', route.params.url)
|
90
|
-
} else {
|
91
|
-
store.dispatch('categories/addCategory')
|
92
|
-
}
|
93
|
-
}
|
94
|
-
</script>
|
95
|
-
|
96
|
-
<style lang="scss">
|
97
|
-
|
98
|
-
</style>
|
@@ -1,42 +0,0 @@
|
|
1
|
-
<template>
|
2
|
-
<div class="card">
|
3
|
-
<div class="flex-v-center flex">
|
4
|
-
<h4>{{category.name}}</h4>
|
5
|
-
<div class="actions">
|
6
|
-
<router-link :to="'/admin/categories/' + category.url + '/edit'" class="mn-r-medium nav-link">Редактировать</router-link>
|
7
|
-
<a class="nav-link" @click="deleteCategory(category)">Удалить</a>
|
8
|
-
</div>
|
9
|
-
</div>
|
10
|
-
</div>
|
11
|
-
</template>
|
12
|
-
|
13
|
-
|
14
|
-
<script>
|
15
|
-
import { toRef,onMounted } from 'vue'
|
16
|
-
|
17
|
-
export default {
|
18
|
-
props: ['category'],
|
19
|
-
name: 'CategoryCard',
|
20
|
-
setup(props) {
|
21
|
-
onMounted(() => {
|
22
|
-
})
|
23
|
-
|
24
|
-
return {
|
25
|
-
}
|
26
|
-
},
|
27
|
-
methods: {
|
28
|
-
deleteCategory(category) {
|
29
|
-
this.$store.commit('categories/deleteCategory', category);
|
30
|
-
this.$store.dispatch('categories/deleteCategory', category.url)
|
31
|
-
}
|
32
|
-
}
|
33
|
-
}
|
34
|
-
</script>
|
35
|
-
|
36
|
-
<style lang="scss">
|
37
|
-
.categories-card {
|
38
|
-
|
39
|
-
}
|
40
|
-
</style>
|
41
|
-
|
42
|
-
|
@@ -1,48 +0,0 @@
|
|
1
|
-
// import layoutProducts from '../components/layouts/Products.vue'
|
2
|
-
import layoutEmpty from '@pf/src/modules/globals/components/layouts/Empty.vue'
|
3
|
-
|
4
|
-
import * as validationAuth from '@pf/src/modules/middlewares/client/auth.validation.js';
|
5
|
-
|
6
|
-
const productsRoutes = [{
|
7
|
-
path: 'products',
|
8
|
-
component: layoutEmpty,
|
9
|
-
beforeEnter: [
|
10
|
-
validationAuth.requiresAdmin,
|
11
|
-
],
|
12
|
-
children: [{
|
13
|
-
path: ':_id',
|
14
|
-
name: 'Products',
|
15
|
-
meta: {
|
16
|
-
title: {
|
17
|
-
en: 'Products',
|
18
|
-
ru: 'Товары'
|
19
|
-
},
|
20
|
-
authorize: []
|
21
|
-
},
|
22
|
-
component: () => import(/* webpackChunkName: 'ProductsGallery' */ '../components/pages/Dashboard.vue'),
|
23
|
-
},{
|
24
|
-
path: 'products',
|
25
|
-
name: 'Products',
|
26
|
-
meta: {
|
27
|
-
title: {
|
28
|
-
en: 'Products',
|
29
|
-
ru: 'Товары'
|
30
|
-
},
|
31
|
-
authorize: []
|
32
|
-
},
|
33
|
-
component: () => import(/* webpackChunkName: 'ProductsProducts' */ '@pf/src/modules/products/components/pages/ProductsProducts.vue'),
|
34
|
-
},{
|
35
|
-
path: 'leftovers',
|
36
|
-
name: 'Leftovers',
|
37
|
-
meta: {
|
38
|
-
title: {
|
39
|
-
en: 'Leftovers',
|
40
|
-
ru: 'Остатки'
|
41
|
-
},
|
42
|
-
authorize: []
|
43
|
-
},
|
44
|
-
component: () => import(/* webpackChunkName: 'ProductsLeftovers' */ '@pf/src/modules/products/components/pages/Leftovers.vue'),
|
45
|
-
}]
|
46
|
-
}];
|
47
|
-
|
48
|
-
export default productsRoutes;
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|