Skip to content
This repository has been archived by the owner on Jul 22, 2023. It is now read-only.

Commit

Permalink
Integrate fonts into build process (#1714)
Browse files Browse the repository at this point in the history
closes #1112

Co-authored-by: crapStone <crapstone01@gmail.com>
Reviewed-on: https://codeberg.org/Calciumdibromid/CaBr2/pulls/1714
Reviewed-by: Epsilon_02 <epsilon_02@noreply.codeberg.org>
Co-authored-by: crapStone <crapstone@noreply.codeberg.org>
Co-committed-by: crapStone <crapstone@noreply.codeberg.org>
  • Loading branch information
2 people authored and Epsilon_02 committed Jan 11, 2023
1 parent 93ae613 commit a31aea6
Show file tree
Hide file tree
Showing 57 changed files with 26 additions and 136,541 deletions.
14 changes: 8 additions & 6 deletions frontend/package.json
Expand Up @@ -26,6 +26,8 @@
"@angular/material": "15.0.4",
"@angular/platform-browser": "15.0.4",
"@angular/platform-browser-dynamic": "15.0.4",
"@fontsource/material-icons": "4.5.4",
"@fontsource/roboto": "4.5.8",
"@ngneat/transloco": "4.2.2",
"@ngxs/form-plugin": "3.7.6",
"@ngxs/storage-plugin": "3.7.6",
Expand All @@ -43,12 +45,6 @@
"node": ">=14.20.0"
},
"devDependencies": {
"@tauri-apps/cli": "1.2.2",
"@types/jasmine": "4.3.1",
"@types/node": "18.11.18",
"@typescript-eslint/eslint-plugin": "5.48.1",
"@typescript-eslint/parser": "5.48.1",
"eslint": "8.31.0",
"@angular-devkit/build-angular": "15.0.5",
"@angular-eslint/builder": "15.1.0",
"@angular-eslint/eslint-plugin": "15.1.0",
Expand All @@ -57,6 +53,12 @@
"@angular-eslint/template-parser": "15.1.0",
"@angular/cli": "15.0.5",
"@angular/compiler-cli": "15.0.4",
"@tauri-apps/cli": "1.2.2",
"@types/jasmine": "4.3.1",
"@types/node": "18.11.18",
"@typescript-eslint/eslint-plugin": "5.48.1",
"@typescript-eslint/parser": "5.48.1",
"eslint": "8.31.0",
"eslint-config-airbnb-base": "15.0.0",
"eslint-config-airbnb-typescript": "17.0.0",
"eslint-config-prettier": "8.6.0",
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
29 changes: 0 additions & 29 deletions frontend/src/assets/fonts/material-icons/font.css

This file was deleted.

11,489 changes: 0 additions & 11,489 deletions frontend/src/assets/fonts/roboto/Roboto-Black.svg

This file was deleted.

Binary file removed frontend/src/assets/fonts/roboto/Roboto-Black.ttf
Binary file not shown.
Binary file removed frontend/src/assets/fonts/roboto/Roboto-Black.woff
Binary file not shown.
Binary file removed frontend/src/assets/fonts/roboto/Roboto-Black.woff2
Binary file not shown.
11,615 changes: 0 additions & 11,615 deletions frontend/src/assets/fonts/roboto/Roboto-BlackItalic.svg

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
11,537 changes: 0 additions & 11,537 deletions frontend/src/assets/fonts/roboto/Roboto-Bold.svg

This file was deleted.

Binary file removed frontend/src/assets/fonts/roboto/Roboto-Bold.ttf
Binary file not shown.
Binary file removed frontend/src/assets/fonts/roboto/Roboto-Bold.woff
Binary file not shown.
Binary file removed frontend/src/assets/fonts/roboto/Roboto-Bold.woff2
Binary file not shown.
11,624 changes: 0 additions & 11,624 deletions frontend/src/assets/fonts/roboto/Roboto-BoldItalic.svg

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
11,194 changes: 0 additions & 11,194 deletions frontend/src/assets/fonts/roboto/Roboto-Italic.svg

This file was deleted.

Binary file removed frontend/src/assets/fonts/roboto/Roboto-Italic.ttf
Binary file not shown.
Binary file removed frontend/src/assets/fonts/roboto/Roboto-Italic.woff
Binary file not shown.
Binary file removed frontend/src/assets/fonts/roboto/Roboto-Italic.woff2
Binary file not shown.
11,121 changes: 0 additions & 11,121 deletions frontend/src/assets/fonts/roboto/Roboto-Light.svg

This file was deleted.

Binary file removed frontend/src/assets/fonts/roboto/Roboto-Light.ttf
Binary file not shown.
Binary file not shown.
Binary file removed frontend/src/assets/fonts/roboto/Roboto-Light.woff2
Binary file not shown.
11,213 changes: 0 additions & 11,213 deletions frontend/src/assets/fonts/roboto/Roboto-LightItalic.svg

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
11,531 changes: 0 additions & 11,531 deletions frontend/src/assets/fonts/roboto/Roboto-Medium.svg

This file was deleted.

Binary file removed frontend/src/assets/fonts/roboto/Roboto-Medium.ttf
Binary file not shown.
Binary file removed frontend/src/assets/fonts/roboto/Roboto-Medium.woff
Binary file not shown.
Binary file removed frontend/src/assets/fonts/roboto/Roboto-Medium.woff2
Binary file not shown.
11,634 changes: 0 additions & 11,634 deletions frontend/src/assets/fonts/roboto/Roboto-MediumItalic.svg

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
11,082 changes: 0 additions & 11,082 deletions frontend/src/assets/fonts/roboto/Roboto-Regular.svg

This file was deleted.

Binary file removed frontend/src/assets/fonts/roboto/Roboto-Regular.ttf
Binary file not shown.
Binary file removed frontend/src/assets/fonts/roboto/Roboto-Regular.woff
Binary file not shown.
Binary file not shown.
11,124 changes: 0 additions & 11,124 deletions frontend/src/assets/fonts/roboto/Roboto-Thin.svg

This file was deleted.

Binary file removed frontend/src/assets/fonts/roboto/Roboto-Thin.ttf
Binary file not shown.
Binary file removed frontend/src/assets/fonts/roboto/Roboto-Thin.woff
Binary file not shown.
Binary file removed frontend/src/assets/fonts/roboto/Roboto-Thin.woff2
Binary file not shown.
11,233 changes: 0 additions & 11,233 deletions frontend/src/assets/fonts/roboto/Roboto-ThinItalic.svg

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
107 changes: 0 additions & 107 deletions frontend/src/assets/fonts/roboto/font.css

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/src/index.html
Expand Up @@ -6,8 +6,6 @@
<base href="/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<link rel="stylesheet" href="assets/fonts/roboto/font.css" />
<link rel="stylesheet" href="assets/fonts/material-icons/font.css" />
</head>
<body class="mat-typography">
<app-root>
Expand Down
8 changes: 8 additions & 0 deletions frontend/src/styles.scss
@@ -1,4 +1,9 @@
@use '@angular/material' as mat;

// TODO(#1715) check if font creation saves us anything
// @use "@fontsource/roboto/scss/mixins" as Roboto;
// @use "@fontsource/material-icons/scss/mixins" as MatIcons;

// Custom Theming for Angular Material
// For more information: https://material.angular.io/guide/theming
// Plus imports for other components in your app.
Expand Down Expand Up @@ -90,6 +95,9 @@ $ang-CaBr2-theme-dark: mat.define-dark-theme(
}
}

