@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,47 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<v-card class="mx-auto" max-width="400" height="550">
|
|
4
|
+
<img v-if="space?.image?.filename_disk" class="align-end text-white" height="200"
|
|
5
|
+
:src="`${$directus.url}assets/${space?.image?.filename_disk}`" :alt="space?.name" />
|
|
6
|
+
|
|
7
|
+
<img class="align-end text-white" height="200" v-else src="assets/images/background8.jpg" :alt="space?.name" />
|
|
8
|
+
|
|
9
|
+
<v-card-title>{{ space?.name }}</v-card-title>
|
|
10
|
+
|
|
11
|
+
<v-card-subtitle class="pt-4">
|
|
12
|
+
Created: {{ new Date(space?.date_created).toLocaleDateString() }}
|
|
13
|
+
</v-card-subtitle>
|
|
14
|
+
|
|
15
|
+
<v-card-text>
|
|
16
|
+
<div v-dompurify-html="space?.description"></div>
|
|
17
|
+
</v-card-text>
|
|
18
|
+
|
|
19
|
+
<v-card-actions>
|
|
20
|
+
<share style="position: relative; top: 0px;" />
|
|
21
|
+
|
|
22
|
+
<v-btn color="orange" text="Explore" :href="`/space/${space?.slug}`"></v-btn>
|
|
23
|
+
</v-card-actions>
|
|
24
|
+
</v-card>
|
|
25
|
+
</div>
|
|
26
|
+
</template>
|
|
27
|
+
|
|
28
|
+
<script setup>
|
|
29
|
+
import {
|
|
30
|
+
ref
|
|
31
|
+
} from 'vue'
|
|
32
|
+
import share from '../blocks/share.vue'
|
|
33
|
+
const {
|
|
34
|
+
$directus
|
|
35
|
+
} = useNuxtApp()
|
|
36
|
+
|
|
37
|
+
const model = ref(null)
|
|
38
|
+
const props = defineProps({
|
|
39
|
+
space: {
|
|
40
|
+
type: Object,
|
|
41
|
+
required: true,
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
const {
|
|
45
|
+
space
|
|
46
|
+
} = props;
|
|
47
|
+
</script>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div class="text-center">
|
|
4
|
+
<v-chip class="ma-2" label :to="`/hashtag/${tag?.slug}`">
|
|
5
|
+
{{ tag?.name }}
|
|
6
|
+
</v-chip>
|
|
7
|
+
</div>
|
|
8
|
+
</div>
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<script setup>
|
|
12
|
+
const props = defineProps({
|
|
13
|
+
tag: {
|
|
14
|
+
type: Object,
|
|
15
|
+
required: true,
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
const {
|
|
19
|
+
tag
|
|
20
|
+
} = props;
|
|
21
|
+
</script>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export interface CacheEntry<T> {
|
|
2
|
+
value: T
|
|
3
|
+
expiresAt: number
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export interface SocialCache {
|
|
7
|
+
store: any
|
|
8
|
+
get<T>(key: string): T | null
|
|
9
|
+
set<T>(key: string, value: T, ttlMs: number): void
|
|
10
|
+
delete(key: string): void
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
let cache: SocialCache = {
|
|
14
|
+
store: new Map<string, CacheEntry<any>>(),
|
|
15
|
+
|
|
16
|
+
get<T>(key: string): T | null {
|
|
17
|
+
const entry = this.store.get(key)
|
|
18
|
+
if (!entry) return null
|
|
19
|
+
if (Date.now() > entry.expiresAt) {
|
|
20
|
+
this.store.delete(key)
|
|
21
|
+
return null
|
|
22
|
+
}
|
|
23
|
+
return entry.value
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
set<T>(key: string, value: T, ttlMs: number) {
|
|
27
|
+
this.store.set(key, {
|
|
28
|
+
value,
|
|
29
|
+
expiresAt: Date.now() + ttlMs
|
|
30
|
+
})
|
|
31
|
+
},
|
|
32
|
+
|
|
33
|
+
delete(key: string) {
|
|
34
|
+
this.store.delete(key)
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function setSocialCache(customCache: SocialCache) {
|
|
39
|
+
cache = customCache
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function getSocialCache() {
|
|
43
|
+
return cache
|
|
44
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// composables/createPost.js
|
|
2
|
+
import { createItem } from '@directus/sdk';
|
|
3
|
+
|
|
4
|
+
export default async function createPost(chartData) {
|
|
5
|
+
const route = useRoute();
|
|
6
|
+
|
|
7
|
+
const id = route.params.id;
|
|
8
|
+
const { $directus } = useNuxtApp();
|
|
9
|
+
|
|
10
|
+
try {
|
|
11
|
+
const chart = await $directus.request(createItem('musicchart', [
|
|
12
|
+
{
|
|
13
|
+
name: chartData.name,
|
|
14
|
+
description: chartData.description,
|
|
15
|
+
status: chartData.status,
|
|
16
|
+
type: chartData.type,
|
|
17
|
+
image: chartData.image,
|
|
18
|
+
media: chartData.media,
|
|
19
|
+
video: chartData.video,
|
|
20
|
+
document: chartData.document,
|
|
21
|
+
color: chartData.color,
|
|
22
|
+
coverFile: null,
|
|
23
|
+
avatarFile: null,
|
|
24
|
+
creator: chartData.creator,
|
|
25
|
+
}
|
|
26
|
+
]));
|
|
27
|
+
return chart;
|
|
28
|
+
} catch (error) {
|
|
29
|
+
console.error('Error creating chart:', error);
|
|
30
|
+
throw error;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// composables/deleteChart.js
|
|
2
|
+
import { deleteItem } from '@directus/sdk';
|
|
3
|
+
|
|
4
|
+
export default async function deleteChart(chartId) {
|
|
5
|
+
const { $directus } = useNuxtApp();
|
|
6
|
+
|
|
7
|
+
try {
|
|
8
|
+
$directus.request(deleteItem('musicchart', chartId));
|
|
9
|
+
console.log('Chart deleted successfully');
|
|
10
|
+
} catch (error) {
|
|
11
|
+
console.error('Error deleting chart:', error);
|
|
12
|
+
throw error;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// composables/updateChart.js
|
|
2
|
+
import { updateItem } from '@directus/sdk';
|
|
3
|
+
|
|
4
|
+
export default async function updateChart(chartId, chartData) {
|
|
5
|
+
const { $directus } = useNuxtApp();
|
|
6
|
+
|
|
7
|
+
try {
|
|
8
|
+
const chart = await $directus.request(updateItem('musicchart', chartId));
|
|
9
|
+
return chart;
|
|
10
|
+
} catch (error) {
|
|
11
|
+
console.error('Error updating chart:', error);
|
|
12
|
+
throw error;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface SocialConfig {
|
|
2
|
+
provider: string
|
|
3
|
+
baseUrl?: string
|
|
4
|
+
apiKey?: string
|
|
5
|
+
[key: string]: any
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
let config: SocialConfig = {
|
|
9
|
+
provider: 'atproto',
|
|
10
|
+
baseUrl: '',
|
|
11
|
+
apiKey: ''
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export function setSocialConfig(newConfig: Partial<SocialConfig>) {
|
|
15
|
+
config = { ...config, ...newConfig }
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export function getSocialConfig(): SocialConfig {
|
|
19
|
+
return config
|
|
20
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// composables/createContact.js
|
|
2
|
+
import { createItem } from '@directus/sdk';
|
|
3
|
+
|
|
4
|
+
export default async function createContact(contactData) {
|
|
5
|
+
const route = useRoute();
|
|
6
|
+
|
|
7
|
+
const id = route.params.id;
|
|
8
|
+
const { $directus } = useNuxtApp();
|
|
9
|
+
|
|
10
|
+
try {
|
|
11
|
+
const contact = await $directus.request(createItem('contacts', [
|
|
12
|
+
{
|
|
13
|
+
first_name: contactData.first_name,
|
|
14
|
+
last_name: contactData.last_name,
|
|
15
|
+
company: contactData.company,
|
|
16
|
+
department: contactData.department,
|
|
17
|
+
job_title: contactData.job_title,
|
|
18
|
+
email: contactData.email,
|
|
19
|
+
phone: contactData.phone,
|
|
20
|
+
street: contactData.street,
|
|
21
|
+
postcode: contactData.postcode,
|
|
22
|
+
address_two: contactData.address_two,
|
|
23
|
+
po_box: contactData.po_box,
|
|
24
|
+
city: contactData.city,
|
|
25
|
+
state: contactData.state,
|
|
26
|
+
country: contactData.country,
|
|
27
|
+
label: contactData.label,
|
|
28
|
+
birthday: contactData.birthday,
|
|
29
|
+
notes: contactData.notes,
|
|
30
|
+
website: contactData.website,
|
|
31
|
+
related_person: contactData.related_person,
|
|
32
|
+
middle_name: contactData.middle_name,
|
|
33
|
+
prefix: contactData.prefix,
|
|
34
|
+
suffix: contactData.suffix,
|
|
35
|
+
nickname: contactData.nickname,
|
|
36
|
+
file_as: contactData.file_as,
|
|
37
|
+
phonetic_first: contactData.phonetic_first,
|
|
38
|
+
phonetic_middle: contactData.phonetic_middle,
|
|
39
|
+
phonetic_last: contactData.phonetic_last,
|
|
40
|
+
favorite: contactData.favorite,
|
|
41
|
+
image: contactData.image,
|
|
42
|
+
media: contactData.media,
|
|
43
|
+
audio: contactData.audio,
|
|
44
|
+
video: contactData.video,
|
|
45
|
+
document: contactData.document,
|
|
46
|
+
coverFile: null,
|
|
47
|
+
avatarFile: null,
|
|
48
|
+
username: contactData.username,
|
|
49
|
+
spaces: [
|
|
50
|
+
{
|
|
51
|
+
spaces_id: {
|
|
52
|
+
id: id
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
}
|
|
57
|
+
]));
|
|
58
|
+
return contact;
|
|
59
|
+
} catch (error) {
|
|
60
|
+
console.error('Error creating contact:', error);
|
|
61
|
+
throw error;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// composables/deleteContact.js
|
|
2
|
+
import { deleteItem } from '@directus/sdk';
|
|
3
|
+
|
|
4
|
+
export default async function deleteContact(contactId) {
|
|
5
|
+
const { $directus } = useNuxtApp();
|
|
6
|
+
|
|
7
|
+
try {
|
|
8
|
+
$directus.request(deleteItem('contacts', contactId));
|
|
9
|
+
console.log('Contact deleted successfully');
|
|
10
|
+
} catch (error) {
|
|
11
|
+
console.error('Error deleting contact:', error);
|
|
12
|
+
throw error;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// composables/updateContact.js
|
|
2
|
+
import { updateItem } from '@directus/sdk';
|
|
3
|
+
|
|
4
|
+
export default async function updateContact(contactId, contactData) {
|
|
5
|
+
const { $directus } = useNuxtApp();
|
|
6
|
+
|
|
7
|
+
try {
|
|
8
|
+
const contact = await $directus.request(updateItem('contacts', contactId));
|
|
9
|
+
return contact;
|
|
10
|
+
} catch (error) {
|
|
11
|
+
console.error('Error updating contact:', error);
|
|
12
|
+
throw error;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export class SocialError extends Error {
|
|
2
|
+
constructor(message: string, public provider?: string, public cause?: any) {
|
|
3
|
+
super(message)
|
|
4
|
+
this.name = 'SocialError'
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export class RateLimitError extends SocialError {
|
|
9
|
+
retryAfter?: number
|
|
10
|
+
|
|
11
|
+
constructor(message: string, provider?: string, retryAfter?: number, cause?: any) {
|
|
12
|
+
super(message, provider, cause)
|
|
13
|
+
this.name = 'RateLimitError'
|
|
14
|
+
this.retryAfter = retryAfter
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export interface SocialMetrics {
|
|
2
|
+
requests: number
|
|
3
|
+
successes: number
|
|
4
|
+
failures: number
|
|
5
|
+
cacheHits: number
|
|
6
|
+
cacheMisses: number
|
|
7
|
+
backgroundRefreshes: number
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const metrics = new Map<string, SocialMetrics>()
|
|
11
|
+
|
|
12
|
+
function getProviderMetrics(provider: string): SocialMetrics {
|
|
13
|
+
if (!metrics.has(provider)) {
|
|
14
|
+
metrics.set(provider, {
|
|
15
|
+
requests: 0,
|
|
16
|
+
successes: 0,
|
|
17
|
+
failures: 0,
|
|
18
|
+
cacheHits: 0,
|
|
19
|
+
cacheMisses: 0,
|
|
20
|
+
backgroundRefreshes: 0
|
|
21
|
+
})
|
|
22
|
+
}
|
|
23
|
+
return metrics.get(provider)!
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function recordRequest(provider: string) {
|
|
27
|
+
getProviderMetrics(provider).requests++
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function recordSuccess(provider: string) {
|
|
31
|
+
getProviderMetrics(provider).successes++
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function recordFailure(provider: string) {
|
|
35
|
+
getProviderMetrics(provider).failures++
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function recordCacheHit(provider: string) {
|
|
39
|
+
getProviderMetrics(provider).cacheHits++
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function recordCacheMiss(provider: string) {
|
|
43
|
+
getProviderMetrics(provider).cacheMisses++
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function recordBackgroundRefresh(provider: string) {
|
|
47
|
+
getProviderMetrics(provider).backgroundRefreshes++
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function getMetrics(provider: string) {
|
|
51
|
+
return getProviderMetrics(provider)
|
|
52
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// composables/createPost.js
|
|
2
|
+
import { createItem } from '@directus/sdk';
|
|
3
|
+
|
|
4
|
+
export default async function createPost(postData) {
|
|
5
|
+
const route = useRoute();
|
|
6
|
+
|
|
7
|
+
const id = route.params.id;
|
|
8
|
+
const { $directus } = useNuxtApp();
|
|
9
|
+
|
|
10
|
+
try {
|
|
11
|
+
const post = await $directus.request(createItem('posts', [
|
|
12
|
+
{
|
|
13
|
+
title: postData.title,
|
|
14
|
+
content: postData.content,
|
|
15
|
+
status: postData.status,
|
|
16
|
+
type: postData.type,
|
|
17
|
+
image: postData.image,
|
|
18
|
+
media: postData.media,
|
|
19
|
+
audio: postData.audio,
|
|
20
|
+
video: postData.video,
|
|
21
|
+
document: postData.document,
|
|
22
|
+
coverFile: null,
|
|
23
|
+
avatarFile: null,
|
|
24
|
+
username: postData.username,
|
|
25
|
+
spaces: [
|
|
26
|
+
{
|
|
27
|
+
spaces_id: {
|
|
28
|
+
id: id
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
}
|
|
33
|
+
]));
|
|
34
|
+
return post;
|
|
35
|
+
} catch (error) {
|
|
36
|
+
console.error('Error creating post:', error);
|
|
37
|
+
throw error;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// composables/deletePost.js
|
|
2
|
+
import { deleteItem } from '@directus/sdk';
|
|
3
|
+
|
|
4
|
+
export default async function deletePost(postId) {
|
|
5
|
+
const { $directus } = useNuxtApp();
|
|
6
|
+
|
|
7
|
+
try {
|
|
8
|
+
$directus.request(deleteItem('posts', postId));
|
|
9
|
+
console.log('Post deleted successfully');
|
|
10
|
+
} catch (error) {
|
|
11
|
+
console.error('Error deleting post:', error);
|
|
12
|
+
throw error;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// composables/updatePost.js
|
|
2
|
+
import { updateItem } from '@directus/sdk';
|
|
3
|
+
|
|
4
|
+
export default async function updatePost(postId, postData) {
|
|
5
|
+
const { $directus } = useNuxtApp();
|
|
6
|
+
|
|
7
|
+
try {
|
|
8
|
+
const post = await $directus.request(updateItem('posts', postId));
|
|
9
|
+
return post;
|
|
10
|
+
} catch (error) {
|
|
11
|
+
console.error('Error updating post:', error);
|
|
12
|
+
throw error;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// composables/usePosts.ts
|
|
2
|
+
import { AtpAgent } from '@atproto/api'
|
|
3
|
+
|
|
4
|
+
export const usePosts = () => {
|
|
5
|
+
const config = useRuntimeConfig()
|
|
6
|
+
const agent = new AtpAgent({ service: `${config.public.atprotoPds}` })
|
|
7
|
+
|
|
8
|
+
const createPost = async (text: string, embed?: any, reply?: any) => {
|
|
9
|
+
return await agent.post({
|
|
10
|
+
text,
|
|
11
|
+
createdAt: new Date().toISOString(),
|
|
12
|
+
embed,
|
|
13
|
+
reply
|
|
14
|
+
})
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const getTimeline = async (limit = 20) => {
|
|
18
|
+
return await agent.getTimeline({ limit })
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
return { createPost, getTimeline }
|
|
22
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { wrapSocialRequest } from '../utils'
|
|
2
|
+
import { getSocialConfig } from '../config'
|
|
3
|
+
import { registerSocialProvider } from '../registry'
|
|
4
|
+
|
|
5
|
+
async function atprotoFetch(path: string, options: RequestInit = {}) {
|
|
6
|
+
const { baseUrl, apiKey } = getSocialConfig()
|
|
7
|
+
const res = await fetch(`${baseUrl}${path}`, {
|
|
8
|
+
...options,
|
|
9
|
+
headers: {
|
|
10
|
+
'Content-Type': 'application/json',
|
|
11
|
+
...(apiKey ? { Authorization: `Bearer ${apiKey}` } : {}),
|
|
12
|
+
...(options.headers || {})
|
|
13
|
+
}
|
|
14
|
+
})
|
|
15
|
+
|
|
16
|
+
if (!res.ok) {
|
|
17
|
+
const error: any = new Error(`ATProto error: ${res.status}`)
|
|
18
|
+
error.status = res.status
|
|
19
|
+
error.response = res
|
|
20
|
+
throw error
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
return res.json()
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const AtprotoProvider = {
|
|
27
|
+
async getProfile(handle: string) {
|
|
28
|
+
return wrapSocialRequest(
|
|
29
|
+
'atproto',
|
|
30
|
+
async () => {
|
|
31
|
+
const data = await atprotoFetch(`/xrpc/app.bsky.actor.getProfile?actor=${handle}`)
|
|
32
|
+
return {
|
|
33
|
+
id: data.did,
|
|
34
|
+
username: data.handle,
|
|
35
|
+
displayName: data.displayName,
|
|
36
|
+
avatarUrl: data.avatar,
|
|
37
|
+
url: `https://bsky.app/profile/${data.handle}`
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
cacheKey: `atproto:profile:${handle}`,
|
|
42
|
+
ttlMs: 1000 * 60 * 5, // 5 minutes
|
|
43
|
+
retry: true
|
|
44
|
+
}
|
|
45
|
+
)
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
async listPosts(handle: string) {
|
|
49
|
+
return wrapSocialRequest(
|
|
50
|
+
'atproto',
|
|
51
|
+
async () => {
|
|
52
|
+
const data = await atprotoFetch(`/xrpc/app.bsky.feed.getAuthorFeed?actor=${handle}`)
|
|
53
|
+
return (data.feed || []).map((item: any) => ({
|
|
54
|
+
id: item.post.uri,
|
|
55
|
+
content: item.post.record?.text,
|
|
56
|
+
createdAt: item.post.record?.createdAt,
|
|
57
|
+
author: {
|
|
58
|
+
id: item.post.author.did,
|
|
59
|
+
username: item.post.author.handle,
|
|
60
|
+
displayName: item.post.author.displayName,
|
|
61
|
+
avatarUrl: item.post.author.avatar
|
|
62
|
+
},
|
|
63
|
+
url: `https://bsky.app/profile/${item.post.author.handle}/post/${item.post.uri}`
|
|
64
|
+
}))
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
cacheKey: `atproto:posts:${handle}`,
|
|
68
|
+
ttlMs: 1000 * 30, // 30 seconds
|
|
69
|
+
retry: true
|
|
70
|
+
}
|
|
71
|
+
)
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
registerSocialProvider('atproto', AtprotoProvider)
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// src/providers/mastodon.ts
|
|
2
|
+
import type { SocialProvider, SocialProfile, SocialPost } from '../types'
|
|
3
|
+
import { registerSocialProvider } from '../registry'
|
|
4
|
+
import { getSocialConfig } from '../config'
|
|
5
|
+
|
|
6
|
+
async function mastodonFetch(path: string, options: RequestInit = {}) {
|
|
7
|
+
const { baseUrl, apiKey } = getSocialConfig()
|
|
8
|
+
const res = await fetch(`${baseUrl}${path}`, {
|
|
9
|
+
...options,
|
|
10
|
+
headers: {
|
|
11
|
+
'Content-Type': 'application/json',
|
|
12
|
+
...(apiKey ? { Authorization: `Bearer ${apiKey}` } : {}),
|
|
13
|
+
...(options.headers || {})
|
|
14
|
+
}
|
|
15
|
+
})
|
|
16
|
+
if (!res.ok) throw new Error(`Mastodon error: ${res.status}`)
|
|
17
|
+
return res.json()
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const MastodonProvider: SocialProvider = {
|
|
21
|
+
async getProfile(handle: string): Promise<SocialProfile> {
|
|
22
|
+
const data = await mastodonFetch(`/api/v1/accounts/lookup?acct=${handle}`)
|
|
23
|
+
return {
|
|
24
|
+
id: data.id,
|
|
25
|
+
username: data.acct,
|
|
26
|
+
displayName: data.display_name,
|
|
27
|
+
avatarUrl: data.avatar,
|
|
28
|
+
url: data.url
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
|
|
32
|
+
async listPosts(handle: string): Promise<SocialPost[]> {
|
|
33
|
+
const profile = await this.getProfile(handle)
|
|
34
|
+
const data = await mastodonFetch(`/api/v1/accounts/${profile.id}/statuses`)
|
|
35
|
+
return data.map((status: any) => ({
|
|
36
|
+
id: status.id,
|
|
37
|
+
content: status.content,
|
|
38
|
+
createdAt: status.created_at,
|
|
39
|
+
author: profile,
|
|
40
|
+
url: status.url
|
|
41
|
+
}))
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
registerSocialProvider('mastodon', MastodonProvider)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { RateLimitError } from "./errors";
|
|
2
|
+
|
|
3
|
+
export interface RateLimitConfig {
|
|
4
|
+
maxRequests: number
|
|
5
|
+
windowMs: number
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
const providerLimits = new Map<string, RateLimitConfig>()
|
|
9
|
+
const providerUsage = new Map<string, { count: number; resetAt: number }>()
|
|
10
|
+
|
|
11
|
+
export function setRateLimit(provider: string, config: RateLimitConfig) {
|
|
12
|
+
providerLimits.set(provider, config)
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function checkRateLimit(provider: string) {
|
|
16
|
+
const limit = providerLimits.get(provider)
|
|
17
|
+
if (!limit) return
|
|
18
|
+
|
|
19
|
+
const now = Date.now()
|
|
20
|
+
const usage = providerUsage.get(provider) || {
|
|
21
|
+
count: 0,
|
|
22
|
+
resetAt: now + limit.windowMs
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
if (now > usage.resetAt) {
|
|
26
|
+
usage.count = 0
|
|
27
|
+
usage.resetAt = now + limit.windowMs
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
usage.count++
|
|
31
|
+
|
|
32
|
+
providerUsage.set(provider, usage)
|
|
33
|
+
|
|
34
|
+
if (usage.count > limit.maxRequests) {
|
|
35
|
+
throw new RateLimitError(
|
|
36
|
+
`Meeovi internal rate limit exceeded for provider "${provider}"`,
|
|
37
|
+
provider,
|
|
38
|
+
Math.ceil((usage.resetAt - now) / 1000)
|
|
39
|
+
)
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { SocialProvider } from './types'
|
|
2
|
+
|
|
3
|
+
const providers: Record<string, SocialProvider> = {}
|
|
4
|
+
|
|
5
|
+
export function registerSocialProvider(name: string, provider: SocialProvider) {
|
|
6
|
+
providers[name] = provider
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function getSocialProvider(name: string): SocialProvider {
|
|
10
|
+
const provider = providers[name]
|
|
11
|
+
if (!provider) throw new Error(`Social provider "${name}" not found`)
|
|
12
|
+
return provider
|
|
13
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export interface RetryOptions {
|
|
2
|
+
retries: number
|
|
3
|
+
baseDelayMs: number
|
|
4
|
+
maxDelayMs: number
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
const defaultRetry: RetryOptions = {
|
|
8
|
+
retries: 3,
|
|
9
|
+
baseDelayMs: 300,
|
|
10
|
+
maxDelayMs: 5000
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function sleep(ms: number) {
|
|
14
|
+
return new Promise((resolve) => setTimeout(resolve, ms))
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export async function withRetry<T>(
|
|
18
|
+
fn: () => Promise<T>,
|
|
19
|
+
opts: Partial<RetryOptions> = {}
|
|
20
|
+
): Promise<T> {
|
|
21
|
+
const { retries, baseDelayMs, maxDelayMs } = { ...defaultRetry, ...opts }
|
|
22
|
+
|
|
23
|
+
let attempt = 0
|
|
24
|
+
|
|
25
|
+
while (true) {
|
|
26
|
+
try {
|
|
27
|
+
return await fn()
|
|
28
|
+
} catch (err: any) {
|
|
29
|
+
attempt++
|
|
30
|
+
if (attempt > retries) throw err
|
|
31
|
+
|
|
32
|
+
const delay = Math.min(
|
|
33
|
+
baseDelayMs * Math.pow(2, attempt) + Math.random() * 100,
|
|
34
|
+
maxDelayMs
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
await sleep(delay)
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|