updated external packages

This commit is contained in:
arabcoders 2025-09-09 00:13:43 +03:00
parent ae1b6dd470
commit a39a009395
4 changed files with 133 additions and 644 deletions

View file

@ -56,7 +56,7 @@
</div>
<div class="navbar-end">
<div class="navbar-item has-dropdown" v-if="!config.app.basic_mode">
<a class="navbar-link" @click="e => openMenu(e)">
<a class="navbar-link" @click="(e: MouseEvent) => openMenu(e)">
<span class="icon"><i class="fas fa-tools" /></span>
<span>Other</span>
</a>

View file

@ -1,9 +1,6 @@
import { useStorage } from '@vueuse/core'
import type { convert_args_response } from "~/types/responses";
import type { StoreItem } from "~/types/store";
const runtimeConfig = useRuntimeConfig()
const toast = useNotification()
import type { convert_args_response } from '~/types/responses'
import type { StoreItem } from '~/types/store'
const AG_SEPARATOR = '.'
@ -303,6 +300,8 @@ const dirname = (filePath: string): string => {
* @param store - Whether to persist the notification (optional).
*/
const copyText = (str: string, notify: boolean = true, store: boolean = false): void => {
const toast = useNotification()
if (navigator.clipboard) {
navigator.clipboard.writeText(str).then(() => {
if (notify) toast.success('Text copied to clipboard.')
@ -321,6 +320,7 @@ const copyText = (str: string, notify: boolean = true, store: boolean = false):
document.body.removeChild(el)
if (notify) {
const toast = useNotification()
toast.success('Text copied to clipboard.', { store })
}
}
@ -548,6 +548,8 @@ const cleanObject = <T extends Record<string, any>>(item: T, fields: string[] =
* @returns The fully prefixed URI.
*/
const uri = (u: string): string => {
const runtimeConfig = useRuntimeConfig()
if (!u || '/' === runtimeConfig.app.baseURL || !u.startsWith('/')) {
return u
}

View file

@ -33,5 +33,11 @@
"esbuild",
"@parcel/watcher"
]
},
"overrides": {
"supports-color": "10.2.0",
"strip-ansi": "7.1.0",
"ansi-styles": "6.2.0",
"ansi-regex": "6.2.0"
}
}

File diff suppressed because it is too large Load diff