Skip to content

Commit

Permalink
Ajout d‘une fonction permettant d’accéder au numéro de version du DSF…
Browse files Browse the repository at this point in the history
…R depuis le code (#198)

* Add a function to access the DSFR version number from code

* Update doc

* typographic consistency
  • Loading branch information
Ash-Crow authored Jan 7, 2025
1 parent 4ceb627 commit 873d4ac
Show file tree
Hide file tree
Showing 24 changed files with 37 additions and 25 deletions.
4 changes: 3 additions & 1 deletion dsfr/management/commands/make_icon_picker_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import json
import os

from dsfr.utils import dsfr_version


class Command(BaseCommand):
help = "Add some initial sample data for the example app."
Expand All @@ -20,7 +22,7 @@ def handle(self, *args, **options):
for folder in icons_folders:
icons_dict = {
"prefix": "fr-icon-",
"version": "1.11.2",
"version": dsfr_version(),
"icons": [],
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"prefix": "fr-icon-", "version": "1.11.2", "icons": ["ancient-gate-fill", "ancient-gate-line", "ancient-pavilion-fill", "ancient-pavilion-line", "bank-fill", "bank-line", "building-fill", "building-line", "community-fill", "community-line", "government-fill", "government-line", "home-4-fill", "home-4-line", "hospital-fill", "hospital-line", "hotel-fill", "hotel-line", "store-fill", "store-line"], "icon-style": "dsfr-buildings", "list-label": "DSFR Buildings"}
{"prefix": "fr-icon-", "version": "v1.13.0", "icons": ["ancient-gate-fill", "ancient-gate-line", "ancient-pavilion-fill", "ancient-pavilion-line", "bank-fill", "bank-line", "building-fill", "building-line", "community-fill", "community-line", "government-fill", "government-line", "home-4-fill", "home-4-line", "hospital-fill", "hospital-line", "hotel-fill", "hotel-line", "store-fill", "store-line"], "icon-style": "dsfr-buildings", "list-label": "DSFR Buildings"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"prefix": "fr-icon-", "version": "1.11.2", "icons": ["archive-fill", "archive-line", "attachment-fill", "attachment-line", "award-fill", "award-line", "bar-chart-box-fill", "bar-chart-box-line", "bookmark-fill", "bookmark-line", "briefcase-fill", "briefcase-line", "calendar-2-fill", "calendar-2-line", "calendar-event-fill", "calendar-event-line", "calendar-fill", "calendar-line", "cloud-fill", "cloud-line", "copyright-fill", "copyright-line", "customer-service-fill", "customer-service-line", "flag-fill", "flag-line", "global-fill", "global-line", "line-chart-fill", "line-chart-line", "links-fill", "links-line", "mail-fill", "mail-line", "mail-open-fill", "mail-open-line", "medal-fill", "medal-line", "pie-chart-2-fill", "pie-chart-2-line", "pie-chart-box-fill", "pie-chart-box-line", "printer-fill", "printer-line", "profil-fill", "profil-line", "projector-2-fill", "projector-2-line", "send-plane-fill", "send-plane-line", "slideshow-fill", "slideshow-line", "window-fill", "window-line"], "icon-style": "dsfr-business", "list-label": "DSFR Business"}
{"prefix": "fr-icon-", "version": "v1.13.0", "icons": ["archive-fill", "archive-line", "attachment-fill", "attachment-line", "award-fill", "award-line", "bar-chart-box-fill", "bar-chart-box-line", "bookmark-fill", "bookmark-line", "briefcase-fill", "briefcase-line", "calendar-2-fill", "calendar-2-line", "calendar-event-fill", "calendar-event-line", "calendar-fill", "calendar-line", "cloud-fill", "cloud-line", "copyright-fill", "copyright-line", "customer-service-fill", "customer-service-line", "flag-fill", "flag-line", "global-fill", "global-line", "line-chart-fill", "line-chart-line", "links-fill", "links-line", "mail-fill", "mail-line", "mail-open-fill", "mail-open-line", "medal-fill", "medal-line", "pie-chart-2-fill", "pie-chart-2-line", "pie-chart-box-fill", "pie-chart-box-line", "printer-fill", "printer-line", "profil-fill", "profil-line", "projector-2-fill", "projector-2-line", "send-plane-fill", "send-plane-line", "slideshow-fill", "slideshow-line", "window-fill", "window-line"], "icon-style": "dsfr-business", "list-label": "DSFR Business"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"prefix": "fr-icon-", "version": "1.11.2", "icons": ["chat-2-fill", "chat-2-line", "chat-3-fill", "chat-3-line", "chat-check-fill", "chat-check-line", "chat-delete-fill", "chat-delete-line", "chat-poll-fill", "chat-poll-line", "discuss-fill", "discuss-line", "feedback-fill", "feedback-line", "message-2-fill", "message-2-line", "question-answer-fill", "question-answer-line", "questionnaire-fill", "questionnaire-line", "video-chat-fill", "video-chat-line"], "icon-style": "dsfr-communication", "list-label": "DSFR Communication"}
{"prefix": "fr-icon-", "version": "v1.13.0", "icons": ["chat-2-fill", "chat-2-line", "chat-3-fill", "chat-3-line", "chat-check-fill", "chat-check-line", "chat-delete-fill", "chat-delete-line", "chat-poll-fill", "chat-poll-line", "discuss-fill", "discuss-line", "feedback-fill", "feedback-line", "message-2-fill", "message-2-line", "question-answer-fill", "question-answer-line", "questionnaire-fill", "questionnaire-line", "video-chat-fill", "video-chat-line"], "icon-style": "dsfr-communication", "list-label": "DSFR Communication"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"prefix": "fr-icon-", "version": "1.11.2", "icons": ["ball-pen-fill", "ball-pen-line", "brush-3-fill", "brush-3-line", "brush-fill", "brush-line", "contrast-fill", "contrast-line", "crop-fill", "crop-line", "drag-move-2-fill", "drag-move-2-line", "drop-fill", "drop-line", "edit-box-fill", "edit-box-line", "edit-fill", "edit-line", "ink-bottle-fill", "ink-bottle-line", "layout-grid-fill", "layout-grid-line", "mark-pen-fill", "mark-pen-line", "paint-brush-fill", "paint-brush-line", "paint-fill", "paint-line", "palette-fill", "palette-line", "pantone-fill", "pantone-line", "pen-nib-fill", "pen-nib-line", "pencil-fill", "pencil-line", "pencil-ruler-fill", "pencil-ruler-line", "shapes-fill", "shapes-line", "sip-fill", "sip-line", "table-fill", "table-line"], "icon-style": "dsfr-design", "list-label": "DSFR Design"}
{"prefix": "fr-icon-", "version": "v1.13.0", "icons": ["ball-pen-fill", "ball-pen-line", "brush-3-fill", "brush-3-line", "brush-fill", "brush-line", "contrast-fill", "contrast-line", "crop-fill", "crop-line", "drag-move-2-fill", "drag-move-2-line", "drop-fill", "drop-line", "edit-box-fill", "edit-box-line", "edit-fill", "edit-line", "ink-bottle-fill", "ink-bottle-line", "layout-grid-fill", "layout-grid-line", "mark-pen-fill", "mark-pen-line", "paint-brush-fill", "paint-brush-line", "paint-fill", "paint-line", "palette-fill", "palette-line", "pantone-fill", "pantone-line", "pen-nib-fill", "pen-nib-line", "pencil-fill", "pencil-line", "pencil-ruler-fill", "pencil-ruler-line", "shapes-fill", "shapes-line", "sip-fill", "sip-line", "table-fill", "table-line"], "icon-style": "dsfr-design", "list-label": "DSFR Design"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"prefix": "fr-icon-", "version": "1.11.2", "icons": ["bug-fill", "bug-line", "code-box-fill", "code-box-line", "code-s-slash-line", "cursor-fill", "cursor-line", "git-branch-fill", "git-branch-line", "git-commit-fill", "git-commit-line", "git-merge-fill", "git-merge-line", "git-pull-request-fill", "git-pull-request-line", "git-repository-commits-fill", "git-repository-commits-line", "git-repository-fill", "git-repository-line", "git-repository-private-fill", "git-repository-private-line", "terminal-box-fill", "terminal-box-line", "terminal-line", "terminal-window-fill", "terminal-window-line"], "icon-style": "dsfr-development", "list-label": "DSFR Development"}
{"prefix": "fr-icon-", "version": "v1.13.0", "icons": ["bug-fill", "bug-line", "code-box-fill", "code-box-line", "code-s-slash-line", "cursor-fill", "cursor-line", "git-branch-fill", "git-branch-line", "git-commit-fill", "git-commit-line", "git-merge-fill", "git-merge-line", "git-pull-request-fill", "git-pull-request-line", "git-repository-commits-fill", "git-repository-commits-line", "git-repository-fill", "git-repository-line", "git-repository-private-fill", "git-repository-private-line", "terminal-box-fill", "terminal-box-line", "terminal-line", "terminal-window-fill", "terminal-window-line"], "icon-style": "dsfr-development", "list-label": "DSFR Development"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"prefix": "fr-icon-", "version": "1.11.2", "icons": ["bluetooth-fill", "bluetooth-line", "computer-fill", "computer-line", "dashboard-3-fill", "dashboard-3-line", "database-fill", "database-line", "device-fill", "device-line", "hard-drive-2-fill", "hard-drive-2-line", "mac-fill", "mac-line", "phone-fill", "phone-line", "qr-code-fill", "qr-code-line", "rss-fill", "rss-line", "save-3-fill", "save-3-line", "save-fill", "save-line", "server-fill", "server-line", "smartphone-fill", "smartphone-line", "tablet-fill", "tablet-line", "tv-fill", "tv-line", "wifi-fill", "wifi-line"], "icon-style": "dsfr-device", "list-label": "DSFR Device"}
{"prefix": "fr-icon-", "version": "v1.13.0", "icons": ["bluetooth-fill", "bluetooth-line", "computer-fill", "computer-line", "dashboard-3-fill", "dashboard-3-line", "database-fill", "database-line", "device-fill", "device-line", "hard-drive-2-fill", "hard-drive-2-line", "mac-fill", "mac-line", "phone-fill", "phone-line", "qr-code-fill", "qr-code-line", "rss-fill", "rss-line", "save-3-fill", "save-3-line", "save-fill", "save-line", "server-fill", "server-line", "smartphone-fill", "smartphone-line", "tablet-fill", "tablet-line", "tv-fill", "tv-line", "wifi-fill", "wifi-line"], "icon-style": "dsfr-device", "list-label": "DSFR Device"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"prefix": "fr-icon-", "version": "1.11.2", "icons": ["article-fill", "article-line", "book-2-fill", "book-2-line", "booklet-fill", "booklet-line", "clipboard-fill", "clipboard-line", "draft-fill", "draft-line", "file-add-fill", "file-add-line", "file-download-fill", "file-download-line", "file-fill", "file-line", "file-pdf-fill", "file-pdf-line", "file-text-fill", "file-text-line", "folder-2-fill", "folder-2-line", "newspaper-fill", "newspaper-line", "survey-fill", "survey-line", "todo-fill", "todo-line"], "icon-style": "dsfr-document", "list-label": "DSFR Document"}
{"prefix": "fr-icon-", "version": "v1.13.0", "icons": ["article-fill", "article-line", "book-2-fill", "book-2-line", "booklet-fill", "booklet-line", "clipboard-fill", "clipboard-line", "draft-fill", "draft-line", "file-add-fill", "file-add-line", "file-download-fill", "file-download-line", "file-fill", "file-line", "file-pdf-fill", "file-pdf-line", "file-text-fill", "file-text-line", "folder-2-fill", "folder-2-line", "newspaper-fill", "newspaper-line", "survey-fill", "survey-line", "todo-fill", "todo-line"], "icon-style": "dsfr-document", "list-label": "DSFR Document"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"prefix": "fr-icon-", "version": "1.11.2", "icons": ["bold", "code-view", "font-size", "h-1", "h-2", "h-3", "h-4", "h-5", "h-6", "hashtag", "highlight", "italic", "link", "link-unlink", "list-ordered", "list-unordered", "question-mark", "quote-fill", "quote-line", "separator", "space", "subscript", "superscript", "table-2", "translate-2"], "icon-style": "dsfr-editor", "list-label": "DSFR Editor"}
{"prefix": "fr-icon-", "version": "v1.13.0", "icons": ["bold", "code-view", "font-size", "h-1", "h-2", "h-3", "h-4", "h-5", "h-6", "hashtag", "highlight", "italic", "link", "link-unlink", "list-ordered", "list-unordered", "question-mark", "quote-fill", "quote-line", "separator", "space", "subscript", "superscript", "table-2", "translate-2"], "icon-style": "dsfr-editor", "list-label": "DSFR Editor"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"prefix": "fr-icon-", "version": "1.11.2", "icons": ["bank-card-fill", "bank-card-line", "coin-fill", "gift-fill", "gift-line", "money-euro-box-fill", "money-euro-box-line", "money-euro-circle-fill", "money-euro-circle-line", "secure-payment-fill", "secure-payment-line", "shopping-bag-fill", "shopping-bag-line", "shopping-cart-2-fill", "shopping-cart-2-line", "trophy-fill", "trophy-line"], "icon-style": "dsfr-finance", "list-label": "DSFR Finance"}
{"prefix": "fr-icon-", "version": "v1.13.0", "icons": ["bank-card-fill", "bank-card-line", "coin-fill", "gift-fill", "gift-line", "money-euro-box-fill", "money-euro-box-line", "money-euro-circle-fill", "money-euro-circle-line", "secure-payment-fill", "secure-payment-line", "shopping-bag-fill", "shopping-bag-line", "shopping-cart-2-fill", "shopping-cart-2-line", "trophy-fill", "trophy-line"], "icon-style": "dsfr-finance", "list-label": "DSFR Finance"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"prefix": "fr-icon-", "version": "1.11.2", "icons": ["capsule-fill", "capsule-line", "dislike-fill", "dislike-line", "dossier-fill", "dossier-line", "first-aid-kit-fill", "first-aid-kit-line", "hand-sanitizer-fill", "hand-sanitizer-line", "health-book-fill", "health-book-line", "heart-fill", "heart-line", "heart-pulse-fill", "heart-pulse-line", "lungs-fill", "lungs-line", "medicine-bottle-fill", "medicine-bottle-line", "mental-health-fill", "mental-health-line", "microscope-fill", "microscope-line", "psychotherapy-fill", "psychotherapy-line", "pulse-line", "stethoscope-fill", "stethoscope-line", "surgical-mask-fill", "surgical-mask-line", "syringe-fill", "syringe-line", "test-tube-fill", "test-tube-line", "thermometer-fill", "thermometer-line", "virus-fill", "virus-line"], "icon-style": "dsfr-health", "list-label": "DSFR Health"}
{"prefix": "fr-icon-", "version": "v1.13.0", "icons": ["capsule-fill", "capsule-line", "dislike-fill", "dislike-line", "dossier-fill", "dossier-line", "first-aid-kit-fill", "first-aid-kit-line", "hand-sanitizer-fill", "hand-sanitizer-line", "health-book-fill", "health-book-line", "heart-fill", "heart-line", "heart-pulse-fill", "heart-pulse-line", "lungs-fill", "lungs-line", "medicine-bottle-fill", "medicine-bottle-line", "mental-health-fill", "mental-health-line", "microscope-fill", "microscope-line", "psychotherapy-fill", "psychotherapy-line", "pulse-line", "stethoscope-fill", "stethoscope-line", "surgical-mask-fill", "surgical-mask-line", "syringe-fill", "syringe-line", "test-tube-fill", "test-tube-line", "thermometer-fill", "thermometer-line", "virus-fill", "virus-line"], "icon-style": "dsfr-health", "list-label": "DSFR Health"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"prefix": "fr-icon-", "version": "1.11.2", "icons": ["chrome-fill", "chrome-line", "dailymotion-fill", "dailymotion-line", "edge-fill", "edge-line", "facebook-circle-fill", "facebook-circle-line", "firefox-fill", "firefox-line", "github-fill", "github-line", "google-fill", "google-line", "ie-fill", "ie-line", "instagram-fill", "instagram-line", "linkedin-box-fill", "linkedin-box-line", "mastodon-fill", "mastodon-line", "npmjs-fill", "npmjs-line", "remixicon-fill", "remixicon-line", "safari-fill", "safari-line", "slack-fill", "slack-line", "snapchat-fill", "snapchat-line", "telegram-fill", "telegram-line", "threads-fill", "threads-line", "tiktok-fill", "tiktok-line", "twitch-fill", "twitch-line", "twitter-fill", "twitter-line", "twitter-x-fill", "twitter-x-line", "vimeo-fill", "vimeo-line", "vuejs-fill", "vuejs-line", "whatsapp-fill", "whatsapp-line", "youtube-fill", "youtube-line"], "icon-style": "dsfr-logo", "list-label": "DSFR Logo"}
{"prefix": "fr-icon-", "version": "v1.13.0", "icons": ["chrome-fill", "chrome-line", "dailymotion-fill", "dailymotion-line", "edge-fill", "edge-line", "facebook-circle-fill", "facebook-circle-line", "firefox-fill", "firefox-line", "github-fill", "github-line", "google-fill", "google-line", "ie-fill", "ie-line", "instagram-fill", "instagram-line", "linkedin-box-fill", "linkedin-box-line", "mastodon-fill", "mastodon-line", "npmjs-fill", "npmjs-line", "remixicon-fill", "remixicon-line", "safari-fill", "safari-line", "slack-fill", "slack-line", "snapchat-fill", "snapchat-line", "telegram-fill", "telegram-line", "threads-fill", "threads-line", "tiktok-fill", "tiktok-line", "twitch-fill", "twitch-line", "twitter-fill", "twitter-line", "twitter-x-fill", "twitter-x-line", "vimeo-fill", "vimeo-line", "vuejs-fill", "vuejs-line", "whatsapp-fill", "whatsapp-line", "youtube-fill", "youtube-line"], "icon-style": "dsfr-logo", "list-label": "DSFR Logo"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"prefix": "fr-icon-", "version": "1.11.2", "icons": ["anchor-fill", "anchor-line", "bike-fill", "bike-line", "bus-fill", "bus-line", "car-fill", "car-line", "caravan-fill", "caravan-line", "charging-pile-2-fill", "charging-pile-2-line", "compass-3-fill", "compass-3-line", "cup-fill", "cup-line", "earth-fill", "earth-line", "france-fill", "france-line", "gas-station-fill", "gas-station-line", "goblet-fill", "goblet-line", "map-pin-2-fill", "map-pin-2-line", "map-pin-user-fill", "map-pin-user-line", "motorbike-fill", "motorbike-line", "passport-fill", "passport-line", "restaurant-fill", "restaurant-line", "road-map-fill", "road-map-line", "sailboat-fill", "sailboat-line", "ship-2-fill", "ship-2-line", "signal-tower-fill", "signal-tower-line", "suitcase-2-fill", "suitcase-2-line", "taxi-fill", "taxi-line", "train-fill", "train-line"], "icon-style": "dsfr-map", "list-label": "DSFR Map"}
{"prefix": "fr-icon-", "version": "v1.13.0", "icons": ["anchor-fill", "anchor-line", "bike-fill", "bike-line", "bus-fill", "bus-line", "car-fill", "car-line", "caravan-fill", "caravan-line", "charging-pile-2-fill", "charging-pile-2-line", "compass-3-fill", "compass-3-line", "cup-fill", "cup-line", "earth-fill", "earth-line", "france-fill", "france-line", "gas-station-fill", "gas-station-line", "goblet-fill", "goblet-line", "map-pin-2-fill", "map-pin-2-line", "map-pin-user-fill", "map-pin-user-line", "motorbike-fill", "motorbike-line", "passport-fill", "passport-line", "restaurant-fill", "restaurant-line", "road-map-fill", "road-map-line", "sailboat-fill", "sailboat-line", "ship-2-fill", "ship-2-line", "signal-tower-fill", "signal-tower-line", "suitcase-2-fill", "suitcase-2-line", "taxi-fill", "taxi-line", "train-fill", "train-line"], "icon-style": "dsfr-map", "list-label": "DSFR Map"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"prefix": "fr-icon-", "version": "1.11.2", "icons": ["align-left", "camera-fill", "camera-line", "clapperboard-fill", "clapperboard-line", "equalizer-fill", "equalizer-line", "film-fill", "film-line", "fullscreen-line", "gallery-fill", "gallery-line", "headphone-fill", "headphone-line", "image-add-fill", "image-add-line", "image-edit-fill", "image-edit-line", "image-fill", "image-line", "live-fill", "live-line", "mic-fill", "mic-line", "music-2-fill", "music-2-line", "notification-3-fill", "notification-3-line", "pause-circle-fill", "pause-circle-line", "play-circle-fill", "play-circle-line", "stop-circle-fill", "stop-circle-line", "volume-down-fill", "volume-down-line", "volume-mute-fill", "volume-mute-line", "volume-up-fill", "volume-up-line"], "icon-style": "dsfr-media", "list-label": "DSFR Media"}
{"prefix": "fr-icon-", "version": "v1.13.0", "icons": ["align-left", "camera-fill", "camera-line", "clapperboard-fill", "clapperboard-line", "equalizer-fill", "equalizer-line", "film-fill", "film-line", "fullscreen-line", "gallery-fill", "gallery-line", "headphone-fill", "headphone-line", "image-add-fill", "image-add-line", "image-edit-fill", "image-edit-line", "image-fill", "image-line", "live-fill", "live-line", "mic-fill", "mic-line", "music-2-fill", "music-2-line", "notification-3-fill", "notification-3-line", "pause-circle-fill", "pause-circle-line", "play-circle-fill", "play-circle-line", "stop-circle-fill", "stop-circle-line", "volume-down-fill", "volume-down-line", "volume-mute-fill", "volume-mute-line", "volume-up-fill", "volume-up-line"], "icon-style": "dsfr-media", "list-label": "DSFR Media"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"prefix": "fr-icon-", "version": "1.11.2", "icons": ["accessibility-fill", "accessibility-line", "ear-off-fill", "ear-off-line", "leaf-fill", "leaf-line", "lightbulb-fill", "lightbulb-line", "mental-disabilities-fill", "mental-disabilities-line", "plant-fill", "plant-line", "recycle-fill", "recycle-line", "scales-3-fill", "scales-3-line", "seedling-fill", "seedling-line", "sign-language-fill", "sign-language-line", "umbrella-fill", "umbrella-line", "wheelchair-fill", "wheelchair-line"], "icon-style": "dsfr-others", "list-label": "DSFR Others"}
{"prefix": "fr-icon-", "version": "v1.13.0", "icons": ["accessibility-fill", "accessibility-line", "ear-off-fill", "ear-off-line", "leaf-fill", "leaf-line", "lightbulb-fill", "lightbulb-line", "mental-disabilities-fill", "mental-disabilities-line", "plant-fill", "plant-line", "recycle-fill", "recycle-line", "scales-3-fill", "scales-3-line", "seedling-fill", "seedling-line", "sign-language-fill", "sign-language-line", "umbrella-fill", "umbrella-line", "wheelchair-fill", "wheelchair-line"], "icon-style": "dsfr-others", "list-label": "DSFR Others"}
Loading

0 comments on commit 873d4ac

Please sign in to comment.