Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WET-boew to GCWeb -> Calendar -> Simple example pages and index.json-ld #2414

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions _data/wet-boew.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,40 @@
]
}
}
,{
"@context": {
"@version": 1.1,
"dct": "http://purl.org/dc/terms/",
"title": { "@id": "dct:title", "@container": "@language" },
"description": { "@id": "dct:description", "@container": "@language" },
"modified": "dct:modified"
},
"title": {
"en": "Calendar",
"fr": "Calendrier"
},
"description": {
"en": "Handles date-related functionalities like displaying calendars and picking dates.",
"fr": "Gère les fonctionnalités liées aux dates, telles que l'affichage de calendriers et la sélection de dates."
},
"modified": "2024-08-09",
"componentName": "calendar",
"status": "stable",
"pages": {
"examples": [
{
"title": "Calendar",
"language": "en",
"path": "./calendar-en.html"
},
{
"title": "Calendrier",
"language": "fr",
"path": "./calendar-fr.html"
}
]
}
}
,{
"@context": {
"@version": 1.1,
Expand Down
23 changes: 23 additions & 0 deletions wet-boew/calendar/calendar-en.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"title": "calendar.js",
"language": "en",
"description": "Handles date-related functionalities like displaying calendars and picking dates.",
"altLangPage": "calendar-fr.html",
"dateModified": "2024-08-01"
}

<ul class="list-inline">
<li><a class="btn btn-primary" href="https://github.com/wet-boew/GCWeb/issues/new?title=Calendar">Questions or comments?</a></li>
</ul>
<p>The <code>calendar.js</code> component in WET-BOEW provides date-related functionalities such as displaying calendars, enabling date selection, and supporting multiple date formats. The component is designed to handle date input efficiently across various browsers and use cases.</p>
<p>The component includes the following features:</p>
<ul class="list-inline">
<li><strong>.wb-clndr:</strong> Triggered to initiate an Ajax request based on the provided options. It is responsible for generating and navigating the calendar, allowing users to select dates and view different months and years.</li>
</ul>
<p>The <code>.wb-clndr</code> class is integral to the <code>cal-events</code> component, where it manages the display and navigation of the event calendar. When an event with this class is triggered, it handles updating the calendar interface, including switching months and years, and adjusting the displayed dates accordingly.</p>
<p>It is used in the following components:</p>

<ul class="list-inline">
<li><a href="https://wet-boew.github.io/gcweb-compiled-demos/wetboew-demos/cal-events/cal-events-en.html">Calendar of Events</a></li>
<li><a href="https://wet-boew.github.io/wet-boew/demos/datepicker/datepicker-en.html">Input type="date" polyfill (date picker)</a></li>
</ul>
21 changes: 21 additions & 0 deletions wet-boew/calendar/calendar-fr.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"title": "calendar.js",
"language": "fr",
"description": "Gère les fonctionnalités liées aux dates, telles que l'affichage de calendriers et la sélection de dates.",
"altLangPage": "calendar-en.html",
"dateModified": "2024-08-01"
}
<ul class="list-inline">
<li><a class="btn btn-primary" href="https://github.com/wet-boew/GCWeb/issues/new?title=Calendrier">Questions ou commentaires?</a></li>
</ul>
<p>Le composant <code>calendar.js</code> de WET-BOEW fournit des fonctionnalités liées aux dates, telles que l'affichage de calendriers, la sélection de dates et la prise en charge de plusieurs formats de dates. Le composant est conçu pour gérer efficacement les entrées de dates sur divers navigateurs et cas d'utilisation.</p>
<p>Le composant inclut les fonctionnalités suivantes :</p>
<ul class="list-inline">
<li><strong>.wb-clndr :</strong> Déclenché pour initier une requête Ajax en fonction des options fournies.</li>
</ul>
<p>Il est utilisé dans les composants suivants :</p>

<ul class="list-inline">
<li><a href="https://wet-boew.github.io/gcweb-compiled-demos/wetboew-demos/cal-events/cal-events-fr.html">Calendrier d'événements</a></li>
<li><a href="https://wet-boew.github.io/wet-boew/demos/datepicker/datepicker-fr.html">Correctif « input type="date" » (sélecteur de date)</a></li>
</ul>
34 changes: 34 additions & 0 deletions wet-boew/calendar/index.json-ld
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"@context": {
"@version": 1.1,
"dct": "http://purl.org/dc/terms/",
"title": { "@id": "dct:title", "@container": "@language" },
"description": { "@id": "dct:description", "@container": "@language" },
"modified": "dct:modified"
},
"title": {
"en": "Calendar",
"fr": "Calendrier"
},
"description": {
"en": "Handles date-related functionalities like displaying calendars and picking dates.",
"fr": "Gère les fonctionnalités liées aux dates, telles que l'affichage de calendriers et la sélection de dates."
},
"modified": "2024-08-09",
"componentName": "calendar",
"status": "stable",
"pages": {
"examples": [
{
"title": "Calendar",
"language": "en",
"path": "./calendar-en.html"
},
{
"title": "Calendrier",
"language": "fr",
"path": "./calendar-fr.html"
}
]
}
}
Loading