Skip to content

Commit

Permalink
Add an option for jExam like styling in Selma (#149)
Browse files Browse the repository at this point in the history
* prüfunge overview

* prüfungsergebnisse

* diagram

* fix diagram layout

* reorganise code

* Add features to the courseresults page as well

* Use document_idle instead of document_start

* Add href to grade overview

* Make everythin asynchronous to prevent lag

* Reorganise 'my exams' table

* Remove useless timespans from 'my exams' table

* Add column title 'Notenverteilung'

* Map grade placeholders to emojis and add tooltips

* Add try counter to course results

* Add setting to toggle the Theme

* Make tests pass

* Change user facing setting name

* Change internal setting name

* Add button to disable table

* Reload page after disable button is clicked to apply changes

* Make button a toggle instead of having only a disable button
  • Loading branch information
A-K-O-R-A authored Sep 30, 2024
1 parent 2cdb8ea commit 2a55bdc
Show file tree
Hide file tree
Showing 11 changed files with 810 additions and 50 deletions.
5 changes: 4 additions & 1 deletion src/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ chrome.runtime.onInstalled.addListener(async (details) => {
theme: 'system',
studiengang: 'general',
hisqisPimpedTable: true,
bannersShown: ['mv3UpdateNotice']
bannersShown: ['mv3UpdateNotice'],
improveSelma: true,
})
await openSettingsPage('first_visit')
break
Expand All @@ -36,6 +37,7 @@ chrome.runtime.onInstalled.addListener(async (details) => {
'theme',
'studiengang',
'hisqisPimpedTable',
'improveSelma',
'savedClickCounter',
'saved_click_counter', // legacy
'Rocket', // legacy
Expand All @@ -57,6 +59,7 @@ chrome.runtime.onInstalled.addListener(async (details) => {
if (typeof currentSettings.dashboardDisplay === 'undefined') updateObj.dashboardDisplay = 'favoriten'
if (typeof currentSettings.fwdEnabled === 'undefined') updateObj.fwdEnabled = true
if (typeof currentSettings.hisqisPimpedTable === 'undefined') updateObj.hisqisPimpedTable = true
if (typeof currentSettings.improveSelma === 'undefined') updateObj.improveSelma = true
if (typeof currentSettings.theme === 'undefined') updateObj.theme = 'system'
if (typeof currentSettings.studiengang === 'undefined') updateObj.studiengang = 'general'
if (typeof currentSettings.selectedRocketIcon === 'undefined') updateObj.selectedRocketIcon = JSON.stringify(rockets.default)
Expand Down
Loading

0 comments on commit 2a55bdc

Please sign in to comment.