chore: update dependencies

This commit is contained in:
Shiny Nematoda 2024-09-23 18:09:08 +00:00
parent 33cd0008eb
commit 0cf17ae50e
5 changed files with 307 additions and 329 deletions

View file

@ -432,7 +432,8 @@ input[type='range']::-moz-range-track {
left: auto;
right: -0.5rem;
}
#btn-rewind, #btn-forward {
#btn-rewind,
#btn-forward {
display: none;
}
}

View file

@ -55,7 +55,7 @@ export async function getJsonHyp(path) {
export async function getJsonAuth(path, opts = {}) {
const root = useStore().getItem('authapi') || PIPED_INSTANCE;
return await getJson('https://' + root + path, opts);
}

View file

@ -5,10 +5,11 @@ export const PL_EXP =
/[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}/;
export function useSanitize(txt) {
return ('' + txt).replace(AMP, '&')
.replace(/&/g, '&')
.replace(/>/g, '>')
.replace(/</g, '&lt;');
return ('' + txt)
.replace(AMP, '&')
.replace(/&/g, '&amp;')
.replace(/>/g, '&gt;')
.replace(/</g, '&lt;');
}
export function useAutoTheme(t) {