@import '~@fontsource/roboto/index.css';
@import '~@fontsource/material-icons/index.css';

/* You can add global styles to this file, and also import other style files */

html,
Expand Down
10 changes: 10 additions & 0 deletions frontend/yarn.lock
Expand Up @@ -1791,6 +1791,16 @@
minimatch "^3.1.2"
strip-json-comments "^3.1.1"

"@fontsource/material-icons@4.5.4":
version "4.5.4"
resolved "https://registry.yarnpkg.com/@fontsource/material-icons/-/material-icons-4.5.4.tgz#bfedde9352c36dbbacb6b49d190a1ce1e5917756"
integrity sha512-YGmXkkEdu6EIgpFKNmB/nIXzZocwSmbI01Ninpmml8x8BT0M6RR++V1KqOfpzZ6Cw/FQ2/KYonQ3x4IY/4VRRA==

"@fontsource/roboto@4.5.8":
version "4.5.8"
resolved "https://registry.yarnpkg.com/@fontsource/roboto/-/roboto-4.5.8.tgz#56347764786079838faf43f0eeda22dd7328437f"
integrity sha512-CnD7zLItIzt86q4Sj3kZUiLcBk1dSk81qcqgMGaZe7SQ1P8hFNxhMl5AZthK1zrDM5m74VVhaOpuMGIL4gagaA==

"@gar/promisify@^1.1.3":
version "1.1.3"
resolved "https://registry.yarnpkg.com/@gar/promisify/-/promisify-1.1.3.tgz#555193ab2e3bb3b6adc3d551c9c030d9e860daf6"
Expand Down

0 comments on commit a31aea6

Please sign in to comment.