fix lint

workaround to remove
remove some unused dependencies

fix flex import

Signed-off-by: eromano <eugenioromano16@gmail.com>
This commit is contained in:
eromano
2022-03-03 16:10:15 +00:00
parent 548e5c4fae
commit dfc0e05890
9 changed files with 100 additions and 9 deletions

View File

@@ -1,2 +1,3 @@
_theming.scss _theming.scss
lib/core/viewer/components/pdf-viewer-host.component.scss lib/core/viewer/components/pdf-viewer-host.component.scss
lib/dist

View File

@@ -188,7 +188,7 @@
"budgets": [ "budgets": [
{ {
"type": "anyComponentStyle", "type": "anyComponentStyle",
"maximumWarning": "6kb" "maximumWarning": "12kb"
} }
], ],
"optimization": true, "optimization": true,

View File

@@ -20,7 +20,7 @@
font-size: var(--theme-title-font-size); font-size: var(--theme-title-font-size);
background-repeat: no-repeat; background-repeat: no-repeat;
display: inline-block; display: inline-block;
fill: currentColor; fill: currentcolor;
height: 20px; height: 20px;
width: 20px; width: 20px;
color: var(--theme-primary-color-default-contrast) !important; color: var(--theme-primary-color-default-contrast) !important;

View File

