@meeovi/layer-social 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +79 -0
- package/app/assets/bootstrap/css/bootstrap-grid.min.css +6 -0
- package/app/assets/bootstrap/css/bootstrap-reboot.min.css +7 -0
- package/app/assets/bootstrap/css/bootstrap.min.css +11696 -0
- package/app/assets/bootstrap/js/bootstrap.bundle.min.js +6 -0
- package/app/assets/bootstrap/js/bootstrap.min.js +7 -0
- package/app/assets/commerce/css/bootstrap.css +8878 -0
- package/app/assets/commerce/css/bootstrap.css.map +7 -0
- package/app/assets/commerce/css/responsive.css +105 -0
- package/app/assets/commerce/css/responsive.css.map +7 -0
- package/app/assets/commerce/css/ui.css +1277 -0
- package/app/assets/commerce/css/ui.css.map +7 -0
- package/app/assets/commerce/fonts/fontawesome/css/all.css +4335 -0
- package/app/assets/commerce/fonts/fontawesome/css/all.min.css +5 -0
- package/app/assets/commerce/fonts/fontawesome/css/brands.css +14 -0
- package/app/assets/commerce/fonts/fontawesome/css/brands.min.css +5 -0
- package/app/assets/commerce/fonts/fontawesome/css/fontawesome.css +4302 -0
- package/app/assets/commerce/fonts/fontawesome/css/fontawesome.min.css +5 -0
- package/app/assets/commerce/fonts/fontawesome/css/regular.css +15 -0
- package/app/assets/commerce/fonts/fontawesome/css/regular.min.css +5 -0
- package/app/assets/commerce/fonts/fontawesome/css/solid.css +16 -0
- package/app/assets/commerce/fonts/fontawesome/css/solid.min.css +5 -0
- package/app/assets/commerce/fonts/fontawesome/css/svg-with-js.css +346 -0
- package/app/assets/commerce/fonts/fontawesome/css/svg-with-js.min.css +5 -0
- package/app/assets/commerce/fonts/fontawesome/css/v4-shims.css +2166 -0
- package/app/assets/commerce/fonts/fontawesome/css/v4-shims.min.css +5 -0
- package/app/assets/commerce/fonts/fontawesome/webfonts/fa-brands-400.eot +0 -0
- package/app/assets/commerce/fonts/fontawesome/webfonts/fa-brands-400.svg +3452 -0
- package/app/assets/commerce/fonts/fontawesome/webfonts/fa-brands-400.ttf +0 -0
- package/app/assets/commerce/fonts/fontawesome/webfonts/fa-brands-400.woff +0 -0
- package/app/assets/commerce/fonts/fontawesome/webfonts/fa-brands-400.woff2 +0 -0
- package/app/assets/commerce/fonts/fontawesome/webfonts/fa-regular-400.eot +0 -0
- package/app/assets/commerce/fonts/fontawesome/webfonts/fa-regular-400.svg +803 -0
- package/app/assets/commerce/fonts/fontawesome/webfonts/fa-regular-400.ttf +0 -0
- package/app/assets/commerce/fonts/fontawesome/webfonts/fa-regular-400.woff +0 -0
- package/app/assets/commerce/fonts/fontawesome/webfonts/fa-regular-400.woff2 +0 -0
- package/app/assets/commerce/fonts/fontawesome/webfonts/fa-solid-900.eot +0 -0
- package/app/assets/commerce/fonts/fontawesome/webfonts/fa-solid-900.svg +4527 -0
- package/app/assets/commerce/fonts/fontawesome/webfonts/fa-solid-900.ttf +0 -0
- package/app/assets/commerce/fonts/fontawesome/webfonts/fa-solid-900.woff +0 -0
- package/app/assets/commerce/fonts/fontawesome/webfonts/fa-solid-900.woff2 +0 -0
- package/app/assets/commerce/fonts/roboto/Roboto-Bold.ttf +0 -0
- package/app/assets/commerce/fonts/roboto/Roboto-Light.ttf +0 -0
- package/app/assets/commerce/fonts/roboto/Roboto-Medium.ttf +0 -0
- package/app/assets/commerce/fonts/roboto/Roboto-Regular.ttf +0 -0
- package/app/assets/commerce/fonts/roboto/Roboto-Thin.ttf +0 -0
- package/app/assets/commerce/fonts/roboto/font.css +23 -0
- package/app/assets/commerce/images/avatars/avatar1.jpg +0 -0
- package/app/assets/commerce/images/avatars/avatar2.jpg +0 -0
- package/app/assets/commerce/images/avatars/avatar3.jpg +0 -0
- package/app/assets/commerce/images/banners/ad-sm.png +0 -0
- package/app/assets/commerce/images/banners/ad.png +0 -0
- package/app/assets/commerce/images/banners/banner-item1.jpg +0 -0
- package/app/assets/commerce/images/banners/banner-item2.jpg +0 -0
- package/app/assets/commerce/images/banners/banner-item3.jpg +0 -0
- package/app/assets/commerce/images/banners/banner1.jpg +0 -0
- package/app/assets/commerce/images/banners/banner2.jpg +0 -0
- package/app/assets/commerce/images/banners/banner3.jpg +0 -0
- package/app/assets/commerce/images/banners/banner4.jpg +0 -0
- package/app/assets/commerce/images/banners/banner5.jpg +0 -0
- package/app/assets/commerce/images/banners/banner6.jpg +0 -0
- package/app/assets/commerce/images/banners/banner7.jpg +0 -0
- package/app/assets/commerce/images/banners/banner8.jpg +0 -0
- package/app/assets/commerce/images/banners/banner9.jpg +0 -0
- package/app/assets/commerce/images/banners/slide1.jpg +0 -0
- package/app/assets/commerce/images/banners/slide2.jpg +0 -0
- package/app/assets/commerce/images/banners/slide3.jpg +0 -0
- package/app/assets/commerce/images/favicon.ico +0 -0
- package/app/assets/commerce/images/icons/flags/AU.png +0 -0
- package/app/assets/commerce/images/icons/flags/AU@2x.png +0 -0
- package/app/assets/commerce/images/icons/flags/CN.png +0 -0
- package/app/assets/commerce/images/icons/flags/CN@2x.png +0 -0
- package/app/assets/commerce/images/icons/flags/DE.png +0 -0
- package/app/assets/commerce/images/icons/flags/DE@2x.png +0 -0
- package/app/assets/commerce/images/icons/flags/GB.png +0 -0
- package/app/assets/commerce/images/icons/flags/GB@2x.png +0 -0
- package/app/assets/commerce/images/icons/flags/IN.png +0 -0
- package/app/assets/commerce/images/icons/flags/IN@2x.png +0 -0
- package/app/assets/commerce/images/icons/flags/RU.png +0 -0
- package/app/assets/commerce/images/icons/flags/RU@2x.png +0 -0
- package/app/assets/commerce/images/icons/flags/TR.png +0 -0
- package/app/assets/commerce/images/icons/flags/TR@2x.png +0 -0
- package/app/assets/commerce/images/icons/flags/US.png +0 -0
- package/app/assets/commerce/images/icons/flags/US@2x.png +0 -0
- package/app/assets/commerce/images/icons/flags/UZ.png +0 -0
- package/app/assets/commerce/images/icons/flags/UZ@2x.png +0 -0
- package/app/assets/commerce/images/icons/pay-american-ex.png +0 -0
- package/app/assets/commerce/images/icons/pay-bank.png +0 -0
- package/app/assets/commerce/images/icons/pay-mastercard.png +0 -0
- package/app/assets/commerce/images/icons/pay-visa-el.png +0 -0
- package/app/assets/commerce/images/icons/pay-visa.png +0 -0
- package/app/assets/commerce/images/items/1.jpg +0 -0
- package/app/assets/commerce/images/items/10.jpg +0 -0
- package/app/assets/commerce/images/items/11.jpg +0 -0
- package/app/assets/commerce/images/items/12.jpg +0 -0
- package/app/assets/commerce/images/items/13.jpg +0 -0
- package/app/assets/commerce/images/items/14.jpg +0 -0
- package/app/assets/commerce/images/items/15-1.jpg +0 -0
- package/app/assets/commerce/images/items/15-2.jpg +0 -0
- package/app/assets/commerce/images/items/15.jpg +0 -0
- package/app/assets/commerce/images/items/2.jpg +0 -0
- package/app/assets/commerce/images/items/3.jpg +0 -0
- package/app/assets/commerce/images/items/4.jpg +0 -0
- package/app/assets/commerce/images/items/5.jpg +0 -0
- package/app/assets/commerce/images/items/6.jpg +0 -0
- package/app/assets/commerce/images/items/7.jpg +0 -0
- package/app/assets/commerce/images/items/8.jpg +0 -0
- package/app/assets/commerce/images/items/9.jpg +0 -0
- package/app/assets/commerce/images/logo-white.png +0 -0
- package/app/assets/commerce/images/logo.png +0 -0
- package/app/assets/commerce/images/logo.svg +16 -0
- package/app/assets/commerce/images/misc/appstore.png +0 -0
- package/app/assets/commerce/images/misc/payments.png +0 -0
- package/app/assets/commerce/images/misc/playmarket.png +0 -0
- package/app/assets/commerce/images/posts/1.jpg +0 -0
- package/app/assets/commerce/images/posts/2.jpg +0 -0
- package/app/assets/commerce/images/posts/3.jpg +0 -0
- package/app/assets/commerce/images/posts/4.jpg +0 -0
- package/app/assets/commerce/js/bootstrap.bundle.min.js +7 -0
- package/app/assets/commerce/js/jquery-2.0.0.min.js +6 -0
- package/app/assets/commerce/js/script.js +30 -0
- package/app/assets/commerce/sass/_variables-custom.scss +1102 -0
- package/app/assets/commerce/sass/bootstrap-assets/_alert.scss +51 -0
- package/app/assets/commerce/sass/bootstrap-assets/_badge.scss +54 -0
- package/app/assets/commerce/sass/bootstrap-assets/_bootstrap.scss +44 -0
- package/app/assets/commerce/sass/bootstrap-assets/_breadcrumb.scss +40 -0
- package/app/assets/commerce/sass/bootstrap-assets/_button-group.scss +163 -0
- package/app/assets/commerce/sass/bootstrap-assets/_buttons.scss +137 -0
- package/app/assets/commerce/sass/bootstrap-assets/_card.scss +289 -0
- package/app/assets/commerce/sass/bootstrap-assets/_carousel.scss +197 -0
- package/app/assets/commerce/sass/bootstrap-assets/_close.scss +41 -0
- package/app/assets/commerce/sass/bootstrap-assets/_code.scss +48 -0
- package/app/assets/commerce/sass/bootstrap-assets/_custom-forms.scss +507 -0
- package/app/assets/commerce/sass/bootstrap-assets/_dropdown.scss +191 -0
- package/app/assets/commerce/sass/bootstrap-assets/_forms.scss +330 -0
- package/app/assets/commerce/sass/bootstrap-assets/_functions.scss +86 -0
- package/app/assets/commerce/sass/bootstrap-assets/_grid.scss +52 -0
- package/app/assets/commerce/sass/bootstrap-assets/_images.scss +42 -0
- package/app/assets/commerce/sass/bootstrap-assets/_input-group.scss +193 -0
- package/app/assets/commerce/sass/bootstrap-assets/_jumbotron.scss +17 -0
- package/app/assets/commerce/sass/bootstrap-assets/_list-group.scss +149 -0
- package/app/assets/commerce/sass/bootstrap-assets/_media.scss +8 -0
- package/app/assets/commerce/sass/bootstrap-assets/_mixins.scss +47 -0
- package/app/assets/commerce/sass/bootstrap-assets/_modal.scss +229 -0
- package/app/assets/commerce/sass/bootstrap-assets/_nav.scss +119 -0
- package/app/assets/commerce/sass/bootstrap-assets/_navbar.scss +295 -0
- package/app/assets/commerce/sass/bootstrap-assets/_pagination.scss +73 -0
- package/app/assets/commerce/sass/bootstrap-assets/_popover.scss +171 -0
- package/app/assets/commerce/sass/bootstrap-assets/_print.scss +141 -0
- package/app/assets/commerce/sass/bootstrap-assets/_progress.scss +43 -0
- package/app/assets/commerce/sass/bootstrap-assets/_reboot.scss +483 -0
- package/app/assets/commerce/sass/bootstrap-assets/_root.scss +19 -0
- package/app/assets/commerce/sass/bootstrap-assets/_spinners.scss +55 -0
- package/app/assets/commerce/sass/bootstrap-assets/_tables.scss +185 -0
- package/app/assets/commerce/sass/bootstrap-assets/_toasts.scss +44 -0
- package/app/assets/commerce/sass/bootstrap-assets/_tooltip.scss +115 -0
- package/app/assets/commerce/sass/bootstrap-assets/_transitions.scss +20 -0
- package/app/assets/commerce/sass/bootstrap-assets/_type.scss +125 -0
- package/app/assets/commerce/sass/bootstrap-assets/_utilities.scss +17 -0
- package/app/assets/commerce/sass/bootstrap-assets/_variables.scss +1123 -0
- package/app/assets/commerce/sass/bootstrap-assets/mixins/_alert.scss +13 -0
- package/app/assets/commerce/sass/bootstrap-assets/mixins/_background-variant.scss +21 -0
- package/app/assets/commerce/sass/bootstrap-assets/mixins/_badge.scss +17 -0
- package/app/assets/commerce/sass/bootstrap-assets/mixins/_border-radius.scss +63 -0
- package/app/assets/commerce/sass/bootstrap-assets/mixins/_box-shadow.scss +20 -0
- package/app/assets/commerce/sass/bootstrap-assets/mixins/_breakpoints.scss +123 -0
- package/app/assets/commerce/sass/bootstrap-assets/mixins/_buttons.scss +107 -0
- package/app/assets/commerce/sass/bootstrap-assets/mixins/_caret.scss +62 -0
- package/app/assets/commerce/sass/bootstrap-assets/mixins/_clearfix.scss +7 -0
- package/app/assets/commerce/sass/bootstrap-assets/mixins/_deprecate.scss +10 -0
- package/app/assets/commerce/sass/bootstrap-assets/mixins/_float.scss +14 -0
- package/app/assets/commerce/sass/bootstrap-assets/mixins/_forms.scss +192 -0
- package/app/assets/commerce/sass/bootstrap-assets/mixins/_gradients.scss +45 -0
- package/app/assets/commerce/sass/bootstrap-assets/mixins/_grid-framework.scss +66 -0
- package/app/assets/commerce/sass/bootstrap-assets/mixins/_grid.scss +51 -0
- package/app/assets/commerce/sass/bootstrap-assets/mixins/_hover.scss +37 -0
- package/app/assets/commerce/sass/bootstrap-assets/mixins/_image.scss +36 -0
- package/app/assets/commerce/sass/bootstrap-assets/mixins/_list-group.scss +21 -0
- package/app/assets/commerce/sass/bootstrap-assets/mixins/_lists.scss +7 -0
- package/app/assets/commerce/sass/bootstrap-assets/mixins/_nav-divider.scss +10 -0
- package/app/assets/commerce/sass/bootstrap-assets/mixins/_pagination.scss +22 -0
- package/app/assets/commerce/sass/bootstrap-assets/mixins/_reset-text.scss +17 -0
- package/app/assets/commerce/sass/bootstrap-assets/mixins/_resize.scss +6 -0
- package/app/assets/commerce/sass/bootstrap-assets/mixins/_screen-reader.scss +33 -0
- package/app/assets/commerce/sass/bootstrap-assets/mixins/_size.scss +7 -0
- package/app/assets/commerce/sass/bootstrap-assets/mixins/_table-row.scss +39 -0
- package/app/assets/commerce/sass/bootstrap-assets/mixins/_text-emphasis.scss +16 -0
- package/app/assets/commerce/sass/bootstrap-assets/mixins/_text-hide.scss +11 -0
- package/app/assets/commerce/sass/bootstrap-assets/mixins/_text-truncate.scss +8 -0
- package/app/assets/commerce/sass/bootstrap-assets/mixins/_transition.scss +16 -0
- package/app/assets/commerce/sass/bootstrap-assets/mixins/_visibility.scss +8 -0
- package/app/assets/commerce/sass/bootstrap-assets/utilities/_align.scss +8 -0
- package/app/assets/commerce/sass/bootstrap-assets/utilities/_background.scss +19 -0
- package/app/assets/commerce/sass/bootstrap-assets/utilities/_borders.scss +75 -0
- package/app/assets/commerce/sass/bootstrap-assets/utilities/_clearfix.scss +3 -0
- package/app/assets/commerce/sass/bootstrap-assets/utilities/_display.scss +26 -0
- package/app/assets/commerce/sass/bootstrap-assets/utilities/_embed.scss +39 -0
- package/app/assets/commerce/sass/bootstrap-assets/utilities/_flex.scss +51 -0
- package/app/assets/commerce/sass/bootstrap-assets/utilities/_float.scss +11 -0
- package/app/assets/commerce/sass/bootstrap-assets/utilities/_overflow.scss +5 -0
- package/app/assets/commerce/sass/bootstrap-assets/utilities/_position.scss +32 -0
- package/app/assets/commerce/sass/bootstrap-assets/utilities/_screenreaders.scss +11 -0
- package/app/assets/commerce/sass/bootstrap-assets/utilities/_shadows.scss +6 -0
- package/app/assets/commerce/sass/bootstrap-assets/utilities/_sizing.scss +20 -0
- package/app/assets/commerce/sass/bootstrap-assets/utilities/_spacing.scss +73 -0
- package/app/assets/commerce/sass/bootstrap-assets/utilities/_stretched-link.scss +19 -0
- package/app/assets/commerce/sass/bootstrap-assets/utilities/_text.scss +72 -0
- package/app/assets/commerce/sass/bootstrap-assets/utilities/_visibility.scss +13 -0
- package/app/assets/commerce/sass/bootstrap-assets/vendor/_rfs.scss +204 -0
- package/app/assets/commerce/sass/bootstrap.scss +9 -0
- package/app/assets/commerce/sass/responsive.scss +114 -0
- package/app/assets/commerce/sass/ui-assets/components/_buttons.scss +23 -0
- package/app/assets/commerce/sass/ui-assets/components/_cards-item.scss +113 -0
- package/app/assets/commerce/sass/ui-assets/components/_elements.scss +72 -0
- package/app/assets/commerce/sass/ui-assets/components/_forms.scss +19 -0
- package/app/assets/commerce/sass/ui-assets/components/_items.scss +25 -0
- package/app/assets/commerce/sass/ui-assets/components/_lists.scss +90 -0
- package/app/assets/commerce/sass/ui-assets/components/_menu.scss +25 -0
- package/app/assets/commerce/sass/ui-assets/components/_plugin-styles.scss +1 -0
- package/app/assets/commerce/sass/ui-assets/helpers/_bg.scss +53 -0
- package/app/assets/commerce/sass/ui-assets/helpers/_helper-classes.scss +110 -0
- package/app/assets/commerce/sass/ui-assets/helpers/_mixins.scss +50 -0
- package/app/assets/commerce/sass/ui-assets/helpers/_typography.scss +44 -0
- package/app/assets/commerce/sass/ui-assets/pages/_page-account.scss +0 -0
- package/app/assets/commerce/sass/ui-assets/pages/_page-base.scss +10 -0
- package/app/assets/commerce/sass/ui-assets/pages/_page-detail.scss +30 -0
- package/app/assets/commerce/sass/ui-assets/pages/_page-home.scss +92 -0
- package/app/assets/commerce/sass/ui-assets/pages/_page-listing.scss +1 -0
- package/app/assets/commerce/sass/ui-assets/pages/_page-order.scss +9 -0
- package/app/assets/commerce/sass/ui-assets/sections/_footer.scss +26 -0
- package/app/assets/commerce/sass/ui-assets/sections/_header.scss +64 -0
- package/app/assets/commerce/sass/ui-assets/sections/_sidebar.scss +0 -0
- package/app/assets/commerce/sass/ui.scss +51 -0
- package/app/assets/embla/embla.min.js +1 -0
- package/app/assets/embla/script.js +7 -0
- package/app/assets/images/apachelogo.png +0 -0
- package/app/assets/images/backgraund-trend.jpg +0 -0
- package/app/assets/images/background10.jpg +0 -0
- package/app/assets/images/background2.jpg +0 -0
- package/app/assets/images/graphqllogo.png +0 -0
- package/app/assets/images/group1.svg +1 -0
- package/app/assets/images/grpclogo.png +0 -0
- package/app/assets/images/hashes.json +1 -0
- package/app/assets/images/image1.jpg +0 -0
- package/app/assets/images/image10.jpg +0 -0
- package/app/assets/images/image11.jpg +0 -0
- package/app/assets/images/image13.jpg +0 -0
- package/app/assets/images/image14.jpg +0 -0
- package/app/assets/images/image15.jpg +0 -0
- package/app/assets/images/image2.jpg +0 -0
- package/app/assets/images/image3.jpg +0 -0
- package/app/assets/images/image5.jpg +0 -0
- package/app/assets/images/image7.jpg +0 -0
- package/app/assets/images/image8.jpg +0 -0
- package/app/assets/images/image9.jpg +0 -0
- package/app/assets/images/jsonlogo.png +0 -0
- package/app/assets/images/logo5.png +0 -0
- package/app/assets/images/mbr.jpg +0 -0
- package/app/assets/images/mongodblogo.png +0 -0
- package/app/assets/images/mysqllogo.png +0 -0
- package/app/assets/images/neo4jlogo.png +0 -0
- package/app/assets/images/odatalogo.png +0 -0
- package/app/assets/images/openapilogo.png +0 -0
- package/app/assets/images/postgraphqllogo.png +0 -0
- package/app/assets/images/quadr.svg +42 -0
- package/app/assets/images/shop1.jpg +0 -0
- package/app/assets/images/shop2.jpg +0 -0
- package/app/assets/images/shop3.jpg +0 -0
- package/app/assets/images/shop4.jpg +0 -0
- package/app/assets/images/soaplogo.png +0 -0
- package/app/assets/images/sqlitelogo.png +0 -0
- package/app/assets/images/team1.jpg +0 -0
- package/app/assets/images/team2.jpg +0 -0
- package/app/assets/images/team3.jpg +0 -0
- package/app/assets/images/trend12.jpg +0 -0
- package/app/assets/images/trend13.jpg +0 -0
- package/app/assets/images/trend14.jpg +0 -0
- package/app/assets/images/trend15.jpg +0 -0
- package/app/assets/images/trend18.jpg +0 -0
- package/app/assets/images/triangle-blue-transp.svg +69 -0
- package/app/assets/images/triangle-purpl-transp.svg +92 -0
- package/app/assets/mobirise/css/mbr-additional.css +1678 -0
- package/app/assets/parallax/jarallax.css +15 -0
- package/app/assets/parallax/jarallax.js +45 -0
- package/app/assets/parallax/jarallax.min.js +7 -0
- package/app/assets/playervimeo/vimeo_player.js +39 -0
- package/app/assets/popper/popper.min.js +4 -0
- package/app/assets/smoothscroll/smooth-scroll.js +29 -0
- package/app/assets/styles/mobile.css +349 -0
- package/app/assets/styles/styles.css +26 -0
- package/app/assets/tether/tether.min.css +1 -0
- package/app/assets/tether/tether.min.js +1 -0
- package/app/assets/theme/css/style.css +934 -0
- package/app/assets/theme/js/script.js +54 -0
- package/app/assets/web/assets/jquery/jquery.min.js +2 -0
- package/app/assets/web/assets/mobirise-icons2/mobirise2.css +498 -0
- package/app/assets/web/assets/mobirise-icons2/mobirise2.eot +0 -0
- package/app/assets/web/assets/mobirise-icons2/mobirise2.svg +167 -0
- package/app/assets/web/assets/mobirise-icons2/mobirise2.ttf +0 -0
- package/app/assets/web/assets/mobirise-icons2/mobirise2.woff +0 -0
- package/app/assets/ytplayer/index.js +24 -0
- package/app/components/blocks/LeafletMap.vue +151 -0
- package/app/components/blocks/comments.vue +79 -0
- package/app/components/blocks/copyright.vue +43 -0
- package/app/components/blocks/events/about.vue +147 -0
- package/app/components/blocks/flag.vue +84 -0
- package/app/components/blocks/groups/about.vue +102 -0
- package/app/components/blocks/groups/feeds.vue +16 -0
- package/app/components/blocks/groups/lists.vue +11 -0
- package/app/components/blocks/groups/media.vue +28 -0
- package/app/components/blocks/groups/members.vue +9 -0
- package/app/components/blocks/groups/products.vue +9 -0
- package/app/components/blocks/groups/spaceLists.vue +9 -0
- package/app/components/blocks/reactions.vue +42 -0
- package/app/components/blocks/repost.vue +9 -0
- package/app/components/blocks/share.vue +25 -0
- package/app/components/blocks/stickers.vue +11 -0
- package/app/components/blocks/video.vue +44 -0
- package/app/components/features/account/addresses.vue +279 -0
- package/app/components/features/account/dashboard.vue +104 -0
- package/app/components/features/account/downloads.vue +146 -0
- package/app/components/features/account/reviews.vue +320 -0
- package/app/components/features/account/setting/accessibility.vue +57 -0
- package/app/components/features/account/setting/account.vue +133 -0
- package/app/components/features/account/setting/communications.vue +125 -0
- package/app/components/features/account/setting/language.vue +93 -0
- package/app/components/features/account/setting/payments.vue +130 -0
- package/app/components/features/account/setting/personalization.vue +152 -0
- package/app/components/features/account/setting/privacy.vue +90 -0
- package/app/components/features/account/setting/security.vue +84 -0
- package/app/components/features/account/settings.vue +255 -0
- package/app/components/features/addresses/add-address.vue +191 -0
- package/app/components/features/addresses/update-address.vue +320 -0
- package/app/components/features/birthdays.vue +140 -0
- package/app/components/features/event/yourEvents.vue +158 -0
- package/app/components/features/events.vue +107 -0
- package/app/components/features/feed/add-post.vue +45 -0
- package/app/components/features/feed/posts.vue +56 -0
- package/app/components/features/feed/relatedposts.vue +37 -0
- package/app/components/features/feed/update-post.vue +279 -0
- package/app/components/features/feeds.vue +148 -0
- package/app/components/features/friends.vue +131 -0
- package/app/components/features/hashtags.vue +101 -0
- package/app/components/features/media/video.vue +0 -0
- package/app/components/features/media.vue +143 -0
- package/app/components/features/members.vue +59 -0
- package/app/components/features/memories.vue +66 -0
- package/app/components/features/radio.vue +59 -0
- package/app/components/features/spaceSections/audioSpaces.vue +84 -0
- package/app/components/features/spaceSections/crud/add-space.vue +52 -0
- package/app/components/features/spaceSections/crud/update-space.vue +224 -0
- package/app/components/features/spaceSections/defaultSpaces.vue +85 -0
- package/app/components/features/spaceSections/imageSpaces.vue +84 -0
- package/app/components/features/spaceSections/textSpaces.vue +84 -0
- package/app/components/features/spaceSections/videoSpaces.vue +84 -0
- package/app/components/features/spaces.vue +127 -0
- package/app/components/features/vibeSections/add-live.vue +47 -0
- package/app/components/features/vibeSections/relatedshorts.vue +35 -0
- package/app/components/features/vibeSections/shorts.vue +207 -0
- package/app/components/features/vibeSections/update-short.vue +266 -0
- package/app/components/features/vibez.vue +221 -0
- package/app/components/menus/lowerbar.vue +37 -0
- package/app/components/related/memberList.vue +38 -0
- package/app/components/related/post.vue +119 -0
- package/app/components/related/radio.vue +36 -0
- package/app/components/related/relatedposts.vue +30 -0
- package/app/components/related/relatedshorts.vue +30 -0
- package/app/components/related/relatedspaces.vue +30 -0
- package/app/components/related/relatedusers.vue +34 -0
- package/app/components/related/short.vue +68 -0
- package/app/components/related/space.vue +47 -0
- package/app/components/related/tag.vue +21 -0
- package/app/composables/cache.ts +44 -0
- package/app/composables/charts/createChart.js +33 -0
- package/app/composables/charts/deleteChart.js +15 -0
- package/app/composables/charts/updateChart.js +15 -0
- package/app/composables/config.ts +20 -0
- package/app/composables/contacts/createContact.js +64 -0
- package/app/composables/contacts/deleteContact.js +15 -0
- package/app/composables/contacts/updateContact.js +15 -0
- package/app/composables/errors.ts +16 -0
- package/app/composables/metrics.ts +52 -0
- package/app/composables/posts/createPost.js +40 -0
- package/app/composables/posts/deletePost.js +15 -0
- package/app/composables/posts/updatePost.js +15 -0
- package/app/composables/posts/usePosts.ts +22 -0
- package/app/composables/providers/atproto.ts +75 -0
- package/app/composables/providers/mastodon.ts +45 -0
- package/app/composables/rateLimit.ts +41 -0
- package/app/composables/registry.ts +13 -0
- package/app/composables/retry.ts +40 -0
- package/app/composables/settings/useAccessibilitySettings.js +43 -0
- package/app/composables/shorts/createShort.js +33 -0
- package/app/composables/shorts/deleteShort.js +15 -0
- package/app/composables/shorts/updateShort.js +15 -0
- package/app/composables/social/getActivity.js +33 -0
- package/app/composables/social/getGroups.js +33 -0
- package/app/composables/spaces/createSpace.js +29 -0
- package/app/composables/spaces/deleteSpace.js +15 -0
- package/app/composables/spaces/updateSpace.js +15 -0
- package/app/composables/spaces/useSpaceRegistry.ts +49 -0
- package/app/composables/stations/createStation.js +33 -0
- package/app/composables/stations/deleteStation.js +15 -0
- package/app/composables/stations/updateStation.js +15 -0
- package/app/composables/swr.ts +22 -0
- package/app/composables/types/BlueSkyTypes.ts +108 -0
- package/app/composables/types.ts +28 -0
- package/app/composables/useSocial.ts +25 -0
- package/app/composables/utils.ts +99 -0
- package/app/layouts/spaces-audio.vue +9 -0
- package/app/layouts/spaces-dating.vue +9 -0
- package/app/layouts/spaces-forum.vue +9 -0
- package/app/layouts/spaces-video.vue +9 -0
- package/app/pages/connect/event/[...slug].vue +96 -0
- package/app/pages/connect/hashtag/[...slug].vue +110 -0
- package/app/pages/connect/post/[...slug].vue +232 -0
- package/app/pages/connect/space/[...slug].vue +170 -0
- package/app/pages/connect/vibe/[...id].vue +204 -0
- package/app/pages/connect/vibe/preview.vue +100 -0
- package/app/pages/connect/vibe/upload.vue +115 -0
- package/app/pages/profile/[...slug].vue +91 -0
- package/app/plugins/rocketchat-api.js +105 -0
- package/app/stores/index.ts +0 -0
- package/app/stores/reactions.ts +206 -0
- package/app/stores/useCommentsStore.js +20 -0
- package/nuxt.config.ts +11 -0
- package/package.json +23 -0
- package/tsconfig.json +14 -0
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<section data-bs-version="5.1" class="info1 cid-v5A0K07pfT" id="info1-bd" data-sortbtn="btn-primary">
|
|
4
|
+
<div class="mbr-overlay" style="opacity: 0.5; background-color: rgb(68, 121, 217);"></div>
|
|
5
|
+
<div class="align-center container">
|
|
6
|
+
<div class="row justify-content-center">
|
|
7
|
+
<div class="col-12 col-lg-8">
|
|
8
|
+
<h3 class="mbr-section-title mb-4 mbr-fonts-style display-1">
|
|
9
|
+
<strong> {{ spacePage?.name }}</strong>
|
|
10
|
+
</h3>
|
|
11
|
+
<p class="mbr-section-title mb-4 mbr-fonts-style display-7" v-dompurify-html="spacePage?.content"></p>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
</section>
|
|
16
|
+
|
|
17
|
+
<v-card variant="text">
|
|
18
|
+
<v-toolbar :style="`background-color: ${spacesPage?.color}; color: ${spacesPage?.colortext} !important`">
|
|
19
|
+
<v-toolbar-title>{{ spacesPage?.name }}</v-toolbar-title>
|
|
20
|
+
|
|
21
|
+
<v-tabs v-model="currentTab" fixed-tabs>
|
|
22
|
+
<v-tab v-for="(menu, index) in tabsList" :key="menu?.value ?? index" :value="menu?.value ?? menu">
|
|
23
|
+
<v-chip>{{ menu?.title || menu?.name || menu?.value }}</v-chip>
|
|
24
|
+
</v-tab>
|
|
25
|
+
|
|
26
|
+
<!--<v-menu v-if="tabsList?.length">
|
|
27
|
+
<template v-slot:activator="{ props }">
|
|
28
|
+
<v-btn class="align-self-center me-4" height="100%" rounded="0" variant="plain"
|
|
29
|
+
v-bind="props">
|
|
30
|
+
Filter
|
|
31
|
+
<v-icon icon="mdi-menu-down" end></v-icon>
|
|
32
|
+
</v-btn>
|
|
33
|
+
</template>
|
|
34
|
+
|
|
35
|
+
<v-list class="bg-grey-lighten-3">
|
|
36
|
+
<v-list-item v-for="(menu, index) in tabsList" :key="menu?.value ?? index"
|
|
37
|
+
:title="menu?.title || menu?.name || menu?.value" @click="selectTab(menu)">
|
|
38
|
+
</v-list-item>
|
|
39
|
+
</v-list>
|
|
40
|
+
</v-menu>-->
|
|
41
|
+
|
|
42
|
+
<v-tab :value="'create'">
|
|
43
|
+
<createspace />
|
|
44
|
+
</v-tab>
|
|
45
|
+
</v-tabs>
|
|
46
|
+
</v-toolbar>
|
|
47
|
+
|
|
48
|
+
<v-tabs-window v-model="currentTab">
|
|
49
|
+
<v-tabs-window-item v-for="(menu, index) in tabsList" :key="menu?.value ?? index"
|
|
50
|
+
:value="menu?.value ?? menu">
|
|
51
|
+
<component :is="contentComponents[index] || null" />
|
|
52
|
+
</v-tabs-window-item>
|
|
53
|
+
</v-tabs-window>
|
|
54
|
+
</v-card>
|
|
55
|
+
</div>
|
|
56
|
+
</template>
|
|
57
|
+
|
|
58
|
+
<script setup>
|
|
59
|
+
import {
|
|
60
|
+
ref,
|
|
61
|
+
computed,
|
|
62
|
+
watch,
|
|
63
|
+
defineAsyncComponent,
|
|
64
|
+
markRaw
|
|
65
|
+
} from 'vue'
|
|
66
|
+
import createspace from '~/components/features/spaceSections/crud/add-space.vue'
|
|
67
|
+
import { componentMap } from '~/types/componentMap'
|
|
68
|
+
|
|
69
|
+
const {
|
|
70
|
+
$directus,
|
|
71
|
+
$readItem,
|
|
72
|
+
$readItems
|
|
73
|
+
} = useNuxtApp()
|
|
74
|
+
|
|
75
|
+
// current selected tab value (matches menu.value)
|
|
76
|
+
const currentTab = ref(null);
|
|
77
|
+
|
|
78
|
+
const {
|
|
79
|
+
data: spacesPage
|
|
80
|
+
} = await useAsyncData('spacesPage', () => {
|
|
81
|
+
return $directus.request($readItem('pages', '99', {
|
|
82
|
+
fields: ['*', {
|
|
83
|
+
'*': ['*']
|
|
84
|
+
}]
|
|
85
|
+
}))
|
|
86
|
+
})
|
|
87
|
+
|
|
88
|
+
const {
|
|
89
|
+
data: spacesBar
|
|
90
|
+
} = await useAsyncData('spacesBar', () => {
|
|
91
|
+
return $directus.request($readItem('navigation', '79', {
|
|
92
|
+
fields: ['*', {
|
|
93
|
+
'*': ['*']
|
|
94
|
+
}]
|
|
95
|
+
}))
|
|
96
|
+
})
|
|
97
|
+
|
|
98
|
+
// Normalize menus to objects: support both string arrays and object arrays
|
|
99
|
+
const tabsList = computed(() => {
|
|
100
|
+
const raw = spacesBar?.value?.menus ?? []
|
|
101
|
+
return raw.map((m) => (typeof m === 'string' ? {
|
|
102
|
+
value: m,
|
|
103
|
+
title: m
|
|
104
|
+
} : m))
|
|
105
|
+
})
|
|
106
|
+
|
|
107
|
+
// Map the exported loaders to async components (preserve lazy loading)
|
|
108
|
+
// markRaw each component so Vue doesn't make the component object reactive
|
|
109
|
+
const contentComponents = componentMap.map((loader) => markRaw(defineAsyncComponent(loader)))
|
|
110
|
+
|
|
111
|
+
// initialize currentTab when menus arrive
|
|
112
|
+
watch(tabsList, (val) => {
|
|
113
|
+
if (val?.length && !currentTab.value) {
|
|
114
|
+
currentTab.value = val[0].value ?? val[0]
|
|
115
|
+
}
|
|
116
|
+
}, {
|
|
117
|
+
immediate: true
|
|
118
|
+
})
|
|
119
|
+
|
|
120
|
+
function selectTab(menu) {
|
|
121
|
+
currentTab.value = menu?.value ?? menu
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
useHead({
|
|
125
|
+
title: 'Spaces',
|
|
126
|
+
})
|
|
127
|
+
</script>
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<v-row justify="center">
|
|
3
|
+
<v-dialog v-model="dialog" :scrim="false" transition="dialog-bottom-transition">
|
|
4
|
+
<v-card class="b-1">
|
|
5
|
+
<v-card-title>
|
|
6
|
+
<h3>Create New Vibe</h3>
|
|
7
|
+
</v-card-title>
|
|
8
|
+
|
|
9
|
+
<v-card-text>
|
|
10
|
+
<div v-if="formError" class="error">{{ formError }}</div>
|
|
11
|
+
<div v-else-if="formSuccess" class="success">{{ formSuccess }}</div>
|
|
12
|
+
<form @submit.prevent="submitForm">
|
|
13
|
+
<DirectusFormElement v-for="field in shortFields" :key="field.field" :field="field" v-model="form[field.field]" />
|
|
14
|
+
<v-btn type="submit">Create</v-btn>
|
|
15
|
+
</form>
|
|
16
|
+
</v-card-text>
|
|
17
|
+
</v-card>
|
|
18
|
+
</v-dialog>
|
|
19
|
+
</v-row>
|
|
20
|
+
</template>
|
|
21
|
+
|
|
22
|
+
<script setup>
|
|
23
|
+
import { ref } from 'vue'
|
|
24
|
+
import DirectusFormElement from '#shared/app/components/ui/forms/DirectusFormElement.vue'
|
|
25
|
+
import { useDirectusForm } from '#shared/app/composables/globals/useDirectusForm'
|
|
26
|
+
|
|
27
|
+
const dialog = ref(false)
|
|
28
|
+
const { $directus, $readFieldsByCollection } = useNuxtApp()
|
|
29
|
+
|
|
30
|
+
const { data, error } = await useAsyncData('shorts', async () => {
|
|
31
|
+
return $directus.request($readFieldsByCollection('shorts'))
|
|
32
|
+
})
|
|
33
|
+
|
|
34
|
+
// guard against undefined/null data.value and empty arrays
|
|
35
|
+
if (error.value || data.value == null || (data.value?.length ?? 0) === 0) {
|
|
36
|
+
console.error(error)
|
|
37
|
+
throw createError({
|
|
38
|
+
statusCode: 404,
|
|
39
|
+
statusMessage: 'Vibe not found'
|
|
40
|
+
})
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const shortFields = data
|
|
44
|
+
|
|
45
|
+
// use composable for form handling (validation, submit, provide context)
|
|
46
|
+
const { form, formError, formSuccess, submitForm } = useDirectusForm('shorts', shortFields, { clearOnSuccess: true, closeDialogRef: dialog })
|
|
47
|
+
</script>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<v-sheet class="mx-auto row align-items-stretch items-row">
|
|
4
|
+
<v-toolbar title="Vibez within the community" color="transparent">
|
|
5
|
+
<NuxtLink to="/social/vibez/">All Vibez</NuxtLink>
|
|
6
|
+
</v-toolbar>
|
|
7
|
+
<v-slide-group v-model="model" class="pa-4" selected-class="bg-success" show-arrows>
|
|
8
|
+
<v-slide-group-item v-slot="{ toggle, selectedClass }" v-for="(result, index) in short" :key="index">
|
|
9
|
+
<shorts style="margin: 10px;" :short="result" :class="['ma-4', selectedClass]" @click="toggle" />
|
|
10
|
+
</v-slide-group-item>
|
|
11
|
+
</v-slide-group>
|
|
12
|
+
</v-sheet>
|
|
13
|
+
</div>
|
|
14
|
+
</template>
|
|
15
|
+
|
|
16
|
+
<script setup>
|
|
17
|
+
import {
|
|
18
|
+
ref,
|
|
19
|
+
} from 'vue';
|
|
20
|
+
import shorts from './shorts.vue'
|
|
21
|
+
|
|
22
|
+
const model = ref(null);
|
|
23
|
+
const {
|
|
24
|
+
$directus,
|
|
25
|
+
$readItems
|
|
26
|
+
} = useNuxtApp()
|
|
27
|
+
|
|
28
|
+
const {
|
|
29
|
+
data: short
|
|
30
|
+
} = await useAsyncData('short', () => {
|
|
31
|
+
return $directus.request($readItems('shorts', {
|
|
32
|
+
fields: ['*', { '*': ['*'] }]
|
|
33
|
+
}))
|
|
34
|
+
})
|
|
35
|
+
</script>
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<v-card class="mb-4" elevation="2">
|
|
3
|
+
<v-card-title class="d-flex align-center">
|
|
4
|
+
<v-avatar size="40" class="mr-3">
|
|
5
|
+
<v-img :src="short?.creator_avatar || '/default-avatar.png'" :alt="short?.creator" />
|
|
6
|
+
</v-avatar>
|
|
7
|
+
<div>
|
|
8
|
+
<div class="font-weight-bold">{{ short?.creator || 'Anonymous' }}</div>
|
|
9
|
+
<div class="text-caption text-grey">{{ formatDate(short?.date_created) }}</div>
|
|
10
|
+
</div>
|
|
11
|
+
<v-spacer />
|
|
12
|
+
<v-menu>
|
|
13
|
+
<template v-slot:activator="{ props }">
|
|
14
|
+
<v-btn icon="mdi-dots-vertical" variant="text" v-bind="props" />
|
|
15
|
+
</template>
|
|
16
|
+
<v-list>
|
|
17
|
+
<v-list-item @click="shareVibe">
|
|
18
|
+
<v-list-item-title>Share Vibe</v-list-item-title>
|
|
19
|
+
</v-list-item>
|
|
20
|
+
<v-list-item @click="reportVibe">
|
|
21
|
+
<v-list-item-title>Report</v-list-item-title>
|
|
22
|
+
</v-list-item>
|
|
23
|
+
</v-list>
|
|
24
|
+
</v-menu>
|
|
25
|
+
</v-card-title>
|
|
26
|
+
|
|
27
|
+
<video
|
|
28
|
+
ref="videoRef"
|
|
29
|
+
class="vibe-video"
|
|
30
|
+
:src="`${$directus.url}/assets/${short?.video?.filename_disk}`"
|
|
31
|
+
controls
|
|
32
|
+
preload="metadata"
|
|
33
|
+
@click="togglePlay"
|
|
34
|
+
/>
|
|
35
|
+
|
|
36
|
+
<v-card-text>
|
|
37
|
+
<h4 v-if="short?.name" class="mb-2">{{ short.name }}</h4>
|
|
38
|
+
<p v-if="short?.description">{{ short.description }}</p>
|
|
39
|
+
|
|
40
|
+
<div v-if="hashtags.length" class="mt-2">
|
|
41
|
+
<v-chip
|
|
42
|
+
v-for="tag in hashtags"
|
|
43
|
+
:key="tag"
|
|
44
|
+
size="small"
|
|
45
|
+
color="primary"
|
|
46
|
+
variant="outlined"
|
|
47
|
+
class="mr-1 mb-1"
|
|
48
|
+
@click="$emit('hashtag-click', tag)"
|
|
49
|
+
>
|
|
50
|
+
#{{ tag }}
|
|
51
|
+
</v-chip>
|
|
52
|
+
</div>
|
|
53
|
+
</v-card-text>
|
|
54
|
+
|
|
55
|
+
<v-card-actions>
|
|
56
|
+
<v-btn icon="mdi-heart" variant="text" @click="toggleLike" :color="isLiked ? 'red' : 'grey'" />
|
|
57
|
+
<span class="text-caption">{{ short?.likes_count || 0 }}</span>
|
|
58
|
+
|
|
59
|
+
<v-btn icon="mdi-comment" variant="text" @click="toggleComments" />
|
|
60
|
+
<span class="text-caption">{{ short?.comments_count || 0 }}</span>
|
|
61
|
+
|
|
62
|
+
<v-btn icon="fas:fa:fa share-nodes" variant="text" @click="shareVibe" />
|
|
63
|
+
<span class="text-caption">{{ short?.shares_count || 0 }}</span>
|
|
64
|
+
|
|
65
|
+
<v-spacer />
|
|
66
|
+
<v-btn :to="`/social/vibe/${short?.id}`" variant="text" size="small">View Vibe</v-btn>
|
|
67
|
+
</v-card-actions>
|
|
68
|
+
|
|
69
|
+
<!-- Comments Section -->
|
|
70
|
+
<v-expand-transition>
|
|
71
|
+
<div v-show="showComments">
|
|
72
|
+
<v-divider />
|
|
73
|
+
<v-card-text>
|
|
74
|
+
<v-text-field
|
|
75
|
+
v-model="newComment"
|
|
76
|
+
label="Add a comment..."
|
|
77
|
+
variant="outlined"
|
|
78
|
+
density="compact"
|
|
79
|
+
append-inner-icon="mdi-send"
|
|
80
|
+
@click:append-inner="addComment"
|
|
81
|
+
@keyup.enter="addComment"
|
|
82
|
+
/>
|
|
83
|
+
|
|
84
|
+
<div v-for="comment in vibeComments" :key="comment.id" class="mb-2">
|
|
85
|
+
<div class="d-flex align-start">
|
|
86
|
+
<v-avatar size="32" class="mr-2">
|
|
87
|
+
<v-img :src="comment.user_avatar || '/default-avatar.png'" />
|
|
88
|
+
</v-avatar>
|
|
89
|
+
<div>
|
|
90
|
+
<div class="font-weight-bold text-caption">{{ comment.username }}</div>
|
|
91
|
+
<div class="text-body-2">{{ comment.content }}</div>
|
|
92
|
+
<div class="text-caption text-grey">{{ formatDate(comment.date_created) }}</div>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
</v-card-text>
|
|
97
|
+
</div>
|
|
98
|
+
</v-expand-transition>
|
|
99
|
+
</v-card>
|
|
100
|
+
</template>
|
|
101
|
+
|
|
102
|
+
<script setup>
|
|
103
|
+
import { ref, computed, onMounted, onUnmounted } from 'vue'
|
|
104
|
+
|
|
105
|
+
const props = defineProps({
|
|
106
|
+
short: {
|
|
107
|
+
type: Object,
|
|
108
|
+
required: true,
|
|
109
|
+
},
|
|
110
|
+
})
|
|
111
|
+
|
|
112
|
+
const emit = defineEmits(['hashtag-click', 'comment-click', 'share'])
|
|
113
|
+
|
|
114
|
+
const { short } = props
|
|
115
|
+
const videoRef = ref(null)
|
|
116
|
+
const isLiked = ref(false)
|
|
117
|
+
const showComments = ref(false)
|
|
118
|
+
const newComment = ref('')
|
|
119
|
+
const vibeComments = ref([])
|
|
120
|
+
|
|
121
|
+
const hashtags = computed(() => {
|
|
122
|
+
if (!short?.description) return []
|
|
123
|
+
const matches = short.description.match(/#(\w+)/g)
|
|
124
|
+
return matches ? matches.map(tag => tag.slice(1)) : []
|
|
125
|
+
})
|
|
126
|
+
|
|
127
|
+
const formatDate = (dateString) => {
|
|
128
|
+
if (!dateString) return 'Unknown date'
|
|
129
|
+
return new Date(dateString).toLocaleDateString('en-US', {
|
|
130
|
+
year: 'numeric',
|
|
131
|
+
month: 'short',
|
|
132
|
+
day: 'numeric',
|
|
133
|
+
hour: '2-digit',
|
|
134
|
+
minute: '2-digit'
|
|
135
|
+
})
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
const togglePlay = () => {
|
|
139
|
+
if (videoRef.value) {
|
|
140
|
+
if (videoRef.value.paused) {
|
|
141
|
+
videoRef.value.play()
|
|
142
|
+
} else {
|
|
143
|
+
videoRef.value.pause()
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
const toggleLike = async () => {
|
|
149
|
+
isLiked.value = !isLiked.value
|
|
150
|
+
// TODO: Implement like functionality with Directus
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
const toggleComments = () => {
|
|
154
|
+
showComments.value = !showComments.value
|
|
155
|
+
if (showComments.value && vibeComments.value.length === 0) {
|
|
156
|
+
loadComments()
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
const addComment = async () => {
|
|
161
|
+
if (!newComment.value.trim()) return
|
|
162
|
+
|
|
163
|
+
// TODO: Implement comment creation with Directus
|
|
164
|
+
const comment = {
|
|
165
|
+
id: Date.now(),
|
|
166
|
+
username: 'Current User',
|
|
167
|
+
content: newComment.value,
|
|
168
|
+
date_created: new Date().toISOString()
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
vibeComments.value.unshift(comment)
|
|
172
|
+
newComment.value = ''
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
const loadComments = async () => {
|
|
176
|
+
// TODO: Load comments from Directus
|
|
177
|
+
vibeComments.value = [
|
|
178
|
+
{
|
|
179
|
+
id: 1,
|
|
180
|
+
username: 'User1',
|
|
181
|
+
content: 'Great vibe!',
|
|
182
|
+
date_created: new Date().toISOString()
|
|
183
|
+
}
|
|
184
|
+
]
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
const shareVibe = () => {
|
|
188
|
+
emit('share', short)
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
const reportVibe = () => {
|
|
192
|
+
console.log('Reporting vibe:', short.id)
|
|
193
|
+
}
|
|
194
|
+
</script>
|
|
195
|
+
|
|
196
|
+
<style scoped>
|
|
197
|
+
.vibe-video {
|
|
198
|
+
width: 100%;
|
|
199
|
+
max-height: 400px;
|
|
200
|
+
object-fit: cover;
|
|
201
|
+
cursor: pointer;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.vibe-video:hover {
|
|
205
|
+
opacity: 0.9;
|
|
206
|
+
}
|
|
207
|
+
</style>
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<v-dialog max-width="500">
|
|
4
|
+
<template v-slot:activator="{ props: activatorProps }">
|
|
5
|
+
<v-btn color="primary" v-bind="activatorProps" size="medium" variant="text" class="shortUpdateBtn"
|
|
6
|
+
text="Update" title="Update"></v-btn>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<template v-slot:default="{ isActive }">
|
|
10
|
+
<v-row justify="center">
|
|
11
|
+
<v-card>
|
|
12
|
+
<form @submit.prevent="handleSubmit">
|
|
13
|
+
<v-toolbar dark color="primary">
|
|
14
|
+
<v-btn icon dark @click="dialog = false">
|
|
15
|
+
<v-icon icon="fas:fa fa-circle-xmark"></v-icon>
|
|
16
|
+
</v-btn>
|
|
17
|
+
<v-card-title>
|
|
18
|
+
<span class="text-h6">Update Short</span>
|
|
19
|
+
</v-card-title>
|
|
20
|
+
</v-toolbar>
|
|
21
|
+
<v-card-text>
|
|
22
|
+
<v-container>
|
|
23
|
+
<v-row>
|
|
24
|
+
<v-col cols="12">
|
|
25
|
+
<v-text-field v-model="shortData.name" id="shortName" label="Short Name*"
|
|
26
|
+
required />
|
|
27
|
+
</v-col>
|
|
28
|
+
<v-col cols="6">
|
|
29
|
+
<v-select v-model="shortData.type" label="What type of short is this?"
|
|
30
|
+
:items="['Default', 'Live', 'Eats']" />
|
|
31
|
+
</v-col>
|
|
32
|
+
<v-col cols="6">
|
|
33
|
+
<v-select v-model="shortData.status"
|
|
34
|
+
label="Is this short public or private?"
|
|
35
|
+
:items="['Published', 'Private', 'Draft']" />
|
|
36
|
+
</v-col>
|
|
37
|
+
<v-col cols="6">
|
|
38
|
+
<v-select v-model="shortData.age_requirement"
|
|
39
|
+
label="What is the Age Requirement?"
|
|
40
|
+
:items="['Everyone', '18+', '16+']" />
|
|
41
|
+
</v-col>
|
|
42
|
+
<v-col cols="12">
|
|
43
|
+
<v-textarea v-model="shortData.description" label="Description"
|
|
44
|
+
id="shortDescription" />
|
|
45
|
+
</v-col>
|
|
46
|
+
<v-col cols="6">
|
|
47
|
+
<v-file-input @change="handleVideoUpload" clearable density="compact"
|
|
48
|
+
prepend-icon="fas:fa fa-video" accept="video/*" label="Video File"
|
|
49
|
+
variant="solo-inverted" />
|
|
50
|
+
</v-col>
|
|
51
|
+
<v-col cols="6">
|
|
52
|
+
<v-file-input @change="handleThumbnailUpload" clearable density="compact"
|
|
53
|
+
prepend-icon="fas:fa fa-image" accept="image/*" label="Image for Video"
|
|
54
|
+
variant="solo-inverted" />
|
|
55
|
+
</v-col>
|
|
56
|
+
</v-row>
|
|
57
|
+
</v-container>
|
|
58
|
+
<small>*indicates required field</small>
|
|
59
|
+
</v-card-text>
|
|
60
|
+
<v-card-actions>
|
|
61
|
+
<v-spacer></v-spacer>
|
|
62
|
+
<v-btn color="blue-darken-1" variant="text" @click="dialog = false">
|
|
63
|
+
Close
|
|
64
|
+
</v-btn>
|
|
65
|
+
<v-btn color="blue-darken-1" variant="text" type="submit">
|
|
66
|
+
Update Short
|
|
67
|
+
</v-btn>
|
|
68
|
+
</v-card-actions>
|
|
69
|
+
</form>
|
|
70
|
+
</v-card>
|
|
71
|
+
</v-row>
|
|
72
|
+
</template>
|
|
73
|
+
</v-dialog>
|
|
74
|
+
</div>
|
|
75
|
+
</template>
|
|
76
|
+
|
|
77
|
+
<script setup>
|
|
78
|
+
import {
|
|
79
|
+
ref
|
|
80
|
+
} from 'vue';
|
|
81
|
+
import {
|
|
82
|
+
readItem,
|
|
83
|
+
updateItem
|
|
84
|
+
} from '@meeovi/directus-client'; // Add this import at the top
|
|
85
|
+
import {
|
|
86
|
+
useRouter
|
|
87
|
+
} from 'vue-router';
|
|
88
|
+
import uploadFiles from '~//composables/uploadFiles';
|
|
89
|
+
import updateShort from '../../composables/shorts/updateShort';
|
|
90
|
+
|
|
91
|
+
// Make sure your props are properly defined
|
|
92
|
+
// Update props to include spaces_id
|
|
93
|
+
const props = defineProps({
|
|
94
|
+
spaces_id: {
|
|
95
|
+
type: String,
|
|
96
|
+
required: true
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
const route = useRoute();
|
|
101
|
+
|
|
102
|
+
const id = route.params.id;
|
|
103
|
+
|
|
104
|
+
const shortData = ref({
|
|
105
|
+
name: '',
|
|
106
|
+
description: '',
|
|
107
|
+
type: '',
|
|
108
|
+
status: '',
|
|
109
|
+
duration: '',
|
|
110
|
+
video_url: '',
|
|
111
|
+
age_requirement: '',
|
|
112
|
+
video: '',
|
|
113
|
+
thumbnail: null,
|
|
114
|
+
host: userDisplayName,
|
|
115
|
+
spaces: [{
|
|
116
|
+
spaces_id: {
|
|
117
|
+
id: id
|
|
118
|
+
}
|
|
119
|
+
}], // Initialize with the spaces_id from props
|
|
120
|
+
})
|
|
121
|
+
|
|
122
|
+
const dialog = ref(false);
|
|
123
|
+
const location = ref('bottom');
|
|
124
|
+
const loading = ref(false);
|
|
125
|
+
|
|
126
|
+
const imageFile = ref(null);
|
|
127
|
+
const videoFile = ref(null);
|
|
128
|
+
|
|
129
|
+
// Function to fetch existing space data
|
|
130
|
+
const fetchShortData = async () => {
|
|
131
|
+
try {
|
|
132
|
+
const {
|
|
133
|
+
$directus,
|
|
134
|
+
$readItem
|
|
135
|
+
} = useNuxtApp();
|
|
136
|
+
const shortId = route.params.id; // Assuming you're passing the ID in the route
|
|
137
|
+
const response = await $directus.request(readItem('shorts', shortId));
|
|
138
|
+
|
|
139
|
+
// Populate the form with existing data
|
|
140
|
+
shortData.value = {
|
|
141
|
+
id: response.id,
|
|
142
|
+
name: response.name,
|
|
143
|
+
type: response.type,
|
|
144
|
+
status: response.status,
|
|
145
|
+
description: response.description,
|
|
146
|
+
video: response.video,
|
|
147
|
+
duration: response.duration,
|
|
148
|
+
video_url: response.video_url,
|
|
149
|
+
age_requirement: response.age_requirement,
|
|
150
|
+
thumbnail: response.thumbnail,
|
|
151
|
+
};
|
|
152
|
+
} catch (error) {
|
|
153
|
+
console.error('Error fetching short:', error);
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
// Load existing data when component mounts
|
|
158
|
+
onMounted(() => {
|
|
159
|
+
if (route.params.id) {
|
|
160
|
+
fetchShortData();
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
const getVideoDuration = (file) => {
|
|
165
|
+
return new Promise((resolve, reject) => {
|
|
166
|
+
const video = document.createElement('video');
|
|
167
|
+
video.preload = 'metadata';
|
|
168
|
+
|
|
169
|
+
video.onloadedmetadata = function () {
|
|
170
|
+
window.URL.revokeObjectURL(video.src);
|
|
171
|
+
resolve(video.duration);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
video.onerror = function () {
|
|
175
|
+
reject("Invalid video. Please select a valid video file.");
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
video.src = URL.createObjectURL(file);
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
// Emit event for parent component updates
|
|
184
|
+
const emit = defineEmits(['short-updated']);
|
|
185
|
+
|
|
186
|
+
const handleThumbnailUpload = (event) => {
|
|
187
|
+
imageFile.value = event.target.files[0];
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
const handleVideoUpload = async (event) => {
|
|
191
|
+
videoFile.value = event.target.files[0];
|
|
192
|
+
if (videoFile.value) {
|
|
193
|
+
try {
|
|
194
|
+
const duration = await getVideoDuration(videoFile.value);
|
|
195
|
+
shortData.value.duration = Math.round(duration);
|
|
196
|
+
console.log('Video duration:', shortData.value.duration);
|
|
197
|
+
} catch (error) {
|
|
198
|
+
console.error('Error getting video duration:', error);
|
|
199
|
+
alert(error);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
const handleSubmit = async () => {
|
|
205
|
+
try {
|
|
206
|
+
loading.value = true;
|
|
207
|
+
const {
|
|
208
|
+
$directus
|
|
209
|
+
} = useNuxtApp();
|
|
210
|
+
|
|
211
|
+
let uploadedFiles = {};
|
|
212
|
+
let videoDuration = shortData.value.duration; // Keep the existing duration as fallback
|
|
213
|
+
|
|
214
|
+
if (videoFile.value || imageFile.value) {
|
|
215
|
+
uploadedFiles = await uploadFiles({
|
|
216
|
+
videoFile: videoFile.value,
|
|
217
|
+
imageFile: imageFile.value
|
|
218
|
+
});
|
|
219
|
+
|
|
220
|
+
// Calculate video duration if a new video file is uploaded
|
|
221
|
+
if (videoFile.value) {
|
|
222
|
+
try {
|
|
223
|
+
const duration = await getVideoDuration(videoFile.value);
|
|
224
|
+
videoDuration = Math.round(duration);
|
|
225
|
+
console.log('New video duration:', videoDuration);
|
|
226
|
+
} catch (error) {
|
|
227
|
+
console.error('Error getting video duration:', error);
|
|
228
|
+
// Don't throw here, we'll use the existing duration
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
// Update the short using Directus SDK
|
|
234
|
+
const updatedShort = await $directus.request(
|
|
235
|
+
updateItem('shorts', route.params.id, {
|
|
236
|
+
name: shortData.value.name,
|
|
237
|
+
type: shortData.value.type,
|
|
238
|
+
status: shortData.value.status,
|
|
239
|
+
description: shortData.value.description,
|
|
240
|
+
video: uploadedFiles.videoId || shortData.value.video,
|
|
241
|
+
duration: videoDuration, // Use the calculated duration or existing one
|
|
242
|
+
video_url: shortData.value.video_url,
|
|
243
|
+
age_requirement: shortData.value.age_requirement,
|
|
244
|
+
thumbnail: uploadedFiles.imageId || shortData.value.thumbnail,
|
|
245
|
+
})
|
|
246
|
+
);
|
|
247
|
+
|
|
248
|
+
if (updatedShort) {
|
|
249
|
+
await fetchShortData(); // Refresh the data
|
|
250
|
+
alert('Short updated successfully');
|
|
251
|
+
dialog.value = false; // Close the dialog
|
|
252
|
+
window.location.reload(); // Refresh the page
|
|
253
|
+
}
|
|
254
|
+
} catch (error) {
|
|
255
|
+
console.error('Error updating short:', error);
|
|
256
|
+
alert('Error updating short: ' + error.message);
|
|
257
|
+
} finally {
|
|
258
|
+
loading.value = false;
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
// Add watch to update shorts_id if props change
|
|
263
|
+
watch(() => props.spaces_id, (newSpaceId) => {
|
|
264
|
+
shortData.value.spaces_id = newSpaceId;
|
|
265
|
+
});
|
|
266
|
+
</script>
|