fix: todo and photo packs

This commit is contained in:
David Ralph 2023-03-11 17:06:54 +00:00 committed by GitHub
parent 9bb65a9704
commit 76f5bff3dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 59 additions and 52 deletions

View File

@ -10,7 +10,7 @@ specifiers:
'@floating-ui/react-dom': ^1.0.1
'@fontsource/lexend-deca': 4.5.12
'@fontsource/montserrat': 4.5.13
'@mui/material': 5.11.9
'@mui/material': 5.11.12
'@sentry/react': ^7.21.1
'@vitejs/plugin-react': 3.1.0
embla-carousel-autoplay: ^7.0.5
@ -33,7 +33,7 @@ specifiers:
stylelint: ^15.0.0
stylelint-config-prettier-scss: ^0.0.1
stylelint-config-standard-scss: ^7.0.0
vite: 4.1.1
vite: 4.1.4
dependencies:
'@eartharoid/i18n': 1.2.1
@ -42,7 +42,7 @@ dependencies:
'@floating-ui/react-dom': 1.1.2_biqbaboplfbrettd7655fr4n2y
'@fontsource/lexend-deca': 4.5.12
'@fontsource/montserrat': 4.5.13
'@mui/material': 5.11.9_5rzy53przelm5jchjmb5vr6dxy
'@mui/material': 5.11.12_5rzy53przelm5jchjmb5vr6dxy
'@sentry/react': 7.29.0_react@18.2.0
embla-carousel-autoplay: 7.0.5
embla-carousel-react: 7.0.5_react@18.2.0
@ -61,7 +61,7 @@ devDependencies:
'@commitlint/cli': 17.4.1
'@commitlint/config-conventional': 17.4.0
'@eartharoid/deep-merge': 0.0.2
'@vitejs/plugin-react': 3.1.0_vite@4.1.1
'@vitejs/plugin-react': 3.1.0_vite@4.1.4
eslint: 8.31.0
eslint-config-react-app: 7.0.1_eslint@8.31.0
husky: 8.0.3
@ -70,7 +70,7 @@ devDependencies:
stylelint: 15.1.0
stylelint-config-prettier-scss: 0.0.1_stylelint@15.1.0
stylelint-config-standard-scss: 7.0.1_stylelint@15.1.0
vite: 4.1.1_sass@1.57.1
vite: 4.1.4_sass@1.57.1
packages:
@ -1397,15 +1397,15 @@ packages:
regenerator-runtime: 0.13.11
dev: true
/@babel/runtime/7.20.13:
resolution: {integrity: sha512-gt3PKXs0DBoL9xCvOIIZ2NEqAGZqHjAnmVbfQtB620V0uReIQutpel14KcneZuer7UioY8ALKZ7iocavvzTNFA==}
/@babel/runtime/7.20.7:
resolution: {integrity: sha512-UF0tvkUtxwAgZ5W/KrkHf0Rn0fdnLDU9ScxBrEVNUprE/MzirjK4MJUX1/BVDv00Sv8cljtukVK1aky++X1SjQ==}
engines: {node: '>=6.9.0'}
dependencies:
regenerator-runtime: 0.13.11
dev: false
/@babel/runtime/7.20.7:
resolution: {integrity: sha512-UF0tvkUtxwAgZ5W/KrkHf0Rn0fdnLDU9ScxBrEVNUprE/MzirjK4MJUX1/BVDv00Sv8cljtukVK1aky++X1SjQ==}
/@babel/runtime/7.21.0:
resolution: {integrity: sha512-xwII0//EObnq89Ji5AKYQaRYiW/nZ3llSv29d49IuxPhKbtJoLP+9QUUZ4nVragQVtaVGeZrpB+ZtG/Pdy/POw==}
engines: {node: '>=6.9.0'}
dependencies:
regenerator-runtime: 0.13.11
@ -1671,7 +1671,7 @@ packages:
dependencies:
'@babel/helper-module-imports': 7.18.6
'@babel/plugin-syntax-jsx': 7.18.6
'@babel/runtime': 7.20.7
'@babel/runtime': 7.21.0
'@emotion/hash': 0.9.0
'@emotion/memoize': 0.8.0
'@emotion/serialize': 1.1.1
@ -2096,8 +2096,8 @@ packages:
'@jridgewell/sourcemap-codec': 1.4.14
dev: true
/@mui/base/5.0.0-alpha.118_biqbaboplfbrettd7655fr4n2y:
resolution: {integrity: sha512-GAEpqhnuHjRaAZLdxFNuOf2GDTp9sUawM46oHZV4VnYPFjXJDkIYFWfIQLONb0nga92OiqS5DD/scGzVKCL0Mw==}
/@mui/base/5.0.0-alpha.119_biqbaboplfbrettd7655fr4n2y:
resolution: {integrity: sha512-XA5zhlYfXi67u613eIF0xRmktkatx6ERy3h+PwrMN5IcWFbgiL1guz8VpdXON+GWb8+G7B8t5oqTFIaCqaSAeA==}
engines: {node: '>=12.0.0'}
peerDependencies:
'@types/react': ^17.0.0 || ^18.0.0
@ -2107,10 +2107,10 @@ packages:
'@types/react':
optional: true
dependencies:
'@babel/runtime': 7.20.13
'@babel/runtime': 7.21.0
'@emotion/is-prop-valid': 1.2.0
'@mui/types': 7.2.3
'@mui/utils': 5.11.9_react@18.2.0
'@mui/utils': 5.11.12_react@18.2.0
'@popperjs/core': 2.11.6
clsx: 1.2.1
prop-types: 15.8.1
@ -2119,12 +2119,12 @@ packages:
react-is: 18.2.0
dev: false
/@mui/core-downloads-tracker/5.11.9:
resolution: {integrity: sha512-YGEtucQ/Nl91VZkzYaLad47Cdui51n/hW+OQm4210g4N3/nZzBxmGeKfubEalf+ShKH4aYDS86XTO6q/TpZnjQ==}
/@mui/core-downloads-tracker/5.11.12:
resolution: {integrity: sha512-LHh8HZQ5nPVcW5QnyLwkAZ40txc/S2bzKMQ3bTO+5mjuwAJ2AzQrjZINLVy1geY7ei1pHXVqO1hcWHg/QdT44w==}
dev: false
/@mui/material/5.11.9_5rzy53przelm5jchjmb5vr6dxy:
resolution: {integrity: sha512-Wb3WzjzYyi/WKSl/XlF7aC8kk2NE21IoHMF7hNQMkPb0GslbWwR4OUjlBpxtG+RSZn44wMZkEDNB9Hw0TDsd8g==}
/@mui/material/5.11.12_5rzy53przelm5jchjmb5vr6dxy:
resolution: {integrity: sha512-M6BiIeJjySeEzWeiFJQ9pIjJy6mx5mHPWeMT99wjQdAmA2GxCQhE9A0fh6jQP4jMmYzxhOIhjsGcp0vSdpseXg==}
engines: {node: '>=12.0.0'}
peerDependencies:
'@emotion/react': ^11.5.0
@ -2140,14 +2140,14 @@ packages:
'@types/react':
optional: true
dependencies:
'@babel/runtime': 7.20.13
'@babel/runtime': 7.21.0
'@emotion/react': 11.10.5_react@18.2.0
'@emotion/styled': 11.10.5_hp5f5nkljdiwilp4rgxyefcplu
'@mui/base': 5.0.0-alpha.118_biqbaboplfbrettd7655fr4n2y
'@mui/core-downloads-tracker': 5.11.9
'@mui/system': 5.11.9_dovxhg2tvkkxkdnqyoum6wzcxm
'@mui/base': 5.0.0-alpha.119_biqbaboplfbrettd7655fr4n2y
'@mui/core-downloads-tracker': 5.11.12
'@mui/system': 5.11.12_dovxhg2tvkkxkdnqyoum6wzcxm
'@mui/types': 7.2.3
'@mui/utils': 5.11.9_react@18.2.0
'@mui/utils': 5.11.12_react@18.2.0
'@types/react-transition-group': 4.4.5
clsx: 1.2.1
csstype: 3.1.1
@ -2158,8 +2158,8 @@ packages:
react-transition-group: 4.4.5_biqbaboplfbrettd7655fr4n2y
dev: false
/@mui/private-theming/5.11.9_react@18.2.0:
resolution: {integrity: sha512-XMyVIFGomVCmCm92EvYlgq3zrC9K+J6r7IKl/rBJT2/xVYoRY6uM7jeB+Wxh7kXxnW9Dbqsr2yL3cx6wSD1sAg==}
/@mui/private-theming/5.11.12_react@18.2.0:
resolution: {integrity: sha512-hnJ0svNI1TPeWZ18E6DvES8PB4NyMLwal6EyXf69rTrYqT6wZPLjB+HiCYfSOCqU/fwArhupSqIIkQpDs8CkAw==}
engines: {node: '>=12.0.0'}
peerDependencies:
'@types/react': ^17.0.0 || ^18.0.0
@ -2168,14 +2168,14 @@ packages:
'@types/react':
optional: true
dependencies:
'@babel/runtime': 7.20.13
'@mui/utils': 5.11.9_react@18.2.0
'@babel/runtime': 7.21.0
'@mui/utils': 5.11.12_react@18.2.0
prop-types: 15.8.1
react: 18.2.0
dev: false
/@mui/styled-engine/5.11.9_dovxhg2tvkkxkdnqyoum6wzcxm:
resolution: {integrity: sha512-bkh2CjHKOMy98HyOc8wQXEZvhOmDa/bhxMUekFX5IG0/w4f5HJ8R6+K6nakUUYNEgjOWPYzNPrvGB8EcGbhahQ==}
/@mui/styled-engine/5.11.11_dovxhg2tvkkxkdnqyoum6wzcxm:
resolution: {integrity: sha512-wV0UgW4lN5FkDBXefN8eTYeuE9sjyQdg5h94vtwZCUamGQEzmCOtir4AakgmbWMy0x8OLjdEUESn9wnf5J9MOg==}
engines: {node: '>=12.0.0'}
peerDependencies:
'@emotion/react': ^11.4.1
@ -2187,7 +2187,7 @@ packages:
'@emotion/styled':
optional: true
dependencies:
'@babel/runtime': 7.20.13
'@babel/runtime': 7.21.0
'@emotion/cache': 11.10.5
'@emotion/react': 11.10.5_react@18.2.0
'@emotion/styled': 11.10.5_hp5f5nkljdiwilp4rgxyefcplu
@ -2196,8 +2196,8 @@ packages:
react: 18.2.0
dev: false
/@mui/system/5.11.9_dovxhg2tvkkxkdnqyoum6wzcxm:
resolution: {integrity: sha512-h6uarf+l3FO6l75Nf7yO+qDGrIoa1DM9nAMCUFZQsNCDKOInRzcptnm8M1w/Z3gVetfeeGoIGAYuYKbft6KZZA==}
/@mui/system/5.11.12_dovxhg2tvkkxkdnqyoum6wzcxm:
resolution: {integrity: sha512-sYjsXkiwKpZDC3aS6O/6KTjji0jGINLQcrD5EJ5NTkIDiLf19I4HJhnufgKqlTWNfoDBlRohuTf3TzfM06c4ug==}
engines: {node: '>=12.0.0'}
peerDependencies:
'@emotion/react': ^11.5.0
@ -2212,13 +2212,13 @@ packages:
'@types/react':
optional: true
dependencies:
'@babel/runtime': 7.20.13
'@babel/runtime': 7.21.0
'@emotion/react': 11.10.5_react@18.2.0
'@emotion/styled': 11.10.5_hp5f5nkljdiwilp4rgxyefcplu
'@mui/private-theming': 5.11.9_react@18.2.0
'@mui/styled-engine': 5.11.9_dovxhg2tvkkxkdnqyoum6wzcxm
'@mui/private-theming': 5.11.12_react@18.2.0
'@mui/styled-engine': 5.11.11_dovxhg2tvkkxkdnqyoum6wzcxm
'@mui/types': 7.2.3
'@mui/utils': 5.11.9_react@18.2.0
'@mui/utils': 5.11.12_react@18.2.0
clsx: 1.2.1
csstype: 3.1.1
prop-types: 15.8.1
@ -2234,13 +2234,13 @@ packages:
optional: true
dev: false
/@mui/utils/5.11.9_react@18.2.0:
resolution: {integrity: sha512-eOJaqzcEs4qEwolcvFAmXGpln+uvouvOS9FUX6Wkrte+4I8rZbjODOBDVNlK+V6/ziTfD4iNKC0G+KfOTApbqg==}
/@mui/utils/5.11.12_react@18.2.0:
resolution: {integrity: sha512-5vH9B/v8pzkpEPO2HvGM54ToXV6cFdAn8UrvdN8TMEEwpn/ycW0jLiyBcgUlPsQ+xha7hqXCPQYHaYFDIcwaiw==}
engines: {node: '>=12.0.0'}
peerDependencies:
react: ^17.0.0 || ^18.0.0
dependencies:
'@babel/runtime': 7.20.13
'@babel/runtime': 7.21.0
'@types/prop-types': 15.7.5
'@types/react-is': 17.0.3
prop-types: 15.8.1
@ -2561,7 +2561,7 @@ packages:
eslint-visitor-keys: 3.3.0
dev: true
/@vitejs/plugin-react/3.1.0_vite@4.1.1:
/@vitejs/plugin-react/3.1.0_vite@4.1.4:
resolution: {integrity: sha512-AfgcRL8ZBhAlc3BFdigClmTUMISmmzHn7sB2h9U1odvc5U/MjWXsAaz18b/WoppUTDBzxOJwo2VdClfUcItu9g==}
engines: {node: ^14.18.0 || >=16.0.0}
peerDependencies:
@ -2572,7 +2572,7 @@ packages:
'@babel/plugin-transform-react-jsx-source': 7.19.6_@babel+core@7.20.12
magic-string: 0.27.0
react-refresh: 0.14.0
vite: 4.1.1_sass@1.57.1
vite: 4.1.4_sass@1.57.1
transitivePeerDependencies:
- supports-color
dev: true
@ -2664,7 +2664,7 @@ packages:
resolution: {integrity: sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA==}
engines: {node: '>=6.0'}
dependencies:
'@babel/runtime': 7.20.7
'@babel/runtime': 7.21.0
'@babel/runtime-corejs3': 7.20.7
dev: true
@ -2750,7 +2750,7 @@ packages:
resolution: {integrity: sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==}
engines: {node: '>=10', npm: '>=6'}
dependencies:
'@babel/runtime': 7.20.7
'@babel/runtime': 7.21.0
cosmiconfig: 7.1.0
resolve: 1.22.1
@ -2811,7 +2811,7 @@ packages:
'@babel/preset-env': 7.20.2_@babel+core@7.20.12
'@babel/preset-react': 7.18.6_@babel+core@7.20.12
'@babel/preset-typescript': 7.18.6_@babel+core@7.20.12
'@babel/runtime': 7.20.7
'@babel/runtime': 7.21.0
babel-plugin-macros: 3.1.0
babel-plugin-transform-react-remove-prop-types: 0.4.24
transitivePeerDependencies:
@ -3180,7 +3180,7 @@ packages:
/dom-helpers/5.2.1:
resolution: {integrity: sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==}
dependencies:
'@babel/runtime': 7.20.13
'@babel/runtime': 7.21.0
csstype: 3.1.1
dev: false
@ -3475,7 +3475,7 @@ packages:
peerDependencies:
eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8
dependencies:
'@babel/runtime': 7.20.7
'@babel/runtime': 7.21.0
aria-query: 4.2.2
array-includes: 3.1.6
ast-types-flow: 0.0.7
@ -4973,7 +4973,7 @@ packages:
react: '>=16.6.0'
react-dom: '>=16.6.0'
dependencies:
'@babel/runtime': 7.20.13
'@babel/runtime': 7.21.0
dom-helpers: 5.2.1
loose-envify: 1.4.0
prop-types: 15.8.1
@ -5048,7 +5048,7 @@ packages:
/regenerator-transform/0.15.1:
resolution: {integrity: sha512-knzmNAcuyxV+gQCufkYcvOqX/qIIfHLv0u5x79kRxuGojfYVky1f15TzZEu2Avte8QGepvUNTnLskf8E6X6Vyg==}
dependencies:
'@babel/runtime': 7.20.7
'@babel/runtime': 7.21.0
dev: true
/regexp.prototype.flags/1.4.3:
@ -5736,8 +5736,8 @@ packages:
spdx-expression-parse: 3.0.1
dev: true
/vite/4.1.1_sass@1.57.1:
resolution: {integrity: sha512-LM9WWea8vsxhr782r9ntg+bhSFS06FJgCvvB0+8hf8UWtvaiDagKYWXndjfX6kGl74keHJUcpzrQliDXZlF5yg==}
/vite/4.1.4_sass@1.57.1:
resolution: {integrity: sha512-3knk/HsbSTKEin43zHu7jTwYWv81f8kgAL99G5NWBcA1LKvtvcVAC4JjBH1arBunO9kQka+1oGbrMKOjk4ZrBg==}
engines: {node: ^14.18.0 || >=16.0.0}
hasBin: true
peerDependencies:

View File

@ -51,7 +51,7 @@ function Navbar() {
onChange={setShowRefreshOptions}
/>
<Checkbox
name="todo"
name="todoEnabled"
text={variables.getMessage('widgets.navbar.todo.title')}
category="navbar"
/>

View File

@ -104,7 +104,7 @@ export default class Navbar extends PureComponent {
{localStorage.getItem('notesEnabled') === 'true' ? (
<Notes fontSize={this.state.zoomFontSize} />
) : null}
{localStorage.getItem('todo') === 'true' ? (
{localStorage.getItem('todoEnabled') === 'true' ? (
<Todo fontSize={this.state.zoomFontSize} />
) : null}

View File

@ -5,6 +5,10 @@ function showReminder() {
localStorage.setItem('showReminder', true);
}
function sleep(ms) {
return new Promise((resolve) => setTimeout(resolve, ms));
}
// based on https://stackoverflow.com/questions/37684/how-to-replace-plain-urls-with-links
export function urlParser(input) {
const urlPattern =
@ -45,6 +49,9 @@ export function install(type, input, sideload) {
localStorage.setItem('backgroundType', 'photo_pack');
localStorage.removeItem('backgroundchange');
EventBus.dispatch('refresh', 'background');
// TODO: make this legitimately good and work without a reload - currently we just refresh
sleep(4000);
window.location.reload();
break;
case 'quotes':