chore(monorepo/client): set up stylesheets

This commit is contained in:
Elian Doran 2025-04-22 23:02:36 +03:00
parent fa48e5986b
commit eb6d802952
No known key found for this signature in database
34 changed files with 11 additions and 11 deletions

View File

@ -10,7 +10,7 @@ import { t } from "./services/i18n.js";
import options from "./services/options.js"; import options from "./services/options.js";
import type ElectronRemote from "@electron/remote"; import type ElectronRemote from "@electron/remote";
import type Electron from "electron"; import type Electron from "electron";
import "../stylesheets/bootstrap.scss"; import "./stylesheets/bootstrap.scss";
await appContext.earlyInit(); await appContext.earlyInit();

View File

@ -1,4 +1,4 @@
import "../stylesheets/bootstrap.scss"; import "./stylesheets/bootstrap.scss";
// @ts-ignore - module = undefined // @ts-ignore - module = undefined
// Required for correct loading of scripts in Electron // Required for correct loading of scripts in Electron

View File

@ -1,7 +1,7 @@
import appContext from "./components/app_context.js"; import appContext from "./components/app_context.js";
import noteAutocompleteService from "./services/note_autocomplete.js"; import noteAutocompleteService from "./services/note_autocomplete.js";
import glob from "./services/glob.js"; import glob from "./services/glob.js";
import "../stylesheets/bootstrap.scss"; import "./stylesheets/bootstrap.scss";
glob.setupGlobs(); glob.setupGlobs();

View File

@ -1,5 +1,5 @@
import "../stylesheets/bootstrap.scss"; import "./stylesheets/bootstrap.scss";
import "../stylesheets/auth.css"; import "./stylesheets/auth.css";
// @TriliumNextTODO: is this even needed anymore? // @TriliumNextTODO: is this even needed anymore?
// @ts-ignore - module = undefined // @ts-ignore - module = undefined

View File

@ -1,6 +1,6 @@
import utils from "./services/utils.js"; import utils from "./services/utils.js";
import ko from "knockout"; import ko from "knockout";
import "../stylesheets/bootstrap.scss"; import "./stylesheets/bootstrap.scss";
// TriliumNextTODO: properly make use of below types // TriliumNextTODO: properly make use of below types
// type SetupModelSetupType = "new-document" | "sync-from-desktop" | "sync-from-server" | ""; // type SetupModelSetupType = "new-document" | "sync-from-desktop" | "sync-from-server" | "";

View File

@ -1,4 +1,4 @@
import "../stylesheets/bootstrap.scss"; import "./stylesheets/bootstrap.scss";
/** /**
* Fetch note with given ID from backend * Fetch note with given ID from backend

View File

@ -10,7 +10,7 @@ import type { EventData } from "../../components/app_context.js";
import dayjs, { Dayjs } from "dayjs"; import dayjs, { Dayjs } from "dayjs";
import utc from "dayjs/plugin/utc.js"; import utc from "dayjs/plugin/utc.js";
import isSameOrAfter from "dayjs/plugin/isSameOrAfter.js"; import isSameOrAfter from "dayjs/plugin/isSameOrAfter.js";
import "../../../stylesheets/calendar.css"; import "../../stylesheets/calendar.css";
import { AttributeRow } from "@triliumnext/commons"; import { AttributeRow } from "@triliumnext/commons";
dayjs.extend(utc); dayjs.extend(utc);

View File

@ -14,7 +14,7 @@ import { validateEmbeddingProviders } from "./validation.js";
import type { MessageData, ToolExecutionStep, ChatData } from "./types.js"; import type { MessageData, ToolExecutionStep, ChatData } from "./types.js";
import { applySyntaxHighlight } from "../../services/syntax_highlight.js"; import { applySyntaxHighlight } from "../../services/syntax_highlight.js";
import "../../../stylesheets/llm_chat.css"; import "../../stylesheets/llm_chat.css";
export default class LlmChatPanel extends BasicWidget { export default class LlmChatPanel extends BasicWidget {
private noteContextChatMessages!: HTMLElement; private noteContextChatMessages!: HTMLElement;

View File

@ -11,7 +11,7 @@ import dialogService from "../../services/dialog.js";
import { t } from "../../services/i18n.js"; import { t } from "../../services/i18n.js";
import type FNote from "../../entities/fnote.js"; import type FNote from "../../entities/fnote.js";
import type { ConnectionMadeEventInfo, jsPlumbInstance, OverlaySpec } from "jsplumb"; import type { ConnectionMadeEventInfo, jsPlumbInstance, OverlaySpec } from "jsplumb";
import "../../../stylesheets/relation_map.css"; import "../../stylesheets/relation_map.css";
declare module "jsplumb" { declare module "jsplumb" {

View File

@ -16,7 +16,7 @@ module.exports = {
main: './src/desktop.ts', main: './src/desktop.ts',
baseHref: '/', baseHref: '/',
assets: ["./src/assets"], assets: ["./src/assets"],
styles: ["./src/styles.css"], styles: [],
outputHashing: process.env['NODE_ENV'] === 'production' ? 'all' : 'none', outputHashing: process.env['NODE_ENV'] === 'production' ? 'all' : 'none',
optimization: process.env['NODE_ENV'] === 'production', optimization: process.env['NODE_ENV'] === 'production',
}) })