Add local Nerd fonts, remove About button, fix tauriIpcAvailable, update build settings

This commit is contained in:
2026-03-13 15:29:58 +08:00
parent d99a0bd5a0
commit 1c7f7929c7
4 changed files with 3 additions and 5 deletions

View File

@@ -77,8 +77,7 @@
font-family: 'JetBrainsMono Nerd Font'; font-family: 'JetBrainsMono Nerd Font';
src: src:
local('JetBrainsMono Nerd Font'), local('JetBrainsMono Nerd Font'),
url('https://cdn.jsdelivr.net/gh/mshaugh/nerdfont-webfonts@v3.3.0/build/fonts/JetBrainsMonoNerdFont-Regular.woff2') format('woff2'), url('/fonts/JetBrainsMonoNerdFont-Regular.woff2') format('woff2');
url('https://cdn.jsdelivr.net/gh/mshaugh/nerdfont-webfonts@v3.3.0/build/fonts/JetBrainsMonoNerdFont-Regular.woff') format('woff');
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
font-display: swap; font-display: swap;
@@ -89,8 +88,7 @@
font-family: 'FiraCode Nerd Font'; font-family: 'FiraCode Nerd Font';
src: src:
local('FiraCode Nerd Font'), local('FiraCode Nerd Font'),
url('https://cdn.jsdelivr.net/gh/mshaugh/nerdfont-webfonts@v3.3.0/build/fonts/FiraCodeNerdFont-Regular.woff2') format('woff2'), url('/fonts/FiraCodeNerdFont-Regular.woff2') format('woff2');
url('https://cdn.jsdelivr.net/gh/mshaugh/nerdfont-webfonts@v3.3.0/build/fonts/FiraCodeNerdFont-Regular.woff') format('woff');
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
font-display: swap; font-display: swap;

View File

@@ -21,7 +21,7 @@
"lint": "eslint \"./src/**/*.{ts,tsx}\" --config ../eslint.config.js", "lint": "eslint \"./src/**/*.{ts,tsx}\" --config ../eslint.config.js",
"start": "node bin/cli.js serve", "start": "node bin/cli.js serve",
"embed:static": "node embed-static.js", "embed:static": "node embed-static.js",
"build:exe": "vite build && node embed-static.js && bun build entry-singlefile.js --compile --outfile XCOpenCodeWeb.exe" "build:exe": "vite build && node embed-static.js && bun build entry-singlefile.js --compile --outfile XCOpenCodeWeb.exe --windows.console=hide && node -e \"require('fs').readdirSync('.').filter(f => f.endsWith('.bun-build')).forEach(f => require('fs').unlinkSync(f))\""
}, },
"dependencies": { "dependencies": {
"@codemirror/lang-cpp": "^6.0.3", "@codemirror/lang-cpp": "^6.0.3",

Binary file not shown.

Binary file not shown.