mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 14:47:14 +01:00
Link editing.
This commit is contained in:
parent
0558563d35
commit
5f4b83b09c
13 changed files with 123 additions and 89 deletions
|
|
@ -12,6 +12,8 @@ export const REPO_URL = 'https://github.com/umami-software/umami';
|
|||
export const UPDATES_URL = 'https://api.umami.is/v1/updates';
|
||||
export const TELEMETRY_PIXEL = 'https://i.umami.is/a.png';
|
||||
export const FAVICON_URL = 'https://icons.duckduckgo.com/ip3/{{domain}}.ico';
|
||||
export const LINKS_URL = `${globalThis?.location?.origin}/q`;
|
||||
export const PIXELS_URL = `${globalThis?.location?.origin}/p`;
|
||||
|
||||
export const DEFAULT_LOCALE = 'en-US';
|
||||
export const DEFAULT_THEME = 'light';
|
||||
|
|
|
|||
|
|
@ -38,3 +38,12 @@ export function safeDecodeURIComponent(s: string | undefined | null): string | u
|
|||
return s;
|
||||
}
|
||||
}
|
||||
|
||||
export function isValidUrl(url: string) {
|
||||
try {
|
||||
new URL(url);
|
||||
return true;
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue