Skip to content

Commit

Permalink
3.11.4
Browse files Browse the repository at this point in the history
  • Loading branch information
QkeleQ10 committed Jun 18, 2024
1 parent a8e557f commit 1ba801c
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 8 deletions.
2 changes: 1 addition & 1 deletion manifest-firefox.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"manifest_version": 3,
"name": "__MSG_appName__",
"description": "__MSG_appDesc__",
"version": "3.11.3",
"version": "3.11.4",
"default_locale": "nl",
"icons": {
"16": "icons/[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"manifest_version": 3,
"name": "__MSG_appName__",
"description": "__MSG_appDesc__",
"version": "3.11.3",
"version": "3.11.4",
"default_locale": "nl",
"icons": {
"16": "icons/[email protected]",
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion popup/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="./favicon.ico">
<title>Study Tools-configuratiepaneel</title>
<script type="module" crossorigin src="./assets/index-Bcqs9ZUh.js"></script>
<script type="module" crossorigin src="./assets/index-CFAfwAOA.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-BmeHimE9.css">
</head>

Expand Down
9 changes: 9 additions & 0 deletions popup/dist/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,15 @@ export default [
{ settingId: 'beta-options', operator: 'equal', value: true }
],
},
{
id: "custom-css",
title: "Aangepaste CSS",
type: "TextInput",
default: '',
conditions: [
{ settingId: 'beta-options', operator: 'equal', value: true }
],
},
// TODO: setting to disable color adaptation for dark theme
]
},
Expand Down
9 changes: 9 additions & 0 deletions popup/public/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,15 @@ export default [
{ settingId: 'beta-options', operator: 'equal', value: true }
],
},
{
id: "custom-css",
title: "Aangepaste CSS",
type: "TextInput",
default: '',
conditions: [
{ settingId: 'beta-options', operator: 'equal', value: true }
],
},
// TODO: setting to disable color adaptation for dark theme
]
},
Expand Down
8 changes: 4 additions & 4 deletions src/magister/scripts/gamification.js
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,8 @@ async function themeContest() {
})
textarea.addEventListener('paste', (event) => {
try {
let obj = JSON.parse(atob((event.clipboardData || window.clipboardData).getData("text")) || JSON.stringify((event.clipboardData || window.clipboardData).getData("text")) || (event.clipboardData || window.clipboardData).getData("text"))
if (obj.title !== 'Magister Theme Contest!') {
let obj = JSON.parse((event.clipboardData || window.clipboardData).getData("text"))
if (obj.title !== 'Magister Theme Contest') {
throw new Error('invalid')
}
setTimeout(() => textarea.value = JSON.stringify(obj, null, 4), 0)
Expand All @@ -456,8 +456,8 @@ async function themeContest() {

} else {
user = await MagisterApi.accountInfo(true)
navigator.clipboard.writeText(btoa(`Magister Theme Contest!/${user.name.firstname} ${user.name.lastname}/${window.location.hostname.split('.')[0]}/${JSON.stringify(pick(syncedStorage, 'ptheme', 'pagecolor', 'wallpaper', 'sidecolor', 'decoration', 'decoration-size', 'appbarcolor', 'shape', 'custom-css'))}`))
notify('dialog', "Je thema is nu gekopieerd naar je klembord. Stuur hem ergens in het Discord-kanaal!")
navigator.clipboard.writeText(btoa(JSON.stringify({ title: 'Magister Theme Contest', name: `${user.name.firstname} ${user.name.lastname}`, school: window.location.hostname.split('.')[0], options: pick(syncedStorage, 'ptheme', 'pagecolor', 'wallpaper', 'sidecolor', 'decoration', 'decoration-size', 'appbarcolor', 'shape', 'custom-css') })))
notify('dialog', "Je inzending is nu gekopieerd naar je klembord. Typ '/winactie' in Discord en volg de aanwijzingen.")
}
})
}
Expand Down

0 comments on commit 1ba801c

Please sign in to comment.