🇫🇷 法国国家设计系统 反应工具包 🇫🇷
法国README版本 页:1。 。 。 .
警告:本设计系统仅用于法国官方公共服务网站.
其主要目的是方便市民识别政府网站. 见术语。 。 。 .
这个模块是一个高级工具包 杠杆 @gouvfr/ dsfr (英语),香草JS/CSS 执行DSFR.
虽然这个模块是用 TypeScript 写的,但是在您的应用程序中使用 TypeScript 是可选的(但建议它同时给您和您的代码库带来显著的好处).
- Fully TypeSafe, 有详细记载的API.
- 总是在最新的DSFR演化.
代码和类型
@gouvfr/dsfr/dist/dsfr.css。 。 。 . - 完全一样的外表和感觉 比与 @gouvfr/ dsfr (英语)。 。 。 .
- 没有 在 SSR 设置中重新装入时出现白色闪光。 。 。 .
- 大多数组件已准备好服务器组件 。 其他的标签
"use client"; - 与所有主要反应框架完美整合:Next.js(PagesDir和AppDir),创建反应App,Vite。 。 。 .
- (几乎)全部 组件 为: 已执行
- 三个摇摆的发行,樱桃取出你进口的组件. (这不是所有在一个大的.js捆绑)
- 与 毛里求斯。如果您使用 MUI 组件,它们将 自动调整为外观 DSFR组件。见 文档。 。 。 .
- 在联署材料解决方案中启用 CSS . 医生。 。 。 .
- 以文字构建的Opt-in i18n可以多种语言显示,用户可以提供额外的翻译.
- 支持路由图书馆 像反应路由器.
* 需要准备使用符合DSFR的登录和注册页面吗? 离职 keycloak 主题文件。 。 。 .
施政
此模块是 Etalab 自由与开源软件杆。 。 。 .
该项目由法国各行政部门的公务员共同负责:
发展 -- -- 为项目作出贡献
git clone https://github.com/codegouvfr/react-dsfr
cd react-dsfr
yarn
# Starting storybook
yarn storybook
# Starting test apps
yarn start-cra # For testing in a Create React App setup
yarn start-vite # For testing in a Vite setup
yarn start-next-pagesdir # For testing in a Next.js 13 PagesDir setup (the default setup)
yarn start-next-appdir # For testing in a Next.js 13 AppDir setup
# Run all unit test (test/runtime):
yarn test
# Run only test/runtime/cssVariable.test.ts (for example)
npx vitest -t "Resolution of CSS variables"
想贡献吗?
谢谢! 见 贡献指南。 。 。 .
如何发布关于国家预防机制的新版本,如何发布β版本
这回波是靴子被拖走的 加罗奈克/吨-西 看看这个 记录此启动器, 以了解此还原的生命周期 .
使用大小写
一些项目使用 @codegouvfr/react-dsfr。 。 。 .
- https://adresse.data.gouv.fr (英语)
- https://cartes.gouv.fr (中文(简体) )
- https://code.gouv.fr/sill (中文(简体) )
- https://diagoriente.beta.gouv.fr 互联网档案馆的存檔,存档日期2013-12-21
- https://egapro.travail.gouv.fr (中文(简体) )
- https://github.com/BaseAdresse Nationale/bal-admin 页面存档备份,存于互联网档案馆
- https://github.com/DISIC/monfrance 连通
- https://github.com/EIG6-Artificia/prepictia front. 互联网档案馆的存檔,存档日期2013-12-12
- https://github.com/EIG6-Geocommuns/地铁-核心
- https://github.com/EIG6-Geocommuns/lidarviz-front (英语)
- https://github.com/inclucion-numerique/mediture (中文(简体) )
- https://github.com/InseeFr/Lunatic-DSFR (英语)
- https://github.com/SocialGouv/bpco-site 页面存档备份,存于互联网档案馆
- https://immersion-facile.beta.gouv.fr (英语)
- https://maisondelautisme.gouv.fr/ (中文(简体) )
- https://observatoire.numerique.gouv.fr 页面存档备份,存于互联网档案馆
- https://potentiel.beta.gouv.fr (中文(简体) )
- https://refugies.info (英语)
- https://signal.conso.gouv.fr (中文(简体) )
- https://territoiresen 过渡.fr
- https://www.mediateur-public.fr (中文(简体) )
- https://suitedroitiese.anct.gouv.fr 互联网档案馆的存檔,存档日期2013-12-22