From edec07ad444de488fac8981458c10803719b60a7 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Mon, 21 Dec 2020 17:48:15 +0800 Subject: [PATCH] chore: improve lighthouse --- README.md | 4 ++-- index.html | 1 + locales/en.json | 6 +++++- src/App.vue | 4 ++-- src/components/Footer.vue | 18 +++++++++--------- src/pages/index.vue | 9 ++++++--- tailwind.config.js | 1 + vite.config.ts | 1 + 8 files changed, 27 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index ead6307..4752782 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ - [TypeScript](https://www.typescriptlang.org/) - [Vue TypeScript Plugin](https://github.com/znck/vue-developer-experience/tree/master/packages/typescript-plugin-vue) - better type support for Vue - [pnpm](https://pnpm.js.org/) - fast, disk space efficient package manager -- [presite](https://github.com/egoist/presite) - Server-side generation +- [vite-ssg](https://github.com/antfu/vite-ssg) - Server-side generation - [Netlify](https://www.netlify.com/) - deploy - [VS Code Extensions](./.vscode/extensions.json) - [Iconify IntelliSense](https://marketplace.visualstudio.com/items?itemName=antfu.iconify) @@ -98,7 +98,7 @@ As this template is strongly opinionated, the following provides a curated list ### Clone to local -If you prefer to do it manually with cleaner git history +If you prefer to do it manually with the cleaner git history ```bash npx degit antfu/vitesse my-vitesse-app diff --git a/index.html b/index.html index ce4a960..2842981 100644 --- a/index.html +++ b/index.html @@ -7,6 +7,7 @@ + Vitesse diff --git a/locales/en.json b/locales/en.json index 35d15d2..5b0bcb4 100644 --- a/locales/en.json +++ b/locales/en.json @@ -1,7 +1,11 @@ { "button": { + "about": "About", "back": "Back", - "go": "GO" + "go": "GO", + "home": "Home", + "toggle_dark": "Toggle dark mode", + "toggle_langs": "Change languages" }, "intro": { "desc": "Opinionated Vite Starter Template", diff --git a/src/App.vue b/src/App.vue index e8ad2ba..95bd371 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,6 @@ diff --git a/src/components/Footer.vue b/src/components/Footer.vue index 2f237d7..17ef4e0 100644 --- a/src/components/Footer.vue +++ b/src/components/Footer.vue @@ -1,25 +1,25 @@