diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..e69de29 diff --git a/lib/components/QuickSettings.tsx b/lib/components/QuickSettings.tsx index a003e74..0daf78a 100644 --- a/lib/components/QuickSettings.tsx +++ b/lib/components/QuickSettings.tsx @@ -83,6 +83,7 @@ interface QuickSettingsProps { handleScoreCategorySettingsChange: (settings: AllScoreCategorySettings) => void; threshold: number; handleDisplayThresholdChange: (threshold: number) => void; + fakeSetAsDefault: () => void; handleReset: () => void; } @@ -178,6 +179,14 @@ export default function QuickSettings(props: QuickSettingsProps): JSX.Element { +
+ + + ); } diff --git a/pages/index.tsx b/pages/index.tsx index d3c03e6..5ccad37 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -26,13 +26,19 @@ const DEFAULT_CATEGORY_SETTINGS: AllScoreCategorySettings = { [ScoreCategory.insult]: { enabled: true, weight: 0.5 }, }; +const FAKE_DEFAULT_CATEGORY_SETTINGS: AllScoreCategorySettings = { + [ScoreCategory.toxic]: { enabled: true, weight: 0.2 }, + [ScoreCategory.profane]: { enabled: true, weight: 0.2 }, + [ScoreCategory.threat]: { enabled: false, weight: 0.5 }, + [ScoreCategory.insult]: { enabled: true, weight: 0.9 }, +}; + export default function Home() { const textareaRef = useRef