perf: overhaul startup performance, dependencies and UI responsiveness (#419)

* perf(i18n): bundle only English eagerly, lazy-load other locales on demand

The entry bundle previously inlined all 19 locales (11 MB minified, 2.4 MB
gzip) via the virtual @intlify messages module. Now only en (plus tool-level
en files) is compiled into the entry; every other locale becomes its own lazy
chunk fetched the first time it is selected, with vue-i18n falling back to
English until the messages arrive.

VITE_AVAILABLE_LOCALES now filters the locales offered at runtime instead of
trimming the build; unlisted locale chunks are emitted but never fetched.

Also adds shims for *.yml default imports and @tabler/icons-vue per-icon
deep imports (used by the follow-up icon-loading commit).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKAJuYi4dP1mwsjPi4v5Ea

* perf(tools): load tool icons lazily and parallelize boot config fetches

The eager tool-metadata glob pulled ~460 static icon component modules into
the entry graph. Tool definitions now reference their icon via
defineAsyncComponent + per-icon dynamic import, and an advancedChunks group
merges all of them into a single lazy 'tool-icons' chunk fetched off the
critical path when the menu/home first renders. Exact same glyphs as before.

Entry-graph components (navbar, layouts, ToolCard, copy buttons, command
palette, home) switch from runtime icon packages to build-time-inlined
~icons/tabler imports so no static reference drags the icon chunk into the
entry bundle.

src/tools/index.ts also fetched tools-filter.json and external-tools.json
sequentially under top-level await, blocking first render on two serial
round-trips; they are now fetched in parallel.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKAJuYi4dP1mwsjPi4v5Ea

* perf(pwa): precache only the app shell, cache chunks and wasm on demand

The service worker precached every JS chunk and WASM binary — 1,679 files,
~162 MB — on first visit, saturating bandwidth while the page was trying to
become interactive. Precache is now limited to the shell (css/html) with
CacheFirst runtime caching for same-origin hashed scripts, workers and wasm,
so offline support covers everything the user has actually opened.

VITE_PWA_FULL_PRECACHE=true restores the previous cache-everything behavior
for self-hosted full-offline deployments.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKAJuYi4dP1mwsjPi4v5Ea

* perf(menu): eliminate layout thrash in sider and category animations

The sider show/hide animates CSS width, which re-laid-out all ~460 menu
items plus the page content on every frame; category expand/collapse
animates grid-template-rows with the same cost. Two changes cut the
per-frame work:

- content-visibility: auto on each category container so offscreen
  categories skip layout and paint entirely during animations
- the sider scroll content is pinned to the expanded width, so the width
  transition clips the menu instead of re-wrapping every item per frame

Measured with the Long Animation Frames API (dev mode, full hide+show
cycle): 4 long frames totalling ~395 ms before, 2 totalling ~236 ms after;
animation frames after the initial commit now stay under 50 ms.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKAJuYi4dP1mwsjPi4v5Ea

* perf(deps): replace moment with date-fns in countdown and alarm tools

moment was only used by three tools, each pulling its ~70 KB gzip bundle
into their chunks while date-fns (already a dependency) covers the same
needs tree-shaken. Also fixes a latent bug: moment's mutating add()/set()
modified the shared 'now' ref on every computed evaluation, so the deadline
could drift by one duration per re-render; date-fns operations are
immutable.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKAJuYi4dP1mwsjPi4v5Ea

* perf(deps): replace lodash with es-toolkit

Full CJS lodash (~70 KB gzip, no tree-shaking) was in the entry graph via
the tools store and shared composables, plus four lodash.* micro-packages.
es-toolkit provides the same functions as tree-shakeable ESM:

- import _ from 'lodash' -> import * as _ from 'es-toolkit/compat'
  (namespace member access tree-shakes under Rolldown)
- the 20 _.chain pipelines are rewritten as plain array/object operations
  or es-toolkit calls (es-toolkit has no chain, deliberately)
- lodash.defaultsdeep/flattendeep/last/mergewith micro-packages replaced
  with es-toolkit core/compat equivalents
- lodash's RecursiveArray type is declared locally in generate-tree.ts
- files whose only lodash use was inside a rewritten chain lose the
  dependency entirely

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKAJuYi4dP1mwsjPi4v5Ea

* fix: catch lodash usages the codemod missed (.js/.tsx files, bare _() wrapper)

outputFormatter.js and diff-viewer.models.tsx were outside the codemod's
*.ts/*.vue glob, and otp.service.ts used the implicit-chain _(...) wrapper
form that the _. usage regex didn't match (its import was wrongly removed).
Both builds still passed because pnpm's hoisted store made 'lodash'
resolvable even after removal from package.json.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKAJuYi4dP1mwsjPi4v5Ea

* perf(boot): drop the splash screen and parallelize the settings fetch

The splash screen existed to cover a multi-second blank period while the old
13 MB entry bundle parsed; with the startup payload at ~3 MB the app shell
paints fast enough to render directly (measurements in the PR description).
Removes vite-plugin-splash-screen entirely.

tools-settings.json was fetched under top-level await in main.ts, serially
after the config fetches in src/tools/index.ts. It now lives in a sibling
async module so all three optional config fetches share one round-trip.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKAJuYi4dP1mwsjPi4v5Ea

* fix: defer preload-error reload so it cannot abort an in-flight navigation

Firefox fires vite:preloadError for module preloads cancelled by a user
navigation (NS_BINDING_ABORTED), and the immediate location.reload() raced
and aborted that navigation. With the tool icons now loading via dynamic
imports there are ~460 preloads in flight at startup, which made the race
deterministic in the date-time-converter Playwright specs on firefox.

Deferring the reload by a tick resolves it: if the page is genuinely
navigating away its timers die with the document; on a real chunk-load
failure the reload still happens.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKAJuYi4dP1mwsjPi4v5Ea

* fix(types): satisfy the vitest tsconfig typecheck

pnpm typecheck runs vue-tsc against tsconfig.vitest.json, which lacks the
unplugin-vue-i18n type shim and infers stricter unions:

- tools/index.ts: type the fetch fallbacks so Promise.all doesn't widen
  filterConfig to 'ToolsFilter | {}'
- i18n.plugin.ts: collapse es-toolkit merge's recursive mapped type before
  it reaches vue-i18n's generics (TS2589), watch the locale through the
  getter, and cast the messages record
- generate-tree.ts: drop flattenDeep/RecursiveArray for a plain spread —
  child output is already joined strings, so there was only one level to
  flatten

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKAJuYi4dP1mwsjPi4v5Ea

* perf(bundle): cut startup payload from ~1 MB to ~560 KB gzip

Four eager-loading leaks accounted for almost half the startup JS:

- Font Awesome (298 KB gzip): main.ts registered the entire solid icon set
  via library.add(fas) although only the pomodoro timer uses it. The six
  icons it needs are now registered inside the tool's lazy chunk.
- tool-icons chunk (67 KB gzip): rolldown's advancedChunks defaults to
  includeDependenciesRecursively, which captured shared helpers into the
  icon chunk and made entry chunks statically depend on it, dragging the
  whole lazy icon set back into the startup payload. Disabled per-group.
- markdown-it + entities + dompurify (~50 KB gzip): eagerly reachable via
  three paths — the external-tools mapping in tools/index.ts (now a
  conditional dynamic import), vue-markdown-render in tool.layout.vue and
  Home.custom.vue (now defineAsyncComponent).
- demo gallery routes: registered behind a runtime env check the bundler
  cannot eliminate; now a conditional dynamic import gated on
  import.meta.env.DEV so production builds drop it entirely.

Startup JS: 3.2 MB -> 1.92 MB raw, ~1.05 MB -> 562 KB gzip.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKAJuYi4dP1mwsjPi4v5Ea

* fix(lint): drop redundant spread flagged by oxlint

Object.values already returns a fresh array, so it can be pushed into
directly.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKAJuYi4dP1mwsjPi4v5Ea

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
SebastianandClaude Fable 5 authored and GitHub committed 2026-07-08 22:46:19 +02:00
1 parent 63f011b071
commit bad27cfe39
536 files changed
+873 -1310

No files matched your search

+2 -12
View File
@@ -188,6 +188,7 @@
"email-normalizer": "^1.0.0",
"emojilib": "^4.0.2",
"epubjs": "^0.3.93",
"es-toolkit": "^1.49.0",
"esm-potrace-wasm": "^0.4.4",
"ethers": "^6.16.0",
"event-cron-parser": "^1.0.37",
@@ -265,11 +266,6 @@
"leaflet": "^1.9.4",
"libmime": "^5.3.8",
"libphonenumber-js": "^1.12.33",
"lodash": "^4.18.1",
"lodash.defaultsdeep": "^4.6.1",
"lodash.flattendeep": "^4.4.0",
"lodash.last": "^3.0.0",
"lodash.mergewith": "^4.6.2",
"long": "^5.3.2",
"lorem-ipsum-japanese": "^1.0.1",
"luhn-js": "^1.1.2",
@@ -290,7 +286,6 @@
"mermaid": "^11.12.2",
"mime-types": "^3.0.2",
"mitex-wasm": "^0.2.5",
"moment": "^2.30.1",
"monaco-editor": "^0.55.1",
"morsee": "^1.0.10",
"msgpackr": "^1.11.8",
@@ -408,6 +403,7 @@
},
"devDependencies": {
"@iconify-json/mdi": "^1.2.3",
"@iconify-json/tabler": "^1.2.35",
"@intlify/unplugin-vue-i18n": "^11.2.4",
"@playwright/test": "^1.59.1",
"@tsconfig/node24": "^24.0.4",
@@ -425,11 +421,6 @@
"@types/jsonpath": "^0.2.4",
"@types/leaflet": "^1.9.21",
"@types/libmime": "^5.0.3",
"@types/lodash": "^4.17.20",
"@types/lodash.defaultsdeep": "^4.6.9",
"@types/lodash.flattendeep": "^4.4.9",
"@types/lodash.last": "^3.0.9",
"@types/lodash.mergewith": "^4.6.9",
"@types/luxon": "^3.4.2",
"@types/markdown-it": "^13.0.9",
"@types/memorystream": "^0.3.4",
@@ -479,7 +470,6 @@
"vite": "^8.1.3",
"vite-plugin-node-polyfills": "^0.28.0",
"vite-plugin-pwa": "^1.3.0",
"vite-plugin-splash-screen": "^0.2.0",
"vite-plugin-wasm": "^3.6.0",
"vite-svg-loader": "^5.1.1",
"vitest": "^4.1.9",
+13 -89
View File
@@ -449,6 +449,9 @@ importers:
epubjs:
specifier: ^0.3.93
version: 0.3.93
es-toolkit:
specifier: ^1.49.0
version: 1.49.0
esm-potrace-wasm:
specifier: ^0.4.4
version: 0.4.4(patch_hash=a60b9e91d34bbc890f0296bd36e7e761e00b4142552591150b6e65975bbab79e)
@@ -680,21 +683,6 @@ importers:
libphonenumber-js:
specifier: ^1.12.33
version: 1.13.8
lodash:
specifier: ^4.18.1
version: 4.18.1
lodash.defaultsdeep:
specifier: ^4.6.1
version: 4.6.1
lodash.flattendeep:
specifier: ^4.4.0
version: 4.4.0
lodash.last:
specifier: ^3.0.0
version: 3.0.0
lodash.mergewith:
specifier: ^4.6.2
version: 4.6.2
long:
specifier: ^5.3.2
version: 5.3.2
@@ -755,9 +743,6 @@ importers:
mitex-wasm:
specifier: ^0.2.5
version: 0.2.5
moment:
specifier: ^2.30.1
version: 2.30.1
monaco-editor:
specifier: ^0.55.1
version: 0.55.1
@@ -1104,6 +1089,9 @@ importers:
'@iconify-json/mdi':
specifier: ^1.2.3
version: 1.2.3
'@iconify-json/tabler':
specifier: ^1.2.35
version: 1.2.35
'@intlify/unplugin-vue-i18n':
specifier: ^11.2.4
version: 11.2.4(@vue/compiler-dom@3.5.39)(eslint@10.6.0(jiti@2.7.0))(rollup@4.62.2)(typescript@6.0.3)(vite@8.1.3(@types/node@24.13.2)(jiti@2.7.0)(less@4.6.7)(terser@5.48.0)(yaml@2.9.0))(vue-i18n@11.4.6(vue@3.5.39(typescript@6.0.3)))(vue@3.5.39(typescript@6.0.3))
@@ -1155,21 +1143,6 @@ importers:
'@types/libmime':
specifier: ^5.0.3
version: 5.3.0
'@types/lodash':
specifier: ^4.17.20
version: 4.17.24
'@types/lodash.defaultsdeep':
specifier: ^4.6.9
version: 4.6.9
'@types/lodash.flattendeep':
specifier: ^4.4.9
version: 4.4.9
'@types/lodash.last':
specifier: ^3.0.9
version: 3.0.9
'@types/lodash.mergewith':
specifier: ^4.6.9
version: 4.6.9
'@types/luxon':
specifier: ^3.4.2
version: 3.7.2
@@ -1317,9 +1290,6 @@ importers:
vite-plugin-pwa:
specifier: ^1.3.0
version: 1.3.0(vite@8.1.3(@types/node@24.13.2)(jiti@2.7.0)(less@4.6.7)(terser@5.48.0)(yaml@2.9.0))(workbox-build@7.4.1)(workbox-window@7.4.1)
vite-plugin-splash-screen:
specifier: ^0.2.0
version: 0.2.2
vite-plugin-wasm:
specifier: ^3.6.0
version: 3.6.0(vite@8.1.3(@types/node@24.13.2)(jiti@2.7.0)(less@4.6.7)(terser@5.48.0)(yaml@2.9.0))
@@ -2422,6 +2392,9 @@ packages:
'@iconify-json/mdi@1.2.3':
resolution: {integrity: sha512-O3cLwbDOK7NNDf2ihaQOH5F9JglnulNDFV7WprU2dSoZu3h3cWH//h74uQAB87brHmvFVxIOkuBX2sZSzYhScg==}
'@iconify-json/tabler@1.2.35':
resolution: {integrity: sha512-/sJMqHvh5ZWrEERVfDCT5NjVDeKJdhosFtKjJofAVl+P/3AzLiryOQw7WvrfDF25Xa5N/eoOQ15Y1jnhYXxBoQ==}
'@iconify/types@2.0.0':
resolution: {integrity: sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==}
@@ -4569,18 +4542,6 @@ packages:
'@types/lodash-es@4.17.12':
resolution: {integrity: sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==}
'@types/lodash.defaultsdeep@4.6.9':
resolution: {integrity: sha512-pLtCFK0YkHfGtGLYLNMTbFB5/G5+RsmQCIbbHH8GOAXjv+gDkVilY98kILfe8JH2Kev0OCReYxp1AjxEjP8ixA==}
'@types/lodash.flattendeep@4.4.9':
resolution: {integrity: sha512-Oacs/ZMuMvVWkhMqvj+Spad457Beln5pnkauif+6s65fE2cSL7J7NoMfwkxjuQsOsr4DUCDH/iDbmuZo81Nypw==}
'@types/lodash.last@3.0.9':
resolution: {integrity: sha512-HMIEyk2LJWDumrHsuSh7ZokUs+xyXa0nZO/s3paaKjOvwrjBNoQHsM0UqcpmzEt7CJ29a16XNe3vr8buvHeMCg==}
'@types/lodash.mergewith@4.6.9':
resolution: {integrity: sha512-fgkoCAOF47K7sxrQ7Mlud2TH023itugZs2bUg8h/KzT+BnZNrR2jAOmaokbLunHNnobXVWOezAeNn/lZqwxkcw==}
'@types/lodash@4.17.24':
resolution: {integrity: sha512-gIW7lQLZbue7lRSWEFql49QJJWThrTFFeIMJdp3eH4tKoxm1OvEPg02rm4wCCSHS0cL3/Fizimb35b7k8atwsQ==}
@@ -8341,12 +8302,6 @@ packages:
lodash.debounce@4.0.8:
resolution: {integrity: sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==}
lodash.defaultsdeep@4.6.1:
resolution: {integrity: sha512-3j8wdDzYuWO3lM3Reg03MuQR957t287Rpcxp1njpEa8oDrikb+FwGdW3n+FELh/A6qib6yPit0j/pv9G/yeAqA==}
lodash.flattendeep@4.4.0:
resolution: {integrity: sha512-uHaJFihxmJcEX3kT4I23ABqKKalJ/zDrDg0lsFtc1h+3uw49SIJ5beyhx5ExVRti3AvKoOJngIj7xz3oylPdWQ==}
lodash.flowright@3.5.0:
resolution: {integrity: sha512-YxTYuodkvyINbDInmFcGGvkQwoAuoGUYosqstRTr5eq63GQt7WQ2xFU0wG1UfdbKYPwevd3zWDd6ybEE2g6qvA==}
@@ -8363,12 +8318,6 @@ packages:
lodash.isplainobject@4.0.6:
resolution: {integrity: sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==}
lodash.last@3.0.0:
resolution: {integrity: sha512-14mq7rSkCxG4XMy9lF2FbIOqqgF0aH0NfPuQ3LPR3vIh0kHnUvIYP70dqa1Hf47zyXfQ8FzAg0MYOQeSuE1R7A==}
lodash.mergewith@4.6.2:
resolution: {integrity: sha512-GK3g5RPZWTRSeLSpgP8Xhra+pnjBC56q9FZYe1d5RN3TJ35dbkGy3YqBSMbyCrlbi+CM9Z3Jk5yTL7RCsqboyQ==}
lodash.sortby@4.7.0:
resolution: {integrity: sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA==}
@@ -10933,9 +10882,6 @@ packages:
'@vite-pwa/assets-generator':
optional: true
vite-plugin-splash-screen@0.2.2:
resolution: {integrity: sha512-RNHMTldDbVCubB1Al2uqS5zpdHI+rDvm9/c3qRUdvHy59GlTNCLH6CRLdS9cHNBT//a09NO/XCoeFShasFn2UQ==}
vite-plugin-wasm@3.6.0:
resolution: {integrity: sha512-mL/QPziiIA4RAA6DkaZZzOstdwbW5jO4Vz7Zenj0wieKWBlNvIvX5L5ljum9lcUX0ShNfBgCNLKTjNkRVVqcsw==}
peerDependencies:
@@ -12855,6 +12801,10 @@ snapshots:
dependencies:
'@iconify/types': 2.0.0
'@iconify-json/tabler@1.2.35':
dependencies:
'@iconify/types': 2.0.0
'@iconify/types@2.0.0': {}
'@iconify/utils@3.1.3':
@@ -14879,22 +14829,6 @@ snapshots:
dependencies:
'@types/lodash': 4.17.24
'@types/lodash.defaultsdeep@4.6.9':
dependencies:
'@types/lodash': 4.17.24
'@types/lodash.flattendeep@4.4.9':
dependencies:
'@types/lodash': 4.17.24
'@types/lodash.last@3.0.9':
dependencies:
'@types/lodash': 4.17.24
'@types/lodash.mergewith@4.6.9':
dependencies:
'@types/lodash': 4.17.24
'@types/lodash@4.17.24': {}
'@types/luxon@3.7.2': {}
@@ -19041,10 +18975,6 @@ snapshots:
lodash.debounce@4.0.8: {}
lodash.defaultsdeep@4.6.1: {}
lodash.flattendeep@4.4.0: {}
lodash.flowright@3.5.0: {}
lodash.get@4.4.2: {}
@@ -19055,10 +18985,6 @@ snapshots:
lodash.isplainobject@4.0.6: {}
lodash.last@3.0.0: {}
lodash.mergewith@4.6.2: {}
lodash.sortby@4.7.0: {}
lodash@4.18.1: {}
@@ -22069,8 +21995,6 @@ snapshots:
transitivePeerDependencies:
- supports-color
vite-plugin-splash-screen@0.2.2: {}
vite-plugin-wasm@3.6.0(vite@8.1.3(@types/node@24.13.2)(jiti@2.7.0)(less@4.6.7)(terser@5.48.0)(yaml@2.9.0)):
dependencies:
vite: 8.1.3(@types/node@24.13.2)(jiti@2.7.0)(less@4.6.7)(terser@5.48.0)(yaml@2.9.0)
+1 -1
View File
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { Copy } from '@vicons/tabler';
import Copy from '~icons/tabler/copy';
import { Base64 } from 'js-base64';
import { useCopy } from '@/composable/copy';
import { useDownloadFileFromBase64 } from '@/composable/downloadBase64';
+6
View File
@@ -214,6 +214,12 @@ const themeVars = useThemeVars();
}
}
.category-container {
// Offscreen categories skip layout and paint entirely, which keeps the sider
// width transition and expand/collapse animations from re-laying-out all ~460
// menu items on every frame.
content-visibility: auto;
contain-intrinsic-size: auto 36px;
.menu-container {
display: grid;
grid-template-rows: 1fr;
+1 -1
View File
@@ -1,5 +1,5 @@
<script setup lang="ts">
import _ from 'lodash';
import * as _ from 'es-toolkit/compat';
import { Base64 } from 'js-base64';
import type { UseValidationRule } from '@/composable/validation';
import CInputText from '@/ui/c-input-text/c-input-text.vue';
+14 -9
View File
@@ -23,16 +23,14 @@ onUnmounted(() => {
window.removeEventListener('resize', updateWindowWidth);
});
// Calculate the actual width to ensure minimum width is respected
const siderWidth = computed(() => {
if (isMenuCollapsed.value) {
return 0;
}
// Use 12.5% of window width, but ensure it's at least 240px
const siderContentWidth = computed(() => Math.max(240, windowWidth.value * 0.125));
// Use 12.5% of window width, but ensure it's at least 240px
const tenPercent = windowWidth.value * 0.125;
return Math.max(240, tenPercent);
});
const siderWidth = computed(() => (isMenuCollapsed.value ? 0 : siderContentWidth.value));
// The scroll container is pinned to the expanded width so the sider width
// transition clips the menu instead of re-wrapping every item on each frame.
const siderContentWidthPx = computed(() => `${siderContentWidth.value}px`);
</script>
<template>
@@ -57,6 +55,13 @@ const siderWidth = computed(() => {
</template>
<style lang="less" scoped>
.n-layout-sider {
// With :native-scrollbar="false" the sider content lives in an n-scrollbar.
::v-deep(.n-scrollbar-content) {
width: v-bind(siderContentWidthPx);
}
}
.overlay {
position: absolute;
top: 0;
+4 -1
View File
@@ -1,5 +1,8 @@
<script setup lang="ts">
import { IconBrandGithub, IconInfoCircle, IconMoon, IconSun } from '@tabler/icons-vue';
import IconBrandGithub from '~icons/tabler/brand-github';
import IconInfoCircle from '~icons/tabler/info-circle';
import IconMoon from '~icons/tabler/moon';
import IconSun from '~icons/tabler/sun';
import { useStyleStore } from '@/stores/style.store';
const styleStore = useStyleStore();
+1 -1
View File
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { Copy } from '@vicons/tabler';
import Copy from '~icons/tabler/copy';
import { useElementSize } from '@vueuse/core';
import hljs from 'highlight.js/lib/core';
import jsonHljs from 'highlight.js/lib/languages/json';
+1 -1
View File
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { World } from '@vicons/tabler';
import World from '~icons/tabler/world';
import { useThemeVars } from 'naive-ui';
import FavoriteButton from './FavoriteButton.vue';
import type { Tool } from '@/tools/tools.types';
+8 -11
View File
@@ -1,5 +1,4 @@
<script setup lang="ts">
import _ from 'lodash';
import convert, { type Unit } from 'convert';
import * as unitsconverter from 'units-converter';
@@ -82,16 +81,15 @@ function update(key: string) {
if (converterType.value === 'convert') {
const converter = convert(value, key as Unit);
_.chain(units)
.omit(key)
.forEach(({ unit }) => {
Object.entries(units)
.filter(([unitKey]) => unitKey !== key)
.forEach(([, { unit }]) => {
try {
units[unit].ref = converter.to(unit as Unit);
} catch (e: any) {
units[unit].ref = 0;
}
})
.value();
});
} else {
const mapUnit = (unit: string) => {
// npm units-converter uses wrong symbol for miles per hour, so we need to fix it
@@ -102,16 +100,15 @@ function update(key: string) {
};
const converter = unitsconverter[converterType.value](value).from(mapUnit(key));
_.chain(units)
.omit(mapUnit(key))
.forEach(({ unit }) => {
Object.entries(units)
.filter(([unitKey]) => unitKey !== mapUnit(key))
.forEach(([, { unit }]) => {
try {
units[unit].ref = converter.to(mapUnit(unit)).value;
} catch (e: any) {
units[unit].ref = 0;
}
})
.value();
});
}
}
+1 -1
View File
@@ -1,4 +1,4 @@
import _ from 'lodash';
import * as _ from 'es-toolkit/compat';
function useDebouncedRef<T>(initialValue: T, delay: number, immediate: boolean = false) {
const state = ref(initialValue);
+1 -1
View File
@@ -1,6 +1,6 @@
import { extension as getExtensionFromMimeType, extension as getMimeTypeFromExtension } from 'mime-types';
import type { MaybeRef, Ref } from 'vue';
import _ from 'lodash';
import * as _ from 'es-toolkit/compat';
import { get } from '@vueuse/core';
export {
+1 -1
View File
@@ -1,5 +1,5 @@
import { type MaybeRef, get } from '@vueuse/core';
import _ from 'lodash';
import * as _ from 'es-toolkit/compat';
import { type Ref, reactive, watch } from 'vue';
type ValidatorReturnType = unknown;
+3 -1
View File
@@ -1,5 +1,7 @@
<script lang="ts" setup>
import { Coffee, Home2, Menu2 } from '@vicons/tabler';
import Coffee from '~icons/tabler/coffee';
import Home2 from '~icons/tabler/home-2';
import Menu2 from '~icons/tabler/menu-2';
import { NIcon, useThemeVars } from 'naive-ui';
import { storeToRefs } from 'pinia';
import { RouterLink } from 'vue-router';
+6 -2
View File
@@ -1,10 +1,14 @@
<script lang="ts" setup>
import { DeviceDesktop, World } from '@vicons/tabler';
import DeviceDesktop from '~icons/tabler/device-desktop';
import World from '~icons/tabler/world';
import { useRoute } from 'vue-router';
import { useHead } from '@vueuse/head';
import type { HeadObject } from '@vueuse/head';
import VueMarkdown from 'vue-markdown-render';
// Async: keeps markdown-it (~50 KB gzip with its dependency tree) out of the
// startup bundle; it loads with the first tool page instead.
const VueMarkdown = defineAsyncComponent(() => import('vue-markdown-render'));
import { useThemeVars } from 'naive-ui';
import { useTheme } from '../ui/c-link/c-link.theme';
+6 -17
View File
@@ -1,15 +1,12 @@
import { createApp } from 'vue';
import { createPinia } from 'pinia';
import { createHead } from '@vueuse/head';
import { library } from '@fortawesome/fontawesome-svg-core';
import { fas } from '@fortawesome/free-solid-svg-icons';
import { LoadingPlugin } from 'vue-loading-overlay';
import { installAbortSignalPolyfill } from 'abort-signal-polyfill';
import { registerSW } from 'virtual:pwa-register';
import shadow from 'vue-shadow-dom';
import { hideSplashScreen } from 'vite-plugin-splash-screen/runtime';
import { plausible } from './plugins/plausible.plugin';
import '@/utils/json5-bigint';
import '@/utils/json5-bignum';
@@ -21,32 +18,26 @@ import { naive } from './plugins/naive.plugin';
import App from './App.vue';
import router from './router';
import { i18nPlugin } from './plugins/i18n.plugin';
import { toolsSettings } from './tools-settings';
import store from './tools/pomodoro-timer/app/store';
window.addEventListener('vite:preloadError', (event: Event) => {
console.error('Vite preload error, forcing page reload:', event);
event.preventDefault(); // Prevent the original error from being thrown again
window.location.reload();
// Deferred: Firefox also fires this event for preloads cancelled by a user
// navigation, and an immediate reload would race (and abort) that navigation.
// If the page is really navigating away, its timers die with it and no reload
// happens; on a genuine chunk-load failure the reload still runs.
setTimeout(() => window.location.reload(), 100);
});
installAbortSignalPolyfill();
library.add(fas);
registerSW();
const app = createApp(App);
const base = import.meta.env.BASE_URL ?? '/';
let toolsSettings: Record<string, Record<string, any> | any> = {};
try {
const remoteSettingsResponse = await fetch(`${base}tools-settings.json`);
if (remoteSettingsResponse.ok) {
toolsSettings = (await remoteSettingsResponse.json()) as Record<string, Record<string, any> | any>;
}
}
catch {}
app.config.globalProperties.$itToolsSettings = toolsSettings;
app.use(LoadingPlugin);
@@ -60,5 +51,3 @@ app.use(shadow);
app.use(store, 'pomodoro-store');
app.mount('#app');
hideSplashScreen();
@@ -1,5 +1,5 @@
import { defineStore } from 'pinia';
import _ from 'lodash';
import * as _ from 'es-toolkit/compat';
import type { PaletteOption } from './command-palette.types';
import { useToolStore } from '@/tools/tools.store';
import { useStyleStore } from '@/stores/style.store';
@@ -83,7 +83,10 @@ export const useCommandPaletteStore = defineStore('command-palette', () => {
});
const filteredSearchResult = computed(() =>
_.chain(searchResult.value).groupBy('category').mapValues(categoryOptions => _.take(categoryOptions, maxSearchResultsPerCategory)).value());
_.mapValues(
_.groupBy(searchResult.value, option => option.category),
categoryOptions => categoryOptions.slice(0, maxSearchResultsPerCategory),
));
return {
filteredSearchResult,
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { storeToRefs } from 'pinia';
import _ from 'lodash';
import * as _ from 'es-toolkit/compat';
import { useCommandPaletteStore } from './command-palette.store';
import type { PaletteOption } from './command-palette.types';
@@ -50,7 +50,7 @@ function handleKeydown(event: KeyboardEvent) {
if (isArrowUpOrDown) {
const increment = isArrowDown ? 1 : -1;
const maxIndex = Math.max(_.chain(filteredSearchResult.value).values().flatten().size().value() - 1, 0);
const maxIndex = Math.max(Object.values(filteredSearchResult.value).flat().length - 1, 0);
selectedOptionIndex.value = Math.min(Math.max(selectedOptionIndex.value + increment, 0), maxIndex);
@@ -58,22 +58,16 @@ function handleKeydown(event: KeyboardEvent) {
}
if (isEnterPressed) {
const option = _.chain(filteredSearchResult.value)
.values()
.flatten()
.nth(selectedOptionIndex.value)
.value();
const option = Object.values(filteredSearchResult.value).flat()[selectedOptionIndex.value];
activateOption(option);
if (option) {
activateOption(option);
}
}
}
function getOptionIndex(option: PaletteOption) {
return _.chain(filteredSearchResult.value)
.values()
.flatten()
.findIndex(o => o === option)
.value();
return Object.values(filteredSearchResult.value).flat().findIndex(o => o === option);
}
function activateOption(option: PaletteOption) {
@@ -1,5 +1,6 @@
<script setup lang="ts">
import { DeviceDesktop, World } from '@vicons/tabler';
import DeviceDesktop from '~icons/tabler/device-desktop';
import World from '~icons/tabler/world';
import type { PaletteOption } from '../command-palette.types';
const props = withDefaults(defineProps<{ option: PaletteOption; selected?: boolean }>(), {
@@ -1,5 +1,7 @@
<script setup lang="ts">
const { availableLocales, locale, t } = useI18n();
import { appLocales } from '@/plugins/i18n.plugin';
const { locale, t } = useI18n();
const localesLong: Record<string, string> = {
en: 'English',
@@ -24,7 +26,7 @@ const localesLong: Record<string, string> = {
};
const localeOptions = computed(() =>
availableLocales.map(locale => ({
appLocales.map(locale => ({
label: localesLong[locale] ?? locale,
value: locale,
})),
+1 -1
View File
@@ -1,4 +1,4 @@
import _ from 'lodash';
import * as _ from 'es-toolkit/compat';
import type Plausible from 'plausible-tracker';
import { inject } from 'vue';
+1 -1
View File
@@ -1,5 +1,5 @@
<script setup lang="ts">
import _ from 'lodash';
import * as _ from 'es-toolkit/compat';
import { useHead } from '@vueuse/head';
import { useMessage } from 'naive-ui';
import { storeToRefs } from 'pinia';
+4 -1
View File
@@ -1,7 +1,10 @@
<script setup lang="ts">
import VueMarkdown from 'vue-markdown-render';
import { useTheme } from '../ui/c-link/c-link.theme';
// Async: keeps markdown-it out of the startup bundle; the renderer only loads on
// deployments that actually ship a home.custom.md.
const VueMarkdown = defineAsyncComponent(() => import('vue-markdown-render'));
const linkTheme = useTheme();
const homeCustomMarkdown = ref('');
+2 -1
View File
@@ -1,5 +1,6 @@
<script setup lang="ts">
import { IconDragDrop, IconHeart } from '@tabler/icons-vue';
import IconDragDrop from '~icons/tabler/drag-drop';
import IconHeart from '~icons/tabler/heart';
import { useHead } from '@vueuse/head';
import { computed, nextTick, onMounted, onUnmounted, ref } from 'vue';
import Draggable from 'vuedraggable';
+64 -2
View File
@@ -1,19 +1,81 @@
import messages from '@intlify/unplugin-vue-i18n/messages';
import { get } from '@vueuse/core';
import { merge } from 'es-toolkit/compat';
import type { Plugin } from 'vue';
import { watch } from 'vue';
import { createI18n } from 'vue-i18n';
import enBaseMessages from '../../locales/en.yml';
const DEFAULT_LOCALE = String(import.meta.env.VITE_LANGUAGE || 'en');
const FALLBACK_LOCALE = 'en';
// The fallback locale (and its tool-level files) is bundled eagerly so the app always has
// complete messages at startup; every other locale is compiled into its own lazy chunk and
// only fetched the first time it becomes the active locale.
const eagerToolMessages = import.meta.glob('../tools/*/locales/en.yml', { eager: true, import: 'default' });
const lazyBaseMessages = import.meta.glob(['../../locales/*.yml', '!../../locales/en.yml'], { import: 'default' });
const lazyToolMessages = import.meta.glob(['../tools/*/locales/*.yml', '!../tools/*/locales/en.yml'], { import: 'default' });
function localeOfPath(path: string): string {
return path.replace(/^.*\/([^/]+)\.yml$/, '$1');
}
// Cast: es-toolkit's merge infers a deeply recursive mapped type from the full message
// tree, which makes vue-i18n's generics exceed TS's instantiation depth.
const enMessages = merge({}, enBaseMessages, ...Object.values(eagerToolMessages)) as Record<string, unknown>;
// VITE_AVAILABLE_LOCALES filters which locales the app offers; unlisted locale chunks are
// still emitted at build time but never fetched.
export const appLocales = (() => {
const allLocales = [FALLBACK_LOCALE, ...Object.keys(lazyBaseMessages).map(localeOfPath)].sort();
const available = String(import.meta.env.VITE_AVAILABLE_LOCALES || '*');
if (available === '*' || available === 'all') {
return allLocales;
}
const wantedLocales = available.split(',').map(locale => locale.trim());
return allLocales.filter(locale => wantedLocales.includes(locale) || locale === FALLBACK_LOCALE);
})();
const i18n = createI18n({
legacy: false,
locale: DEFAULT_LOCALE,
messages,
fallbackLocale: FALLBACK_LOCALE,
fallbackWarn: false,
missingWarn: false,
// Cast: without the unplugin-vue-i18n type shim (absent in tsconfig.vitest.json)
// vue-i18n's generics reject runtime-shaped message records.
messages: { [FALLBACK_LOCALE]: enMessages } as Record<string, any>,
});
const loadedLocales = new Set([FALLBACK_LOCALE]);
export async function loadLocaleMessages(locale: string) {
if (loadedLocales.has(locale)) {
return;
}
const loaders = [
lazyBaseMessages[`../../locales/${locale}.yml`],
...Object.entries(lazyToolMessages)
.filter(([path]) => localeOfPath(path) === locale)
.map(([, loader]) => loader),
].filter(Boolean);
if (loaders.length === 0) {
return;
}
const messageParts = await Promise.all(loaders.map(loader => loader()));
i18n.global.setLocaleMessage(locale, merge({}, ...messageParts));
loadedLocales.add(locale);
}
export const i18nPlugin: Plugin = {
install: (app) => {
app.use(i18n);
// Messages arrive after the switch; vue-i18n falls back to English until
// setLocaleMessage triggers a reactive re-render. Watching through the getter
// avoids depending on vue-i18n's locale ref generics.
watch(() => getCurrentLocale(), locale => loadLocaleMessages(locale), { immediate: true });
},
};
+1 -1
View File
@@ -1,4 +1,4 @@
import { noop } from 'lodash';
import { noop } from 'es-toolkit/compat';
import Plausible from 'plausible-tracker';
import type { App } from 'vue';
+8 -2
View File
@@ -5,9 +5,15 @@ import HomePage from './pages/Home.page.vue';
import NotFound from './pages/404.page.vue';
import { tools } from './tools';
import { config } from './config';
import { routes as demoRoutes } from './ui/demo/demo.routes';
import { useAppTheme } from './ui/theme/themes';
// Conditional dynamic import: import.meta.env.DEV is statically false in production
// builds, so the demo gallery (and everything it imports: c-markdown, markdown-it, …)
// is dead-code-eliminated from the bundle instead of shipping in the entry graph.
const demoRoutes = import.meta.env.DEV && config.app.env === 'development'
? (await import('./ui/demo/demo.routes')).routes
: [];
const $loading = useLoading();
const toolsRoutes = tools.map(({ path, name, component, ...config }) => ({
path,
@@ -36,7 +42,7 @@ const router = createRouter({
},
...toolsRoutes,
...toolsRedirectRoutes,
...(config.app.env === 'development' ? demoRoutes : []),
...demoRoutes,
{
path: '/:pathMatch(.*)*',
name: 'NotFound',
+11 -4
View File
@@ -10,6 +10,17 @@ declare module '*.md' {
export default Component;
}
declare module '*.yml' {
const messages: Record<string, unknown>;
export default messages;
}
declare module '@tabler/icons-vue/dist/esm/icons/*.mjs' {
import type { FunctionalComponent, SVGAttributes } from 'vue';
const component: FunctionalComponent<SVGAttributes>;
export default component;
}
declare module 'emojilib' {
const lib: Record<string, string[]>;
export default lib;
@@ -35,10 +46,6 @@ declare module 'pdf-signature-reader' {
export default verifySignature;
}
declare module 'vite-plugin-splash-screen/runtime' {
export function hideSplashScreen();
}
declare module 'units-converter' {
interface ITo{
to(unit: string): { value: number }
+8
View File
@@ -0,0 +1,8 @@
const base = import.meta.env.BASE_URL ?? '/';
// Optional per-deployment settings. Lives in its own top-level-await module so the
// fetch runs concurrently with the config fetches in src/tools/index.ts (sibling async
// module subgraphs evaluate in parallel) instead of serially after them.
export const toolsSettings: Record<string, Record<string, any> | any> = await fetch(`${base}tools-settings.json`)
.then(response => (response.ok ? response.json() as Promise<Record<string, Record<string, any> | any>> : {}))
.catch(() => ({}));
+1 -2
View File
@@ -1,5 +1,4 @@
import { translate as t } from '@/plugins/i18n.plugin';
import { Run } from '@vicons/tabler';
import { defineTool } from '../tool';
export const tool = defineTool({
@@ -10,7 +9,7 @@ export const tool = defineTool({
'units', 'g (g-force)', 'm/s2',
],
component: () => import('./acceleration-converter.vue'),
icon: Run,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/Run')),
createdAt: new Date('2026-01-30'),
category: 'Physics',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { Folder } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.ad-ldap-searcher.description'),
keywords: ['active', 'directory', 'ad', 'ldap', 'prop', 'searcher'],
component: () => import('./ad-ldap-searcher.vue'),
icon: Folder,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/Folder')),
createdAt: new Date('2024-08-15'),
category: 'Forensic',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { EyeOff } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.age-crypto.description'),
keywords: ['age'],
component: () => import('./age-crypto.vue'),
icon: EyeOff,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/EyeOff')),
createdAt: new Date('2025-05-08'),
category: 'Crypto',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { Prompt } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.ai-prompt-splitter.description'),
keywords: ['ai', 'chatgpt', 'gpt', 'prompt', 'splitter'],
component: () => import('./ai-prompt-splitter.vue'),
icon: Prompt,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/Prompt')),
createdAt: new Date('2024-07-14'),
category: 'Text',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { ReportMoney } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.amortization-calculator.description'),
keywords: ['amortization', 'calculator'],
component: () => import('./amortization-calculator.vue'),
icon: ReportMoney,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/ReportMoney')),
createdAt: new Date('2025-11-22'),
category: 'Finance',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { Angle } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -10,7 +9,7 @@ export const tool = defineTool({
'units', 'degree', 'radian', 'turn', 'grad',
],
component: () => import('./angle-converter.vue'),
icon: Angle,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/Angle')),
createdAt: new Date('2024-08-15'),
category: 'Physics',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { Terminal2 } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.ansi-escape-tester.description'),
keywords: ['ansi', 'escape', 'tester'],
component: () => import('./ansi-escape-tester.vue'),
icon: Terminal2,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/Terminal2')),
createdAt: new Date('2025-07-06'),
category: 'Development',
});
@@ -1,4 +1,3 @@
import { LockSquare } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.ansible-vault-crypt-decrypt.description'),
keywords: ['ansible', 'vault', 'crypt', 'decrypt'],
component: () => import('./ansible-vault-crypt-decrypt.vue'),
icon: LockSquare,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/LockSquare')),
createdAt: new Date('2024-02-25'),
category: 'Crypto',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { World } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.api-tester.description'),
keywords: ['api', 'http', 'call', 'tester'],
component: () => import('./api-tester.vue'),
icon: World,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/World')),
createdAt: new Date('2024-05-11'),
category: 'Development',
externAccessDescription: t('tools.api-tester.externalAccess'),
+1 -2
View File
@@ -1,4 +1,3 @@
import { SquaresDiagonal } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -10,7 +9,7 @@ export const tool = defineTool({
'units', 'square meter', 'are', 'square',
],
component: () => import('./area-converter.vue'),
icon: SquaresDiagonal,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/SquaresDiagonal')),
createdAt: new Date('2024-08-15'),
category: 'Physics',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { EyeOff } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.argon2-hash.description'),
keywords: ['argon2', 'argon2i', 'argon2d', 'argon2id', 'hash'],
component: () => import('./argon2-hash.vue'),
icon: EyeOff,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/EyeOff')),
createdAt: new Date('2025-12-07'),
category: 'Crypto',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { World } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.arpa-decoder.description'),
keywords: ['arpa', 'ptr', 'ip', 'dns', 'decoder'],
component: () => import('./arpa-decoder.vue'),
icon: World,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/World')),
createdAt: new Date('2026-01-01'),
category: 'Network',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { Artboard } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.ascii-text-drawer.description'),
keywords: ['ascii', 'asciiart', 'text', 'drawer'],
component: () => import('./ascii-text-drawer.vue'),
icon: Artboard,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/Artboard')),
createdAt: new Date('2024-03-03'),
npmPackages: ['figlet'],
category: 'Text',
+1 -2
View File
@@ -1,4 +1,3 @@
import { AspectRatio } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.aspect-ratio-calculator.description'),
keywords: ['aspect', 'ratio', 'calculator'],
component: () => import('./aspect-ratio-calculator.vue'),
icon: AspectRatio,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/AspectRatio')),
createdAt: new Date('2024-08-14'),
category: 'Measurement',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { Barcode } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.barcode-generator.description'),
keywords: ['barcode', 'generator'],
component: () => import('./barcode-generator.vue'),
icon: Barcode,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/Barcode')),
createdAt: new Date('2024-04-20'),
category: 'Barcodes',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { Barcode } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.barcode-reader.description'),
keywords: ['barcode', 'reader'],
component: () => import('./barcode-reader.vue'),
icon: Barcode,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/Barcode')),
createdAt: new Date('2024-04-20'),
category: 'Barcodes',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { FileDigit } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.base64-file-converter.description'),
keywords: ['base64', 'converter', 'upload', 'image', 'file', 'conversion', 'web', 'data', 'format'],
component: () => import('./base64-file-converter.vue'),
icon: FileDigit,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/FileDigit')),
npmPackages: ['js-base64'],
category: 'Converters',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { FileDigit } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.base64-hex-converter.description'),
keywords: ['base64', 'converter', 'conversion', 'web', 'data', 'format', 'atob', 'btoa', 'hex'],
component: () => import('./base64-hex-converter.vue'),
icon: FileDigit,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/FileDigit')),
createdAt: new Date('2025-02-09'),
category: 'Converters',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { FileDigit } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.base64-string-converter.description'),
keywords: ['base64', 'converter', 'conversion', 'web', 'data', 'format', 'atob', 'btoa'],
component: () => import('./base64-string-converter.vue'),
icon: FileDigit,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/FileDigit')),
redirectFrom: ['/file-to-base64', '/base64-converter'],
npmPackages: ['js-base64'],
category: 'Converters',
+1 -2
View File
@@ -1,4 +1,3 @@
import { Command } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.bash-memo.description'),
keywords: ['bash', 'shell'],
component: () => import('./bash-memo.vue'),
icon: Command,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/Command')),
createdAt: new Date('2025-05-08'),
category: 'Cheatsheets',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { PasswordRound } from '@vicons/material';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -18,6 +17,6 @@ export const tool = defineTool({
'authorization',
],
component: () => import('./basic-auth-generator.vue'),
icon: PasswordRound,
icon: defineAsyncComponent(() => import('@vicons/material/es/PasswordRound')),
category: 'Network',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { LockSquare } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.bcrypt.description'),
keywords: ['bcrypt', 'hash', 'compare', 'password', 'salt', 'round', 'storage', 'crypto'],
component: () => import('./bcrypt.vue'),
icon: LockSquare,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/LockSquare')),
npmPackages: ['bcryptjs'],
category: 'Crypto',
});
+1 -2
View File
@@ -1,5 +1,4 @@
import { translate as t } from '@/plugins/i18n.plugin';
import { ZoomMoney } from '@vicons/tabler';
import { defineTool } from '../tool';
export const tool = defineTool({
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.bech32.description'),
keywords: ['bech32', 'crypto', 'encode', 'decode', 'bitcoin', 'address', 'segwit'],
component: () => import('./bech32.vue'),
icon: ZoomMoney,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/ZoomMoney')),
createdAt: new Date('2026-02-21'),
category: 'Crypto',
});
@@ -1,4 +1,4 @@
import _ from 'lodash';
import * as _ from 'es-toolkit/compat';
export { computeAverage, computeVariance, arrayToMarkdownTable };
@@ -1,7 +1,7 @@
<script setup lang="ts">
import { useI18n } from 'vue-i18n';
import { Plus, Trash } from '@vicons/tabler';
import _ from 'lodash';
import * as _ from 'es-toolkit/compat';
import { arrayToMarkdownTable, computeAverage, computeVariance } from './benchmark-builder.models';
import DynamicValues from './dynamic-values.vue';
+1 -2
View File
@@ -1,4 +1,3 @@
import { SpeedFilled } from '@vicons/material';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.benchmark-builder.description'),
keywords: ['benchmark', 'builder', 'execution', 'duration', 'mean', 'variance'],
component: () => import('./benchmark-builder.vue'),
icon: SpeedFilled,
icon: defineAsyncComponent(() => import('@vicons/material/es/SpeedFilled')),
createdAt: new Date('2023-04-05'),
category: 'Measurement',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { World } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.bimi-dns-generator.description'),
keywords: ['bimi', 'dns', 'txt'],
component: () => import('./bimi-dns-generator.vue'),
icon: World,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/World')),
createdAt: new Date('2025-04-21'),
category: 'Network',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { Calculator } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.binary-calculator.description'),
keywords: ['binary', 'and', 'or', 'xor', 'not', 'bitwise', 'calculator'],
component: () => import('./binary-calculator.vue'),
icon: Calculator,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/Calculator')),
createdAt: new Date('2025-11-11'),
category: 'Maths',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { AlignJustified } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.bip39-generator.description'),
keywords: ['BIP39', 'passphrase', 'generator', 'mnemonic', 'entropy'],
component: () => import('./bip39-generator.vue'),
icon: AlignJustified,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/AlignJustified')),
npmPackages: ['@it-tools/bip39'],
category: 'Generators',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { MedicalCross } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.bmi-calculator.description'),
keywords: ['bmi', 'body', 'mass'],
component: () => import('./bmi-calculator.vue'),
icon: MedicalCross,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/MedicalCross')),
createdAt: new Date('2025-04-21'),
category: 'Data',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { Mailbox } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.bounce-parser.description'),
keywords: ['bounce', 'email', 'smtp', 'parser'],
component: () => import('./bounce-parser.vue'),
icon: Mailbox,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/Mailbox')),
createdAt: new Date('2024-08-15'),
category: 'Forensic',
});
+1 -2
View File
@@ -1,5 +1,4 @@
import { translate as t } from '@/plugins/i18n.plugin';
import { Calendar } from '@vicons/tabler';
import { defineTool } from '../tool';
export const tool = defineTool({
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.calendar-converter.description'),
keywords: ['calendar', 'gregorian', 'julian', 'hebrew', 'islamic', 'persian', 'mayan', 'indian', 'french', 'republican', 'iso-8601', 'unix', 'excel', 'converter'],
component: () => import('./calendar-converter.vue'),
icon: Calendar,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/Calendar')),
createdAt: new Date('2026-02-21'),
category: 'Data',
});
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { useI18n } from 'vue-i18n';
import _ from 'lodash';
import * as _ from 'es-toolkit/compat';
import { useMediaRecorder } from './useMediaRecorder';
+1 -2
View File
@@ -1,4 +1,3 @@
import { Camera } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.camera-recorder.description'),
keywords: ['camera', 'recoder'],
component: () => import('./camera-recorder.vue'),
icon: Camera,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/Camera')),
createdAt: new Date('2023-05-15'),
category: 'Images',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { PlayCard } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.card-picker.description'),
keywords: ['card', 'deck', 'picker'],
component: () => import('./card-picker.vue'),
icon: PlayCard,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/PlayCard')),
createdAt: new Date('2025-02-09'),
category: 'Gaming',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { LetterCaseToggle } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -25,7 +24,7 @@ export const tool = defineTool({
'swapCase',
],
component: () => import('./case-converter.vue'),
icon: LetterCaseToggle,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/LetterCaseToggle')),
npmPackages: ['change-case'],
category: 'Text',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { FileCertificate } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.certificate-key-parser.description'),
keywords: ['certificate', 'key', 'parser'],
component: () => import('./certificate-key-parser.vue'),
icon: FileCertificate,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/FileCertificate')),
createdAt: new Date('2024-02-22'),
category: 'Crypto',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { FileText } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.charset-detector.description'),
keywords: ['charset', 'ascii', 'iso', 'utf8', 'unicode', 'encoding', 'decode', 'text', 'detector'],
component: () => import('./charset-detector.vue'),
icon: FileText,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/FileText')),
createdAt: new Date('2025-03-09'),
category: 'Forensic',
});
@@ -1,4 +1,4 @@
import _ from 'lodash';
import * as _ from 'es-toolkit/compat';
import type { GroupPermissions, Permissions, SpecialPermissions } from './chmod-calculator.types';
import { translate as t } from '@/plugins/i18n.plugin';
+1 -2
View File
@@ -1,4 +1,3 @@
import { FileInvoice } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -20,6 +19,6 @@ export const tool = defineTool({
'umask',
],
component: () => import('./chmod-calculator.vue'),
icon: FileInvoice,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/FileInvoice')),
category: 'Network',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { FileInvoice } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.chmod-memo.description'),
keywords: ['chmod', 'permissions', 'memo', 'cheatsheet'],
component: () => import('./chmod-memo.vue'),
icon: FileInvoice,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/FileInvoice')),
createdAt: new Date('2025-11-11'),
category: 'Cheatsheets',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { TimerOutlined } from '@vicons/material';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,6 +7,6 @@ export const tool = defineTool({
description: t('tools.chronometer.description'),
keywords: ['chronometer', 'time', 'lap', 'duration', 'measure', 'pause', 'resume', 'stopwatch'],
component: () => import('./chronometer.vue'),
icon: TimerOutlined,
icon: defineAsyncComponent(() => import('@vicons/material/es/TimerOutlined')),
category: 'Datetime',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { UnfoldMoreOutlined } from '@vicons/material';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -9,7 +8,7 @@ export const tool = defineTool({
keywords: ['ip', 'cidr', 'range', 'mask', 'wildcard', 'ipv4', 'ipv6', 'subnet', 'include', 'inclusion'],
component: () => import('./cidr-in-cidr.vue'),
redirectFrom: ['/ip-in-range'],
icon: UnfoldMoreOutlined,
icon: defineAsyncComponent(() => import('@vicons/material/es/UnfoldMoreOutlined')),
createdAt: new Date('2025-01-12'),
category: 'Network',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { Book2 } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.citation-generator.description'),
keywords: ['citation', 'generator', 'apa', 'mla', 'bibliography'],
component: () => import('./citation-generator.vue'),
icon: Book2,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/Book2')),
createdAt: new Date('2025-07-06'),
category: 'Text',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { Terminal2 } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: '',
keywords: ['cli', 'command', 'editor'],
component: () => import('./cli-command-editor.vue'),
icon: Terminal2,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/Terminal2')),
createdAt: new Date('2025-07-05'),
category: 'Development',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { Code } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.code-highlighter.description'),
keywords: ['code', 'highlighter'],
component: () => import('./code-highlighter.vue'),
icon: Code,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/Code')),
createdAt: new Date('2024-08-15'),
category: 'Development',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { Coin } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.coin-flipper.description'),
keywords: ['coin', 'flipper'],
component: () => import('./coin-flipper.vue'),
icon: Coin,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/Coin')),
createdAt: new Date('2025-02-09'),
category: 'Gaming',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { ColorSwatch } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.color-contrast-checker.description'),
keywords: ['color', 'contrast', 'checker', 'wcag'],
component: () => import('./color-contrast-checker.vue'),
icon: ColorSwatch,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/ColorSwatch')),
createdAt: new Date('2025-03-09'),
category: 'Web',
});
@@ -4,7 +4,7 @@ import type { Colord } from 'colord';
import { colord, extend } from 'colord';
import { colordx, extend as extendx } from '@colordx/core';
import xlabPlugin from '@colordx/core/plugins/lab';
import _ from 'lodash';
import * as _ from 'es-toolkit/compat';
import cmykPlugin from 'colord/plugins/cmyk';
import hwbPlugin from 'colord/plugins/hwb';
import namesPlugin from 'colord/plugins/names';
+1 -2
View File
@@ -1,4 +1,3 @@
import { Palette } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.color-converter.description'),
keywords: ['color', 'converter'],
component: () => import('./color-converter.vue'),
icon: Palette,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/Palette')),
redirectFrom: ['/color-picker-converter'],
npmPackages: ['colord'],
category: 'Web',
+1 -2
View File
@@ -1,4 +1,3 @@
import { ColorPicker } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.color-wheel.description'),
keywords: ['color', 'wheel', 'palette', 'theme'],
component: () => import('./color-wheel.vue'),
icon: ColorPicker,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/ColorPicker')),
createdAt: new Date('2024-08-15'),
category: 'Web',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { FileText } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.common-regex-memo.description'),
keywords: ['common', 'regex', 'memo', 'cheatsheet'],
component: () => import('./common-regex-memo.vue'),
icon: FileText,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/FileText')),
createdAt: new Date('2024-05-11'),
category: 'Cheatsheets',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { Cookie } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.cookies-parser.description'),
keywords: ['cookies', 'parser'],
component: () => import('./cookies-parser.vue'),
icon: Cookie,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/Cookie')),
createdAt: new Date('2025-05-01'),
category: 'Forensic',
});
+6 -11
View File
@@ -1,7 +1,7 @@
<script setup lang="ts">
import { useI18n } from 'vue-i18n';
import { Countdown } from 'vue3-flip-countdown';
import moment from 'moment';
import { add, format } from 'date-fns';
import { useQueryParam } from '@/composable/queryParams';
const { t } = useI18n();
@@ -38,22 +38,17 @@ watchEffect(() => {
}
});
const now = ref(moment());
const now = ref(new Date());
const deadlineDate = computed(() => {
return now.value.add(days.value, 'd').add(hours.value, 'h').add(minutes.value, 'm').add(seconds.value, 's').toDate();
return add(now.value, { days: days.value, hours: hours.value, minutes: minutes.value, seconds: seconds.value });
});
const fmt = 'YYYY-MM-DD HH:mm:ss';
const fmt = 'yyyy-MM-dd HH:mm:ss';
const deadlineFormatted = computed(() => {
return now.value
.add(days.value, 'd')
.add(hours.value, 'h')
.add(minutes.value, 'm')
.add(seconds.value, 's')
.format(fmt);
return format(deadlineDate.value, fmt);
});
function start() {
now.value = moment();
now.value = new Date();
status.value = 'running';
const histoEntry = { d: days.value, h: hours.value, m: minutes.value, s: seconds.value };
if (
+1 -2
View File
@@ -1,4 +1,3 @@
import { Alarm } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.countdown.description'),
keywords: ['countdown'],
component: () => import('./countdown.vue'),
icon: Alarm,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/Alarm')),
createdAt: new Date('2025-03-09'),
category: 'Datetime',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { EyeOff } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -20,7 +19,7 @@ export const tool = defineTool({
'crc32 mpeg-2',
'crcjam'],
component: () => import('./crc-calculator.vue'),
icon: EyeOff,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/EyeOff')),
createdAt: new Date('2024-05-11'),
category: 'Crypto',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { CreditCard } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.credit-card-checker.description'),
keywords: ['credit', 'card', 'checker'],
component: () => import('./credit-card-checker.vue'),
icon: CreditCard,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/CreditCard')),
createdAt: new Date('2025-10-03'),
category: 'Data',
});
+5 -5
View File
@@ -2,7 +2,7 @@
import { useI18n } from 'vue-i18n';
import { Countdown } from 'vue3-flip-countdown';
import { parseExpression } from 'cron-parser';
import moment from 'moment';
import { format } from 'date-fns';
import { useQueryParam } from '@/composable/queryParams';
const { t } = useI18n();
@@ -29,7 +29,7 @@ watchEffect(() => {
}
});
const now = ref(moment());
const now = ref(new Date());
const daysArray = computed<string[]>({
get() {
return (alarmDays.value || allDays).split(',').map((s) => s.trim());
@@ -47,13 +47,13 @@ const alarmAtDate = computed(() => {
return interval.next().toDate();
});
const fmt = 'YYYY-MM-DD HH:mm:ss';
const fmt = 'yyyy-MM-dd HH:mm:ss';
const alarmAtFormatted = computed(() => {
return moment(alarmAtDate.value).format(fmt);
return format(alarmAtDate.value, fmt);
});
function start() {
now.value = moment();
now.value = new Date();
status.value = 'running';
const histoEntry = { at: alarmAt.value, days: alarmDays.value };
if (!history.value.find((h) => h.at === histoEntry.at && h.days === histoEntry.days)) {
+1 -2
View File
@@ -1,4 +1,3 @@
import { Alarm } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.cron-alarm.description'),
keywords: ['cron', 'week', 'day', 'alarm'],
component: () => import('./cron-alarm.vue'),
icon: Alarm,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/Alarm')),
createdAt: new Date('2025-04-21'),
category: 'Datetime',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { Alarm } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -23,7 +22,7 @@ export const tool = defineTool({
'aws',
],
component: () => import('./crontab-generator.vue'),
icon: Alarm,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/Alarm')),
npmPackages: ['cronstrue'],
category: 'Network',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { Crop } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: translate('tools.crop-image.description'),
keywords: ['crop', 'image', 'resize', 'canvas'],
component: () => import('./crop-image.vue'),
icon: Crop,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/Crop')),
createdAt: new Date('2026-06-06'),
category: 'Images',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { ArrowsShuffle } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.csr-generator.description'),
keywords: ['csr', 'certificate', 'signing', 'request', 'x509', 'generator'],
component: () => import('./csr-generator.vue'),
icon: ArrowsShuffle,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/ArrowsShuffle')),
createdAt: new Date('2024-02-25'),
category: 'Crypto',
});
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { useI18n } from 'vue-i18n';
import _ from 'lodash';
import * as _ from 'es-toolkit/compat';
import { useITStorage, useQueryParamOrStorage } from '@/composable/queryParams';
const { t } = useI18n();
+1 -2
View File
@@ -1,4 +1,3 @@
import { Rainbow } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.css-gradient-generator.description'),
keywords: ['css', 'gradient', 'generator'],
component: () => import('./css-gradient-generator.vue'),
icon: Rainbow,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/Rainbow')),
createdAt: new Date('2025-11-29'),
category: 'Web',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { BrandCss3 } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.css-prettifier.description'),
keywords: ['css', 'prettifier', 'beautify', 'prettier', 'format'],
component: () => import('./css-prettifier.vue'),
icon: BrandCss3,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/BrandCss3')),
createdAt: new Date('2024-03-15'),
category: 'Web',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { BrandCss3 } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.css-selectors-memo.description'),
keywords: ['css', 'selectors', 'cheatsheet', 'memo'],
component: () => import('./css-selectors-memo.vue'),
icon: BrandCss3,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/BrandCss3')),
createdAt: new Date('2024-08-15'),
category: 'Cheatsheets',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { Dimensions } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.css-units-converter.description'),
keywords: ['css', 'units', 'converter'],
component: () => import('./css-units-converter.vue'),
icon: Dimensions,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/Dimensions')),
createdAt: new Date('2025-11-29'),
category: 'Web',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { Braces } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.css-xpath-converter.description'),
keywords: ['css', 'xpath', 'converter'],
component: () => import('./css-xpath-converter.vue'),
icon: Braces,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/Braces')),
createdAt: new Date('2024-08-15'),
category: 'Web',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { TableExport } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.csv-to-data.description'),
keywords: ['excel', 'csv', 'xlsx', 'sql', 'json', 'yaml', 'insert', 'markdown', 'md', 'tsv', 'xml'],
component: () => import('./csv-to-data.vue'),
icon: TableExport,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/TableExport')),
createdAt: new Date('2025-05-01'),
redirectFrom: ['/csv-to-json'],
category: 'Converters',
+1 -2
View File
@@ -1,4 +1,3 @@
import { ArrowsShuffle } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.csv-to-json.description'),
keywords: ['csv', 'to', 'json', 'convert'],
component: () => import('./csv-to-json.vue'),
icon: ArrowsShuffle,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/ArrowsShuffle')),
createdAt: new Date('2024-04-12'),
category: 'JSON',
});
+1 -2
View File
@@ -1,4 +1,3 @@
import { ExternalLink } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate as t } from '@/plugins/i18n.plugin';
@@ -8,7 +7,7 @@ export const tool = defineTool({
description: t('tools.curl-converter.description'),
keywords: ['curl', 'code', 'language', 'generator'],
component: () => import('./curl-converter.vue'),
icon: ExternalLink,
icon: defineAsyncComponent(() => import('@vicons/tabler/es/ExternalLink')),
createdAt: new Date('2024-04-20'),
category: 'Development',
});
Loaded 100 of 536 files, more files were not shown because too many files have changed in this diff. Show more