mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
fix
fix lint workaround to remove remove some unused dependencies fix flex import Signed-off-by: eromano <eugenioromano16@gmail.com>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
_theming.scss
|
||||
lib/core/viewer/components/pdf-viewer-host.component.scss
|
||||
lib/dist
|
||||
|
@@ -188,7 +188,7 @@
|
||||
"budgets": [
|
||||
{
|
||||
"type": "anyComponentStyle",
|
||||
"maximumWarning": "6kb"
|
||||
"maximumWarning": "12kb"
|
||||
}
|
||||
],
|
||||
"optimization": true,
|
||||
|
@@ -20,7 +20,7 @@
|
||||
font-size: var(--theme-title-font-size);
|
||||
background-repeat: no-repeat;
|
||||
display: inline-block;
|
||||
fill: currentColor;
|
||||
fill: currentcolor;
|
||||
height: 20px;
|
||||
width: 20px;
|
||||
color: var(--theme-primary-color-default-contrast) !important;
|
||||
|
@@ -1,4 +1,4 @@
|
||||
@import '@angular/flex-layout/mq';
|
||||
@use '../../../styles/flex' as flex;
|
||||
@import '../../../styles/mixins';
|
||||
|
||||
.adf-sidenav-layout {
|
||||
@@ -24,7 +24,7 @@
|
||||
flex: 0 0;
|
||||
}
|
||||
|
||||
@include layout-bp(lt-sm) {
|
||||
@include flex.layout-bp(lt-sm) {
|
||||
.mat-drawer {
|
||||
width: calc(-50px + 100vw) !important;
|
||||
max-width: 300px !important;
|
||||
|
@@ -1,4 +1,4 @@
|
||||
@import '@angular/flex-layout/mq';
|
||||
@use '../styles/flex' as flex;
|
||||
|
||||
$adf-pagination-height: 48px !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;
|
||||
padding: 0 16px;
|
||||
|
78
lib/core/styles/_flex.scss
Normal file
78
lib/core/styles/_flex.scss
Normal 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 */
|
@@ -1,4 +1,3 @@
|
||||
@import '@angular/flex-layout/mq';
|
||||
@import './colors';
|
||||
@import './mixins';
|
||||
@import './typography';
|
||||
|
11
nx.json
11
nx.json
@@ -13,44 +13,55 @@
|
||||
},
|
||||
"projects": {
|
||||
"demoshell": {
|
||||
"root": "demo-shell",
|
||||
"implicitDependencies": ["process-services", "content-services", "process-services-cloud", "core", "insights", "extensions"],
|
||||
"tags": ["scope:demoshell", "type:app"]
|
||||
},
|
||||
"extensions": {
|
||||
"root": "lib/extensions",
|
||||
"tags": ["scope:extensions", "type:lib"]
|
||||
},
|
||||
"core": {
|
||||
"root": "lib/core",
|
||||
"implicitDependencies": ["extensions"],
|
||||
"tags": ["scope:core", "type:lib"]
|
||||
},
|
||||
"content-services": {
|
||||
"root": "lib/content-services",
|
||||
"implicitDependencies": ["core"],
|
||||
"tags": ["scope:content-services", "type:lib"]
|
||||
},
|
||||
"process-services": {
|
||||
"root": "lib/process-services",
|
||||
"implicitDependencies": ["content-services"],
|
||||
"tags": ["scope:process-services", "type:lib"]
|
||||
},
|
||||
"process-services-cloud": {
|
||||
"root": "lib/process-services-cloud",
|
||||
"implicitDependencies": ["content-services"],
|
||||
"tags": ["scope:process-services-cloud", "type:lib"]
|
||||
},
|
||||
"insights": {
|
||||
"root": "lib/insights",
|
||||
"implicitDependencies": ["core"],
|
||||
"tags": ["scope:insights", "type:lib"]
|
||||
},
|
||||
"demoshell-e2e": {
|
||||
"root": "lib/demoshell-e2e",
|
||||
"implicitDependencies": ["testing"],
|
||||
"tags": ["scope:demoshell-e2e", "type:e2e"]
|
||||
},
|
||||
"testing": {
|
||||
"root": "lib/testing",
|
||||
"implicitDependencies": [],
|
||||
"tags": ["scope:testing", "type:lib"]
|
||||
},
|
||||
"cli": {
|
||||
"root": "lib/cli",
|
||||
"tags": ["scope:cli", "type:lib"]
|
||||
},
|
||||
"stories": {
|
||||
"root": "lib/stories",
|
||||
"tags": ["scope:stories", "type:lib"]
|
||||
}
|
||||
}
|
||||
|
@@ -3,13 +3,15 @@
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
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
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Lint"
|
||||
nx affected:lint --parallel --all --maxParallel=9 || exit 1
|
||||
nx affected:lint --parallel=5 --all || exit 1
|
||||
|
||||
echo "Style Lint"
|
||||
npm run stylelint || exit 1
|
||||
|
Reference in New Issue
Block a user