From 3829e2e3f5096845e01547848e1a4a1def334000 Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Tue, 30 Aug 2022 10:05:21 -0800 Subject: [PATCH] init frontend --- frontend/.editorconfig | 12 + frontend/.gitignore | 10 + frontend/.prettierrc | 9 + frontend/LICENSE | 21 + frontend/README.md | 137 + frontend/auto-imports.d.ts | 252 + frontend/components.d.ts | 18 + frontend/index.html | 34 + frontend/locales/en.json | 22 + frontend/locales/id.json | 22 + frontend/package.json | 69 + frontend/pnpm-lock.yaml | 5409 ++++++++++++++++++++ frontend/postcss.config.js | 6 + frontend/public/apple-touch-icon.png | Bin 0 -> 7911 bytes frontend/public/favicon-16x16.png | Bin 0 -> 647 bytes frontend/public/favicon-32x32.png | Bin 0 -> 1417 bytes frontend/public/favicon.ico | Bin 0 -> 15406 bytes frontend/public/pwa-192x192.png | Bin 0 -> 8867 bytes frontend/public/pwa-512x512.png | Bin 0 -> 22375 bytes frontend/public/robots.txt | 2 + frontend/public/site.webmanifest | 1 + frontend/src/App.vue | 3 + frontend/src/__test__/basic.spec.ts | 7 + frontend/src/assets/logo.png | Bin 0 -> 36025 bytes frontend/src/components/AppHeader.vue | 80 + frontend/src/components/Form/TextField.vue | 31 + frontend/src/env.d.ts | 8 + frontend/src/layouts/404.vue | 5 + frontend/src/layouts/default.vue | 18 + frontend/src/main.ts | 19 + frontend/src/modules/i18n.ts | 29 + frontend/src/modules/pinia.ts | 14 + frontend/src/modules/pwa.ts | 10 + frontend/src/pages/[...all].vue | 19 + frontend/src/pages/index.vue | 157 + frontend/src/router.ts | 17 + frontend/src/store/index.ts | 7 + frontend/src/styles/index.css | 3 + frontend/src/types/ViteSetupModule.ts | 3 + frontend/tailwind.config.js | 16 + frontend/tsconfig.json | 34 + frontend/typed-router.d.ts | 95 + frontend/vite.config.ts | 131 + 43 files changed, 6730 insertions(+) create mode 100644 frontend/.editorconfig create mode 100644 frontend/.gitignore create mode 100644 frontend/.prettierrc create mode 100644 frontend/LICENSE create mode 100644 frontend/README.md create mode 100644 frontend/auto-imports.d.ts create mode 100644 frontend/components.d.ts create mode 100644 frontend/index.html create mode 100644 frontend/locales/en.json create mode 100644 frontend/locales/id.json create mode 100644 frontend/package.json create mode 100644 frontend/pnpm-lock.yaml create mode 100644 frontend/postcss.config.js create mode 100644 frontend/public/apple-touch-icon.png create mode 100644 frontend/public/favicon-16x16.png create mode 100644 frontend/public/favicon-32x32.png create mode 100644 frontend/public/favicon.ico create mode 100644 frontend/public/pwa-192x192.png create mode 100644 frontend/public/pwa-512x512.png create mode 100644 frontend/public/robots.txt create mode 100644 frontend/public/site.webmanifest create mode 100644 frontend/src/App.vue create mode 100644 frontend/src/__test__/basic.spec.ts create mode 100644 frontend/src/assets/logo.png create mode 100644 frontend/src/components/AppHeader.vue create mode 100644 frontend/src/components/Form/TextField.vue create mode 100644 frontend/src/env.d.ts create mode 100644 frontend/src/layouts/404.vue create mode 100644 frontend/src/layouts/default.vue create mode 100644 frontend/src/main.ts create mode 100644 frontend/src/modules/i18n.ts create mode 100644 frontend/src/modules/pinia.ts create mode 100644 frontend/src/modules/pwa.ts create mode 100644 frontend/src/pages/[...all].vue create mode 100644 frontend/src/pages/index.vue create mode 100644 frontend/src/router.ts create mode 100644 frontend/src/store/index.ts create mode 100644 frontend/src/styles/index.css create mode 100644 frontend/src/types/ViteSetupModule.ts create mode 100644 frontend/tailwind.config.js create mode 100644 frontend/tsconfig.json create mode 100644 frontend/typed-router.d.ts create mode 100644 frontend/vite.config.ts diff --git a/frontend/.editorconfig b/frontend/.editorconfig new file mode 100644 index 0000000..9554c73 --- /dev/null +++ b/frontend/.editorconfig @@ -0,0 +1,12 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true + +# Matches multiple files with brace expansion notation +[*.{js,jsx,html,sass,vue,ts,tsx,json}] +charset = utf-8 +indent_style = tab +indent_size = 4 +trim_trailing_whitespace = true diff --git a/frontend/.gitignore b/frontend/.gitignore new file mode 100644 index 0000000..a0782ae --- /dev/null +++ b/frontend/.gitignore @@ -0,0 +1,10 @@ +node_modules +.DS_Store +dist +dist-ssr +*.local +.*-debug.log +*.log +.vercel +.vite-ssg-temp +.idea diff --git a/frontend/.prettierrc b/frontend/.prettierrc new file mode 100644 index 0000000..4b09075 --- /dev/null +++ b/frontend/.prettierrc @@ -0,0 +1,9 @@ +{ + "arrowParens": "avoid", + "semi": true, + "tabWidth": 4, + "useTabs": true, + "vueIndentScriptAndStyle": true, + "singleQuote": true, + "trailingComma": "es5" +} diff --git a/frontend/LICENSE b/frontend/LICENSE new file mode 100644 index 0000000..a441282 --- /dev/null +++ b/frontend/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2021 Christopher Reeve + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/frontend/README.md b/frontend/README.md new file mode 100644 index 0000000..c9c506a --- /dev/null +++ b/frontend/README.md @@ -0,0 +1,137 @@ +
+
+