@ozdao/prometheus-framework 0.2.130 โ 0.2.133
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +0 -1
- package/dist/auth.server.mjs +0 -1
- package/dist/community.server.js +172 -31
- package/dist/community.server.mjs +172 -31
- package/dist/events.server.js +1 -1
- package/dist/events.server.mjs +1 -1
- package/dist/files.server.js +38 -4
- package/dist/files.server.mjs +38 -4
- package/dist/gallery.server.js +1 -1
- package/dist/gallery.server.mjs +1 -1
- package/dist/main-CI9l9xMs.js +92 -0
- package/dist/main-DPg58GOU.mjs +14509 -0
- package/dist/main.css +1 -1
- package/dist/orders.server.js +1 -1
- package/dist/orders.server.mjs +1 -1
- package/dist/organizations.server.js +4 -3
- package/dist/organizations.server.mjs +4 -3
- package/dist/products.server.js +2 -1
- package/dist/products.server.mjs +2 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Address/Address.vue.js +89 -0
- package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue2.js +22 -23
- package/dist/prometheus-framework/src/components/Block/Block.vue.js +13 -13
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +95 -0
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +12 -13
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +26 -0
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.js +32 -33
- package/dist/prometheus-framework/src/components/Draggable/Draggable.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Draggable/Draggable.vue.js +75 -0
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +14 -15
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +57 -0
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +93 -87
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +84 -0
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +32 -29
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +22 -23
- package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.js +39 -39
- package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.js +5 -5
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +127 -0
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +46 -47
- package/dist/prometheus-framework/src/components/Menu/Menu.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Menu/Menu.vue.js +13 -0
- package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.js +22 -23
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +77 -0
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +103 -0
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +14 -15
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +9 -10
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +37 -34
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +30 -30
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +30 -30
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +18 -18
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +11 -11
- package/dist/prometheus-framework/src/modules/community/community.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/community.client.js +12 -14
- 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 +54 -71
- package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.js +57 -29
- 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 +86 -76
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +58 -28
- 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 +71 -80
- package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.js +104 -0
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +99 -54
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +27 -28
- package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.js +45 -34
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +31 -29
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +32 -27
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +67 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.js +16 -16
- 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 +119 -112
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +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 +22 -22
- 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 +27 -27
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.js +33 -22
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +16 -16
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +3 -9
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +9 -9
- 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 +39 -38
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
- 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 +112 -85
- 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 +36 -35
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +8 -8
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +17 -17
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +18 -18
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +6 -6
- 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 +12 -12
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +3 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +32 -37
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +14 -14
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +29 -29
- 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 +53 -35
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.js +30 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.js +42 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.js +26 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.js +42 -0
- package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.js +26 -0
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +154 -77
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +14 -14
- package/dist/queryProcessor-DQSFR9YA.mjs +179 -0
- package/dist/queryProcessor-iewDZq_f.js +178 -0
- package/dist/style.css +1 -1
- package/dist/wallet.server.js +80 -27
- package/dist/wallet.server.mjs +80 -27
- package/dist/web-DZUec7pP.js +1 -0
- package/dist/web-krQQeSb6.mjs +54 -0
- package/package.json +1 -1
- package/src/components/Address/Address.vue +1 -1
- package/src/components/Chips/Chips.vue +1 -1
- package/src/components/Completion/Completion.vue +1 -4
- package/src/components/DatePicker/Calendar.vue +1 -1
- package/src/components/Draggable/Draggable.vue +113 -0
- package/src/components/Dropdown/Dropdown.vue +1 -1
- package/src/components/Feed/Feed.vue +18 -12
- package/src/components/FieldBig/FieldBig.vue +11 -1
- package/src/components/FieldPhone/FieldPhone.vue +1 -1
- package/src/components/FieldTags/FieldTags.vue +2 -1
- package/src/components/FieldTags/tag-input.vue +1 -1
- package/src/components/LocationMarker/LocationMarker.vue +1 -1
- package/src/components/PhotoViewer/PhotoViewer.vue +1 -1
- package/src/components/Shader/Shader.vue +2 -2
- package/src/components/Slider/Slider.vue +1 -5
- package/src/components/Spoiler/Spoiler.vue +1 -1
- package/src/components/Text/Text.vue +1 -4
- package/src/components/Tooltip/Tooltip.vue +1 -1
- package/src/components/Upload/Upload.vue +5 -3
- package/src/modules/auth/controllers/auth.controller.js +0 -2
- package/src/modules/auth/store/auth.js +2 -2
- package/src/modules/community/DOCUMENTATION.MD +4 -0
- package/src/modules/community/community.client.js +0 -2
- package/src/modules/community/components/blocks/CardBlogpost.vue +6 -2
- package/src/modules/community/components/blocks/FooterBlogpost.vue +21 -5
- package/src/modules/community/components/layouts/Community.vue +15 -11
- package/src/modules/community/components/pages/Blog.vue +25 -32
- package/src/modules/community/components/pages/CreateBlogPost.vue +8 -15
- package/src/modules/community/components/sections/Comment.vue +123 -0
- package/src/modules/community/components/sections/Comments.vue +90 -19
- package/src/modules/community/components/sections/HotPosts.vue +3 -6
- package/src/modules/community/controllers/blog.controller.js +1 -1
- package/src/modules/community/controllers/comments.controller.aggr.js +280 -0
- package/src/modules/community/controllers/comments.controller.js +187 -38
- package/src/modules/community/controllers/comments.controller.populate.js +180 -0
- package/src/modules/community/models/comment.model.js +15 -0
- package/src/modules/community/store/blogposts.js +20 -2
- package/src/modules/constructor/components/elements/Audio.vue +28 -40
- package/src/modules/constructor/components/elements/ImageUpload.vue +12 -7
- package/src/modules/constructor/components/elements/Video.vue +10 -18
- package/src/modules/constructor/components/sections/Constructor.vue +54 -47
- package/src/modules/files/controllers/files.controller.js +2 -0
- package/src/modules/files/middlewares/server/middlewareBusboy.js +32 -4
- package/src/modules/files/routes/files.routes.js +8 -0
- package/src/modules/globals/components/blocks/BlockFilter.vue +17 -7
- package/src/modules/globals/components/partials/Header.vue +12 -7
- package/src/modules/globals/controllers/utils/queryProcessor.js +1 -0
- package/src/modules/icons/logos/Logotype.vue +8 -6
- package/src/modules/icons/logos/LogotypeNunito.vue +12 -0
- package/src/modules/marketplace/components/layouts/Marketplace.vue +29 -27
- package/src/modules/marketplace/store/marketplace.js +2 -8
- package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
- package/src/modules/organizations/components/pages/Members.vue +1 -1
- package/src/modules/organizations/components/pages/Organization.vue +33 -5
- package/src/modules/organizations/components/pages/OrganizationEdit.vue +7 -4
- package/src/modules/organizations/components/sections/DetailsTab.vue +10 -10
- package/src/modules/organizations/components/sections/Publics.vue +2 -2
- package/src/modules/organizations/controllers/memberships.controller.js +2 -3
- package/src/modules/organizations/controllers/organizations.controller.js +1 -1
- package/src/modules/organizations/store/memberships.js +4 -1
- package/src/modules/products/components/blocks/CardProduct.vue +1 -1
- package/src/modules/products/components/sections/HeroRecommendation.vue +11 -8
- package/src/modules/products/models/product.model.js +2 -1
- package/src/modules/spots/components/layouts/Spots.vue +0 -3
- package/src/modules/spots/components/pages/Map.vue +13 -3
- package/src/modules/users/components/blocks/CardUser.vue +2 -2
- package/src/modules/users/components/pages/ProfileBlogposts.vue +45 -28
- package/src/modules/wallet/components/blocks/CardBalanceReplenished.vue +40 -0
- package/src/modules/wallet/components/blocks/CardDeposite.vue +55 -0
- package/src/modules/wallet/components/blocks/CashDeposite.vue +28 -0
- package/src/modules/wallet/components/blocks/CryptoDeposite.vue +55 -0
- package/src/modules/wallet/controllers/factories/rewards.factory.aggr.js +181 -0
- package/src/modules/wallet/controllers/factories/rewards.factory.js +87 -113
- package/src/modules/wallet/controllers/factories/rewards.factory.population.js +213 -0
- package/src/modules/wallet/localization/Wallet.json +22 -0
- package/src/modules/wallet/views/components/pages/Wallet.vue +153 -53
- package/src/styles/base/all.scss +16 -26
- package/src/styles/config.scss +70 -34
- package/src/styles/typography.scss +5 -5
- package/src/modules/community/components/sections/Feed.vue +0 -148
- package/src/modules/middlewares/server/accessors/AccessController.js +0 -33
- package/src/modules/middlewares/server/accessors/ReadDepartments.js +0 -101
@@ -1,30 +1,28 @@
|
|
1
1
|
import { default as s } from "./components/layouts/Community.vue.js";
|
2
2
|
import { default as f } from "./components/pages/CreateBlogPost.vue.js";
|
3
3
|
import { default as l } from "./components/pages/BlogPost.vue.js";
|
4
|
-
import { default as
|
5
|
-
import { default as
|
4
|
+
import { default as u } from "./components/pages/Blog.vue.js";
|
5
|
+
import { default as d } from "./components/blocks/FooterBlogpost.vue.js";
|
6
6
|
import { default as i } from "./components/blocks/Activity.vue.js";
|
7
7
|
import { default as B } from "./components/blocks/CardBlogpost.vue.js";
|
8
|
-
import { default as b } from "./components/sections/
|
9
|
-
import { default as P } from "./components/sections/
|
10
|
-
import { default as
|
11
|
-
import { default as v } from "./components/sections/HotPosts.vue.js";
|
8
|
+
import { default as b } from "./components/sections/JoinUs.vue.js";
|
9
|
+
import { default as P } from "./components/sections/Comments.vue.js";
|
10
|
+
import { default as S } from "./components/sections/HotPosts.vue.js";
|
12
11
|
import * as o from "./store/blogposts.js";
|
13
12
|
import * as t from "./store/reactions.js";
|
14
|
-
import { default as
|
13
|
+
import { default as A } from "./router/blogposts.js";
|
15
14
|
export {
|
16
15
|
i as Activity,
|
17
|
-
|
16
|
+
u as Blog,
|
18
17
|
l as BlogPost,
|
19
18
|
B as CardBlogpost,
|
20
|
-
|
19
|
+
P as Comments,
|
21
20
|
s as Community,
|
22
21
|
f as CreateBlogPost,
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
H as blogpostsRoutes,
|
22
|
+
d as FooterBlogpost,
|
23
|
+
S as HotPosts,
|
24
|
+
b as JoinUs,
|
25
|
+
A as blogpostsRoutes,
|
28
26
|
o as blogpostsStore,
|
29
27
|
t as reactionsStore
|
30
28
|
};
|
package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs
CHANGED
@@ -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"),u=require("../../../globals/components/blocks/CardHeader.vue.cjs"),d=require("./FooterBlogpost.vue.cjs"),m=require("../../../../components/Text/Text.vue.cjs");;/* empty css */const g=require("vue-router"),b={class:"pos-relative bg-light radius-big flex-column flex"},p={class:"pd-t-zero pd-b-zero pd-medium"},y={key:0,class:"cursor-pointer mn-b-thin flex-nowrap flex w-100"},f={key:0,class:"pd-micro t-white uppercase t-semi p-small flex-center flex pd-r-small pd-l-small mn-l-thin w-min bg-second radius-extra"},h={key:1,class:"mn-b-small t-transp p-big"},v={key:2,class:"mn-b-small h2"},k=["src"],B={key:1,controls:"",class:"mn-b-medium object-fit-cover w-100 h-max-20r"},x=["src"],V={__name:"CardBlogpost",props:{blogpost:{type:Object},user:{type:String},type:{type:String},hideDescription:{type:Boolean,default:!1}},setup(t){const i=g.useRouter(),n=t,l=e.computed(()=>n.blogpost.content.find(o=>o.type==="ImageUpload")),s=e.computed(()=>n.blogpost.content.find(o=>o.type==="Video")),r=e.computed(()=>n.blogpost.content.find(o=>o.type==="Textarea"));return(o,a)=>{var c;return e.openBlock(),e.createElementBlock("article",b,[e.createVNode(u.default,{class:e.normalizeClass({"mn-b-small pd-medium":t.type!=="short","flex-child-order-last flex-child mn-l-small":t.type==="short"}),entity:t.blogpost,entityType:"blogpost",user:t.user,owner:t.blogpost.owner,creator:t.blogpost.creator,date:t.blogpost.createdAt,actions:t.user&&t.user===t.blogpost.creator.target._id?[{to:{name:"Edit BlogPost",params:{url:t.blogpost.url}},label:"Edit"}]:null},null,8,["class","entity","user","owner","creator","date","actions"]),e.createElementVNode("section",p,[t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("div",y,[e.createVNode(m.default,{text:t.blogpost.name||"",maxLen:80,class:"h3 d-block",onClick:a[0]||(a[0]=E=>e.unref(i).push({name:"BlogPost",params:{url:t.blogpost.url}}))},null,8,["text"]),t.blogpost.status==="draft"?(e.openBlock(),e.createElementBlock("div",f,e.toDisplayString(t.blogpost.status),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),r.value&&r.value.content&&t.type!=="blogpostPage"&&!t.hideDescription?(e.openBlock(),e.createElementBlock("p",h,e.toDisplayString(r.value.content.slice(0,120))+"... ",1)):e.createCommentVNode("",!0),t.type==="blogpostPage"?(e.openBlock(),e.createElementBlock("h3",v,e.toDisplayString(t.blogpost.name),1)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default")]),l.value&&l.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+l.value.content,alt:"Blog post image",class:"mn-b-medium object-fit-cover w-100 h-min-10r h-100"},null,8,k)):e.createCommentVNode("",!0),!((c=l.value)!=null&&c.content)&&s.value&&s.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("video",B,[e.createElementVNode("source",{src:s.value.content,type:"video/mp4"},null,8,x),e.createTextVNode(" Your browser does not support the video tag. ")])):e.createCommentVNode("",!0),e.createVNode(d.default,{class:"pd-t-zero pd-medium",blogpost:t.blogpost,user:t.user},null,8,["blogpost","user"])])}}};exports.default=V;
|
package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js
CHANGED
@@ -1,27 +1,26 @@
|
|
1
|
-
import { computed as
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import
|
1
|
+
import { computed as c, openBlock as o, createElementBlock as l, createVNode as m, normalizeClass as f, createElementVNode as b, unref as y, toDisplayString as u, createCommentVNode as s, renderSlot as h, createTextVNode as v } from "vue";
|
2
|
+
import x from "../../../globals/components/blocks/CardHeader.vue.js";
|
3
|
+
import k from "./FooterBlogpost.vue.js";
|
4
|
+
import w from "../../../../components/Text/Text.vue.js";
|
5
5
|
/* empty css */
|
6
|
-
import
|
7
|
-
|
8
|
-
const S = { class: "pos-relative bg-light radius-big flex-column flex" }, z = { class: "pd-t-zero pd-b-zero pd-medium" }, N = {
|
6
|
+
import { useRouter as B } from "vue-router";
|
7
|
+
const E = { class: "pos-relative bg-light radius-big flex-column flex" }, P = { class: "pd-t-zero pd-b-zero pd-medium" }, V = {
|
9
8
|
key: 0,
|
10
9
|
class: "cursor-pointer mn-b-thin flex-nowrap flex w-100"
|
11
|
-
},
|
10
|
+
}, S = {
|
12
11
|
key: 0,
|
13
12
|
class: "pd-micro t-white uppercase t-semi p-small flex-center flex pd-r-small pd-l-small mn-l-thin w-min bg-second radius-extra"
|
14
|
-
},
|
13
|
+
}, $ = {
|
15
14
|
key: 1,
|
16
15
|
class: "mn-b-small t-transp p-big"
|
17
|
-
},
|
16
|
+
}, z = {
|
18
17
|
key: 2,
|
19
18
|
class: "mn-b-small h2"
|
20
|
-
},
|
21
|
-
key:
|
19
|
+
}, C = ["src"], N = {
|
20
|
+
key: 1,
|
22
21
|
controls: "",
|
23
22
|
class: "mn-b-medium object-fit-cover w-100 h-max-20r"
|
24
|
-
},
|
23
|
+
}, R = ["src"], F = {
|
25
24
|
__name: "CardBlogpost",
|
26
25
|
props: {
|
27
26
|
blogpost: {
|
@@ -38,83 +37,67 @@ const S = { class: "pos-relative bg-light radius-big flex-column flex" }, z = {
|
|
38
37
|
default: !1
|
39
38
|
}
|
40
39
|
},
|
41
|
-
setup(
|
42
|
-
const
|
43
|
-
return (
|
40
|
+
setup(t) {
|
41
|
+
const p = B(), a = t, n = c(() => a.blogpost.content.find((e) => e.type === "ImageUpload")), r = c(() => a.blogpost.content.find((e) => e.type === "Video")), i = c(() => a.blogpost.content.find((e) => e.type === "Textarea"));
|
42
|
+
return (e, d) => {
|
44
43
|
var g;
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
name: "Edit BlogPost",
|
51
|
-
params: {
|
52
|
-
url: e.blogpost.url
|
53
|
-
}
|
54
|
-
},
|
55
|
-
class: "cursor-pointer pos-absolute pos-t-regular pos-r-regular radius-extra pd-thin bg-second"
|
56
|
-
}, {
|
57
|
-
default: v(() => [
|
58
|
-
n(E, {
|
59
|
-
class: "i-regular",
|
60
|
-
classes: "fill-white"
|
61
|
-
})
|
62
|
-
]),
|
63
|
-
_: 1
|
64
|
-
}, 8, ["to"])) : l("", !0),
|
65
|
-
n(P, {
|
66
|
-
class: x({
|
67
|
-
"mn-b-small pd-medium": e.type !== "short",
|
68
|
-
"flex-child-order-last flex-child mn-l-small": e.type === "short"
|
44
|
+
return o(), l("article", E, [
|
45
|
+
m(x, {
|
46
|
+
class: f({
|
47
|
+
"mn-b-small pd-medium": t.type !== "short",
|
48
|
+
"flex-child-order-last flex-child mn-l-small": t.type === "short"
|
69
49
|
}),
|
70
|
-
entity:
|
50
|
+
entity: t.blogpost,
|
71
51
|
entityType: "blogpost",
|
72
|
-
user:
|
73
|
-
owner:
|
74
|
-
creator:
|
75
|
-
date:
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
52
|
+
user: t.user,
|
53
|
+
owner: t.blogpost.owner,
|
54
|
+
creator: t.blogpost.creator,
|
55
|
+
date: t.blogpost.createdAt,
|
56
|
+
actions: t.user && t.user === t.blogpost.creator.target._id ? [
|
57
|
+
{ to: { name: "Edit BlogPost", params: { url: t.blogpost.url } }, label: "Edit" }
|
58
|
+
] : null
|
59
|
+
}, null, 8, ["class", "entity", "user", "owner", "creator", "date", "actions"]),
|
60
|
+
b("section", P, [
|
61
|
+
t.type !== "blogpostPage" ? (o(), l("div", V, [
|
62
|
+
m(w, {
|
63
|
+
text: t.blogpost.name || "",
|
81
64
|
maxLen: 80,
|
82
65
|
class: "h3 d-block",
|
83
|
-
onClick: d[0] || (d[0] = (
|
66
|
+
onClick: d[0] || (d[0] = (T) => y(p).push({
|
84
67
|
name: "BlogPost",
|
85
68
|
params: {
|
86
|
-
url:
|
69
|
+
url: t.blogpost.url
|
87
70
|
}
|
88
71
|
}))
|
89
72
|
}, null, 8, ["text"]),
|
90
|
-
|
91
|
-
])) :
|
92
|
-
|
93
|
-
|
94
|
-
|
73
|
+
t.blogpost.status === "draft" ? (o(), l("div", S, u(t.blogpost.status), 1)) : s("", !0)
|
74
|
+
])) : s("", !0),
|
75
|
+
i.value && i.value.content && t.type !== "blogpostPage" && !t.hideDescription ? (o(), l("p", $, u(i.value.content.slice(0, 120)) + "... ", 1)) : s("", !0),
|
76
|
+
t.type === "blogpostPage" ? (o(), l("h3", z, u(t.blogpost.name), 1)) : s("", !0),
|
77
|
+
h(e.$slots, "default")
|
95
78
|
]),
|
96
|
-
|
97
|
-
key:
|
98
|
-
src: (
|
79
|
+
n.value && n.value.content && t.type !== "blogpostPage" ? (o(), l("img", {
|
80
|
+
key: 0,
|
81
|
+
src: (e.FILE_SERVER_URL || "") + n.value.content,
|
99
82
|
alt: "Blog post image",
|
100
83
|
class: "mn-b-medium object-fit-cover w-100 h-min-10r h-100"
|
101
|
-
}, null, 8,
|
102
|
-
!((g =
|
103
|
-
|
104
|
-
src:
|
84
|
+
}, null, 8, C)) : s("", !0),
|
85
|
+
!((g = n.value) != null && g.content) && r.value && r.value.content && t.type !== "blogpostPage" ? (o(), l("video", N, [
|
86
|
+
b("source", {
|
87
|
+
src: r.value.content,
|
105
88
|
type: "video/mp4"
|
106
|
-
}, null, 8,
|
107
|
-
|
108
|
-
])) :
|
109
|
-
|
89
|
+
}, null, 8, R),
|
90
|
+
v(" Your browser does not support the video tag. ")
|
91
|
+
])) : s("", !0),
|
92
|
+
m(k, {
|
110
93
|
class: "pd-t-zero pd-medium",
|
111
|
-
blogpost:
|
112
|
-
user:
|
94
|
+
blogpost: t.blogpost,
|
95
|
+
user: t.user
|
113
96
|
}, null, 8, ["blogpost", "user"])
|
114
97
|
]);
|
115
98
|
};
|
116
99
|
}
|
117
100
|
};
|
118
101
|
export {
|
119
|
-
|
102
|
+
F as default
|
120
103
|
};
|
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
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("vue-router");const c=require("../../store/reactions.cjs"),g={class:"t-semi br-top-dark flex-nowrap flex-nojustify flex"},m={class:"hover-bg-white pd-l-thin pd-r-thin radius-big cursor-pointer"},v={__name:"FooterBlogpost",props:["blogpost","owner","user"],setup(r){const o=r,n=e.ref(o.blogpost.numberOfReactions),s=e.ref(o.blogpost.isReacted),l=e.ref(o.blogpost.reactionId);async function u(i){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"},a=await c.actions.create(t);a.reaction.class==="like"&&(n.value+=1,s.value=!0,l.value=a.reaction._id)}catch(t){console.error(t),alert("Error adding reaction. Please try again later.")}}async function d(i){if(!o.user){alert("Please login to add a reaction");return}try{const t={_id:l.value};await c.actions.delete(t),n.value-=1,s.value=!1,l.value=null}catch{alert("Error adding reaction. Please try again later.")}}return(i,t)=>{const a=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("footer",g,[e.createVNode(a,{to:{name:"BlogPost",params:{url:r.blogpost.url}},class:"font-second cursor-pointer hover-bg-white pd-l-thin pd-r-thin radius-big"},{default:e.withCtx(()=>[e.createTextVNode(" ๐๏ธ "+e.toDisplayString(r.blogpost.views),1)]),_:1},8,["to"]),e.createElementVNode("div",m,[s.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"cursor-pointer",onClick:t[0]||(t[0]=p=>u())}," ๐ "+e.toDisplayString(n.value),1)),s.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:"cursor-pointer",onClick:t[1]||(t[1]=p=>d())}," ๐ "+e.toDisplayString(n.value),1)):e.createCommentVNode("",!0)]),e.createVNode(a,{to:{name:"BlogPost",hash:"#comments",params:{url:r.blogpost.url}},class:"font-second cursor-pointer hover-bg-white pd-l-thin pd-r-thin radius-big"},{default:e.withCtx(()=>[e.createTextVNode(" ๐ฌ "+e.toDisplayString(r.blogpost.numberOfComments),1)]),_:1},8,["to"])])}}};exports.default=v;
|
package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
import { ref as
|
1
|
+
import { ref as i, resolveComponent as k, openBlock as c, createElementBlock as u, createVNode as p, withCtx as g, createTextVNode as m, toDisplayString as s, createElementVNode as w, createCommentVNode as f } from "vue";
|
2
2
|
import "vue-router";
|
3
|
-
import { actions as
|
4
|
-
const
|
3
|
+
import { actions as v } from "../../store/reactions.js";
|
4
|
+
const x = { class: "t-semi br-top-dark flex-nowrap flex-nojustify flex" }, C = { class: "hover-bg-white pd-l-thin pd-r-thin radius-big cursor-pointer" }, R = {
|
5
5
|
__name: "FooterBlogpost",
|
6
6
|
props: ["blogpost", "owner", "user"],
|
7
|
-
setup(
|
8
|
-
const t =
|
9
|
-
async function
|
7
|
+
setup(o) {
|
8
|
+
const t = o, a = i(t.blogpost.numberOfReactions), n = i(t.blogpost.isReacted), l = i(t.blogpost.reactionId);
|
9
|
+
async function b(d) {
|
10
10
|
if (!t.user) {
|
11
11
|
alert("Please login to add a reaction");
|
12
12
|
return;
|
@@ -17,44 +17,72 @@ const y = { class: "t-semi br-top-dark flex-nowrap flex-nojustify flex" }, k = /
|
|
17
17
|
type: "blogpost",
|
18
18
|
user: t.user,
|
19
19
|
class: "like"
|
20
|
-
},
|
21
|
-
|
20
|
+
}, r = await v.create(e);
|
21
|
+
r.reaction.class === "like" && (a.value += 1, n.value = !0, l.value = r.reaction._id);
|
22
22
|
} catch (e) {
|
23
23
|
console.error(e), alert("Error adding reaction. Please try again later.");
|
24
24
|
}
|
25
25
|
}
|
26
|
-
async function
|
26
|
+
async function h(d) {
|
27
27
|
if (!t.user) {
|
28
28
|
alert("Please login to add a reaction");
|
29
29
|
return;
|
30
30
|
}
|
31
31
|
try {
|
32
32
|
const e = { _id: l.value };
|
33
|
-
await
|
33
|
+
await v.delete(e), a.value -= 1, n.value = !1, l.value = null;
|
34
34
|
} catch {
|
35
35
|
alert("Error adding reaction. Please try again later.");
|
36
36
|
}
|
37
37
|
}
|
38
|
-
return (
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
38
|
+
return (d, e) => {
|
39
|
+
const r = k("router-link");
|
40
|
+
return c(), u("footer", x, [
|
41
|
+
p(r, {
|
42
|
+
to: {
|
43
|
+
name: "BlogPost",
|
44
|
+
params: {
|
45
|
+
url: o.blogpost.url
|
46
|
+
}
|
47
|
+
},
|
48
|
+
class: "font-second cursor-pointer hover-bg-white pd-l-thin pd-r-thin radius-big"
|
49
|
+
}, {
|
50
|
+
default: g(() => [
|
51
|
+
m(" ๐๏ธ " + s(o.blogpost.views), 1)
|
52
|
+
]),
|
53
|
+
_: 1
|
54
|
+
}, 8, ["to"]),
|
55
|
+
w("div", C, [
|
56
|
+
n.value ? f("", !0) : (c(), u("div", {
|
57
|
+
key: 0,
|
58
|
+
class: "cursor-pointer",
|
59
|
+
onClick: e[0] || (e[0] = (y) => b())
|
60
|
+
}, " ๐ " + s(a.value), 1)),
|
61
|
+
n.value ? (c(), u("div", {
|
62
|
+
key: 1,
|
63
|
+
class: "cursor-pointer",
|
64
|
+
onClick: e[1] || (e[1] = (y) => h())
|
65
|
+
}, " ๐ " + s(a.value), 1)) : f("", !0)
|
66
|
+
]),
|
67
|
+
p(r, {
|
68
|
+
to: {
|
69
|
+
name: "BlogPost",
|
70
|
+
hash: "#comments",
|
71
|
+
params: {
|
72
|
+
url: o.blogpost.url
|
73
|
+
}
|
74
|
+
},
|
75
|
+
class: "font-second cursor-pointer hover-bg-white pd-l-thin pd-r-thin radius-big"
|
76
|
+
}, {
|
77
|
+
default: g(() => [
|
78
|
+
m(" ๐ฌ " + s(o.blogpost.numberOfComments), 1)
|
79
|
+
]),
|
80
|
+
_: 1
|
81
|
+
}, 8, ["to"])
|
82
|
+
]);
|
83
|
+
};
|
56
84
|
}
|
57
85
|
};
|
58
86
|
export {
|
59
|
-
|
87
|
+
R as default
|
60
88
|
};
|
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"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("vue-router"),f=require("../../../../components/Select/Select.vue2.cjs"),g=require("../../../../components/Feed/Feed.vue.cjs"),h=require("../../../organizations/components/blocks/CardOrganization.vue.cjs"),x=require("../../../icons/entities/IconFeatured.vue.cjs"),b=require("../../../icons/entities/IconPopular.vue.cjs"),w=require("../../../icons/entities/IconRecent.vue.cjs"),_=require("../../../icons/entities/IconFollowing.vue.cjs"),a=require("../../store/blogposts.cjs"),i=require("../../../auth/store/auth.cjs"),d=require("../../../organizations/store/organizations.cjs"),k=require("../../../organizations/store/memberships.cjs"),N={style:{"grid-template-columns":"2fr 4fr 2fr"},class:"cols-3 gap-thin pd-thin"},V={class:"align-self-start pos-sticky pos-t-0 w-100 bg-light radius-big pd-medium p-medium gap-thin flex-column flex-nowrap flex"},v={class:"pos-relative"},C={class:"bg-main t-black radius-big pd-medium pos-relative mn-b-thin flex-v-center t-left flex-nowrap flex"},y={class:"pos-relative flex-v-center flex-nowrap flex"},B=e.createElementVNode("span",{class:"mn-r-thin"},"Topics for ",-1),q={class:"align-self-start bg-light radius-big pd-medium"},E={class:"gap-thin flex-nowrap flex"},z=e.createElementVNode("p",{class:"t-medium mn-b-small"},"Popular Communities",-1),T={__name:"Community",setup(F){const o=m.useRoute(),s=m.useRouter();o.params.category==="popular"&&(a.state.sort.param="views"),o.params.category==="new"&&(a.state.sort.param="createdAt");const p=({membership:u,status:t,target:n},c,r)=>{k.mutations.handleMembershipUpdate(d.state.current,u,t,n,c,r)};return(u,t)=>{const n=e.resolveComponent("router-link"),c=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",N,[e.createElementVNode("ul",V,[e.createElementVNode("li",{class:e.normalizeClass([{"t-black bg-white":e.unref(o).params.category==="featured"},"cursor-pointer flex-v-center flex t-medium pd-thin radius-extra"]),onClick:t[0]||(t[0]=()=>{a.state.sort.param="createdAt",e.unref(s).push({name:"Blog",params:{category:"featured"}})})},[e.createVNode(x.default,{class:"i-medium mn-r-thin t-transp"}),e.createTextVNode(" Featured ")],2),e.createElementVNode("li",{class:e.normalizeClass([{"t-black bg-white":e.unref(o).params.category==="popular"},"cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"]),onClick:t[1]||(t[1]=()=>{a.state.sort.param="views",e.unref(s).push({name:"Blog",params:{category:"popular"}})})},[e.createVNode(b.default,{class:"i-medium mn-r-thin t-transp"}),e.createTextVNode(" Popular ")],2),e.createElementVNode("li",{class:e.normalizeClass([{"t-black bg-white":e.unref(o).params.category==="new"},"cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"]),onClick:t[2]||(t[2]=()=>{a.state.sort.param="createdAt",e.unref(s).push({name:"Blog",params:{category:"new"}})})},[e.createVNode(w.default,{class:"i-medium mn-r-thin t-transp"}),e.createTextVNode(" Recent ")],2),i.state.user._id?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass([{"t-black bg-white":e.unref(o).params.category==="following"},"cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"]),onClick:t[3]||(t[3]=()=>{a.state.sort.param="createdAt",e.unref(s).push({name:"Blog",params:{category:"following"}})})},[e.createVNode(_.default,{class:"i-medium mn-r-thin t-transp"}),e.createTextVNode(" Following ")],2)):e.createCommentVNode("",!0),e.createVNode(n,{to:{name:"Create BlogPost"},class:"button t-medium mn-t-small bg-main w-100"},{default:e.withCtx(()=>[e.createTextVNode(" Create Post ")]),_:1})]),e.createElementVNode("section",v,[e.createElementVNode("header",C,[e.createElementVNode("h3",y,[B,e.createVNode(f.default,{options:["today","week","month","year","all time"],select:a.state.filter.period,"onUpdate:select":t[4]||(t[4]=r=>a.state.filter.period=r),placeholder:"all time",class:"t-semi pos-relative w-max bg-main t-black pd-thin radius-medium h3 t-center br-solid br-2px br-black-transp-10"},null,8,["select"])])]),e.createVNode(c,null,{default:e.withCtx(({Component:r,route:l})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r),{ref:"page",key:l.query}))]),_:2},1024)]),_:1})]),e.createElementVNode("div",q,[e.createElementVNode("div",E,[z,i.state.user._id?(e.openBlock(),e.createBlock(n,{key:0,to:{name:"Create Organization"},class:"t-medium cursor-pointer hover-scale-1 radius-extra flex-center flex i-medium bg-main"},{default:e.withCtx(()=>[e.createTextVNode(" + ")]),_:1})):e.createCommentVNode("",!0)]),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createVNode(g.default,{states:{empty:{title:"No Organization Found",description:"Currently, there are no organization available."}},store:{read:r=>d.actions.read(r),state:d.state},options:{user:i.state.user._id,sort:"numberOfMemberships",contain:["blogposts"],limit:10}},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,l=>(e.openBlock(),e.createBlock(h.default,{key:l._id,organization:l,user:i.state.user,showProducts:!1,showRating:!1,showFeatured:!1,showFollowers:!1,onUpdateMembership:p,class:"mn-b-thin w-100 pd-0 bg-white radius-big o-hidden"},null,8,["organization","user"]))),128))]),_:1},8,["store","options"])]),_:1})])])}}};exports.default=T;
|