From c20adaa865aeead1cc6613914787e768b5acaeb8 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 30 Mar 2025 23:36:55 +0200 Subject: [PATCH] feat(FE): show components and helper --- .../partials/fields/show/DaysCheckbox.vue | 26 ++++ .../partials/fields/show/ShowStartEndTime.vue | 133 ++++++++++++++++++ .../partials/show/ShowScheduleForm.vue | 70 +++++++++ resources/js/helpers/DateFormatter.ts | 3 + 4 files changed, 232 insertions(+) create mode 100644 resources/js/components/content/partials/fields/show/DaysCheckbox.vue create mode 100644 resources/js/components/content/partials/fields/show/ShowStartEndTime.vue create mode 100644 resources/js/components/content/partials/show/ShowScheduleForm.vue create mode 100644 resources/js/helpers/DateFormatter.ts diff --git a/resources/js/components/content/partials/fields/show/DaysCheckbox.vue b/resources/js/components/content/partials/fields/show/DaysCheckbox.vue new file mode 100644 index 0000000..380faf5 --- /dev/null +++ b/resources/js/components/content/partials/fields/show/DaysCheckbox.vue @@ -0,0 +1,26 @@ + + + + + \ No newline at end of file diff --git a/resources/js/components/content/partials/fields/show/ShowStartEndTime.vue b/resources/js/components/content/partials/fields/show/ShowStartEndTime.vue new file mode 100644 index 0000000..bb041ba --- /dev/null +++ b/resources/js/components/content/partials/fields/show/ShowStartEndTime.vue @@ -0,0 +1,133 @@ + + + + + \ No newline at end of file diff --git a/resources/js/components/content/partials/show/ShowScheduleForm.vue b/resources/js/components/content/partials/show/ShowScheduleForm.vue new file mode 100644 index 0000000..693e9a0 --- /dev/null +++ b/resources/js/components/content/partials/show/ShowScheduleForm.vue @@ -0,0 +1,70 @@ + + + + + \ No newline at end of file diff --git a/resources/js/helpers/DateFormatter.ts b/resources/js/helpers/DateFormatter.ts new file mode 100644 index 0000000..dfb75f5 --- /dev/null +++ b/resources/js/helpers/DateFormatter.ts @@ -0,0 +1,3 @@ +export function dateFormatter(date: Date = new Date()): string { + return `${date.getFullYear()}-${(date.getMonth() + 1).toString().padStart(2, '0')}-${date.getDate().toString().padStart(2, '0')}`; +} \ No newline at end of file