mirror of https://github.com/apache/nifi.git
NIFI-12902: Migrating to @angular-devkit/build-angular:application (#8507)
* NIFI-12902: - Migrating to @angular-devkit/build-angular:application to avoid and avoid sporadic webpack build issues. - Updating roboto dependencies. * NIFI-12902: - Clean up. This closes #8507
This commit is contained in:
parent
3719fddf84
commit
d97c794696
|
@ -15,11 +15,11 @@
|
|||
"prefix": "app",
|
||||
"architect": {
|
||||
"build": {
|
||||
"builder": "@angular-devkit/build-angular:browser",
|
||||
"builder": "@angular-devkit/build-angular:application",
|
||||
"options": {
|
||||
"outputPath": "dist/nifi",
|
||||
"index": "src/index.html",
|
||||
"main": "src/main.ts",
|
||||
"browser": "src/main.ts",
|
||||
"polyfills": ["zone.js"],
|
||||
"tsConfig": "tsconfig.app.json",
|
||||
"inlineStyleLanguage": "scss",
|
||||
|
@ -38,13 +38,10 @@
|
|||
}
|
||||
],
|
||||
"outputHashing": "all",
|
||||
"buildOptimizer": false,
|
||||
"optimization": true
|
||||
},
|
||||
"development": {
|
||||
"buildOptimizer": false,
|
||||
"optimization": false,
|
||||
"vendorChunk": true,
|
||||
"extractLicenses": false,
|
||||
"sourceMap": true,
|
||||
"namedChunks": true,
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
"@angular/platform-browser-dynamic": "^17.1.3",
|
||||
"@angular/router": "^17.1.3",
|
||||
"@ctrl/ngx-codemirror": "^7.0.0",
|
||||
"@fontsource/roboto": "^5.0.12",
|
||||
"@fontsource/roboto-slab": "^5.0.19",
|
||||
"@ngrx/effects": "^17.1.0",
|
||||
"@ngrx/router-store": "^17.1.0",
|
||||
"@ngrx/store": "^17.1.0",
|
||||
|
@ -29,7 +31,6 @@
|
|||
"humanize-duration": "^3.31.0",
|
||||
"ngrx-immer": "^2.1.1",
|
||||
"ngx-skeleton-loader": "^8.1.0",
|
||||
"roboto-fontface": "0.10.0",
|
||||
"rxjs": "~7.8.1",
|
||||
"tslib": "^2.6.2",
|
||||
"webfontloader": "^1.6.28",
|
||||
|
@ -3288,6 +3289,16 @@
|
|||
"node": ">=14"
|
||||
}
|
||||
},
|
||||
"node_modules/@fontsource/roboto": {
|
||||
"version": "5.0.12",
|
||||
"resolved": "https://registry.npmjs.org/@fontsource/roboto/-/roboto-5.0.12.tgz",
|
||||
"integrity": "sha512-x0o17jvgoSSbS9OZnUX2+xJmVRvVCfeaYJjkS7w62iN7CuJWtMf5vJj8LqgC7ibqIkitOHVW+XssRjgrcHn62g=="
|
||||
},
|
||||
"node_modules/@fontsource/roboto-slab": {
|
||||
"version": "5.0.19",
|
||||
"resolved": "https://registry.npmjs.org/@fontsource/roboto-slab/-/roboto-slab-5.0.19.tgz",
|
||||
"integrity": "sha512-rqZ+XbhNhLj8L0OnOFioQmd9ElpolZlOGqJSRCZHdjJPk4C6kmbQKO4rGvLrs18eIFCyoqc3dV8i4l2BGZswUQ=="
|
||||
},
|
||||
"node_modules/@humanwhocodes/config-array": {
|
||||
"version": "0.11.13",
|
||||
"resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.13.tgz",
|
||||
|
@ -14762,11 +14773,6 @@
|
|||
"url": "https://github.com/sponsors/isaacs"
|
||||
}
|
||||
},
|
||||
"node_modules/roboto-fontface": {
|
||||
"version": "0.10.0",
|
||||
"resolved": "https://registry.npmjs.org/roboto-fontface/-/roboto-fontface-0.10.0.tgz",
|
||||
"integrity": "sha512-OlwfYEgA2RdboZohpldlvJ1xngOins5d7ejqnIBWr9KaMxsnBqotpptRXTyfNRLnFpqzX6sTDt+X+a+6udnU8g=="
|
||||
},
|
||||
"node_modules/robust-predicates": {
|
||||
"version": "3.0.2",
|
||||
"resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.2.tgz",
|
||||
|
|
|
@ -27,6 +27,8 @@
|
|||
"@angular/platform-browser-dynamic": "^17.1.3",
|
||||
"@angular/router": "^17.1.3",
|
||||
"@ctrl/ngx-codemirror": "^7.0.0",
|
||||
"@fontsource/roboto": "^5.0.12",
|
||||
"@fontsource/roboto-slab": "^5.0.19",
|
||||
"@ngrx/effects": "^17.1.0",
|
||||
"@ngrx/router-store": "^17.1.0",
|
||||
"@ngrx/store": "^17.1.0",
|
||||
|
@ -37,7 +39,6 @@
|
|||
"humanize-duration": "^3.31.0",
|
||||
"ngrx-immer": "^2.1.1",
|
||||
"ngx-skeleton-loader": "^8.1.0",
|
||||
"roboto-fontface": "0.10.0",
|
||||
"rxjs": "~7.8.1",
|
||||
"tslib": "^2.6.2",
|
||||
"webfontloader": "^1.6.28",
|
||||
|
|
|
@ -5,9 +5,25 @@ const target = {
|
|||
changeOrigin: true,
|
||||
headers: {
|
||||
'X-ProxyPort': 4200
|
||||
},
|
||||
configure: (proxy, _options) => {
|
||||
proxy.on('error', (err, _req, _res) => {
|
||||
console.log('proxy error', err);
|
||||
});
|
||||
proxy.on('proxyReq', (proxyReq, req, _res) => {
|
||||
console.log('Sending Request to the Target:', req.method, req.url);
|
||||
});
|
||||
proxy.on('proxyRes', (proxyRes, req, _res) => {
|
||||
console.log('Received Response from the Target:', proxyRes.statusCode, req.url);
|
||||
});
|
||||
},
|
||||
bypass: function(req, res, proxyOptions) {
|
||||
if (req.url.startsWith('/nifi/')) {
|
||||
return req.url;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export default {
|
||||
'/': target
|
||||
'/**': target
|
||||
};
|
||||
|
|
|
@ -328,8 +328,7 @@ export class ProvenanceEventListingEffects {
|
|||
panelClass: 'large-dialog'
|
||||
});
|
||||
|
||||
dialogReference.componentInstance.contentViewerAvailable =
|
||||
about?.contentViewerUrl != null ?? false;
|
||||
dialogReference.componentInstance.contentViewerAvailable = about?.contentViewerUrl != null;
|
||||
|
||||
dialogReference.componentInstance.downloadContent
|
||||
.pipe(takeUntil(dialogReference.afterClosed()))
|
||||
|
|
|
@ -268,7 +268,7 @@ export class QueueListingEffects {
|
|||
panelClass: 'large-dialog'
|
||||
});
|
||||
|
||||
dialogReference.componentInstance.contentViewerAvailable = about?.contentViewerUrl != null ?? false;
|
||||
dialogReference.componentInstance.contentViewerAvailable = about?.contentViewerUrl != null;
|
||||
|
||||
dialogReference.componentInstance.downloadContent
|
||||
.pipe(takeUntil(dialogReference.afterClosed()))
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*/
|
||||
|
||||
.parameter-name {
|
||||
font-weight: bold;
|
||||
font-weight: 700;
|
||||
font-family: monospace;
|
||||
font-size: 16px;
|
||||
margin-bottom: 10px;
|
||||
|
|
|
@ -67,7 +67,10 @@
|
|||
@use 'app/ui/common/component-context/component-context.component-theme' as component-context;
|
||||
|
||||
// Plus imports for other components in your app.
|
||||
@use 'roboto-fontface/css/roboto/roboto-fontface.css';
|
||||
@use '@fontsource/roboto/latin.css' as roboto-normal;
|
||||
@use '@fontsource/roboto/latin-300-italic.css' as roboto-light-italic;
|
||||
@use '@fontsource/roboto/latin-400-italic.css' as roboto-normal-italic;
|
||||
@use '@fontsource/roboto-slab/latin.css' as roboto-slab-normal;
|
||||
@use 'assets/fonts/flowfont/flowfont.css';
|
||||
@use 'font-awesome/css/font-awesome.min.css';
|
||||
@use 'codemirror/lib/codemirror.css';
|
||||
|
@ -78,93 +81,6 @@
|
|||
// To override the NiFi theme, you need to set the variables $material-theme-light and $material-theme-dark
|
||||
@import 'assets/themes/nifi';
|
||||
|
||||
$fontPrimary: 'Roboto', sans-serif;
|
||||
$fontSecondary: 'Robot Slab', sans-serif;
|
||||
$fontMedium: 'Roboto Medium', sans-serif;
|
||||
$fontLight: 'Roboto Light', sans-serif;
|
||||
|
||||
$appFontPath: '~roboto-fontface/fonts';
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
src:
|
||||
local('Roboto Light'),
|
||||
local('Roboto-Light'),
|
||||
url('#{$appFontPath}/roboto/Roboto-Light.woff2') format('woff2');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 300;
|
||||
src:
|
||||
local('Roboto LightItalic'),
|
||||
local('Roboto-LightItalic'),
|
||||
url('#{$appFontPath}/roboto/Roboto-LightItalic.woff2') format('woff2');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
src:
|
||||
local('Roboto Regular'),
|
||||
local('Roboto-Regular'),
|
||||
url('#{$appFontPath}/roboto/Roboto-Regular.woff2') format('woff2');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
src:
|
||||
local('Roboto Medium'),
|
||||
local('Roboto-Medium'),
|
||||
url('#{$appFontPath}/roboto/Roboto-Medium.woff2') format('woff2');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: bold;
|
||||
src:
|
||||
local('Roboto Bold'),
|
||||
local('Roboto-Bold'),
|
||||
url('#{$appFontPath}/roboto/Roboto-Bold.woff2') format('woff2');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: normal;
|
||||
src:
|
||||
local('Roboto Italic'),
|
||||
local('Roboto-Italic'),
|
||||
url('#{$appFontPath}/roboto/Roboto-RegularItalic.woff2') format('woff2');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto Slab';
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
src:
|
||||
local('RobotoSlab Regular'),
|
||||
local('RobotoSlab-Regular'),
|
||||
url('#{$appFontPath}/roboto-slab/Roboto-Slab-Regular.woff2') format('woff2');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto Slab';
|
||||
font-style: normal;
|
||||
font-weight: bold;
|
||||
src:
|
||||
local('RobotoSlab Bold'),
|
||||
local('RobotoSlab-Bold'),
|
||||
url('#{$appFontPath}/roboto-slab/Roboto-Slab-Bold.woff2') format('woff2');
|
||||
}
|
||||
|
||||
// Include the common styles for Angular Material. We include this here so that you only
|
||||
// have to load a single css file for Angular Material in your app.
|
||||
// Be sure that you only ever include this mixin once!
|
||||
|
|
Loading…
Reference in New Issue