mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-02-20 20:49:10 -06:00
Load resources from filesystem instead of remote
This commit is contained in:
@@ -32,29 +32,14 @@ ci-node-generate: assets
|
||||
.PHONY: assets
|
||||
assets: pnpm-build \
|
||||
assets/identifier/static \
|
||||
assets/identifier/static/favicon.ico \
|
||||
assets/identifier/static/opencloud-500.woff2 \
|
||||
assets/identifier/static/opencloud-750.woff2
|
||||
assets/identifier/static/favicon.ico
|
||||
|
||||
assets/identifier/static:
|
||||
mkdir -p assets/identifier/static
|
||||
|
||||
# check if urls are stable, if not replace with stable location
|
||||
FAVICON_URL = https://opencloud.eu/themes/cloudy/src/assets/favicon/favicon.ico
|
||||
FONT_VARIATION_500_URL = https://gitlab.opencode.de/opentalk/web-frontend/-/raw/main/app/public/assets/fonts/opentalk/regular/opentalk-regular.woff2
|
||||
FONT_VARIATION_750_URL = https://gitlab.opencode.de/opentalk/web-frontend/-/raw/main/app/public/assets/fonts/opentalk/bold/opentalk-bold.woff2
|
||||
|
||||
.PHONY: assets/identifier/static/favicon.ico # force overwrite
|
||||
assets/identifier/static/favicon.ico:
|
||||
curl --fail -o assets/identifier/static/favicon.ico ${FAVICON_URL}
|
||||
|
||||
.PHONY: assets/identifier/static/opencloud-500.woff2
|
||||
assets/identifier/static/opencloud-500.woff2:
|
||||
curl --fail -o assets/identifier/static/opencloud-500.woff2 ${FONT_VARIATION_500_URL}
|
||||
|
||||
.PHONY: assets/identifier/static/opencloud-750.woff2
|
||||
assets/identifier/static/opencloud-750.woff2:
|
||||
curl --fail -o assets/identifier/static/opencloud-750.woff2 ${FONT_VARIATION_750_URL}
|
||||
cp src/images/favicon.ico assets/identifier/static/favicon.ico
|
||||
|
||||
.PHONY: pnpm-build
|
||||
pnpm-build: node_modules
|
||||
|
||||
@@ -1,21 +1,6 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head data-kopano-build="%REACT_APP_KOPANO_BUILD%">
|
||||
<style>
|
||||
@font-face {
|
||||
font-family: OpenCloud;
|
||||
src: url('%PUBLIC_URL%/static/opencloud-500.woff2') format('woff2');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
|
||||
}
|
||||
@font-face {
|
||||
font-family: OpenCloud;
|
||||
src: url('%PUBLIC_URL%/static/opencloud-750.woff2') format('woff2');
|
||||
font-weight: bold;
|
||||
font-style: normal;
|
||||
}
|
||||
</style>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="theme-color" content="#1b223d">
|
||||
|
||||
@@ -1,4 +1,18 @@
|
||||
/* additional css on top of kpop */
|
||||
@font-face {
|
||||
font-family: OpenCloud;
|
||||
src: url('./fonts/OpenCloud500-Regular.woff2') format('woff2');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
|
||||
}
|
||||
@font-face {
|
||||
font-family: OpenCloud;
|
||||
src: url('./fonts/OpenCloud750-Bold.woff2') format('woff2');
|
||||
font-weight: bold;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
html {
|
||||
font-feature-settings: "cv11";
|
||||
}
|
||||
|
||||
BIN
services/idp/src/fonts/OpenCloud500-Regular.woff2
Normal file
BIN
services/idp/src/fonts/OpenCloud500-Regular.woff2
Normal file
Binary file not shown.
BIN
services/idp/src/fonts/OpenCloud750-Bold.woff2
Normal file
BIN
services/idp/src/fonts/OpenCloud750-Bold.woff2
Normal file
Binary file not shown.
BIN
services/idp/src/images/favicon.ico
Normal file
BIN
services/idp/src/images/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
Reference in New Issue
Block a user