@@ -1,4 +1,4 @@
@import '@angular/flex-layout/mq'; @use '../../../styles/flex' as flex;
@import '../../../styles/mixins'; @import '../../../styles/mixins';
.adf-sidenav-layout { .adf-sidenav-layout {
@@ -24,7 +24,7 @@
flex: 0 0; flex: 0 0;
} }
@include layout-bp(lt-sm) { @include flex.layout-bp(lt-sm) {
.mat-drawer { .mat-drawer {
width: calc(-50px + 100vw) !important; width: calc(-50px + 100vw) !important;
max-width: 300px !important; max-width: 300px !important;

View File

@@ -1,4 +1,4 @@
@import '@angular/flex-layout/mq'; @use '../styles/flex' as flex;
$adf-pagination-height: 48px !default; $adf-pagination-height: 48px !default;
$adf-pagination-icon-button-size: 32px !default; $adf-pagination-icon-button-size: 32px !default;
@@ -29,7 +29,7 @@ $adf-pagination-empty-border: none !default;
} }
} }
@include layout-bp(lt-sm) { @include flex.layout-bp(lt-sm) {
& { & {
flex-wrap: wrap; flex-wrap: wrap;
padding: 0 16px; padding: 0 16px;

View File

@@ -0,0 +1,78 @@
@charset "UTF-8";
/* stylelint-disable */
// Non-overlapping Material Design breakpoints
// @type map
$breakpoints: (
xs: (
begin: 0,
end: 599.9px
),
sm: (
begin: 600px,
end: 959.9px
),
md: (
begin: 960px,
end: 1279.9px
),
lg: (
begin: 1280px,
end: 1919.9px
),
xl: (
begin: 1920px,
end: 4999.99px
),
) !default;
// Overlapping breakpoints that are greater than defined
// Material Design breakpoints
// @type map
$overlapping-gt: (
gt-xs: 600px,
gt-sm: 960px,
gt-md: 1280px,
gt-lg: 1920px,
) !default;
// Overlapping breakpoints that are less than defined
// Material Design breakpoints
// @type map
$overlapping-lt: (
lt-sm: 599.9px,
lt-md: 959.9px,
lt-lg: 1279.9px,
lt-xl: 1919.9px,
) !default;
// Media Query Mixin, takes a breakpoint and returns a wrapping
// media query statement
// e.g.
//
// @include layout-bp(xs) {
// background-color: red;
// }
//
// becomes
//
// @media (min-width: 0px) and (max-width: 599px) {
// background-color: red;
// }
@mixin layout-bp($bp) {
@if map-has-key($breakpoints, $bp) {
$min: map-get(map-get($breakpoints, $bp), begin);
$max: map-get(map-get($breakpoints, $bp), end);
@media (min-width: $min) and (max-width: $max) { @content; }
}
@else if map-has-key($overlapping-gt, $bp) {
$min: map-get($overlapping-gt, $bp);
@media (min-width: $min) { @content; }
}
@else if map-has-key($overlapping-lt, $bp) {
$max: map-get($overlapping-lt, $bp);
@media (max-width: $max) { @content; }
}
}
/* stylelint-enable */

View File

@@ -1,4 +1,3 @@
@import '@angular/flex-layout/mq';
@import './colors'; @import './colors';
@import './mixins'; @import './mixins';
@import './typography'; @import './typography';

11
nx.json
View File

@@ -13,44 +13,55 @@
}, },
"projects": { "projects": {
"demoshell": { "demoshell": {
"root": "demo-shell",
"implicitDependencies": ["process-services", "content-services", "process-services-cloud", "core", "insights", "extensions"], "implicitDependencies": ["process-services", "content-services", "process-services-cloud", "core", "insights", "extensions"],
"tags": ["scope:demoshell", "type:app"] "tags": ["scope:demoshell", "type:app"]
}, },
"extensions": { "extensions": {
"root": "lib/extensions",
"tags": ["scope:extensions", "type:lib"] "tags": ["scope:extensions", "type:lib"]
}, },
"core": { "core": {
"root": "lib/core",
"implicitDependencies": ["extensions"], "implicitDependencies": ["extensions"],
"tags": ["scope:core", "type:lib"] "tags": ["scope:core", "type:lib"]
}, },
"content-services": { "content-services": {
"root": "lib/content-services",
"implicitDependencies": ["core"], "implicitDependencies": ["core"],
"tags": ["scope:content-services", "type:lib"] "tags": ["scope:content-services", "type:lib"]
}, },
"process-services": { "process-services": {
"root": "lib/process-services",
"implicitDependencies": ["content-services"], "implicitDependencies": ["content-services"],
"tags": ["scope:process-services", "type:lib"] "tags": ["scope:process-services", "type:lib"]
}, },
"process-services-cloud": { "process-services-cloud": {
"root": "lib/process-services-cloud",
"implicitDependencies": ["content-services"], "implicitDependencies": ["content-services"],
"tags": ["scope:process-services-cloud", "type:lib"] "tags": ["scope:process-services-cloud", "type:lib"]
}, },
"insights": { "insights": {
"root": "lib/insights",
"implicitDependencies": ["core"], "implicitDependencies": ["core"],
"tags": ["scope:insights", "type:lib"] "tags": ["scope:insights", "type:lib"]
}, },
"demoshell-e2e": { "demoshell-e2e": {
"root": "lib/demoshell-e2e",
"implicitDependencies": ["testing"], "implicitDependencies": ["testing"],
"tags": ["scope:demoshell-e2e", "type:e2e"] "tags": ["scope:demoshell-e2e", "type:e2e"]
}, },
"testing": { "testing": {
"root": "lib/testing",
"implicitDependencies": [], "implicitDependencies": [],
"tags": ["scope:testing", "type:lib"] "tags": ["scope:testing", "type:lib"]
}, },
"cli": { "cli": {
"root": "lib/cli",
"tags": ["scope:cli", "type:lib"] "tags": ["scope:cli", "type:lib"]
}, },
"stories": { "stories": {
"root": "lib/stories",
"tags": ["scope:stories", "type:lib"] "tags": ["scope:stories", "type:lib"]
} }
} }

View File

@@ -3,13 +3,15 @@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$DIR/../" cd "$DIR/../"
if grep "envalfresco" . -R --exclude-dir={node_modules,.history,.idea,scripts,dist,e2e-output,.git} --exclude={.env,.env.*}; then echo "Check envs"
if grep "envalfresco" . -R --exclude-dir={.angular,.lib,.coverage,node_modules,.history,.idea,scripts,dist,e2e-output,.git} --exclude={.env,.env.*}; then
echo not permitted word echo not permitted word
exit 1 exit 1
fi fi
echo "Lint" echo "Lint"
nx affected:lint --parallel --all --maxParallel=9 || exit 1 nx affected:lint --parallel=5 --all || exit 1
echo "Style Lint" echo "Style Lint"
npm run stylelint || exit 1 npm run stylelint || exit 1