feat(client): integrate normalize.css

This commit is contained in:
Elian Doran 2025-05-17 10:03:37 +03:00
parent bfa4c09c7e
commit 470ac18cba
No known key found for this signature in database
7 changed files with 5 additions and 8 deletions

View File

@ -47,6 +47,7 @@
"marked": "15.0.11",
"mermaid": "11.6.0",
"mind-elixir": "4.5.2",
"normalize.css": "8.0.1",
"panzoom": "9.4.3",
"react": "19.1.0",
"react-dom": "19.1.0",

View File

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

View File

@ -44,7 +44,6 @@
"express-http-proxy": "2.1.1",
"jquery": "3.7.1",
"katex": "0.16.22",
"normalize.css": "8.0.1",
"@anthropic-ai/sdk": "0.51.0",
"@braintree/sanitize-url": "7.1.1",
"@triliumnext/commons": "workspace:*",

View File

@ -14,7 +14,6 @@
<% } %>
<script src="../<%= appPath %>/share.js"></script>
<% if (!note.isLabelTruthy("shareOmitDefaultCss")) { %>
<link href="../<%= assetPath %>/node_modules/normalize.css/normalize.css" rel="stylesheet">
<link href="../<%= assetPath %>/stylesheets/share.css" rel="stylesheet">
<% } %>
<% if (note.type === 'text' || note.type === 'book') { %>

View File

@ -62,8 +62,6 @@ async function register(app: express.Application) {
app.use(`/${assetPath}/node_modules/jquery-hotkeys/`, persistentCacheStatic(path.join(nodeModulesDir, "jquery-hotkeys/")));
app.use(`/${assetPath}/node_modules/normalize.css/`, persistentCacheStatic(path.join(nodeModulesDir, "normalize.css/")));
app.use(`/${assetPath}/node_modules/jquery.fancytree/dist/`, persistentCacheStatic(path.join(nodeModulesDir, "jquery.fancytree/dist/")));
}

View File

@ -17,7 +17,6 @@ function buildFilesToCopy() {
"katex/dist",
"jquery/dist",
"jquery-hotkeys",
"normalize.css/normalize.css",
"jquery.fancytree/dist",
// Required as they are native dependencies and cannot be well bundled.

6
pnpm-lock.yaml generated
View File

@ -278,6 +278,9 @@ importers:
mind-elixir:
specifier: 4.5.2
version: 4.5.2
normalize.css:
specifier: 8.0.1
version: 8.0.1
panzoom:
specifier: 9.4.3
version: 9.4.3
@ -737,9 +740,6 @@ importers:
normalize-strings:
specifier: 1.1.1
version: 1.1.1
normalize.css:
specifier: 8.0.1
version: 8.0.1
ollama:
specifier: 0.5.15
version: 0.5.15