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' })
}
if (storedSetting.telemetry && storedSetting.onoff) {
}
const handleDisabled = () => {
waitForElm('.code').then(AppendElementsToDisabledPage)
}
-1
View File
@@ -139,7 +139,6 @@ function GetNews(sendResponse: any, url: string) {
const DefaultValues: SettingsState = {
onoff: true,
animatedbk: true,
telemetry: false,
bksliderinput: "50",
transparencyEffects: false,
lessonalert: true,
-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[];
@@ -28,10 +28,6 @@ export default class StorageListener {
this.handleSelectedColorChange(changes.selectedColor.newValue);
break;
case 'telemetry':
this.handleTelemetryChange();
break;
case 'onoff':
this.handleOnOffChange();
break;
@@ -99,10 +95,6 @@ export default class StorageListener {
}
}
handleTelemetryChange() {
browser.runtime.sendMessage({ type: 'reloadTabs' })
}
handleOnOffChange() {
browser.runtime.sendMessage({ type: 'reloadTabs' })
}
-1
View File
@@ -26,7 +26,6 @@ export interface SettingsState {
};
menuorder: any[];
notificationcollector: boolean;
telemetry: boolean;
onoff: boolean;
selectedColor: string;
originalSelectedColor: string;