remove telemetry completely

This commit is contained in:
SethBurkart123
2024-05-24 16:58:33 +10:00
parent 8cbf60fef5
commit 7a5f91a8c1
9 changed files with 1 additions and 26 deletions
-1
View File
@@ -16,7 +16,6 @@ export const SettingsContextProvider: React.FC<{ children: ReactNode }> = ({ chi
const [settingsState, setSettingsState] = useState<SettingsState>({
notificationCollector: false,
lessonAlerts: false,
telemetry: false,
animatedBackground: false,
animatedBackgroundSpeed: "0",
customThemeColor: "rgba(219, 105, 105, 1)",
-2
View File
@@ -16,7 +16,6 @@ const useSettingsState = ({ settingsState, setSettingsState }: SettingsProps) =>
setSettingsState({
notificationCollector: result.notificationcollector,
lessonAlerts: result.lessonalert,
telemetry: result.telemetry,
animatedBackground: result.animatedbk,
animatedBackgroundSpeed: result.bksliderinput,
customThemeColor: result.selectedColor,
@@ -32,7 +31,6 @@ const useSettingsState = ({ settingsState, setSettingsState }: SettingsProps) =>
const keyToStateMap = useMemo(() => ({
"notificationcollector": "notificationCollector",
"lessonalert": "lessonAlerts",
"telemetry": "telemetry",
"animatedbk": "animatedBackground",
"bksliderinput": "animatedBackgroundSpeed",
"selectedColor": "customThemeColor",
+1 -3
View File
@@ -11,10 +11,8 @@ import font from '../resources/fonts/IconFamily.woff'
import ThemeCreator from './pages/ThemeCreator';
import Store from './pages/Store';
browser.storage.local.get().then(({ telemetry, DarkMode }) => {
browser.storage.local.get().then(({ DarkMode }) => {
if (DarkMode) document.documentElement.classList.add('dark');
if (telemetry === true) {};
})
const style = document.createElement("style");
@@ -46,11 +46,6 @@ const Settings: React.FC = () => {
description: "Customise the overall theme colour of SEQTA Learn.",
modifyElement: <PickerSwatch />
},
{
title: "Telemetry",
description: "Enables/disables error collecting.",
modifyElement: <Switch state={settingsState.telemetry} onChange={(isOn: boolean) => switchChange('telemetry', isOn)} />
},
{
title: "Edit Sidebar Layout",
description: "Customise the sidebar layout.",
-2
View File
@@ -2,7 +2,6 @@ export interface SettingsState {
notificationCollector: boolean;
selectedTheme: string;
lessonAlerts: boolean;
telemetry: boolean;
animatedBackground: boolean;
animatedBackgroundSpeed: string;
customThemeColor: string;
@@ -54,7 +53,6 @@ export interface MainConfig {
};
menuorder: any[];
notificationcollector: boolean;
telemetry: boolean;
onoff: boolean;
selectedColor: string;
shortcuts: Shortcut[];