diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..bff7847 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,9 @@ +.nuxt +.output +*.lock +*.md +.env +.env* +sentry* +package.json +node_modules \ No newline at end of file diff --git a/README.md b/README.md index b2d6778..4d67f34 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,8 @@ App Design: [PDF Document](/design.pdf) - MacOS - Windows XP style X - UI - Ghostty +- Some random chat app embeded to most business websites +- Treble's cool card effect (but not quite yet) ## Stack: @@ -48,6 +50,7 @@ App Design: [PDF Document](/design.pdf) - Custom Infra - Python - BeautifulSoup4 +- uv ## Folder Structure diff --git a/components/app/windows/about.vue b/components/app/windows/about.vue index d25eaec..2162ee4 100644 --- a/components/app/windows/about.vue +++ b/components/app/windows/about.vue @@ -24,10 +24,10 @@ import copyrightInfo from "~/components/app/info/copyright.vue"; > -
+
- 版權資訊 - + 版權資訊 +
diff --git a/components/app/windows/aboutNewsOrg.vue b/components/app/windows/aboutNewsOrg.vue index a724d80..d85bcf5 100644 --- a/components/app/windows/aboutNewsOrg.vue +++ b/components/app/windows/aboutNewsOrg.vue @@ -7,10 +7,10 @@ const loading = ref(true); const { t, locale } = useI18n(); const props = defineProps({ - values: { - type: String, - required: true, - } + values: { + type: String, + required: true, + }, }); const { @@ -36,7 +36,6 @@ onMounted(() => { scrambleText: fetchNewsOrgInfo.value?.title, }); }); - \ No newline at end of file + diff --git a/components/app/windows/chatbot.vue b/components/app/windows/chatbot.vue index 5b59087..5d77ef7 100644 --- a/components/app/windows/chatbot.vue +++ b/components/app/windows/chatbot.vue @@ -1,9 +1,11 @@ diff --git a/components/app/windows/sources.vue b/components/app/windows/sources.vue index b657ea7..0179b86 100644 --- a/components/app/windows/sources.vue +++ b/components/app/windows/sources.vue @@ -2,12 +2,12 @@ import noImageLogo from "~/public/geterrorassets/noImageLogo.svg"; const { t, locale } = useI18n(); -const emit = defineEmits(['windowopener', 'loadValue']) +const emit = defineEmits(["windowopener", "loadValue"]); const openNewWindow = (itemId: string) => { - emit('windowopener', "aboutNewsOrg") - emit('loadValue', itemId) -} + emit("windowopener", "aboutNewsOrg"); + emit("loadValue", itemId); +}; const { data: source, diff --git a/components/app/windows/tty.vue b/components/app/windows/tty.vue index 27e0f69..cc340bc 100644 --- a/components/app/windows/tty.vue +++ b/components/app/windows/tty.vue @@ -1,3 +1 @@ - \ No newline at end of file + diff --git a/components/ui/input/Input.vue b/components/ui/input/Input.vue index 1165ea5..5f1a13b 100644 --- a/components/ui/input/Input.vue +++ b/components/ui/input/Input.vue @@ -1,24 +1,32 @@ diff --git a/components/ui/input/index.ts b/components/ui/input/index.ts index a691dd6..110f046 100644 --- a/components/ui/input/index.ts +++ b/components/ui/input/index.ts @@ -1 +1 @@ -export { default as Input } from './Input.vue' +export { default as Input } from "./Input.vue"; diff --git a/i18n/locales/en.json b/i18n/locales/en.json index 3dd8b31..fb06a5f 100644 --- a/i18n/locales/en.json +++ b/i18n/locales/en.json @@ -61,6 +61,6 @@ "chatbot": "Chatbot", "starred": "Starred", "terminal": "Terminal", - "aboutNewsOrg": "About this news organization", + "aboutNewsOrg": "About this news organization" } } diff --git a/pages/app/desktop/index.vue b/pages/app/desktop/index.vue index 9ebfd41..418292f 100644 --- a/pages/app/desktop/index.vue +++ b/pages/app/desktop/index.vue @@ -157,7 +157,7 @@ const associAppWindow = [ id: "11", title: t("app.terminal"), component: Error404Window, - } + }, ]; /* @@ -304,14 +304,14 @@ const findAndOpenWindow = (windowName: string) => { const obtainTopWindowPosition = (windowId: string) => { if (!openingAppViaAnApp.value) { const windowIndex = activeWindows.value.findIndex( - (window) => window.id === windowId, - ); - if (windowIndex !== -1) { - const [window] = activeWindows.value.splice(windowIndex, 1); - titleAppName.value = window.name; - activeWindows.value.push(window); + (window) => window.id === windowId, + ); + if (windowIndex !== -1) { + const [window] = activeWindows.value.splice(windowIndex, 1); + titleAppName.value = window.name; + activeWindows.value.push(window); + } } -} }; const closeWindow = (windowId: string) => { @@ -326,8 +326,8 @@ const openNewWindowViaApp = (windowId: string) => { findAndOpenWindow(windowId); setTimeout(() => { openingAppViaAnApp.value = false; - },1000); -} + }, 1000); +}; const maxWindow = (windowId: string) => {}; diff --git a/prettier.config.js b/prettier.config.js new file mode 100644 index 0000000..e69de29