@ozdao/prometheus-framework 0.1.73 → 0.1.74
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/node_modules/vue-select/dist/vue-select.es.cjs +1 -1
- package/dist/node_modules/vue3-carousel/dist/carousel.es.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +224 -2
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +2 -224
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Map/Map.vue2.cjs +1 -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/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +78 -2
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +2 -78
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +44 -2
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +2 -44
- package/dist/prometheus-framework/src/components/Text/Text.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/auth.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/auth.client.js +24 -27
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.js +2 -5
- package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.cjs +1 -1
- 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/backoffice/router/backoffice.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +133 -177
- package/dist/prometheus-framework/src/modules/community/community.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/community.client.js +30 -33
- package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +4 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +61 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -4
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +2 -61
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +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/layouts/layoutEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.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 +3 -3
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/events.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/events.client.js +18 -21
- package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +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/gallery/gallery.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/gallery.client.js +4 -7
- 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/globals/components/layouts/Empty.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/sections/Title.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/globals.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/globals.client.js +6 -9
- package/dist/prometheus-framework/src/modules/icons/entities/IconCommunity.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/entities/IconEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/icons.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/icons.client.js +46 -49
- package/dist/prometheus-framework/src/modules/icons/navigation/IconChevronRight.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/navigation/IconCross.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/navigation/IconEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderUserpic.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEventShort.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/dribbble.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/facebook.vue.cjs +1 -1
- 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/line.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.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/icons/socials/vk.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/youtube.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/landing.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/landing.client.js +2 -5
- 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/legal/components/pages/legal/Cookies.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/EULA.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Privacy.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Terms.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/legal.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/legal.client.js +10 -14
- package/dist/prometheus-framework/src/modules/middlewares/middlewares.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/middlewares/middlewares.client.js +1 -8
- 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 +2 -11
- 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 +11 -2
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +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/blocks/DepartmentSub.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EmptyState.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Unit.vue.cjs +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/Department.vue.cjs +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 +4 -4
- 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 +4 -4
- 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 +4 -4
- 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/DetailsTab.vue.cjs +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/FeedDepartments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +1 -1
- 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/MembersList.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.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 +12 -12
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +58 -61
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.cjs +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 +3 -3
- package/dist/prometheus-framework/src/modules/reports/reports.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/reports.client.js +1 -7
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotSub.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.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 +2 -2
- 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/users/components/pages/ProfileOrganizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.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 +8 -11
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/modules/auth/auth.client.js +1 -1
- package/src/modules/backoffice/backoffice.client.js +1 -1
- package/src/modules/backoffice/router/backoffice.js +130 -128
- package/src/modules/community/community.client.js +1 -1
- package/src/modules/events/events.client.js +1 -1
- package/src/modules/gallery/gallery.client.js +1 -1
- package/src/modules/globals/globals.client.js +1 -1
- 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/middlewares/middlewares.client.js +1 -1
- package/src/modules/organizations/organizations.client.js +1 -1
- package/src/modules/reports/reports.client.js +1 -1
- package/src/modules/users/users.client.js +1 -1
@@ -1,10 +1,10 @@
|
|
1
1
|
import e from "../components/layouts/Backoffice.vue.js";
|
2
|
-
import { requiresAdmin as
|
3
|
-
const
|
2
|
+
import { requiresAdmin as o } from "../../middlewares/client/auth.validation.js";
|
3
|
+
const r = [{
|
4
4
|
path: "backoffice",
|
5
5
|
component: e,
|
6
6
|
beforeEnter: [
|
7
|
-
|
7
|
+
o
|
8
8
|
],
|
9
9
|
children: [
|
10
10
|
{
|
@@ -50,182 +50,138 @@ const i = [{
|
|
50
50
|
/* webpackChunkName: 'BackofficeGallery' */
|
51
51
|
"../../reports/components/pages/BackofficeReports.vue.js"
|
52
52
|
)
|
53
|
-
},
|
54
|
-
{
|
55
|
-
path: "organizations",
|
56
|
-
name: "Backoffice Organizations",
|
57
|
-
meta: {
|
58
|
-
title: {
|
59
|
-
en: "Backoffice Organizations",
|
60
|
-
ru: "Управление Организациями"
|
61
|
-
},
|
62
|
-
authorize: []
|
63
|
-
},
|
64
|
-
component: () => import(
|
65
|
-
/* webpackChunkName: 'BackofficeOrganizations' */
|
66
|
-
"../../organizations/components/pages/Organizations.vue.js"
|
67
|
-
)
|
68
|
-
},
|
69
|
-
{
|
70
|
-
path: "events",
|
71
|
-
name: "Backoffice Events",
|
72
|
-
meta: {
|
73
|
-
title: {
|
74
|
-
en: "Backoffice Events",
|
75
|
-
ru: "Управление Событиями"
|
76
|
-
},
|
77
|
-
authorize: []
|
78
|
-
},
|
79
|
-
component: () => import(
|
80
|
-
/* webpackChunkName: 'BackofficeEvents' */
|
81
|
-
"../../events/components/pages/Events.vue.js"
|
82
|
-
)
|
83
|
-
},
|
84
|
-
{
|
85
|
-
path: "community",
|
86
|
-
name: "Backoffice Community",
|
87
|
-
meta: {
|
88
|
-
title: {
|
89
|
-
en: "Backoffice Community",
|
90
|
-
ru: "Управление Сообществом"
|
91
|
-
},
|
92
|
-
authorize: []
|
93
|
-
},
|
94
|
-
component: () => import(
|
95
|
-
/* webpackChunkName: 'BackofficeCommunity' */
|
96
|
-
"../../community/components/pages/Community.vue.js"
|
97
|
-
)
|
98
|
-
},
|
99
|
-
{
|
100
|
-
path: "products",
|
101
|
-
name: "Backoffice Products",
|
102
|
-
meta: {
|
103
|
-
title: {
|
104
|
-
en: "Backoffice Products",
|
105
|
-
ru: "Управление Продуктами"
|
106
|
-
},
|
107
|
-
authorize: []
|
108
|
-
},
|
109
|
-
component: () => import(
|
110
|
-
/* webpackChunkName: 'BackofficeProducts' */
|
111
|
-
"../../products/components/pages/ProductsBackoffice.vue.js"
|
112
|
-
)
|
113
|
-
},
|
114
|
-
{
|
115
|
-
path: "products/add",
|
116
|
-
name: "AddProduct",
|
117
|
-
component: () => import("../../products/components/pages/ProductEdit.vue.js")
|
118
|
-
},
|
119
|
-
{
|
120
|
-
path: "products/:product",
|
121
|
-
name: "Product Backofffice",
|
122
|
-
meta: {
|
123
|
-
title: {
|
124
|
-
en: "Product",
|
125
|
-
ru: "Продукт"
|
126
|
-
}
|
127
|
-
},
|
128
|
-
component: () => import("../../products/components/pages/Product.vue.js")
|
129
|
-
},
|
130
|
-
{
|
131
|
-
path: "products/:product/edit",
|
132
|
-
name: "ProductEdit",
|
133
|
-
beforeEnter: [o],
|
134
|
-
component: () => import("../../products/components/pages/ProductEdit.vue.js")
|
135
|
-
},
|
136
|
-
{
|
137
|
-
path: "leftovers",
|
138
|
-
name: "Backoffice Leftovers",
|
139
|
-
meta: {
|
140
|
-
title: {
|
141
|
-
en: "Backoffice Leftovers",
|
142
|
-
ru: "Управление Остатками"
|
143
|
-
},
|
144
|
-
authorize: []
|
145
|
-
},
|
146
|
-
component: () => import(
|
147
|
-
/* webpackChunkName: 'BackofficeLeftovers' */
|
148
|
-
"../../products/components/pages/Leftovers.vue.js"
|
149
|
-
)
|
150
|
-
},
|
151
|
-
{
|
152
|
-
path: "leftovers/add",
|
153
|
-
name: "LeftoverAdd",
|
154
|
-
meta: {
|
155
|
-
title: {
|
156
|
-
en: "Backoffice Leftovers",
|
157
|
-
ru: "Управление Остатками"
|
158
|
-
},
|
159
|
-
authorize: []
|
160
|
-
},
|
161
|
-
component: () => import(
|
162
|
-
/* webpackChunkName: 'LeftoverEdit' */
|
163
|
-
"../../products/components/pages/LeftoverAdd.vue.js"
|
164
|
-
)
|
165
|
-
},
|
166
|
-
{
|
167
|
-
path: "leftovers/:_id",
|
168
|
-
name: "LeftoverEdit",
|
169
|
-
meta: {
|
170
|
-
title: {
|
171
|
-
en: "Backoffice Leftovers",
|
172
|
-
ru: "Управление Остатками"
|
173
|
-
},
|
174
|
-
authorize: []
|
175
|
-
},
|
176
|
-
component: () => import(
|
177
|
-
/* webpackChunkName: 'LeftoverEdit' */
|
178
|
-
"../../products/components/pages/LeftoverAdd.vue.js"
|
179
|
-
)
|
180
|
-
},
|
181
|
-
{
|
182
|
-
path: "orders",
|
183
|
-
name: "Backoffice Orders",
|
184
|
-
meta: {
|
185
|
-
title: {
|
186
|
-
en: "Backoffice Orders",
|
187
|
-
ru: "Управление Заказами"
|
188
|
-
},
|
189
|
-
authorize: []
|
190
|
-
},
|
191
|
-
component: () => import(
|
192
|
-
/* webpackChunkName: 'BackofficeOrders' */
|
193
|
-
"../../orders/components/pages/Orders.vue.js"
|
194
|
-
)
|
195
|
-
},
|
196
|
-
{
|
197
|
-
path: "orders/add",
|
198
|
-
name: "AdminOrder",
|
199
|
-
component: () => import(
|
200
|
-
/* webpackChunkName: 'AdminOrders' */
|
201
|
-
"../../orders/components/pages/EditOrder.vue.js"
|
202
|
-
)
|
203
|
-
},
|
204
|
-
{
|
205
|
-
path: "orders/:_id",
|
206
|
-
name: "AdminOrderEdit",
|
207
|
-
component: () => import(
|
208
|
-
/* webpackChunkName: 'AdminOrders' */
|
209
|
-
"../../orders/components/pages/EditOrder.vue.js"
|
210
|
-
)
|
211
|
-
},
|
212
|
-
{
|
213
|
-
path: "payments",
|
214
|
-
name: "Backoffice Payments",
|
215
|
-
meta: {
|
216
|
-
title: {
|
217
|
-
en: "Backoffice Payments",
|
218
|
-
ru: "Управление Платежами"
|
219
|
-
},
|
220
|
-
authorize: []
|
221
|
-
},
|
222
|
-
component: () => import(
|
223
|
-
/* webpackChunkName: 'BackofficePayments' */
|
224
|
-
"../../payments/components/pages/Payments.vue.js"
|
225
|
-
)
|
226
53
|
}
|
54
|
+
// {
|
55
|
+
// path: 'organizations',
|
56
|
+
// name: 'Backoffice Organizations',
|
57
|
+
// meta: {
|
58
|
+
// title: {
|
59
|
+
// en: 'Backoffice Organizations',
|
60
|
+
// ru: 'Управление Организациями'
|
61
|
+
// },
|
62
|
+
// authorize: []
|
63
|
+
// },
|
64
|
+
// component: () => import(/* webpackChunkName: 'BackofficeOrganizations' */ '@pf/src/modules/organizations/components/pages/Organizations.vue'),
|
65
|
+
// },{
|
66
|
+
// path: 'events',
|
67
|
+
// name: 'Backoffice Events',
|
68
|
+
// meta: {
|
69
|
+
// title: {
|
70
|
+
// en: 'Backoffice Events',
|
71
|
+
// ru: 'Управление Событиями'
|
72
|
+
// },
|
73
|
+
// authorize: []
|
74
|
+
// },
|
75
|
+
// component: () => import(/* webpackChunkName: 'BackofficeEvents' */ '@pf/src/modules/events/components/pages/Events.vue'),
|
76
|
+
// },{
|
77
|
+
// path: 'community',
|
78
|
+
// name: 'Backoffice Community',
|
79
|
+
// meta: {
|
80
|
+
// title: {
|
81
|
+
// en: 'Backoffice Community',
|
82
|
+
// ru: 'Управление Сообществом'
|
83
|
+
// },
|
84
|
+
// authorize: []
|
85
|
+
// },
|
86
|
+
// component: () => import(/* webpackChunkName: 'BackofficeCommunity' */ '@pf/src/modules/community/components/pages/Community.vue'),
|
87
|
+
// },{
|
88
|
+
// path: 'products',
|
89
|
+
// name: 'Backoffice Products',
|
90
|
+
// meta: {
|
91
|
+
// title: {
|
92
|
+
// en: 'Backoffice Products',
|
93
|
+
// ru: 'Управление Продуктами'
|
94
|
+
// },
|
95
|
+
// authorize: []
|
96
|
+
// },
|
97
|
+
// component: () => import(/* webpackChunkName: 'BackofficeProducts' */ '@pf/src/modules/products/components/pages/ProductsBackoffice.vue'),
|
98
|
+
// },{
|
99
|
+
// path: 'products/add',
|
100
|
+
// name: 'AddProduct',
|
101
|
+
// component: () => import('@pf/src/modules/products/components/pages/ProductEdit.vue')
|
102
|
+
// },{
|
103
|
+
// path: 'products/:product',
|
104
|
+
// name: 'Product Backofffice',
|
105
|
+
// meta: {
|
106
|
+
// title: {
|
107
|
+
// en: 'Product',
|
108
|
+
// ru: 'Продукт'
|
109
|
+
// }
|
110
|
+
// },
|
111
|
+
// component: () => import('@pf/src/modules/products/components/pages/Product.vue')
|
112
|
+
// }, {
|
113
|
+
// path: 'products/:product/edit',
|
114
|
+
// name: 'ProductEdit',
|
115
|
+
// beforeEnter: [validationAuth.requiresAuth],
|
116
|
+
// component: () => import('@pf/src/modules/products/components/pages/ProductEdit.vue')
|
117
|
+
// },{
|
118
|
+
// path: 'leftovers',
|
119
|
+
// name: 'Backoffice Leftovers',
|
120
|
+
// meta: {
|
121
|
+
// title: {
|
122
|
+
// en: 'Backoffice Leftovers',
|
123
|
+
// ru: 'Управление Остатками'
|
124
|
+
// },
|
125
|
+
// authorize: []
|
126
|
+
// },
|
127
|
+
// component: () => import(/* webpackChunkName: 'BackofficeLeftovers' */ '@pf/src/modules/products/components/pages/Leftovers.vue'),
|
128
|
+
// },{
|
129
|
+
// path: 'leftovers/add',
|
130
|
+
// name: 'LeftoverAdd',
|
131
|
+
// meta: {
|
132
|
+
// title: {
|
133
|
+
// en: 'Backoffice Leftovers',
|
134
|
+
// ru: 'Управление Остатками'
|
135
|
+
// },
|
136
|
+
// authorize: []
|
137
|
+
// },
|
138
|
+
// component: () => import(/* webpackChunkName: 'LeftoverEdit' */ '@pf/src/modules/products/components/pages/LeftoverAdd.vue')
|
139
|
+
// },
|
140
|
+
// {
|
141
|
+
// path: 'leftovers/:_id',
|
142
|
+
// name: 'LeftoverEdit',
|
143
|
+
// meta: {
|
144
|
+
// title: {
|
145
|
+
// en: 'Backoffice Leftovers',
|
146
|
+
// ru: 'Управление Остатками'
|
147
|
+
// },
|
148
|
+
// authorize: []
|
149
|
+
// },
|
150
|
+
// component: () => import(/* webpackChunkName: 'LeftoverEdit' */ '@pf/src/modules/products/components/pages/LeftoverAdd.vue')
|
151
|
+
// },
|
152
|
+
// {
|
153
|
+
// path: 'orders',
|
154
|
+
// name: 'Backoffice Orders',
|
155
|
+
// meta: {
|
156
|
+
// title: {
|
157
|
+
// en: 'Backoffice Orders',
|
158
|
+
// ru: 'Управление Заказами'
|
159
|
+
// },
|
160
|
+
// authorize: []
|
161
|
+
// },
|
162
|
+
// component: () => import(/* webpackChunkName: 'BackofficeOrders' */ '@pf/src/modules/orders/components/pages/Orders.vue'),
|
163
|
+
// },{
|
164
|
+
// path: 'orders/add',
|
165
|
+
// name: 'AdminOrder',
|
166
|
+
// component: () => import(/* webpackChunkName: 'AdminOrders' */ '@pf/src/modules/orders/components/pages/EditOrder.vue')
|
167
|
+
// },{
|
168
|
+
// path: 'orders/:_id',
|
169
|
+
// name: 'AdminOrderEdit',
|
170
|
+
// component: () => import(/* webpackChunkName: 'AdminOrders' */ '@pf/src/modules/orders/components/pages/EditOrder.vue')
|
171
|
+
// },{
|
172
|
+
// path: 'payments',
|
173
|
+
// name: 'Backoffice Payments',
|
174
|
+
// meta: {
|
175
|
+
// title: {
|
176
|
+
// en: 'Backoffice Payments',
|
177
|
+
// ru: 'Управление Платежами'
|
178
|
+
// },
|
179
|
+
// authorize: []
|
180
|
+
// },
|
181
|
+
// component: () => import(/* webpackChunkName: 'BackofficePayments' */ '@pf/src/modules/payments/components/pages/Payments.vue'),
|
182
|
+
// }
|
227
183
|
]
|
228
184
|
}];
|
229
185
|
export {
|
230
|
-
|
186
|
+
r as default
|
231
187
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./components/layouts/Community.vue.cjs"),t=require("./components/pages/CreateBlogPost.vue.cjs"),o=require("./components/pages/BlogPost.vue.cjs"),r=require("./components/pages/Blog.vue.cjs"),s=require("./components/blocks/FooterBlogpost.vue.cjs"),u=require("./components/blocks/Activity.vue.cjs"),l=require("./components/blocks/CardBlogpost.vue.cjs"),i=require("./components/sections/Feed.vue.cjs"),n=require("./components/sections/SubscribeNewsletter.vue.cjs"),c=require("./components/sections/JoinUs.vue.cjs"),a=require("./components/sections/Comments.vue.cjs"),d=require("./components/sections/HotPosts.vue.cjs"),g=require("./store/blogposts.cjs"),q=require("./store/reactions.cjs"),f=require("./router/blogposts.cjs");exports.Community=e.default;exports.CreateBlogPost=t.default;exports.BlogPost=o.default;exports.Blog=r.default;exports.FooterBlogpost=s.default;exports.Activity=u.default;exports.CardBlogpost=l.default;exports.Feed=i.default;exports.SubscribeNewsletter=n.default;exports.JoinUs=c.default;exports.Comments=a.default;exports.HotPosts=d.default;exports.blogpostsStore=g;exports.reactionsStore=q;exports.blogpostsRoutes=f.default;
|
@@ -1,35 +1,32 @@
|
|
1
|
-
import
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import
|
9
|
-
import
|
10
|
-
import
|
11
|
-
import
|
12
|
-
import
|
13
|
-
import * as
|
14
|
-
import * as
|
15
|
-
import
|
16
|
-
const A = {
|
17
|
-
Community: o,
|
18
|
-
CreateBlogPost: m,
|
19
|
-
BlogPost: t,
|
20
|
-
Blog: r,
|
21
|
-
FooterBlogpost: i,
|
22
|
-
Activity: s,
|
23
|
-
CardBlogpost: f,
|
24
|
-
Feed: _,
|
25
|
-
SubscribeNewsletter: p,
|
26
|
-
JoinUs: a,
|
27
|
-
Comments: n,
|
28
|
-
HotPosts: c,
|
29
|
-
blogpostsStore: e,
|
30
|
-
reactionsStore: l,
|
31
|
-
blogpostsRoutes: $
|
32
|
-
};
|
1
|
+
import { default as s } from "./components/layouts/Community.vue.js";
|
2
|
+
import { default as f } from "./components/pages/CreateBlogPost.vue.js";
|
3
|
+
import { default as p } from "./components/pages/BlogPost.vue.js";
|
4
|
+
import { default as u } from "./components/pages/Blog.vue.js";
|
5
|
+
import { default as x } from "./components/blocks/FooterBlogpost.vue.js";
|
6
|
+
import { default as g } from "./components/blocks/Activity.vue.js";
|
7
|
+
import { default as n } from "./components/blocks/CardBlogpost.vue.js";
|
8
|
+
import { default as c } from "./components/sections/Feed.vue.js";
|
9
|
+
import { default as P } from "./components/sections/SubscribeNewsletter.vue.js";
|
10
|
+
import { default as y } from "./components/sections/JoinUs.vue.js";
|
11
|
+
import { default as v } from "./components/sections/Comments.vue.js";
|
12
|
+
import { default as A } from "./components/sections/HotPosts.vue.js";
|
13
|
+
import * as o from "./store/blogposts.js";
|
14
|
+
import * as t from "./store/reactions.js";
|
15
|
+
import { default as J } from "./router/blogposts.js";
|
33
16
|
export {
|
34
|
-
|
17
|
+
g as Activity,
|
18
|
+
u as Blog,
|
19
|
+
p as BlogPost,
|
20
|
+
n as CardBlogpost,
|
21
|
+
v as Comments,
|
22
|
+
s as Community,
|
23
|
+
f as CreateBlogPost,
|
24
|
+
c as Feed,
|
25
|
+
x as FooterBlogpost,
|
26
|
+
A as HotPosts,
|
27
|
+
y as JoinUs,
|
28
|
+
P as SubscribeNewsletter,
|
29
|
+
J as blogpostsRoutes,
|
30
|
+
o as blogpostsStore,
|
31
|
+
t as reactionsStore
|
35
32
|
};
|
package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("vue-router");const i=require("../../store/reactions.cjs"),p={class:"t-semi br-top-dark flex-nowrap flex-nojustify flex"},m=e.createElementVNode("span",{class:"mn-r-small mn-l-small d-block"},"·",-1),g={class:"cursor-pointer"},
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("vue-router");const i=require("../../store/reactions.cjs"),p={class:"t-semi br-top-dark flex-nowrap flex-nojustify flex"},m=e.createElementVNode("span",{class:"mn-r-small mn-l-small d-block"},"·",-1),g={class:"cursor-pointer"},v=e.createElementVNode("span",{class:"mn-r-small mn-l-small d-block"},"·",-1),f={__name:"FooterBlogpost",props:["blogpost","owner","user"],setup(l){const o=l,r=e.ref(o.blogpost.numberOfReactions),a=e.ref(o.blogpost.isReacted),s=e.ref(o.blogpost.reactionId);async function u(c){if(!o.user){alert("Please login to add a reaction");return}try{const t={target:o.blogpost._id,type:"blogpost",user:o.user,class:"like"},n=await i.actions.create(t);n.reaction.class==="like"&&(r.value+=1,a.value=!0,s.value=n.reaction._id)}catch(t){console.error(t),alert("Error adding reaction. Please try again later.")}}async function d(c){if(!o.user){alert("Please login to add a reaction");return}try{const t={_id:s.value};await i.actions.delete(t),r.value-=1,a.value=!1,s.value=null}catch{alert("Error adding reaction. Please try again later.")}}return(c,t)=>(e.openBlock(),e.createElementBlock("footer",p,[e.createTextVNode(" 👁️ "+e.toDisplayString(l.blogpost.views)+" ",1),m,e.createElementVNode("div",g,[a.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"cursor-pointer",onClick:t[0]||(t[0]=n=>u())}," 👍 "+e.toDisplayString(r.value),1)),a.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:"cursor-pointer",onClick:t[1]||(t[1]=n=>d())}," 👍 "+e.toDisplayString(r.value),1)):e.createCommentVNode("",!0)]),v,e.createTextVNode(" 💬 "+e.toDisplayString(l.blogpost.numberOfComments),1)]))}};exports.default=f;
|
package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router"),u=require("../../../../components/Select/Select.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router"),u=require("../../../../components/Select/Select.vue.cjs"),a=require("../../store/blogposts.cjs"),c=require("../../../auth/store/auth.cjs"),m={class:"min-h-100vh pd-thin"},d={class:"mn-thin flex-v-center t-left flex-nowrap flex"},p={class:"flex-v-center flex-nowrap flex t-left"},f=e.createElementVNode("span",{class:""},"Topics for ",-1),g={class:"w-100 bg-grey pd-small radius-big mn-semi gap-thin flex-nowrap flex"},h={class:""},w={__name:"Community",setup(k){const l=n.useRoute(),r=n.useRouter();return(y,t)=>{const s=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",d,[e.createElementVNode("h2",p,[f,e.createVNode(u.default,{options:["today","week","month","year"],select:a.state.filter.period,"onUpdate:select":t[0]||(t[0]=o=>a.state.filter.period=o),placeholder:"Select type",class:"w-max mn-l-small bg-grey pd-thin radius-medium h2 t-center t-black"},null,8,["select"])])]),e.createElementVNode("ul",g,[e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="featured"},"t-medium pd-thin radius-small"]),onClick:t[1]||(t[1]=o=>e.unref(r).push({name:"Blog"}))},"👑 Featured",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="popular"},"t-medium pd-thin radius-small"]),onClick:t[2]||(t[2]=o=>e.unref(r).push({name:"Blog",params:{category:"popular"}}))},"🔥 Popular",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="new"},"t-medium pd-thin radius-small"]),onClick:t[3]||(t[3]=o=>e.unref(r).push({name:"Blog",params:{category:"new"}}))},"🆕 New",2),c.state.user._id?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="following"},"t-medium pd-thin radius-small"]),onClick:t[4]||(t[4]=o=>e.unref(r).push({name:"Blog",params:{category:"following"}}))},"👥 Following",2)):e.createCommentVNode("",!0)]),e.createElementVNode("section",h,[e.createVNode(s,null,{default:e.withCtx(({Component:o,route:i})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o),{ref:"page",key:i.query}))]),_:2},1024)]),_:1})])])}}};exports.default=w;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { resolveComponent as f, openBlock as n, createElementBlock as m, createElementVNode as o, createVNode as i, normalizeClass as r, unref as t, createCommentVNode as g, withCtx as p, Transition as h, createBlock as w, resolveDynamicComponent as y } from "vue";
|
2
2
|
import { useRoute as _, useRouter as k } from "vue-router";
|
3
|
-
import b from "../../../../components/Select/Select.
|
3
|
+
import b from "../../../../components/Select/Select.vue.js";
|
4
4
|
import { state as c } from "../../store/blogposts.js";
|
5
5
|
import { state as v } from "../../../auth/store/auth.js";
|
6
6
|
const x = { class: "min-h-100vh pd-thin" }, C = { class: "mn-thin flex-v-center t-left flex-nowrap flex" }, B = { class: "flex-v-center flex-nowrap flex t-left" }, $ = /* @__PURE__ */ o("span", { class: "" }, "Topics for ", -1), N = { class: "w-100 bg-grey pd-small radius-big mn-semi gap-thin flex-nowrap flex" }, V = { class: "" }, D = {
|
package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("../../../constructor/components/elements/Textarea.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("../../../constructor/components/elements/Textarea.vue.cjs"),V=require("../../../constructor/components/sections/Constructor.vue.cjs"),y=require("../../../../components/Popup/Popup.vue.cjs");require("../../../../components/FieldTags/tag-input.vue.cjs");require("../../../../components/FieldTags/vue-tags-input.scss.cjs");const B=require("../../../../components/FieldTags/BlockTags.vue.cjs"),N=require("../../../../components/Checkbox/Checkbox.vue.cjs"),P=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),x=require("../../../../components/Button/Button.vue.cjs"),f=require("vue-router"),n=require("../../store/blogposts.cjs"),i=require("../../../auth/store/auth.cjs"),C=require("../../../organizations/store/organizations.cjs"),q={class:"pd-thin"},E={key:0,class:"h-100 w-100 bg-grey pd-big radius-big"},T={class:"w-full h-full"},z={key:1,class:"pd-thin pos-sticky pos-l-0 pos-b-0 w-100"},O={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},D=e.createElementVNode("h3",{class:"mn-small"},"Final Touches",-1),M=e.createElementVNode("h5",{class:"mn-thin"},"Add to public:",-1),S={key:0,class:"mn-thin"},U={key:1,class:"mn-medium br-grey br-2px br-solid pd-small radius-big"},A={__name:"CreateBlogPost",setup(R){const s=f.useRoute(),u=f.useRouter();let t=e.ref(null),p=e.ref(null);const c=e.ref([]),r=e.ref(null);e.onMounted(async()=>{if(s.params.url){const a=await n.read({user:i.state.user._id,url:s.params.url});t.value=a.pop()}else n.clean(),t.value=n.state.current;t.value.owner||(t.value.owner={target:i.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:i.state.user._id,type:"user",hidden:!1}),t.value.owner.type==="organization"&&(r.value={_id:t.value.owner.target._id,name:t.value.owner.target.profile.name,photo:t.value.owner.target.profile.photo});const o=await C.actions.read({user:i.state.user._id,postable:i.state.user._id,limit:100});console.log(o),p.value=o.map(a=>({name:a.profile.name,_id:a._id,photo:a.profile.photo}))});const g=e.ref(""),m=e.ref([{text:"story"},{text:"news"},{text:"guide"},{text:"discussion"},{text:"photos"}]);e.computed(()=>m.value.filter(o=>o.text.toLowerCase().includes(g.value.toLowerCase()))),e.computed(()=>m.value.filter(o=>!c.value.some(a=>a.text===o.text)));const d=e.ref(!1);function v(){d.value=!0}function h(){d.value=!1}function b(){c.value.length>0&&c.value.map(o=>o.text),t.value.status="draft",s.params.url?n.update(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.log(o)}):n.create(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.log(o)})}function k(){r.value&&(t.value.owner={target:r.value._id,type:"organization"}),r.value||(t.value.creator.hidden=!1),r.value||(t.value.organization=t.value.creator),t.value.status="published",console.log(t.value),s.params.url?n.update(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.log(o)}):n.create(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.log(o)})}function _(){confirm("Are you sure you want to delete this post?")&&n.remove(t.value._id).then(o=>{u.push({name:"User Blogposts",params:{_id:t.value.creator.target._id}})}).catch(o=>{console.log(o)})}return(o,a)=>(e.openBlock(),e.createElementBlock("article",q,[e.unref(t)?(e.openBlock(),e.createElementBlock("section",E,[e.createElementVNode("div",T,[e.createVNode(w.default,{prop:e.unref(t),content:"name",placeholder:"Enter post title",class:"h2"},null,8,["prop"])]),e.createVNode(V.default,{content:e.unref(t).content,onUpdate:a[0]||(a[0]=l=>e.unref(t).content=l)},null,8,["content"])])):e.createCommentVNode("",!0),e.unref(t)?(e.openBlock(),e.createElementBlock("section",z,[e.createElementVNode("div",O,[e.unref(s).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:a[1]||(a[1]=l=>_()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:a[2]||(a[2]=l=>b()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:a[3]||(a[3]=l=>v()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0),e.createVNode(y.default,{title:"Добавить участника",onClosePopup:h,isPopupOpen:d.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[D,e.createVNode(B.default,{onTagsChanged:a[4]||(a[4]=l=>e.unref(t).tags=l),tags:e.unref(t).tags},null,8,["tags"]),M,e.createVNode(P.default,{modelValue:r.value,"onUpdate:modelValue":a[5]||(a[5]=l=>r.value=l),options:e.unref(p),multiple:!1,taggable:!1,placeholder:"Type to search or add tag",label:"name","track-by":"_id",class:"mn-medium bg-grey radius-medium pd-small"},null,8,["modelValue","options"]),r.value?(e.openBlock(),e.createElementBlock("h5",S,"Options:")):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("div",U,[e.createVNode(N.default,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":a[6]||(a[6]=l=>e.unref(t).creator.hidden=l),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode(x.default,{submit:k,callback:o.redirectTo,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode("Publish")]),_:1},8,["callback"])]),_:1},8,["isPopupOpen"])]))}};exports.default=A;
|
package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
import { ref as r, onMounted as V, computed as _, openBlock as u, createElementBlock as i, unref as a, createElementVNode as p, createVNode as n, createCommentVNode as m, withCtx as w, createTextVNode as z } from "vue";
|
2
|
-
import D from "../../../constructor/components/elements/Textarea.
|
2
|
+
import D from "../../../constructor/components/elements/Textarea.vue.js";
|
3
3
|
import N from "../../../constructor/components/sections/Constructor.vue.js";
|
4
|
-
import O from "../../../../components/Popup/Popup.
|
4
|
+
import O from "../../../../components/Popup/Popup.vue.js";
|
5
5
|
import "../../../../components/FieldTags/tag-input.vue.js";
|
6
6
|
import "../../../../components/FieldTags/vue-tags-input.scss.js";
|
7
7
|
import U from "../../../../components/FieldTags/BlockTags.vue.js";
|
8
8
|
import A from "../../../../components/Checkbox/Checkbox.vue.js";
|
9
9
|
import E from "../../../../components/SelectMulti/SelectMulti.vue.js";
|
10
|
-
import L from "../../../../components/Button/Button.
|
10
|
+
import L from "../../../../components/Button/Button.vue.js";
|
11
11
|
import { useRoute as M, useRouter as R } from "vue-router";
|
12
12
|
import { read as S, clean as F, state as H, update as k, create as y, remove as j } from "../../store/blogposts.js";
|
13
13
|
import { state as f } from "../../../auth/store/auth.js";
|
package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("./Feed.vue.cjs");require("../../store/blogposts.cjs");const
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("./Feed.vue.cjs");require("../../store/blogposts.cjs");const s=require("../../../auth/store/auth.cjs");require("./HotPosts.vue2.cjs");const r=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),c=t=>(e.pushScopeId("data-v-2591cab6"),t=t(),e.popScopeId(),t),u={class:"community-feed"},i=c(()=>e.createElementVNode("h2",{class:"w-m-75r mn-auto pd-t-big pd-b-big t-center"},"Discover the Vibrant Community",-1)),a={__name:"HotPosts",setup(t){return(d,l)=>(e.openBlock(),e.createElementBlock("section",u,[i,e.createVNode(o.default,{skip:0,limit:3,user:s.state.user._id,period:"year",class:"cols-2 gap-thin"},null,8,["user"])]))}},n=r.default(a,[["__scopeId","data-v-2591cab6"]]);exports.default=n;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../../../../components/Upload/Upload.vue.cjs"),r={class:"mn-thin w-100 pd-medium bg-white radius-medium"},m=["innerHTML"],p={key:1,class:""},v={__name:"Audio",props:["label","value","prop"],emits:["input","updateBlock"],setup(t,{emit:u}){const a=t,o=e.ref(null);function s(l){return[/youtube\.com/,/soundcloud\.com/,/vimeo\.com/].some(c=>c.test(l))}function d(l){o.value=l,o.value&&s(o.value)?(u("input",o.value),u("updateBlock",a.prop,{content:o.value})):alert("Invalid embed code or source not allowed.")}return(l,n)=>(e.openBlock(),e.createElementBlock("div",r,[t.prop.content?(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:t.prop.content,class:"flex-center flex"},null,8,m)):(e.openBlock(),e.createElementBlock("div",p,[e.createVNode(i.default,{field:o.value,"onUpdate:field":n[0]||(n[0]=c=>o.value=c),onFileChange:d,type:"file",placeholder:"Enter embed code",class:"w-100 br-solid br-1px br-black-transp-10 pd-medium radius-small mn-thin"},null,8,["field"]),e.createElementVNode("button",{onClick:d,class:"button-small button"}," Save ")]))]))}};exports.default=v;
|
package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.cjs
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=["placeholder"],h={__name:"Caption",props:["obj","label","prop","value","content","textarea","placeholder","index","ref"],emits:["deleteBlock","addBlock","focus"],setup(l,{emit:
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=["placeholder"],h={__name:"Caption",props:["obj","label","prop","value","content","textarea","placeholder","index","ref"],emits:["deleteBlock","addBlock","focus"],setup(l,{emit:s}){const t=l;e.ref(t);const r=e.ref(null);function p(n){const o=/^\s*[-*]\s+(.*)/;let i=n.target.value.split(/\n+/).map(u=>{const d=o.exec(u);return d?d[1]:null}).filter(u=>u!==null);i.length>0?(t.prop[t.content]=i,a()):n.target.value.trim()===""&&(t.prop[t.content]=[],a())}function a(){r.value.style.height="1rem",r.value.style.height=r.value.scrollHeight+"px"}return e.onUpdated(()=>{a()}),e.onMounted(()=>{a()}),e.watch(()=>t.prop[t.content],n=>{(!n||n.length===0)&&s("deleteBlock",t.prop)}),(n,o)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":o[0]||(o[0]=c=>l.prop[l.content]=c),placeholder:l.placeholder?l.placeholder:"Enter text",onInput:p,onFocus:o[1]||(o[1]=c=>s("focus",r.value)),ref_key:"textarea",ref:r,class:"br-l br-solid br-main pd-l-small text-area mn-small"},`
|
2
2
|
`,40,f),[[e.vModelText,l.prop[l.content]]])]))}};exports.default=h;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../../../components/Field/Field.vue2.cjs"),i={class:"mn-thin w-100 pd-medium bg-white radius-medium"},m=["innerHTML"],p={key:1,class:""},b=e.createElementVNode("p",{class:"t-center"},"Embeds from youtube.com, vimeo.com, soundcloud.com are allowed",-1),v={__name:"Embed",props:["label","value","prop"],emits:["input","updateBlock"],setup(t,{emit:c}){const d=t,o=e.ref(null);function s(a){return[/youtube\.com/,/soundcloud\.com/,/vimeo\.com/].some(n=>n.test(a))}function u(){o.value&&s(o.value)?(c("input",o.value),c("updateBlock",d.prop,{content:o.value})):alert("Invalid embed code or source not allowed.")}return(a,l)=>(e.openBlock(),e.createElementBlock("div",i,[t.prop.content?(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:t.prop.content,class:"flex-center flex"},null,8,m)):(e.openBlock(),e.createElementBlock("div",p,[e.createVNode(r.default,{field:o.value,"onUpdate:field":l[0]||(l[0]=n=>o.value=n),type:"textarea",placeholder:"Paste your embed code here",class:"w-100 br-solid br-1px br-black-transp-10 pd-medium radius-small mn-thin"},null,8,["field"]),e.createElementVNode("div",{class:"flex-v-center flex-nowrap flex gap-small"},[b,e.createElementVNode("button",{onClick:u,class:"button-small button"}," Save ")])]))]))}};exports.default=v;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o={class:"w-100 bg-white radius-big image-upload-area flex-v-center flex-h-center flex t-black mn-small"},
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o={class:"w-100 bg-white radius-big image-upload-area flex-v-center flex-h-center flex t-black mn-small"},c=["src"],a={__name:"Image",props:["label","value","prop"],setup(t){return e.ref(null),(l,n)=>(e.openBlock(),e.createElementBlock("div",o,[t.prop.content?(e.openBlock(),e.createElementBlock("img",{key:0,src:(l.FILE_SERVER_URL||"")+t.prop.content,alt:"Uploaded image",class:"w-100 h-30r object-fit-contain"},null,8,c)):e.createCommentVNode("",!0)]))}};exports.default=a;
|
package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("../../../../../node_modules/axios/lib/axios.cjs"),k=["src"],v={key:1,class:"t-transp pd-extra"},h={__name:"ImageUpload",props:["label","value","prop"],emits:["input","updateBlock"],setup(n,{emit:r}){const p=n,l=e.ref(null),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("../../../../../node_modules/axios/lib/axios.cjs"),k=["src"],v={key:1,class:"t-transp pd-extra"},h={__name:"ImageUpload",props:["label","value","prop"],emits:["input","updateBlock"],setup(n,{emit:r}){const p=n,l=e.ref(null),s=e.ref(null);function u(){s.value.click()}async function i(t){let o=t.target.files[0];console.log(o);let a=new FormData,f="unsorted";a.append("file",o),console.log(a.has("file"));try{let m=await g.default.create({baseURL:process.env.API_URL,withCredentials:!0}).post(`/api/upload/file?folderName=${encodeURIComponent(f)}`,a,{headers:{"Content-Type":"multipart/form-data"}});l.value=m.data.filepath,console.log(l.value),r("input",l.value),r("updateBlock",p.prop,{content:l.value})}catch(c){console.error(c)}}function d(t){t.preventDefault(),i({target:{files:t.dataTransfer.files}})}return(t,o)=>(e.openBlock(),e.createElementBlock("div",{onClick:u,onDrop:d,onDragover:o[0]||(o[0]=e.withModifiers(()=>{},["prevent"])),class:"w-100 radius-big bg-white image-upload-area flex-v-center flex-h-center flex t-black mn-small"},[n.prop.content?(e.openBlock(),e.createElementBlock("img",{key:0,src:(t.FILE_SERVER_URL||"")+n.prop.content,alt:"Uploaded image",class:"w-100 h-30r object-fit-contain"},null,8,k)):(e.openBlock(),e.createElementBlock("span",v,"Click or drag-and-drop your image")),e.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:s,onChange:i,style:{display:"none"}},null,544)],32))}};exports.default=h;
|
package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs
CHANGED
@@ -1 +1,4 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Textarea.vue2.cjs");const f=["placeholder"],k={__name:"Textarea",props:["prop","value","content","placeholder","index","setFocus"],emits:["deleteBlock","updateBlock","addBlock","focus"],setup(l,{emit:c}){const t=l;e.ref(t);const o=e.ref(null);e.ref(0);function d(a){let n=a.target.value.split(/\n+/);if(n.length>1){t.prop[t.content]=n[0],e.nextTick(()=>{r()});let u=n.slice(1).map(p=>({__name:"Textarea",content:p}));c("addBlock","Textarea","",t.index,{blocks:u,ref:o})}else a.target.value.trim()===""&&a.target.value.includes(`
|
2
|
+
|
3
|
+
`)&&(console.log("We are adding new block:"+t.index+newBlocks+o),c("addBlock","Textarea","",t.index,{blocks:newBlocks,ref:o})),r()}function i(a){(a.keyCode===8||a.keyCode===46)&&t.prop[t.content].trim()===""&&c("deleteBlock",t.prop)}function s(){e.nextTick(()=>{o.value.focus(),c("updateBlock",t.prop,{setFocus:!1})})}function r(){o.value.style.height="1rem",o.value.style.height=o.value.scrollHeight+"px"}return e.onUpdated(()=>{t.setFocus&&e.nextTick(()=>{s()}),r()}),e.onMounted(()=>{t.setFocus&&e.nextTick(()=>{s()}),r()}),(a,n)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":n[0]||(n[0]=u=>l.prop[l.content]=u),placeholder:l.placeholder?l.placeholder:"Enter text",onInput:d,onFocus:n[1]||(n[1]=u=>c("focus",o.value)),onKeyup:i,ref_key:"textarea",ref:o,class:"text-area mn-thin"},`
|
4
|
+
`,40,f),[[e.vModelText,l.prop[l.content]]])]))}};exports.default=k;
|
package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js
CHANGED
@@ -1,4 +1,63 @@
|
|
1
|
-
|
1
|
+
import { ref as d, onUpdated as k, nextTick as s, onMounted as x, openBlock as h, createElementBlock as B, withDirectives as m, createElementVNode as g, vModelText as v } from "vue";
|
2
|
+
import "./Textarea.vue2.js";
|
3
|
+
const y = ["placeholder"], F = {
|
4
|
+
__name: "Textarea",
|
5
|
+
props: ["prop", "value", "content", "placeholder", "index", "setFocus"],
|
6
|
+
emits: ["deleteBlock", "updateBlock", "addBlock", "focus"],
|
7
|
+
setup(l, { emit: a }) {
|
8
|
+
const e = l;
|
9
|
+
d(e);
|
10
|
+
const t = d(null);
|
11
|
+
d(0);
|
12
|
+
function i(n) {
|
13
|
+
let o = n.target.value.split(/\n+/);
|
14
|
+
if (o.length > 1) {
|
15
|
+
e.prop[e.content] = o[0], s(() => {
|
16
|
+
c();
|
17
|
+
});
|
18
|
+
let r = o.slice(1).map((f) => ({ __name: "Textarea", content: f }));
|
19
|
+
a("addBlock", "Textarea", "", e.index, { blocks: r, ref: t });
|
20
|
+
} else
|
21
|
+
n.target.value.trim() === "" && n.target.value.includes(`
|
22
|
+
|
23
|
+
`) && (console.log("We are adding new block:" + e.index + newBlocks + t), a("addBlock", "Textarea", "", e.index, { blocks: newBlocks, ref: t })), c();
|
24
|
+
}
|
25
|
+
function p(n) {
|
26
|
+
(n.keyCode === 8 || n.keyCode === 46) && e.prop[e.content].trim() === "" && a("deleteBlock", e.prop);
|
27
|
+
}
|
28
|
+
function u() {
|
29
|
+
s(() => {
|
30
|
+
t.value.focus(), a("updateBlock", e.prop, { setFocus: !1 });
|
31
|
+
});
|
32
|
+
}
|
33
|
+
function c() {
|
34
|
+
t.value.style.height = "1rem", t.value.style.height = t.value.scrollHeight + "px";
|
35
|
+
}
|
36
|
+
return k(() => {
|
37
|
+
e.setFocus && s(() => {
|
38
|
+
u();
|
39
|
+
}), c();
|
40
|
+
}), x(() => {
|
41
|
+
e.setFocus && s(() => {
|
42
|
+
u();
|
43
|
+
}), c();
|
44
|
+
}), (n, o) => (h(), B("div", null, [
|
45
|
+
m(g("textarea", {
|
46
|
+
"onUpdate:modelValue": o[0] || (o[0] = (r) => l.prop[l.content] = r),
|
47
|
+
placeholder: l.placeholder ? l.placeholder : "Enter text",
|
48
|
+
onInput: i,
|
49
|
+
onFocus: o[1] || (o[1] = (r) => a("focus", t.value)),
|
50
|
+
onKeyup: p,
|
51
|
+
ref_key: "textarea",
|
52
|
+
ref: t,
|
53
|
+
class: "text-area mn-thin"
|
54
|
+
}, `
|
55
|
+
`, 40, y), [
|
56
|
+
[v, l.prop[l.content]]
|
57
|
+
])
|
58
|
+
]));
|
59
|
+
}
|
60
|
+
};
|
2
61
|
export {
|
3
|
-
|
62
|
+
F as default
|
4
63
|
};
|