mirror of
https://github.com/opf/openproject.git
synced 2026-06-13 19:20:00 +00:00
Remove the icon generator script because the used library is not working for months already and we want to enforce the switch to the Ociticons
This commit is contained in:
committed by
Oliver Günther
parent
de9bb6f723
commit
d61811deb4
Generated
+15
-1135
File diff suppressed because it is too large
Load Diff
@@ -105,7 +105,6 @@
|
||||
"@uirouter/angular": "^13.0.0",
|
||||
"@uirouter/core": "^6.1.0",
|
||||
"@uirouter/rx": "^1.0.0",
|
||||
"@vusion/webfonts-generator": "^0.8.0",
|
||||
"@w11k/ngx-componentdestroyed": "^5.0.2",
|
||||
"@xeokit/xeokit-bim-viewer": "2.5.1-beta-28",
|
||||
"autoprefixer": "^10.4.19",
|
||||
@@ -166,7 +165,6 @@
|
||||
"build": "node --max_old_space_size=4096 ./node_modules/@angular/cli/bin/ng build --configuration production --named-chunks --source-map",
|
||||
"build:watch": "node --max_old_space_size=4096 ./node_modules/@angular/cli/bin/ng build --watch --named-chunks",
|
||||
"tokens:generate": "theo src/app/spot/styles/tokens/tokens.yml --transform web --format sass,json --dest src/app/spot/styles/tokens/dist",
|
||||
"icon-font:generate": "node ./src/app/spot/icon-font/generate.js ./src/app/spot/icon-font",
|
||||
"serve": "node --max_old_space_size=8192 ./node_modules/@angular/cli/bin/ng serve --host 0.0.0.0 --public-host http://${PROXY_HOSTNAME:-localhost}:4200",
|
||||
"serve:test": "node --max_old_space_size=8192 ./node_modules/@angular/cli/bin/ng serve --host 0.0.0.0 --disable-host-check --public-host http://frontend-test:4200",
|
||||
"test": "ng test --watch=false",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# OpenProject icon font
|
||||
# OpenProject icon font (Deprecated)
|
||||
|
||||
**All icons and resulting fonts This directory is licensed under the Creative Commons Attribution 3.0 Unported License**.
|
||||
**All icons and resulting fonts. This directory is licensed under the Creative Commons Attribution 3.0 Unported License**.
|
||||
|
||||
Copyright (C) 2013 the OpenProject Foundation (OPF)
|
||||
This work is based on the following sources
|
||||
@@ -10,19 +10,16 @@ User Interface Design framework http://www.webalys.com/design-interface-applicat
|
||||
Creative Commons Attribution 3.0 Unported License
|
||||
This license can also be found at this permalink: http://creativecommons.org/licenses/by/3.0/
|
||||
|
||||
## Deprecation warning
|
||||
|
||||
We no longer recommend to use these icons as we decided to switch to the [Octicons](https://github.com/opf/openproject-octicons) provided by the [Primer Design System](https://primer.style/foundations/icons/).
|
||||
|
||||
## Structure
|
||||
|
||||
This directory is the source for the generated icon font in the Rails
|
||||
`frontend/src/global_styles/fonts` directory.
|
||||
|
||||
Since it seldomly changes, it is only rebuilt manually and on demand.
|
||||
|
||||
## Rebuilding
|
||||
|
||||
To rebuild the font (e.g., after changing icons in the source `src/` directory
|
||||
under this README), use the npm task `icon-font:generate`.
|
||||
|
||||
```
|
||||
$ cd frontend
|
||||
$ npm run icon-font:generate
|
||||
```
|
||||
We will no longer add icons to that font.
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
const webfontsGenerator = require('@vusion/webfonts-generator');
|
||||
const path = require('path');
|
||||
const glob = require("glob")
|
||||
|
||||
const TEMPLATE_DIR = path.resolve(process.argv[2]);
|
||||
const CSS_FONT_URL = "../../../../../frontend/src/assets/fonts/openproject_icon/";
|
||||
const FONT_DESTINATION = path.resolve(__dirname, '..', '..', '..', '..', '..', 'frontend', 'src', 'assets', 'fonts', 'openproject_icon');
|
||||
|
||||
const files = glob.sync(path.join(TEMPLATE_DIR, 'src/*.svg'));
|
||||
const filesBoxed = glob.sync(path.join(TEMPLATE_DIR, 'icons/*.svg'));
|
||||
|
||||
webfontsGenerator({
|
||||
files: filesBoxed,
|
||||
"fontName": "openproject-spot-icon-font",
|
||||
"cssFontsUrl": "../../../../../frontend/src/assets/fonts/openproject_spot_icon/",
|
||||
"dest": path.resolve(__dirname, '..', '..', '..', '..', '..', 'frontend', 'src', 'assets', 'fonts', 'openproject_spot_icon'),
|
||||
"cssDest": path.join(
|
||||
path.resolve(__dirname, '..', 'styles', 'sass', 'common'),
|
||||
'icon.sass',
|
||||
),
|
||||
"cssTemplate": path.join(TEMPLATE_DIR, "icon.template.sass"),
|
||||
"types": ['woff2', 'woff'],
|
||||
}, function(error) {
|
||||
if (error) {
|
||||
console.log('Failed to build icon font. ', error);
|
||||
}
|
||||
});
|
||||
|
||||
webfontsGenerator({
|
||||
files,
|
||||
"fontName": "openproject-icon-font",
|
||||
"cssFontsUrl": CSS_FONT_URL,
|
||||
"dest": FONT_DESTINATION,
|
||||
"cssDest": path.join(
|
||||
path.resolve(__dirname, '..', '..', '..', '..', '..', 'frontend', 'src', 'global_styles', 'fonts'),
|
||||
'_openproject_icon_definitions.sass',
|
||||
),
|
||||
"cssTemplate": path.join(TEMPLATE_DIR, "openproject-icon-font.template.sass"),
|
||||
"classPrefix": "icon-",
|
||||
"baseSelector": ".icon",
|
||||
"html": true,
|
||||
"types": ['woff2', 'woff'],
|
||||
"fixedWidth": true,
|
||||
"descent": 100
|
||||
}, function(error) {
|
||||
if (error) {
|
||||
console.log('Failed to build icon font. ', error);
|
||||
}
|
||||
});
|
||||
+1
-3
@@ -1,7 +1,7 @@
|
||||
{ pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/8ca77a63599ed951d6a2d244c1d62092776a3fe1.tar.gz") {}
|
||||
}:
|
||||
with pkgs;
|
||||
let
|
||||
let
|
||||
op-get-test-failures = writeShellScriptBin "op-get-test-failures" ''
|
||||
exec ${curl}/bin/curl "$$1" | grep 'rspec \.\/' | cut -f3 -d' ' | paste -s -d ' '
|
||||
'';
|
||||
@@ -25,11 +25,9 @@ in
|
||||
gems
|
||||
|
||||
op-get-test-failures
|
||||
nodePackages.webfonts-generator
|
||||
];
|
||||
|
||||
CHROME_BINARY = "${google-chrome}/bin/google-chrome";
|
||||
OPENPROJECT_TESTING_NO_HEADLESS = "1";
|
||||
OPENPROJECT_TESTING_AUTO_DEVTOOLS = "1";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user