diff --git a/src/client/public/css/tailwind.css b/src/client/public/css/tailwind.css index 53953b7..b7e4843 100644 --- a/src/client/public/css/tailwind.css +++ b/src/client/public/css/tailwind.css @@ -1383,6 +1383,10 @@ video { resize: both; } +.grid-cols-1 { + grid-template-columns: repeat(1, minmax(0, 1fr)); +} + .flex-row { flex-direction: row; } @@ -1806,11 +1810,6 @@ video { padding-bottom: 0.375rem; } -.py-10 { - padding-top: 2.5rem; - padding-bottom: 2.5rem; -} - .py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; @@ -2813,11 +2812,6 @@ hs-accordion-toggle w-full text-start flex items-center gap-x-3.5 py-2 px-2.5 te background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1)); } -.hover\:bg-gray-200:hover { - --tw-bg-opacity: 1; - background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1)); -} - .hover\:bg-gray-300:hover { --tw-bg-opacity: 1; background-color: rgb(209 213 219 / var(--tw-bg-opacity, 1)); @@ -2858,11 +2852,6 @@ hs-accordion-toggle w-full text-start flex items-center gap-x-3.5 py-2 px-2.5 te background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1)); } -.focus\:bg-gray-200:focus { - --tw-bg-opacity: 1; - background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1)); -} - .focus\:bg-gray-50:focus { --tw-bg-opacity: 1; background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1)); @@ -3449,11 +3438,6 @@ hs-accordion-toggle w-full text-start flex items-center gap-x-3.5 py-2 px-2.5 te padding-right: 2rem; } - .lg\:py-14 { - padding-top: 3.5rem; - padding-bottom: 3.5rem; - } - .lg\:ps-64 { padding-inline-start: 16rem; } @@ -3656,11 +3640,6 @@ hs-accordion-toggle w-full text-start flex items-center gap-x-3.5 py-2 px-2.5 te background-color: rgb(191 219 254 / var(--tw-bg-opacity, 1)); } -.dark\:hover\:bg-neutral-600:hover:where(.dark, .dark *) { - --tw-bg-opacity: 1; - background-color: rgb(82 82 82 / var(--tw-bg-opacity, 1)); -} - .dark\:hover\:bg-neutral-700:hover:where(.dark, .dark *) { --tw-bg-opacity: 1; background-color: rgb(64 64 64 / var(--tw-bg-opacity, 1)); @@ -3696,11 +3675,6 @@ hs-accordion-toggle w-full text-start flex items-center gap-x-3.5 py-2 px-2.5 te color: rgb(115 115 115 / var(--tw-text-opacity, 1)); } -.dark\:focus\:bg-neutral-600:focus:where(.dark, .dark *) { - --tw-bg-opacity: 1; - background-color: rgb(82 82 82 / var(--tw-bg-opacity, 1)); -} - .dark\:focus\:bg-neutral-700:focus:where(.dark, .dark *) { --tw-bg-opacity: 1; background-color: rgb(64 64 64 / var(--tw-bg-opacity, 1)); diff --git a/src/client/public/js/guild/filters.js b/src/client/public/js/guild/filters.js new file mode 100644 index 0000000..267c268 --- /dev/null +++ b/src/client/public/js/guild/filters.js @@ -0,0 +1,266 @@ + +const formatTimestamp = timestamp => { + let d; + if (typeof timestamp === "string") { + d = new Date(timestamp.replace(" ", "T")); + } + else { + d = new Date(timestamp); + } + + const now = new Date(); + + // If younger than a year, show time + // otherwise show the year + return now - d < 31536000000 + ? `${d.getDate()} ${d.toLocaleString("en-GB", { month: "short" })}, ${d.getHours().toString().padStart(2, "0")}:${d.getMinutes().toString().padStart(2, "0")}` + : `${d.getDate()} ${d.toLocaleString("en-GB", { month: "short" })} ${d.getFullYear()}`; +} + +const emptyTableHtml = ` +
+ Create a filter and it will appear here. +
+ ++ + | + +
+
+
+ Name
+
+
+
+ |
+
+
+
+
+ Match
+
+
+
+ |
+
+
+
+
+ Algorithm
+
+
+
+ |
+
+
+
+
+ Case-Sensitive
+
+
+
+ |
+
+
+
+
+ Type
+
+
+
+ |
+
+
+
+
+ Created at
+
+
+
+ |
+
---|
+ Showing + + to + + of + +
+