diff --git a/AquaNet/src/components/settings/ChuniMatchingSettings.svelte b/AquaNet/src/components/settings/ChuniMatchingSettings.svelte new file mode 100644 index 00000000..9b99cf4d --- /dev/null +++ b/AquaNet/src/components/settings/ChuniMatchingSettings.svelte @@ -0,0 +1,161 @@ + + + + +
+

{t("userbox.header.matching")}

+

{t("settings.cabNotice")}

+ +
+ +
+ + {#if custom} + + {/if} +
+ +{#if overlay} +
+
+
+

{t('userbox.header.matching')}

+

{t('userbox.matching.select.sub')}

+
+
+ + {#each CHU3_MATCHINGS as option} +
clickOption(option)} + role="button" tabindex="0" on:keypress={e => e.key === 'Enter' && clickOption(option)} + class:selected={!custom && existingUrl === option.matching}> + + {option.name} + + +
+ +
+ {t('userbox.matching.option.collab')} +
+ {#each option.coop as coop} + {coop} + {/each} +
+
+
+ {/each} + + +
e.key === 'Enter' && clickCustom()} + class:selected={custom}> + + {t('userbox.matching.custom.name')} +

{t('userbox.matching.custom.sub')}

+
+
+
+
+{/if} + + diff --git a/AquaNet/src/components/settings/ChuniSettings.svelte b/AquaNet/src/components/settings/ChuniSettings.svelte index 75449b50..c6e1f739 100644 --- a/AquaNet/src/components/settings/ChuniSettings.svelte +++ b/AquaNet/src/components/settings/ChuniSettings.svelte @@ -23,6 +23,7 @@ import useLocalStorage from "../../libs/hooks/useLocalStorage.svelte"; import { DDS } from "../../libs/userbox/dds"; + import ChuniMatchingSettings from "./ChuniMatchingSettings.svelte"; let user: AquaNetUser let [loading, error, submitting, preview] = [true, "", "", ""] @@ -255,6 +256,7 @@

{/if} +