diff --git a/src/tools/device-information/device-information.vue b/src/tools/device-information/device-information.vue new file mode 100644 index 00000000..30ba0bf5 --- /dev/null +++ b/src/tools/device-information/device-information.vue @@ -0,0 +1,114 @@ + + + + + + + {{ label }} + + + + + {{ value.value }} + + + + + + + + + + + \ No newline at end of file diff --git a/src/tools/device-information/index.ts b/src/tools/device-information/index.ts new file mode 100644 index 00000000..aba7978b --- /dev/null +++ b/src/tools/device-information/index.ts @@ -0,0 +1,11 @@ +import { DeviceDesktop } from '@vicons/tabler'; +import type { ITool } from './../Tool'; + +export const tool: ITool = { + name: 'Device information', + path: '/device-information', + description: 'Get information about your current device (screen size, pixel-ratio, user agent, ...)', + keywords: ['device', 'information', 'screen', 'pixel', 'ratio', 'status', 'data', 'computer', 'size', 'user', 'agent'], + component: () => import('./device-information.vue'), + icon: DeviceDesktop, +}; diff --git a/src/tools/index.ts b/src/tools/index.ts index bc29ac6f..e4de3afc 100644 --- a/src/tools/index.ts +++ b/src/tools/index.ts @@ -1,6 +1,7 @@ import { LockOpen } from '@vicons/tabler'; import type { ToolCategory } from './Tool'; +import { tool as deviceInformation } from './device-information'; import { tool as bcrypt } from './bcrypt'; import { tool as caseConverter } from './case-converter'; import { tool as colorConverter } from './color-converter'; @@ -35,7 +36,7 @@ export const toolsByCategory: ToolCategory[] = [ { name: 'Web', icon: LockOpen, - components: [urlEncoder, qrCodeGenerator], + components: [urlEncoder, qrCodeGenerator, deviceInformation], }, { name: 'Development',