Skip to content

Commit 6d2b607

Browse files
committed
fix: 🐛 Various bugfixes
1 parent 52c1f1c commit 6d2b607

File tree

10 files changed

+76
-111
lines changed

10 files changed

+76
-111
lines changed

app.vue

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<template>
22
<NuxtPwaAssets />
3+
<PwaTransparentImage image="/logo.webp" />
4+
<PwaAppleImage image="/logo.webp" />
5+
<PwaMaskableImage image="/logo.webp" />
36
<Loading />
47
<NuxtLayout>
58
<NuxtPage />

components/buttons/DropdownElement.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<script lang="ts" setup>
1010
import type { ButtonHTMLAttributes } from "vue";
1111
12-
interface Props extends /* @vue-ignore */ ButtonHTMLAttributes { }
12+
interface Props extends /* @vue-ignore */ ButtonHTMLAttributes {}
1313
1414
defineProps<
1515
Props & {

components/buttons/base.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<script lang="ts" setup>
1212
import type { ButtonHTMLAttributes } from "vue";
1313
14-
interface Props extends /* @vue-ignore */ ButtonHTMLAttributes { }
14+
interface Props extends /* @vue-ignore */ ButtonHTMLAttributes {}
1515
1616
defineProps<
1717
Props & {

components/loading.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
<script lang="ts" setup>
1212
const loading = ref(true);
1313
14-
const estimatedProgress = (duration: number, elapsed: number) => (2 / Math.PI * 100) * Math.atan(elapsed / duration * 100 / 50);
14+
const estimatedProgress = (duration: number, elapsed: number) =>
15+
(2 / Math.PI) * 100 * Math.atan(((elapsed / duration) * 100) / 50);
1516
1617
const progress = ref(0);
1718
const timeAtStart = performance.now();

components/sidebars/navigation.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ const signOut = async () => {
233233
tokenData.value.access_token,
234234
tokenData.value.access_token,
235235
)
236-
.catch(() => { });
236+
.catch(() => {});
237237
238238
tokenData.value = null;
239239
me.value = null;

composables/Account.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ export const useAccount = (
1313

1414
watchEffect(() => {
1515
if (toValue(accountId))
16-
ref(client)
17-
.value?.getAccount(toValue(accountId) ?? "")
16+
toValue(client)
17+
?.getAccount(toValue(accountId) ?? "")
1818
.then((res) => {
1919
output.value = res.data;
2020
});

composables/ParsedContent.ts

-20
Original file line numberDiff line numberDiff line change
@@ -65,26 +65,6 @@ export const useParsedContent = (
6565
link.outerHTML = await renderToString(renderedMention);
6666
}
6767

68-
// Highlight code blocks
69-
/* const codeBlocks = contentHtml.querySelectorAll("pre code");
70-
for (const codeBlock of codeBlocks) {
71-
const code = codeBlock.textContent;
72-
if (!code) {
73-
continue;
74-
}
75-
76-
const highligher = await getShikiHighlighter();
77-
78-
const newCode = highligher.highlight(code, {});
79-
80-
// Replace parent pre tag with highlighted code
81-
const parent = codeBlock.parentElement;
82-
if (!parent) {
83-
continue;
84-
}
85-
parent.outerHTML = newCode;
86-
}*/
87-
8868
result.value = contentHtml.innerHTML;
8969
},
9070
{ immediate: true },

nuxt.config.ts

-19
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ export default defineNuxtConfig({
66
"@vueuse/nuxt",
77
"nuxt-headlessui",
88
"@nuxt/fonts",
9-
//"nuxt-shiki",
109
"@vee-validate/nuxt",
1110
"nuxt-security",
1211
"@vite-pwa/nuxt",
@@ -67,24 +66,6 @@ export default defineNuxtConfig({
6766
},
6867
keepalive: true,
6968
},
70-
/* shiki: {
71-
defaultTheme: "rose-pine",
72-
bundledLangs: [
73-
"javascript",
74-
"typescript",
75-
"html",
76-
"css",
77-
"json",
78-
"python",
79-
"toml",
80-
"rust",
81-
"sql",
82-
"scss",
83-
"bash",
84-
"shell",
85-
"yaml",
86-
],
87-
}, */
8869
nitro: {
8970
preset: "bun",
9071
minify: true,

package.json

+66-66
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,68 @@
11
{
2-
"name": "lysand-fe",
3-
"private": true,
4-
"type": "module",
5-
"license": "AGPL-3.0",
6-
"author": {
7-
"email": "[email protected]",
8-
"name": "CPlusPatch",
9-
"url": "https://cpluspatch.com"
10-
},
11-
"maintainers": [
12-
{
13-
"email": "[email protected]",
14-
"name": "CPlusPatch",
15-
"url": "https://cpluspatch.com"
16-
}
17-
],
18-
"repository": {
19-
"type": "git",
20-
"url": "git+https://github.com/lysand-org/lysand-fe.git"
21-
},
22-
"scripts": {
23-
"build": "nuxt build",
24-
"dev": "nuxt dev --https --https.cert config/lysand-fe.localhost.pem --https.key config/lysand-fe.localhost-key.pem --host lysand-fe.localhost",
25-
"generate": "nuxt generate",
26-
"preview": "nuxt preview",
27-
"postinstall": "nuxt prepare"
28-
},
29-
"dependencies": {
30-
"@nuxt/fonts": "^0.7.0",
31-
"@tailwindcss/typography": "^0.5.12",
32-
"@vee-validate/nuxt": "^4.12.6",
33-
"@vee-validate/zod": "^4.12.6",
34-
"@vite-pwa/nuxt": "^0.7.0",
35-
"c12": "^1.10.0",
36-
"html-to-text": "^9.0.5",
37-
"iconify-icon": "^2.1.0",
38-
"megalodon": "^10.0.0",
39-
"mitt": "^3.0.1",
40-
"nuxt": "^3.11.2",
41-
"nuxt-headlessui": "^1.2.0",
42-
"nuxt-security": "^2.0.0-beta.0",
43-
"nuxt-shiki": "^0.3.0",
44-
"overlayscrollbars": "^2.8.0",
45-
"overlayscrollbars-vue": "^0.5.9",
46-
"shiki": "^1.3.0",
47-
"vue": "^3.4.21",
48-
"vue-router": "^4.3.0",
49-
"zod": "^3.23.0"
50-
},
51-
"devDependencies": {
52-
"@biomejs/biome": "^1.6.4",
53-
"@nuxtjs/seo": "^2.0.0-rc.10",
54-
"@nuxtjs/tailwindcss": "^6.11.4",
55-
"@tailwindcss/forms": "^0.5.7",
56-
"@types/html-to-text": "^9.0.4",
57-
"@vue-email/nuxt": "^0.8.19"
58-
},
59-
"trustedDependencies": [
60-
"@biomejs/biome",
61-
"@fortawesome/fontawesome-common-types",
62-
"@fortawesome/free-regular-svg-icons",
63-
"@fortawesome/free-solid-svg-icons",
64-
"esbuild",
65-
"json-editor-vue",
66-
"vue-demi"
67-
]
2+
"name": "lysand-fe",
3+
"private": true,
4+
"type": "module",
5+
"license": "AGPL-3.0",
6+
"author": {
7+
"email": "[email protected]",
8+
"name": "CPlusPatch",
9+
"url": "https://cpluspatch.com"
10+
},
11+
"maintainers": [
12+
{
13+
"email": "[email protected]",
14+
"name": "CPlusPatch",
15+
"url": "https://cpluspatch.com"
16+
}
17+
],
18+
"repository": {
19+
"type": "git",
20+
"url": "git+https://github.com/lysand-org/lysand-fe.git"
21+
},
22+
"scripts": {
23+
"build": "nuxt build",
24+
"dev": "nuxt dev --https --https.cert config/lysand-fe.localhost.pem --https.key config/lysand-fe.localhost-key.pem --host lysand-fe.localhost",
25+
"generate": "nuxt generate",
26+
"preview": "nuxt preview",
27+
"postinstall": "nuxt prepare"
28+
},
29+
"dependencies": {
30+
"@nuxt/fonts": "^0.7.0",
31+
"@tailwindcss/typography": "^0.5.12",
32+
"@vee-validate/nuxt": "^4.12.6",
33+
"@vee-validate/zod": "^4.12.6",
34+
"@vite-pwa/nuxt": "^0.7.0",
35+
"c12": "^1.10.0",
36+
"html-to-text": "^9.0.5",
37+
"iconify-icon": "^2.1.0",
38+
"megalodon": "^10.0.0",
39+
"mitt": "^3.0.1",
40+
"nuxt": "^3.11.2",
41+
"nuxt-headlessui": "^1.2.0",
42+
"nuxt-security": "^2.0.0-beta.0",
43+
"nuxt-shiki": "^0.3.0",
44+
"overlayscrollbars": "^2.8.0",
45+
"overlayscrollbars-vue": "^0.5.9",
46+
"shiki": "^1.3.0",
47+
"vue": "^3.4.21",
48+
"vue-router": "^4.3.0",
49+
"zod": "^3.23.0"
50+
},
51+
"devDependencies": {
52+
"@biomejs/biome": "^1.6.4",
53+
"@nuxtjs/seo": "^2.0.0-rc.10",
54+
"@nuxtjs/tailwindcss": "^6.11.4",
55+
"@tailwindcss/forms": "^0.5.7",
56+
"@types/html-to-text": "^9.0.4",
57+
"@vue-email/nuxt": "^0.8.19"
58+
},
59+
"trustedDependencies": [
60+
"@biomejs/biome",
61+
"@fortawesome/fontawesome-common-types",
62+
"@fortawesome/free-regular-svg-icons",
63+
"@fortawesome/free-solid-svg-icons",
64+
"esbuild",
65+
"json-editor-vue",
66+
"vue-demi"
67+
]
6868
}

public/logo.webp

5.31 KB
Binary file not shown.

0 commit comments

Comments
 (0)