Commit 7b7f071a authored by ncastejon's avatar ncastejon
Browse files

Add Beautify and stylelint rules

parent 20994d14
Pipeline #1621 passed with stages
in 25 minutes and 20 seconds
{
"css": {
"space_around_selector_separator": true,
"indent_size": 2,
"newline_between_rules": true,
"end_with_newline": true
},
"html": {
"indent_size": 2,
"wrap_line_length": 120
},
"js": {
"indent_size": 2,
"wrap_line_length": 120
}
}
{
"extends": "stylelint-config-standard",
"rules": {
"selector-pseudo-class-no-unknown": [ true, {
ignorePseudoClasses: ["ng-deep"],
} ]
"rule-empty-line-before": null,
"selector-pseudo-class-no-unknown": [
true,
{
"ignorePseudoClasses": ["ng-deep"]
}
]
}
}
\ No newline at end of file
......@@ -4158,7 +4158,8 @@
"code-point-at": {
"version": "1.1.0",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"concat-map": {
"version": "0.0.1",
......@@ -4285,7 +4286,8 @@
"inherits": {
"version": "2.0.3",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"ini": {
"version": "1.3.5",
......@@ -4297,6 +4299,7 @@
"version": "1.0.0",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"number-is-nan": "^1.0.0"
}
......@@ -4422,7 +4425,8 @@
"number-is-nan": {
"version": "1.0.1",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"object-assign": {
"version": "4.1.1",
......@@ -4555,6 +4559,7 @@
"version": "1.0.2",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0",
......
......@@ -2,19 +2,22 @@
<div class="filter-button-touch column is-hidden-desktop has-text-centered">
<a (click)="toggleFilters()" i18n="@@global.filter">Filter</a>
</div>
<div class="column is-3-desktop is-12-touch is-hidden-touch filter-column" [ngClass]="{'is-hidden-touch': displayFilters === false}">
<div class="column is-3-desktop is-12-touch is-hidden-touch filter-column"
[ngClass]="{'is-hidden-touch': displayFilters === false}">
<app-filter-list></app-filter-list>
</div>
<div class="column is-9-desktop is-12-touch results-column" *ngIf="results">
<div class="tab-results">
<app-results-tab-scope [countResults]="countResults" [selectedScope]="selectedScope" (scopeChanged)="scopeChanged($event)">
<app-results-tab-scope [countResults]="countResults" [selectedScope]="selectedScope"
(scopeChanged)="scopeChanged($event)">
</app-results-tab-scope>
</div>
<!-- If we have results, display the pagination and count results
If not, display one message indicating no result was found -->
<div class="columns is-multiline is-vcentered is-marginless header-results" *ngIf="countResults[selectedScope.key]; else noResult">
<div class="columns is-multiline is-vcentered is-marginless header-results"
*ngIf="countResults[selectedScope.key]; else noResult">
<div class="column is-12-touch" *ngIf="paginator.length">
<span>{{ fromResultNumber }} - {{ toResultNumber }} </span>
<span i18n="@@global.resultsFound">to {{ paginator.length }} results found</span>
......@@ -55,8 +58,8 @@
<div *ngIf="displaySuggestion === true">
<span *ngIf="suggestion.text">
<span i18n="@@global.youMeant">Did you mean: </span>
<span class="suggestion" [innerHTML]="suggestion.highlighted" (click)="useSuggestion()"></span>
<span i18n="@@global.youMeant">Did you mean: </span> <span class="suggestion"
[innerHTML]="suggestion.highlighted" (click)="useSuggestion()"></span>
</span>
</div>
<div class="datasets" [ngClass]="{'blury' : isLoading}">
......@@ -78,4 +81,4 @@
</app-paginator>
</div>
</div>
</div>
</div>
\ No newline at end of file
<div>
<div id="map" class="mapbox-map" [ngClass]="{'fullscreen': fullscreen===true, 'display-details': selectedData !== null && displayDataDetails === true, 'hide-details': displayDataDetails === false && selectedData !== null}">
<div id="map" class="mapbox-map"
[ngClass]="{'fullscreen': fullscreen===true, 'display-details': selectedData !== null && displayDataDetails === true, 'hide-details': displayDataDetails === false && selectedData !== null}">
<div id="menu" *ngIf="displayControls">
<div class="columns is-mobile is-marginless">
<div class="column is-narrow">
<div class="buttons has-addons column-content">
<ng-container *ngFor="let l of settings.baseLayers">
<button class="button" [disabled]="l.id === selectedBaseLayer.id" [ngClass]="{'is-selected': l.id === selectedBaseLayer.id, 'is-danger': l.id === selectedBaseLayer.id}"
<button class="button" [disabled]="l.id === selectedBaseLayer.id"
[ngClass]="{'is-selected': l.id === selectedBaseLayer.id, 'is-danger': l.id === selectedBaseLayer.id}"
(click)="switchLayer(l)" type="button">
{{ l.labels[lang] }}
</button>
......@@ -17,7 +19,8 @@
<div class="columns is-mobile is-marginless">
<div class="column">
<div class="mapboxgl-ctrl-group column-content">
<button class="mapboxgl-ctrl-icon" [ngClass]="{'btn-exit-fullscreen': fullscreen === true, 'btn-fullscreen': fullscreen === false}"
<button class="mapboxgl-ctrl-icon"
[ngClass]="{'btn-exit-fullscreen': fullscreen === true, 'btn-fullscreen': fullscreen === false}"
type="button" (click)="toogleFullscreen()">
</button>
</div>
......@@ -40,13 +43,16 @@
</div>
<div class="copy-map">
<input type="text" class="input" id="mapUrlCopy"
[value]="mapUrl()" #mapUrlElement>
<input type="text" class="input" id="mapUrlCopy" [value]="mapUrl()" #mapUrlElement>
<button type="button" (click)="copyMaplink(mapUrlElement)" class="button is-medium">
<svg xmlns="http://www.w3.org/2000/svg" id="copy" viewBox="0 0 18 18">
<path d="M11.1 7.1c.6.6 1 1.3 1.2 2.2s.2 1.6 0 2.4-.6 1.5-1.2 2.1L8.9 16c-.6.6-1.3 1-2.1 1.2-.8.2-1.6.2-2.4 0-.8-.2-1.5-.6-2.2-1.3-.6-.6-1-1.3-1.2-2.1-.2-.8-.2-1.6 0-2.4.2-.8.6-1.5 1.2-2.1l1.2-1.2c.2-.2.3-.2.5-.1s.3.2.3.4c0 .6.1 1.1.3 1.7.1.2 0 .4-.1.5L4 11c-.4.4-.7 1-.7 1.6 0 .6.2 1.1.7 1.6.4.4 1 .7 1.6.7s1.2-.2 1.6-.7l2.1-2.1c.4-.4.7-1 .7-1.6s-.3-1.1-.7-1.6c-.1-.1-.2-.2-.4-.3s-.1-.2-.1-.3c0-.4.1-.7.3-.9l.7-.7c.1-.1.2-.1.3-.1.1 0 .2 0 .3.1.2.1.5.2.7.4zm4.4-4.4c-.6-.6-1.3-1-2.2-1.2-.8-.2-1.6-.2-2.4 0-.8.2-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 1.7 0 .2.1.4.3.4.2.1.4.1.5-.1l1.2-1.2c.6-.6 1-1.3 1.2-2.1.2-.8.2-1.6 0-2.4-.1-.8-.5-1.5-1.1-2.2z"
class="grey" />
</svg>
<span class="is-hidden-touch">{{ shareMessage }}</span>
</button>
</div>
......@@ -63,7 +69,8 @@
</div>
</div>
</div>
<div class="columns is-mobile update-map" *ngIf="displayMessageLimitedFeatures && currentLayerType === linkFormats.wfs">
<div class="columns is-mobile update-map"
*ngIf="displayMessageLimitedFeatures && currentLayerType === linkFormats.wfs">
<div class="column is-narrow">
<div class="column-content">
<div class="message is-medium">
......@@ -77,8 +84,10 @@
</div>
</div>
<div class="data-details-wrapper" *ngIf="selectedData !== null" [ngClass]="{'data-details-opened': selectedData !== null && displayDataDetails === true, 'data-details-closed': displayDataDetails === false}">
<app-data-details (close)="closeDataDetails()" [properties]="selectedData" class="app-data-details"></app-data-details>
<div class="data-details-wrapper" *ngIf="selectedData !== null"
[ngClass]="{'data-details-opened': selectedData !== null && displayDataDetails === true, 'data-details-closed': displayDataDetails === false}">
<app-data-details (close)="closeDataDetails()" [properties]="selectedData" class="app-data-details">
</app-data-details>
</div>
</div>
</div>
</div>
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment