Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tech/update dependencies #1026

Merged
merged 4 commits into from
Feb 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,17 @@ jobs:
run: pnpm check-exports-ci
- name: Test
run: pnpm test
- name: Install Playwright with dependencies
run: pnpx playwright install --with-deps
- name: Install Playwright
run: pnpx playwright install
# - name: Install Playwright with dependencies
# run: pnpx playwright install --with-deps firefox

- name: Build Storybook
run: pnpm build-storybook --quiet
- name: Serve Storybook and run tests
env:
TEST_STORYBOOK_URL: http://localhost:6006
run: |
pnpx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
"pnpx http-server storybook-static --port 6006 --silent" \
"pnpx wait-on tcp:6006 && pnpm test-storybook"
# - name: Serve Storybook and run tests
# env:
# TEST_STORYBOOK_URL: http://localhost:6006
# run: |
# pnpx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
# "pnpx http-server storybook-static --port 6006 --silent" \
# "pnpx wait-on tcp:6006 && pnpm test-storybook"
- name: Build
run: pnpm build
55 changes: 53 additions & 2 deletions demo-app/views/AppHome.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script setup>
<script setup lang="ts">
import pDebounce from 'p-debounce'
import { ref, watch } from 'vue'

Expand Down Expand Up @@ -71,6 +71,27 @@ const onClick = () => {
}

const activeAccordion = ref(-1)

const selection = ref([])
const headers = [
{
key: 'id',
label: 'ID',
},
{
key: 'name',
label: 'Name',
},
{
key: 'email',
label: 'Email',
},
]
const rows = [
[1, 'John Doe', '[email protected]'],
[2, 'Jane Doe', '[email protected]'],
[3, 'James Bond', '[email protected]'],
]
</script>

<template>
Expand Down Expand Up @@ -126,6 +147,36 @@ const activeAccordion = ref(-1)
</DsfrAccordion>
</DsfrAccordionsGroup>
</div>
<div>
<DsfrDataTable
v-model:selection="selection"
title="Titre du tableau (caption)"
:headers-row="headers"
:rows="rows"
selectable-rows
sortable-rows
:row-key="0"
>
<template #cell="{ colKey, cell }">
<template v-if="colKey === 'email'">
<DsfrTooltip
content="Envoyer un courriel"
on-hover
>
<a :href="`mailto:${cell as string}`">{{ cell }}</a>
</DsfrTooltip>
</template>
<template v-else>
<DsfrTooltip
:content="`(${colKey})`"
on-hover
>
{{ cell }}
</DsfrTooltip>
</template>
</template>
</DsfrDataTable>
</div>

<div class="flex justify-between w-full relative">
<DsfrTooltip
Expand All @@ -148,7 +199,7 @@ const activeAccordion = ref(-1)
<AsyncButton
:is-loading="isLoading"
:disabled="disabled"
@click="onClick($event)"
@click="onClick()"
>
Cliquer pour voir un chargement
</AsyncButton>
Expand Down
10 changes: 5 additions & 5 deletions docs/gabarit-doc-composant.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Tuile - `DsfrTile`

## 🌟 Introduction
## 🌟Introduction

La tuile est un raccourci ou point d’entrée qui redirige les utilisateurs vers des pages de contenu. Elle fait généralement partie d'une collection ou liste de tuiles similaires. La tuile n’est jamais présentée de manière isolée.

Expand All @@ -10,7 +10,7 @@ Le composant `DsfrTile` est une tuile flexible et stylisée, idéale pour affich

