refactor(about, i18n): improved i18n dx with markdown (#753)

This commit is contained in:
Corentin THOMASSET 2023-11-15 00:15:41 +01:00 committed by GitHub
parent de1ee69ef9
commit bd3edcb528
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 113 additions and 79 deletions

44
pnpm-lock.yaml generated
View file

@ -65,6 +65,9 @@ dependencies:
date-fns:
specifier: ^2.29.3
version: 2.29.3
dompurify:
specifier: ^3.0.6
version: 3.0.6
emojilib:
specifier: ^3.0.10
version: 3.0.10
@ -95,6 +98,9 @@ dependencies:
lodash:
specifier: ^4.17.21
version: 4.17.21
marked:
specifier: ^10.0.0
version: 10.0.0
mathjs:
specifier: ^11.9.1
version: 11.9.1
@ -190,6 +196,9 @@ devDependencies:
'@types/crypto-js':
specifier: ^4.1.1
version: 4.1.1
'@types/dompurify':
specifier: ^3.0.5
version: 3.0.5
'@types/jsdom':
specifier: ^21.0.0
version: 21.1.0
@ -2423,7 +2432,7 @@ packages:
resolution: {integrity: sha512-LrwV3f0Y6H7b7m/w1Y3bkGuR3HOiBK4QiHHW3HuRMza6MZodDQbj8Baik5/V5GiSg1/ltijS1CymVcycd1EfTw==}
dependencies:
'@types/markdown-it': 12.2.3
markdown-it: 13.0.1
markdown-it: 13.0.2
dev: true
/@mdit-vue/plugin-frontmatter@0.12.0:
@ -2432,7 +2441,7 @@ packages:
'@mdit-vue/types': 0.12.0
'@types/markdown-it': 12.2.3
gray-matter: 4.0.3
markdown-it: 13.0.1
markdown-it: 13.0.2
dev: true
/@mdit-vue/types@0.12.0:
@ -2907,6 +2916,12 @@ packages:
resolution: {integrity: sha512-BG7fQKZ689HIoc5h+6D2Dgq1fABRa0RbBWKBd9SP/MVRVXROflpm5fhwyATX5duFmbStzyzyycPB8qUYKDH3NA==}
dev: true
/@types/dompurify@3.0.5:
resolution: {integrity: sha512-1Wg0g3BtQF7sSb27fJQAKck1HECM6zV1EB66j8JH9i3LCjYabJa0FSdiSgsD5K/RbrsR0SiraKacLB+T8ZVYAg==}
dependencies:
'@types/trusted-types': 2.0.3
dev: true
/@types/estree@0.0.39:
resolution: {integrity: sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==}
dev: true
@ -3353,7 +3368,7 @@ packages:
dependencies:
'@unhead/dom': 0.5.1
'@unhead/schema': 0.5.1
'@vueuse/shared': 10.6.0(vue@3.3.4)
'@vueuse/shared': 10.6.1(vue@3.3.4)
unhead: 0.5.1
vue: 3.3.4
transitivePeerDependencies:
@ -3980,8 +3995,8 @@ packages:
- vue
dev: false
/@vueuse/shared@10.6.0(vue@3.3.4):
resolution: {integrity: sha512-0t4MVE18sO+/4Gh0jfeOXBTjKeV4606N9kIrDOLPjFl8Rwnlodn+QC5A4LfJuysK7aOsTMjF3KnzNeueaI0xlQ==}
/@vueuse/shared@10.6.1(vue@3.3.4):
resolution: {integrity: sha512-TECVDTIedFlL0NUfHWncf3zF9Gc4VfdxfQc8JFwoVZQmxpONhLxFrlm0eHQeidHj4rdTPL3KXJa0TZCk1wnc5Q==}
dependencies:
vue-demi: 0.14.6(vue@3.3.4)
transitivePeerDependencies:
@ -4934,6 +4949,10 @@ packages:
domelementtype: 2.3.0
dev: true
/dompurify@3.0.6:
resolution: {integrity: sha512-ilkD8YEnnGh1zJ240uJsW7AzE+2qpbOUYjacomn3AvJ6J4JhKGSZ2nh4wUIXPZrEPppaCLx5jFe8T89Rk8tQ7w==}
dev: false
/domutils@3.1.0:
resolution: {integrity: sha512-H78uMmQtI2AhgDJjWeQmHwJJ2bLPD3GMmO7Zja/ZZh84wkm+4ut+IUnUdRa8uCGX88DiVx1j6FRe1XfxEgjEZA==}
dependencies:
@ -6842,8 +6861,9 @@ packages:
resolution: {integrity: sha512-CkYQrPYZfWnu/DAmVCpTSX/xHpKZ80eKh2lAkyA6AJTef6bW+6JpbQZN5rofum7da+SyN1bi5ctTm+lTfcCW3g==}
dev: true
/markdown-it@13.0.1:
resolution: {integrity: sha512-lTlxriVoy2criHP0JKRhO2VDG9c2ypWCsT237eDiLqi09rmbKoUetyGHq2uOIRoRS//kfoJckS0eUzzkDR+k2Q==}
/markdown-it@13.0.2:
resolution: {integrity: sha512-FtwnEuuK+2yVU7goGn/MJ0WBZMM9ZPgU9spqlFs7/A/pDIUNSOQZhUgOqYCficIuR2QaFnrt8LHqBWsbTAoI5w==}
hasBin: true
dependencies:
argparse: 2.0.1
entities: 3.0.1
@ -6851,6 +6871,12 @@ packages:
mdurl: 1.0.1
uc.micro: 1.0.6
/marked@10.0.0:
resolution: {integrity: sha512-YiGcYcWj50YrwBgNzFoYhQ1hT6GmQbFG8SksnYJX1z4BXTHSOrz1GB5/Jm2yQvMg4nN1FHP4M6r03R10KrVUiA==}
engines: {node: '>= 18'}
hasBin: true
dev: false
/mathjs@11.9.1:
resolution: {integrity: sha512-VdB9ELZ6Dwda13j5d1eCBETmPO8m9qIJETUdfZmTA9cPnXUiIk7UuoAmvxFqtfAe32XYuRugAec2Ndv0/RfRhg==}
engines: {node: '>= 14'}
@ -7624,7 +7650,7 @@ packages:
/prosemirror-markdown@1.11.0:
resolution: {integrity: sha512-yP9mZqPRstjZhhf3yykCQNE3AijxARrHe4e7esV9A+gp4cnGOH4QvrKYPpXLHspNWyvJJ+0URH+iIvV5qP1I2Q==}
dependencies:
markdown-it: 13.0.1
markdown-it: 13.0.2
prosemirror-model: 1.19.2
dev: false
@ -9084,7 +9110,7 @@ packages:
'@mdit-vue/types': 0.12.0
'@rollup/pluginutils': 5.0.2(rollup@2.79.1)
'@types/markdown-it': 12.2.3
markdown-it: 13.0.1
markdown-it: 13.0.2
vite: 4.4.9(@types/node@18.15.11)(less@4.1.3)
transitivePeerDependencies:
- rollup