Add local Nerd fonts, remove About button, fix tauriIpcAvailable, update build settings
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
BIN
web/public/fonts/FiraCodeNerdFont-Regular.woff2
Normal file
BIN
web/public/fonts/FiraCodeNerdFont-Regular.woff2
Normal file
Binary file not shown.
BIN
web/public/fonts/JetBrainsMonoNerdFont-Regular.woff2
Normal file
BIN
web/public/fonts/JetBrainsMonoNerdFont-Regular.woff2
Normal file
Binary file not shown.
Reference in New Issue
Block a user