Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(monorepo/client): set up stylesheets
Elian Doraneb6d802952ea
diff --git a/apps/client/src/desktop.ts b/apps/client/src/desktop.tsindex 0251324950..51c69aa704 100644--- a/apps/client/src/desktop.ts+++ b/apps/client/src/desktop.ts@@ -10,7 +10,7 @@ import { t } from "./services/i18n.js";import options from "./services/options.js";import type ElectronRemote from "@electron/remote";import type Electron from "electron";-import "../stylesheets/bootstrap.scss";+import "./stylesheets/bootstrap.scss";await appContext.earlyInit();diff --git a/apps/client/src/login.ts b/apps/client/src/login.tsindex 5db5cfd4e8..2ba27be023 100644--- a/apps/client/src/login.ts+++ b/apps/client/src/login.ts@@ -1,4 +1,4 @@-import "../stylesheets/bootstrap.scss";+import "./stylesheets/bootstrap.scss";// @ts-ignore - module = undefined// Required for correct loading of scripts in Electrondiff --git a/apps/client/src/mobile.ts b/apps/client/src/mobile.tsindex 925b6bb159..5d88ec1c41 100644--- a/apps/client/src/mobile.ts+++ b/apps/client/src/mobile.ts@@ -1,7 +1,7 @@import appContext from "./components/app_context.js";import noteAutocompleteService from "./services/note_autocomplete.js";import glob from "./services/glob.js";-import "../stylesheets/bootstrap.scss";+import "./stylesheets/bootstrap.scss";glob.setupGlobs();diff --git a/apps/client/src/set_password.ts b/apps/client/src/set_password.tsindex 95e6cc2dad..67dfee1878 100644--- a/apps/client/src/set_password.ts+++ b/apps/client/src/set_password.ts@@ -1,5 +1,5 @@-import "../stylesheets/bootstrap.scss";-import "../stylesheets/auth.css";+import "./stylesheets/bootstrap.scss";+import "./stylesheets/auth.css";// @TriliumNextTODO: is this even needed anymore?// @ts-ignore - module = undefineddiff --git a/apps/client/src/setup.ts b/apps/client/src/setup.tsindex 0d4647093e..2e0dae151c 100644--- a/apps/client/src/setup.ts+++ b/apps/client/src/setup.ts@@ -1,6 +1,6 @@import utils from "./services/utils.js";import ko from "knockout";-import "../stylesheets/bootstrap.scss";+import "./stylesheets/bootstrap.scss";// TriliumNextTODO: properly make use of below types// type SetupModelSetupType = "new-document" | "sync-from-desktop" | "sync-from-server" | "";diff --git a/apps/client/src/share.ts b/apps/client/src/share.tsindex 8f5ebebad6..0281e6ed4e 100644--- a/apps/client/src/share.ts+++ b/apps/client/src/share.ts@@ -1,4 +1,4 @@-import "../stylesheets/bootstrap.scss";+import "./stylesheets/bootstrap.scss";/*** Fetch note with given ID from backenddiff --git a/_regroup_monorepo/apps/client/stylesheets/auth.css b/apps/client/src/stylesheets/auth.csssimilarity index 100%rename from _regroup_monorepo/apps/client/stylesheets/auth.cssrename to apps/client/src/stylesheets/auth.cssdiff --git a/_regroup_monorepo/apps/client/stylesheets/bootstrap.scss b/apps/client/src/stylesheets/bootstrap.scsssimilarity index 100%rename from _regroup_monorepo/apps/client/stylesheets/bootstrap.scssrename to apps/client/src/stylesheets/bootstrap.scssdiff --git a/_regroup_monorepo/apps/client/stylesheets/calendar.css b/apps/client/src/stylesheets/calendar.csssimilarity index 100%rename from _regroup_monorepo/apps/client/stylesheets/calendar.cssrename to apps/client/src/stylesheets/calendar.cssdiff --git a/_regroup_monorepo/apps/client/stylesheets/ckeditor-theme.css b/apps/client/src/stylesheets/ckeditor-theme.csssimilarity index 100%rename from _regroup_monorepo/apps/client/stylesheets/ckeditor-theme.cssrename to apps/client/src/stylesheets/ckeditor-theme.cssdiff --git a/_regroup_monorepo/apps/client/stylesheets/llm_chat.css b/apps/client/src/stylesheets/llm_chat.csssimilarity index 100%rename from _regroup_monorepo/apps/client/stylesheets/llm_chat.cssrename to apps/client/src/stylesheets/llm_chat.cssdiff --git a/_regroup_monorepo/apps/client/stylesheets/print.css b/apps/client/src/stylesheets/print.csssimilarity index 100%rename from _regroup_monorepo/apps/client/stylesheets/print.cssrename to apps/client/src/stylesheets/print.cssdiff --git a/_regroup_monorepo/apps/client/stylesheets/relation_map.css b/apps/client/src/stylesheets/relation_map.csssimilarity index 100%rename from _regroup_monorepo/apps/client/stylesheets/relation_map.cssrename to apps/client/src/stylesheets/relation_map.cssdiff --git a/_regroup_monorepo/apps/client/stylesheets/share.css b/apps/client/src/stylesheets/share.csssimilarity index 100%rename from _regroup_monorepo/apps/client/stylesheets/share.cssrename to apps/client/src/stylesheets/share.cssdiff --git a/_regroup_monorepo/apps/client/stylesheets/style.css b/apps/client/src/stylesheets/style.csssimilarity index 100%rename from _regroup_monorepo/apps/client/stylesheets/style.cssrename to apps/client/src/stylesheets/style.cssdiff --git a/_regroup_monorepo/apps/client/stylesheets/theme-dark.css b/apps/client/src/stylesheets/theme-dark.csssimilarity index 100%rename from _regroup_monorepo/apps/client/stylesheets/theme-dark.cssrename to apps/client/src/stylesheets/theme-dark.cssdiff --git a/_regroup_monorepo/apps/client/stylesheets/theme-light.css b/apps/client/src/stylesheets/theme-light.csssimilarity index 100%rename from _regroup_monorepo/apps/client/stylesheets/theme-light.cssrename to apps/client/src/stylesheets/theme-light.cssdiff --git a/_regroup_monorepo/apps/client/stylesheets/theme-next-dark.css b/apps/client/src/stylesheets/theme-next-dark.csssimilarity index 100%rename from _regroup_monorepo/apps/client/stylesheets/theme-next-dark.cssrename to apps/client/src/stylesheets/theme-next-dark.cssdiff --git a/_regroup_monorepo/apps/client/stylesheets/theme-next-light.css b/apps/client/src/stylesheets/theme-next-light.csssimilarity index 100%rename from _regroup_monorepo/apps/client/stylesheets/theme-next-light.cssrename to apps/client/src/stylesheets/theme-next-light.cssdiff --git a/_regroup_monorepo/apps/client/stylesheets/theme-next.css b/apps/client/src/stylesheets/theme-next.csssimilarity index 100%rename from _regroup_monorepo/apps/client/stylesheets/theme-next.cssrename to apps/client/src/stylesheets/theme-next.cssdiff --git a/_regroup_monorepo/apps/client/stylesheets/theme-next/base.css b/apps/client/src/stylesheets/theme-next/base.csssimilarity index 100%rename from _regroup_monorepo/apps/client/stylesheets/theme-next/base.cssrename to apps/client/src/stylesheets/theme-next/base.cssdiff --git a/_regroup_monorepo/apps/client/stylesheets/theme-next/dialogs.css b/apps/client/src/stylesheets/theme-next/dialogs.csssimilarity index 100%rename from _regroup_monorepo/apps/client/stylesheets/theme-next/dialogs.cssrename to apps/client/src/stylesheets/theme-next/dialogs.cssdiff --git a/_regroup_monorepo/apps/client/stylesheets/theme-next/forms.css b/apps/client/src/stylesheets/theme-next/forms.csssimilarity index 100%rename from _regroup_monorepo/apps/client/stylesheets/theme-next/forms.cssrename to apps/client/src/stylesheets/theme-next/forms.cssdiff --git a/_regroup_monorepo/apps/client/stylesheets/theme-next/llm-chat.css b/apps/client/src/stylesheets/theme-next/llm-chat.csssimilarity index 100%rename from _regroup_monorepo/apps/client/stylesheets/theme-next/llm-chat.cssrename to apps/client/src/stylesheets/theme-next/llm-chat.cssdiff --git a/_regroup_monorepo/apps/client/stylesheets/theme-next/notes/text.css b/apps/client/src/stylesheets/theme-next/notes/text.csssimilarity index 100%rename from _regroup_monorepo/apps/client/stylesheets/theme-next/notes/text.cssrename to apps/client/src/stylesheets/theme-next/notes/text.cssdiff --git a/_regroup_monorepo/apps/client/stylesheets/theme-next/pages.css b/apps/client/src/stylesheets/theme-next/pages.csssimilarity index 100%rename from _regroup_monorepo/apps/client/stylesheets/theme-next/pages.cssrename to apps/client/src/stylesheets/theme-next/pages.cssdiff --git a/_regroup_monorepo/apps/client/stylesheets/theme-next/ribbon.css b/apps/client/src/stylesheets/theme-next/ribbon.csssimilarity index 100%rename from _regroup_monorepo/apps/client/stylesheets/theme-next/ribbon.cssrename to apps/client/src/stylesheets/theme-next/ribbon.cssdiff --git a/_regroup_monorepo/apps/client/stylesheets/theme-next/shell.css b/apps/client/src/stylesheets/theme-next/shell.csssimilarity index 100%rename from _regroup_monorepo/apps/client/stylesheets/theme-next/shell.cssrename to apps/client/src/stylesheets/theme-next/shell.cssdiff --git a/_regroup_monorepo/apps/client/stylesheets/theme.css b/apps/client/src/stylesheets/theme.csssimilarity index 100%rename from _regroup_monorepo/apps/client/stylesheets/theme.cssrename to apps/client/src/stylesheets/theme.cssdiff --git a/_regroup_monorepo/apps/client/stylesheets/tree.css b/apps/client/src/stylesheets/tree.csssimilarity index 100%rename from _regroup_monorepo/apps/client/stylesheets/tree.cssrename to apps/client/src/stylesheets/tree.cssdiff --git a/apps/client/src/widgets/buttons/calendar.ts b/apps/client/src/widgets/buttons/calendar.tsindex 30c16432d2..3bcba2558a 100644--- a/apps/client/src/widgets/buttons/calendar.ts+++ b/apps/client/src/widgets/buttons/calendar.ts@@ -10,7 +10,7 @@ import type { EventData } from "../../components/app_context.js";import dayjs, { Dayjs } from "dayjs";import utc from "dayjs/plugin/utc.js";import isSameOrAfter from "dayjs/plugin/isSameOrAfter.js";-import "../../../stylesheets/calendar.css";+import "../../stylesheets/calendar.css";import { AttributeRow } from "@triliumnext/commons";dayjs.extend(utc);diff --git a/apps/client/src/widgets/llm_chat/llm_chat_panel.ts b/apps/client/src/widgets/llm_chat/llm_chat_panel.tsindex 3554773d7b..7cbd6a802e 100644--- a/apps/client/src/widgets/llm_chat/llm_chat_panel.ts+++ b/apps/client/src/widgets/llm_chat/llm_chat_panel.ts@@ -14,7 +14,7 @@ import { validateEmbeddingProviders } from "./validation.js";import type { MessageData, ToolExecutionStep, ChatData } from "./types.js";import { applySyntaxHighlight } from "../../services/syntax_highlight.js";-import "../../../stylesheets/llm_chat.css";+import "../../stylesheets/llm_chat.css";export default class LlmChatPanel extends BasicWidget {private noteContextChatMessages!: HTMLElement;diff --git a/apps/client/src/widgets/type_widgets/relation_map.ts b/apps/client/src/widgets/type_widgets/relation_map.tsindex 29a9b45244..b69c7a94e1 100644--- a/apps/client/src/widgets/type_widgets/relation_map.ts+++ b/apps/client/src/widgets/type_widgets/relation_map.ts@@ -11,7 +11,7 @@ import dialogService from "../../services/dialog.js";import { t } from "../../services/i18n.js";import type FNote from "../../entities/fnote.js";import type { ConnectionMadeEventInfo, jsPlumbInstance, OverlaySpec } from "jsplumb";-import "../../../stylesheets/relation_map.css";+import "../../stylesheets/relation_map.css";declare module "jsplumb" {diff --git a/apps/client/webpack.config.js b/apps/client/webpack.config.jsindex 41be6d4eff..1571b60d1e 100644--- a/apps/client/webpack.config.js+++ b/apps/client/webpack.config.js@@ -16,7 +16,7 @@ module.exports = {main: './src/desktop.ts',baseHref: '/',assets: ["./src/assets"],- styles: ["./src/styles.css"],+ styles: [],outputHashing: process.env['NODE_ENV'] === 'production' ? 'all' : 'none',optimization: process.env['NODE_ENV'] === 'production',})