mirror of
https://github.com/unraid/api.git
synced 2026-01-06 08:39:54 -06:00
42 lines
1.6 KiB
TypeScript
42 lines
1.6 KiB
TypeScript
const ACCOUNT = new URL(import.meta.env.VITE_ACCOUNT ?? 'https://account.unraid.net');
|
|
const DOCS = new URL('https://docs.unraid.net');
|
|
const FORUMS = new URL('https://forums.unraid.net');
|
|
const UNRAID_NET = new URL(localStorage.getItem('craftUrl') ?? import.meta.env.VITE_UNRAID_NET ?? 'https://unraid.net');
|
|
|
|
const ACCOUNT_CALLBACK = new URL('c', ACCOUNT);
|
|
const FORUMS_BUG_REPORT = new URL('/bug-reports', FORUMS);
|
|
const CONNECT_DOCS = new URL('category/unraid-connect', DOCS);
|
|
const CONNECT_DASHBOARD = new URL(import.meta.env.VITE_CONNECT ?? 'https://connect.myunraid.net');
|
|
const CONNECT_FORUMS = new URL('/forum/94-connect-plugin-support/', FORUMS);
|
|
const CONTACT = new URL('/contact', UNRAID_NET);
|
|
const DISCORD = new URL('https://discord.gg/unraid');
|
|
const GRAPHQL = new URL('/graphql', import.meta.env.VITE_GRAPHQL ?? window.location.origin);
|
|
const PURCHASE_CALLBACK = new URL('/c', UNRAID_NET);
|
|
|
|
const SETTINGS_MANAGMENT_ACCESS = new URL('/Settings/ManagementAccess', window.location.origin);
|
|
const PLUGIN_SETTINGS = new URL('#UnraidNetSettings', SETTINGS_MANAGMENT_ACCESS);
|
|
|
|
const OS_RELEASES = new URL('https://s3.amazonaws.com/dnld.lime-technology.com/stable/releases.json');
|
|
|
|
const DOCS_REGISTRATION_LICENSING = new URL('/unraid-os/faq/licensing-faq', DOCS);
|
|
const DOCS_REGISTRATION_REPLACE_KEY = new URL('/unraid-os/manual/changing-the-flash-device', DOCS);
|
|
|
|
export {
|
|
ACCOUNT,
|
|
ACCOUNT_CALLBACK,
|
|
CONNECT_DASHBOARD,
|
|
CONNECT_DOCS,
|
|
CONNECT_FORUMS,
|
|
CONTACT,
|
|
DISCORD,
|
|
FORUMS,
|
|
FORUMS_BUG_REPORT,
|
|
GRAPHQL,
|
|
PURCHASE_CALLBACK,
|
|
PLUGIN_SETTINGS,
|
|
SETTINGS_MANAGMENT_ACCESS,
|
|
OS_RELEASES,
|
|
DOCS_REGISTRATION_LICENSING,
|
|
DOCS_REGISTRATION_REPLACE_KEY,
|
|
};
|