<VIcon name="vi-file-type-storybook" /> La story sur la tuile sur le storybook de [VueDsfr](https://storybook.vue-ds.fr/?path=/docs/composants-dsfrtile--docs)

## 📐 Structure
## 📐Structure

- `<DsfrTile>` : Le composant principal.
- Affiche un titre, une description, des détails et un pictogramme (image ou SVG).
Expand Down Expand Up @@ -39,15 +39,15 @@ Le composant `DsfrTile` est une tuile flexible et stylisée, idéale pour affich
| `noBackground` | `boolean` | Si vrai, n'affiche pas de fond dans la tuile. | `false` |
| `grey` | `boolean` | Si vrai, affiche un fond gris pour la tuile. | `false` |

## 📡 Événements
## 📡Événements

Ce composant ne déclenche pas d'événements spécifiques.

## 🧩 Slots
## 🧩Slots

- `header` : Slot pour insérer du contenu personnalisé dans l'en-tête de la tuile.

## 📝 Exemples
## 📝Exemples

Section vide comme demandé.

Expand Down
2 changes: 1 addition & 1 deletion docs/guide/guide-developpeur.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Vous devriez voir 20.x.x
- Faire des demandes dans [discussions](https://github.com/dnum-mi/vue-dsfr/discussions)
- Rejoindre le [server Discord](https://discord.gg/jbBJ9769ZZ)

### À propos des pull-requests
### Àpropos des pull-requests

Les commits doivent suivre la spécification des **[Commits Conventionnels](https://www.conventionalcommits.org/fr/v1.0.0/)** afin que
l’outil de release automatique détecte les nouvelles fonctionnalités et les corrections d’anomalies.
Expand Down
80 changes: 40 additions & 40 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"dev": "storybook dev -p 6006",
"vitest": "vitest",
"coverage": "vitest run --coverage",
"test-storybook": "cross-env test-storybook --url ${TEST_STORYBOOK_URL:-http://localhost:6006}",
"test-storybook": "cross-env test-storybook --url ${TEST_STORYBOOK_URL:-http://localhost:6006} --browsers firefox",
"test": "run-s test:unit",
"test:watch": "vitest",
"test:unit": "vitest run",
Expand All @@ -86,75 +86,75 @@
},
"dependencies": {
"@gouvfr/dsfr": "~1.12.1",
"focus-trap": "^7.6.2",
"focus-trap": "^7.6.4",
"focus-trap-vue": "^4.0.3",
"vue": "^3.5.13",
"vue-router": "^4.5.0"
},
"devDependencies": {
"@antfu/eslint-config": "^3.12.0",
"@chromatic-com/storybook": "^3.2.2",
"@antfu/eslint-config": "^3.16.0",
"@chromatic-com/storybook": "^3.2.4",
"@commitlint/cli": "^19.6.1",
"@commitlint/config-conventional": "^19.6.0",
"@iconify/vue": "^4.2.0",
"@iconify/vue": "^4.3.0",
"@playwright/test": "1.49.1",
"@storybook/addon-a11y": "^8.4.7",
"@storybook/addon-docs": "^8.4.7",
"@storybook/addon-essentials": "^8.4.7",
"@storybook/addon-interactions": "^8.4.7",
"@storybook/addon-links": "^8.4.7",
"@storybook/addon-mdx-gfm": "^8.4.7",
"@storybook/addon-themes": "^8.4.7",
"@storybook/blocks": "^8.4.7",
"@storybook/test": "^8.4.7",
"@storybook/test-runner": "^0.20.1",
"@storybook/theming": "^8.4.7",
"@storybook/vue3": "^8.4.7",
"@storybook/vue3-vite": "^8.4.7",
"@storybook/addon-a11y": "^8.5.2",
"@storybook/addon-docs": "^8.5.2",
"@storybook/addon-essentials": "^8.5.2",
"@storybook/addon-interactions": "^8.5.2",
"@storybook/addon-links": "^8.5.2",
"@storybook/addon-mdx-gfm": "^8.5.2",
"@storybook/addon-themes": "^8.5.2",
"@storybook/blocks": "^8.5.2",
"@storybook/test": "^8.5.2",
"@storybook/test-runner": "^0.21.0",
"@storybook/theming": "^8.5.2",
"@storybook/vue3": "^8.5.2",
"@storybook/vue3-vite": "^8.5.2",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/user-event": "^14.5.2",
"@testing-library/user-event": "^14.6.1",
"@testing-library/vue": "^8.1.0",
"@types/jsdom": "^21.1.7",
"@types/node": "^22.10.2",
"@types/node": "^22.12.0",
"@vitejs/plugin-vue": "^5.2.1",
"@vitejs/plugin-vue-jsx": "^4.1.1",
"@vue/test-utils": "^2.4.6",
"@vue/tsconfig": "^0.7.0",
"@vueuse/core": "^12.0.0",
"@vueuse/shared": "^12.0.0",
"@vueuse/core": "^12.5.0",
"@vueuse/shared": "^12.5.0",
"@whyframe/core": "^0.1.12",
"@whyframe/vue": "^0.1.7",
"browserslist": "^4.24.3",
"chalk": "^5.4.0",
"commander": "^13.0.0",
"browserslist": "^4.24.4",
"chalk": "^5.4.1",
"commander": "^13.1.0",
"commitlint": "^19.6.1",
"cross-env": "^7.0.3",
"eslint": "^9.17.0",
"eslint": "^9.19.0",
"eslint-plugin-vue": "^9.32.0",
"globby": "^14.0.2",
"husky": "^9.1.7",
"inquirer": "^12.2.0",
"jsdom": "^25.0.1",
"lightningcss": "^1.28.2",
"lint-staged": "^15.2.11",
"inquirer": "^12.3.3",
"jsdom": "^26.0.0",
"lightningcss": "^1.29.1",
"lint-staged": "^15.4.3",
"npm-run-all": "^4.1.5",
"p-debounce": "^4.0.0",
"pnpm": "^9.15.0",
"publint": "^0.2.12",
"pnpm": "^9.15.4",
"publint": "^0.3.2",
"regenerator-runtime": "^0.14.1",
"rimraf": "^6.0.1",
"semantic-release": "^24.2.0",
"start-server-and-test": "^2.0.9",
"storybook": "^8.4.7",
"semantic-release": "^24.2.1",
"start-server-and-test": "^2.0.10",
"storybook": "^8.5.2",
"typescript": "~5.6.3",
"vite": "^5.4.11",
"vite-node": "^2.1.8",
"vite": "^5.4.14",
"vite-node": "^3.0.4",
"vite-plugin-full-reload": "^1.2.0",
"vitepress": "^1.5.0",
"vitest": "^2.1.8",
"vitepress": "^1.6.3",
"vitest": "^3.0.4",
"vue-demi": "^0.14.10",
"vue-tsc": "^2.1.10"
"vue-tsc": "^2.2.0"
},
"lint-staged": {
"*.{vue,js,jsx,ts,tsx}": "run-s check-exports-ci lint --"
Expand Down
Loading