Skip to content

Commit

Permalink
Clean up: moving deprecated components to méli-mélo
Browse files Browse the repository at this point in the history
  • Loading branch information
Garneauma committed Dec 5, 2024
1 parent 7ba262d commit 1e02b2f
Show file tree
Hide file tree
Showing 63 changed files with 1,864 additions and 2,037 deletions.
6 changes: 3 additions & 3 deletions _data/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -529,13 +529,13 @@
},
"title": {
"en": "Text-level Modifiers",
"fr": "Modificateurs de niveau de texte"
"fr": "Modificateurs de niveau texte"
},
"description": {
"en": "Text-level modifiers for styling and formatting",
"fr": "Modificateurs de niveau de texte pour le style et le formatage"
"fr": "Modificateurs de niveau texte pour le style et le formatage"
},
"modified": "2024-03-06",
"modified": "2024-11-25",
"componentName": "text-level-modifiers",
"status": "stable",
"pages": {
Expand Down
26 changes: 15 additions & 11 deletions _data/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@
"en": "Follow us",
"fr": "Suivez-nous"
},
"status": "demoted",
"status": "deprecated",
"description": {
"en": "The social media channels pattern provides links to official Government of Canada (GC) social media accounts.",
"fr": "La configuration de conception des chaînes de médias sociaux fournit des liens vers les comptes de médias sociaux officiels du gouvernement du Canada (GC)."
Expand All @@ -899,6 +899,10 @@
"_:implement_follow"
],
"history": [
{
"en": "September 2024 - This variant is now officially deprecated.",
"fr": "Septembre 2024 - Cette variante est maintenant officiellement obsolète."
},
{
"en": "April 2017 - Initial implementation of the variation.",
"fr": "Avril 2017 - Implémentation initiale de la variante."
Expand Down Expand Up @@ -1005,7 +1009,7 @@
"New SVG image for X logo (formerly known as Twitter)."
],
"fixes": [
"Demoted: SVG image for Twitter to be deprecated."
"Deprecated: SVG image for Twitter to be deprecated."
],
"assets": [
{
Expand Down Expand Up @@ -1106,7 +1110,7 @@
{
"@id": "_:cs_follow",
"name": "Follow us",
"status": "demoted",
"status": "deprecated",
"deprecatedOn": "2024-02-02",
"baseOnIteration": "_:iteration_follow_1",
"detectableBy": ".followus",
Expand Down Expand Up @@ -2331,42 +2335,42 @@
"en": "Transforms a simple form into a conversation like experience used as a wizard.",
"fr": "Conversation suggestive"
},
"modified": "2020-08-18",
"modified": "2024-12-05",
"componentName": "wb-chtwzrd",
"status": "provisional",
"status": "deprecated",
"pages": {
"examples": [
{
"title": "Chat wizard",
"language": "en",
"path": "chatwizard-en.html"
"path": "../../méli-mélo/deprecated/chatwizard/chatwizard-en.html"
},
{
"title": "Conversation suggestive",
"language": "fr",
"path": "chatwizard-fr.html"
"path": "../../méli-mélo/deprecated/chatwizard/chatwizard-fr.html"
},
{
"title": "with JSON setting",
"language": "en",
"path": "chatwizard-json-en.html"
"path": "../../méli-mélo/deprecated/chatwizard/chatwizard-json-en.html"
},
{
"title": "avec une configuration JSON",
"language": "fr",
"path": "chatwizard-json-fr.html"
"path": "../../méli-mélo/deprecated/chatwizard/chatwizard-json-fr.html"
}
],
"docs": [
{
"title": "Chat wizard",
"language": "en",
"path": "docs.html"
"path": "../../méli-mélo/deprecated/chatwizard/docs.html"
},
{
"title": "Chat wizard (en anglais seulement)",
"language": "fr",
"path": "docs.html"
"path": "../../méli-mélo/deprecated/chatwizard/docs.html"
}
],
"related": [
Expand Down
16 changes: 8 additions & 8 deletions _data/méli-mélo.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@
{
"nom": "2025-04-nahanni",
"libs": [
"2024-10-datatable-utilities",
"2024-10-datatable-utilities",
"2024-02-charts",
"2024-04-stepsquiz",
"2021-05-conjunction",
"2021-05-steps",
"deprecated"
"2024-04-stepsquiz",
"2021-05-conjunction",
"2021-05-steps",
"deprecated"
]
},
{
"nom": "2025-12-mille-iles",
"libs": [
"2024-10-datatable-utilities",
"2021-05-conjunction",
"2021-05-steps",
"2021-05-conjunction",
"2021-05-steps",
"deprecated"
]
},
Expand Down Expand Up @@ -98,7 +98,7 @@
"nom": "2024-10-datatable-utilities",
"mainpage": "index-en.html"
},
{
{
"nom": "deprecated",
"mainpage": "deprecated.html"
}
Expand Down
20 changes: 6 additions & 14 deletions _data/sites.json
Original file line number Diff line number Diff line change
Expand Up @@ -2736,12 +2736,12 @@
"fr": { "href": "page-details-pft-fr.html", "text": "Détails de la page avec Outil de rétroaction sur la page" }
},
{
"en": { "href": "demoted/page-details-v3-en.html", "text": "Demoted - Page details version 3.0" },
"fr": { "href": "demoted/page-details-v3-fr.html", "text": "Rétrogradé - Détails de la page version 3.0" }
"en": { "href": "deprecated/page-details-v3-en.html", "text": "Deprecated as of GCWeb v16.0.0 - Page details version 3.0" },
"fr": { "href": "deprecated/page-details-v3-fr.html", "text": "Obsolète à partir de GCWeb v16.0.0 - Détails de la page version 3.0" }
},
{
"en": { "href": "demoted/page-details-v3.1-en.html", "text": "Demoted - Page details version 3.1" },
"fr": { "href": "demoted/page-details-v3.1-fr.html", "text": "Rétrogradé - Détails de la page version 3.1" }
"en": { "href": "deprecated/page-details-v3.1-en.html", "text": "Deprecated as of GCWeb v16.0.0 - Page details version 3.1" },
"fr": { "href": "deprecated/page-details-v3.1-fr.html", "text": "Obsolète à partir de GCWeb v16.0.0 - Détails de la page version 3.1" }
}
],
"implementation": [
Expand Down Expand Up @@ -2795,14 +2795,6 @@
"Pour plus d'informations sur le composant de l'Outil de rétroaction sur la page, veuillez visiter la page <a href=\"../sites/feedback/page-feedback-docs-fr.html\">Zone de rétroaction sur la page</a>."
]
},
"notes": {
"en": [
"Although the component has been updated to version 3.2, versions 2.0, 3.0 and 3.1 are still supported. However, for version 2.0, the page content and the &lt;footer&gt; have to be located inside an &lt;article&gt; tag."
],
"fr": [
"Bien que le composant ait été mis à jour vers la version 3.2, les versions 2.0, 3.0 et 3.1 sont toujours prises en charge. Cependant, pour la version 2.0, le contenu de la page et la balise &lt;footer&gt; doivent être situés à l'intérieur d'une balise &lt;article&gt;."
]
},
"sample": {
"en": [
{
Expand Down Expand Up @@ -3192,7 +3184,7 @@
{
"@id": "_:cs_pd_4",
"name": "Page details - version 3.1",
"status": "stable",
"status": "deprecated",
"baseOnIteration": "_:iteration_pd_4",
"detectableBy": "section.pagedetails",
"layout": [
Expand Down Expand Up @@ -3230,7 +3222,7 @@
{
"@id": "_:cs_pd_3",
"name": "Page details - Compatible with PFT + Accessiblity fix (version 3.0)",
"status": "stable",
"status": "deprecated",
"baseOnIteration": "_:iteration_pd_3",
"detectableBy": "section.pagedetails",
"layout": [
Expand Down
40 changes: 26 additions & 14 deletions _data/templates.json
Original file line number Diff line number Diff line change
Expand Up @@ -1225,26 +1225,38 @@
"componentName": "thematic",
"status": "provisional",
"pages": {
"docs": [
{
"title": "Pink Day",
"language": "en",
"path": "../../méli-mélo/deprecated/pinkday/docs-en.html"
},
{
"title": "Journée rose",
"language": "fr",
"path": "../../méli-mélo/deprecated/pinkday/docs-fr.html"
}
],
"examples": [
{
"title": "Pink Day",
"language": "en",
"path": "pink-day-en.html"
"path": "../../méli-mélo/deprecated/pinkday/pink-day-en.html"
},
{
"title": "Journée rose",
"language": "fr",
"path": "pink-day-fr.html"
"path": "../../méli-mélo/deprecated/pinkday/pink-day-fr.html"
},
{
"title": "Pink Day - Home",
"language": "en",
"path": "pink-day-home-en.html"
"path": "../../méli-mélo/deprecated/pinkday/pink-day-home-en.html"
},
{
"title": "Journée rose - Accueil",
"language": "fr",
"path": "pink-day-home-fr.html"
"path": "../../méli-mélo/deprecated/pinkday/pink-day-home-fr.html"
},
{
"title": "Dark theme",
Expand Down Expand Up @@ -1312,22 +1324,22 @@
"path": "topic-stackedheader-fr.html"
},
{
"title": "Theme/Topic page - Demoted",
"title": "Theme/Topic page - Deprecated",
"language": "en",
"path": "demoted/theme-topic-en.html"
"path": "deprecated/theme-topic-en.html"
},
{
"title": "Page de sujet/thème - Rétrogradée",
"title": "Page de sujet/thème - Obsolète",
"language": "fr",
"path": "demoted/theme-topic-fr.html"
"path": "deprecated/theme-topic-fr.html"
},
{
"title": "Lowest topic (with secondary navigation) - Deprecated",
"language": "en",
"path": "../lowest-topic/index-en.html"
},
{
"title": "Sujet de plus bas niveau (avec une navigation secondaire) - Dépréciée",
"title": "Sujet de plus bas niveau (avec une navigation secondaire) - Obsolète",
"language": "fr",
"path": "../lowest-topic/index-fr.html"
}
Expand Down Expand Up @@ -1570,14 +1582,14 @@
"example": {
"en": [
{
"href": "demoted/theme-topic-en.html",
"text": "Theme - Topic page version 2 (beta)"
"href": "deprecated/theme-topic-en.html",
"text": "Deprecated as of GCWeb v16.0.0 - Theme - Topic page version 2 (beta)"
}
],
"fr": [
{
"href": "demoted/theme-topic-fr.html",
"text": "Page the thème ou de sujet version 2 (bêta)"
"href": "deprecated/theme-topic-fr.html",
"text": "Obsolète à partir de GCWeb v16.0.0 - Page the thème ou de sujet version 2 (bêta)"
}
]
}
Expand All @@ -1590,7 +1602,7 @@
"example": {
"en": [
{
"href": "demoted/topic-en.html",
"href": "deprecated/topic-en.html",
"text": "Topic page version 1"
}
],
Expand Down
27 changes: 21 additions & 6 deletions components/_provisional.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@

.provisional {

/*
*
*
* START: the following code has been deprecated as of version 16.0.0
*
*
*/
/* ------------
* Background color
*
Expand All @@ -30,7 +37,7 @@
*
*/
.bg-img-hdng {
background-image: url("../assets/x-blue-line.png");
background-image: url("https://www.canada.ca/content/dam/servcan/x-blue-line.png");
background-position: right bottom;
background-repeat: no-repeat;
min-height: 60px;
Expand Down Expand Up @@ -96,6 +103,19 @@
}
}


//This color will eventually be replaced by the new colors from the alert revamp PR.
&.icon-warning-light, .icon-warning-light {
color: #DF7200;
}
/*
*
*
* END: the above code has been deprecated as of version 16.0.0
*
*
*/

/* Dark theme
*/
&.dark-theme {
Expand Down Expand Up @@ -149,11 +169,6 @@
}
}

//This color will eventually be replaced by the new colors from the alert revamp PR.
&.icon-warning-light, .icon-warning-light {
color: #DF7200;
}

/* Theme/topic decorative image */
&.gc-topic-bg div {
background: no-repeat;
Expand Down
Loading

0 comments on commit 1e02b2f

Please sign in to comment.