@commonpub/layer 0.1.0
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/LICENSE +661 -0
- package/app.vue +7 -0
- package/components/AnnouncementBand.vue +117 -0
- package/components/AppToast.vue +108 -0
- package/components/AuthorCard.vue +119 -0
- package/components/AuthorRow.vue +81 -0
- package/components/CommentSection.vue +330 -0
- package/components/ContentCard.vue +340 -0
- package/components/ContentPicker.vue +240 -0
- package/components/ContentStarterForm.vue +214 -0
- package/components/ContentTypeBadge.vue +46 -0
- package/components/CountdownTimer.vue +68 -0
- package/components/CpubEditor.vue +87 -0
- package/components/DiscussionItem.vue +191 -0
- package/components/EditorPropertiesPanel.vue +393 -0
- package/components/EngagementBar.vue +131 -0
- package/components/FederatedContentCard.vue +291 -0
- package/components/FeedItem.vue +283 -0
- package/components/FilterChip.vue +21 -0
- package/components/HeatmapGrid.vue +92 -0
- package/components/ImageUpload.vue +219 -0
- package/components/MemberCard.vue +163 -0
- package/components/MessageThread.vue +120 -0
- package/components/NotificationItem.vue +103 -0
- package/components/ProgressTracker.vue +41 -0
- package/components/PublishErrorsModal.vue +116 -0
- package/components/RemoteActorCard.vue +206 -0
- package/components/RemoteUserSearch.vue +117 -0
- package/components/SearchFilters.vue +188 -0
- package/components/SearchSidebar.vue +181 -0
- package/components/SectionHeader.vue +17 -0
- package/components/ShareToHubModal.vue +189 -0
- package/components/SiteLogo.vue +21 -0
- package/components/SkillBar.vue +57 -0
- package/components/SortSelect.vue +30 -0
- package/components/StatBar.vue +14 -0
- package/components/TOCNav.vue +69 -0
- package/components/TimelineItem.vue +82 -0
- package/components/VideoCard.vue +106 -0
- package/components/blocks/BlockBuildStepView.vue +92 -0
- package/components/blocks/BlockCalloutView.vue +82 -0
- package/components/blocks/BlockCheckpointView.vue +50 -0
- package/components/blocks/BlockCodeView.vue +212 -0
- package/components/blocks/BlockContentRenderer.vue +143 -0
- package/components/blocks/BlockDividerView.vue +11 -0
- package/components/blocks/BlockDownloadsView.vue +126 -0
- package/components/blocks/BlockEmbedView.vue +61 -0
- package/components/blocks/BlockGalleryView.vue +57 -0
- package/components/blocks/BlockHeadingView.vue +29 -0
- package/components/blocks/BlockImageView.vue +34 -0
- package/components/blocks/BlockMarkdownView.vue +118 -0
- package/components/blocks/BlockMathView.vue +45 -0
- package/components/blocks/BlockPartsListView.vue +104 -0
- package/components/blocks/BlockQuizView.vue +239 -0
- package/components/blocks/BlockQuoteView.vue +41 -0
- package/components/blocks/BlockSectionHeaderView.vue +58 -0
- package/components/blocks/BlockSliderView.vue +236 -0
- package/components/blocks/BlockTextView.vue +41 -0
- package/components/blocks/BlockToolListView.vue +87 -0
- package/components/blocks/BlockVideoView.vue +89 -0
- package/components/editors/ArticleEditor.vue +545 -0
- package/components/editors/BlockCanvas.vue +487 -0
- package/components/editors/BlockInsertZone.vue +84 -0
- package/components/editors/BlockPicker.vue +285 -0
- package/components/editors/BlockWrapper.vue +192 -0
- package/components/editors/BlogEditor.vue +567 -0
- package/components/editors/EditorBlocks.vue +248 -0
- package/components/editors/EditorSection.vue +81 -0
- package/components/editors/EditorShell.vue +168 -0
- package/components/editors/EditorTagInput.vue +114 -0
- package/components/editors/EditorVisibility.vue +110 -0
- package/components/editors/ExplainerEditor.vue +503 -0
- package/components/editors/MarkdownImportDialog.vue +249 -0
- package/components/editors/ProjectEditor.vue +446 -0
- package/components/editors/blocks/BuildStepBlock.vue +102 -0
- package/components/editors/blocks/CalloutBlock.vue +122 -0
- package/components/editors/blocks/CheckpointBlock.vue +27 -0
- package/components/editors/blocks/CodeBlock.vue +177 -0
- package/components/editors/blocks/DividerBlock.vue +22 -0
- package/components/editors/blocks/DownloadsBlock.vue +41 -0
- package/components/editors/blocks/EmbedBlock.vue +20 -0
- package/components/editors/blocks/GalleryBlock.vue +236 -0
- package/components/editors/blocks/HeadingBlock.vue +96 -0
- package/components/editors/blocks/ImageBlock.vue +271 -0
- package/components/editors/blocks/MarkdownBlock.vue +258 -0
- package/components/editors/blocks/MathBlock.vue +37 -0
- package/components/editors/blocks/PartsListBlock.vue +358 -0
- package/components/editors/blocks/QuizBlock.vue +47 -0
- package/components/editors/blocks/QuoteBlock.vue +101 -0
- package/components/editors/blocks/SectionHeaderBlock.vue +130 -0
- package/components/editors/blocks/SliderBlock.vue +318 -0
- package/components/editors/blocks/TextBlock.vue +201 -0
- package/components/editors/blocks/ToolListBlock.vue +70 -0
- package/components/editors/blocks/VideoBlock.vue +22 -0
- package/components/hub/HubDiscussions.vue +47 -0
- package/components/hub/HubFeed.vue +199 -0
- package/components/hub/HubHero.vue +185 -0
- package/components/hub/HubLayout.vue +103 -0
- package/components/hub/HubMembers.vue +40 -0
- package/components/hub/HubProducts.vue +93 -0
- package/components/hub/HubProjects.vue +207 -0
- package/components/hub/HubSidebar.vue +12 -0
- package/components/hub/HubSidebarCard.vue +35 -0
- package/components/views/ArticleView.vue +771 -0
- package/components/views/BlogView.vue +667 -0
- package/components/views/ExplainerView.vue +688 -0
- package/components/views/ProjectView.vue +1500 -0
- package/composables/useApiError.ts +39 -0
- package/composables/useAuth.ts +87 -0
- package/composables/useBlockEditor.ts +187 -0
- package/composables/useContentSave.ts +253 -0
- package/composables/useContentTypes.ts +37 -0
- package/composables/useEngagement.ts +196 -0
- package/composables/useFeatures.ts +33 -0
- package/composables/useFederation.ts +72 -0
- package/composables/useJsonLd.ts +183 -0
- package/composables/useMarkdownImport.ts +77 -0
- package/composables/useMirrorContent.ts +105 -0
- package/composables/useNotifications.ts +73 -0
- package/composables/usePublishValidation.ts +65 -0
- package/composables/useSanitize.ts +34 -0
- package/composables/useSiteName.ts +4 -0
- package/composables/useTheme.ts +34 -0
- package/composables/useToast.ts +35 -0
- package/error.vue +129 -0
- package/layouts/admin.vue +213 -0
- package/layouts/auth.vue +63 -0
- package/layouts/default.vue +269 -0
- package/layouts/editor.vue +129 -0
- package/middleware/auth.ts +6 -0
- package/nuxt.config.ts +83 -0
- package/package.json +59 -0
- package/pages/[type]/[slug]/edit.vue +676 -0
- package/pages/[type]/[slug]/index.vue +313 -0
- package/pages/[type]/index.vue +118 -0
- package/pages/about.vue +100 -0
- package/pages/admin/audit.vue +66 -0
- package/pages/admin/content.vue +116 -0
- package/pages/admin/federation.vue +446 -0
- package/pages/admin/index.vue +62 -0
- package/pages/admin/reports.vue +88 -0
- package/pages/admin/settings.vue +167 -0
- package/pages/admin/users.vue +145 -0
- package/pages/auth/forgot-password.vue +103 -0
- package/pages/auth/login.vue +216 -0
- package/pages/auth/oauth/authorize.vue +178 -0
- package/pages/auth/register.vue +246 -0
- package/pages/auth/reset-password.vue +124 -0
- package/pages/auth/verify-email.vue +80 -0
- package/pages/cert/[code].vue +154 -0
- package/pages/contests/[slug]/edit.vue +153 -0
- package/pages/contests/[slug]/index.vue +556 -0
- package/pages/contests/[slug]/judge.vue +160 -0
- package/pages/contests/create.vue +192 -0
- package/pages/contests/index.vue +69 -0
- package/pages/create.vue +219 -0
- package/pages/dashboard.vue +521 -0
- package/pages/docs/[siteSlug]/[...pagePath].vue +704 -0
- package/pages/docs/[siteSlug]/edit.vue +480 -0
- package/pages/docs/[siteSlug]/index.vue +380 -0
- package/pages/docs/create.vue +60 -0
- package/pages/docs/index.vue +181 -0
- package/pages/explore.vue +422 -0
- package/pages/federated-hubs/[id]/index.vue +385 -0
- package/pages/federated-hubs/[id]/posts/[postId].vue +309 -0
- package/pages/federation/index.vue +157 -0
- package/pages/federation/search.vue +43 -0
- package/pages/federation/users/[handle].vue +221 -0
- package/pages/feed.vue +135 -0
- package/pages/hubs/[slug]/index.vue +513 -0
- package/pages/hubs/[slug]/members.vue +134 -0
- package/pages/hubs/[slug]/posts/[postId].vue +352 -0
- package/pages/hubs/[slug]/settings.vue +254 -0
- package/pages/hubs/create.vue +201 -0
- package/pages/hubs/index.vue +207 -0
- package/pages/index.vue +1005 -0
- package/pages/learn/[slug]/[lessonSlug]/edit.vue +413 -0
- package/pages/learn/[slug]/[lessonSlug]/index.vue +438 -0
- package/pages/learn/[slug]/edit.vue +414 -0
- package/pages/learn/[slug]/index.vue +341 -0
- package/pages/learn/create.vue +71 -0
- package/pages/learn/index.vue +360 -0
- package/pages/messages/[conversationId].vue +113 -0
- package/pages/messages/index.vue +303 -0
- package/pages/mirror/[id].vue +115 -0
- package/pages/notifications.vue +91 -0
- package/pages/products/[slug].vue +128 -0
- package/pages/products/index.vue +122 -0
- package/pages/search.vue +692 -0
- package/pages/settings/account.vue +170 -0
- package/pages/settings/appearance.vue +80 -0
- package/pages/settings/index.vue +81 -0
- package/pages/settings/notifications.vue +68 -0
- package/pages/settings/profile.vue +838 -0
- package/pages/tags/[slug].vue +111 -0
- package/pages/tags/index.vue +73 -0
- package/pages/u/[username]/followers.vue +86 -0
- package/pages/u/[username]/following.vue +94 -0
- package/pages/u/[username]/index.vue +837 -0
- package/pages/videos/[id].vue +212 -0
- package/pages/videos/index.vue +327 -0
- package/pages/videos/submit.vue +112 -0
- package/plugins/auth.ts +23 -0
- package/server/api/admin/audit.get.ts +17 -0
- package/server/api/admin/content/[id].delete.ts +15 -0
- package/server/api/admin/content/[id].patch.ts +37 -0
- package/server/api/admin/federation/activity.get.ts +31 -0
- package/server/api/admin/federation/clients.get.ts +9 -0
- package/server/api/admin/federation/clients.post.ts +16 -0
- package/server/api/admin/federation/hub-mirrors/index.get.ts +10 -0
- package/server/api/admin/federation/hub-mirrors/index.post.ts +42 -0
- package/server/api/admin/federation/mirrors/[id]/backfill.post.ts +39 -0
- package/server/api/admin/federation/mirrors/[id].delete.ts +11 -0
- package/server/api/admin/federation/mirrors/[id].get.ts +15 -0
- package/server/api/admin/federation/mirrors/[id].put.ts +22 -0
- package/server/api/admin/federation/mirrors/index.get.ts +9 -0
- package/server/api/admin/federation/mirrors/index.post.ts +30 -0
- package/server/api/admin/federation/pending.get.ts +22 -0
- package/server/api/admin/federation/refederate.post.ts +92 -0
- package/server/api/admin/federation/repair-types.post.ts +57 -0
- package/server/api/admin/federation/retry.post.ts +41 -0
- package/server/api/admin/federation/stats.get.ts +26 -0
- package/server/api/admin/reports/[id]/resolve.post.ts +12 -0
- package/server/api/admin/reports.get.ts +17 -0
- package/server/api/admin/settings.get.ts +22 -0
- package/server/api/admin/settings.put.ts +11 -0
- package/server/api/admin/stats.get.ts +9 -0
- package/server/api/admin/users/[id]/role.put.ts +12 -0
- package/server/api/admin/users/[id]/status.put.ts +12 -0
- package/server/api/admin/users/[id].delete.ts +10 -0
- package/server/api/admin/users.get.ts +18 -0
- package/server/api/auth/federated/callback.get.ts +67 -0
- package/server/api/auth/federated/login.post.ts +60 -0
- package/server/api/auth/oauth2/authorize.get.ts +30 -0
- package/server/api/auth/oauth2/authorize.post.ts +51 -0
- package/server/api/auth/oauth2/register.post.ts +41 -0
- package/server/api/auth/oauth2/token.post.ts +48 -0
- package/server/api/cert/[code].get.ts +13 -0
- package/server/api/content/[id]/build.post.ts +9 -0
- package/server/api/content/[id]/fork.post.ts +10 -0
- package/server/api/content/[id]/index.delete.ts +18 -0
- package/server/api/content/[id]/index.get.ts +15 -0
- package/server/api/content/[id]/index.put.ts +23 -0
- package/server/api/content/[id]/products/[productId].delete.ts +28 -0
- package/server/api/content/[id]/products-sync.post.ts +29 -0
- package/server/api/content/[id]/products.get.ts +9 -0
- package/server/api/content/[id]/products.post.ts +31 -0
- package/server/api/content/[id]/publish.post.ts +17 -0
- package/server/api/content/[id]/report.post.ts +17 -0
- package/server/api/content/[id]/versions.get.ts +9 -0
- package/server/api/content/[id]/view.post.ts +34 -0
- package/server/api/content/index.get.ts +23 -0
- package/server/api/content/index.post.ts +11 -0
- package/server/api/contests/[slug]/entries.get.ts +18 -0
- package/server/api/contests/[slug]/entries.post.ts +23 -0
- package/server/api/contests/[slug]/index.delete.ts +21 -0
- package/server/api/contests/[slug]/index.get.ts +11 -0
- package/server/api/contests/[slug]/index.put.ts +15 -0
- package/server/api/contests/[slug]/judge.post.ts +12 -0
- package/server/api/contests/[slug]/transition.post.ts +24 -0
- package/server/api/contests/index.get.ts +10 -0
- package/server/api/contests/index.post.ts +28 -0
- package/server/api/docs/[siteSlug]/index.delete.ts +14 -0
- package/server/api/docs/[siteSlug]/index.get.ts +17 -0
- package/server/api/docs/[siteSlug]/index.put.ts +20 -0
- package/server/api/docs/[siteSlug]/nav.get.ts +26 -0
- package/server/api/docs/[siteSlug]/pages/[pageId].delete.ts +14 -0
- package/server/api/docs/[siteSlug]/pages/[pageId].get.ts +31 -0
- package/server/api/docs/[siteSlug]/pages/[pageId].put.ts +15 -0
- package/server/api/docs/[siteSlug]/pages/index.get.ts +34 -0
- package/server/api/docs/[siteSlug]/pages/index.post.ts +28 -0
- package/server/api/docs/[siteSlug]/pages/reorder.post.ts +26 -0
- package/server/api/docs/[siteSlug]/search.get.ts +20 -0
- package/server/api/docs/[siteSlug]/versions.post.ts +11 -0
- package/server/api/docs/index.get.ts +6 -0
- package/server/api/docs/index.post.ts +10 -0
- package/server/api/federated-hubs/[id]/posts/[postId].get.ts +16 -0
- package/server/api/federated-hubs/[id]/posts.get.ts +15 -0
- package/server/api/federated-hubs/[id].get.ts +16 -0
- package/server/api/federation/boost.post.ts +21 -0
- package/server/api/federation/content/[id].get.ts +15 -0
- package/server/api/federation/follow.post.ts +16 -0
- package/server/api/federation/health.get.ts +56 -0
- package/server/api/federation/hub-follow.post.ts +27 -0
- package/server/api/federation/hub-post-like.post.ts +115 -0
- package/server/api/federation/hub-post-likes.get.ts +24 -0
- package/server/api/federation/hub-post-reply.post.ts +42 -0
- package/server/api/federation/hub-post.post.ts +33 -0
- package/server/api/federation/like.post.ts +21 -0
- package/server/api/federation/remote-actor.get.ts +22 -0
- package/server/api/federation/reply.post.ts +22 -0
- package/server/api/federation/search.post.ts +17 -0
- package/server/api/federation/timeline.get.ts +22 -0
- package/server/api/federation/unfollow.post.ts +17 -0
- package/server/api/files/[id].delete.ts +35 -0
- package/server/api/files/mine.get.ts +31 -0
- package/server/api/files/upload-from-url.post.ts +68 -0
- package/server/api/files/upload.post.ts +105 -0
- package/server/api/health.get.ts +4 -0
- package/server/api/hubs/[slug]/bans/[userId].delete.ts +13 -0
- package/server/api/hubs/[slug]/bans.get.ts +20 -0
- package/server/api/hubs/[slug]/bans.post.ts +23 -0
- package/server/api/hubs/[slug]/feed.xml.get.ts +60 -0
- package/server/api/hubs/[slug]/gallery.get.ts +21 -0
- package/server/api/hubs/[slug]/index.delete.ts +18 -0
- package/server/api/hubs/[slug]/index.get.ts +14 -0
- package/server/api/hubs/[slug]/index.put.ts +22 -0
- package/server/api/hubs/[slug]/invites.get.ts +20 -0
- package/server/api/hubs/[slug]/invites.post.ts +27 -0
- package/server/api/hubs/[slug]/join.post.ts +17 -0
- package/server/api/hubs/[slug]/leave.post.ts +13 -0
- package/server/api/hubs/[slug]/members/[userId].delete.ts +13 -0
- package/server/api/hubs/[slug]/members/[userId].put.ts +16 -0
- package/server/api/hubs/[slug]/members.get.ts +20 -0
- package/server/api/hubs/[slug]/posts/[postId]/like.post.ts +21 -0
- package/server/api/hubs/[slug]/posts/[postId]/lock.post.ts +17 -0
- package/server/api/hubs/[slug]/posts/[postId]/pin.post.ts +17 -0
- package/server/api/hubs/[slug]/posts/[postId]/replies.get.ts +16 -0
- package/server/api/hubs/[slug]/posts/[postId]/replies.post.ts +21 -0
- package/server/api/hubs/[slug]/posts/[postId].delete.ts +23 -0
- package/server/api/hubs/[slug]/posts/[postId].get.ts +16 -0
- package/server/api/hubs/[slug]/posts/index.get.ts +16 -0
- package/server/api/hubs/[slug]/posts/index.post.ts +36 -0
- package/server/api/hubs/[slug]/products.get.ts +26 -0
- package/server/api/hubs/[slug]/products.post.ts +18 -0
- package/server/api/hubs/[slug]/share.post.ts +39 -0
- package/server/api/hubs/index.get.ts +15 -0
- package/server/api/hubs/index.post.ts +11 -0
- package/server/api/image-proxy.get.ts +91 -0
- package/server/api/learn/[slug]/[lessonSlug]/complete.post.ts +13 -0
- package/server/api/learn/[slug]/[lessonSlug]/index.get.ts +68 -0
- package/server/api/learn/[slug]/enroll.post.ts +12 -0
- package/server/api/learn/[slug]/index.delete.ts +12 -0
- package/server/api/learn/[slug]/index.get.ts +14 -0
- package/server/api/learn/[slug]/index.put.ts +19 -0
- package/server/api/learn/[slug]/lessons/[lessonId].delete.ts +14 -0
- package/server/api/learn/[slug]/lessons/[lessonId].put.ts +24 -0
- package/server/api/learn/[slug]/lessons.post.ts +10 -0
- package/server/api/learn/[slug]/modules/[moduleId].delete.ts +14 -0
- package/server/api/learn/[slug]/modules/[moduleId].put.ts +15 -0
- package/server/api/learn/[slug]/modules.post.ts +14 -0
- package/server/api/learn/[slug]/publish.post.ts +13 -0
- package/server/api/learn/[slug]/unenroll.post.ts +12 -0
- package/server/api/learn/certificates.get.ts +9 -0
- package/server/api/learn/enrollments.get.ts +9 -0
- package/server/api/learn/index.get.ts +17 -0
- package/server/api/learn/index.post.ts +11 -0
- package/server/api/me.get.ts +13 -0
- package/server/api/messages/[conversationId]/info.get.ts +43 -0
- package/server/api/messages/[conversationId]/stream.get.ts +73 -0
- package/server/api/messages/[conversationId].get.ts +13 -0
- package/server/api/messages/[conversationId].post.ts +12 -0
- package/server/api/messages/index.get.ts +39 -0
- package/server/api/messages/index.post.ts +58 -0
- package/server/api/notifications/[id].delete.ts +11 -0
- package/server/api/notifications/count.get.ts +10 -0
- package/server/api/notifications/index.get.ts +24 -0
- package/server/api/notifications/read.post.ts +15 -0
- package/server/api/notifications/stream.get.ts +59 -0
- package/server/api/openapi.get.ts +5 -0
- package/server/api/products/[id].delete.ts +15 -0
- package/server/api/products/[id].put.ts +18 -0
- package/server/api/products/[slug]/content.get.ts +21 -0
- package/server/api/products/[slug].get.ts +16 -0
- package/server/api/products/index.get.ts +28 -0
- package/server/api/profile.get.ts +15 -0
- package/server/api/profile.put.ts +24 -0
- package/server/api/resolve-identity.post.ts +34 -0
- package/server/api/search/index.get.ts +24 -0
- package/server/api/search/trending.get.ts +22 -0
- package/server/api/social/bookmark.get.ts +16 -0
- package/server/api/social/bookmark.post.ts +15 -0
- package/server/api/social/bookmarks.get.ts +16 -0
- package/server/api/social/comments/[id].delete.ts +13 -0
- package/server/api/social/comments.get.ts +18 -0
- package/server/api/social/comments.post.ts +11 -0
- package/server/api/social/like.get.ts +17 -0
- package/server/api/social/like.post.ts +35 -0
- package/server/api/stats.get.ts +8 -0
- package/server/api/user/hubs.get.ts +22 -0
- package/server/api/users/[username]/content.get.ts +21 -0
- package/server/api/users/[username]/feed.xml.get.ts +65 -0
- package/server/api/users/[username]/follow.delete.ts +15 -0
- package/server/api/users/[username]/follow.post.ts +15 -0
- package/server/api/users/[username]/followers.get.ts +22 -0
- package/server/api/users/[username]/following.get.ts +22 -0
- package/server/api/users/[username]/learning.get.ts +18 -0
- package/server/api/users/[username].get.ts +25 -0
- package/server/api/users/index.get.ts +78 -0
- package/server/api/videos/[id].get.ts +18 -0
- package/server/api/videos/categories/[id].delete.ts +15 -0
- package/server/api/videos/categories/[id].put.ts +17 -0
- package/server/api/videos/categories.get.ts +7 -0
- package/server/api/videos/categories.post.ts +11 -0
- package/server/api/videos/index.get.ts +20 -0
- package/server/api/videos/index.post.ts +11 -0
- package/server/middleware/auth.ts +180 -0
- package/server/middleware/features.ts +31 -0
- package/server/middleware/security.ts +54 -0
- package/server/plugins/auto-admin.ts +69 -0
- package/server/plugins/federation-delivery.ts +74 -0
- package/server/routes/.well-known/nodeinfo.ts +15 -0
- package/server/routes/.well-known/webfinger.ts +86 -0
- package/server/routes/actor/followers.ts +34 -0
- package/server/routes/actor/following.ts +34 -0
- package/server/routes/actor/outbox.ts +31 -0
- package/server/routes/actor.ts +30 -0
- package/server/routes/feed.xml.ts +59 -0
- package/server/routes/hubs/[slug]/followers.ts +39 -0
- package/server/routes/hubs/[slug]/inbox.ts +35 -0
- package/server/routes/hubs/[slug]/outbox.ts +43 -0
- package/server/routes/hubs/[slug]/posts/[postId].ts +63 -0
- package/server/routes/hubs/[slug].ts +29 -0
- package/server/routes/inbox.ts +34 -0
- package/server/routes/nodeinfo/2.1.ts +27 -0
- package/server/routes/robots.txt.ts +19 -0
- package/server/routes/sitemap.xml.ts +105 -0
- package/server/routes/users/[username]/followers.ts +33 -0
- package/server/routes/users/[username]/following.ts +33 -0
- package/server/routes/users/[username]/inbox.ts +34 -0
- package/server/routes/users/[username]/outbox.ts +35 -0
- package/server/routes/users/[username].ts +62 -0
- package/server/utils/auth.ts +36 -0
- package/server/utils/db.ts +34 -0
- package/server/utils/errors.ts +24 -0
- package/server/utils/inbox.ts +122 -0
- package/server/utils/validate.ts +82 -0
- package/theme/base.css +283 -0
- package/theme/components.css +322 -0
- package/theme/dark.css +87 -0
- package/theme/editor-panels.css +63 -0
- package/theme/forms.css +216 -0
- package/theme/generics.css +68 -0
- package/theme/layouts.css +415 -0
- package/theme/prose.css +342 -0
- package/types/hub.ts +61 -0
|
@@ -0,0 +1,667 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { ContentViewData } from '../../composables/useEngagement';
|
|
3
|
+
|
|
4
|
+
const props = defineProps<{
|
|
5
|
+
content: ContentViewData;
|
|
6
|
+
federatedId?: string;
|
|
7
|
+
}>();
|
|
8
|
+
|
|
9
|
+
const contentId = computed(() => props.content?.id);
|
|
10
|
+
const contentType = computed(() => props.content?.type ?? 'blog');
|
|
11
|
+
const fedId = computed(() => props.federatedId);
|
|
12
|
+
const { liked, bookmarked, likeCount, isFederated, toggleLike, toggleBookmark, share, fetchInitialState } = useEngagement({ contentId, contentType, federatedContentId: fedId });
|
|
13
|
+
|
|
14
|
+
onMounted(() => {
|
|
15
|
+
fetchInitialState(props.content?.likeCount ?? 0);
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
const config = useRuntimeConfig();
|
|
19
|
+
useJsonLd({
|
|
20
|
+
type: 'article',
|
|
21
|
+
title: props.content.title,
|
|
22
|
+
description: props.content.seoDescription ?? props.content.description ?? '',
|
|
23
|
+
url: `${config.public.siteUrl}/blog/${props.content.slug}`,
|
|
24
|
+
imageUrl: props.content.coverImageUrl ?? undefined,
|
|
25
|
+
authorName: props.content.author?.displayName ?? props.content.author?.username ?? '',
|
|
26
|
+
authorUrl: `${config.public.siteUrl}/u/${props.content.author?.username}`,
|
|
27
|
+
publishedAt: props.content.publishedAt ?? props.content.createdAt,
|
|
28
|
+
updatedAt: props.content.updatedAt,
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
// Series data — only available when content has series metadata
|
|
32
|
+
const seriesPart = computed(() => props.content?.seriesPart as number | undefined);
|
|
33
|
+
const seriesTitle = computed(() => props.content?.seriesTitle as string | undefined);
|
|
34
|
+
const seriesTotalParts = computed(() => (props.content?.seriesTotalParts as number) || 0);
|
|
35
|
+
const hasSeries = computed(() => !!seriesTitle.value && seriesTotalParts.value > 0);
|
|
36
|
+
</script>
|
|
37
|
+
|
|
38
|
+
<template>
|
|
39
|
+
<div class="cpub-blog-view">
|
|
40
|
+
<div class="cpub-blog-wrap">
|
|
41
|
+
|
|
42
|
+
<!-- TYPE BADGE -->
|
|
43
|
+
<div class="cpub-content-type-badge"><i class="fa-solid fa-pen-nib"></i> Blog Post</div>
|
|
44
|
+
|
|
45
|
+
<!-- TITLE -->
|
|
46
|
+
<h1 class="cpub-blog-title">{{ content.title }}</h1>
|
|
47
|
+
|
|
48
|
+
<!-- AUTHOR ROW -->
|
|
49
|
+
<div class="cpub-author-row">
|
|
50
|
+
<NuxtLink v-if="content.author" :to="`/u/${content.author.username}`" style="text-decoration:none;">
|
|
51
|
+
<img v-if="content.author?.avatarUrl" :src="content.author.avatarUrl" :alt="content.author?.displayName ?? content.author?.username ?? ''" class="cpub-av cpub-av-lg" style="object-fit:cover;border:2px solid var(--border);" />
|
|
52
|
+
<div v-else class="cpub-av cpub-av-lg">{{ content.author?.displayName?.slice(0, 2).toUpperCase() || 'CP' }}</div>
|
|
53
|
+
</NuxtLink>
|
|
54
|
+
<div class="cpub-author-info">
|
|
55
|
+
<NuxtLink v-if="content.author" :to="`/u/${content.author.username}`" class="cpub-author-name">
|
|
56
|
+
{{ content.author.displayName || content.author.username }}
|
|
57
|
+
</NuxtLink>
|
|
58
|
+
<div class="cpub-author-meta">
|
|
59
|
+
<span v-if="content.author?.username">@{{ content.author.username }}</span>
|
|
60
|
+
<span class="cpub-sep">·</span>
|
|
61
|
+
<span>{{ new Date(content.publishedAt || content.createdAt).toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric' }) }}</span>
|
|
62
|
+
<span class="cpub-sep">·</span>
|
|
63
|
+
<span><i class="fa-regular fa-clock"></i> {{ content.readTime || '5 min read' }}</span>
|
|
64
|
+
<template v-if="hasSeries">
|
|
65
|
+
<span class="cpub-sep">·</span>
|
|
66
|
+
<span class="cpub-tag cpub-tag-pink">{{ seriesTitle }} · Part {{ seriesPart || 1 }} of {{ seriesTotalParts }}</span>
|
|
67
|
+
</template>
|
|
68
|
+
</div>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
|
|
72
|
+
<!-- ENGAGEMENT ROW -->
|
|
73
|
+
<div class="cpub-engagement-row">
|
|
74
|
+
<div class="cpub-eng-stat"><i class="fa-regular fa-eye"></i> {{ content.viewCount?.toLocaleString() || '0' }} views</div>
|
|
75
|
+
<div class="cpub-eng-sep"></div>
|
|
76
|
+
<button class="cpub-eng-btn" :class="{ liked }" @click="toggleLike">
|
|
77
|
+
<i class="fa-solid fa-heart"></i> {{ likeCount }}
|
|
78
|
+
</button>
|
|
79
|
+
<button class="cpub-eng-btn" :class="{ bookmarked }" @click="toggleBookmark">
|
|
80
|
+
<i class="fa-solid fa-bookmark"></i> Bookmark
|
|
81
|
+
</button>
|
|
82
|
+
<div class="cpub-eng-spacer"></div>
|
|
83
|
+
<button class="cpub-eng-btn" @click="share"><i class="fa-solid fa-share-nodes"></i> Share</button>
|
|
84
|
+
<button class="cpub-eng-btn"><i class="fa-solid fa-ellipsis"></i></button>
|
|
85
|
+
</div>
|
|
86
|
+
|
|
87
|
+
<!-- BLOG BODY (PROSE) -->
|
|
88
|
+
<div class="cpub-prose">
|
|
89
|
+
<template v-if="content.content && Array.isArray(content.content) && (content.content as unknown[]).length > 0">
|
|
90
|
+
<BlocksBlockContentRenderer :blocks="(content.content as [string, Record<string, unknown>][])" />
|
|
91
|
+
</template>
|
|
92
|
+
<template v-else>
|
|
93
|
+
<p>No content body yet.</p>
|
|
94
|
+
</template>
|
|
95
|
+
</div>
|
|
96
|
+
|
|
97
|
+
<!-- SERIES NAVIGATION -->
|
|
98
|
+
<div v-if="hasSeries" class="cpub-series-nav">
|
|
99
|
+
<div class="cpub-series-header">
|
|
100
|
+
<div class="cpub-series-icon"><i class="fa-solid fa-layer-group"></i></div>
|
|
101
|
+
<div>
|
|
102
|
+
<div class="cpub-series-label">Series</div>
|
|
103
|
+
<div class="cpub-series-title">{{ seriesTitle }}</div>
|
|
104
|
+
</div>
|
|
105
|
+
<div style="margin-left:auto;">
|
|
106
|
+
<span class="cpub-tag cpub-tag-pink">Part {{ seriesPart || 1 }} of {{ seriesTotalParts }}</span>
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
<div class="cpub-series-progress">
|
|
110
|
+
<div class="cpub-series-progress-label">
|
|
111
|
+
<span>Progress</span>
|
|
112
|
+
<span>{{ seriesPart || 1 }} / {{ seriesTotalParts }} published</span>
|
|
113
|
+
</div>
|
|
114
|
+
<div class="cpub-series-progress-track">
|
|
115
|
+
<div class="cpub-series-progress-fill" :style="{ width: ((seriesPart || 1) / seriesTotalParts * 100) + '%' }"></div>
|
|
116
|
+
</div>
|
|
117
|
+
</div>
|
|
118
|
+
<div class="cpub-series-nav-btns">
|
|
119
|
+
<NuxtLink v-if="content.seriesPrev" :to="content.seriesPrev.url || '#'" class="cpub-series-nav-btn cpub-prev">
|
|
120
|
+
<div class="cpub-series-nav-dir"><i class="fa-solid fa-chevron-left"></i> Previous</div>
|
|
121
|
+
<div class="cpub-series-nav-ep">Part {{ (seriesPart || 2) - 1 }}</div>
|
|
122
|
+
<div class="cpub-series-nav-post-title">{{ content.seriesPrev.title }}</div>
|
|
123
|
+
</NuxtLink>
|
|
124
|
+
<div v-else class="cpub-series-nav-btn cpub-prev cpub-disabled">
|
|
125
|
+
<div class="cpub-series-nav-dir"><i class="fa-solid fa-chevron-left"></i> Previous</div>
|
|
126
|
+
<div class="cpub-series-nav-ep">—</div>
|
|
127
|
+
</div>
|
|
128
|
+
<NuxtLink v-if="content.seriesNext" :to="content.seriesNext.url || '#'" class="cpub-series-nav-btn cpub-next">
|
|
129
|
+
<div class="cpub-series-nav-dir">Next <i class="fa-solid fa-chevron-right"></i></div>
|
|
130
|
+
<div class="cpub-series-nav-ep">Part {{ (seriesPart || 1) + 1 }}</div>
|
|
131
|
+
<div class="cpub-series-nav-post-title">{{ content.seriesNext.title }}</div>
|
|
132
|
+
</NuxtLink>
|
|
133
|
+
<div v-else class="cpub-series-nav-btn cpub-next cpub-disabled">
|
|
134
|
+
<div class="cpub-series-nav-dir">Next <i class="fa-solid fa-chevron-right"></i></div>
|
|
135
|
+
<div class="cpub-series-nav-ep">Coming soon</div>
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
</div>
|
|
139
|
+
|
|
140
|
+
<!-- TAGS -->
|
|
141
|
+
<div v-if="content.tags?.length" class="cpub-tags-row">
|
|
142
|
+
<div class="cpub-tags-label">Tags</div>
|
|
143
|
+
<span
|
|
144
|
+
v-for="(tag, i) in content.tags"
|
|
145
|
+
:key="tag.id || tag.name || i"
|
|
146
|
+
class="cpub-tag"
|
|
147
|
+
:class="{ 'cpub-tag-pink': i === 0 }"
|
|
148
|
+
>
|
|
149
|
+
{{ tag.name || tag }}
|
|
150
|
+
</span>
|
|
151
|
+
</div>
|
|
152
|
+
|
|
153
|
+
<!-- AUTHOR CARD -->
|
|
154
|
+
<div v-if="content.author" class="cpub-author-card">
|
|
155
|
+
<div class="cpub-av cpub-av-xl">{{ content.author.displayName?.slice(0, 2).toUpperCase() || 'CP' }}</div>
|
|
156
|
+
<div class="cpub-author-card-info">
|
|
157
|
+
<div class="cpub-author-card-label">Posted by</div>
|
|
158
|
+
<div class="cpub-author-card-name">{{ content.author.displayName || content.author.username }}</div>
|
|
159
|
+
<div class="cpub-author-card-handle">@{{ content.author.username }}</div>
|
|
160
|
+
<div v-if="content.author.bio" class="cpub-author-card-bio">{{ content.author.bio }}</div>
|
|
161
|
+
<div class="cpub-author-card-bottom">
|
|
162
|
+
<span class="cpub-author-card-stat"><strong>{{ content.author.postCount ?? 0 }}</strong> posts</span>
|
|
163
|
+
<span class="cpub-author-card-stat"><strong>{{ content.author.followerCount ?? 0 }}</strong> followers</span>
|
|
164
|
+
<div class="cpub-author-card-actions">
|
|
165
|
+
<button class="cpub-btn cpub-btn-sm"><i class="fa-solid fa-rss"></i> Follow</button>
|
|
166
|
+
</div>
|
|
167
|
+
</div>
|
|
168
|
+
</div>
|
|
169
|
+
</div>
|
|
170
|
+
|
|
171
|
+
<!-- COMMENTS -->
|
|
172
|
+
<CommentSection :target-type="content.type" :target-id="content.id" :federated-content-id="federatedId" />
|
|
173
|
+
|
|
174
|
+
</div>
|
|
175
|
+
</div>
|
|
176
|
+
</template>
|
|
177
|
+
|
|
178
|
+
<style scoped>
|
|
179
|
+
/* ── BLOG WRAP ── */
|
|
180
|
+
.cpub-blog-wrap {
|
|
181
|
+
max-width: 720px;
|
|
182
|
+
margin: 0 auto;
|
|
183
|
+
padding: 40px 24px 80px;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/* ── TYPE BADGE ── */
|
|
187
|
+
.cpub-content-type-badge {
|
|
188
|
+
display: inline-flex;
|
|
189
|
+
align-items: center;
|
|
190
|
+
gap: 5px;
|
|
191
|
+
font-size: 10px;
|
|
192
|
+
font-family: var(--font-mono);
|
|
193
|
+
letter-spacing: 0.1em;
|
|
194
|
+
text-transform: uppercase;
|
|
195
|
+
color: var(--green);
|
|
196
|
+
border: 1px solid var(--border);
|
|
197
|
+
background: var(--green-bg);
|
|
198
|
+
padding: 3px 10px;
|
|
199
|
+
margin-bottom: 16px;
|
|
200
|
+
box-shadow: var(--shadow-sm);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/* ── TITLE ── */
|
|
204
|
+
.cpub-blog-title {
|
|
205
|
+
font-size: 26px;
|
|
206
|
+
font-weight: 700;
|
|
207
|
+
line-height: 1.25;
|
|
208
|
+
color: var(--text);
|
|
209
|
+
margin-bottom: 20px;
|
|
210
|
+
letter-spacing: -0.01em;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/* ── AVATARS ── */
|
|
214
|
+
.cpub-av {
|
|
215
|
+
width: 28px;
|
|
216
|
+
height: 28px;
|
|
217
|
+
border-radius: 50%;
|
|
218
|
+
background: var(--surface3);
|
|
219
|
+
border: 1px solid var(--border);
|
|
220
|
+
display: flex;
|
|
221
|
+
align-items: center;
|
|
222
|
+
justify-content: center;
|
|
223
|
+
font-size: 10px;
|
|
224
|
+
font-weight: 600;
|
|
225
|
+
color: var(--text-dim);
|
|
226
|
+
font-family: var(--font-mono);
|
|
227
|
+
flex-shrink: 0;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.cpub-av-lg { width: 44px; height: 44px; font-size: 14px; }
|
|
231
|
+
.cpub-av-xl { width: 64px; height: 64px; font-size: 18px; }
|
|
232
|
+
|
|
233
|
+
/* ── AUTHOR ROW ── */
|
|
234
|
+
.cpub-author-row {
|
|
235
|
+
display: flex;
|
|
236
|
+
align-items: center;
|
|
237
|
+
gap: 12px;
|
|
238
|
+
margin-bottom: 20px;
|
|
239
|
+
flex-wrap: wrap;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.cpub-author-info {
|
|
243
|
+
display: flex;
|
|
244
|
+
flex-direction: column;
|
|
245
|
+
gap: 2px;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.cpub-author-name {
|
|
249
|
+
font-size: 13px;
|
|
250
|
+
font-weight: 600;
|
|
251
|
+
color: var(--text);
|
|
252
|
+
text-decoration: none;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.cpub-author-name:hover { color: var(--accent); }
|
|
256
|
+
|
|
257
|
+
.cpub-author-meta {
|
|
258
|
+
font-size: 11px;
|
|
259
|
+
color: var(--text-faint);
|
|
260
|
+
font-family: var(--font-mono);
|
|
261
|
+
display: flex;
|
|
262
|
+
align-items: center;
|
|
263
|
+
gap: 8px;
|
|
264
|
+
flex-wrap: wrap;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.cpub-sep { color: var(--border2); }
|
|
268
|
+
|
|
269
|
+
/* ── TAGS ── */
|
|
270
|
+
.cpub-tag {
|
|
271
|
+
display: inline-flex;
|
|
272
|
+
align-items: center;
|
|
273
|
+
font-size: 10px;
|
|
274
|
+
font-family: var(--font-mono);
|
|
275
|
+
padding: 2px 8px;
|
|
276
|
+
border: 1px solid var(--border2);
|
|
277
|
+
color: var(--text-dim);
|
|
278
|
+
background: var(--surface2);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.cpub-tag-pink {
|
|
282
|
+
border-color: var(--pink-border);
|
|
283
|
+
color: var(--pink);
|
|
284
|
+
background: var(--pink-bg);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.cpub-tag-teal {
|
|
288
|
+
border-color: var(--teal-border);
|
|
289
|
+
color: var(--teal);
|
|
290
|
+
background: var(--teal-bg);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/* ── ENGAGEMENT ROW ── */
|
|
294
|
+
.cpub-engagement-row {
|
|
295
|
+
display: flex;
|
|
296
|
+
align-items: center;
|
|
297
|
+
gap: 6px;
|
|
298
|
+
padding: 14px 0;
|
|
299
|
+
border-top: 1px solid var(--border);
|
|
300
|
+
border-bottom: 1px solid var(--border);
|
|
301
|
+
margin-bottom: 36px;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.cpub-eng-stat {
|
|
305
|
+
font-size: 11px;
|
|
306
|
+
font-family: var(--font-mono);
|
|
307
|
+
color: var(--text-faint);
|
|
308
|
+
display: flex;
|
|
309
|
+
align-items: center;
|
|
310
|
+
gap: 5px;
|
|
311
|
+
padding: 5px 10px;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.cpub-eng-btn {
|
|
315
|
+
display: flex;
|
|
316
|
+
align-items: center;
|
|
317
|
+
gap: 5px;
|
|
318
|
+
font-size: 11px;
|
|
319
|
+
font-family: var(--font-mono);
|
|
320
|
+
color: var(--text-dim);
|
|
321
|
+
background: var(--surface);
|
|
322
|
+
border: 1px solid var(--border);
|
|
323
|
+
padding: 5px 12px;
|
|
324
|
+
cursor: pointer;
|
|
325
|
+
transition: background var(--transition-fast), color var(--transition-fast);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.cpub-eng-btn:hover { background: var(--surface2); color: var(--text); }
|
|
329
|
+
.cpub-eng-btn.liked { color: var(--red); border-color: var(--red); background: var(--red-bg); }
|
|
330
|
+
.cpub-eng-btn.bookmarked { color: var(--yellow); border-color: var(--yellow); background: var(--yellow-bg); }
|
|
331
|
+
|
|
332
|
+
.cpub-eng-sep {
|
|
333
|
+
width: 2px;
|
|
334
|
+
height: 20px;
|
|
335
|
+
background: var(--border);
|
|
336
|
+
margin: 0 4px;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.cpub-eng-spacer { margin-left: auto; }
|
|
340
|
+
|
|
341
|
+
/* ── PROSE ── */
|
|
342
|
+
.cpub-prose {
|
|
343
|
+
font-size: 15px;
|
|
344
|
+
line-height: 1.9;
|
|
345
|
+
color: var(--text-dim);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.cpub-prose :deep(h2) {
|
|
349
|
+
font-size: 19px;
|
|
350
|
+
font-weight: 700;
|
|
351
|
+
color: var(--text);
|
|
352
|
+
margin: 40px 0 12px;
|
|
353
|
+
letter-spacing: -0.01em;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.cpub-prose :deep(h3) {
|
|
357
|
+
font-size: 15px;
|
|
358
|
+
font-weight: 600;
|
|
359
|
+
color: var(--text);
|
|
360
|
+
margin: 28px 0 8px;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.cpub-prose :deep(p) { margin-bottom: 18px; }
|
|
364
|
+
.cpub-prose :deep(strong) { color: var(--text); font-weight: 600; }
|
|
365
|
+
.cpub-prose :deep(em) { font-style: italic; color: var(--text-dim); }
|
|
366
|
+
.cpub-prose :deep(a) { color: var(--accent); text-decoration: none; }
|
|
367
|
+
.cpub-prose :deep(a:hover) { text-decoration: underline; }
|
|
368
|
+
|
|
369
|
+
.cpub-prose :deep(code) {
|
|
370
|
+
font-family: var(--font-mono);
|
|
371
|
+
font-size: 12.5px;
|
|
372
|
+
color: var(--teal);
|
|
373
|
+
background: var(--surface2);
|
|
374
|
+
border: 1px solid var(--border2);
|
|
375
|
+
padding: 1px 6px;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.cpub-prose :deep(pre code) {
|
|
379
|
+
background: none;
|
|
380
|
+
border: none;
|
|
381
|
+
padding: 0;
|
|
382
|
+
color: inherit;
|
|
383
|
+
font-size: inherit;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.cpub-prose :deep(ul),
|
|
387
|
+
.cpub-prose :deep(ol) {
|
|
388
|
+
margin: 0 0 18px 20px;
|
|
389
|
+
display: flex;
|
|
390
|
+
flex-direction: column;
|
|
391
|
+
gap: 7px;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.cpub-prose :deep(li) { color: var(--text-dim); }
|
|
395
|
+
|
|
396
|
+
.cpub-prose :deep(blockquote) {
|
|
397
|
+
border-left: 4px solid var(--border2);
|
|
398
|
+
padding: 14px 20px;
|
|
399
|
+
margin: 28px 0;
|
|
400
|
+
background: var(--surface);
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.cpub-prose :deep(blockquote p) {
|
|
404
|
+
color: var(--text-dim);
|
|
405
|
+
font-style: italic;
|
|
406
|
+
margin: 0;
|
|
407
|
+
font-size: 15px;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
.cpub-prose :deep(blockquote.reflection) {
|
|
411
|
+
border-left: 4px solid var(--purple);
|
|
412
|
+
background: var(--purple-bg);
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
.cpub-prose :deep(blockquote.reflection p) {
|
|
416
|
+
color: var(--purple);
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
.cpub-prose :deep(hr) {
|
|
420
|
+
border: none;
|
|
421
|
+
border-top: 1px solid var(--border);
|
|
422
|
+
margin: 36px 0;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
/* ── SERIES NAV ── */
|
|
426
|
+
.cpub-series-nav {
|
|
427
|
+
background: var(--surface);
|
|
428
|
+
border: 1px solid var(--border);
|
|
429
|
+
padding: 20px;
|
|
430
|
+
margin: 40px 0;
|
|
431
|
+
box-shadow: var(--shadow-sm);
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.cpub-series-header {
|
|
435
|
+
display: flex;
|
|
436
|
+
align-items: center;
|
|
437
|
+
gap: 8px;
|
|
438
|
+
margin-bottom: 14px;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.cpub-series-icon {
|
|
442
|
+
width: 28px;
|
|
443
|
+
height: 28px;
|
|
444
|
+
background: var(--pink-bg);
|
|
445
|
+
border: var(--border-width-default) solid var(--pink);
|
|
446
|
+
display: flex;
|
|
447
|
+
align-items: center;
|
|
448
|
+
justify-content: center;
|
|
449
|
+
font-size: 12px;
|
|
450
|
+
color: var(--pink);
|
|
451
|
+
flex-shrink: 0;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.cpub-series-label {
|
|
455
|
+
font-size: 10px;
|
|
456
|
+
font-family: var(--font-mono);
|
|
457
|
+
color: var(--text-faint);
|
|
458
|
+
letter-spacing: 0.1em;
|
|
459
|
+
text-transform: uppercase;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.cpub-series-title {
|
|
463
|
+
font-size: 13px;
|
|
464
|
+
font-weight: 600;
|
|
465
|
+
color: var(--text);
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.cpub-series-progress {
|
|
469
|
+
margin-bottom: 16px;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
.cpub-series-progress-label {
|
|
473
|
+
font-size: 11px;
|
|
474
|
+
font-family: var(--font-mono);
|
|
475
|
+
color: var(--text-faint);
|
|
476
|
+
margin-bottom: 6px;
|
|
477
|
+
display: flex;
|
|
478
|
+
justify-content: space-between;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.cpub-series-progress-track {
|
|
482
|
+
height: 4px;
|
|
483
|
+
background: var(--surface3);
|
|
484
|
+
overflow: hidden;
|
|
485
|
+
border: 1px solid var(--border2);
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
.cpub-series-progress-fill {
|
|
489
|
+
height: 100%;
|
|
490
|
+
background: var(--pink);
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.cpub-series-nav-btns {
|
|
494
|
+
display: grid;
|
|
495
|
+
grid-template-columns: 1fr 1fr;
|
|
496
|
+
gap: 8px;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
.cpub-series-nav-btn {
|
|
500
|
+
background: var(--surface);
|
|
501
|
+
border: 1px solid var(--border);
|
|
502
|
+
padding: 12px 14px;
|
|
503
|
+
cursor: pointer;
|
|
504
|
+
text-decoration: none;
|
|
505
|
+
display: flex;
|
|
506
|
+
flex-direction: column;
|
|
507
|
+
gap: 4px;
|
|
508
|
+
color: inherit;
|
|
509
|
+
transition: background var(--transition-fast);
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
.cpub-series-nav-btn:hover { background: var(--surface2); }
|
|
513
|
+
.cpub-series-nav-btn.cpub-next { text-align: right; }
|
|
514
|
+
.cpub-series-nav-btn.cpub-disabled { opacity: 0.5; pointer-events: none; }
|
|
515
|
+
|
|
516
|
+
.cpub-series-nav-dir {
|
|
517
|
+
font-size: 10px;
|
|
518
|
+
font-family: var(--font-mono);
|
|
519
|
+
color: var(--text-faint);
|
|
520
|
+
letter-spacing: 0.08em;
|
|
521
|
+
text-transform: uppercase;
|
|
522
|
+
display: flex;
|
|
523
|
+
align-items: center;
|
|
524
|
+
gap: 4px;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
.cpub-series-nav-btn.cpub-next .cpub-series-nav-dir { justify-content: flex-end; }
|
|
528
|
+
|
|
529
|
+
.cpub-series-nav-ep {
|
|
530
|
+
font-size: 10px;
|
|
531
|
+
font-family: var(--font-mono);
|
|
532
|
+
color: var(--pink);
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
.cpub-series-nav-post-title {
|
|
536
|
+
font-size: 12px;
|
|
537
|
+
font-weight: 600;
|
|
538
|
+
color: var(--text);
|
|
539
|
+
line-height: 1.35;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
/* ── TAGS ROW ── */
|
|
543
|
+
.cpub-tags-row {
|
|
544
|
+
display: flex;
|
|
545
|
+
flex-wrap: wrap;
|
|
546
|
+
gap: 6px;
|
|
547
|
+
margin: 36px 0 28px;
|
|
548
|
+
padding-top: 20px;
|
|
549
|
+
border-top: 1px solid var(--border);
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
.cpub-tags-label {
|
|
553
|
+
font-size: 10px;
|
|
554
|
+
font-family: var(--font-mono);
|
|
555
|
+
color: var(--text-faint);
|
|
556
|
+
letter-spacing: 0.1em;
|
|
557
|
+
text-transform: uppercase;
|
|
558
|
+
width: 100%;
|
|
559
|
+
margin-bottom: 4px;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
/* ── AUTHOR CARD ── */
|
|
563
|
+
.cpub-author-card {
|
|
564
|
+
background: var(--surface);
|
|
565
|
+
border: 1px solid var(--border);
|
|
566
|
+
padding: 22px;
|
|
567
|
+
display: flex;
|
|
568
|
+
gap: 18px;
|
|
569
|
+
align-items: flex-start;
|
|
570
|
+
margin: 28px 0;
|
|
571
|
+
box-shadow: var(--shadow-sm);
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
.cpub-author-card-info { flex: 1; min-width: 0; }
|
|
575
|
+
|
|
576
|
+
.cpub-author-card-label {
|
|
577
|
+
font-size: 9px;
|
|
578
|
+
font-family: var(--font-mono);
|
|
579
|
+
color: var(--text-faint);
|
|
580
|
+
letter-spacing: 0.12em;
|
|
581
|
+
text-transform: uppercase;
|
|
582
|
+
margin-bottom: 6px;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
.cpub-author-card-name {
|
|
586
|
+
font-size: 15px;
|
|
587
|
+
font-weight: 700;
|
|
588
|
+
color: var(--text);
|
|
589
|
+
margin-bottom: 3px;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
.cpub-author-card-handle {
|
|
593
|
+
font-size: 11px;
|
|
594
|
+
font-family: var(--font-mono);
|
|
595
|
+
color: var(--text-faint);
|
|
596
|
+
margin-bottom: 10px;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
.cpub-author-card-bio {
|
|
600
|
+
font-size: 13px;
|
|
601
|
+
color: var(--text-dim);
|
|
602
|
+
line-height: 1.65;
|
|
603
|
+
margin-bottom: 12px;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
.cpub-author-card-bottom {
|
|
607
|
+
display: flex;
|
|
608
|
+
align-items: center;
|
|
609
|
+
gap: 10px;
|
|
610
|
+
flex-wrap: wrap;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
.cpub-author-card-stat {
|
|
614
|
+
font-size: 11px;
|
|
615
|
+
font-family: var(--font-mono);
|
|
616
|
+
color: var(--text-faint);
|
|
617
|
+
display: flex;
|
|
618
|
+
align-items: center;
|
|
619
|
+
gap: 4px;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
.cpub-author-card-stat strong {
|
|
623
|
+
color: var(--text-dim);
|
|
624
|
+
font-weight: 600;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
.cpub-author-card-actions {
|
|
628
|
+
margin-left: auto;
|
|
629
|
+
display: flex;
|
|
630
|
+
gap: 8px;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
/* ── BUTTONS ── */
|
|
634
|
+
.cpub-btn {
|
|
635
|
+
font-family: var(--font-sans);
|
|
636
|
+
font-size: 12px;
|
|
637
|
+
padding: 6px 14px;
|
|
638
|
+
border: 1px solid var(--border);
|
|
639
|
+
background: var(--surface);
|
|
640
|
+
color: var(--text);
|
|
641
|
+
cursor: pointer;
|
|
642
|
+
display: inline-flex;
|
|
643
|
+
align-items: center;
|
|
644
|
+
gap: 6px;
|
|
645
|
+
transition: background var(--transition-fast);
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
.cpub-btn:hover { background: var(--surface2); }
|
|
649
|
+
.cpub-btn-sm { padding: 4px 10px; font-size: 11px; }
|
|
650
|
+
|
|
651
|
+
/* ── RESPONSIVE ── */
|
|
652
|
+
@media (max-width: 640px) {
|
|
653
|
+
.cpub-blog-wrap {
|
|
654
|
+
padding: 24px 16px 48px;
|
|
655
|
+
}
|
|
656
|
+
.cpub-engagement-row {
|
|
657
|
+
flex-wrap: wrap;
|
|
658
|
+
}
|
|
659
|
+
.cpub-series-nav-btns {
|
|
660
|
+
grid-template-columns: 1fr;
|
|
661
|
+
}
|
|
662
|
+
.cpub-author-card {
|
|
663
|
+
flex-direction: column;
|
|
664
|
+
gap: 16px;
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
</style>
|