@ozdao/prometheus-framework 0.2.197 → 0.2.199
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/builder.js +3 -10
- package/dist/builder.mjs +3 -10
- package/dist/events.server.js +1 -1
- package/dist/events.server.mjs +1 -1
- package/dist/node_modules/@googlemaps/js-api-loader/dist/index.cjs +1 -1
- package/dist/node_modules/@googlemaps/js-api-loader/dist/index.js +21 -20
- package/dist/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs +1 -0
- package/dist/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +5042 -0
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.cjs +1 -0
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +7 -0
- package/dist/node_modules/date-fns/_lib/defaultOptions.cjs +1 -0
- package/dist/node_modules/date-fns/_lib/defaultOptions.js +7 -0
- package/dist/node_modules/date-fns/_lib/format/formatters.cjs +1 -0
- package/dist/node_modules/date-fns/_lib/format/formatters.js +518 -0
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.cjs +1 -0
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +59 -0
- package/dist/node_modules/date-fns/_lib/format/longFormatters.cjs +1 -0
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js +52 -0
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.cjs +1 -0
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -0
- package/dist/node_modules/date-fns/_lib/protectedTokens.cjs +1 -0
- package/dist/node_modules/date-fns/_lib/protectedTokens.js +20 -0
- package/dist/node_modules/date-fns/add.cjs +1 -0
- package/dist/node_modules/date-fns/add.js +20 -0
- package/dist/node_modules/date-fns/addDays.cjs +1 -0
- package/dist/node_modules/date-fns/addDays.js +10 -0
- package/dist/node_modules/date-fns/addHours.cjs +1 -0
- package/dist/node_modules/date-fns/addHours.js +9 -0
- package/dist/node_modules/date-fns/addMilliseconds.cjs +1 -0
- package/dist/node_modules/date-fns/addMilliseconds.js +10 -0
- package/dist/node_modules/date-fns/addMonths.cjs +1 -0
- package/dist/node_modules/date-fns/addMonths.js +20 -0
- package/dist/node_modules/date-fns/addQuarters.cjs +1 -0
- package/dist/node_modules/date-fns/addQuarters.js +9 -0
- package/dist/node_modules/date-fns/addYears.cjs +1 -0
- package/dist/node_modules/date-fns/addYears.js +8 -0
- package/dist/node_modules/date-fns/compareAsc.cjs +1 -0
- package/dist/node_modules/date-fns/compareAsc.js +9 -0
- package/dist/node_modules/date-fns/constants.cjs +1 -0
- package/dist/node_modules/date-fns/constants.js +8 -0
- package/dist/node_modules/date-fns/constructFrom.cjs +1 -0
- package/dist/node_modules/date-fns/constructFrom.js +7 -0
- package/dist/node_modules/date-fns/differenceInCalendarDays.cjs +1 -0
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +11 -0
- package/dist/node_modules/date-fns/differenceInCalendarYears.cjs +1 -0
- package/dist/node_modules/date-fns/differenceInCalendarYears.js +9 -0
- package/dist/node_modules/date-fns/differenceInYears.cjs +1 -0
- package/dist/node_modules/date-fns/differenceInYears.js +13 -0
- package/dist/node_modules/date-fns/eachDayOfInterval.cjs +1 -0
- package/dist/node_modules/date-fns/eachDayOfInterval.js +16 -0
- package/dist/node_modules/date-fns/eachQuarterOfInterval.cjs +1 -0
- package/dist/node_modules/date-fns/eachQuarterOfInterval.js +17 -0
- package/dist/node_modules/date-fns/endOfQuarter.cjs +1 -0
- package/dist/node_modules/date-fns/endOfQuarter.js +9 -0
- package/dist/node_modules/date-fns/endOfWeek.cjs +1 -0
- package/dist/node_modules/date-fns/endOfWeek.js +11 -0
- package/dist/node_modules/date-fns/endOfYear.cjs +1 -0
- package/dist/node_modules/date-fns/endOfYear.js +9 -0
- package/dist/node_modules/date-fns/format.cjs +1 -0
- package/dist/node_modules/date-fns/format.js +59 -0
- package/dist/node_modules/date-fns/getDay.cjs +1 -0
- package/dist/node_modules/date-fns/getDay.js +8 -0
- package/dist/node_modules/date-fns/getDayOfYear.cjs +1 -0
- package/dist/node_modules/date-fns/getDayOfYear.js +11 -0
- package/dist/node_modules/date-fns/getDaysInMonth.cjs +1 -0
- package/dist/node_modules/date-fns/getDaysInMonth.js +10 -0
- package/dist/node_modules/date-fns/getDefaultOptions.cjs +1 -0
- package/dist/node_modules/date-fns/getDefaultOptions.js +8 -0
- package/dist/node_modules/date-fns/getHours.cjs +1 -0
- package/dist/node_modules/date-fns/getHours.js +8 -0
- package/dist/node_modules/date-fns/getISODay.cjs +1 -0
- package/dist/node_modules/date-fns/getISODay.js +9 -0
- package/dist/node_modules/date-fns/getISOWeek.cjs +1 -0
- package/dist/node_modules/date-fns/getISOWeek.js +12 -0
- package/dist/node_modules/date-fns/getISOWeekYear.cjs +1 -0
- package/dist/node_modules/date-fns/getISOWeekYear.js +15 -0
- package/dist/node_modules/date-fns/getMinutes.cjs +1 -0
- package/dist/node_modules/date-fns/getMinutes.js +8 -0
- package/dist/node_modules/date-fns/getMonth.cjs +1 -0
- package/dist/node_modules/date-fns/getMonth.js +8 -0
- package/dist/node_modules/date-fns/getQuarter.cjs +1 -0
- package/dist/node_modules/date-fns/getQuarter.js +9 -0
- package/dist/node_modules/date-fns/getSeconds.cjs +1 -0
- package/dist/node_modules/date-fns/getSeconds.js +8 -0
- package/dist/node_modules/date-fns/getWeek.cjs +1 -0
- package/dist/node_modules/date-fns/getWeek.js +12 -0
- package/dist/node_modules/date-fns/getWeekYear.cjs +1 -0
- package/dist/node_modules/date-fns/getWeekYear.js +17 -0
- package/dist/node_modules/date-fns/getYear.cjs +1 -0
- package/dist/node_modules/date-fns/getYear.js +8 -0
- package/dist/node_modules/date-fns/isAfter.cjs +1 -0
- package/dist/node_modules/date-fns/isAfter.js +9 -0
- package/dist/node_modules/date-fns/isBefore.cjs +1 -0
- package/dist/node_modules/date-fns/isBefore.js +9 -0
- package/dist/node_modules/date-fns/isDate.cjs +1 -0
- package/dist/node_modules/date-fns/isDate.js +7 -0
- package/dist/node_modules/date-fns/isEqual.cjs +1 -0
- package/dist/node_modules/date-fns/isEqual.js +9 -0
- package/dist/node_modules/date-fns/isSameQuarter.cjs +1 -0
- package/dist/node_modules/date-fns/isSameQuarter.js +9 -0
- package/dist/node_modules/date-fns/isValid.cjs +1 -0
- package/dist/node_modules/date-fns/isValid.js +12 -0
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.cjs +1 -0
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +9 -0
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.cjs +1 -0
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +18 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.cjs +1 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +31 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.cjs +1 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +15 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.cjs +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +70 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.cjs +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +33 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.cjs +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.cjs +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +155 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.cjs +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +110 -0
- package/dist/node_modules/date-fns/locale/en-US.cjs +1 -0
- package/dist/node_modules/date-fns/locale/en-US.js +21 -0
- package/dist/node_modules/date-fns/parse/_lib/Parser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/Parser.js +22 -0
- package/dist/node_modules/date-fns/parse/_lib/Setter.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/Setter.js +40 -0
- package/dist/node_modules/date-fns/parse/_lib/constants.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/constants.js +49 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +49 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +49 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DateParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DateParser.js +61 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +51 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayParser.js +45 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +49 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/EraParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/EraParser.js +30 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +21 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +22 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +32 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +32 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +33 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +33 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISODayParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +99 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +48 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +48 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +49 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +40 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +74 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +48 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +69 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/MinuteParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +32 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/MonthParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +71 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/QuarterParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +70 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/SecondParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +32 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +74 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +71 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +70 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +22 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +22 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/YearParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/YearParser.js +49 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers.js +67 -0
- package/dist/node_modules/date-fns/parse/_lib/utils.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/utils.js +103 -0
- package/dist/node_modules/date-fns/parse.cjs +1 -0
- package/dist/node_modules/date-fns/parse.js +90 -0
- package/dist/node_modules/date-fns/set.cjs +1 -0
- package/dist/node_modules/date-fns/set.js +11 -0
- package/dist/node_modules/date-fns/setDay.cjs +1 -0
- package/dist/node_modules/date-fns/setDay.js +12 -0
- package/dist/node_modules/date-fns/setHours.cjs +1 -0
- package/dist/node_modules/date-fns/setHours.js +9 -0
- package/dist/node_modules/date-fns/setISODay.cjs +1 -0
- package/dist/node_modules/date-fns/setISODay.js +11 -0
- package/dist/node_modules/date-fns/setISOWeek.cjs +1 -0
- package/dist/node_modules/date-fns/setISOWeek.js +10 -0
- package/dist/node_modules/date-fns/setMilliseconds.cjs +1 -0
- package/dist/node_modules/date-fns/setMilliseconds.js +9 -0
- package/dist/node_modules/date-fns/setMinutes.cjs +1 -0
- package/dist/node_modules/date-fns/setMinutes.js +9 -0
- package/dist/node_modules/date-fns/setMonth.cjs +1 -0
- package/dist/node_modules/date-fns/setMonth.js +13 -0
- package/dist/node_modules/date-fns/setSeconds.cjs +1 -0
- package/dist/node_modules/date-fns/setSeconds.js +9 -0
- package/dist/node_modules/date-fns/setWeek.cjs +1 -0
- package/dist/node_modules/date-fns/setWeek.js +10 -0
- package/dist/node_modules/date-fns/setYear.cjs +1 -0
- package/dist/node_modules/date-fns/setYear.js +10 -0
- package/dist/node_modules/date-fns/startOfDay.cjs +1 -0
- package/dist/node_modules/date-fns/startOfDay.js +9 -0
- package/dist/node_modules/date-fns/startOfISOWeek.cjs +1 -0
- package/dist/node_modules/date-fns/startOfISOWeek.js +8 -0
- package/dist/node_modules/date-fns/startOfISOWeekYear.cjs +1 -0
- package/dist/node_modules/date-fns/startOfISOWeekYear.js +11 -0
- package/dist/node_modules/date-fns/startOfMonth.cjs +1 -0
- package/dist/node_modules/date-fns/startOfMonth.js +9 -0
- package/dist/node_modules/date-fns/startOfQuarter.cjs +1 -0
- package/dist/node_modules/date-fns/startOfQuarter.js +9 -0
- package/dist/node_modules/date-fns/startOfWeek.cjs +1 -0
- package/dist/node_modules/date-fns/startOfWeek.js +11 -0
- package/dist/node_modules/date-fns/startOfWeekYear.cjs +1 -0
- package/dist/node_modules/date-fns/startOfWeekYear.js +13 -0
- package/dist/node_modules/date-fns/startOfYear.cjs +1 -0
- package/dist/node_modules/date-fns/startOfYear.js +10 -0
- package/dist/node_modules/date-fns/sub.cjs +1 -0
- package/dist/node_modules/date-fns/sub.js +19 -0
- package/dist/node_modules/date-fns/subDays.cjs +1 -0
- package/dist/node_modules/date-fns/subDays.js +8 -0
- package/dist/node_modules/date-fns/subMonths.cjs +1 -0
- package/dist/node_modules/date-fns/subMonths.js +8 -0
- package/dist/node_modules/date-fns/subYears.cjs +1 -0
- package/dist/node_modules/date-fns/subYears.js +8 -0
- package/dist/node_modules/date-fns/toDate.cjs +1 -0
- package/dist/node_modules/date-fns/toDate.js +8 -0
- package/dist/node_modules/date-fns/transpose.cjs +1 -0
- package/dist/node_modules/date-fns/transpose.js +18 -0
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1 -1
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +629 -622
- package/dist/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.cjs +1 -1
- package/dist/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.js +19 -17
- package/dist/node_modules/qrcode/lib/core/byte-data.cjs +1 -1
- package/dist/node_modules/qrcode/lib/core/byte-data.js +6 -7
- package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.cjs +1 -1
- package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.js +3 -3
- package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs +1 -1
- package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +3356 -3363
- package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.cjs +1 -1
- package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.js +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +16 -15
- package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.js +13 -12
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +12 -11
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +6 -5
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +10 -9
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +11 -9
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +8 -7
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +17 -17
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +5 -3
- 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 +17 -16
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +15 -14
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.js +11 -8
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.js +7 -6
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionSpecialGuests.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionSpecialGuests.vue.js +9 -8
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +5 -4
- 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 +25 -23
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +22 -20
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js +87 -93
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +142 -73
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.js +110 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +8 -7
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.js +19 -18
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +127 -135
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +2 -4
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -0
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue.js +5 -5
- 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 +75 -69
- 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 -0
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +1 -0
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.js +28 -27
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +13 -12
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +3 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -0
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotSub.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotSub.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +3 -2
- 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 +7 -6
- package/dist/prometheus-framework/src/modules/wallet/views/components/elements/ConnectMetamask.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/elements/ConnectMetamask.vue.js +12 -9
- package/dist/prometheus-framework.cjs.js +27 -27
- package/dist/prometheus-framework.es.js +3819 -3782
- package/dist/style.css +1 -1
- package/dist/tickets.controller-CB549rZT.mjs +402 -0
- package/dist/tickets.controller-yqXXLR62.js +401 -0
- package/dist/wallet.server.js +1 -1
- package/dist/wallet.server.mjs +1 -1
- package/package.json +24 -25
- package/src/builder/webpack/webpack.config.base.js +2 -2
- package/src/builder/webpack/webpack.config.client.js +1 -1
- package/src/builder/webpack/webpack.config.spa.js +0 -6
- package/src/components/AskToLogin/AskToLogin.vue +1 -1
- package/src/components/EditImages/EditImages.vue +1 -1
- package/src/components/Error/Error.vue +1 -1
- package/src/components/PhotoViewer/PhotoViewer.vue +1 -1
- package/src/components/UploadImage/UploadImage.vue +1 -1
- package/src/modules/auth/views/components/pages/EnterCode.vue +1 -1
- package/src/modules/auth/views/components/pages/EnterPassword.vue +1 -1
- package/src/modules/auth/views/components/pages/ResetPassword.vue +1 -1
- package/src/modules/auth/views/components/pages/SignIn.vue +1 -1
- package/src/modules/auth/views/components/pages/SignUp.vue +1 -1
- package/src/modules/backoffice/components/admin/FastOrders.vue +1 -1
- package/src/modules/chats/components/blocks/ChatMessage.vue +1 -1
- package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
- package/src/modules/constructor/components/elements/Image.vue +2 -2
- package/src/modules/constructor/components/elements/ImageUpload.vue +1 -1
- package/src/modules/events/components/blocks/CardEvent.vue +2 -2
- package/src/modules/events/components/pages/EditEvent.vue +12 -1
- package/src/modules/events/components/pages/EditEventTickets.vue +1 -1
- package/src/modules/events/components/pages/Event.vue +1 -1
- package/src/modules/events/components/sections/HeroEvent.vue +4 -4
- package/src/modules/events/components/sections/SectionPreviousEvents.vue +1 -1
- package/src/modules/events/components/sections/SectionSpecialGuests.vue +1 -1
- package/src/modules/events/controllers/utils/templateEmail.js +1 -1
- package/src/modules/events/controllers/utils/templateTicket.js +1 -1
- package/src/modules/gallery/components/pages/Gallery.vue +1 -1
- package/src/modules/gallery/components/sections/BackofficeGallery.vue +2 -2
- package/src/modules/globals/views/components/blocks/CardHeader.vue +2 -2
- package/src/modules/globals/views/components/layouts/App.vue +15 -39
- package/src/modules/globals/views/components/layouts/Client.vue +89 -45
- package/src/modules/globals/views/components/partials/Footer.vue +7 -7
- package/src/modules/globals/views/components/partials/NavigationBar.vue +39 -16
- package/src/modules/globals/views/components/sections/Walkthrough.vue +2 -2
- package/src/modules/landing/components/sections/Examples.vue +1 -1
- package/src/modules/landing/components/sections/HowItWorksSection.vue +3 -3
- package/src/modules/landing/components/sections/HowToBuyWDR.vue +1 -1
- package/src/modules/landing/components/sections/InstagramSection.vue +2 -2
- package/src/modules/landing/components/sections/MobileApp.vue +1 -1
- package/src/modules/landing/components/sections/SectionEarn.vue +2 -2
- package/src/modules/landing/components/sections/SectionFeature.vue +1 -1
- package/src/modules/landing/components/sections/SectionFeaturesImages.vue +1 -1
- package/src/modules/landing/components/sections/SectionHeroToken.vue +1 -1
- package/src/modules/landing/components/sections/SectionsSection.vue +4 -4
- package/src/modules/landing/components/sections/WhatIsWDRSection.vue +3 -3
- package/src/modules/landing/router/landing.js +1 -1
- package/src/modules/orders/components/blocks/CardOrder.vue +7 -7
- package/src/modules/orders/components/blocks/CardOrderItem.vue +1 -1
- package/src/modules/orders/components/blocks/CardOrderVar1.vue +1 -1
- package/src/modules/orders/components/pages/OrderBackoffice.vue +3 -4
- package/src/modules/orders/components/pages/Orders.vue +0 -3
- package/src/modules/orders/components/pages/Orders_refact.vue +7 -7
- package/src/modules/orders/components/sections/AskToLogin.vue +1 -1
- package/src/modules/organizations/components/blocks/CardOrganization.vue +2 -2
- package/src/modules/organizations/components/blocks/Contacts.vue +4 -4
- package/src/modules/organizations/components/blocks/DepartmentSub.vue +1 -1
- package/src/modules/organizations/components/pages/Organization.vue +3 -3
- package/src/modules/organizations/components/sections/DetailsTab.vue +1 -1
- package/src/modules/products/components/blocks/CardLeftover.vue +1 -1
- package/src/modules/products/components/blocks/CardProduct.vue +1 -1
- package/src/modules/products/components/blocks/EditFilters.vue +1 -1
- package/src/modules/products/components/blocks/Images360.vue +1 -1
- package/src/modules/products/components/blocks/ImagesThumbnails.vue +1 -1
- package/src/modules/products/components/sections/HeroRecommendation.vue +1 -1
- package/src/modules/products/components/sections/MenuSection.vue +1 -1
- package/src/modules/products/components/sections/ProductInformationSection.vue +5 -5
- package/src/modules/products/components/sections/SectionProduct.vue +1 -1
- package/src/modules/spots/components/blocks/SpotSub.vue +1 -1
- package/src/modules/users/components/blocks/CardUser.vue +1 -1
- package/src/modules/users/components/pages/Profile.vue +1 -1
- package/src/modules/wallet/views/components/elements/ConnectMetamask.vue +3 -3
- package/src/modules/wallet/views/components/pages/Wallet.vue +4 -4
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("../../../../node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.cjs"),c=require("../UploadImageMultiple/UploadImageMultiple.vue.cjs"),f=require("../../modules/icons/navigation/IconCross.vue.cjs");require("./EditImages.vue2.cjs");const v={class:"flex-nowrap flex gap-small"},x={class:"pos-relative"},h=["src"],k={key:1,class:"i-extra uppercase flex-center flex radius-small o-hidden br-solid br-main br-2px pd-small"},_={__name:"EditImages",props:{images:Array,text:Object,options:Object,uploadPath:{type:Object,default:"unsorted"}},emits:["update:images"],setup(u,{emit:i}){const a=u,d=i,t=e.ref([...a.images]);e.watchEffect(()=>{t.value=[...a.images]});const o=()=>{d("update:images",t.value)},
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("../../../../node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.cjs"),c=require("../UploadImageMultiple/UploadImageMultiple.vue.cjs"),f=require("../../modules/icons/navigation/IconCross.vue.cjs");require("./EditImages.vue2.cjs");const v={class:"flex-nowrap flex gap-small"},x={class:"pos-relative"},h=["src"],k={key:1,class:"i-extra uppercase flex-center flex radius-small o-hidden br-solid br-main br-2px pd-small"},_={__name:"EditImages",props:{images:Array,text:Object,options:Object,uploadPath:{type:Object,default:"unsorted"}},emits:["update:images"],setup(u,{emit:i}){const a=u,d=i,t=e.ref([...a.images]);e.watchEffect(()=>{t.value=[...a.images]});const o=()=>{d("update:images",t.value)},n=l=>{t.value=[...t.value,...l],o()},p=l=>{t.value.splice(l,1),o()};return(l,r)=>(e.openBlock(),e.createElementBlock("div",v,[t.value.length>0?(e.openBlock(),e.createBlock(e.unref(g.VueDraggableNext),{key:0,class:"gap-small flex dragArea list-group w-full",modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s),onChange:o},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(s,m)=>(e.openBlock(),e.createElementBlock("div",x,[e.createElementVNode("img",{loading:"lazy",class:"i-extra object-fit-contain bg-black-transp-5 pd-nano radius-small o-hidden",src:(l.FILE_SERVER_URL||"")+s},null,8,h),e.createVNode(f.default,{onClick:b=>p(m),class:"cursor-pointer pos-absolute t-center flex-center flex radius-extra i-medium bg-red pos-t-10-negative pos-r-10-negative pd-micro"},null,8,["onClick"])]))),256))]),_:1},8,["modelValue"])):e.createCommentVNode("",!0),t.value.length>0?(e.openBlock(),e.createElementBlock("div",k,[e.createVNode(c.default,{"onUpdate:images":n,text:"Add",options:{showText:!1},uploadPath:"photos",class:"radius-big"})])):e.createCommentVNode("",!0),t.value.length<1?(e.openBlock(),e.createBlock(c.default,{key:2,"onUpdate:images":n,uploadPath:a.uploadPath,text:a.text,options:a.options,class:"w-100 pd-extra"},null,8,["uploadPath","text","options"])):e.createCommentVNode("",!0)]))}};exports.default=_;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { ref as v, watchEffect as _, openBlock as t, createElementBlock as
|
2
|
-
import { VueDraggableNext as
|
1
|
+
import { ref as v, watchEffect as _, openBlock as t, createElementBlock as o, createBlock as u, unref as b, withCtx as k, Fragment as V, renderList as E, createElementVNode as w, createVNode as c, createCommentVNode as n } from "vue";
|
2
|
+
import { VueDraggableNext as y } from "../../../../node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js";
|
3
3
|
import p from "../UploadImageMultiple/UploadImageMultiple.vue.js";
|
4
|
-
import
|
4
|
+
import C from "../../modules/icons/navigation/IconCross.vue.js";
|
5
5
|
import "./EditImages.vue2.js";
|
6
6
|
const I = { class: "flex-nowrap flex gap-small" }, P = { class: "pos-relative" }, U = ["src"], j = {
|
7
7
|
key: 1,
|
@@ -23,28 +23,29 @@ const I = { class: "flex-nowrap flex gap-small" }, P = { class: "pos-relative" }
|
|
23
23
|
_(() => {
|
24
24
|
e.value = [...a.images];
|
25
25
|
});
|
26
|
-
const
|
26
|
+
const s = () => {
|
27
27
|
f("update:images", e.value);
|
28
|
-
}, i = (
|
29
|
-
e.value = [...e.value, ...
|
30
|
-
}, x = (
|
31
|
-
e.value.splice(
|
28
|
+
}, i = (l) => {
|
29
|
+
e.value = [...e.value, ...l], s();
|
30
|
+
}, x = (l) => {
|
31
|
+
e.value.splice(l, 1), s();
|
32
32
|
};
|
33
|
-
return (
|
34
|
-
e.value.length > 0 ? (t(), u(b(
|
33
|
+
return (l, d) => (t(), o("div", I, [
|
34
|
+
e.value.length > 0 ? (t(), u(b(y), {
|
35
35
|
key: 0,
|
36
36
|
class: "gap-small flex dragArea list-group w-full",
|
37
37
|
modelValue: e.value,
|
38
38
|
"onUpdate:modelValue": d[0] || (d[0] = (r) => e.value = r),
|
39
|
-
onChange:
|
39
|
+
onChange: s
|
40
40
|
}, {
|
41
41
|
default: k(() => [
|
42
|
-
(t(!0),
|
42
|
+
(t(!0), o(V, null, E(e.value, (r, h) => (t(), o("div", P, [
|
43
43
|
w("img", {
|
44
|
+
loading: "lazy",
|
44
45
|
class: "i-extra object-fit-contain bg-black-transp-5 pd-nano radius-small o-hidden",
|
45
|
-
src: (
|
46
|
+
src: (l.FILE_SERVER_URL || "") + r
|
46
47
|
}, null, 8, U),
|
47
|
-
c(
|
48
|
+
c(C, {
|
48
49
|
onClick: (N) => x(h),
|
49
50
|
class: "cursor-pointer pos-absolute t-center flex-center flex radius-extra i-medium bg-red pos-t-10-negative pos-r-10-negative pd-micro"
|
50
51
|
}, null, 8, ["onClick"])
|
@@ -52,7 +53,7 @@ const I = { class: "flex-nowrap flex gap-small" }, P = { class: "pos-relative" }
|
|
52
53
|
]),
|
53
54
|
_: 1
|
54
55
|
}, 8, ["modelValue"])) : n("", !0),
|
55
|
-
e.value.length > 0 ? (t(),
|
56
|
+
e.value.length > 0 ? (t(), o("div", j, [
|
56
57
|
c(p, {
|
57
58
|
"onUpdate:images": i,
|
58
59
|
text: "Add",
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue");;/* empty css */const X=["src"],_={__name:"PhotoViewer",props:{photoUrl:String,show:Boolean},setup(v){const s=o.ref(1),a=o.reactive({x:0,y:0}),r=o.ref(!1),u=o.reactive({x:0,y:0}),d=o.ref(1),i=o.ref(0),p=o.computed(()=>({transform:`scale(${s.value}) translate(${a.x}px, ${a.y}px)`})),f=e=>{e.preventDefault();const t=e.deltaY>0?-.1:.1;s.value=Math.min(Math.max(1,s.value+t),3)},m=e=>{e.preventDefault(),r.value=!0,u.x=e.type==="mousedown"?e.clientX:e.touches[0].clientX,u.y=e.type==="mousedown"?e.clientY:e.touches[0].clientY;const t=
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue");;/* empty css */const X=["src"],_={__name:"PhotoViewer",props:{photoUrl:String,show:Boolean},setup(v){const s=o.ref(1),a=o.reactive({x:0,y:0}),r=o.ref(!1),u=o.reactive({x:0,y:0}),d=o.ref(1),i=o.ref(0),p=o.computed(()=>({transform:`scale(${s.value}) translate(${a.x}px, ${a.y}px)`})),f=e=>{e.preventDefault();const t=e.deltaY>0?-.1:.1;s.value=Math.min(Math.max(1,s.value+t),3)},m=e=>{e.preventDefault(),r.value=!0,u.x=e.type==="mousedown"?e.clientX:e.touches[0].clientX,u.y=e.type==="mousedown"?e.clientY:e.touches[0].clientY;const t=c=>{if(r.value){const l=c.type==="mousemove"?c.clientX:c.touches[0].clientX,h=c.type==="mousemove"?c.clientY:c.touches[0].clientY;a.x+=(l-u.x)/s.value,a.y+=(h-u.y)/s.value,u.x=l,u.y=h}},n=()=>{r.value=!1,document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",n),document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)};document.addEventListener("mousemove",t),document.addEventListener("mouseup",n),document.addEventListener("touchmove",t),document.addEventListener("touchend",n)},y=e=>{if(e.touches.length===2){const t=e.touches[0],n=e.touches[1],c=Math.abs(t.clientX-n.clientX),l=Math.abs(t.clientY-n.clientY);i.value=Math.sqrt(c**2+l**2),d.value=s.value}else m(e)},g=e=>{if(e.touches.length===2){e.preventDefault();const t=e.touches[0],n=e.touches[1],c=Math.abs(t.clientX-n.clientX),l=Math.abs(t.clientY-n.clientY),Y=Math.sqrt(c**2+l**2)/i.value;s.value=Math.min(Math.max(1,d.value*Y),3)}},M=e=>{e.touches.length===0&&(i.value=0)},x=()=>{s.value=1,a.x=0,a.y=0};return(e,t)=>(o.openBlock(),o.createElementBlock("div",{class:"photo-container",onWheel:f,onMousedown:m,onTouchstart:y,onTouchmove:g,onTouchend:M},[o.createElementVNode("img",{loading:"lazy",src:v.photoUrl,style:o.normalizeStyle(p.value),ref:"image",onLoad:x},null,44,X)],32))}};exports.default=_;
|
@@ -1,15 +1,15 @@
|
|
1
|
-
import { ref as
|
1
|
+
import { ref as u, reactive as p, computed as L, openBlock as D, createElementBlock as _, createElementVNode as w, normalizeStyle as E } from "vue";
|
2
2
|
/* empty css */
|
3
|
-
const T = ["src"],
|
3
|
+
const T = ["src"], z = {
|
4
4
|
__name: "PhotoViewer",
|
5
5
|
props: {
|
6
6
|
photoUrl: String,
|
7
7
|
show: Boolean
|
8
8
|
},
|
9
9
|
setup(v) {
|
10
|
-
const c =
|
10
|
+
const c = u(1), s = p({ x: 0, y: 0 }), i = u(!1), a = p({ x: 0, y: 0 }), d = u(1), r = u(0), y = L(() => ({
|
11
11
|
transform: `scale(${c.value}) translate(${s.x}px, ${s.y}px)`
|
12
|
-
})),
|
12
|
+
})), f = (t) => {
|
13
13
|
t.preventDefault();
|
14
14
|
const e = t.deltaY > 0 ? -0.1 : 0.1;
|
15
15
|
c.value = Math.min(Math.max(1, c.value + e), 3);
|
@@ -17,8 +17,8 @@ const T = ["src"], B = {
|
|
17
17
|
t.preventDefault(), i.value = !0, a.x = t.type === "mousedown" ? t.clientX : t.touches[0].clientX, a.y = t.type === "mousedown" ? t.clientY : t.touches[0].clientY;
|
18
18
|
const e = (n) => {
|
19
19
|
if (i.value) {
|
20
|
-
const
|
21
|
-
s.x += (
|
20
|
+
const l = n.type === "mousemove" ? n.clientX : n.touches[0].clientX, h = n.type === "mousemove" ? n.clientY : n.touches[0].clientY;
|
21
|
+
s.x += (l - a.x) / c.value, s.y += (h - a.y) / c.value, a.x = l, a.y = h;
|
22
22
|
}
|
23
23
|
}, o = () => {
|
24
24
|
i.value = !1, document.removeEventListener("mousemove", e), document.removeEventListener("mouseup", o), document.removeEventListener("touchmove", e), document.removeEventListener("touchend", o);
|
@@ -26,14 +26,14 @@ const T = ["src"], B = {
|
|
26
26
|
document.addEventListener("mousemove", e), document.addEventListener("mouseup", o), document.addEventListener("touchmove", e), document.addEventListener("touchend", o);
|
27
27
|
}, x = (t) => {
|
28
28
|
if (t.touches.length === 2) {
|
29
|
-
const e = t.touches[0], o = t.touches[1], n = Math.abs(e.clientX - o.clientX),
|
30
|
-
r.value = Math.sqrt(n ** 2 +
|
29
|
+
const e = t.touches[0], o = t.touches[1], n = Math.abs(e.clientX - o.clientX), l = Math.abs(e.clientY - o.clientY);
|
30
|
+
r.value = Math.sqrt(n ** 2 + l ** 2), d.value = c.value;
|
31
31
|
} else
|
32
32
|
m(t);
|
33
33
|
}, g = (t) => {
|
34
34
|
if (t.touches.length === 2) {
|
35
35
|
t.preventDefault();
|
36
|
-
const e = t.touches[0], o = t.touches[1], n = Math.abs(e.clientX - o.clientX),
|
36
|
+
const e = t.touches[0], o = t.touches[1], n = Math.abs(e.clientX - o.clientX), l = Math.abs(e.clientY - o.clientY), X = Math.sqrt(n ** 2 + l ** 2) / r.value;
|
37
37
|
c.value = Math.min(Math.max(1, d.value * X), 3);
|
38
38
|
}
|
39
39
|
}, M = (t) => {
|
@@ -43,15 +43,16 @@ const T = ["src"], B = {
|
|
43
43
|
};
|
44
44
|
return (t, e) => (D(), _("div", {
|
45
45
|
class: "photo-container",
|
46
|
-
onWheel:
|
46
|
+
onWheel: f,
|
47
47
|
onMousedown: m,
|
48
48
|
onTouchstart: x,
|
49
49
|
onTouchmove: g,
|
50
50
|
onTouchend: M
|
51
51
|
}, [
|
52
52
|
w("img", {
|
53
|
+
loading: "lazy",
|
53
54
|
src: v.photoUrl,
|
54
|
-
style: E(
|
55
|
+
style: E(y.value),
|
55
56
|
ref: "image",
|
56
57
|
onLoad: Y
|
57
58
|
}, null, 44, T)
|
@@ -59,5 +60,5 @@ const T = ["src"], B = {
|
|
59
60
|
}
|
60
61
|
};
|
61
62
|
export {
|
62
|
-
|
63
|
+
z as default
|
63
64
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("axios"),C=["src"],
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("axios"),C=["src"],g={key:1,class:"flex-v-center flex-h-center flex w-100 h-100 bg-second"},v=e.createElementVNode("svg",{class:"i-medium",width:"104",height:"104",viewBox:"0 0 104 104",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{fill:"rgb(var(--white))",d:"M21.2784 37.2973C18.8466 34.6628 18.8466 30.6098 21.2784 27.9753L47.2179 2.03584C48.6364 0.81993 50.2577 0.211974 51.8789 0.211974C53.5001 0.211974 55.1213 0.81993 56.5399 2.03584L82.4793 27.9753C84.9111 30.6098 84.9111 34.6628 82.4793 37.2973C79.8448 39.7291 75.7918 39.7291 73.1573 37.2973L58.3637 22.301V71.5454C58.3637 75.1932 55.5266 78.0303 51.8789 78.0303C48.2311 78.0303 45.394 75.1932 45.394 71.5454V22.301L30.6004 37.2973C27.966 39.7291 23.9129 39.7291 21.2784 37.2973ZM97.2729 71.5454C100.921 71.5454 103.758 74.3825 103.758 78.0303V97.4849C103.758 101.133 100.921 103.97 97.2729 103.97H6.48486C2.83713 103.97 0 101.133 0 97.4849V78.0303C0 74.3825 2.83713 71.5454 6.48486 71.5454H38.9092C38.9092 78.6382 44.7861 84.5151 51.8789 84.5151C58.9717 84.5151 64.8486 78.6382 64.8486 71.5454H97.2729ZM87.5456 92.6212C90.1801 92.6212 92.4092 90.392 92.4092 87.7576C92.4092 85.1231 90.1801 82.8939 87.5456 82.8939C84.9111 82.8939 82.682 85.1231 82.682 87.7576C82.682 90.392 84.9111 92.6212 87.5456 92.6212Z"})],-1),w=[v],_={__name:"UploadImage",props:["uploadPath","photo"],emits:["update:photo"],setup(n,{emit:u}){const l=e.ref(null),a=e.ref(null),r=n,d=u;e.watch(r,({photo:o})=>{o&&(l.value=o)});function f(){a.value.click()}async function i(o){let t=o.target.files[0];if(!t){console.error("No file selected");return}let s=new FormData;s.append("file",t),console.log("Sending file:",t.name);try{let p=await h.create({baseURL:process.env.API_URL,withCredentials:!0}).post(`/api/upload/multiple?folderName=${encodeURIComponent(r.uploadPath)}`,s);console.log("Upload response:",p),l.value=p.data[0].filepath,d("update:photo",l.value)}catch(c){console.error("Upload error:",c)}}function m(o){o.preventDefault(),i({target:{files:o.dataTransfer.files}})}return(o,t)=>(e.openBlock(),e.createElementBlock("div",{onClick:f,onDrop:m,onDragover:t[0]||(t[0]=e.withModifiers(()=>{},["prevent"])),class:"image-upload-area flex-v-center flex-h-center flex"},[l.value||n.photo?(e.openBlock(),e.createElementBlock("img",{key:0,loading:"lazy",src:(o.FILE_SERVER_URL||"")+(l.value||n.photo),alt:"Uploaded image",class:"w-100 h-100 object-fit-cover"},null,8,C)):(e.openBlock(),e.createElementBlock("div",g,w)),e.createElementVNode("input",{type:"file",name:"file",ref_key:"fileInput",ref:a,onChange:i,style:{display:"none"}},null,544)],32))}};exports.default=_;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { ref as u, watch as v, openBlock as n, createElementBlock as a, withModifiers as w, createElementVNode as
|
1
|
+
import { ref as u, watch as v, openBlock as n, createElementBlock as a, withModifiers as w, createElementVNode as i } from "vue";
|
2
2
|
import x from "axios";
|
3
|
-
const _ = ["src"],
|
3
|
+
const _ = ["src"], y = {
|
4
4
|
key: 1,
|
5
5
|
class: "flex-v-center flex-h-center flex w-100 h-100 bg-second"
|
6
|
-
},
|
6
|
+
}, U = /* @__PURE__ */ i("svg", {
|
7
7
|
class: "i-medium",
|
8
8
|
width: "104",
|
9
9
|
height: "104",
|
@@ -11,12 +11,12 @@ const _ = ["src"], U = {
|
|
11
11
|
fill: "none",
|
12
12
|
xmlns: "http://www.w3.org/2000/svg"
|
13
13
|
}, [
|
14
|
-
/* @__PURE__ */
|
14
|
+
/* @__PURE__ */ i("path", {
|
15
15
|
fill: "rgb(var(--white))",
|
16
16
|
d: "M21.2784 37.2973C18.8466 34.6628 18.8466 30.6098 21.2784 27.9753L47.2179 2.03584C48.6364 0.81993 50.2577 0.211974 51.8789 0.211974C53.5001 0.211974 55.1213 0.81993 56.5399 2.03584L82.4793 27.9753C84.9111 30.6098 84.9111 34.6628 82.4793 37.2973C79.8448 39.7291 75.7918 39.7291 73.1573 37.2973L58.3637 22.301V71.5454C58.3637 75.1932 55.5266 78.0303 51.8789 78.0303C48.2311 78.0303 45.394 75.1932 45.394 71.5454V22.301L30.6004 37.2973C27.966 39.7291 23.9129 39.7291 21.2784 37.2973ZM97.2729 71.5454C100.921 71.5454 103.758 74.3825 103.758 78.0303V97.4849C103.758 101.133 100.921 103.97 97.2729 103.97H6.48486C2.83713 103.97 0 101.133 0 97.4849V78.0303C0 74.3825 2.83713 71.5454 6.48486 71.5454H38.9092C38.9092 78.6382 44.7861 84.5151 51.8789 84.5151C58.9717 84.5151 64.8486 78.6382 64.8486 71.5454H97.2729ZM87.5456 92.6212C90.1801 92.6212 92.4092 90.392 92.4092 87.7576C92.4092 85.1231 90.1801 82.8939 87.5456 82.8939C84.9111 82.8939 82.682 85.1231 82.682 87.7576C82.682 90.392 84.9111 92.6212 87.5456 92.6212Z"
|
17
17
|
})
|
18
|
-
], -1),
|
19
|
-
|
18
|
+
], -1), k = [
|
19
|
+
U
|
20
20
|
], I = {
|
21
21
|
__name: "UploadImage",
|
22
22
|
props: [
|
@@ -27,12 +27,12 @@ const _ = ["src"], U = {
|
|
27
27
|
],
|
28
28
|
emits: ["update:photo"],
|
29
29
|
setup(l, { emit: m }) {
|
30
|
-
const t = u(null),
|
30
|
+
const t = u(null), r = u(null), s = l, h = m;
|
31
31
|
v(s, ({ photo: e }) => {
|
32
32
|
e && (t.value = e);
|
33
33
|
});
|
34
34
|
function C() {
|
35
|
-
|
35
|
+
r.value.click();
|
36
36
|
}
|
37
37
|
async function c(e) {
|
38
38
|
let o = e.target.files[0];
|
@@ -65,15 +65,16 @@ const _ = ["src"], U = {
|
|
65
65
|
}, [
|
66
66
|
t.value || l.photo ? (n(), a("img", {
|
67
67
|
key: 0,
|
68
|
+
loading: "lazy",
|
68
69
|
src: (e.FILE_SERVER_URL || "") + (t.value || l.photo),
|
69
70
|
alt: "Uploaded image",
|
70
71
|
class: "w-100 h-100 object-fit-cover"
|
71
|
-
}, null, 8, _)) : (n(), a("div",
|
72
|
-
|
72
|
+
}, null, 8, _)) : (n(), a("div", y, k)),
|
73
|
+
i("input", {
|
73
74
|
type: "file",
|
74
75
|
name: "file",
|
75
76
|
ref_key: "fileInput",
|
76
|
-
ref:
|
77
|
+
ref: r,
|
77
78
|
onChange: c,
|
78
79
|
style: { display: "none" }
|
79
80
|
}, null, 544)
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),b=require("../../../../../components/Tab/Tab.vue2.cjs"),m=require("../../../../../components/Field/Field.vue2.cjs"),w=require("../../../../../components/FieldPhone/FieldPhone.vue.cjs"),V=require("../../../../../components/Button/Button.vue2.cjs"),h=require("vue-router"),N=require("vue-i18n"),y=require("../../localization/SignIn.json.cjs"),s=require("../../store/auth.cjs"),r=require("../../validations/inputs.validation.cjs");;/* empty css */const S={class:""},q=e.createElementVNode("img",{src:"/logo/logo.svg",class:"i-extra radius-small mn-b-small"},null,-1),E={class:"mn-b-medium"},x=e.createElementVNode("br",null,null,-1),C={class:"t-semi"},D={class:"mn-b-big"},P={class:"mn-b-small p-small uppercase t-semi bg-light radius-big o-hidden"},T={class:"pos-relative"},I={class:"mn-b-thin radius-small"},U={class:"mn-b-thin radius-small o-hidden"},k={class:"w-100 mn-b-big"},O={__name:"SignIn",setup(j){const d=e.ref(null),f=e.ref(null),u=e.ref(null),c=h.useRoute(),p=h.useRouter(),{t:l}=N.useI18n({useScope:"global",...y.default}),n=e.ref("phone"),v=o=>new Promise((a,i)=>{const t=document.createElement("script");t.type="text/javascript",t.src=o,t.onload=a,t.onerror=i,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 _(){try{n.value==="phone"&&await r.validateInputs(d,r.validatePhone,s.state.user.phone,"Некорректный телефон"),n.value==="email"&&await r.validateInputs(u,r.validateEmail,s.state.user.email,"Некорректный email")}catch{throw new Error}const o={...s.state.user};await s.actions.login(o,n.value)}function g(){c.query.returnUrl?p.push({path:c.query.returnUrl,query:{afterAuth:"true"}}):p.push({name:"User Profile",params:{_id:s.state.user._id},query:{afterAuth:"true"}})}return(o,a)=>{const i=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",S,[q,e.createElementVNode("h3",E,[e.createTextVNode(e.toDisplayString(e.unref(l)("title"))+" ",1),x,e.createElementVNode("span",C,e.toDisplayString(e.unref(l)("subtitle")),1)]),e.createElementVNode("p",D,[e.createVNode(i,{to:{name:"Sign Up"},class:"underline t-second"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("signup")),1)]),_:1})]),e.createElementVNode("div",P,[e.createVNode(b.default,{selected:n.value,"onUpdate:selected":a[0]||(a[0]=t=>n.value=t),tabs:[{name:e.unref(l)("phone"),value:"phone"},{name:e.unref(l)("email"),value:"email"}]},null,8,["selected","tabs"])]),e.createElementVNode("div",T,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",I,[e.createVNode(w.default,{onChange:a[1]||(a[1]=t=>s.state.user.phone=t),dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},validCharactersOnly:!0,validation:d.value,mode:"national",inputOptions:{placeholder:e.unref(l)("phonePlaceholder"),type:"tel"},class:"bg-light pd-small radius-small mn-b-thin"},null,8,["validation","inputOptions"])],512),[[e.vShow,n.value==="phone"]])]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",U,[e.createVNode(m.default,{field:s.state.user.email,"onUpdate:field":a[2]||(a[2]=t=>s.state.user.email=t),placeholder:e.unref(l)("emailPlaceholder"),validation:u.value,class:"bg-light pd-medium radius-small"},null,8,["field","placeholder","validation"])],512),[[e.vShow,n.value==="email"]])]),_:1})]),e.createVNode(m.default,{field:s.state.user.password,"onUpdate:field":a[3]||(a[3]=t=>s.state.user.password=t),type:"password",validation:f.value,placeholder:e.unref(l)("passwordPlaceholder"),class:"bg-light pd-medium radius-small mn-b-semi"},null,8,["field","validation","placeholder"]),e.createElementVNode("div",k,[e.createVNode(i,{to:"/auth/reset-password",class:"underline d-block t-blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("forgotPassword")),1)]),_:1})]),e.createVNode(V.default,{submit:_,callback:g,class:"w-100 bg-main mn-b-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("signin")),1)]),_:1})])}}};exports.default=O;
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),b=require("../../../../../components/Tab/Tab.vue2.cjs"),m=require("../../../../../components/Field/Field.vue2.cjs"),w=require("../../../../../components/FieldPhone/FieldPhone.vue.cjs"),V=require("../../../../../components/Button/Button.vue2.cjs"),h=require("vue-router"),N=require("vue-i18n"),y=require("../../localization/SignIn.json.cjs"),s=require("../../store/auth.cjs"),r=require("../../validations/inputs.validation.cjs");;/* empty css */const S={class:""},q=e.createElementVNode("img",{loading:"lazy",src:"/logo/logo.svg",class:"i-extra radius-small mn-b-small"},null,-1),E={class:"mn-b-medium"},x=e.createElementVNode("br",null,null,-1),C={class:"t-semi"},D={class:"mn-b-big"},P={class:"mn-b-small p-small uppercase t-semi bg-light radius-big o-hidden"},T={class:"pos-relative"},I={class:"mn-b-thin radius-small"},U={class:"mn-b-thin radius-small o-hidden"},k={class:"w-100 mn-b-big"},O={__name:"SignIn",setup(j){const d=e.ref(null),f=e.ref(null),u=e.ref(null),c=h.useRoute(),p=h.useRouter(),{t:l}=N.useI18n({useScope:"global",...y.default}),n=e.ref("phone"),v=o=>new Promise((a,i)=>{const t=document.createElement("script");t.type="text/javascript",t.src=o,t.onload=a,t.onerror=i,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 _(){try{n.value==="phone"&&await r.validateInputs(d,r.validatePhone,s.state.user.phone,"Некорректный телефон"),n.value==="email"&&await r.validateInputs(u,r.validateEmail,s.state.user.email,"Некорректный email")}catch{throw new Error}const o={...s.state.user};await s.actions.login(o,n.value)}function g(){c.query.returnUrl?p.push({path:c.query.returnUrl,query:{afterAuth:"true"}}):p.push({name:"User Profile",params:{_id:s.state.user._id},query:{afterAuth:"true"}})}return(o,a)=>{const i=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",S,[q,e.createElementVNode("h3",E,[e.createTextVNode(e.toDisplayString(e.unref(l)("title"))+" ",1),x,e.createElementVNode("span",C,e.toDisplayString(e.unref(l)("subtitle")),1)]),e.createElementVNode("p",D,[e.createVNode(i,{to:{name:"Sign Up"},class:"underline t-second"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("signup")),1)]),_:1})]),e.createElementVNode("div",P,[e.createVNode(b.default,{selected:n.value,"onUpdate:selected":a[0]||(a[0]=t=>n.value=t),tabs:[{name:e.unref(l)("phone"),value:"phone"},{name:e.unref(l)("email"),value:"email"}]},null,8,["selected","tabs"])]),e.createElementVNode("div",T,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",I,[e.createVNode(w.default,{onChange:a[1]||(a[1]=t=>s.state.user.phone=t),dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},validCharactersOnly:!0,validation:d.value,mode:"national",inputOptions:{placeholder:e.unref(l)("phonePlaceholder"),type:"tel"},class:"bg-light pd-small radius-small mn-b-thin"},null,8,["validation","inputOptions"])],512),[[e.vShow,n.value==="phone"]])]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",U,[e.createVNode(m.default,{field:s.state.user.email,"onUpdate:field":a[2]||(a[2]=t=>s.state.user.email=t),placeholder:e.unref(l)("emailPlaceholder"),validation:u.value,class:"bg-light pd-medium radius-small"},null,8,["field","placeholder","validation"])],512),[[e.vShow,n.value==="email"]])]),_:1})]),e.createVNode(m.default,{field:s.state.user.password,"onUpdate:field":a[3]||(a[3]=t=>s.state.user.password=t),type:"password",validation:f.value,placeholder:e.unref(l)("passwordPlaceholder"),class:"bg-light pd-medium radius-small mn-b-semi"},null,8,["field","validation","placeholder"]),e.createElementVNode("div",k,[e.createVNode(i,{to:"/auth/reset-password",class:"underline d-block t-blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("forgotPassword")),1)]),_:1})]),e.createVNode(V.default,{submit:_,callback:g,class:"w-100 bg-main mn-b-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("signin")),1)]),_:1})])}}};exports.default=O;
|
@@ -9,10 +9,11 @@ import T from "../../localization/SignIn.json.js";
|
|
9
9
|
import { state as i, actions as $ } from "../../store/auth.js";
|
10
10
|
import { validateInputs as S, validatePhone as B, validateEmail as F } from "../../validations/inputs.validation.js";
|
11
11
|
/* empty css */
|
12
|
-
const R = { class: "" },
|
12
|
+
const R = { class: "" }, z = /* @__PURE__ */ s("img", {
|
13
|
+
loading: "lazy",
|
13
14
|
src: "/logo/logo.svg",
|
14
15
|
class: "i-extra radius-small mn-b-small"
|
15
|
-
}, null, -1),
|
16
|
+
}, null, -1), L = { class: "mn-b-medium" }, M = /* @__PURE__ */ s("br", null, null, -1), G = { class: "t-semi" }, H = { class: "mn-b-big" }, J = { class: "mn-b-small p-small uppercase t-semi bg-light radius-big o-hidden" }, K = { class: "pos-relative" }, Q = { class: "mn-b-thin radius-small" }, W = { class: "mn-b-thin radius-small o-hidden" }, X = { class: "w-100 mn-b-big" }, ue = {
|
16
17
|
__name: "SignIn",
|
17
18
|
setup(Y) {
|
18
19
|
const h = p(null), x = p(null), f = p(null), _ = j(), v = A(), { t: a } = N({
|
@@ -63,10 +64,10 @@ const R = { class: "" }, L = /* @__PURE__ */ s("img", {
|
|
63
64
|
return (u, t) => {
|
64
65
|
const m = E("router-link");
|
65
66
|
return V(), I("section", R, [
|
66
|
-
|
67
|
-
s("h3",
|
67
|
+
z,
|
68
|
+
s("h3", L, [
|
68
69
|
c(r(l(a)("title")) + " ", 1),
|
69
|
-
|
70
|
+
M,
|
70
71
|
s("span", G, r(l(a)("subtitle")), 1)
|
71
72
|
]),
|
72
73
|
s("p", H, [
|
package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../globals/views/components/blocks/CardHeader.vue.cjs"),d=require("./FooterBlogpost.vue.cjs"),m=require("../../../../components/Text/Text.vue.cjs");;/* empty css */const g=require("vue-router"),b={class:"pos-relative bg-light radius-big flex-column flex"},p={class:"pd-t-zero pd-b-zero pd-medium"},y={key:0,class:"cursor-pointer mn-b-thin flex-nowrap flex w-100"},f={key:1,class:"pd-micro t-white uppercase t-semi p-small flex-center flex pd-r-small pd-l-small mn-l-thin w-min bg-second radius-extra"},h={key:1,class:"mn-b-small t-transp p-big"},k={key:2,class:"mn-b-small h2"},v=["src"],B={key:1,controls:"",class:"mn-b-medium object-fit-cover w-100 h-max-20r"},x=["src"],V={__name:"CardBlogpost",props:{blogpost:{type:Object},user:{type:String},type:{type:String},hideDescription:{type:Boolean,default:!1},hideTitle:{type:Boolean,default:!1}},setup(t){const i=g.useRouter(),n=t,l=e.computed(()=>n.blogpost.content.find(o=>o.type==="ImageUpload")),s=e.computed(()=>n.blogpost.content.find(o=>o.type==="Video")),a=e.computed(()=>n.blogpost.content.find(o=>o.type==="Textarea"));return(o,r)=>{var c;return e.openBlock(),e.createElementBlock("article",b,[e.createVNode(u.default,{class:e.normalizeClass({"mn-b-small pd-medium":t.type!=="short","flex-child-order-last flex-child mn-l-small":t.type==="short"}),entity:t.blogpost,entityType:"blogpost",user:t.user,owner:t.blogpost.owner,creator:t.blogpost.creator,date:t.blogpost.createdAt,actions:t.user&&t.user===t.blogpost.creator.target._id?[{to:{name:"Edit BlogPost",params:{url:t.blogpost.url}},label:"Edit"}]:null},null,8,["class","entity","user","owner","creator","date","actions"]),e.createElementVNode("section",p,[t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("div",y,[t.hideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m.default,{key:0,text:t.blogpost.name||"",maxLen:80,class:"h3 d-block",onClick:r[0]||(r[0]=E=>e.unref(i).push({name:"BlogPost",params:{url:t.blogpost.url}}))},null,8,["text"])),t.blogpost.status==="draft"?(e.openBlock(),e.createElementBlock("div",f,e.toDisplayString(t.blogpost.status),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),a.value&&a.value.content&&t.type!=="blogpostPage"&&!t.hideDescription?(e.openBlock(),e.createElementBlock("p",h,e.toDisplayString(a.value.content.slice(0,120))+"... ",1)):e.createCommentVNode("",!0),t.type==="blogpostPage"&&!t.hideTitle?(e.openBlock(),e.createElementBlock("h3",k,e.toDisplayString(t.blogpost.name),1)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default")]),l.value&&l.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+l.value.content,alt:"Blog post image",class:"mn-b-medium object-fit-cover w-100 h-min-10r h-100"},null,8,v)):e.createCommentVNode("",!0),!((c=l.value)!=null&&c.content)&&s.value&&s.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("video",B,[e.createElementVNode("source",{src:s.value.content,type:"video/mp4"},null,8,x),e.createTextVNode(" Your browser does not support the video tag. ")])):e.createCommentVNode("",!0),e.createVNode(d.default,{class:"pd-t-zero pd-medium",blogpost:t.blogpost,user:t.user},null,8,["blogpost","user"])])}}};exports.default=V;
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../globals/views/components/blocks/CardHeader.vue.cjs"),d=require("./FooterBlogpost.vue.cjs"),m=require("../../../../components/Text/Text.vue.cjs");;/* empty css */const g=require("vue-router"),b={class:"pos-relative bg-light radius-big flex-column flex"},p={class:"pd-t-zero pd-b-zero pd-medium"},y={key:0,class:"cursor-pointer mn-b-thin flex-nowrap flex w-100"},f={key:1,class:"pd-micro t-white uppercase t-semi p-small flex-center flex pd-r-small pd-l-small mn-l-thin w-min bg-second radius-extra"},h={key:1,class:"mn-b-small t-transp p-big"},k={key:2,class:"mn-b-small h2"},v=["src"],B={key:1,controls:"",class:"mn-b-medium object-fit-cover w-100 h-max-20r"},x=["src"],V={__name:"CardBlogpost",props:{blogpost:{type:Object},user:{type:String},type:{type:String},hideDescription:{type:Boolean,default:!1},hideTitle:{type:Boolean,default:!1}},setup(t){const i=g.useRouter(),n=t,l=e.computed(()=>n.blogpost.content.find(o=>o.type==="ImageUpload")),s=e.computed(()=>n.blogpost.content.find(o=>o.type==="Video")),a=e.computed(()=>n.blogpost.content.find(o=>o.type==="Textarea"));return(o,r)=>{var c;return e.openBlock(),e.createElementBlock("article",b,[e.createVNode(u.default,{class:e.normalizeClass({"mn-b-small pd-medium":t.type!=="short","flex-child-order-last flex-child mn-l-small":t.type==="short"}),entity:t.blogpost,entityType:"blogpost",user:t.user,owner:t.blogpost.owner,creator:t.blogpost.creator,date:t.blogpost.createdAt,actions:t.user&&t.user===t.blogpost.creator.target._id?[{to:{name:"Edit BlogPost",params:{url:t.blogpost.url}},label:"Edit"}]:null},null,8,["class","entity","user","owner","creator","date","actions"]),e.createElementVNode("section",p,[t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("div",y,[t.hideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m.default,{key:0,text:t.blogpost.name||"",maxLen:80,class:"h3 d-block",onClick:r[0]||(r[0]=E=>e.unref(i).push({name:"BlogPost",params:{url:t.blogpost.url}}))},null,8,["text"])),t.blogpost.status==="draft"?(e.openBlock(),e.createElementBlock("div",f,e.toDisplayString(t.blogpost.status),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),a.value&&a.value.content&&t.type!=="blogpostPage"&&!t.hideDescription?(e.openBlock(),e.createElementBlock("p",h,e.toDisplayString(a.value.content.slice(0,120))+"... ",1)):e.createCommentVNode("",!0),t.type==="blogpostPage"&&!t.hideTitle?(e.openBlock(),e.createElementBlock("h3",k,e.toDisplayString(t.blogpost.name),1)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default")]),l.value&&l.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("img",{key:0,loading:"lazy",src:(o.FILE_SERVER_URL||"")+l.value.content,alt:"Blog post image",class:"mn-b-medium object-fit-cover w-100 h-min-10r h-100"},null,8,v)):e.createCommentVNode("",!0),!((c=l.value)!=null&&c.content)&&s.value&&s.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("video",B,[e.createElementVNode("source",{src:s.value.content,type:"video/mp4"},null,8,x),e.createTextVNode(" Your browser does not support the video tag. ")])):e.createCommentVNode("",!0),e.createVNode(d.default,{class:"pd-t-zero pd-medium",blogpost:t.blogpost,user:t.user},null,8,["blogpost","user"])])}}};exports.default=V;
|
package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { computed as c, openBlock as o, createElementBlock as l, createVNode as g, normalizeClass as f, createElementVNode as b, createBlock as
|
1
|
+
import { computed as c, openBlock as o, createElementBlock as l, createVNode as g, normalizeClass as f, createElementVNode as b, createBlock as y, unref as h, createCommentVNode as s, toDisplayString as u, renderSlot as v, createTextVNode as x } from "vue";
|
2
2
|
import k from "../../../globals/views/components/blocks/CardHeader.vue.js";
|
3
3
|
import w from "./FooterBlogpost.vue.js";
|
4
4
|
import B from "../../../../components/Text/Text.vue.js";
|
@@ -7,13 +7,13 @@ import { useRouter as E } from "vue-router";
|
|
7
7
|
const P = { class: "pos-relative bg-light radius-big flex-column flex" }, T = { class: "pd-t-zero pd-b-zero pd-medium" }, V = {
|
8
8
|
key: 0,
|
9
9
|
class: "cursor-pointer mn-b-thin flex-nowrap flex w-100"
|
10
|
-
},
|
10
|
+
}, z = {
|
11
11
|
key: 1,
|
12
12
|
class: "pd-micro t-white uppercase t-semi p-small flex-center flex pd-r-small pd-l-small mn-l-thin w-min bg-second radius-extra"
|
13
|
-
},
|
13
|
+
}, S = {
|
14
14
|
key: 1,
|
15
15
|
class: "mn-b-small t-transp p-big"
|
16
|
-
},
|
16
|
+
}, $ = {
|
17
17
|
key: 2,
|
18
18
|
class: "mn-b-small h2"
|
19
19
|
}, C = ["src"], N = {
|
@@ -63,26 +63,27 @@ const P = { class: "pos-relative bg-light radius-big flex-column flex" }, T = {
|
|
63
63
|
}, null, 8, ["class", "entity", "user", "owner", "creator", "date", "actions"]),
|
64
64
|
b("section", T, [
|
65
65
|
e.type !== "blogpostPage" ? (o(), l("div", V, [
|
66
|
-
e.hideTitle ? s("", !0) : (o(),
|
66
|
+
e.hideTitle ? s("", !0) : (o(), y(B, {
|
67
67
|
key: 0,
|
68
68
|
text: e.blogpost.name || "",
|
69
69
|
maxLen: 80,
|
70
70
|
class: "h3 d-block",
|
71
|
-
onClick: d[0] || (d[0] = (j) =>
|
71
|
+
onClick: d[0] || (d[0] = (j) => h(p).push({
|
72
72
|
name: "BlogPost",
|
73
73
|
params: {
|
74
74
|
url: e.blogpost.url
|
75
75
|
}
|
76
76
|
}))
|
77
77
|
}, null, 8, ["text"])),
|
78
|
-
e.blogpost.status === "draft" ? (o(), l("div",
|
78
|
+
e.blogpost.status === "draft" ? (o(), l("div", z, u(e.blogpost.status), 1)) : s("", !0)
|
79
79
|
])) : s("", !0),
|
80
|
-
i.value && i.value.content && e.type !== "blogpostPage" && !e.hideDescription ? (o(), l("p",
|
81
|
-
e.type === "blogpostPage" && !e.hideTitle ? (o(), l("h3",
|
80
|
+
i.value && i.value.content && e.type !== "blogpostPage" && !e.hideDescription ? (o(), l("p", S, u(i.value.content.slice(0, 120)) + "... ", 1)) : s("", !0),
|
81
|
+
e.type === "blogpostPage" && !e.hideTitle ? (o(), l("h3", $, u(e.blogpost.name), 1)) : s("", !0),
|
82
82
|
v(t.$slots, "default")
|
83
83
|
]),
|
84
84
|
n.value && n.value.content && e.type !== "blogpostPage" ? (o(), l("img", {
|
85
85
|
key: 0,
|
86
|
+
loading: "lazy",
|
86
87
|
src: (t.FILE_SERVER_URL || "") + n.value.content,
|
87
88
|
alt: "Blog post image",
|
88
89
|
class: "mn-b-medium object-fit-cover w-100 h-min-10r h-100"
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o={key:0,class:"o-hidden radius-big pos-relative bg-light mn-b-small w-100 flex-center flex"},
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o={key:0,class:"o-hidden radius-big pos-relative bg-light mn-b-small w-100 flex-center flex"},n=["src"],r=["src"],a={__name:"Image",props:["label","value","prop"],setup(t){return(l,s)=>t.prop.content?(e.openBlock(),e.createElementBlock("div",o,[e.createElementVNode("img",{loading:"lazy",src:(l.FILE_SERVER_URL||"")+t.prop.content,alt:"Event image",class:"pos-relative z-index-1 d-block mn-auto w-100 h-100 object-fit-contain",style:{"max-height":"40rem"}},null,8,n),e.createElementVNode("img",{loading:"lazy",src:(l.FILE_SERVER_URL||"")+t.prop.content,alt:"Event Background",class:"z-index-0 pos-absolute w-100 h-100 pos-t-0 pos-r-0",style:{transform:"scale(1.5)",filter:"blur(2rem)","-webkit-filter":"blur(2rem)"}},null,8,r)])):e.createCommentVNode("",!0)}};exports.default=a;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { openBlock as
|
2
|
-
const
|
1
|
+
import { openBlock as o, createElementBlock as n, createElementVNode as l, createCommentVNode as r } from "vue";
|
2
|
+
const a = {
|
3
3
|
key: 0,
|
4
4
|
class: "o-hidden radius-big pos-relative bg-light mn-b-small w-100 flex-center flex"
|
5
|
-
},
|
5
|
+
}, s = ["src"], c = ["src"], d = {
|
6
6
|
__name: "Image",
|
7
7
|
props: [
|
8
8
|
"label",
|
@@ -10,22 +10,24 @@ const s = {
|
|
10
10
|
"prop"
|
11
11
|
],
|
12
12
|
setup(e) {
|
13
|
-
return (t, i) => e.prop.content ? (
|
14
|
-
|
13
|
+
return (t, i) => e.prop.content ? (o(), n("div", a, [
|
14
|
+
l("img", {
|
15
|
+
loading: "lazy",
|
15
16
|
src: (t.FILE_SERVER_URL || "") + e.prop.content,
|
16
17
|
alt: "Event image",
|
17
18
|
class: "pos-relative z-index-1 d-block mn-auto w-100 h-100 object-fit-contain",
|
18
19
|
style: { "max-height": "40rem" }
|
19
|
-
}, null, 8,
|
20
|
-
|
20
|
+
}, null, 8, s),
|
21
|
+
l("img", {
|
22
|
+
loading: "lazy",
|
21
23
|
src: (t.FILE_SERVER_URL || "") + e.prop.content,
|
22
24
|
alt: "Event Background",
|
23
25
|
class: "z-index-0 pos-absolute w-100 h-100 pos-t-0 pos-r-0",
|
24
26
|
style: { transform: "scale(1.5)", filter: "blur(2rem)", "-webkit-filter": "blur(2rem)" }
|
25
27
|
}, null, 8, c)
|
26
|
-
])) :
|
28
|
+
])) : r("", !0);
|
27
29
|
}
|
28
30
|
};
|
29
31
|
export {
|
30
|
-
|
32
|
+
d as default
|
31
33
|
};
|
package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("axios"),k=["src"],v={key:1,class:"t-transp pd-extra"},
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("axios"),k=["src"],v={key:1,class:"t-transp pd-extra"},y={__name:"ImageUpload",props:["label","value","prop"],emits:["input","updateBlock"],setup(n,{emit:u}){const a=e.ref(null),r=e.ref(null),i=n,s=u;function d(){r.value.click()}async function c(t){let o=t.target.files[0];console.log(o);let l=new FormData;l.append("file",o),console.log(l.has("file"));try{let m=await g.create({baseURL:process.env.API_URL,withCredentials:!0}).post(`/api/upload/multiple?folderName=${encodeURIComponent(i.uploadPath||"images")}`,l,{headers:{"Content-Type":"multipart/form-data"}});a.value=m.data[0].filepath,console.log(a.value),s("input",a.value),s("updateBlock",i.prop,{content:a.value})}catch(p){console.error(p)}}function f(t){t.preventDefault(),t.dataTransfer&&t.dataTransfer.files&&t.dataTransfer.files.length&&c({target:{files:t.dataTransfer.files}})}return(t,o)=>(e.openBlock(),e.createElementBlock("div",{onClick:d,onDrop:f,onDragover:o[0]||(o[0]=e.withModifiers(()=>{},["prevent"])),onDragenter:o[1]||(o[1]=e.withModifiers(()=>{},["prevent"])),onDragleave:o[2]||(o[2]=e.withModifiers(()=>{},["prevent"])),class:"w-100 radius-big bg-white image-upload-area flex-v-center flex-h-center flex t-black mn-b-small"},[n.prop.content?(e.openBlock(),e.createElementBlock("img",{key:0,loading:"lazy",src:(t.FILE_SERVER_URL||"")+n.prop.content,alt:"Uploaded image",class:"w-100 h-30r object-fit-contain"},null,8,k)):(e.openBlock(),e.createElementBlock("span",v,"Click or drag-and-drop your image")),n.prop.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("input",{key:2,type:"file",ref_key:"fileInput",ref:r,tabindex:"-1",onChange:c,style:{display:"none"}},null,544))],32))}};exports.default=y;
|
package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ref as d, openBlock as
|
1
|
+
import { ref as d, openBlock as o, createElementBlock as l, withModifiers as i, createCommentVNode as y } from "vue";
|
2
2
|
import h from "axios";
|
3
3
|
const C = ["src"], x = {
|
4
4
|
key: 1,
|
@@ -12,7 +12,7 @@ const C = ["src"], x = {
|
|
12
12
|
],
|
13
13
|
emits: ["input", "updateBlock"],
|
14
14
|
setup(n, { emit: m }) {
|
15
|
-
const
|
15
|
+
const a = d(null), s = d(null), p = n, c = m;
|
16
16
|
function g() {
|
17
17
|
s.value.click();
|
18
18
|
}
|
@@ -27,7 +27,7 @@ const C = ["src"], x = {
|
|
27
27
|
"Content-Type": "multipart/form-data"
|
28
28
|
}
|
29
29
|
});
|
30
|
-
|
30
|
+
a.value = k.data[0].filepath, console.log(a.value), c("input", a.value), c("updateBlock", p.prop, { content: a.value });
|
31
31
|
} catch (u) {
|
32
32
|
console.error(u);
|
33
33
|
}
|
@@ -39,7 +39,7 @@ const C = ["src"], x = {
|
|
39
39
|
}
|
40
40
|
});
|
41
41
|
}
|
42
|
-
return (e, t) => (
|
42
|
+
return (e, t) => (o(), l("div", {
|
43
43
|
onClick: g,
|
44
44
|
onDrop: v,
|
45
45
|
onDragover: t[0] || (t[0] = i(() => {
|
@@ -50,13 +50,14 @@ const C = ["src"], x = {
|
|
50
50
|
}, ["prevent"])),
|
51
51
|
class: "w-100 radius-big bg-white image-upload-area flex-v-center flex-h-center flex t-black mn-b-small"
|
52
52
|
}, [
|
53
|
-
n.prop.content ? (
|
53
|
+
n.prop.content ? (o(), l("img", {
|
54
54
|
key: 0,
|
55
|
+
loading: "lazy",
|
55
56
|
src: (e.FILE_SERVER_URL || "") + n.prop.content,
|
56
57
|
alt: "Uploaded image",
|
57
58
|
class: "w-100 h-30r object-fit-contain"
|
58
|
-
}, null, 8, C)) : (
|
59
|
-
n.prop.content ? y("", !0) : (
|
59
|
+
}, null, 8, C)) : (o(), l("span", x, "Click or drag-and-drop your image")),
|
60
|
+
n.prop.content ? y("", !0) : (o(), l("input", {
|
60
61
|
key: 2,
|
61
62
|
type: "file",
|
62
63
|
ref_key: "fileInput",
|
package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),b=require("isomorphic-dompurify");;/* empty css */const
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),b=require("isomorphic-dompurify");;/* empty css */const h={key:0,class:"formatting-bar"},y={__name:"Textarea",props:{prop:Object,content:String,placeholder:String,index:Number,setFocus:Boolean},emits:["deleteBlock","updateBlock","addBlock","focus"],setup(s,{emit:k}){const T={ALLOWED_TAGS:["b","i","a","img"],ALLOWED_ATTR:["href","target","src"]},i=s,l=k,c=n.ref(null),u=n.ref(!1);n.ref(null);function C(t){const e=a(t.target.innerHTML);l("updateBlock",i.prop,{content:e})}function g(t){if(t.key==="Enter"&&!t.shiftKey){t.preventDefault();const o=window.getSelection().getRangeAt(0),r=E(o),d=a(c.value.innerHTML);l("updateBlock",i.prop,{content:d}),l("addBlock","Textarea",a(r),i.index)}else t.key==="Backspace"&&c.value.innerHTML.trim()===""&&(t.preventDefault(),l("deleteBlock",i.prop,{setCaretToEnd:!0}))}function E(t){const e=t.startContainer,o=t.startOffset;if(e.nodeType===Node.TEXT_NODE){const r=e.textContent.slice(o);return e.textContent=e.textContent.slice(0,o),r}else if(e.nodeType===Node.ELEMENT_NODE){const r=document.createElement("div"),d=Array.from(e.childNodes);let m=!1;for(d.forEach((L,N)=>{N===o&&(m=!0),m&&r.appendChild(L.cloneNode(!0))});e.childNodes[o];)e.removeChild(e.childNodes[o]);return r.innerHTML}return""}function f(t={}){n.nextTick(()=>{c.value.focus();let e=t.setCaretToEnd||i.prop.setCaretToEnd;if(i.prop.setFocus===!0&&!e){const o=document.createRange();o.setStart(c.value,0),o.collapse(!0);const r=window.getSelection();r.removeAllRanges(),r.addRange(o)}else v(c.value);l("updateBlock",i.prop,{setFocus:!1,setCaretToEnd:!1})})}n.onMounted(()=>{i.setFocus&&n.nextTick(()=>{f()})}),n.onUpdated(()=>{i.setFocus&&n.nextTick(()=>{f()})});function a(t){return b.sanitize(t,T)}function v(t){const e=document.createRange(),o=window.getSelection();e.selectNodeContents(t),e.collapse(!1),o.removeAllRanges(),o.addRange(e)}function x(){u.value=window.getSelection().toString().length>0}function p(t){document.execCommand(t,!1,null)}function B(){const t=prompt("Enter the URL:");t&&document.execCommand("createLink",!1,t)}return(t,e)=>(n.openBlock(),n.createElementBlock("div",null,[e[0]||(n.setBlockTracking(-1),(e[0]=n.createElementVNode("div",{ref_key:"editableDiv",ref:c,contenteditable:!0,onInput:C,onKeydown:g,onMouseup:x,tabindex:"0",innerHTML:i.prop[i.content],class:n.normalizeClass(["editable-div mn-b-thin",{"t-main t-semi":s.prop.type==="Link",h3:s.prop.type==="H2"}])},null,42,["innerHTML"])).cacheIndex=0,n.setBlockTracking(1),e[0]),u.value?(n.openBlock(),n.createElementBlock("div",h,[n.createElementVNode("button",{onClick:e[1]||(e[1]=o=>p("bold"))},"B"),n.createElementVNode("button",{onClick:e[2]||(e[2]=o=>p("italic"))},"I"),n.createElementVNode("button",{onClick:B},"Link")])):n.createCommentVNode("",!0)]))}};exports.default=y;
|
package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ref as u, onMounted as D, nextTick as f, onUpdated as M, openBlock as T, createElementBlock as g, setBlockTracking as E, createElementVNode as
|
1
|
+
import { ref as u, onMounted as D, nextTick as f, onUpdated as M, openBlock as T, createElementBlock as g, setBlockTracking as E, createElementVNode as s, normalizeClass as A, createCommentVNode as R } from "vue";
|
2
2
|
import z from "isomorphic-dompurify";
|
3
3
|
/* empty css */
|
4
4
|
const H = {
|
@@ -18,20 +18,20 @@ const H = {
|
|
18
18
|
const x = {
|
19
19
|
ALLOWED_TAGS: ["b", "i", "a", "img"],
|
20
20
|
ALLOWED_ATTR: ["href", "target", "src"]
|
21
|
-
}, o = l,
|
21
|
+
}, o = l, c = v, r = u(null), p = u(!1);
|
22
22
|
u(null);
|
23
23
|
function L(t) {
|
24
24
|
const e = a(t.target.innerHTML);
|
25
|
-
|
25
|
+
c("updateBlock", o.prop, { content: e });
|
26
26
|
}
|
27
|
-
function
|
27
|
+
function h(t) {
|
28
28
|
if (t.key === "Enter" && !t.shiftKey) {
|
29
29
|
t.preventDefault();
|
30
|
-
const n = window.getSelection().getRangeAt(0), i =
|
31
|
-
|
32
|
-
} else t.key === "Backspace" && r.value.innerHTML.trim() === "" && (t.preventDefault(),
|
30
|
+
const n = window.getSelection().getRangeAt(0), i = B(n), d = a(r.value.innerHTML);
|
31
|
+
c("updateBlock", o.prop, { content: d }), c("addBlock", "Textarea", a(i), o.index);
|
32
|
+
} else t.key === "Backspace" && r.value.innerHTML.trim() === "" && (t.preventDefault(), c("deleteBlock", o.prop, { setCaretToEnd: !0 }));
|
33
33
|
}
|
34
|
-
function
|
34
|
+
function B(t) {
|
35
35
|
const e = t.startContainer, n = t.startOffset;
|
36
36
|
if (e.nodeType === Node.TEXT_NODE) {
|
37
37
|
const i = e.textContent.slice(n);
|
@@ -57,8 +57,8 @@ const H = {
|
|
57
57
|
const i = window.getSelection();
|
58
58
|
i.removeAllRanges(), i.addRange(n);
|
59
59
|
} else
|
60
|
-
|
61
|
-
|
60
|
+
b(r.value);
|
61
|
+
c("updateBlock", o.prop, { setFocus: !1, setCaretToEnd: !1 });
|
62
62
|
});
|
63
63
|
}
|
64
64
|
D(() => {
|
@@ -73,7 +73,7 @@ const H = {
|
|
73
73
|
function a(t) {
|
74
74
|
return z.sanitize(t, x);
|
75
75
|
}
|
76
|
-
function
|
76
|
+
function b(t) {
|
77
77
|
const e = document.createRange(), n = window.getSelection();
|
78
78
|
e.selectNodeContents(t), e.collapse(!1), n.removeAllRanges(), n.addRange(e);
|
79
79
|
}
|
@@ -88,12 +88,12 @@ const H = {
|
|
88
88
|
t && document.execCommand("createLink", !1, t);
|
89
89
|
}
|
90
90
|
return (t, e) => (T(), g("div", null, [
|
91
|
-
e[0] || (E(-1), e[0] =
|
91
|
+
e[0] || (E(-1), (e[0] = s("div", {
|
92
92
|
ref_key: "editableDiv",
|
93
93
|
ref: r,
|
94
94
|
contenteditable: !0,
|
95
95
|
onInput: L,
|
96
|
-
onKeydown:
|
96
|
+
onKeydown: h,
|
97
97
|
onMouseup: y,
|
98
98
|
tabindex: "0",
|
99
99
|
innerHTML: o.prop[o.content],
|
@@ -101,15 +101,15 @@ const H = {
|
|
101
101
|
"t-main t-semi": l.prop.type === "Link",
|
102
102
|
h3: l.prop.type === "H2"
|
103
103
|
}])
|
104
|
-
}, null, 42, ["innerHTML"]), E(1), e[0]),
|
104
|
+
}, null, 42, ["innerHTML"])).cacheIndex = 0, E(1), e[0]),
|
105
105
|
p.value ? (T(), g("div", H, [
|
106
|
-
|
106
|
+
s("button", {
|
107
107
|
onClick: e[1] || (e[1] = (n) => C("bold"))
|
108
108
|
}, "B"),
|
109
|
-
|
109
|
+
s("button", {
|
110
110
|
onClick: e[2] || (e[2] = (n) => C("italic"))
|
111
111
|
}, "I"),
|
112
|
-
|
112
|
+
s("button", { onClick: N }, "Link")
|
113
113
|
])) : R("", !0)
|
114
114
|
]));
|
115
115
|
}
|