Skip to content

Commit

Permalink
Merge branch 'uzl'
Browse files Browse the repository at this point in the history
  • Loading branch information
YorikHansen committed Oct 8, 2024
2 parents fd1818b + 6d4f25f commit 821f67b
Show file tree
Hide file tree
Showing 7 changed files with 280 additions and 321 deletions.
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.42.0"
".": "1.42.1"
}
324 changes: 162 additions & 162 deletions .yarn/releases/yarn-4.4.1.cjs → .yarn/releases/yarn-4.5.0.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
defaultSemverRangePrefix: ''
nmHoistingLimits: workspaces
nodeLinker: node-modules
yarnPath: .yarn/releases/yarn-4.4.1.cjs
yarnPath: .yarn/releases/yarn-4.5.0.cjs
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## [1.42.1](https://github.com/YorikHansen/better-moodle/compare/1.42.0...1.42.1) (2024-10-09)


### Bug Fixes

* **darkmode:** Fix some unreadable texts ([#419](https://github.com/jxn-30/better-moodle/issues/419)) ([72e9370](https://github.com/YorikHansen/better-moodle/commit/72e9370c2396363943def71c4ab8a136e25ac59b))
* **markdownMessages:** Allow HTML inputs in markdown mode ([#412](https://github.com/jxn-30/better-moodle/issues/412)) ([e75f1d8](https://github.com/YorikHansen/better-moodle/commit/e75f1d8909934dc3abfac70949dccf5c1fd1a6b7))
* **markdownMessages:** Fix sometimes crashing when using Moodle as guest ([#413](https://github.com/jxn-30/better-moodle/issues/413)) ([19c2677](https://github.com/YorikHansen/better-moodle/commit/19c267750e2e1ca8bffe502d756bea01507657a5))
* **ninaIntegration:** Fix canceled events not showing as canceled on details page ([#414](https://github.com/jxn-30/better-moodle/issues/414)) ([8e24e30](https://github.com/YorikHansen/better-moodle/commit/8e24e3009521765aa277b24e30fd12ef543bbb20))

## [1.42.0](https://github.com/YorikHansen/better-moodle/compare/1.41.1...1.42.0) (2024-09-12)


Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"name": "uzl-better-moodle",
"description": "Improves the new weird Moodle 4 UI on UzL-Moodle",
"version": "1.42.0",
"packageManager": "yarn@4.4.1",
"version": "1.42.1",
"packageManager": "yarn@4.5.0",
"type": "module",
"private": true,
"scripts": {
"lint:fix": "yarn eslint . --exit-on-fatal-error --report-unused-disable-directives --cache --cache-strategy content --fix",
"prettier:write": "prettier --write --cache --cache-strategy content ."
},
"devDependencies": {
"@eslint/js": "9.10.0",
"@eslint/js": "9.12.0",
"@types/eslint": "9.6.1",
"@types/tampermonkey": "5.0.3",
"darkreader": "4.9.92",
"eslint": "9.10.0",
"darkreader": "4.9.95",
"eslint": "9.12.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-userscripts": "0.5.5",
"globals": "15.9.0",
"globals": "15.10.0",
"prettier": "3.3.3",
"userscript-meta": "1.0.1"
}
Expand Down
18 changes: 12 additions & 6 deletions redesign.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// @name 🎓️ CAU: better-moodle
// @namespace https://better-moodle.yorik.dev
// @ x-release-please-start-version
// @version 1.42.0
// @version 1.42.1
// @ x-release-please-end
// @author Jan (jxn_30), Yorik (YorikHansen)
// @description Improves Moodle by cool features and design improvements.
Expand All @@ -29,7 +29,7 @@
// @connect api.pirateweather.net
// @connect weather.visualcrossing.com
// @connect wttr.in
// @require https://unpkg.com/[email protected].92/darkreader.js#sha512=420e83f65829445bfaa38c8418c23054ece8b82e0129a594e420dd3f086c250d351fee9b29fa057a704ee6e288d77f81e1c3468cb54c8ccbb7f939a85065fc11
// @require https://unpkg.com/[email protected].95/darkreader.js#sha512=dfcae8a9b19a0c681972a336b2d71a218df5ed2cc952810ffe037fd132519ddd1b3a97725ecb8861d9731a2405e6ad8086f40606d38fbe3033f14d8a7ecae43a
// @connect cloud.rz.uni-kiel.de
// @connect www.uni-kiel.de
// ==/UserScript==
Expand Down Expand Up @@ -6075,11 +6075,15 @@ const updateDarkReaderMode = (live = false) => {
${prideLogoStyle}
/* fix for unreadable activities */
/* Replace mix-blend-mode: multiply with mix-blend-mode: hard-light */
.activity-item.hiddenactivity .description .course-description-item,
.activity-item.hiddenactivity .activityiconcontainer,
.activity-item.hiddenactivity .badge,
.editing .activity-item:hover .activityiconcontainer {
.editing .activity-item:hover .activityiconcontainer,
.editing .activity-item:hover .description .course-description-item,
.editing .activity-item:hover .activityiconcontainer,
.editing .activity-item:hover .badge,
.path-mod .automatic-completion-conditions .badge {
mix-blend-mode: hard-light !important;
}
Expand Down Expand Up @@ -7877,6 +7881,8 @@ if (getSetting('messages.markdown')) {

ready(() => {
const messageApp = document.querySelector('.message-app');
if (!messageApp) return;

const sendBtn = messageApp.querySelector(
'[data-action="send-message"]'
);
Expand All @@ -7899,7 +7905,7 @@ if (getSetting('messages.markdown')) {
const raw = inputElem.value;

const dummy = document.createElement('span');
dummy.innerText = raw.replace(
dummy.innerHTML = raw.replace(
/(?<!\\)\$(.*?)(?<!\\)\$/g,
'\\($1\\)'
);
Expand Down Expand Up @@ -8134,7 +8140,7 @@ const NINA = {
msgType,
} = NINA.getWarning(id) ?? NINA.defaultValues;

const modalTitle = `${NINA.getSeverityBadge(severity, msgType)} ${
const modalTitle = `${NINA.getSeverityBadge(severity, provider, msgType)} ${
title
} <span class="small"><span class="badge badge-pill badge-secondary">${$t(
`nina.status.${status}`
Expand Down
Loading

0 comments on commit 821f67b

Please sign in to comment.