IT-TOOLS-PRO v1 - 定制版开发者工具站

12个原创工具(批量条码/二维码识别/在线翻译/OCR/面单设计/AI修图/网站收藏/PDF工具/图片工具/文档转换等)
+ 卡密授权系统(CardAuth对接,30分钟试用,换卡/撤销)
+ 体验优化(中文默认/收藏/最近使用/菜单展开/宽屏/品牌页脚)
This commit is contained in:
personal82555 committed 2026-10-11 23:58:39 +08:00
commit 01ff133ac9
528 files changed
+50026

No files matched your search

@@ -0,0 +1,102 @@
<script setup lang="ts">
import { useWindowSize } from '@vueuse/core';
const { width, height } = useWindowSize();
const sections = [
{
name: 'Screen',
information: [
{
label: 'Screen size',
value: computed(() => `${window.screen.availWidth} x ${window.screen.availHeight}`),
},
{
label: 'Orientation',
value: computed(() => window.screen.orientation.type),
},
{
label: 'Orientation angle',
value: computed(() => `${window.screen.orientation.angle}°`),
},
{
label: 'Color depth',
value: computed(() => `${window.screen.colorDepth} bits`),
},
{
label: 'Pixel ratio',
value: computed(() => `${window.devicePixelRatio} dppx`),
},
{
label: 'Window size',
value: computed(() => `${width.value} x ${height.value}`),
},
],
},
{
name: 'Device',
information: [
{
label: 'Browser vendor',
value: computed(() => navigator.vendor),
},
{
label: 'Languages',
value: computed(() => navigator.languages.join(', ')),
},
{
label: 'Platform',
value: computed(() => navigator.platform),
},
{
label: 'User agent',
value: computed(() => navigator.userAgent),
},
],
},
];
</script>
<template>
<c-card v-for="{ name, information } in sections" :key="name" :title="name">
<n-grid cols="1 400:2" x-gap="12" y-gap="12">
<n-gi v-for="{ label, value: { value } } in information" :key="label" class="information">
<div class="label">
{{ label }}
</div>
<div class="value">
<n-ellipsis v-if="value">
{{ value }}
</n-ellipsis>
<div v-else class="undefined-value">
unknown
</div>
</div>
</n-gi>
</n-grid>
</c-card>
</template>
<style lang="less" scoped>
.information {
padding: 14px 16px;
border-radius: 4px;
background-color: #aaaaaa11;
.label {
font-size: 14px;
opacity: 0.8;
line-height: 1;
margin-bottom: 5px;
}
.value {
font-size: 20px;
font-weight: 400;
}
.undefined-value {
opacity: 0.8;
}
}
</style>
+24
View File
@@ -0,0 +1,24 @@
import { DeviceDesktop } from '@vicons/tabler';
import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';
export const tool = defineTool({
name: translate('tools.device-information.title'),
path: '/device-information',
description: translate('tools.device-information.description'),
keywords: [
'device',
'information',
'screen',
'pixel',
'ratio',
'status',
'data',
'computer',
'size',
'user',
'agent',
],
component: () => import('./device-information.vue'),
icon: DeviceDesktop,
});