Skip to content

Commit 6339b80

Browse files
authored
Merge pull request #844 from dnum-mi/v6
chore: ⬆️ met à jour DSFR 1.12.x
2 parents acdd5e4 + 1217a4a commit 6339b80

File tree

223 files changed

+6173
-38140
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

223 files changed

+6173
-38140
lines changed

.github/workflows/run-tests.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup Node.js
2424
uses: actions/setup-node@v2
2525
with:
26-
node-version: 18
26+
node-version: 20
2727
- name: Install pnpm
2828
run: npm i -g pnpm
2929
- name: Install dependencies
@@ -32,5 +32,16 @@ jobs:
3232
run: pnpm lint --quiet
3333
- name: Test
3434
run: pnpm test
35+
- name: Install Playwright
36+
run: pnpx playwright install --with-deps
37+
- name: Build Storybook
38+
run: pnpm build-storybook --quiet
39+
- name: Serve Storybook and run tests
40+
env:
41+
TEST_STORYBOOK_URL: http://localhost:6006
42+
run: |
43+
pnpx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
44+
"pnpx http-server storybook-static --port 6006 --silent" \
45+
"pnpx wait-on tcp:6006 && pnpm test-storybook"
3546
- name: Build
3647
run: pnpm build

.husky/commit-msg

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
4-
npx --no -- commitlint --edit "$1"
1+
pnpx commitlint --edit "$1"

.husky/pre-commit

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
4-
npx lint-staged
1+
pnpx lint-staged

.husky/pre-push

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
4-
npm test
1+
pnpm test

.storybook/preview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { themes } from '@storybook/theming'
44
import { withThemeByDataAttribute } from '@storybook/addon-styling'
55
import { FocusTrap } from 'focus-trap-vue'
66
import { defineComponent } from 'vue'
7-
import { OhVueIcon as VIcon } from 'oh-vue-icons'
7+
import VIcon from '../src/components/VIcon/VIcon.vue'
88

99
import VueDsfrTheme from './vue-dsfr-theme.js'
1010
import '../src/assets/variables-fdr.css'

.vitepress/config.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ const guideItems = [
6262
text: 'Les icônes',
6363
link: '/guide/icones.md',
6464
},
65+
{
66+
text: 'Migrations',
67+
link: '/guide/migrations.md',
68+
},
6569
{
6670
text: 'Guide du développeur',
6771
link: '/guide/guide-developpeur.md',
@@ -95,6 +99,10 @@ const composants = [
9599
text: 'DsfrAccordion',
96100
link: '/composants/DsfrAccordion.md',
97101
},
102+
{
103+
text: 'DsfrAccordionsGroup',
104+
link: '/composants/DsfrAccordionsGroup.md',
105+
},
98106
{
99107
text: 'DsfrAlert',
100108
link: '/composants/DsfrAlert.md',
@@ -119,6 +127,10 @@ const composants = [
119127
text: 'DsfrButtonGroup',
120128
link: '/composants/DsfrButtonGroup.md',
121129
},
130+
{
131+
text: 'DsfrCallout',
132+
link: '/composants/DsfrCallout.md',
133+
},
122134
{
123135
text: 'DsfrCard',
124136
link: '/composants/DsfrCard.md',
@@ -135,6 +147,10 @@ const composants = [
135147
text: 'DsfrConsent',
136148
link: '/composants/DsfrConsent.md',
137149
},
150+
{
151+
text: 'DsfrDataTable',
152+
link: '/composants/DsfrDataTable.md',
153+
},
138154
{
139155
text: 'DsfrErrorPage',
140156
link: '/composants/DsfrErrorPage.md',
@@ -271,6 +287,10 @@ const composants = [
271287
text: 'DsfrTooltip',
272288
link: '/composants/DsfrTooltip.md',
273289
},
290+
{
291+
text: 'VIcon',
292+
link: '/composants/VIcon.md',
293+
},
274294
]
275295

276296
// https://vitepress.dev/reference/site-config

.vitepress/theme/VIconLink.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import type { OhVueIcon as VIcon } from 'oh-vue-icons'
2+
import type VIcon from '../../src/components/VIcon.vue'
33
44
withDefaults(defineProps<{
55
href: string

.vitepress/theme/icons.ts

Lines changed: 0 additions & 17 deletions
This file was deleted.

.vitepress/theme/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
import type { Theme } from 'vitepress'
22
import DefaultTheme from 'vitepress/theme'
3-
import { OhVueIcon as VIcon, addIcons } from 'oh-vue-icons'
43
import { RouterLink } from 'vue-router'
54

65
import Story from './Story.vue'
76
import AppColors from './AppColors.vue'
87
import AppIcons from './AppIcons.vue'
98
import VIconLink from './VIconLink.vue'
10-
import * as vpIcons from './icons'
119

1210
import './official-icons.css'
1311
import '@gouvfr/dsfr/dist/utility/icons/icons.main.css'
1412
import './style.css'
15-
16-
addIcons(...Object.values(vpIcons))
13+
import VIcon from '../../src/components/VIcon/VIcon.vue'
1714

1815
export default {
1916
extends: DefaultTheme,

.vscode/extensions.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// Language support for Vue 3
66
// https://github.com/johnsoncodehk/volar
77
"vue.volar",
8-
"vue.vscode-typescript-vue-plugin",
98

109
// Language support for PostCSS
1110
// https://github.com/csstools/postcss-language

0 commit comments

Comments
 (0)