Skip to content

Commit 8534668

Browse files
committed
[CORRECTION] Applique le formatage "Prettier"
1 parent 929811f commit 8534668

File tree

11 files changed

+43
-41
lines changed

11 files changed

+43
-41
lines changed

.github/workflows/svelte.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ jobs:
3838
run: npm run build
3939

4040
- name: Construire le storybook
41-
run: npm run story:build
41+
run: npm run story:build

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# UI Kit du Lab. ANSSI
1+
# UI Kit du Lab. ANSSI

histoire.config.ts

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
1-
import { defineConfig } from 'histoire'
2-
import { HstSvelte } from '@histoire/plugin-svelte'
1+
import { defineConfig } from 'histoire';
2+
import { HstSvelte } from '@histoire/plugin-svelte';
33
import { defaultColors } from 'histoire';
44

55
export default defineConfig({
66
outDir: 'dist-histoire',
7-
plugins: [
8-
HstSvelte(),
9-
],
7+
plugins: [HstSvelte()],
108
setupFile: '/stories/histoire.setup.ts',
119
theme: {
12-
title: "Lab. ANSSI - UI Kit",
10+
title: 'Lab. ANSSI - UI Kit',
1311
favicon: 'favicon.ico',
1412
logo: {
1513
square: '/static/ANSSI-sombre.svg',
1614
light: '/static/ANSSI.svg',
17-
dark: '/static/ANSSI-sombre.svg',
15+
dark: '/static/ANSSI-sombre.svg'
1816
},
1917
colors: {
2018
primary: {
@@ -27,9 +25,9 @@ export default defineConfig({
2725
600: '#4f44e3',
2826
700: '#463dca',
2927
800: '#3e35b0',
30-
900: '#352e97',
31-
},
28+
900: '#352e97'
29+
}
3230
},
33-
logoHref: 'https://acme.com',
31+
logoHref: 'https://acme.com'
3432
}
35-
})
33+
});

src/global.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// Couleurs
22
$text-mention-grey: #666666;
3-
$background-default-grey-active: #EDEDED;
4-
$border-default-grey: #DDDDDD;
3+
$background-default-grey-active: #ededed;
4+
$border-default-grey: #dddddd;

src/lib/NavigationPiedDePage.svelte

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
<a href="/securite">Sécurité</a>
1919
<div class="separateur"></div>
2020
<a href="/accessibilite"
21-
>Accessiblité: {conformiteAccessibilite === 'conforme' ? 'conforme' : 'non conforme'}</a
22-
>
21+
>Accessiblité: {conformiteAccessibilite === 'conforme' ? 'conforme' : 'non conforme'}</a
22+
>
2323
</div>
2424

2525
<style lang="scss">
@@ -37,8 +37,8 @@
3737
border-top: 1px solid $border-default-grey;
3838
3939
@include a-partir-de(desktop) {
40-
margin: 0 24px;
41-
column-gap: 16px;
40+
margin: 0 24px;
41+
column-gap: 16px;
4242
}
4343
4444
a {
@@ -57,8 +57,8 @@
5757
}
5858
5959
&:active {
60-
background: #ededed;
61-
}
60+
background: #ededed;
61+
}
6262
}
6363
}
6464

src/lib/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
export { default as NavigationPiedDePage } from './NavigationPiedDePage.svelte';
2-

src/responsive.scss

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
@use "sass:map";
2-
@use "sass:meta";
1+
@use 'sass:map';
2+
@use 'sass:meta';
33

44
$points-de-rupture-a-partir-de: (
5-
desktop: ( min-width: 932px )
5+
desktop: (
6+
min-width: 932px
7+
)
68
) !default;
79

810
@mixin a-partir-de($point-de-rupture) {
9-
@if map.has-key($points-de-rupture-a-partir-de, $point-de-rupture) {
10-
@media #{meta.inspect(map.get($points-de-rupture-a-partir-de, $point-de-rupture))} {
11-
@content;
12-
}
13-
}
14-
15-
@else {
16-
@warn "Un point de rupture inconnu (`#{$point-de-rupture}`) a été utilisé. "
11+
@if map.has-key($points-de-rupture-a-partir-de, $point-de-rupture) {
12+
@media #{meta.inspect(map.get($points-de-rupture-a-partir-de, $point-de-rupture))} {
13+
@content;
14+
}
15+
} @else {
16+
@warn "Un point de rupture inconnu (`#{$point-de-rupture}`) a été utilisé. "
1717
+ "Les points de rupture disponibles sont: #{map-keys($points-de-rupture-a-partir-de)}.";
18-
}
19-
}
18+
}
19+
}
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
### Svelte
2+
23
```svelte
34
<NavigationPiedDePage conformiteAccessibilite="conforme" />
45
```
56

67
### HTML
8+
79
```html
8-
<lab-anssi-navigation-pied-de-page conformiteAccessibilite="conforme"></lab-anssi-navigation-pied-de-page>
10+
<lab-anssi-navigation-pied-de-page
11+
conformiteAccessibilite="conforme"
12+
></lab-anssi-navigation-pied-de-page>
913
```
1014

1115
### Propriétés
16+
1217
```typescript
1318
type conformiteAccessibilite = 'conforme' | 'nonConforme';
14-
```
19+
```

stories/NavigationPiedDePage.story.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import type { Hst } from '@histoire/plugin-svelte';
33
import NavigationPiedDePage from '$lib/NavigationPiedDePage.svelte';
44
5-
export let Hst: Hst
5+
export let Hst: Hst;
66
77
let conformiteAccessibilite = 'nonConforme';
88
const source = `<NavigationPiedDePage {conformiteAccessibilite} />`;
@@ -15,7 +15,7 @@
1515
<Hst.Select
1616
bind:value={conformiteAccessibilite}
1717
title="Conformité d'accessibilité"
18-
options={{conforme: 'Conforme', nonConforme: 'Non conforme'}}
18+
options={{ conforme: 'Conforme', nonConforme: 'Non conforme' }}
1919
/>
2020
</svelte:fragment>
2121
</Hst.Story>

stories/histoire.setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
import './styles.histoire.css'
1+
import './styles.histoire.css';

0 commit comments

Comments
 (0)