File tree Expand file tree Collapse file tree 4 files changed +16
-15
lines changed
Expand file tree Collapse file tree 4 files changed +16
-15
lines changed Original file line number Diff line number Diff line change 11import { devtoolsUiShowNotification } from '#imports'
22import { until } from '@vueuse/core'
3- import { UAParser } from 'my- ua-parser'
3+ import { parseUA } from 'ua-parser-modern '
44import { ref } from 'vue'
55import { AuthConfirm } from './dialog'
66import { rpc } from './rpc'
@@ -53,7 +53,7 @@ export async function ensureDevAuthToken() {
5353 return devAuthToken . value !
5454}
5555
56- export const userAgentInfo = new UAParser ( navigator . userAgent ) . getResult ( )
56+ export const userAgentInfo = parseUA ( navigator . userAgent )
5757
5858export async function requestForAuth ( ) {
5959 const desc = [
Original file line number Diff line number Diff line change 121121 "lightningcss" : " catalog:buildtools" ,
122122 "markdown-it" : " catalog:frontend" ,
123123 "markdown-it-link-attributes" : " catalog:frontend" ,
124- "my-ua-parser" : " catalog:frontend" ,
125124 "nitropack" : " catalog:buildtools" ,
126125 "nuxt" : " catalog:buildtools" ,
127126 "ofetch" : " catalog:frontend" ,
131130 "shiki-codegen" : " catalog:buildtools" ,
132131 "theme-vitesse" : " catalog:frontend" ,
133132 "tsx" : " catalog:cli" ,
133+ "ua-parser-modern" : " catalog:frontend" ,
134134 "unimport" : " catalog:types" ,
135135 "unocss" : " catalog:buildtools" ,
136136 "unplugin-vue" : " catalog:buildtools" ,
Original file line number Diff line number Diff line change @@ -83,7 +83,6 @@ catalogs:
8383 json-editor-vue : ^0.18.1
8484 markdown-it : ^14.1.1
8585 markdown-it-link-attributes : ^4.0.1
86- my-ua-parser : ^2.0.4
8786 ofetch : ^1.5.1
8887 ohash : ^2.0.11
8988 pathe : ^2.0.3
@@ -95,6 +94,7 @@ catalogs:
9594 splitpanes : ^4.0.4
9695 structured-clone-es : ^1.0.0
9796 theme-vitesse : ^1.0.0
97+ ua-parser-modern : ^0.1.0
9898 v-lazy-show : ^0.3.0
9999 vanilla-jsoneditor : ^3.11.0
100100 vis-data : ^8.0.3
You can’t perform that action at this time.
0 commit comments