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
-3
View File
@@ -778,9 +778,6 @@ function main(storedSetting: SettingsState) {
browser.runtime.sendMessage({ type: 'setDefaultStorage' }) browser.runtime.sendMessage({ type: 'setDefaultStorage' })
} }
if (storedSetting.telemetry && storedSetting.onoff) {
}
const handleDisabled = () => { const handleDisabled = () => {
waitForElm('.code').then(AppendElementsToDisabledPage) waitForElm('.code').then(AppendElementsToDisabledPage)
} }
-1
View File
@@ -139,7 +139,6 @@ function GetNews(sendResponse: any, url: string) {
const DefaultValues: SettingsState = { const DefaultValues: SettingsState = {
onoff: true, onoff: true,
animatedbk: true, animatedbk: true,
telemetry: false,
bksliderinput: "50", bksliderinput: "50",
transparencyEffects: false, transparencyEffects: false,
lessonalert: true, lessonalert: true,
-1
View File
@@ -16,7 +16,6 @@ export const SettingsContextProvider: React.FC<{ children: ReactNode }> = ({ chi
const [settingsState, setSettingsState] = useState<SettingsState>({ const [settingsState, setSettingsState] = useState<SettingsState>({
notificationCollector: false, notificationCollector: false,
lessonAlerts: false, lessonAlerts: false,
telemetry: false,
animatedBackground: false, animatedBackground: false,
animatedBackgroundSpeed: "0", animatedBackgroundSpeed: "0",
customThemeColor: "rgba(219, 105, 105, 1)", customThemeColor: "rgba(219, 105, 105, 1)",
-2
View File
@@ -16,7 +16,6 @@ const useSettingsState = ({ settingsState, setSettingsState }: SettingsProps) =>
setSettingsState({ setSettingsState({
notificationCollector: result.notificationcollector, notificationCollector: result.notificationcollector,
lessonAlerts: result.lessonalert, lessonAlerts: result.lessonalert,
telemetry: result.telemetry,
animatedBackground: result.animatedbk, animatedBackground: result.animatedbk,
animatedBackgroundSpeed: result.bksliderinput, animatedBackgroundSpeed: result.bksliderinput,
customThemeColor: result.selectedColor, customThemeColor: result.selectedColor,
@@ -32,7 +31,6 @@ const useSettingsState = ({ settingsState, setSettingsState }: SettingsProps) =>
const keyToStateMap = useMemo(() => ({ const keyToStateMap = useMemo(() => ({
"notificationcollector": "notificationCollector", "notificationcollector": "notificationCollector",
"lessonalert": "lessonAlerts", "lessonalert": "lessonAlerts",
"telemetry": "telemetry",
"animatedbk": "animatedBackground", "animatedbk": "animatedBackground",
"bksliderinput": "animatedBackgroundSpeed", "bksliderinput": "animatedBackgroundSpeed",
"selectedColor": "customThemeColor", "selectedColor": "customThemeColor",
+1 -3
View File
@@ -11,10 +11,8 @@ import font from '../resources/fonts/IconFamily.woff'
import ThemeCreator from './pages/ThemeCreator'; import ThemeCreator from './pages/ThemeCreator';
import Store from './pages/Store'; 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 (DarkMode) document.documentElement.classList.add('dark');
if (telemetry === true) {};
}) })
const style = document.createElement("style"); const style = document.createElement("style");
@@ -46,11 +46,6 @@ const Settings: React.FC = () => {
description: "Customise the overall theme colour of SEQTA Learn.", description: "Customise the overall theme colour of SEQTA Learn.",
modifyElement: <PickerSwatch /> modifyElement: <PickerSwatch />
}, },
{
title: "Telemetry",
description: "Enables/disables error collecting.",
modifyElement: <Switch state={settingsState.telemetry} onChange={(isOn: boolean) => switchChange('telemetry', isOn)} />
},
{ {
title: "Edit Sidebar Layout", title: "Edit Sidebar Layout",
description: "Customise the sidebar layout.", description: "Customise the sidebar layout.",
-2
View File
@@ -2,7 +2,6 @@ export interface SettingsState {
notificationCollector: boolean; notificationCollector: boolean;
selectedTheme: string; selectedTheme: string;
lessonAlerts: boolean; lessonAlerts: boolean;
telemetry: boolean;
animatedBackground: boolean; animatedBackground: boolean;
animatedBackgroundSpeed: string; animatedBackgroundSpeed: string;
customThemeColor: string; customThemeColor: string;
@@ -54,7 +53,6 @@ export interface MainConfig {
}; };
menuorder: any[]; menuorder: any[];
notificationcollector: boolean; notificationcollector: boolean;
telemetry: boolean;
onoff: boolean; onoff: boolean;
selectedColor: string; selectedColor: string;
shortcuts: Shortcut[]; shortcuts: Shortcut[];
@@ -28,10 +28,6 @@ export default class StorageListener {
this.handleSelectedColorChange(changes.selectedColor.newValue); this.handleSelectedColorChange(changes.selectedColor.newValue);
break; break;
case 'telemetry':
this.handleTelemetryChange();
break;
case 'onoff': case 'onoff':
this.handleOnOffChange(); this.handleOnOffChange();
break; break;
@@ -99,10 +95,6 @@ export default class StorageListener {
} }
} }
handleTelemetryChange() {
browser.runtime.sendMessage({ type: 'reloadTabs' })
}
handleOnOffChange() { handleOnOffChange() {
browser.runtime.sendMessage({ type: 'reloadTabs' }) browser.runtime.sendMessage({ type: 'reloadTabs' })
} }
-1
View File
@@ -26,7 +26,6 @@ export interface SettingsState {
}; };
menuorder: any[]; menuorder: any[];
notificationcollector: boolean; notificationcollector: boolean;
telemetry: boolean;
onoff: boolean; onoff: boolean;
selectedColor: string; selectedColor: string;
originalSelectedColor: string; originalSelectedColor: string;