mirror of
https://github.com/kestra-io/kestra.git
synced 2025-12-19 09:50:29 -05:00
feat(core): always bundle the fonts into the build (#13624)
Closes https://github.com/kestra-io/kestra/issues/13599. Co-authored-by: Miloš Paunović <paun992@hotmail.com>
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<link rel="icon" type="image/png" sizes="192x192" href="/favicon-192x192.png">
|
||||
<link rel="icon" type="image/png" sizes="192x192" href="/favicon-192x192.png">
|
||||
<meta name="msapplication-TileColor" content="#192A4E">
|
||||
<meta name="theme-color" content="#192A4E">
|
||||
<link rel="stylesheet" href="/loader.css" />
|
||||
@@ -26,26 +26,6 @@
|
||||
document.getElementsByTagName("html")[0].classList.add(localStorage.getItem("theme"));
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- Optional but recommended for faster connection -->
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
|
||||
<!-- Load Google Fonts non-blocking -->
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://fonts.googleapis.com/css2?family=Public+Sans:wght@300;400;600;700;800&family=Source+Code+Pro:wght@400;700;800&display=swap"
|
||||
media="print"
|
||||
onload="this.media='all'"
|
||||
>
|
||||
|
||||
<!-- Fallback for when JavaScript is disabled -->
|
||||
<noscript>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://fonts.googleapis.com/css2?family=Public+Sans:wght@300;400;600;700;800&family=Source+Code+Pro:wght@400;700;800&display=swap"
|
||||
>
|
||||
</noscript>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
@use "fonts";
|
||||
|
||||
@use "@kestra-io/ui-libs/src/scss/variables.scss" as global-var;
|
||||
@use 'element-plus/theme-chalk/src/mixins/mixins' as mixin;
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
src:
|
||||
local('Public Sans Light'),
|
||||
local('PublicSans-Light'),
|
||||
url('../../src/assets/fonts/public-sans/public-sans-v21-latin-300.woff2') format('woff2');
|
||||
url('../assets/fonts/public-sans/public-sans-v21-latin-300.woff2') format('woff2');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
@@ -17,7 +17,7 @@
|
||||
src:
|
||||
local('Public Sans Regular'),
|
||||
local('PublicSans-Regular'),
|
||||
url('../../src/assets/fonts/public-sans/public-sans-v21-latin-regular.woff2') format('woff2');
|
||||
url('../assets/fonts/public-sans/public-sans-v21-latin-regular.woff2') format('woff2');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
@@ -28,7 +28,7 @@
|
||||
src:
|
||||
local('Public Sans SemiBold'),
|
||||
local('PublicSans-SemiBold'),
|
||||
url('../../src/assets/fonts/public-sans/public-sans-v21-latin-600.woff2') format('woff2');
|
||||
url('../assets/fonts/public-sans/public-sans-v21-latin-600.woff2') format('woff2');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
@@ -39,7 +39,7 @@
|
||||
src:
|
||||
local('Public Sans Bold'),
|
||||
local('PublicSans-Bold'),
|
||||
url('../../src/assets/fonts/public-sans/public-sans-v21-latin-700.woff2') format('woff2');
|
||||
url('../assets/fonts/public-sans/public-sans-v21-latin-700.woff2') format('woff2');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
@@ -50,7 +50,7 @@
|
||||
src:
|
||||
local('Public Sans ExtraBold'),
|
||||
local('PublicSans-ExtraBold'),
|
||||
url('../../src/assets/fonts/public-sans/public-sans-v21-latin-800.woff2') format('woff2');
|
||||
url('../assets/fonts/public-sans/public-sans-v21-latin-800.woff2') format('woff2');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
@@ -61,7 +61,7 @@
|
||||
src:
|
||||
local('Source Code Pro Regular'),
|
||||
local('SourceCodePro-Regular'),
|
||||
url('../../src/assets/fonts/source-code-pro/source-code-pro-v31-latin-regular.woff2') format('woff2');
|
||||
url('../assets/fonts/source-code-pro/source-code-pro-v31-latin-regular.woff2') format('woff2');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
@@ -72,7 +72,7 @@
|
||||
src:
|
||||
local('Source Code Pro Bold'),
|
||||
local('SourceCodePro-Bold'),
|
||||
url('../../src/assets/fonts/source-code-pro/source-code-pro-v31-latin-700.woff2') format('woff2');
|
||||
url('../assets/fonts/source-code-pro/source-code-pro-v31-latin-700.woff2') format('woff2');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
@@ -83,5 +83,5 @@
|
||||
src:
|
||||
local('Source Code Pro ExtraBold'),
|
||||
local('SourceCodePro-ExtraBold'),
|
||||
url('../../src/assets/fonts/source-code-pro/source-code-pro-v31-latin-800.woff2') format('woff2');
|
||||
url('../assets/fonts/source-code-pro/source-code-pro-v31-latin-800.woff2') format('woff2');
|
||||
}
|
||||
@@ -43,8 +43,6 @@
|
||||
|
||||
@use "nprogress/nprogress.css";
|
||||
|
||||
@import "./fonts.scss";
|
||||
|
||||
// skiki
|
||||
.shiki {
|
||||
font-size: 0.875em;
|
||||
|
||||
@@ -10,10 +10,6 @@ export default defineConfig({
|
||||
build: {
|
||||
outDir: "../webserver/src/main/resources/ui",
|
||||
rollupOptions: {
|
||||
external: [
|
||||
"https://fonts.googleapis.com",
|
||||
"https://fonts.gstatic.com"
|
||||
],
|
||||
output: {
|
||||
advancedChunks: {
|
||||
groups: [
|
||||
|
||||
Reference in New Issue
Block a user