diff --git a/app/app.vue b/app/app.vue index ef7bc6b..ca0b432 100644 --- a/app/app.vue +++ b/app/app.vue @@ -1,22 +1,38 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + diff --git a/app/assets/css/main.css b/app/assets/css/main.css index 63e25d3..4e7a479 100644 --- a/app/assets/css/main.css +++ b/app/assets/css/main.css @@ -4,7 +4,6 @@ @layer theme, base, components, utilities; @import "tailwindcss/theme.css" layer(theme); -@import "tailwindcss/preflight.css" layer(base); @import "tailwindcss/utilities.css" layer(utilities); @layer base { diff --git a/app/components.d.ts b/app/components.d.ts index 3b6ff06..637f7a3 100644 --- a/app/components.d.ts +++ b/app/components.d.ts @@ -12,16 +12,27 @@ export {} /* prettier-ignore */ declare module 'vue' { export interface GlobalComponents { + NAlert: typeof import('naive-ui')['NAlert'] NAvatar: typeof import('naive-ui')['NAvatar'] NButton: typeof import('naive-ui')['NButton'] + NCard: typeof import('naive-ui')['NCard'] + NCardSection: typeof import('naive-ui')['NCardSection'] + NChip: typeof import('naive-ui')['NChip'] NConfigProvider: typeof import('naive-ui')['NConfigProvider'] + NDialog: typeof import('naive-ui')['NDialog'] NDialogProvider: typeof import('naive-ui')['NDialogProvider'] NDropdown: typeof import('naive-ui')['NDropdown'] + NIcon: typeof import('naive-ui')['NIcon'] NInput: typeof import('naive-ui')['NInput'] NLoadingBarProvider: typeof import('naive-ui')['NLoadingBarProvider'] + NMenu: typeof import('naive-ui')['NMenu'] NMessageProvider: typeof import('naive-ui')['NMessageProvider'] + NModal: typeof import('naive-ui')['NModal'] NNotificationProvider: typeof import('naive-ui')['NNotificationProvider'] NSelect: typeof import('naive-ui')['NSelect'] + NSpace: typeof import('naive-ui')['NSpace'] + NSpin: typeof import('naive-ui')['NSpin'] + NTag: typeof import('naive-ui')['NTag'] NThemeEditor: typeof import('naive-ui')['NThemeEditor'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] @@ -30,16 +41,27 @@ declare module 'vue' { // For TSX support declare global { + const NAlert: typeof import('naive-ui')['NAlert'] const NAvatar: typeof import('naive-ui')['NAvatar'] const NButton: typeof import('naive-ui')['NButton'] + const NCard: typeof import('naive-ui')['NCard'] + const NCardSection: typeof import('naive-ui')['NCardSection'] + const NChip: typeof import('naive-ui')['NChip'] const NConfigProvider: typeof import('naive-ui')['NConfigProvider'] + const NDialog: typeof import('naive-ui')['NDialog'] const NDialogProvider: typeof import('naive-ui')['NDialogProvider'] const NDropdown: typeof import('naive-ui')['NDropdown'] + const NIcon: typeof import('naive-ui')['NIcon'] const NInput: typeof import('naive-ui')['NInput'] const NLoadingBarProvider: typeof import('naive-ui')['NLoadingBarProvider'] + const NMenu: typeof import('naive-ui')['NMenu'] const NMessageProvider: typeof import('naive-ui')['NMessageProvider'] + const NModal: typeof import('naive-ui')['NModal'] const NNotificationProvider: typeof import('naive-ui')['NNotificationProvider'] const NSelect: typeof import('naive-ui')['NSelect'] + const NSpace: typeof import('naive-ui')['NSpace'] + const NSpin: typeof import('naive-ui')['NSpin'] + const NTag: typeof import('naive-ui')['NTag'] const NThemeEditor: typeof import('naive-ui')['NThemeEditor'] const RouterLink: typeof import('vue-router')['RouterLink'] const RouterView: typeof import('vue-router')['RouterView'] diff --git a/app/components/Post/PostHeader.vue b/app/components/Post/PostHeader.vue index f9f280e..8547cee 100644 --- a/app/components/Post/PostHeader.vue +++ b/app/components/Post/PostHeader.vue @@ -1,8 +1,9 @@ - diff --git a/app/components/Post/PostItem.vue b/app/components/Post/PostItem.vue index 0c85d4e..689fba1 100644 --- a/app/components/Post/PostItem.vue +++ b/app/components/Post/PostItem.vue @@ -1,107 +1,117 @@ - - - - + + + - - - {{ props.item.title }} - - - {{ props.item.description }} - - + + + {{ props.item.title }} + + + {{ props.item.description }} + + - - - + + + - - - - - Replying to - - - Post unavailable - - - - - - - - Forwarded - - - Post unavailable - - - - - - - - - - + - - Post truncated, tap to see details... - - - - - + + Replying to + + + Post unavailable + + + + + + + Forwarded + + + Post unavailable + + + + + + + + + + + + + Post truncated, tap to see details... + + + + + - + - - diff --git a/app/components/Post/RepliesCompactList.vue b/app/components/Post/RepliesCompactList.vue index b9709ca..567d416 100644 --- a/app/components/Post/RepliesCompactList.vue +++ b/app/components/Post/RepliesCompactList.vue @@ -1,29 +1,22 @@ - - + {{ error }} - + - + - + - + - + - - + + No replies yet - + diff --git a/app/layouts/minimal.vue b/app/layouts/minimal.vue index c9bd727..01f6705 100644 --- a/app/layouts/minimal.vue +++ b/app/layouts/minimal.vue @@ -1,5 +1,5 @@ - + @@ -25,6 +25,4 @@ diff --git a/app/pages/auth/authorize.vue b/app/pages/auth/authorize.vue index f1a5db0..ca6e11b 100644 --- a/app/pages/auth/authorize.vue +++ b/app/pages/auth/authorize.vue @@ -6,12 +6,7 @@ - + @@ -74,7 +69,7 @@ @@ -83,7 +78,7 @@ @@ -106,9 +101,6 @@ import { useRoute } from "vue-router" import { useSolarNetwork } from "~/composables/useSolarNetwork" import IconLight from "~/assets/images/cloudy-lamb.png" -import IconDark from "~/assets/images/cloudy-lamb@dark.png" - -const colorMode = useColorMode() const route = useRoute() const api = useSolarNetwork() diff --git a/app/pages/auth/create-account.vue b/app/pages/auth/create-account.vue index 5d16356..c561748 100644 --- a/app/pages/auth/create-account.vue +++ b/app/pages/auth/create-account.vue @@ -6,12 +6,7 @@ - + @@ -148,13 +143,10 @@ import { useSolarNetwork } from "~/composables/useSolarNetwork" import CaptchaWidget from "~/components/CaptchaWidget.vue" import IconLight from "~/assets/images/cloudy-lamb.png" -import IconDark from "~/assets/images/cloudy-lamb@dark.png" const router = useRouter() const api = useSolarNetwork() -const colorMode = useColorMode() - useHead({ title: "Create Account" }) diff --git a/app/pages/auth/login.vue b/app/pages/auth/login.vue index 9710aa4..819e8cb 100644 --- a/app/pages/auth/login.vue +++ b/app/pages/auth/login.vue @@ -242,8 +242,6 @@ function getFactorName(factorType: number) { return "Unknown Factor" } } - -const colorMode = useColorMode() @@ -254,12 +252,7 @@ const colorMode = useColorMode() - + @@ -370,14 +363,14 @@ const colorMode = useColorMode() factor.type === 0 ? "mdi-lock" : factor.type === 1 - ? "mdi-email" - : factor.type === 2 - ? "mdi-cellphone" - : factor.type === 3 - ? "mdi-clock" - : factor.type === 4 - ? "mdi-numeric" - : "mdi-shield-key" + ? "mdi-email" + : factor.type === 2 + ? "mdi-cellphone" + : factor.type === 3 + ? "mdi-clock" + : factor.type === 4 + ? "mdi-numeric" + : "mdi-shield-key" }} diff --git a/app/pages/index.vue b/app/pages/index.vue index b54b8a8..35712f8 100644 --- a/app/pages/index.vue +++ b/app/pages/index.vue @@ -11,8 +11,11 @@ - - + + About Welcome to the Solar Network The open social network. Friendly to everyone. @@ -25,7 +28,7 @@ {{ version.updatedAt }} - + @@ -70,7 +73,7 @@ const userStore = useUserStore() const version = ref(null) async function fetchVersion() { const api = useSolarNetwork() - const resp = await api("/sphere/version") + const resp = await api("/version") version.value = resp as SnVersion } onMounted(() => fetchVersion()) @@ -118,6 +121,7 @@ async function refreshActivities() { -ms-overflow-style: none; scrollbar-width: none; } + .hide-scrollbar::-webkit-scrollbar { display: none; } diff --git a/app/pages/posts/[...slug].vue b/app/pages/posts/[...slug].vue index 7d459b6..3e1780b 100644 --- a/app/pages/posts/[...slug].vue +++ b/app/pages/posts/[...slug].vue @@ -1,22 +1,26 @@ - + - + Loading post... - - Error Loading Post + {{ error?.statusMessage || "Failed to load post" }} - + - + @@ -38,27 +42,27 @@ - mdi-calendar + {{ formatDate(post.createdAt) }} - mdi-pencil + Updated {{ formatDate(post.updatedAt) }} - mdi-eye + {{ post.viewsTotal }} / {{ post.viewsUnique }} views - + - + - + - + + Replies - + - - - - - {{ category.slug }} - - - {{ tag.slug }} - - - - + + Tags & Categories + + + {{ category.slug }} + + + {{ tag.slug }} + + + - - - - - + + Reactions + + - +
- {{ props.item.description }} -
+ {{ props.item.description }} +
Post truncated, tap to see details...
No replies yet
Welcome to the Solar Network
The open social network. Friendly to everyone.
Loading post...