Skip to content

Commit

Permalink
chore: release 6.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
David Ralph committed Apr 8, 2022
1 parent f58d741 commit e0820c6
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/submit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
inputs:
tag:
description: "Release tag to submit, i.e 6.0.4"
description: "Release tag to submit, i.e 6.0.5"
required: true

jobs:
Expand Down
2 changes: 1 addition & 1 deletion manifest/chrome.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"default_locale": "en",
"name": "__MSG_name__",
"description": "__MSG_description__",
"version": "6.0.4",
"version": "6.0.5",
"homepage_url": "https://muetab.com",
"browser_action": {
"default_icon": "icons/128x128.png"
Expand Down
2 changes: 1 addition & 1 deletion manifest/firefox.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "Mue",
"description": "Fast, open and free-to-use new tab page for modern browsers.",
"version": "6.0.4",
"version": "6.0.5",
"homepage_url": "https://muetab.com",
"browser_action": {
"default_icon": "icons/128x128.png"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"homepage": "https://muetab.com",
"bugs": "https://github.com/mue/mue/issues/new?assignees=&labels=bug&template=bug-report.md&title=%5BBUG%5D",
"license": "BSD-3-Clause",
"version": "6.0.4",
"version": "6.0.5",
"dependencies": {
"@eartharoid/i18n": "1.0.2",
"@emotion/react": "^11.9.0",
Expand Down
5 changes: 1 addition & 4 deletions src/components/modals/Modals.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import Preview from '../helpers/preview/Preview';

import EventBus from 'modules/helpers/eventbus';

// Welcome modal is lazy loaded as the user won't use it every time they open a tab
// We used to lazy load the main and feedback modals, but doing so broke the modal open animation on first click
import Welcome from './welcome/Welcome';

export default class Modals extends PureComponent {
Expand All @@ -20,13 +18,12 @@ export default class Modals extends PureComponent {
mainModal: false,
updateModal: false,
welcomeModal: false,
feedbackModal: false,
preview: false
};
}

componentDidMount() {
if (localStorage.getItem('showWelcome') === 'true' && window.location.search !== '?nointro=true' && this.state.welcomeModal === false) {
if (localStorage.getItem('showWelcome') === 'true' && window.location.search !== '?nointro=true') {
this.setState({
welcomeModal: true
});
Expand Down
8 changes: 4 additions & 4 deletions src/components/modals/main/settings/sections/Date.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ export default class DateSettings extends PureComponent {
</>
);

switch (this.state.dateType) {
case 'short': dateSettings = shortSettings; break;
case 'long': dateSettings = longSettings; break;
default: break;
if (this.state.dateType === 'long') {
dateSettings = longSettings;
} else {
dateSettings = shortSettings;
}

return (
Expand Down
10 changes: 5 additions & 5 deletions src/components/modals/main/settings/sections/Time.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default class TimeSettings extends PureComponent {
render() {
const getMessage = (text) => variables.language.getMessage(variables.languagecode, text);

let timeSettings;
let timeSettings = null;

const digitalOptions = [
{
Expand Down Expand Up @@ -50,10 +50,10 @@ export default class TimeSettings extends PureComponent {
</>
);

switch (this.state.timeType) {
case 'digital': timeSettings = digitalSettings; break;
case 'analogue': timeSettings = analogSettings; break;
default: timeSettings = null; break;
if (this.state.timeType === 'digital') {
timeSettings = digitalSettings;
} else if (this.state.timeType === 'analogue') {
timeSettings = analogSettings;
}

return (
Expand Down
10 changes: 5 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createRoot } from 'react-dom/client';
import { render } from 'react-dom';

import App from './App';
import variables from 'modules/variables';
Expand Down Expand Up @@ -47,7 +47,7 @@ if (localStorage.getItem('stats') === 'true') {
variables.keybinds = JSON.parse(localStorage.getItem('keybinds') || '{}');
}*/

const container = document.getElementById('root');
const root = createRoot(container);

root.render(<App/>);
render(
<App/>,
document.getElementById('root')
);
2 changes: 1 addition & 1 deletion src/modules/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ export const PATREON_USERNAME = 'davidcralph';

export const OFFLINE_IMAGES = 20;

export const VERSION = '6.0.4';
export const VERSION = '6.0.5';

0 comments on commit e0820c6

Please sign in to comment.