CD — Deployment / deploy (push) Successful in 23s
- dump the database to ./backups before applying migrations - run the one-shot migrate service on every deploy instead of relying only on the api depends_on, so a migration is never skipped - translate the workflow comments to English --------- Co-authored-by: xEsiah <[email protected]> Reviewed-on: #9 Reviewed-by: Esiah <[email protected]> Co-authored-by: Gitea Actions <-[email protected]>
12 lines
416 B
JavaScript
12 lines
416 B
JavaScript
(function () {
|
|
try {
|
|
var stored = localStorage.getItem("cohaise-theme");
|
|
var theme = stored === "light" || stored === "dark" ? stored : "system";
|
|
var prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
var dark = theme === "dark" || (theme === "system" && prefersDark);
|
|
document.documentElement.classList.toggle("dark", dark);
|
|
} catch (error) {
|
|
void error;
|
|
}
|
|
})();
|