@ozdao/prometheus-framework 0.1.73 → 0.1.75
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/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/Dropdown/Dropdown.vue.js +2 -49
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +49 -2
- 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/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/Spoiler/Spoiler.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
- 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/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- 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/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/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/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
- 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/GalleryWithCategories.vue.cjs +1 -1
- 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 +1 -1
- 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/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/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 +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +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 +10 -10
- 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 +1 -1
- 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/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/ProfileEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.cjs +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,29 +1,26 @@
|
|
1
|
-
import
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import
|
9
|
-
import * as
|
10
|
-
import * as
|
11
|
-
import * as
|
12
|
-
import
|
13
|
-
const g = {
|
14
|
-
Auth: o,
|
15
|
-
EnterCode: t,
|
16
|
-
Invite: r,
|
17
|
-
EnterPassword: m,
|
18
|
-
ResetPassword: i,
|
19
|
-
SignUp: a,
|
20
|
-
SignIn: f,
|
21
|
-
SliderFeatures: s,
|
22
|
-
authStore: e,
|
23
|
-
twofaStore: n,
|
24
|
-
invitesStore: _,
|
25
|
-
authRoutes: p
|
26
|
-
};
|
1
|
+
import { default as s } from "./components/layouts/Auth.vue.js";
|
2
|
+
import { default as p } from "./components/pages/EnterCode.vue.js";
|
3
|
+
import { default as u } from "./components/pages/Invite.vue.js";
|
4
|
+
import { default as x } from "./components/pages/EnterPassword.vue.js";
|
5
|
+
import { default as l } from "./components/pages/ResetPassword.vue.js";
|
6
|
+
import { default as S } from "./components/pages/SignUp.vue.js";
|
7
|
+
import { default as w } from "./components/pages/SignIn.vue.js";
|
8
|
+
import { default as g } from "./components/sections/SliderFeatures.vue.js";
|
9
|
+
import * as t from "./store/auth.js";
|
10
|
+
import * as e from "./store/twofa.js";
|
11
|
+
import * as o from "./store/invites.js";
|
12
|
+
import { default as I } from "./router/auth.js";
|
27
13
|
export {
|
28
|
-
|
14
|
+
s as Auth,
|
15
|
+
p as EnterCode,
|
16
|
+
x as EnterPassword,
|
17
|
+
u as Invite,
|
18
|
+
l as ResetPassword,
|
19
|
+
w as SignIn,
|
20
|
+
S as SignUp,
|
21
|
+
g as SliderFeatures,
|
22
|
+
I as authRoutes,
|
23
|
+
t as authStore,
|
24
|
+
o as invitesStore,
|
25
|
+
e as twofaStore
|
29
26
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue");require("../../../../components/Field/Field.vue.cjs");const f=require("vue-router"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue");require("../../../../components/Field/Field.vue.cjs");const f=require("vue-router"),D=require("vue-i18n"),c=require("../../store/auth.cjs"),p=require("../../store/twofa.cjs"),y=require("../../../globals/store/globals.cjs"),v=require("./EnterCode.vue2.cjs"),I={class:"t-center pd-medium"},q={class:"mn-medium"},k={class:"mn-big t-transp"},C={class:"w-100 mn-big flex-nowrap flex"},N={key:1},E={__name:"EnterCode",setup(P){const m=f.useRoute(),w=f.useRouter(),{t:d}=D.useI18n({inheritLocale:!0,useScope:"local"}),o=n.reactive({digits:["","","",""],error:null});n.watch(()=>o.digits[0],s=>{if(console.log(String(s)),console.log(String(s).length),s&&String(s).length>1){let e=String(s).split("");console.log(e);let t=[...o.digits];e.forEach((l,r)=>{console.log(r),console.log(t[r]),console.log(l),t[r]=l}),o.digits=t,u(3)}});const g=n.ref(null),i=n.ref(0);async function S(){try{await p.sendCode(c.state.user,m.query.type,c.state.user.phone?"phone":"email"),i.value=30;const s=setInterval(()=>{i.value>0?i.value-=1:clearInterval(s)},1e3)}catch{y.setError({response:{data:{errorCode:"CODE_NOT_SENT"}}})}}const a=(s,e)=>{if(s.key==="Backspace"&&(o.digits[e]===null||o.digits[e]===void 0||o.digits[e]==="")){s.preventDefault();const t=document.querySelectorAll("input"),l=e>0?t[e-1]:null;l&&(l.focus(),l.setSelectionRange(l.value.length,l.value.length))}},u=s=>{const e=document.querySelectorAll("input"),t=e[s+1],l=s>0?e[s-1]:null;if(o.digits[s]!==""&&o.digits[s]!==null&&o.digits[s]!==void 0&&s<4&&(s<3?t.focus():g.value.focus()),(o.digits[s]===null||o.digits[s]===void 0||o.digits[s]==="")&&s>0&&l.focus(),o.digits.every(r=>r!=="")){const r=o.digits.join(""),b=p.state.code.code.toString();r===b?(p.state.code.isValid=!0,w.push({path:"/auth/enter-password",query:{type:p.state.code.type,method:m.query.method}})):(y.setError({response:{data:{errorCode:"WRONG_CODE"}}}),g.value.focus(),o.digits=["","","",""])}};return(s,e)=>(n.openBlock(),n.createElementBlock("section",I,[n.createElementVNode("h3",q,n.toDisplayString(n.unref(d)("verifyNumberTitle")),1),n.createElementVNode("p",k,n.toDisplayString(n.unref(d)("instructions")),1),n.createElementVNode("div",C,[n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[0]||(e[0]=t=>o.digits[0]=t),ref_key:"firstInput",ref:g,maxlength:"1",onInput:e[1]||(e[1]=t=>u(0)),onPaste:e[2]||(e[2]=t=>s.onPaste(t,0)),onKeydown:e[3]||(e[3]=t=>a(t,0)),class:"w-100 h1 pd-small t-center bg-grey radius-small mn-r-small"},null,544),[[n.vModelText,o.digits[0]]]),n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[4]||(e[4]=t=>o.digits[1]=t),maxlength:"1",onInput:e[5]||(e[5]=t=>u(1)),onPaste:e[6]||(e[6]=t=>s.onPaste(t,1)),onKeydown:e[7]||(e[7]=t=>a(t,1)),class:"w-100 h1 pd-small t-center bg-grey radius-small mn-r-small"},null,544),[[n.vModelText,o.digits[1]]]),n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[8]||(e[8]=t=>o.digits[2]=t),maxlength:"1",onInput:e[9]||(e[9]=t=>u(2)),onPaste:e[10]||(e[10]=t=>s.onPaste(t,2)),onKeydown:e[11]||(e[11]=t=>a(t,2)),class:"w-100 h1 pd-small t-center bg-grey radius-small mn-r-small"},null,544),[[n.vModelText,o.digits[2]]]),n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[12]||(e[12]=t=>o.digits[3]=t),maxlength:"1",onInput:e[13]||(e[13]=t=>u(3)),onPaste:e[14]||(e[14]=t=>s.onPaste(t,3)),onKeydown:e[15]||(e[15]=t=>a(t,3)),class:"w-100 h1 pd-small t-center bg-grey radius-small"},null,544),[[n.vModelText,o.digits[3]]])]),i.value<1?(n.openBlock(),n.createElementBlock("a",{key:0,onClick:S,class:"t-blue"},n.toDisplayString(n.unref(d)("resendCode")),1)):(n.openBlock(),n.createElementBlock("span",N,n.toDisplayString(i.value)+" "+n.toDisplayString(n.unref(d)("secondsResend")),1))]))}};typeof v.default=="function"&&v.default(E);exports.default=E;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");const l=require("../../../../components/Field/Field.vue2.cjs"),f=require("../../../../components/Button/Button.vue2.cjs"),d=require("vue-router"),t=require("../../store/auth.cjs"),u=require("../../store/invites.cjs"),c=require("../../../middlewares/client/inputs.validation.cjs");require("./Invite.vue2.cjs");const h={class:"t-left pd-medium"},v=e.createElementVNode("h3",{class:"mn-small"},"Вы были пригилашены в организацию",-1),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");const l=require("../../../../components/Field/Field.vue2.cjs"),f=require("../../../../components/Button/Button.vue2.cjs"),d=require("vue-router"),t=require("../../store/auth.cjs"),u=require("../../store/invites.cjs"),c=require("../../../middlewares/client/inputs.validation.cjs");require("./Invite.vue2.cjs");const h={class:"t-left pd-medium"},v=e.createElementVNode("h3",{class:"mn-small"},"Вы были пригилашены в организацию",-1),y=e.createElementVNode("p",{class:"mn-semi t-transp"},"Пожалуйста, укажите пароль, на этом регистрация будет закочена.",-1),b={class:"mn-semi radius-small o-hidden"},q={key:0},k={key:1},B={__name:"Invite",async setup(E){let r,n;const i=e.ref(null),s=d.useRoute(),p=d.useRouter();[r,n]=e.withAsyncContext(()=>u.actions.readOne(s.query.inviteCode)),await r,n();async function m(){try{await c.validateInputs(i,c.validatePassword,t.state.user.password,"Некорректный пароль")}catch{throw new Error}await t.actions.signup(t.state.user,s.query.type,s.query.inviteCode)}function _(){p.push({name:"Dashboard"})}return(w,a)=>(e.openBlock(),e.createElementBlock("section",h,[v,y,e.createElementVNode("div",b,[e.createVNode(l.default,{field:t.state.user.password,"onUpdate:field":a[0]||(a[0]=o=>t.state.user.password=o),type:"password",validation:i.value,label:"Пароль",placeholder:"******",class:"bg-white radius-small mn-small"},null,8,["field","validation"]),e.createVNode(l.default,{field:t.state.user.passwordRepeat,"onUpdate:field":a[1]||(a[1]=o=>t.state.user.passwordRepeat=o),type:"password",label:"Повторите пароль",placeholder:"******",class:"bg-white radius-small mn-semi"},null,8,["field"])]),e.createVNode(f.default,{disabled:u.state.invite===null,submit:m,callback:_,class:"mn-big"},{default:e.withCtx(()=>[e.unref(s).query.method==="reset-password"?(e.openBlock(),e.createElementBlock("span",q,"Поменять пароль")):(e.openBlock(),e.createElementBlock("span",k,"Зарегистрироваться"))]),_:1},8,["disabled"])]))}};exports.default=B;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("../../../../components/Tab/Tab.vue2.cjs"),c=require("../../../../components/Field/Field.vue2.cjs"),N=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),b=require("../../../../components/Button/Button.vue2.cjs"),p=require("vue-router"),E=require("vue-i18n"),a=require("../../store/auth.cjs"),i=require("../../../middlewares/client/inputs.validation.cjs");require("./SignIn.vue2.cjs");const m=require("./SignIn.vue3.cjs"),y={class:""},S={class:"mn-medium"},
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("../../../../components/Tab/Tab.vue2.cjs"),c=require("../../../../components/Field/Field.vue2.cjs"),N=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),b=require("../../../../components/Button/Button.vue2.cjs"),p=require("vue-router"),E=require("vue-i18n"),a=require("../../store/auth.cjs"),i=require("../../../middlewares/client/inputs.validation.cjs");require("./SignIn.vue2.cjs");const m=require("./SignIn.vue3.cjs"),y={class:""},S={class:"mn-medium"},x=e.createElementVNode("br",null,null,-1),P={class:"t-semi"},q={class:"mn-big"},C={class:"mn-small p-small uppercase t-semi bg-grey radius-big o-hidden"},D={class:""},I={class:"mn-thin radius-small"},T={class:"mn-thin radius-small o-hidden"},U={class:"w-100 mn-big"},h={__name:"SignIn",setup(j){const{t:n}=E.useI18n({inheritLocale:!0,useScope:"local"}),d=e.ref(null),f=e.ref(null),u=e.ref(null);p.useRoute();const _=p.useRouter(),l=e.ref("phone");e.inject("APPLE_CLIENTID"),e.inject("APPLE_REDIRECT_URL");const v=r=>new Promise((s,o)=>{const t=document.createElement("script");t.type="text/javascript",t.src=r,t.onload=s,t.onerror=o,document.head.appendChild(t)});e.onMounted(async()=>{await v("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js")});async function w(){try{l.value==="phone"&&await i.validateInputs(d,i.validatePhone,a.state.user.phone,"Некорректный телефон"),l.value==="email"&&await i.validateInputs(u,i.validateEmail,a.state.user.email,"Некорректный email")}catch{throw new Error}a.state.user.phone=a.state.user.phone.number,await a.actions.login(a.state.user,l.value)}function V(){_.push({name:"User Profile",params:{_id:a.state.user._id},query:{afterAuth:"true"}})}return(r,s)=>{const o=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",y,[e.createElementVNode("h3",S,[e.createTextVNode(e.toDisplayString(e.unref(n)("title"))+" ",1),x,e.createElementVNode("span",P,e.toDisplayString(e.unref(n)("subtitle")),1)]),e.createElementVNode("p",q,[e.createVNode(o,{to:{name:"Sign Up"},class:"underline t-second"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("signup")),1)]),_:1})]),e.createElementVNode("div",C,[e.createVNode(g.default,{selected:l.value,"onUpdate:selected":s[0]||(s[0]=t=>l.value=t),tabs:[{name:e.unref(n)("phone"),value:"phone"},{name:e.unref(n)("email"),value:"email"}]},null,8,["selected","tabs"])]),e.createElementVNode("div",D,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",I,[e.createVNode(N.default,{modelValue:a.state.user.phone,"onUpdate:modelValue":s[1]||(s[1]=t=>a.state.user.phone=t),dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},validation:d.value,mode:"national",inputOptions:{placeholder:e.unref(n)("phonePlaceholder")},class:"bg-grey pd-small radius-small mn-thin"},null,8,["modelValue","validation","inputOptions"])],512),[[e.vShow,l.value==="phone"]])]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",T,[e.createVNode(c.default,{field:a.state.user.email,"onUpdate:field":s[2]||(s[2]=t=>a.state.user.email=t),placeholder:e.unref(n)("emailPlaceholder"),validation:u.value,class:"bg-grey pd-medium radius-small"},null,8,["field","placeholder","validation"])],512),[[e.vShow,l.value==="email"]])]),_:1})]),e.createVNode(c.default,{field:a.state.user.password,"onUpdate:field":s[3]||(s[3]=t=>a.state.user.password=t),type:"password",validation:f.value,placeholder:e.unref(n)("passwordPlaceholder"),class:"bg-grey pd-medium radius-small mn-semi"},null,8,["field","validation","placeholder"]),e.createElementVNode("div",U,[e.createVNode(o,{to:"/auth/reset-password",class:"underline d-block t-blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("forgotPassword")),1)]),_:1})]),e.createVNode(b.default,{submit:w,callback:V,class:"mn-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("signin")),1)]),_:1})])}}};typeof m.default=="function"&&m.default(h);exports.default=h;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../../node_modules/axios/lib/axios.cjs");require("../../../../../node_modules/js-cookie/src/js.cookie.cjs");const s=require("vue"),d=require("../../globals/store/globals.cjs"),i=r.default.create({baseURL:process.env.API_URL,withCredentials:!0}),t=s.reactive({code:{value:"",type:"",method:"",isSended:!1,isValid:!1}});async function c(o,a,n){return await i.post("/api/twofa/sendcode",{phone:o.phone.number,email:o.email,method:a,type:n}).then(e=>(t.code=e.data,t.code.isSended=!0,Promise.resolve(e.data)),e=>(console.log(e),d.setError(e),Promise.reject(e)))}s.watch(t,(o,a)=>{});exports.sendCode=c;exports.state=t;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./router/backoffice.cjs");exports.backofficeRoutes=e.default;
|
package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Backoffice.vue2.cjs");const n=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),r={},
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Backoffice.vue2.cjs");const n=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),r={},a={id:"account",class:"cols-1 gap-medium pd-medium"},i={class:"w-100"};function l(s,d){const t=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("section",a,[e.createElementVNode("div",i,[e.createVNode(t,null,{default:e.withCtx(({Component:o,route:c})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o),{ref:"page",key:c.path}))]),_:2},1024)]),_:1})])])}const u=n.default(r,[["render",l]]);exports.default=u;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../mobile/components/Menu/Menu.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../mobile/components/Menu/Menu.vue2.cjs"),n=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),o=require("vue-router"),i={class:""},l=e.createElementVNode("h1",{class:"mn-small"},"Your Backoffice",-1),d=e.createElementVNode("span",null," Organizations ",-1),f=e.createElementVNode("span",null," Events ",-1),c=e.createElementVNode("span",null," Community ",-1),p=e.createElementVNode("span",null," Products ",-1),m=e.createElementVNode("span",null," Leftovers ",-1),_=e.createElementVNode("span",null," Orders ",-1),k=e.createElementVNode("span",null," Payments ",-1),C=e.createElementVNode("span",null," Gallery ",-1),N=e.createElementVNode("span",null," Reports ",-1),V={__name:"Dashboard",props:{favorites:Array},setup(v){const r=o.useRoute(),s=o.useRouter();return(h,t)=>(e.openBlock(),e.createElementBlock("div",i,[l,e.createVNode(u.default,{class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(n.default,{onClick:t[0]||(t[0]=a=>e.unref(s).push({name:"Backoffice Organizations",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[d]),_:1}),e.createVNode(n.default,{onClick:t[1]||(t[1]=a=>e.unref(s).push({name:"Backoffice Events",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[f]),_:1}),e.createVNode(n.default,{onClick:t[2]||(t[2]=a=>e.unref(s).push({name:"Backoffice Community",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[c]),_:1}),e.createVNode(n.default,{onClick:t[3]||(t[3]=a=>e.unref(s).push({name:"Backoffice Products",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[p]),_:1}),e.createVNode(n.default,{onClick:t[4]||(t[4]=a=>e.unref(s).push({name:"Backoffice Leftovers",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[m]),_:1}),e.createVNode(n.default,{onClick:t[5]||(t[5]=a=>e.unref(s).push({name:"Backoffice Orders",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[_]),_:1}),e.createVNode(n.default,{onClick:t[6]||(t[6]=a=>e.unref(s).push({name:"Backoffice Payments",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[k]),_:1}),e.createVNode(n.default,{onClick:t[7]||(t[7]=a=>e.unref(s).push({name:"Backoffice Gallery",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[C]),_:1}),e.createVNode(n.default,{onClick:t[8]||(t[8]=a=>e.unref(s).push({name:"Backoffice Reports",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[N]),_:1})]),_:1})]))}};exports.default=V;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { openBlock as p, createElementBlock as u, createVNode as e, withCtx as a, unref as o, createElementVNode as n } from "vue";
|
2
|
-
import m from "../../../mobile/components/Menu/Menu.
|
2
|
+
import m from "../../../mobile/components/Menu/Menu.vue2.js";
|
3
3
|
import i from "../../../mobile/components/Menu/MenuItem.vue.js";
|
4
4
|
import { useRoute as d, useRouter as _ } from "vue-router";
|
5
5
|
const f = { class: "" }, c = /* @__PURE__ */ n("h1", { class: "mn-small" }, "Your Backoffice", -1), k = /* @__PURE__ */ n("span", null, " Organizations ", -1), v = /* @__PURE__ */ n("span", null, " Events ", -1), B = /* @__PURE__ */ n("span", null, " Community ", -1), C = /* @__PURE__ */ n("span", null, " Products ", -1), $ = /* @__PURE__ */ n("span", null, " Leftovers ", -1), y = /* @__PURE__ */ n("span", null, " Orders ", -1), h = /* @__PURE__ */ n("span", null, " Payments ", -1), g = /* @__PURE__ */ n("span", null, " Gallery ", -1), E = /* @__PURE__ */ n("span", null, " Reports ", -1), G = {
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../components/layouts/Backoffice.vue.cjs"),t=require("../../middlewares/client/auth.validation.cjs"),o=[{path:"backoffice",component:e.default,beforeEnter:[t.requiresAdmin],children:[{path:"",name:"Backoffice",meta:{title:{en:"Backoffice",ru:"Управление"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../components/pages/Dashboard.vue.cjs"))},{path:"gallery",name:"Backoffice Gallery",meta:{title:{en:"Backoffice Gallery",ru:"Управление Галерей"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../../gallery/components/sections/BackofficeGallery.vue.cjs"))},{path:"reports",name:"Backoffice Reports",meta:{title:{en:"Backoffice Reports",ru:"Управление Жалобами"}},component:()=>Promise.resolve().then(()=>require("../../reports/components/pages/BackofficeReports.vue.cjs"))}]}];exports.default=o;
|
@@ -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;
|