Browse Source

Fix MultiSelect component styles and CSP error (#3841)

* Update Web styles and CSP to support MultiSelect component

- Include the MultiSelect module in the CL barrel file of exports
- Import the MultiSelect scss into the Web styles.scss
- Add the necessary sha256 hash to webpack CSP policy to support ngSelect inline styles

* Undo removal of 127.0.0.1 from webpack CSP
pull/3858/head
Shane Melton 3 years ago committed by GitHub
parent
commit
3ed1221f7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      apps/web/src/scss/styles.scss
  2. 1
      apps/web/webpack.config.js
  3. 1
      libs/components/src/index.ts
  4. 1
      libs/components/src/multi-select/index.ts

1
apps/web/src/scss/styles.scss

@ -2,6 +2,7 @@ @@ -2,6 +2,7 @@
@import "./variables";
@import "../../../../libs/angular/src/scss/bwicons/styles/style.scss";
@import "../../../../libs/angular/src/scss/icons.scss";
@import "../../../../libs/components/src/multi-select/scss/bw.theme";
@import "@angular/cdk/overlay-prebuilt.css";
//@import "~bootstrap/scss/bootstrap";

1
apps/web/webpack.config.js

@ -234,6 +234,7 @@ const devServer = @@ -234,6 +234,7 @@ const devServer =
'sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU='
'sha256-JVRXyYPueLWdwGwY9m/7u4QlZ1xeQdqUj2t8OVIzZE4='
'sha256-or0p3LaHetJ4FRq+flVORVFFNsOjQGWrDvX8Jf7ACWg='
'sha256-Oca9ZYU1dwNscIhdNV7tFBsr4oqagBhZx9/p4w8GOcg='
;img-src
'self'
data:

1
libs/components/src/index.ts

@ -7,6 +7,7 @@ export * from "./form-field"; @@ -7,6 +7,7 @@ export * from "./form-field";
export * from "./icon";
export * from "./icon-button";
export * from "./menu";
export * from "./multi-select";
export * from "./dialog";
export * from "./link";
export * from "./tabs";

1
libs/components/src/multi-select/index.ts

@ -0,0 +1 @@ @@ -0,0 +1 @@
export * from "./multi-select.module";
Loading…
Cancel
Save