@ozdao/prometheus-framework 0.1.62 → 0.1.66
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/BackofficeGallery-30022293.js +1 -0
- package/dist/BackofficeGallery-f64daa0d.mjs +264 -0
- package/dist/BackofficeReports-cb4b180d.mjs +44 -0
- package/dist/BackofficeReports-d021871f.js +1 -0
- package/dist/BlockTags-8cddaef7.js +1 -0
- package/dist/BlockTags-ee310572.mjs +853 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Button-7643c9aa.js +1 -0
- package/dist/Button-9e1a9284.mjs +226 -0
- package/dist/Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/ButtonToggleMembership-7ee4dc8e.mjs +90 -0
- package/dist/ButtonToggleMembership-b9352cec.js +1 -0
- package/dist/CardBlogpost-3c92fbc9.mjs +246 -0
- package/dist/CardBlogpost-c7364b1e.js +1 -0
- package/dist/CardOrganization-647cb571.js +1 -0
- package/dist/CardOrganization-facb77f7.mjs +234 -0
- package/dist/CardProduct-92affca1.js +1 -0
- package/dist/CardProduct-fca53299.mjs +193 -0
- package/dist/Checkbox-5dbe7b23.mjs +62 -0
- package/dist/Checkbox-76f09248.js +1 -0
- package/dist/Chips-0fdb31c9.js +1 -0
- package/dist/Chips-f1a0d085.mjs +214 -0
- package/dist/Community-534d473c.mjs +132 -0
- package/dist/Community-e9aff969.js +1 -0
- package/dist/Dashboard-91d73bc5.js +1 -0
- package/dist/Dashboard-ea9035bc.mjs +152 -0
- package/dist/Dropdown-31115457.js +1 -0
- package/dist/Dropdown-cab3605b.mjs +146 -0
- package/dist/EULA-aba6a807.js +1 -0
- package/dist/EULA-e05236af.mjs +4210 -0
- package/dist/EditOrder-94bbebff.mjs +221 -0
- package/dist/EditOrder-c070d474.js +1 -0
- package/dist/EmptyState-d65bab5b.js +1 -0
- package/dist/EmptyState-e404b05d.mjs +36 -0
- package/dist/Events-46ae8fc6.mjs +123 -0
- package/dist/Events-813c8c7b.js +1 -0
- package/dist/Feed-2d443ad2.mjs +146 -0
- package/dist/Feed-3a4e7a9c.js +1 -0
- package/dist/Feed-8b554fc1.js +1 -0
- package/dist/Feed-98b47c6f.js +1 -0
- package/dist/Feed-a21d6007.mjs +124 -0
- package/dist/Feed-b39138c8.js +1 -0
- package/dist/Feed-c41ef736.mjs +361 -0
- package/dist/Feed-d114330c.mjs +112 -0
- package/dist/Field-e2a43424.js +1 -0
- package/dist/Field-e5ad88d3.mjs +75 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-0ea8fbf8.js +1 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-4ed993c7.mjs +1 -0
- package/dist/Gallery-46b5f939.js +1 -0
- package/dist/Gallery-762a9c2d.mjs +241 -0
- package/dist/IconChevronRight-a55f838e.js +1 -0
- package/dist/IconChevronRight-fae9d012.mjs +28 -0
- package/dist/IconCommunity-468dc457.mjs +65 -0
- package/dist/IconCommunity-b339e806.js +1 -0
- package/dist/IconCross-5bf93179.js +1 -0
- package/dist/IconCross-84cb1292.mjs +28 -0
- package/dist/IconEdit-9edfd74d.mjs +21 -0
- package/dist/IconEdit-c0469b45.js +1 -0
- package/dist/Image-4dcfddb8.js +9 -0
- package/dist/Image-e0da17ac.mjs +571 -0
- package/dist/LabelGooglePlay-24feb437.mjs +31 -0
- package/dist/LabelGooglePlay-f80e5ff0.js +1 -0
- package/dist/LeftoverAdd-5a8988d9.js +1 -0
- package/dist/LeftoverAdd-c4f37f47.mjs +227 -0
- package/dist/Leftovers-470a1689.js +1 -0
- package/dist/Leftovers-69c7dcd9.mjs +136 -0
- package/dist/Loader-21f016da.js +1 -0
- package/dist/Loader-cd422786.mjs +41 -0
- package/dist/Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Members-04273cd4.mjs +114 -0
- package/dist/Members-0685a15f.js +1 -0
- package/dist/Menu-b5d6a0c7.js +1 -0
- package/dist/Menu-dd7645c1.mjs +13 -0
- package/dist/MenuItem-56ae7f94.js +1 -0
- package/dist/MenuItem-6296d02f.mjs +63 -0
- package/dist/Orders-b64e8cb9.js +1 -0
- package/dist/Orders-ff30db05.mjs +75 -0
- package/dist/Organizations-46aab2c8.mjs +73 -0
- package/dist/Organizations-a8627bc5.js +1 -0
- package/dist/Payments-53e5fecf.js +1 -0
- package/dist/Payments-82e545e1.mjs +87 -0
- package/dist/PlaceholderUserpic-14c6ea7e.mjs +28 -0
- package/dist/PlaceholderUserpic-47f6f319.js +1 -0
- package/dist/Popup-0915427c.mjs +74 -0
- package/dist/Popup-795f5c88.js +1 -0
- package/dist/Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Product-7e001b81.js +7 -0
- package/dist/Product-f3f42158.mjs +653 -0
- package/dist/ProductEdit-959b3cd3.mjs +295 -0
- package/dist/ProductEdit-bae5e898.js +1 -0
- package/dist/ProductsBackoffice-0716123f.js +1 -0
- package/dist/ProductsBackoffice-a36ecbc6.mjs +85 -0
- package/dist/ProfileBlogposts-c790d1b2.js +1 -0
- package/dist/ProfileBlogposts-f43cf32e.mjs +79 -0
- package/dist/ProfileEvents-12f80fff.mjs +70 -0
- package/dist/ProfileEvents-585570a3.js +1 -0
- package/dist/ProfileOrganizations-bbc2cf40.mjs +73 -0
- package/dist/ProfileOrganizations-d7103514.js +1 -0
- package/dist/Publics-094f3c2c.mjs +45 -0
- package/dist/Publics-1032c0f4.js +1 -0
- package/dist/Select-11ddabf5.mjs +79 -0
- package/dist/Select-3ca5ab39.js +1 -0
- package/dist/SelectMulti-58704d69.mjs +1038 -0
- package/dist/SelectMulti-c25765cf.js +1 -0
- package/dist/SkeletonBlogpost-95db0fa9.js +1 -0
- package/dist/SkeletonBlogpost-e0621af7.mjs +16 -0
- package/dist/SkeletonEvent-8690422d.mjs +16 -0
- package/dist/SkeletonEvent-eb284de8.js +1 -0
- package/dist/SkeletonEventShort-6c9e3940.js +1 -0
- package/dist/SkeletonEventShort-f030e56f.mjs +16 -0
- package/dist/SkeletonOrganization-5c09cfc5.js +1 -0
- package/dist/SkeletonOrganization-8690422d.mjs +16 -0
- package/dist/Socials-31c06635.mjs +74 -0
- package/dist/Socials-cceaeaf2.js +1 -0
- package/dist/Tab-054b61f7.mjs +46 -0
- package/dist/Tab-2c1e4224.js +1 -0
- package/dist/Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Upload-06d93178.js +1 -0
- package/dist/Upload-23212d9d.mjs +74 -0
- package/dist/UploadImage-0f488170.js +1 -0
- package/dist/UploadImage-3c627d89.mjs +83 -0
- package/dist/UploadImageMultiple-cb6c7188.mjs +58 -0
- package/dist/UploadImageMultiple-eddaac87.js +1 -0
- package/dist/Wallet-2043b611.mjs +24682 -0
- package/dist/Wallet-8fa7386a.js +55 -0
- package/dist/_plugin-vue_export-helper-dad06003.mjs +9 -0
- package/dist/_plugin-vue_export-helper-f246444f.js +1 -0
- package/dist/auth-56dc2ba7.mjs +607 -0
- package/dist/auth-f018f5b3.js +7 -0
- package/dist/auth.client.cjs +7 -0
- package/dist/auth.client.js +3874 -0
- package/dist/auth.validation-c31a60e7.mjs +24 -0
- package/dist/auth.validation-d049b341.js +1 -0
- package/dist/backoffice.client.cjs +1 -0
- package/dist/backoffice.client.js +265 -0
- package/dist/carousel.es-44c501bc.mjs +383 -0
- package/dist/carousel.es-cdfb392c.js +5 -0
- package/dist/categories-5b08da53.mjs +121 -0
- package/dist/categories-7ccd6be9.js +1 -0
- package/dist/click-outside-0b0727d1.js +2 -0
- package/dist/click-outside-6101836c.mjs +19 -0
- package/dist/community.client.cjs +1 -0
- package/dist/community.client.js +692 -0
- package/dist/dribbble-8e8e169b.js +1 -0
- package/dist/dribbble-ae37c2ac.mjs +127 -0
- package/dist/events.client.cjs +2 -0
- package/dist/events.client.js +8885 -0
- package/dist/files.client.cjs +1 -0
- package/dist/files.client.js +1 -0
- package/dist/gallery-d4297191.mjs +54 -0
- package/dist/gallery-f92912df.js +1 -0
- package/dist/gallery.client.cjs +1 -0
- package/dist/gallery.client.js +18 -0
- package/dist/globals-928eb13c.js +1 -0
- package/dist/globals-96ba60e4.mjs +91 -0
- package/dist/globals.client.cjs +1 -0
- package/dist/globals.client.js +12 -0
- package/dist/icons.client.cjs +1 -0
- package/dist/icons.client.js +84 -0
- package/dist/index-a661083c.mjs +934 -0
- package/dist/index-b41aac19.js +2 -0
- package/dist/inputs.validation-d7cef32b.js +1 -0
- package/dist/inputs.validation-db65277a.mjs +83 -0
- package/dist/landing.client.cjs +1 -0
- package/dist/landing.client.js +111 -0
- package/dist/leftovers-5d1ff88b.mjs +67 -0
- package/dist/leftovers-b60180cf.js +1 -0
- package/dist/legal.client.cjs +1 -0
- package/dist/legal.client.js +8512 -0
- package/dist/memberships-12210953.mjs +68 -0
- package/dist/memberships-393765d8.js +1 -0
- package/dist/middlewares.client.cjs +1 -0
- package/dist/middlewares.client.js +1 -0
- package/dist/orders-13c10d49.mjs +85 -0
- package/dist/orders-37f041aa.js +1 -0
- package/dist/organizations-587d5a4d.mjs +122 -0
- package/dist/organizations-b4d902a2.js +1 -0
- package/dist/organizations.client-35b74e44.mjs +2997 -0
- package/dist/organizations.client-f982f55a.js +3 -0
- package/dist/organizations.client.cjs +1 -0
- package/dist/organizations.client.js +86 -0
- package/dist/products-3c43eb18.js +1 -0
- package/dist/products-943fb95e.mjs +107 -0
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +2 -78
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +78 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +65 -67
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -4
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +2 -61
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +4 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +61 -2
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/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/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.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/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.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/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +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/reports-270f69df.js +1 -0
- package/dist/reports-79cd9459.mjs +91 -0
- package/dist/reports.client.cjs +1 -0
- package/dist/reports.client.js +8 -0
- package/dist/states.validation-3b70f83a.js +1 -0
- package/dist/states.validation-944e334c.mjs +13 -0
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -0
- package/dist/users.client.js +632 -0
- package/dist/vue-draggable-next.esm-bundler-21a209c6.js +10 -0
- package/dist/vue-draggable-next.esm-bundler-ff6e3f52.mjs +1557 -0
- package/dist/vuex.esm-bundler-57d8b6ba.mjs +750 -0
- package/dist/vuex.esm-bundler-685cf29f.js +5 -0
- package/package.json +1 -1
- package/src/modules/auth/components/pages/SignIn.vue +2 -2
@@ -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"),w=require("../../../../components/Tab/Tab.vue2.cjs"),c=require("../../../../components/Field/Field.vue2.cjs"),V=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),g=require("../../../../components/Button/Button.vue2.cjs"),p=require("vue-router"),N=require("vue-i18n"),a=require("../../store/auth.cjs"),i=require("../../../middlewares/client/inputs.validation.cjs");require("./SignIn.vue2.cjs");const b={class:""},E={class:"mn-medium"},y=e.createElementVNode("br",null,null,-1),S={class:"t-semi"},P={class:"mn-big"},q={class:"mn-small p-small uppercase t-semi bg-grey radius-big o-hidden"},x={class:""},C={class:"mn-thin radius-small"},D={class:"mn-thin radius-small o-hidden"},T={class:"w-100 mn-big"},I={__name:"SignIn",setup(U){const{t:s}=N.useI18n({inheritLocale:!0,useScope:"local"}),d=e.ref(null),m=e.ref(null),u=e.ref(null);p.useRoute();const h=p.useRouter(),l=e.ref("phone");e.inject("APPLE_CLIENTID"),e.inject("APPLE_REDIRECT_URL");const f=r=>new Promise((n,o)=>{const t=document.createElement("script");t.type="text/javascript",t.src=r,t.onload=n,t.onerror=o,document.head.appendChild(t)});e.onMounted(async()=>{await f("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js")});async function v(){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 _(){h.push({name:"User Profile",params:{_id:a.state.user._id},query:{afterAuth:"true"}})}return(r,n)=>{const o=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",b,[e.createElementVNode("h3",E,[e.createTextVNode(e.toDisplayString(e.unref(s)("title"))+" ",1),y,e.createElementVNode("span",S,e.toDisplayString(e.unref(s)("subtitle")),1)]),e.createElementVNode("p",P,[e.createVNode(o,{to:{name:"Sign Up"},class:"underline t-second"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("signup")),1)]),_:1})]),e.createElementVNode("div",q,[e.createVNode(w.default,{selected:l.value,"onUpdate:selected":n[0]||(n[0]=t=>l.value=t),tabs:[{name:e.unref(s)("phone"),value:"phone"},{name:e.unref(s)("email"),value:"email"}]},null,8,["selected","tabs"])]),e.createElementVNode("div",x,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",C,[e.createVNode(V.default,{modelValue:a.state.user.phone,"onUpdate:modelValue":n[1]||(n[1]=t=>a.state.user.phone=t),dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},validation:d.value,mode:"national",inputOptions:{placeholder:e.unref(s)("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",D,[e.createVNode(c.default,{field:a.state.user.email,"onUpdate:field":n[2]||(n[2]=t=>a.state.user.email=t),placeholder:e.unref(s)("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":n[3]||(n[3]=t=>a.state.user.password=t),type:"password",validation:m.value,placeholder:e.unref(s)("passwordPlaceholder"),class:"bg-grey pd-medium radius-small mn-semi"},null,8,["field","validation","placeholder"]),e.createElementVNode("div",T,[e.createVNode(o,{to:"/auth/reset-password",class:"underline d-block t-blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("forgotPassword")),1)]),_:1})]),e.createVNode(g.default,{submit:v,callback:_,class:"mn-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("signin")),1)]),_:1})])}}};exports.default=I;
|
@@ -1,51 +1,50 @@
|
|
1
|
-
import { ref as p, inject as
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import { useRoute as
|
7
|
-
import { useI18n as
|
8
|
-
import { state as t, actions as
|
9
|
-
import { validateInputs as
|
1
|
+
import { ref as p, inject as f, onMounted as U, resolveComponent as C, openBlock as k, createElementBlock as x, createElementVNode as i, createTextVNode as m, toDisplayString as r, unref as o, createVNode as s, withCtx as d, Transition as v, withDirectives as w, vShow as g } from "vue";
|
2
|
+
import D from "../../../../components/Tab/Tab.vue2.js";
|
3
|
+
import b from "../../../../components/Field/Field.vue2.js";
|
4
|
+
import L from "../../../../components/FieldPhone/FieldPhone.vue.js";
|
5
|
+
import R from "../../../../components/Button/Button.vue2.js";
|
6
|
+
import { useRoute as T, useRouter as j } from "vue-router";
|
7
|
+
import { useI18n as A } from "vue-i18n";
|
8
|
+
import { state as t, actions as N } from "../../store/auth.js";
|
9
|
+
import { validateInputs as P, validatePhone as F, validateEmail as O } from "../../../middlewares/client/inputs.validation.js";
|
10
10
|
import "./SignIn.vue2.js";
|
11
|
-
|
12
|
-
const $ = { class: "" }, q = { class: "mn-medium" }, M = /* @__PURE__ */ i("br", null, null, -1), z = { class: "t-semi" }, G = { class: "mn-big" }, H = { class: "mn-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, J = { class: "" }, K = { class: "mn-thin radius-small" }, Q = { class: "mn-thin radius-small o-hidden" }, W = { class: "w-100 mn-big" }, X = {
|
11
|
+
const B = { class: "" }, $ = { class: "mn-medium" }, q = /* @__PURE__ */ i("br", null, null, -1), M = { class: "t-semi" }, z = { class: "mn-big" }, G = { class: "mn-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, H = { class: "" }, J = { class: "mn-thin radius-small" }, K = { class: "mn-thin radius-small o-hidden" }, Q = { class: "w-100 mn-big" }, ne = {
|
13
12
|
__name: "SignIn",
|
14
|
-
setup(
|
15
|
-
const { t:
|
13
|
+
setup(W) {
|
14
|
+
const { t: a } = A({
|
16
15
|
inheritLocale: !0,
|
17
16
|
useScope: "local"
|
18
|
-
}), h = p(null),
|
19
|
-
|
20
|
-
const
|
21
|
-
|
22
|
-
const
|
17
|
+
}), h = p(null), y = p(null), _ = p(null);
|
18
|
+
T();
|
19
|
+
const E = j(), n = p("phone");
|
20
|
+
f("APPLE_CLIENTID"), f("APPLE_REDIRECT_URL");
|
21
|
+
const S = (c) => new Promise((l, u) => {
|
23
22
|
const e = document.createElement("script");
|
24
|
-
e.type = "text/javascript", e.src = c, e.onload =
|
23
|
+
e.type = "text/javascript", e.src = c, e.onload = l, e.onerror = u, document.head.appendChild(e);
|
25
24
|
});
|
26
|
-
|
27
|
-
await
|
25
|
+
U(async () => {
|
26
|
+
await S("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js");
|
28
27
|
});
|
29
|
-
async function
|
28
|
+
async function V() {
|
30
29
|
try {
|
31
|
-
n.value === "phone" && await
|
30
|
+
n.value === "phone" && await P(
|
32
31
|
h,
|
33
|
-
|
32
|
+
F,
|
34
33
|
t.user.phone,
|
35
34
|
"Некорректный телефон"
|
36
|
-
), n.value === "email" && await
|
37
|
-
|
38
|
-
|
35
|
+
), n.value === "email" && await P(
|
36
|
+
_,
|
37
|
+
O,
|
39
38
|
t.user.email,
|
40
39
|
"Некорректный email"
|
41
40
|
);
|
42
41
|
} catch {
|
43
42
|
throw new Error();
|
44
43
|
}
|
45
|
-
t.user.phone = t.user.phone.number, await
|
44
|
+
t.user.phone = t.user.phone.number, await N.login(t.user, n.value);
|
46
45
|
}
|
47
|
-
function
|
48
|
-
|
46
|
+
function I() {
|
47
|
+
E.push({
|
49
48
|
name: "User Profile",
|
50
49
|
params: {
|
51
50
|
_id: t.user._id
|
@@ -53,42 +52,42 @@ const $ = { class: "" }, q = { class: "mn-medium" }, M = /* @__PURE__ */ i("br",
|
|
53
52
|
query: { afterAuth: "true" }
|
54
53
|
});
|
55
54
|
}
|
56
|
-
return (c,
|
55
|
+
return (c, l) => {
|
57
56
|
const u = C("router-link");
|
58
|
-
return
|
59
|
-
i("h3",
|
60
|
-
m(r(
|
61
|
-
|
62
|
-
i("span",
|
57
|
+
return k(), x("section", B, [
|
58
|
+
i("h3", $, [
|
59
|
+
m(r(o(a)("title")) + " ", 1),
|
60
|
+
q,
|
61
|
+
i("span", M, r(o(a)("subtitle")), 1)
|
63
62
|
]),
|
64
|
-
i("p",
|
63
|
+
i("p", z, [
|
65
64
|
s(u, {
|
66
65
|
to: { name: "Sign Up" },
|
67
66
|
class: "underline t-second"
|
68
67
|
}, {
|
69
68
|
default: d(() => [
|
70
|
-
m(r(
|
69
|
+
m(r(o(a)("signup")), 1)
|
71
70
|
]),
|
72
71
|
_: 1
|
73
72
|
})
|
74
73
|
]),
|
75
|
-
i("div",
|
76
|
-
s(
|
74
|
+
i("div", G, [
|
75
|
+
s(D, {
|
77
76
|
selected: n.value,
|
78
|
-
"onUpdate:selected":
|
77
|
+
"onUpdate:selected": l[0] || (l[0] = (e) => n.value = e),
|
79
78
|
tabs: [
|
80
|
-
{ name:
|
81
|
-
{ name:
|
79
|
+
{ name: o(a)("phone"), value: "phone" },
|
80
|
+
{ name: o(a)("email"), value: "email" }
|
82
81
|
]
|
83
82
|
}, null, 8, ["selected", "tabs"])
|
84
83
|
]),
|
85
|
-
i("div",
|
84
|
+
i("div", H, [
|
86
85
|
s(v, { name: "slide-fade" }, {
|
87
86
|
default: d(() => [
|
88
|
-
w(i("div",
|
89
|
-
s(
|
87
|
+
w(i("div", J, [
|
88
|
+
s(L, {
|
90
89
|
modelValue: t.user.phone,
|
91
|
-
"onUpdate:modelValue":
|
90
|
+
"onUpdate:modelValue": l[1] || (l[1] = (e) => t.user.phone = e),
|
92
91
|
dropdownOptions: {
|
93
92
|
showDialCodeInSelection: !0,
|
94
93
|
showFlags: !0,
|
@@ -96,58 +95,58 @@ const $ = { class: "" }, q = { class: "mn-medium" }, M = /* @__PURE__ */ i("br",
|
|
96
95
|
},
|
97
96
|
validation: h.value,
|
98
97
|
mode: "national",
|
99
|
-
inputOptions: { placeholder:
|
98
|
+
inputOptions: { placeholder: o(a)("phonePlaceholder") },
|
100
99
|
class: "bg-grey pd-small radius-small mn-thin"
|
101
100
|
}, null, 8, ["modelValue", "validation", "inputOptions"])
|
102
101
|
], 512), [
|
103
|
-
[
|
102
|
+
[g, n.value === "phone"]
|
104
103
|
])
|
105
104
|
]),
|
106
105
|
_: 1
|
107
106
|
}),
|
108
107
|
s(v, { name: "slide-fade" }, {
|
109
108
|
default: d(() => [
|
110
|
-
w(i("div",
|
111
|
-
s(
|
109
|
+
w(i("div", K, [
|
110
|
+
s(b, {
|
112
111
|
field: t.user.email,
|
113
|
-
"onUpdate:field":
|
114
|
-
placeholder:
|
115
|
-
validation:
|
112
|
+
"onUpdate:field": l[2] || (l[2] = (e) => t.user.email = e),
|
113
|
+
placeholder: o(a)("emailPlaceholder"),
|
114
|
+
validation: _.value,
|
116
115
|
class: "bg-grey pd-medium radius-small"
|
117
116
|
}, null, 8, ["field", "placeholder", "validation"])
|
118
117
|
], 512), [
|
119
|
-
[
|
118
|
+
[g, n.value === "email"]
|
120
119
|
])
|
121
120
|
]),
|
122
121
|
_: 1
|
123
122
|
})
|
124
123
|
]),
|
125
|
-
s(
|
124
|
+
s(b, {
|
126
125
|
field: t.user.password,
|
127
|
-
"onUpdate:field":
|
126
|
+
"onUpdate:field": l[3] || (l[3] = (e) => t.user.password = e),
|
128
127
|
type: "password",
|
129
|
-
validation:
|
130
|
-
placeholder:
|
128
|
+
validation: y.value,
|
129
|
+
placeholder: o(a)("passwordPlaceholder"),
|
131
130
|
class: "bg-grey pd-medium radius-small mn-semi"
|
132
131
|
}, null, 8, ["field", "validation", "placeholder"]),
|
133
|
-
i("div",
|
132
|
+
i("div", Q, [
|
134
133
|
s(u, {
|
135
134
|
to: "/auth/reset-password",
|
136
135
|
class: "underline d-block t-blue"
|
137
136
|
}, {
|
138
137
|
default: d(() => [
|
139
|
-
m(r(
|
138
|
+
m(r(o(a)("forgotPassword")), 1)
|
140
139
|
]),
|
141
140
|
_: 1
|
142
141
|
})
|
143
142
|
]),
|
144
|
-
s(
|
145
|
-
submit:
|
146
|
-
callback:
|
143
|
+
s(R, {
|
144
|
+
submit: V,
|
145
|
+
callback: I,
|
147
146
|
class: "mn-thin"
|
148
147
|
}, {
|
149
148
|
default: d(() => [
|
150
|
-
m(r(
|
149
|
+
m(r(o(a)("signin")), 1)
|
151
150
|
]),
|
152
151
|
_: 1
|
153
152
|
})
|
@@ -155,7 +154,6 @@ const $ = { class: "" }, q = { class: "mn-medium" }, M = /* @__PURE__ */ i("br",
|
|
155
154
|
};
|
156
155
|
}
|
157
156
|
};
|
158
|
-
typeof P == "function" && P(X);
|
159
157
|
export {
|
160
|
-
|
158
|
+
ne as default
|
161
159
|
};
|
package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router"),u=require("../../../../components/Select/Select.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router"),u=require("../../../../components/Select/Select.vue2.cjs"),a=require("../../store/blogposts.cjs"),c=require("../../../auth/store/auth.cjs"),m={class:"min-h-100vh pd-thin"},d={class:"mn-thin flex-v-center t-left flex-nowrap flex"},p={class:"flex-v-center flex-nowrap flex t-left"},f=e.createElementVNode("span",{class:""},"Topics for ",-1),g={class:"w-100 bg-grey pd-small radius-big mn-semi gap-thin flex-nowrap flex"},h={class:""},w={__name:"Community",setup(k){const l=n.useRoute(),r=n.useRouter();return(y,t)=>{const s=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",d,[e.createElementVNode("h2",p,[f,e.createVNode(u.default,{options:["today","week","month","year"],select:a.state.filter.period,"onUpdate:select":t[0]||(t[0]=o=>a.state.filter.period=o),placeholder:"Select type",class:"w-max mn-l-small bg-grey pd-thin radius-medium h2 t-center t-black"},null,8,["select"])])]),e.createElementVNode("ul",g,[e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="featured"},"t-medium pd-thin radius-small"]),onClick:t[1]||(t[1]=o=>e.unref(r).push({name:"Blog"}))},"👑 Featured",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="popular"},"t-medium pd-thin radius-small"]),onClick:t[2]||(t[2]=o=>e.unref(r).push({name:"Blog",params:{category:"popular"}}))},"🔥 Popular",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="new"},"t-medium pd-thin radius-small"]),onClick:t[3]||(t[3]=o=>e.unref(r).push({name:"Blog",params:{category:"new"}}))},"🆕 New",2),c.state.user._id?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="following"},"t-medium pd-thin radius-small"]),onClick:t[4]||(t[4]=o=>e.unref(r).push({name:"Blog",params:{category:"following"}}))},"👥 Following",2)):e.createCommentVNode("",!0)]),e.createElementVNode("section",h,[e.createVNode(s,null,{default:e.withCtx(({Component:o,route:i})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o),{ref:"page",key:i.query}))]),_:2},1024)]),_:1})])])}}};exports.default=w;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { resolveComponent as f, openBlock as n, createElementBlock as m, createElementVNode as o, createVNode as i, normalizeClass as r, unref as t, createCommentVNode as g, withCtx as p, Transition as h, createBlock as w, resolveDynamicComponent as y } from "vue";
|
2
2
|
import { useRoute as _, useRouter as k } from "vue-router";
|
3
|
-
import b from "../../../../components/Select/Select.
|
3
|
+
import b from "../../../../components/Select/Select.vue2.js";
|
4
4
|
import { state as c } from "../../store/blogposts.js";
|
5
5
|
import { state as v } from "../../../auth/store/auth.js";
|
6
6
|
const x = { class: "min-h-100vh pd-thin" }, C = { class: "mn-thin flex-v-center t-left flex-nowrap flex" }, B = { class: "flex-v-center flex-nowrap flex t-left" }, $ = /* @__PURE__ */ o("span", { class: "" }, "Topics for ", -1), N = { class: "w-100 bg-grey pd-small radius-big mn-semi gap-thin flex-nowrap flex" }, V = { class: "" }, D = {
|
package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("../../../constructor/components/elements/Textarea.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("../../../constructor/components/elements/Textarea.vue2.cjs"),V=require("../../../constructor/components/sections/Constructor.vue.cjs"),y=require("../../../../components/Popup/Popup.vue.cjs");require("../../../../components/FieldTags/tag-input.vue.cjs");require("../../../../components/FieldTags/vue-tags-input.scss.cjs");const B=require("../../../../components/FieldTags/BlockTags.vue.cjs"),N=require("../../../../components/Checkbox/Checkbox.vue.cjs"),P=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),x=require("../../../../components/Button/Button.vue2.cjs"),f=require("vue-router"),n=require("../../store/blogposts.cjs"),i=require("../../../auth/store/auth.cjs"),C=require("../../../organizations/store/organizations.cjs"),q={class:"pd-thin"},E={key:0,class:"h-100 w-100 bg-grey pd-big radius-big"},T={class:"w-full h-full"},z={key:1,class:"pd-thin pos-sticky pos-l-0 pos-b-0 w-100"},O={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},$=e.createElementVNode("h3",{class:"mn-small"},"Final Touches",-1),D=e.createElementVNode("h5",{class:"mn-thin"},"Add to public:",-1),M={key:0,class:"mn-thin"},S={key:1,class:"mn-medium br-grey br-2px br-solid pd-small radius-big"},U={__name:"CreateBlogPost",setup(A){const s=f.useRoute(),u=f.useRouter();let t=e.ref(null),p=e.ref(null);const c=e.ref([]),r=e.ref(null);e.onMounted(async()=>{if(s.params.url){const a=await n.read({user:i.state.user._id,url:s.params.url});t.value=a.pop()}else n.clean(),t.value=n.state.current;t.value.owner||(t.value.owner={target:i.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:i.state.user._id,type:"user",hidden:!1}),t.value.owner.type==="organization"&&(r.value={_id:t.value.owner.target._id,name:t.value.owner.target.profile.name,photo:t.value.owner.target.profile.photo});const o=await C.actions.read({user:i.state.user._id,postable:i.state.user._id,limit:100});console.log(o),p.value=o.map(a=>({name:a.profile.name,_id:a._id,photo:a.profile.photo}))});const g=e.ref(""),m=e.ref([{text:"story"},{text:"news"},{text:"guide"},{text:"discussion"},{text:"photos"}]);e.computed(()=>m.value.filter(o=>o.text.toLowerCase().includes(g.value.toLowerCase()))),e.computed(()=>m.value.filter(o=>!c.value.some(a=>a.text===o.text)));const d=e.ref(!1);function h(){d.value=!0}function v(){d.value=!1}function b(){c.value.length>0&&c.value.map(o=>o.text),t.value.status="draft",s.params.url?n.update(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.log(o)}):n.create(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.log(o)})}function k(){r.value&&(t.value.owner={target:r.value._id,type:"organization"}),r.value||(t.value.creator.hidden=!1),r.value||(t.value.organization=t.value.creator),t.value.status="published",console.log(t.value),s.params.url?n.update(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.log(o)}):n.create(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.log(o)})}function _(){confirm("Are you sure you want to delete this post?")&&n.remove(t.value._id).then(o=>{u.push({name:"User Blogposts",params:{_id:t.value.creator.target._id}})}).catch(o=>{console.log(o)})}return(o,a)=>(e.openBlock(),e.createElementBlock("article",q,[e.unref(t)?(e.openBlock(),e.createElementBlock("section",E,[e.createElementVNode("div",T,[e.createVNode(w.default,{prop:e.unref(t),content:"name",placeholder:"Enter post title",class:"h2"},null,8,["prop"])]),e.createVNode(V.default,{content:e.unref(t).content,onUpdate:a[0]||(a[0]=l=>e.unref(t).content=l)},null,8,["content"])])):e.createCommentVNode("",!0),e.unref(t)?(e.openBlock(),e.createElementBlock("section",z,[e.createElementVNode("div",O,[e.unref(s).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:a[1]||(a[1]=l=>_()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:a[2]||(a[2]=l=>b()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:a[3]||(a[3]=l=>h()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0),e.createVNode(y.default,{title:"Добавить участника",onClosePopup:v,isPopupOpen:d.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[$,e.createVNode(B.default,{onTagsChanged:a[4]||(a[4]=l=>e.unref(t).tags=l),tags:e.unref(t).tags},null,8,["tags"]),D,e.createVNode(P.default,{modelValue:r.value,"onUpdate:modelValue":a[5]||(a[5]=l=>r.value=l),options:e.unref(p),multiple:!1,taggable:!1,placeholder:"Type to search or add tag",label:"name","track-by":"_id",class:"mn-medium bg-grey radius-medium pd-small"},null,8,["modelValue","options"]),r.value?(e.openBlock(),e.createElementBlock("h5",M,"Options:")):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("div",S,[e.createVNode(N.default,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":a[6]||(a[6]=l=>e.unref(t).creator.hidden=l),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode(x.default,{submit:k,callback:o.redirectTo,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode("Publish")]),_:1},8,["callback"])]),_:1},8,["isPopupOpen"])]))}};exports.default=U;
|
package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as r, onMounted as V, computed as _, openBlock as u, createElementBlock as i, unref as a, createElementVNode as p, createVNode as n, createCommentVNode as m, withCtx as w, createTextVNode as z } from "vue";
|
2
|
-
import D from "../../../constructor/components/elements/Textarea.
|
2
|
+
import D from "../../../constructor/components/elements/Textarea.vue2.js";
|
3
3
|
import N from "../../../constructor/components/sections/Constructor.vue.js";
|
4
4
|
import O from "../../../../components/Popup/Popup.vue.js";
|
5
5
|
import "../../../../components/FieldTags/tag-input.vue.js";
|
package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs
CHANGED
@@ -1,4 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=
|
2
|
-
|
3
|
-
`)&&(console.log("We are adding new block:"+t.index+newBlocks+o),c("addBlock","Textarea","",t.index,{blocks:newBlocks,ref:o})),r()}function i(a){(a.keyCode===8||a.keyCode===46)&&t.prop[t.content].trim()===""&&c("deleteBlock",t.prop)}function s(){e.nextTick(()=>{o.value.focus(),c("updateBlock",t.prop,{setFocus:!1})})}function r(){o.value.style.height="1rem",o.value.style.height=o.value.scrollHeight+"px"}return e.onUpdated(()=>{t.setFocus&&e.nextTick(()=>{s()}),r()}),e.onMounted(()=>{t.setFocus&&e.nextTick(()=>{s()}),r()}),(a,n)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":n[0]||(n[0]=u=>l.prop[l.content]=u),placeholder:l.placeholder?l.placeholder:"Enter text",onInput:d,onFocus:n[1]||(n[1]=u=>c("focus",o.value)),onKeyup:i,ref_key:"textarea",ref:o,class:"text-area mn-thin"},`
|
4
|
-
`,40,f),[[e.vModelText,l.prop[l.content]]])]))}};exports.default=k;
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
|
package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js
CHANGED
@@ -1,63 +1,4 @@
|
|
1
|
-
|
2
|
-
import "./Textarea.vue2.js";
|
3
|
-
const y = ["placeholder"], F = {
|
4
|
-
__name: "Textarea",
|
5
|
-
props: ["prop", "value", "content", "placeholder", "index", "setFocus"],
|
6
|
-
emits: ["deleteBlock", "updateBlock", "addBlock", "focus"],
|
7
|
-
setup(l, { emit: a }) {
|
8
|
-
const e = l;
|
9
|
-
d(e);
|
10
|
-
const t = d(null);
|
11
|
-
d(0);
|
12
|
-
function i(n) {
|
13
|
-
let o = n.target.value.split(/\n+/);
|
14
|
-
if (o.length > 1) {
|
15
|
-
e.prop[e.content] = o[0], s(() => {
|
16
|
-
c();
|
17
|
-
});
|
18
|
-
let r = o.slice(1).map((f) => ({ __name: "Textarea", content: f }));
|
19
|
-
a("addBlock", "Textarea", "", e.index, { blocks: r, ref: t });
|
20
|
-
} else
|
21
|
-
n.target.value.trim() === "" && n.target.value.includes(`
|
22
|
-
|
23
|
-
`) && (console.log("We are adding new block:" + e.index + newBlocks + t), a("addBlock", "Textarea", "", e.index, { blocks: newBlocks, ref: t })), c();
|
24
|
-
}
|
25
|
-
function p(n) {
|
26
|
-
(n.keyCode === 8 || n.keyCode === 46) && e.prop[e.content].trim() === "" && a("deleteBlock", e.prop);
|
27
|
-
}
|
28
|
-
function u() {
|
29
|
-
s(() => {
|
30
|
-
t.value.focus(), a("updateBlock", e.prop, { setFocus: !1 });
|
31
|
-
});
|
32
|
-
}
|
33
|
-
function c() {
|
34
|
-
t.value.style.height = "1rem", t.value.style.height = t.value.scrollHeight + "px";
|
35
|
-
}
|
36
|
-
return k(() => {
|
37
|
-
e.setFocus && s(() => {
|
38
|
-
u();
|
39
|
-
}), c();
|
40
|
-
}), x(() => {
|
41
|
-
e.setFocus && s(() => {
|
42
|
-
u();
|
43
|
-
}), c();
|
44
|
-
}), (n, o) => (h(), B("div", null, [
|
45
|
-
m(g("textarea", {
|
46
|
-
"onUpdate:modelValue": o[0] || (o[0] = (r) => l.prop[l.content] = r),
|
47
|
-
placeholder: l.placeholder ? l.placeholder : "Enter text",
|
48
|
-
onInput: i,
|
49
|
-
onFocus: o[1] || (o[1] = (r) => a("focus", t.value)),
|
50
|
-
onKeyup: p,
|
51
|
-
ref_key: "textarea",
|
52
|
-
ref: t,
|
53
|
-
class: "text-area mn-thin"
|
54
|
-
}, `
|
55
|
-
`, 40, y), [
|
56
|
-
[v, l.prop[l.content]]
|
57
|
-
])
|
58
|
-
]));
|
59
|
-
}
|
60
|
-
};
|
1
|
+
const e = "";
|
61
2
|
export {
|
62
|
-
|
3
|
+
e as default
|
63
4
|
};
|
package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs
CHANGED
@@ -1 +1,4 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Textarea.vue.cjs");const f=["placeholder"],k={__name:"Textarea",props:["prop","value","content","placeholder","index","setFocus"],emits:["deleteBlock","updateBlock","addBlock","focus"],setup(l,{emit:c}){const t=l;e.ref(t);const o=e.ref(null);e.ref(0);function d(a){let n=a.target.value.split(/\n+/);if(n.length>1){t.prop[t.content]=n[0],e.nextTick(()=>{r()});let u=n.slice(1).map(p=>({__name:"Textarea",content:p}));c("addBlock","Textarea","",t.index,{blocks:u,ref:o})}else a.target.value.trim()===""&&a.target.value.includes(`
|
2
|
+
|
3
|
+
`)&&(console.log("We are adding new block:"+t.index+newBlocks+o),c("addBlock","Textarea","",t.index,{blocks:newBlocks,ref:o})),r()}function i(a){(a.keyCode===8||a.keyCode===46)&&t.prop[t.content].trim()===""&&c("deleteBlock",t.prop)}function s(){e.nextTick(()=>{o.value.focus(),c("updateBlock",t.prop,{setFocus:!1})})}function r(){o.value.style.height="1rem",o.value.style.height=o.value.scrollHeight+"px"}return e.onUpdated(()=>{t.setFocus&&e.nextTick(()=>{s()}),r()}),e.onMounted(()=>{t.setFocus&&e.nextTick(()=>{s()}),r()}),(a,n)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":n[0]||(n[0]=u=>l.prop[l.content]=u),placeholder:l.placeholder?l.placeholder:"Enter text",onInput:d,onFocus:n[1]||(n[1]=u=>c("focus",o.value)),onKeyup:i,ref_key:"textarea",ref:o,class:"text-area mn-thin"},`
|
4
|
+
`,40,f),[[e.vModelText,l.prop[l.content]]])]))}};exports.default=k;
|
package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js
CHANGED
@@ -1,4 +1,63 @@
|
|
1
|
-
|
1
|
+
import { ref as d, onUpdated as k, nextTick as s, onMounted as x, openBlock as h, createElementBlock as B, withDirectives as m, createElementVNode as g, vModelText as v } from "vue";
|
2
|
+
import "./Textarea.vue.js";
|
3
|
+
const y = ["placeholder"], F = {
|
4
|
+
__name: "Textarea",
|
5
|
+
props: ["prop", "value", "content", "placeholder", "index", "setFocus"],
|
6
|
+
emits: ["deleteBlock", "updateBlock", "addBlock", "focus"],
|
7
|
+
setup(l, { emit: a }) {
|
8
|
+
const e = l;
|
9
|
+
d(e);
|
10
|
+
const t = d(null);
|
11
|
+
d(0);
|
12
|
+
function i(n) {
|
13
|
+
let o = n.target.value.split(/\n+/);
|
14
|
+
if (o.length > 1) {
|
15
|
+
e.prop[e.content] = o[0], s(() => {
|
16
|
+
c();
|
17
|
+
});
|
18
|
+
let r = o.slice(1).map((f) => ({ __name: "Textarea", content: f }));
|
19
|
+
a("addBlock", "Textarea", "", e.index, { blocks: r, ref: t });
|
20
|
+
} else
|
21
|
+
n.target.value.trim() === "" && n.target.value.includes(`
|
22
|
+
|
23
|
+
`) && (console.log("We are adding new block:" + e.index + newBlocks + t), a("addBlock", "Textarea", "", e.index, { blocks: newBlocks, ref: t })), c();
|
24
|
+
}
|
25
|
+
function p(n) {
|
26
|
+
(n.keyCode === 8 || n.keyCode === 46) && e.prop[e.content].trim() === "" && a("deleteBlock", e.prop);
|
27
|
+
}
|
28
|
+
function u() {
|
29
|
+
s(() => {
|
30
|
+
t.value.focus(), a("updateBlock", e.prop, { setFocus: !1 });
|
31
|
+
});
|
32
|
+
}
|
33
|
+
function c() {
|
34
|
+
t.value.style.height = "1rem", t.value.style.height = t.value.scrollHeight + "px";
|
35
|
+
}
|
36
|
+
return k(() => {
|
37
|
+
e.setFocus && s(() => {
|
38
|
+
u();
|
39
|
+
}), c();
|
40
|
+
}), x(() => {
|
41
|
+
e.setFocus && s(() => {
|
42
|
+
u();
|
43
|
+
}), c();
|
44
|
+
}), (n, o) => (h(), B("div", null, [
|
45
|
+
m(g("textarea", {
|
46
|
+
"onUpdate:modelValue": o[0] || (o[0] = (r) => l.prop[l.content] = r),
|
47
|
+
placeholder: l.placeholder ? l.placeholder : "Enter text",
|
48
|
+
onInput: i,
|
49
|
+
onFocus: o[1] || (o[1] = (r) => a("focus", t.value)),
|
50
|
+
onKeyup: p,
|
51
|
+
ref_key: "textarea",
|
52
|
+
ref: t,
|
53
|
+
class: "text-area mn-thin"
|
54
|
+
}, `
|
55
|
+
`, 40, y), [
|
56
|
+
[v, l.prop[l.content]]
|
57
|
+
])
|
58
|
+
]));
|
59
|
+
}
|
60
|
+
};
|
2
61
|
export {
|
3
|
-
|
62
|
+
F as default
|
4
63
|
};
|
package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),_=require("../elements/Textarea.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),_=require("../elements/Textarea.vue2.cjs"),E=require("../elements/H2.vue.cjs"),x=require("../elements/Caption.vue.cjs"),N=require("../elements/Bullets.vue.cjs"),y=require("../elements/ImageUpload.vue.cjs"),A=require("../elements/Embed.vue.cjs"),V=require("../elements/Audio.vue.cjs"),q=require("../../../../../../node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.cjs"),D=["onMouseover"],$={key:0,class:"z-index-5 radius-thin pd-thin bg-white w-max mn-small flex-nowrap flex-column flex"},M=["onClick"],T=["onClick"],F=["onClick"],I=["onClick"],S={__name:"Constructor",props:["content"],emits:["update"],setup(f,{emit:u}){const v=f;let t=e.ref(null);e.ref(null),t.value={content:v.content};const k={Textarea:_.default,H2:E.default,Bullets:N.default,Caption:x.default,ImageUpload:y.default,Embed:A.default,Audio:V.default};function s(c="Textarea",l="",n,o){console.log("We are adding new block (functuin HandleAddBlock):"+c+l+n+o);let a={order:t.value.content.length+1,type:c,style:"",class:"",content:l,blocks:[],setFocus:!0};if(o&&o.blocks&&Array.isArray(o.blocks)){let m=o.blocks.map(C=>({...a,content:C.content})),w=[(o.index||n)+1,0].concat(m);t.value.content.splice.apply(t.value.content,w);const B=m[m.length-1];console.log("New block is"+B)}else n!==void 0?(t.value.content.splice(n+1,0,a),console.log("Latest block is"+a)):(console.log("Another block is"+a),t.value.content.push(a));i.value=null,u("update",t.value.content)}function g(c,l){const n=t.value.content.findIndex(o=>o===c);n!==-1&&(t.value.content[n]={...t.value.content[n],...l}),u("update",t.value.content)}function p(c){let l=t.value.content.findIndex(n=>n===c);l!==-1&&t.value.content.splice(l,1),t.value.content[l-1].setFocus=!0,u("update",t.value.content)}const i=e.ref(null),d=e.ref(!1),r=e.ref(!1);function h(){d.value=!0}function b(){d.value=!1}return e.watchEffect(()=>{t.value&&t.value.content.length===0&&s("Textarea",""),u("update",t.value.content)}),(c,l)=>(e.openBlock(),e.createElementBlock("section",null,[e.unref(t).content?(e.openBlock(),e.createBlock(e.unref(q.VueDraggableNext),{key:0,class:"w-full",list:e.unref(t).content,onStart:h,onEnd:b},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).content,(n,o)=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"pos-relative"},[e.createElementVNode("div",{onMouseover:a=>(i.value=o,r.value=!1),class:"pos-relative w-full h-full"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k[n.type]),{index:o,component:n,prop:n,class:e.normalizeClass(n.class),setFocus:n.setFocus,content:"content",onDeleteBlock:p,onAddBlock:s,onUpdateBlock:g},null,40,["index","component","prop","class","setFocus"]))],40,D),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[i.value===o?(e.openBlock(),e.createElementBlock("div",{key:0,class:"pos-absolute z-index-4 i-semi",style:{right:"calc(100% + 0.5rem)",top:"calc(50% - 1.125rem)"},onMousedown:l[1]||(l[1]=e.withModifiers(a=>d.value=!0,["prevent"]))},[e.createElementVNode("button",{onClick:l[0]||(l[0]=a=>r.value=!r.value),class:"mn-small cursor-pointer w-100 i-semi bg-white radius-thin"},e.toDisplayString(n.content?"...":"+"),1),r.value?(e.openBlock(),e.createElementBlock("div",$,[e.createElementVNode("span",{onClick:a=>p(n),class:"mn-thin w-max t-red bg-white button-small button"}," Remove ",8,M),e.createElementVNode("span",{onClick:a=>s("ImageUpload","",o),class:"mn-thin w-max t-black bg-white button-small button"}," Add Image ",8,T),e.createElementVNode("span",{onClick:a=>s("H2","",o),class:"w-max button-small t-black bg-white button"}," Add Title ",8,F),e.createElementVNode("span",{onClick:a=>s("Embed","",o),class:"w-max button-small t-black bg-white button"}," Add Embed ",8,I)])):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0)]),_:2},1024)]))),128))]),_:1},8,["list"])):e.createCommentVNode("",!0)]))}};exports.default=S;
|
package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as i, watchEffect as F, openBlock as a, createElementBlock as r, unref as p, createBlock as g, withCtx as b, Fragment as M, renderList as N, createElementVNode as c, resolveDynamicComponent as I, normalizeClass as T, createVNode as U, Transition as V, withModifiers as z, toDisplayString as H, createCommentVNode as k } from "vue";
|
2
|
-
import S from "../elements/Textarea.
|
2
|
+
import S from "../elements/Textarea.vue2.js";
|
3
3
|
import L from "../elements/H2.vue.js";
|
4
4
|
import R from "../elements/Caption.vue.js";
|
5
5
|
import W from "../elements/Bullets.vue.js";
|
package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router");require("../../../../components/Select/Select.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router");require("../../../../components/Select/Select.vue.cjs");const f=require("../../../../components/DatePicker/DatePicker.vue.cjs"),i=require("../../store/events.cjs"),m={class:"pd-thin min-h-100vh"},g=e.createElementVNode("div",{class:"mn-thin br-solid br-1px br-grey bg-grey radius-big"},null,-1),y={class:""},_={__name:"layoutEvents",setup(b){const l=c.useRoute(),d=c.useRouter(),u=p(new Date);function p(t){return`${t.getDate().toString().padStart(2,"0")}${(t.getMonth()+1).toString().padStart(2,"0")}${t.getFullYear()}`}if(l.query){const t=l.query,s={tags:t.tags?t.tags.split(","):null,date:t.date?t.date:u};i.state.filter=s}else{const t={date:u};i.state.filter=t}return e.watch(()=>i.state.filter,(t,s)=>{const a={...l.query};Object.keys(s).forEach(o=>{a[o]&&delete a[o]});const n=Object.fromEntries(Object.entries(t).filter(([o,r])=>Array.isArray(r)&&r.length>0||typeof r=="string"&&r).map(([o,r])=>[o,Array.isArray(r)?r.join(","):r]));Object.assign(a,n),d.push({query:a})},{deep:!0}),(t,s)=>{const a=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",m,[e.createVNode(f.default,{date:i.state.filter.date,"onUpdate:date":s[0]||(s[0]=n=>i.state.filter.date=n),locale:t.$i18n.locale,class:"radius-small bg-grey pd-l-zero pd-r-zero pd-medium"},null,8,["date","locale"]),g,e.createElementVNode("section",y,[e.createVNode(a,null,{default:e.withCtx(({Component:n,route:o})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n),{ref:"page",key:o.query}))]),_:2},1024)]),_:1})])])}}};exports.default=_;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { watch as y, resolveComponent as g, openBlock as u, createElementBlock as _, createVNode as l, createElementVNode as m, withCtx as d, Transition as b, createBlock as h, resolveDynamicComponent as w } from "vue";
|
2
2
|
import { useRoute as D, useRouter as q } from "vue-router";
|
3
|
-
import "../../../../components/Select/Select.
|
3
|
+
import "../../../../components/Select/Select.vue.js";
|
4
4
|
import j from "../../../../components/DatePicker/DatePicker.vue.js";
|
5
5
|
import { state as s } from "../../store/events.js";
|
6
6
|
const k = { class: "pd-thin min-h-100vh" }, E = /* @__PURE__ */ m("div", { class: "mn-thin br-solid br-1px br-grey bg-grey radius-big" }, null, -1), V = { class: "" }, B = {
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../constructor/components/elements/Textarea.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../constructor/components/elements/Textarea.vue.cjs");const N=require("../../../constructor/components/sections/Constructor.vue.cjs"),E=require("../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs");require("../../../../../node_modules/@vuepic/vue-datepicker/dist/main.css.cjs");const y=require("../../../../components/Popup/Popup.vue.cjs"),f=require("../../../../components/Field/Field.vue2.cjs"),q=require("../../../../components/FieldTags/BlockTags.vue.cjs"),P=require("../../../../components/Checkbox/Checkbox.vue.cjs"),C=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),x=require("../../../../components/UploadImage/UploadImage.vue.cjs"),B=require("../../../../components/Button/Button.vue2.cjs"),v=require("vue-router"),s=require("../../store/events.cjs"),u=require("../../../auth/store/auth.cjs"),D=require("../../../organizations/store/organizations.cjs");require("./EditEvent.vue2.cjs");const U={key:0,class:"h-100 pd-thin"},T={class:"mn-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex"},z=e.createElementVNode("h4",null,"Upload Event Cover",-1),O=e.createElementVNode("h3",{class:"mn-small"},"Date",-1),$=e.createElementVNode("h3",{class:"mn-small"},"Description",-1),M={key:0,class:"pd-b-extra w-100 bg-grey pd-big radius-big"},S={key:1,class:"pd-thin pos-sticky pos-l-0 pos-b-0 w-100"},A={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},R=e.createElementVNode("h3",{class:"mn-small"},"Final Touches",-1),F=e.createElementVNode("h5",{class:"mn-thin"},"Add to public:",-1),j={key:0,class:"mn-thin"},H={key:1,class:"mn-medium br-grey br-2px br-solid pd-small radius-big"},G={__name:"EditEvent",setup(J){const i=v.useRoute(),d=v.useRouter();let t=e.ref(null),p=e.ref(null);const m=e.ref([]),r=e.ref(null),n=e.ref(),h=()=>({top:0,left:0});e.onMounted(async()=>{if(i.params.url){const a=await s.read({user:u.state.user._id,url:i.params.url});t.value=a.pop();const l=t.value.date.start,_=t.value.date.end;n.value=[l,_]}else{s.clean(),t.value=s.state.current;const a=new Date,l=new Date;n.value=[a,l]}t.value.owner||(t.value.owner={target:u.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:u.state.user._id,type:"user",hidden:!1}),t.value.owner.type==="organization"&&(r.value={_id:t.value.owner.target._id,name:t.value.owner.target.profile.name,photo:t.value.owner.target.profile.photo});const o=await D.actions.read({user:u.state.user._id,postable:u.state.user._id,limit:100});p.value=o.map(a=>({name:a.profile.name,_id:a._id,photo:a.profile.photo}))});const c=e.ref(!1);function g(){c.value=!0}function b(){c.value=!1}function k(){m.value.length>0&&m.value.map(o=>o.text),t.value.status="draft",t.value.date={start:n.value[0],end:n.value[1]},i.params.url?s.update(t.value).then(o=>{d.push({name:"Event",params:{url:o.url}})}).catch(o=>{console.error(o)}):s.create(t.value).then(o=>{d.push({name:"Event",params:{url:o.url}})}).catch(o=>{console.error(o)})}function V(){r.value&&(t.value.owner={target:r.value._id,type:"organization"}),r.value||(t.value.creator.hidden=!1),r.value||(t.value.organization=t.value.creator),t.value.status="published",t.value.date={start:n.value[0],end:n.value[1]},console.log(n.value),i.params.url?s.update(t.value).then(o=>{d.push({name:"Event",params:{url:o.url}})}).catch(o=>{console.log(o)}):s.create(t.value).then(o=>{d.push({name:"Event",params:{url:o.url}})}).catch(o=>{console.log(o)})}function w(){confirm("Are you sure you want to delete this event?")&&s.remove(t.value._id).then(o=>{d.push({name:"User Events",params:{_id:t.value.creator.target._id}})}).catch(o=>{console.error(o)})}return(o,a)=>e.unref(t)?(e.openBlock(),e.createElementBlock("article",U,[e.createElementVNode("div",T,[e.createVNode(x.default,{photo:e.unref(t).cover,"onUpdate:photo":a[0]||(a[0]=l=>e.unref(t).cover=l),uploadPath:"users/"+u.state.user._id+"/events",class:"h-4r w-4r aspect-1x1 o-hidden mn-thin radius-extra"},null,8,["photo","uploadPath"]),z]),e.createVNode(f.default,{field:e.unref(t).name,"onUpdate:field":a[1]||(a[1]=l=>e.unref(t).name=l),placeholder:"Event name",class:"mn-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(f.default,{field:e.unref(t).description,"onUpdate:field":a[2]||(a[2]=l=>e.unref(t).description=l),type:"textfield",placeholder:"Enter short description",class:"mn-semi w-100 bg-grey pd-medium radius-small"},null,8,["field"]),O,e.createVNode(e.unref(E.default),{modelValue:n.value,"onUpdate:modelValue":a[3]||(a[3]=l=>n.value=l),"alt-position":h,range:"",class:"mn-semi"},null,8,["modelValue"]),$,e.unref(t)?(e.openBlock(),e.createElementBlock("section",M,[e.createVNode(N.default,{content:e.unref(t).content,onUpdate:a[4]||(a[4]=l=>e.unref(t).content=l)},null,8,["content"])])):e.createCommentVNode("",!0),e.unref(t)?(e.openBlock(),e.createElementBlock("section",S,[e.createElementVNode("div",A,[e.unref(i).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:a[5]||(a[5]=l=>w()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:a[6]||(a[6]=l=>k()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:a[7]||(a[7]=l=>g()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0),e.createVNode(y.default,{title:"Добавить участника",onClosePopup:b,isPopupOpen:c.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[R,e.createVNode(q.default,{onTagsChanged:a[8]||(a[8]=l=>e.unref(t).tags=l),tags:e.unref(t).tags},null,8,["tags"]),F,e.createVNode(C.default,{modelValue:r.value,"onUpdate:modelValue":a[9]||(a[9]=l=>r.value=l),options:e.unref(p),multiple:!1,taggable:!1,placeholder:"Type to search or add tag",label:"name","track-by":"_id",class:"mn-medium bg-grey radius-medium pd-small"},null,8,["modelValue","options"]),r.value?(e.openBlock(),e.createElementBlock("h5",j,"Options:")):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("div",H,[e.createVNode(P.default,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":a[10]||(a[10]=l=>e.unref(t).creator.hidden=l),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode(B.default,{submit:V,callback:o.redirectTo,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode("Publish")]),_:1},8,["callback"])]),_:1},8,["isPopupOpen"])])):e.createCommentVNode("",!0)}};exports.default=G;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as u, onMounted as $, unref as l, openBlock as d, createElementBlock as m, createElementVNode as i, createVNode as s, createCommentVNode as p, withCtx as _, createTextVNode as T } from "vue";
|
2
|
-
import "../../../constructor/components/elements/Textarea.
|
2
|
+
import "../../../constructor/components/elements/Textarea.vue.js";
|
3
3
|
import z from "../../../constructor/components/sections/Constructor.vue.js";
|
4
4
|
import N from "../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js";
|
5
5
|
import "../../../../../node_modules/@vuepic/vue-datepicker/dist/main.css.js";
|