diff --git a/cms/src/lib/components/Calendar/Calendar.svelte b/cms/src/lib/components/Calendar/Calendar.svelte deleted file mode 100644 index c4dc5e3..0000000 --- a/cms/src/lib/components/Calendar/Calendar.svelte +++ /dev/null @@ -1,131 +0,0 @@ - - -
- -

{months[month]} - {year+ (buddhist?543:0)}

- -
- -
- {#each labels as txt, idx (txt)} - - dispatch('headerClick',txt)} >{ labels[(idx + offset) % 7] } - {/each} - - {#each { length:6 } as w,idxw (idxw)} - {#if current[idxw]} - {#each { length:7 } as d,idxd (idxd)} - {#if current[idxw][idxd] != 0} - - { current[idxw][idxd] } - - {:else if (idxw < 1)} - { prev[prev.length - 1][idxd] } - {:else} - { next[0][idxd] } - {/if} - {/each} - {/if} - {/each} -
- - \ No newline at end of file diff --git a/cms/src/lib/components/Calendar/CalendarArrow.svelte b/cms/src/lib/components/Calendar/CalendarArrow.svelte deleted file mode 100644 index c86cbea..0000000 --- a/cms/src/lib/components/Calendar/CalendarArrow.svelte +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/cms/src/lib/components/Calendar/calendarize.ts b/cms/src/lib/components/Calendar/calendarize.ts deleted file mode 100644 index 352f63a..0000000 --- a/cms/src/lib/components/Calendar/calendarize.ts +++ /dev/null @@ -1,22 +0,0 @@ -//Modify by Oom -//code from https://www.npmjs.com/package/calendarize -export default function (target?: Date|string, offset=0) { - let i=0, j=0, week = Array(7) - const out=[], date = new Date(target || new Date); - const year = date.getFullYear(), month = date.getMonth(); - // day index (of week) for 1st of month - let first = new Date(year, month, 1 - (offset | 0)).getDay(); - - // how many days there are in this month - const days = new Date(year, month+1, 0).getDate(); - - while (i < days) { - for (j=0, week=Array(7); j < 7;) { - while (j < first) week[j++] = 0; - week[j++] = ++i > days ? 0 : i; - first = 0; - } - out.push(week); - } - return out; -} \ No newline at end of file diff --git a/cms/src/lib/components/Calendar2/Calendar.svelte b/cms/src/lib/components/Calendar2/Calendar.svelte deleted file mode 100644 index 2b60f77..0000000 --- a/cms/src/lib/components/Calendar2/Calendar.svelte +++ /dev/null @@ -1,191 +0,0 @@ - - -
-
-

- - - {months[month]} {year+ (buddhist?543:0)} - - -

- {eventText} -
- - dayClick(e.detail)} - on:itemClick={(e)=>itemClick(e.detail)} - on:headerClick={(e)=>headerClick(e.detail)} - /> -
- - diff --git a/cms/src/lib/components/Calendar2/CalendarContent.svelte b/cms/src/lib/components/Calendar2/CalendarContent.svelte deleted file mode 100644 index 1fe55ad..0000000 --- a/cms/src/lib/components/Calendar2/CalendarContent.svelte +++ /dev/null @@ -1,222 +0,0 @@ -
- {#each headers as header} - - dispatch('headerClick',header)}>{header} - {/each} - - {#each days as day} - {#if day.enabled} - - dispatch('dayClick',day)}>{day.name} - {:else} - - dispatch('dayClick',day)}>{day.name} - {/if} - {/each} - - {#each items as item} - -
dispatch('itemClick',item)} - class="task {item.className}" - style="grid-column: {item.startCol} / span {item.len}; - grid-row: {item.startRow}; - align-self: {item.isBottom?'end':'center'};" - > - {item.title} - {#if item.detailHeader} -
-

{item.detailHeader}

-

{item.detailContent}

-
- {/if} -
- {/each} -
- - - - - - diff --git a/cms/static/favicon.old.ico b/cms/static/favicon.old.ico deleted file mode 100644 index 96b4291..0000000 Binary files a/cms/static/favicon.old.ico and /dev/null differ diff --git a/cms/static/favicon.png.bak b/cms/static/favicon.png.bak deleted file mode 100644 index 825b9e6..0000000 Binary files a/cms/static/favicon.png.bak and /dev/null differ