mirror of
https://github.com/nocobase/nocobase.git
synced 2026-10-16 06:56:22 +08:00
* Update the plugins, templates and UI Library for the new runtime Device authorization, scoped API keys, service accounts, user invitations and preferences, secrets-backed credentials, the inbox and the cn package across the existing plugins, examples and the three templates, with the UI Library's auth, inbox, authorization and component items. * Declare the UI Library site's favicon * Use the NocoBase favicon on the UI Library site * Fix generated-app shell tests and the Hub's user deletion test Inline the authentication client in the templates' Vitest config so its guards share the test's react-router, and update the Hub test to the users plugin's new copy and spinner label.
30 lines
973 B
HTML
30 lines
973 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<link rel="icon" href="/favicon.ico" />
|
|
<script>
|
|
(() => {
|
|
const queryTheme = new URLSearchParams(window.location.search).get(
|
|
'theme',
|
|
);
|
|
const stored = localStorage.getItem('nocobase-ui-library-theme');
|
|
const dark =
|
|
queryTheme === 'dark' ||
|
|
(queryTheme !== 'light' &&
|
|
(stored === 'dark' ||
|
|
(stored !== 'light' &&
|
|
window.matchMedia('(prefers-color-scheme: dark)').matches)));
|
|
document.documentElement.classList.toggle('dark', dark);
|
|
document.documentElement.style.colorScheme = dark ? 'dark' : 'light';
|
|
})();
|
|
</script>
|
|
<title>NocoBase UI Library</title>
|
|
</head>
|
|
<body>
|
|
<div id="root"></div>
|
|
<script type="module" src="/website/main.tsx"></script>
|
|
</body>
|
|
</html>
|