code refactor

This commit is contained in:
MaysWind
2025-01-14 00:14:07 +08:00
parent 593e123610
commit f4ea9a85f0
11 changed files with 73 additions and 73 deletions
+10 -10
View File
@@ -3,18 +3,18 @@ import uaParser from 'ua-parser-js';
import { TOKEN_CLI_USER_AGENT, type TokenInfoResponse, SessionInfo } from '@/models/token.ts';
interface UserAgentInfo {
device: {
vendor?: string;
model?: string;
type?: string;
readonly device: {
readonly vendor?: string;
readonly model?: string;
readonly type?: string;
};
os: {
name?: string;
version?: string;
readonly os: {
readonly name?: string;
readonly version?: string;
};
browser: {
name?: string;
version?: string;
readonly browser: {
readonly name?: string;
readonly version?: string;
};
}