From 025f556023c29f8f31dc00870c80a9d790bbb2f4 Mon Sep 17 00:00:00 2001 From: Corentin THOMASSET Date: Sat, 14 Oct 2023 18:24:54 +0200 Subject: [PATCH 01/60] refactor(ui): switched naive tooltip components to custom ones (#661) --- components.d.ts | 2 + pnpm-lock.yaml | 23 ++++- src/components/FavoriteButton.vue | 27 +++--- src/components/InputCopyable.vue | 13 ++- src/components/NavbarButtons.vue | 83 ++++++++----------- src/components/SpanCopyable.vue | 16 +--- src/components/TextareaCopyable.vue | 40 ++------- src/layouts/base.layout.vue | 52 ++++++------ .../benchmark-builder/dynamic-values.vue | 13 ++- .../editor/menu-bar-item.vue | 14 ++-- .../otp-code-generator-and-validator.vue | 15 ++-- .../token-display.vue | 76 +++++------------ .../user-agent-result-cards.vue | 13 ++- src/ui/c-tooltip/c-tooltip.demo.vue | 18 ++++ src/ui/c-tooltip/c-tooltip.vue | 15 +++- 15 files changed, 177 insertions(+), 243 deletions(-) diff --git a/components.d.ts b/components.d.ts index 1a5ce1a9..3b7d96ea 100644 --- a/components.d.ts +++ b/components.d.ts @@ -90,6 +90,8 @@ declare module '@vue/runtime-core' { IconMdiDownload: typeof import('~icons/mdi/download')['default'] IconMdiEye: typeof import('~icons/mdi/eye')['default'] IconMdiEyeOff: typeof import('~icons/mdi/eye-off')['default'] + IconMdiFavoriteFilled: typeof import('~icons/mdi/favorite-filled')['default'] + IconMdiHeart: typeof import('~icons/mdi/heart')['default'] IconMdiPause: typeof import('~icons/mdi/pause')['default'] IconMdiPlay: typeof import('~icons/mdi/play')['default'] IconMdiRecord: typeof import('~icons/mdi/record')['default'] diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 65579a34..2428cee6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -3272,7 +3272,7 @@ packages: dependencies: '@unhead/dom': 0.5.1 '@unhead/schema': 0.5.1 - '@vueuse/shared': 10.4.1(vue@3.3.4) + '@vueuse/shared': 10.5.0(vue@3.3.4) unhead: 0.5.1 vue: 3.3.4 transitivePeerDependencies: @@ -3854,10 +3854,10 @@ packages: - vue dev: false - /@vueuse/shared@10.4.1(vue@3.3.4): - resolution: {integrity: sha512-vz5hbAM4qA0lDKmcr2y3pPdU+2EVw/yzfRsBdu+6+USGa4PxqSQRYIUC9/NcT06y+ZgaTsyURw2I9qOFaaXHAg==} + /@vueuse/shared@10.5.0(vue@3.3.4): + resolution: {integrity: sha512-18iyxbbHYLst9MqU1X1QNdMHIjks6wC7XTVf0KNOv5es/Ms6gjVFCAAWTVP2JStuGqydg3DT+ExpFORUEi9yhg==} dependencies: - vue-demi: 0.14.5(vue@3.3.4) + vue-demi: 0.14.6(vue@3.3.4) transitivePeerDependencies: - '@vue/composition-api' - vue @@ -8790,6 +8790,21 @@ packages: vue: 3.3.4 dev: false + /vue-demi@0.14.6(vue@3.3.4): + resolution: {integrity: sha512-8QA7wrYSHKaYgUxDA5ZC24w+eHm3sYCbp0EzcDwKqN3p6HqtTCGR/GVsPyZW92unff4UlcSh++lmqDWN3ZIq4w==} + engines: {node: '>=12'} + hasBin: true + requiresBuild: true + peerDependencies: + '@vue/composition-api': ^1.0.0-rc.1 + vue: ^3.0.0-0 || ^2.6.0 + peerDependenciesMeta: + '@vue/composition-api': + optional: true + dependencies: + vue: 3.3.4 + dev: false + /vue-eslint-parser@9.3.1(eslint@8.47.0): resolution: {integrity: sha512-Clr85iD2XFZ3lJ52/ppmUDG/spxQu6+MAeHXjjyI4I1NUYZ9xmenQp4N0oaHJhrA8OOxltCVxMRfANGa70vU0g==} engines: {node: ^14.17.0 || >=16.0.0} diff --git a/src/components/FavoriteButton.vue b/src/components/FavoriteButton.vue index ef180a65..c3f0aaad 100644 --- a/src/components/FavoriteButton.vue +++ b/src/components/FavoriteButton.vue @@ -1,6 +1,4 @@ diff --git a/src/components/InputCopyable.vue b/src/components/InputCopyable.vue index ed678954..a69a039a 100644 --- a/src/components/InputCopyable.vue +++ b/src/components/InputCopyable.vue @@ -13,14 +13,11 @@ const tooltipText = computed(() => isJustCopied.value ? 'Copied!' : 'Copy to cli diff --git a/src/components/NavbarButtons.vue b/src/components/NavbarButtons.vue index 5b1a3a4e..653afdd2 100644 --- a/src/components/NavbarButtons.vue +++ b/src/components/NavbarButtons.vue @@ -7,56 +7,43 @@ const { isDarkTheme } = toRefs(styleStore); diff --git a/src/components/TextareaCopyable.vue b/src/components/TextareaCopyable.vue index b349d041..8b0aae61 100644 --- a/src/components/TextareaCopyable.vue +++ b/src/components/TextareaCopyable.vue @@ -40,7 +40,7 @@ const tooltipText = computed(() => isJustCopied.value ? 'Copied!' : copyMessage. diff --git a/src/tools/benchmark-builder/dynamic-values.vue b/src/tools/benchmark-builder/dynamic-values.vue index 975a545c..e048ef99 100644 --- a/src/tools/benchmark-builder/dynamic-values.vue +++ b/src/tools/benchmark-builder/dynamic-values.vue @@ -39,14 +39,11 @@ function onInputEnter(index: number) { autofocus @keydown.enter="onInputEnter(index)" /> - - - Delete value - + + + + + diff --git a/src/tools/html-wysiwyg-editor/editor/menu-bar-item.vue b/src/tools/html-wysiwyg-editor/editor/menu-bar-item.vue index 9a4cf1bd..5be23292 100644 --- a/src/tools/html-wysiwyg-editor/editor/menu-bar-item.vue +++ b/src/tools/html-wysiwyg-editor/editor/menu-bar-item.vue @@ -6,13 +6,9 @@ const { icon, title, action, isActive } = toRefs(props); diff --git a/src/tools/otp-code-generator-and-validator/otp-code-generator-and-validator.vue b/src/tools/otp-code-generator-and-validator/otp-code-generator-and-validator.vue index 7b26a098..6bd881c0 100644 --- a/src/tools/otp-code-generator-and-validator/otp-code-generator-and-validator.vue +++ b/src/tools/otp-code-generator-and-validator/otp-code-generator-and-validator.vue @@ -61,19 +61,16 @@ const secretValidationRules = [ :validation-rules="secretValidationRules" >
- +
diff --git a/src/tools/otp-code-generator-and-validator/token-display.vue b/src/tools/otp-code-generator-and-validator/token-display.vue index 5313b0be..317f0831 100644 --- a/src/tools/otp-code-generator-and-validator/token-display.vue +++ b/src/tools/otp-code-generator-and-validator/token-display.vue @@ -11,7 +11,7 @@ const { tokens } = toRefs(props); - - diff --git a/src/tools/user-agent-parser/user-agent-result-cards.vue b/src/tools/user-agent-parser/user-agent-result-cards.vue index ed4724cb..eeea0730 100644 --- a/src/tools/user-agent-parser/user-agent-result-cards.vue +++ b/src/tools/user-agent-parser/user-agent-result-cards.vue @@ -25,14 +25,11 @@ const { userAgentInfo, sections } = toRefs(props);
- - - {{ label }} - + + + {{ getValue(userAgentInfo) }} + +
diff --git a/src/ui/c-tooltip/c-tooltip.demo.vue b/src/ui/c-tooltip/c-tooltip.demo.vue index d3852573..edd1364a 100644 --- a/src/ui/c-tooltip/c-tooltip.demo.vue +++ b/src/ui/c-tooltip/c-tooltip.demo.vue @@ -1,3 +1,7 @@ + + diff --git a/src/ui/c-tooltip/c-tooltip.vue b/src/ui/c-tooltip/c-tooltip.vue index 095315fb..0f47e711 100644 --- a/src/ui/c-tooltip/c-tooltip.vue +++ b/src/ui/c-tooltip/c-tooltip.vue @@ -1,23 +1,30 @@ diff --git a/src/ui/c-table/c-table.demo.vue b/src/ui/c-table/c-table.demo.vue new file mode 100644 index 00000000..b2cf8a77 --- /dev/null +++ b/src/ui/c-table/c-table.demo.vue @@ -0,0 +1,20 @@ + + + diff --git a/src/ui/c-table/c-table.types.ts b/src/ui/c-table/c-table.types.ts new file mode 100644 index 00000000..6c658f34 --- /dev/null +++ b/src/ui/c-table/c-table.types.ts @@ -0,0 +1,4 @@ +export type HeaderConfiguration = (string | { + key: string + label?: string +})[] | Record; diff --git a/src/ui/c-table/c-table.vue b/src/ui/c-table/c-table.vue new file mode 100644 index 00000000..9f734a9f --- /dev/null +++ b/src/ui/c-table/c-table.vue @@ -0,0 +1,65 @@ + + + diff --git a/unocss.config.ts b/unocss.config.ts index 6da68739..04c04830 100644 --- a/unocss.config.ts +++ b/unocss.config.ts @@ -20,5 +20,6 @@ export default defineConfig({ shortcuts: { 'pretty-scrollbar': 'scrollbar scrollbar-rounded scrollbar-thumb-color-gray-300 scrollbar-track-color-gray-100 dark:scrollbar-thumb-color-#424242 dark:scrollbar-track-color-#686868', 'divider': 'h-1px bg-current op-10', + 'bg-surface': 'bg-#ffffff dark:bg-#232323', }, }); From 88b881880c0b307e3a0c1954dc2f5474f39a144b Mon Sep 17 00:00:00 2001 From: Corentin THOMASSET Date: Sun, 15 Oct 2023 00:48:18 +0200 Subject: [PATCH 05/60] refactor(ci): reduced timeout in e2e (#666) --- .github/workflows/e2e-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 3c089ad7..b5b04096 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -6,7 +6,7 @@ on: - main jobs: test: - timeout-minutes: 60 + timeout-minutes: 10 runs-on: ubuntu-latest strategy: matrix: From b408df82c1d8a0123e552048421b37afcf5189c6 Mon Sep 17 00:00:00 2001 From: Corentin Thomasset Date: Sun, 15 Oct 2023 23:41:55 +0200 Subject: [PATCH 06/60] refactor(c-table): added description on c-table for accessibility --- src/ui/c-table/c-table.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/c-table/c-table.vue b/src/ui/c-table/c-table.vue index 9f734a9f..9354cc9a 100644 --- a/src/ui/c-table/c-table.vue +++ b/src/ui/c-table/c-table.vue @@ -2,7 +2,7 @@ import _ from 'lodash'; import type { HeaderConfiguration } from './c-table.types'; -const props = withDefaults(defineProps<{ data?: Record[]; headers?: HeaderConfiguration ; hideHeaders?: boolean }>(), { data: () => [], headers: undefined, hideHeaders: false }); +const props = withDefaults(defineProps<{ data?: Record[]; headers?: HeaderConfiguration ; hideHeaders?: boolean; description?: string }>(), { data: () => [], headers: undefined, hideHeaders: false, description: 'Data table' }); const { data, headers: rawHeaders, hideHeaders } = toRefs(props); const headers = computed(() => { @@ -38,7 +38,7 @@ const headers = computed(() => { From a2b53c2e38aca1824d8ee90aaf5f49d0884c3ecf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8E=AB=E9=A2=93?= Date: Sun, 22 Oct 2023 16:15:39 +0800 Subject: [PATCH 10/60] feat(i18n): about page (#680) (cherry picked from commit 605b84c16e0eec1a16e6133203e7810a68447607) Co-authored-by: Corentin THOMASSET --- locales/en.yml | 16 ++++++++++++++++ src/pages/About.vue | 36 +++++++++++++++--------------------- 2 files changed, 31 insertions(+), 21 deletions(-) diff --git a/locales/en.yml b/locales/en.yml index 489a1689..c2fc89d4 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -1,6 +1,22 @@ home: categories: newestTools: Newest tools +about: + h1: 'About IT-Tools' + h1p1: 'This wonderful website, made with ❤ by' + h1p2: ', aggregates useful tools for developer and people working in IT. If you find it useful, please feel free to share it to people you think may find it useful too and don''''t forget to bookmark it in your shortcut bar!' + h1p3: 'IT Tools is open-source (under the MIT license) and free, and will always be, but it costs me money to host and renew the domain name. If you want to support my work, and encourage me to add more tools, please consider supporting by' + h1p4: 'sponsoring me' + h2: Technologies + h2p1: 'IT Tools is made in Vue.js (Vue 3) with the the Naive UI component library and is hosted and continuously deployed by Vercel. Third-party open-source libraries are used in some tools, you may find the complete list in the' + h2p2: 'file of the repository.' + h3: 'Found a bug? A tool is missing?' + h3p1: 'If you need a tool that is currently not present here, and you think can be useful, you are welcome to submit a feature request in the' + h3p2: 'issues section' + h3p3: 'in the GitHub repository.' + h3p4: 'And if you found a bug, or something doesn''''t work as expected, please file a bug report in the' + h3p5: 'issues section' + h3p6: 'in the GitHub repository.' 404: notFound: '404 Not Found' sorry: 'Sorry, this page does not seem to exist' diff --git a/src/pages/About.vue b/src/pages/About.vue index 8e6b1aad..9d7436d3 100644 --- a/src/pages/About.vue +++ b/src/pages/About.vue @@ -8,62 +8,56 @@ const { tracker } = useTracker(); From 84a4a646f6d859915e8e3120fe6a8917ed09d854 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8E=AB=E9=A2=93?= Date: Sun, 22 Oct 2023 16:21:10 +0800 Subject: [PATCH 11/60] feat(i18n): tool card (#682) (cherry picked from commit 1d0a3904f72ab24364beda034d17cf6de9b5e959) --- locales/en.yml | 2 ++ src/components/ToolCard.vue | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/locales/en.yml b/locales/en.yml index c2fc89d4..dfe668e7 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -22,3 +22,5 @@ about: sorry: 'Sorry, this page does not seem to exist' maybe: 'Maybe the cache is doing tricky things, try force-refreshing?' backHome: 'Back home' +toolCard: + new: New \ No newline at end of file diff --git a/src/components/ToolCard.vue b/src/components/ToolCard.vue index 00f22466..768e9ede 100644 --- a/src/components/ToolCard.vue +++ b/src/components/ToolCard.vue @@ -26,7 +26,7 @@ const appTheme = useAppTheme(); :bordered="false" :color="{ color: theme.primaryColor, textColor: theme.tagColor }" > - New + {{ $t('toolCard.new') }} From ebb4ec416511c02108704e3909c565aa47890b62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8E=AB=E9=A2=93?= Date: Sun, 22 Oct 2023 16:23:00 +0800 Subject: [PATCH 12/60] feat(i18n): support for i18n in .ts files (#683) (cherry picked from commit 732313bfc32a514ef064ca0f90304ff05e2e7ef3) --- src/plugins/i18n.plugin.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/plugins/i18n.plugin.ts b/src/plugins/i18n.plugin.ts index 8e0b2d33..7ef2c98f 100644 --- a/src/plugins/i18n.plugin.ts +++ b/src/plugins/i18n.plugin.ts @@ -29,3 +29,9 @@ export const i18nPlugin: Plugin = { app.use(i18n); }, }; + +export const translate = function (localeKey: string) { + // @ts-expect-error global + const hasKey = i18n.global.te(localeKey, i18n.global.locale); + return hasKey ? i18n.global.t(localeKey) : localeKey; +}; From eea9f9127681595bec6c7868e415763d2640a2a5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 22 Oct 2023 10:26:05 +0200 Subject: [PATCH 13/60] chore(deps): update dependency node to v18.18.2 (#674) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .nvmrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.nvmrc b/.nvmrc index 02c8b485..87ec8842 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -18.18.0 +18.18.2 From d36b18f193952ddc499b56c6831bc6deea4af91d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 22 Oct 2023 10:29:05 +0200 Subject: [PATCH 14/60] chore(deps): update docker/build-push-action action to v5 (#624) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/docker-nightly-release.yml | 2 +- .github/workflows/releases.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-nightly-release.yml b/.github/workflows/docker-nightly-release.yml index 46a9ed7f..3247e6b8 100644 --- a/.github/workflows/docker-nightly-release.yml +++ b/.github/workflows/docker-nightly-release.yml @@ -76,7 +76,7 @@ jobs: uses: docker/setup-buildx-action@v2 - name: Build and push - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: context: . file: ./Dockerfile diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index 492f9d15..42524346 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -35,7 +35,7 @@ jobs: uses: docker/setup-buildx-action@v2 - name: Build and push - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: context: . file: ./Dockerfile From d8d7a3b9ab6bb83af2591e00d20289052dd184d2 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 22 Oct 2023 10:30:04 +0200 Subject: [PATCH 15/60] chore(deps): update docker/login-action action to v3 (#625) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/docker-nightly-release.yml | 4 ++-- .github/workflows/releases.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-nightly-release.yml b/.github/workflows/docker-nightly-release.yml index 3247e6b8..7c4aa51e 100644 --- a/.github/workflows/docker-nightly-release.yml +++ b/.github/workflows/docker-nightly-release.yml @@ -57,14 +57,14 @@ jobs: uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Login to Docker Hub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index 42524346..71879ff1 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -16,14 +16,14 @@ jobs: uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Login to Docker Hub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} From 57ecda16238fd760ec0675426b072c50ac2e786b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 22 Oct 2023 10:30:16 +0200 Subject: [PATCH 16/60] chore(deps): update docker/setup-buildx-action action to v3 (#626) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/docker-nightly-release.yml | 2 +- .github/workflows/releases.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-nightly-release.yml b/.github/workflows/docker-nightly-release.yml index 7c4aa51e..924a0da2 100644 --- a/.github/workflows/docker-nightly-release.yml +++ b/.github/workflows/docker-nightly-release.yml @@ -73,7 +73,7 @@ jobs: uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Build and push uses: docker/build-push-action@v5 diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index 71879ff1..fd5f63b0 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -32,7 +32,7 @@ jobs: uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Build and push uses: docker/build-push-action@v5 From 4365226d0168b023160eb96dfd412d88e5bb662d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 22 Oct 2023 10:30:26 +0200 Subject: [PATCH 17/60] chore(deps): update docker/setup-qemu-action action to v3 (#627) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/docker-nightly-release.yml | 2 +- .github/workflows/releases.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-nightly-release.yml b/.github/workflows/docker-nightly-release.yml index 924a0da2..81a0898c 100644 --- a/.github/workflows/docker-nightly-release.yml +++ b/.github/workflows/docker-nightly-release.yml @@ -70,7 +70,7 @@ jobs: password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index fd5f63b0..8ed4099d 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -29,7 +29,7 @@ jobs: password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 From 00562ed5e87a88a7038b4670f20e155c4f5b070d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8E=AB=E9=A2=93?= Date: Mon, 23 Oct 2023 15:14:34 +0800 Subject: [PATCH 18/60] feat(i18n): home page (#687) (cherry picked from commit 9d39826078ceb929a5ca3b577f9f39449303c289) --- locales/en.yml | 27 ++++++++++++++++++++++++++- src/components/NavbarButtons.vue | 16 ++++++++-------- src/layouts/base.layout.vue | 10 +++++----- src/pages/Home.page.vue | 16 ++++++++-------- 4 files changed, 47 insertions(+), 22 deletions(-) diff --git a/locales/en.yml b/locales/en.yml index dfe668e7..1f31b68a 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -1,6 +1,30 @@ home: categories: newestTools: Newest tools + favoriteTools: 'Your favorite tools' + allTools: 'All the tools' + subtitle: 'Handy tools for developers' + toggleMenu: 'Toggle menu' + home: Home + uiLib: 'UI Lib' + buyMeACoffee: 'Buy me a coffee' + follow: + title: 'You like it-tools?' + p1: 'Give us a star on' + githubRepository: 'IT-Tools GitHub repository' + p2: 'or follow us on' + twitterAccount: 'IT-Tools Twitter account' + thankYou: 'Thank you !' + nav: + github: 'GitHub repository' + githubRepository: 'IT-Tools GitHub repository' + twitter: 'Twitter account' + twitterAccount: 'IT Tools Twitter account' + about: 'About IT-Tools' + aboutLabel: 'About' + darkMode: 'Dark mode' + lightMode: 'Light mode' + mode: 'Toggle dark/light mode' about: h1: 'About IT-Tools' h1p1: 'This wonderful website, made with ❤ by' @@ -23,4 +47,5 @@ about: maybe: 'Maybe the cache is doing tricky things, try force-refreshing?' backHome: 'Back home' toolCard: - new: New \ No newline at end of file + new: New + \ No newline at end of file diff --git a/src/components/NavbarButtons.vue b/src/components/NavbarButtons.vue index 653afdd2..cfc58cdd 100644 --- a/src/components/NavbarButtons.vue +++ b/src/components/NavbarButtons.vue @@ -7,39 +7,39 @@ const { isDarkTheme } = toRefs(styleStore);