-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1495 from cloud-pi-native/fix/icon
Fix/icon
- Loading branch information
Showing
18 changed files
with
153 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!env node | ||
import path from 'node:path' | ||
|
||
import { createCustomCollectionFile } from '@gouvminint/vue-dsfr/meta' | ||
import { Command } from 'commander' | ||
|
||
const program = new Command() | ||
|
||
program | ||
.option('-s, --source <filepath>', 'Chemin vers le fichier de tuples [IconifyJSON, string[]]') | ||
.option('-t, --target <filepath>', 'Chemin vers le fichier destination (src/icons.ts par défaut)') | ||
.parse(process.argv) | ||
|
||
const options = program.opts() | ||
|
||
if (options.source && options.target) { | ||
createCustomCollectionFile(path.resolve(process.cwd(), options.source), path.resolve(process.cwd(), options.target)) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
// @ts-check | ||
import { icons as riCollection } from '@iconify-json/ri' | ||
|
||
/** | ||
* @type {string[]} | ||
*/ | ||
const riIconNames = [ | ||
'account-circle-line', | ||
'add-fill', | ||
'add-line', | ||
'admin-line', | ||
'alert-fill', | ||
'archive-fill', | ||
'arrow-drop-left-line', | ||
'arrow-drop-right-line', | ||
'arrow-go-back-line', | ||
'arrow-left-double-fill', | ||
'arrow-right-double-fill', | ||
'arrow-right-double-line', | ||
'arrow-right-s-line', | ||
'arrow-up-s-line', | ||
'award-line', | ||
'building-line', | ||
'check-fill', | ||
'checkbox-blank-circle-fill', | ||
'checkbox-circle-line', | ||
'clipboard-line', | ||
'close-line', | ||
'dashboard-line', | ||
'delete-bin-7-line', | ||
'exchange-line', | ||
'eye-fill', | ||
'eye-line', | ||
'eye-off-fill', | ||
'eye-off-line', | ||
'filter-fill', | ||
'file-download-line', | ||
'filter-off-fill', | ||
'flow-chart', | ||
'focus-3-line', | ||
'folder-user-line', | ||
'folders-line', | ||
'git-branch-line', | ||
'github-fill', | ||
'heart-pulse-line', | ||
'key-2-line', | ||
'key-2-line', | ||
'loader-4-line', | ||
'lock-fill', | ||
'lock-unlock-fill', | ||
'mail-line', | ||
'microsoft-line', | ||
'moon-clear-line', | ||
'newspaper-line', | ||
'pencil-fill', | ||
'refresh-fill', | ||
'restart-line', | ||
'send-plane-line', | ||
'server-line', | ||
'settings-3-line', | ||
'sound-module-line', | ||
'stock-line', | ||
'sun-line', | ||
'team-line', | ||
'tools-fill', | ||
'upload-cloud-line', | ||
'user-add-line', | ||
'user-shared-2-line', | ||
] | ||
|
||
/** | ||
* @type {[import('@iconify/vue').IconifyJSON, string[]][]} | ||
*/ | ||
export const collectionsToFilter = [ | ||
[riCollection, riIconNames], | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,7 +75,8 @@ | |
"pnpm": { | ||
"patchedDependencies": { | ||
"[email protected]": "patches/[email protected]", | ||
"[email protected]": "patches/[email protected]" | ||
"[email protected]": "patches/[email protected]", | ||
"@gouvminint/vue-dsfr": "patches/@gouvminint__vue-dsfr.patch" | ||
}, | ||
"allowNonAppliedPatches": true | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/dist/vue-dsfr.js b/dist/vue-dsfr.js | ||
index c2edd7208cf11e99a8bc33f0abc41d6ef9b6a5c2..42810cd9a7090efb1dad5f3bd49261e4f500e0b9 100644 | ||
--- a/dist/vue-dsfr.js | ||
+++ b/dist/vue-dsfr.js | ||
@@ -22,7 +22,7 @@ const st = Symbol("accordions"), rt = Symbol("header"), He = Symbol("tabs"), he | ||
adjust: s, | ||
onTransitionEnd: (r) => { | ||
var c, u; | ||
- e.value = !1, (u = (c = o.value) == null ? void 0 : c.querySelector("a")) == null || u.focus(), o.value && r === !1 && o.value.style.removeProperty("--collapse-max-height"); | ||
+ e.value = !1, (u = (c = o.value) == null ? void 0 : c.querySelector("a")) == null, o.value && r === !1 && o.value.style.removeProperty("--collapse-max-height"); | ||
} | ||
}; | ||
}, ma = "(prefers-color-scheme: dark)", ga = "vue-dsfr-scheme"; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.