@ozdao/prometheus-framework 0.2.250 → 0.2.252
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/builder.js +8 -9
- package/dist/builder.mjs +8 -9
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +2 -2
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +2 -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/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +1 -1
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +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/BlogPost.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +4 -4
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +3 -3
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +3 -3
- 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/blocks/CardEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -2
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -2
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js.map +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 +3 -3
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/events.client.cjs +35 -13
- package/dist/prometheus-framework/src/modules/events/events.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/events.client.js +41 -19
- package/dist/prometheus-framework/src/modules/events/events.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/router/events.cjs +95 -91
- package/dist/prometheus-framework/src/modules/events/router/events.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/router/events.js +94 -90
- package/dist/prometheus-framework/src/modules/events/router/events.js.map +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +5 -5
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/globals/globals.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/globals.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +4 -4
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +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/CardOrganization.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 +5 -5
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +5 -5
- 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/OrganizationEdit.vue.cjs +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTabSection.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +2 -10
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +3 -11
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.js.map +1 -1
- package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +785 -772
- package/dist/prometheus-framework/src/modules/pages/pages.client.js +785 -772
- package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/store/pages.cjs +5 -7
- package/dist/prometheus-framework/src/modules/pages/views/store/pages.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/store/pages.js +1 -3
- package/dist/prometheus-framework/src/modules/pages/views/store/pages.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.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/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 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.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 +4 -4
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/products/components/sections/MenuSection.vue.cjs +128 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/MenuSection.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/MenuSection.vue.js +128 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/MenuSection.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.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/products/products.client.cjs +2 -0
- package/dist/prometheus-framework/src/modules/products/products.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/products.client.js +24 -22
- package/dist/prometheus-framework/src/modules/products/products.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +4 -4
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +4 -4
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +5 -5
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +5 -5
- package/package.json +1 -1
- package/src/builder/webpack/webpack.config.spa.js +7 -7
- package/src/modules/events/components/elements/ButtonCheck.vue +11 -11
- package/src/modules/events/components/pages/EventsBackoffice.vue +1 -1
- package/src/modules/events/events.client.js +43 -18
- package/src/modules/events/router/events.js +79 -66
- package/src/modules/globals/globals.client.js +15 -14
- package/src/modules/governance/controllers/factories/initiatives.controller.js +94 -0
- package/src/modules/governance/controllers/factories/tasks.controller.js +94 -0
- package/src/modules/governance/controllers/factories/votes.controller.js +68 -0
- package/src/modules/governance/controllers/factories/votings.controller.js +112 -0
- package/src/modules/governance/controllers/routes/initiatives.routes.js +13 -0
- package/src/modules/governance/controllers/routes/tasks.routes.js +13 -0
- package/src/modules/governance/controllers/routes/votes.routes.js +11 -0
- package/src/modules/governance/controllers/routes/votings.routes.js +14 -0
- package/src/modules/governance/governance.client.js +62 -0
- package/src/modules/governance/governance.server.js +56 -0
- package/src/modules/governance/models/initiative.model.js +25 -0
- package/src/modules/governance/models/task.model.js +21 -0
- package/src/modules/governance/models/vote.model.js +20 -0
- package/src/modules/governance/models/voting.model.js +22 -0
- package/src/modules/governance/views/components/blocks/CardInitiativeItem.vue +18 -0
- package/src/modules/governance/views/components/blocks/CardTaskItem.vue +19 -0
- package/src/modules/governance/views/components/blocks/CardVotingItem.vue +18 -0
- package/src/modules/governance/views/components/pages/Initiative.vue +22 -0
- package/src/modules/governance/views/components/pages/InitiativeCreate.vue +24 -0
- package/src/modules/governance/views/components/pages/Initiatives.vue +19 -0
- package/src/modules/governance/views/components/pages/Task.vue +23 -0
- package/src/modules/governance/views/components/pages/TaskCreate.vue +25 -0
- package/src/modules/governance/views/components/pages/Tasks.vue +19 -0
- package/src/modules/governance/views/components/pages/Voting.vue +30 -0
- package/src/modules/governance/views/components/pages/VotingCreate.vue +25 -0
- package/src/modules/governance/views/components/pages/Votings.vue +19 -0
- package/src/modules/governance/views/components/partials/RewardDisplay.vue +19 -0
- package/src/modules/governance/views/components/partials/VoteDisplay.vue +21 -0
- package/src/modules/governance/views/components/partials/VotingResult.vue +21 -0
- package/src/modules/governance/views/components/sections/FormInitiativeDetails.vue +37 -0
- package/src/modules/governance/views/components/sections/FormTaskDetails.vue +41 -0
- package/src/modules/governance/views/components/sections/FormVotingDetails.vue +37 -0
- package/src/modules/governance/views/components/sections/VoteForm.vue +29 -0
- package/src/modules/governance/views/store/initiatives.js +102 -0
- package/src/modules/governance/views/store/tasks.js +104 -0
- package/src/modules/governance/views/store/votes.js +115 -0
- package/src/modules/governance/views/store/votings.js +81 -0
- package/src/modules/marketplace/router/marketplace.js +0 -1
- package/src/modules/organizations/router/organizations.js +4 -11
- package/src/modules/pages/views/store/pages.js +1 -3
- package/src/modules/products/components/sections/MenuSection.vue +8 -9
- package/src/modules/products/products.client.js +2 -2
package/package.json
CHANGED
@@ -56,13 +56,13 @@ module.exports = (projectRoot) => {
|
|
56
56
|
filename: 'index.html',
|
57
57
|
inject: 'body',
|
58
58
|
}),
|
59
|
-
new CopyWebpackPlugin({
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
})
|
59
|
+
// new CopyWebpackPlugin({
|
60
|
+
// patterns: [
|
61
|
+
// { from: path.resolve(projectRoot, "../public/logo"), to: 'logo' },
|
62
|
+
// { from: path.resolve(projectRoot, "../public/walkthrough"), to: 'walkthrough' },
|
63
|
+
// { from: path.resolve(projectRoot, "../public/icons"), to: 'icons' }
|
64
|
+
// ]
|
65
|
+
// })
|
66
66
|
// new ServiceWorkerPlugin()
|
67
67
|
],
|
68
68
|
optimization: {
|
@@ -5,16 +5,16 @@
|
|
5
5
|
</Button>
|
6
6
|
|
7
7
|
<teleport to="body" v-if="isScanning">
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
8
|
+
<div v-if="isScanning" class="barcode-scanner-modal">
|
9
|
+
<div class="square"></div>
|
10
|
+
<div class="zoom-ratio-wrapper" v-if="minZoomRatio !== undefined && maxZoomRatio !== undefined">
|
11
|
+
<input type="range" :min="minZoomRatio" :max="maxZoomRatio" @input="setZoomRatio" />
|
12
|
+
</div>
|
13
|
+
<Button @click="stopScan" class="bg-white t-black stop-scan-button">Stop Scan</Button>
|
14
|
+
<Button v-if="isTorchAvailable" @click="toggleTorch" class="bg-white torch-button">
|
15
|
+
Toggle Torch
|
16
|
+
</Button>
|
12
17
|
</div>
|
13
|
-
<Button @click="stopScan" class="bg-white t-black stop-scan-button">Stop Scan</Button>
|
14
|
-
<Button v-if="isTorchAvailable" @click="toggleTorch" class="bg-white torch-button">
|
15
|
-
Toggle Torch
|
16
|
-
</Button>
|
17
|
-
</div>
|
18
18
|
</teleport>
|
19
19
|
</div>
|
20
20
|
</template>
|
@@ -43,7 +43,7 @@ onMounted(async () => {
|
|
43
43
|
})
|
44
44
|
|
45
45
|
onUnmounted(async () => {
|
46
|
-
await stopScan()
|
46
|
+
// await stopScan()
|
47
47
|
})
|
48
48
|
|
49
49
|
const SCAN_TIMEOUT = 1000 // 5 секунд (можно изменить по вашему усмотрению)
|
@@ -133,7 +133,7 @@ async function toggleTorch() {
|
|
133
133
|
visibility: visible;
|
134
134
|
position: fixed;
|
135
135
|
top: 0;
|
136
|
-
left:
|
136
|
+
left: 0%;
|
137
137
|
width: 100%;
|
138
138
|
height: 100%;
|
139
139
|
background-color: rgba(0, 0, 0, 0);
|
@@ -1,4 +1,10 @@
|
|
1
|
-
//
|
1
|
+
// Store
|
2
|
+
import * as storeEvents from './store/events.js';
|
3
|
+
|
4
|
+
// Router
|
5
|
+
import { createEventRoutes } from './router/events';
|
6
|
+
|
7
|
+
// Views
|
2
8
|
import CardEvent from './components/blocks/CardEvent.vue';
|
3
9
|
import Feed from './components/sections/Feed.vue';
|
4
10
|
import List from './components/sections/List.vue';
|
@@ -8,22 +14,41 @@ import EditEvent from './components/pages/EditEvent.vue';
|
|
8
14
|
import EventPage from './components/pages/Event.vue';
|
9
15
|
import EventsPage from './components/pages/Events.vue';
|
10
16
|
|
11
|
-
//
|
12
|
-
|
17
|
+
// Пример функции инициализации для модуля событий
|
18
|
+
function initializeEvents(app, store, router, options = {}) {
|
19
|
+
const route = options.route || 'Home';
|
20
|
+
|
21
|
+
const routesEvents = createEventRoutes();
|
22
|
+
|
23
|
+
router.addRoute(route, routesEvents);
|
24
|
+
|
25
|
+
store.addStore('events', storeEvents);
|
26
|
+
}
|
13
27
|
|
14
|
-
|
15
|
-
|
28
|
+
const ModuleEvents = {
|
29
|
+
initialize: initializeEvents,
|
30
|
+
views: {
|
31
|
+
store: {
|
32
|
+
storeEvents
|
33
|
+
},
|
34
|
+
router: {
|
35
|
+
createEventRoutes
|
36
|
+
},
|
37
|
+
components: {
|
38
|
+
// Blocks
|
39
|
+
CardEvent,
|
40
|
+
// Sections
|
41
|
+
Feed,
|
42
|
+
List,
|
43
|
+
FeaturedEvents,
|
44
|
+
// Layouts
|
45
|
+
EventsLayout,
|
46
|
+
// Pages
|
47
|
+
EditEvent,
|
48
|
+
EventPage,
|
49
|
+
EventsPage
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
16
53
|
|
17
|
-
|
18
|
-
export {
|
19
|
-
CardEvent,
|
20
|
-
Feed,
|
21
|
-
List,
|
22
|
-
FeaturedEvents,
|
23
|
-
EventsLayout,
|
24
|
-
EditEvent,
|
25
|
-
EventPage,
|
26
|
-
EventsPage,
|
27
|
-
eventsStore,
|
28
|
-
eventsRoutes
|
29
|
-
};
|
54
|
+
export default ModuleEvents;
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import layoutEvents from '../components/layouts/layoutEvents.vue'
|
2
1
|
import * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';
|
3
2
|
|
4
|
-
|
5
|
-
{
|
6
|
-
|
7
|
-
|
3
|
+
export function createEventRoutes(prefix = '', options = {}) {
|
4
|
+
const nameWithPrefix = (name) => prefix ? `${prefix}${name}` : name;
|
5
|
+
|
6
|
+
const routes = {
|
7
|
+
path: options.basePath || 'events',
|
8
8
|
meta: {
|
9
9
|
title: {
|
10
10
|
en: 'Events',
|
@@ -12,71 +12,84 @@ const eventsRoutes = [
|
|
12
12
|
},
|
13
13
|
title_hide: true
|
14
14
|
},
|
15
|
-
children: [
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
15
|
+
children: [
|
16
|
+
{
|
17
|
+
path: '',
|
18
|
+
name: nameWithPrefix('Events'),
|
19
|
+
meta: {
|
20
|
+
title: {
|
21
|
+
en: 'Events',
|
22
|
+
ru: 'События'
|
23
|
+
},
|
24
|
+
title_hide: true
|
22
25
|
},
|
23
|
-
|
26
|
+
component: () => import(/* webpackChunkName: 'Events' */ '../components/pages/Events.vue')
|
24
27
|
},
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
28
|
+
{
|
29
|
+
path: 'backoffice',
|
30
|
+
name: nameWithPrefix('Events Backoffice'),
|
31
|
+
meta: {
|
32
|
+
title: {
|
33
|
+
en: 'Manage Events',
|
34
|
+
ru: 'Управление Событиями'
|
35
|
+
},
|
36
|
+
authorize: options.backofficeAuthorize || []
|
37
|
+
},
|
38
|
+
component: () => import(/* webpackChunkName: 'Events' */ '../components/pages/EventsBackoffice.vue')
|
34
39
|
},
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
40
|
+
{
|
41
|
+
path: 'create',
|
42
|
+
name: nameWithPrefix('Create Event'),
|
43
|
+
meta: {
|
44
|
+
title: {
|
45
|
+
en: 'Create Event',
|
46
|
+
ru: 'Создать Событие'
|
47
|
+
},
|
48
|
+
authorize: options.createEventAuthorize || []
|
49
|
+
},
|
50
|
+
component: () => import(/* webpackChunkName: 'Events' */ '../components/pages/EditEvent.vue')
|
45
51
|
},
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
}
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
52
|
+
{
|
53
|
+
path: ':url',
|
54
|
+
name: nameWithPrefix('Event'),
|
55
|
+
meta: {
|
56
|
+
title: {
|
57
|
+
en: 'Event',
|
58
|
+
ru: 'Событие'
|
59
|
+
}
|
60
|
+
},
|
61
|
+
component: () => import(/* webpackChunkName: 'Events' */ '../components/pages/Event.vue')
|
62
|
+
},
|
63
|
+
{
|
64
|
+
path: ':url/edit',
|
65
|
+
name: nameWithPrefix('Edit Event'),
|
66
|
+
meta: {
|
67
|
+
title: {
|
68
|
+
en: 'Edit Event',
|
69
|
+
ru: 'Редактировать Событие'
|
70
|
+
},
|
71
|
+
authorize: options.editEventAuthorize || []
|
72
|
+
},
|
73
|
+
component: () => import(/* webpackChunkName: 'Events' */ '../components/pages/EditEvent.vue')
|
74
|
+
},
|
75
|
+
{
|
76
|
+
path: ':url/edit/tickets',
|
77
|
+
name: nameWithPrefix('Edit Event Tickets'),
|
78
|
+
meta: {
|
79
|
+
title: {
|
80
|
+
en: 'Event Tickets',
|
81
|
+
ru: 'Билеты События'
|
82
|
+
},
|
83
|
+
authorize: options.editTicketsAuthorize || []
|
84
|
+
},
|
85
|
+
component: () => import(/* webpackChunkName: 'Events' */ '../components/pages/EditEventTickets.vue')
|
76
86
|
}
|
77
|
-
|
78
|
-
component: () => import(/* webpackChunkName: 'EditEvent' */ '../components/pages/EditEventTickets.vue')
|
87
|
+
]
|
79
88
|
}
|
80
|
-
];
|
81
89
|
|
82
|
-
|
90
|
+
return routes;
|
91
|
+
}
|
92
|
+
|
93
|
+
// Example usage:
|
94
|
+
// const eventsRoutes = createEventRoutes('Admin', { basePath: 'admin/events' });
|
95
|
+
// export default eventsRoutes;
|
@@ -14,20 +14,6 @@ import * as mixins from './views/mixins/mixins.js'
|
|
14
14
|
import * as appRenderer from './views/utils/vue-app-renderer.js';
|
15
15
|
import * as storeGlobals from './views/store/globals.js';
|
16
16
|
|
17
|
-
export {
|
18
|
-
// Client,
|
19
|
-
mixins,
|
20
|
-
scrollBehavior,
|
21
|
-
getBrowserLocale,
|
22
|
-
appRenderer,
|
23
|
-
// Store
|
24
|
-
storeGlobals,
|
25
|
-
// Components
|
26
|
-
layoutClient,
|
27
|
-
layoutApp,
|
28
|
-
Header,
|
29
|
-
Sidebar
|
30
|
-
};
|
31
17
|
|
32
18
|
// Пример функции инициализации для модуля заказов
|
33
19
|
function initializeGlobals(app, store, router, options = {}) {
|
@@ -100,4 +86,19 @@ const ModuleGlobals = {
|
|
100
86
|
}
|
101
87
|
}
|
102
88
|
|
89
|
+
export {
|
90
|
+
// Client,
|
91
|
+
mixins,
|
92
|
+
scrollBehavior,
|
93
|
+
getBrowserLocale,
|
94
|
+
appRenderer,
|
95
|
+
// Store
|
96
|
+
storeGlobals,
|
97
|
+
// Components
|
98
|
+
layoutClient,
|
99
|
+
layoutApp,
|
100
|
+
Header,
|
101
|
+
Sidebar
|
102
|
+
};
|
103
|
+
|
103
104
|
export default ModuleGlobals
|
@@ -0,0 +1,94 @@
|
|
1
|
+
module.exports = function(db) {
|
2
|
+
return {
|
3
|
+
getAllInitiatives: async (req, res) => {
|
4
|
+
try {
|
5
|
+
const initiatives = await db.initiative.findAll();
|
6
|
+
res.json(initiatives);
|
7
|
+
} catch (error) {
|
8
|
+
res.status(500).json({ message: "Error fetching initiatives", error });
|
9
|
+
}
|
10
|
+
},
|
11
|
+
|
12
|
+
getInitiativeById: async (req, res) => {
|
13
|
+
try {
|
14
|
+
const initiative = await db.initiative.findByPk(req.params.id);
|
15
|
+
if (initiative) {
|
16
|
+
res.json(initiative);
|
17
|
+
} else {
|
18
|
+
res.status(404).json({ message: "Initiative not found" });
|
19
|
+
}
|
20
|
+
} catch (error) {
|
21
|
+
res.status(500).json({ message: "Error fetching initiative", error });
|
22
|
+
}
|
23
|
+
},
|
24
|
+
|
25
|
+
createInitiative: async (req, res) => {
|
26
|
+
try {
|
27
|
+
const newInitiative = await db.initiative.create(req.body);
|
28
|
+
res.status(201).json(newInitiative);
|
29
|
+
} catch (error) {
|
30
|
+
res.status(400).json({ message: "Error creating initiative", error });
|
31
|
+
}
|
32
|
+
},
|
33
|
+
|
34
|
+
updateInitiative: async (req, res) => {
|
35
|
+
try {
|
36
|
+
const updated = await db.initiative.update(req.body, {
|
37
|
+
where: { id: req.params.id }
|
38
|
+
});
|
39
|
+
if (updated[0] === 1) {
|
40
|
+
res.json({ message: "Initiative updated successfully" });
|
41
|
+
} else {
|
42
|
+
res.status(404).json({ message: "Initiative not found" });
|
43
|
+
}
|
44
|
+
} catch (error) {
|
45
|
+
res.status(400).json({ message: "Error updating initiative", error });
|
46
|
+
}
|
47
|
+
},
|
48
|
+
|
49
|
+
deleteInitiative: async (req, res) => {
|
50
|
+
try {
|
51
|
+
const deleted = await db.initiative.destroy({
|
52
|
+
where: { id: req.params.id }
|
53
|
+
});
|
54
|
+
if (deleted) {
|
55
|
+
res.json({ message: "Initiative deleted successfully" });
|
56
|
+
} else {
|
57
|
+
res.status(404).json({ message: "Initiative not found" });
|
58
|
+
}
|
59
|
+
} catch (error) {
|
60
|
+
res.status(500).json({ message: "Error deleting initiative", error });
|
61
|
+
}
|
62
|
+
},
|
63
|
+
|
64
|
+
approveInitiative: async (req, res) => {
|
65
|
+
try {
|
66
|
+
const initiative = await db.initiative.findByPk(req.params.id);
|
67
|
+
if (initiative) {
|
68
|
+
initiative.status = 'approved';
|
69
|
+
await initiative.save();
|
70
|
+
res.json({ message: "Initiative approved successfully" });
|
71
|
+
} else {
|
72
|
+
res.status(404).json({ message: "Initiative not found" });
|
73
|
+
}
|
74
|
+
} catch (error) {
|
75
|
+
res.status(500).json({ message: "Error approving initiative", error });
|
76
|
+
}
|
77
|
+
},
|
78
|
+
|
79
|
+
rejectInitiative: async (req, res) => {
|
80
|
+
try {
|
81
|
+
const initiative = await db.initiative.findByPk(req.params.id);
|
82
|
+
if (initiative) {
|
83
|
+
initiative.status = 'rejected';
|
84
|
+
await initiative.save();
|
85
|
+
res.json({ message: "Initiative rejected successfully" });
|
86
|
+
} else {
|
87
|
+
res.status(404).json({ message: "Initiative not found" });
|
88
|
+
}
|
89
|
+
} catch (error) {
|
90
|
+
res.status(500).json({ message: "Error rejecting initiative", error });
|
91
|
+
}
|
92
|
+
}
|
93
|
+
};
|
94
|
+
};
|
@@ -0,0 +1,94 @@
|
|
1
|
+
module.exports = function(db) {
|
2
|
+
return {
|
3
|
+
getAllTasks: async (req, res) => {
|
4
|
+
try {
|
5
|
+
const tasks = await db.task.findAll();
|
6
|
+
res.json(tasks);
|
7
|
+
} catch (error) {
|
8
|
+
res.status(500).json({ message: "Error fetching tasks", error });
|
9
|
+
}
|
10
|
+
},
|
11
|
+
|
12
|
+
getTaskById: async (req, res) => {
|
13
|
+
try {
|
14
|
+
const task = await db.task.findByPk(req.params.id);
|
15
|
+
if (task) {
|
16
|
+
res.json(task);
|
17
|
+
} else {
|
18
|
+
res.status(404).json({ message: "Task not found" });
|
19
|
+
}
|
20
|
+
} catch (error) {
|
21
|
+
res.status(500).json({ message: "Error fetching task", error });
|
22
|
+
}
|
23
|
+
},
|
24
|
+
|
25
|
+
createTask: async (req, res) => {
|
26
|
+
try {
|
27
|
+
const newTask = await db.task.create(req.body);
|
28
|
+
res.status(201).json(newTask);
|
29
|
+
} catch (error) {
|
30
|
+
res.status(400).json({ message: "Error creating task", error });
|
31
|
+
}
|
32
|
+
},
|
33
|
+
|
34
|
+
updateTask: async (req, res) => {
|
35
|
+
try {
|
36
|
+
const updated = await db.task.update(req.body, {
|
37
|
+
where: { id: req.params.id }
|
38
|
+
});
|
39
|
+
if (updated[0] === 1) {
|
40
|
+
res.json({ message: "Task updated successfully" });
|
41
|
+
} else {
|
42
|
+
res.status(404).json({ message: "Task not found" });
|
43
|
+
}
|
44
|
+
} catch (error) {
|
45
|
+
res.status(400).json({ message: "Error updating task", error });
|
46
|
+
}
|
47
|
+
},
|
48
|
+
|
49
|
+
deleteTask: async (req, res) => {
|
50
|
+
try {
|
51
|
+
const deleted = await db.task.destroy({
|
52
|
+
where: { id: req.params.id }
|
53
|
+
});
|
54
|
+
if (deleted) {
|
55
|
+
res.json({ message: "Task deleted successfully" });
|
56
|
+
} else {
|
57
|
+
res.status(404).json({ message: "Task not found" });
|
58
|
+
}
|
59
|
+
} catch (error) {
|
60
|
+
res.status(500).json({ message: "Error deleting task", error });
|
61
|
+
}
|
62
|
+
},
|
63
|
+
|
64
|
+
assignTask: async (req, res) => {
|
65
|
+
try {
|
66
|
+
const task = await db.task.findByPk(req.params.id);
|
67
|
+
if (task) {
|
68
|
+
task.assignedTo = req.body.userId;
|
69
|
+
await task.save();
|
70
|
+
res.json({ message: "Task assigned successfully" });
|
71
|
+
} else {
|
72
|
+
res.status(404).json({ message: "Task not found" });
|
73
|
+
}
|
74
|
+
} catch (error) {
|
75
|
+
res.status(500).json({ message: "Error assigning task", error });
|
76
|
+
}
|
77
|
+
},
|
78
|
+
|
79
|
+
completeTask: async (req, res) => {
|
80
|
+
try {
|
81
|
+
const task = await db.task.findByPk(req.params.id);
|
82
|
+
if (task) {
|
83
|
+
task.status = 'completed';
|
84
|
+
await task.save();
|
85
|
+
res.json({ message: "Task completed successfully" });
|
86
|
+
} else {
|
87
|
+
res.status(404).json({ message: "Task not found" });
|
88
|
+
}
|
89
|
+
} catch (error) {
|
90
|
+
res.status(500).json({ message: "Error completing task", error });
|
91
|
+
}
|
92
|
+
}
|
93
|
+
};
|
94
|
+
};
|
@@ -0,0 +1,68 @@
|
|
1
|
+
module.exports = function(db) {
|
2
|
+
return {
|
3
|
+
castVote: async (req, res) => {
|
4
|
+
try {
|
5
|
+
const newVote = await db.vote.create({
|
6
|
+
votingId: req.params.votingId,
|
7
|
+
userId: req.body.userId,
|
8
|
+
choice: req.body.choice
|
9
|
+
});
|
10
|
+
res.status(201).json(newVote);
|
11
|
+
} catch (error) {
|
12
|
+
res.status(400).json({ message: "Error casting vote", error });
|
13
|
+
}
|
14
|
+
},
|
15
|
+
|
16
|
+
getVotesForVoting: async (req, res) => {
|
17
|
+
try {
|
18
|
+
const votes = await db.vote.findAll({
|
19
|
+
where: { votingId: req.params.votingId }
|
20
|
+
});
|
21
|
+
res.json(votes);
|
22
|
+
} catch (error) {
|
23
|
+
res.status(500).json({ message: "Error fetching votes", error });
|
24
|
+
}
|
25
|
+
},
|
26
|
+
|
27
|
+
getUserVotes: async (req, res) => {
|
28
|
+
try {
|
29
|
+
const votes = await db.vote.findAll({
|
30
|
+
where: { userId: req.params.userId }
|
31
|
+
});
|
32
|
+
res.json(votes);
|
33
|
+
} catch (error) {
|
34
|
+
res.status(500).json({ message: "Error fetching user votes", error });
|
35
|
+
}
|
36
|
+
},
|
37
|
+
|
38
|
+
updateVote: async (req, res) => {
|
39
|
+
try {
|
40
|
+
const updated = await db.vote.update(req.body, {
|
41
|
+
where: { id: req.params.id }
|
42
|
+
});
|
43
|
+
if (updated[0] === 1) {
|
44
|
+
res.json({ message: "Vote updated successfully" });
|
45
|
+
} else {
|
46
|
+
res.status(404).json({ message: "Vote not found" });
|
47
|
+
}
|
48
|
+
} catch (error) {
|
49
|
+
res.status(400).json({ message: "Error updating vote", error });
|
50
|
+
}
|
51
|
+
},
|
52
|
+
|
53
|
+
deleteVote: async (req, res) => {
|
54
|
+
try {
|
55
|
+
const deleted = await db.vote.destroy({
|
56
|
+
where: { id: req.params.id }
|
57
|
+
});
|
58
|
+
if (deleted) {
|
59
|
+
res.json({ message: "Vote deleted successfully" });
|
60
|
+
} else {
|
61
|
+
res.status(404).json({ message: "Vote not found" });
|
62
|
+
}
|
63
|
+
} catch (error) {
|
64
|
+
res.status(500).json({ message: "Error deleting vote", error });
|
65
|
+
}
|
66
|
+
}
|
67
|
+
};
|
68
|
+
};
|