mirror of
https://github.com/mue/mue.git
synced 2026-06-11 02:59:06 +02:00
fix: remove unused code, change Turkish name
This commit is contained in:
14
src/components/helpers/notification/notification.jsx
Normal file
14
src/components/helpers/notification/notification.jsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import variables from 'modules/variables';
|
||||
import './preview.scss';
|
||||
|
||||
export default function Notification(props) {
|
||||
const getMessage = (text) => variables.language.getMessage(variables.languagecode, text);
|
||||
|
||||
return (
|
||||
<div className="preview-mode">
|
||||
<span className="title">{getMessage('modals.main.settings.reminder.title')}</span>
|
||||
<span className="subtitle">{getMessage('modals.welcome.preview.description')}</span>
|
||||
<button onClick={() => props.setup()}>{getMessage('modals.welcome.preview.continue')}</button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -42,7 +42,7 @@ export default function ShareModal({ modalClose, data }) {
|
||||
onClick={() =>
|
||||
window
|
||||
.open(
|
||||
`https://twitter.com/intent/tweet?text=Check out ${data.data.name} on @getmue: ${data}`,
|
||||
`https://twitter.com/intent/tweet?text=Check out ${data.name} on @getmue: ${data}`,
|
||||
'_blank',
|
||||
)
|
||||
.focus()
|
||||
|
||||
@@ -164,38 +164,6 @@ export default class TimeSettings extends PureComponent {
|
||||
</Dropdown>
|
||||
</SettingsItem>
|
||||
{timeSettings}
|
||||
{/*<SettingsItem
|
||||
title="Pomodoro"
|
||||
subtitle="The Pomodoro Technique is a time management method developed by Francesco Cirillo in the late 1980s. It uses a timer to break work into intervals, typically 25 minutes in length, separated by short breaks"
|
||||
final={true}
|
||||
>
|
||||
<Switch
|
||||
name="Pomodoro"
|
||||
text={getMessage('modals.main.settings.enabled')}
|
||||
category="Pomodoro"
|
||||
element="Pomodoro"
|
||||
/>
|
||||
<Slider
|
||||
title="Work Length"
|
||||
name="pomdoroWorkLength"
|
||||
default="25"
|
||||
step="1"
|
||||
min="5"
|
||||
max="60"
|
||||
marks={values('pomodoroWork')}
|
||||
display={' ms'}
|
||||
/>
|
||||
<Slider
|
||||
title="Break Length"
|
||||
name="PomodoroBreakLength"
|
||||
default="5"
|
||||
step="1"
|
||||
min="1"
|
||||
max="45"
|
||||
marks={values('pomodoroBreak')}
|
||||
display={' ms'}
|
||||
/>
|
||||
</SettingsItem>*/}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,6 @@ import { convertTimezone } from 'modules/helpers/date';
|
||||
import EventBus from 'modules/helpers/eventbus';
|
||||
|
||||
import './clock.scss';
|
||||
import Pomodoro from './Pomodoro';
|
||||
|
||||
const Analog = lazy(() => import('react-clock'));
|
||||
const renderLoader = () => <></>;
|
||||
@@ -160,12 +159,6 @@ export default class Clock extends PureComponent {
|
||||
{this.state.time}
|
||||
<span className="ampm">{this.state.ampm}</span>
|
||||
</span>
|
||||
{localStorage.getItem('Pomodoro') === 'true' ? (
|
||||
<Pomodoro
|
||||
hours={this.state.nowGlobal.getHours}
|
||||
minutes={this.state.nowGlobal.getMinutes}
|
||||
/>
|
||||
) : null}
|
||||
</>
|
||||
);
|
||||
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
import variables from 'modules/variables';
|
||||
import { PureComponent, createRef } from 'react';
|
||||
|
||||
import { nth, convertTimezone } from 'modules/helpers/date';
|
||||
import EventBus from 'modules/helpers/eventbus';
|
||||
import Tooltip from '../../helpers/tooltip/Tooltip';
|
||||
import { MdSkipNext, MdOutlineRestartAlt, MdPlayArrow, MdWork } from 'react-icons/md';
|
||||
|
||||
import './clock.scss';
|
||||
|
||||
export default function Pomodoro({ hours, minutes }) {
|
||||
return (
|
||||
<div className="pomodoro">
|
||||
<div className="pomodoroTime">
|
||||
<Tooltip title="Work Time">
|
||||
{' '}
|
||||
<span className="type">
|
||||
<MdWork />
|
||||
</span>
|
||||
</Tooltip>
|
||||
{/*<span>{localStorage.getItem('PomodoroBreakLength')}{localStorage.getItem('pomdoroWorkLength')}</span>*/}
|
||||
</div>
|
||||
<div className="pomodoroControls">
|
||||
<Tooltip title="Restart">
|
||||
<button onClick={() => this.favourite()}>
|
||||
<MdOutlineRestartAlt className="copyButton" />
|
||||
</button>
|
||||
</Tooltip>
|
||||
<Tooltip title="Resume">
|
||||
<button onClick={() => this.favourite()}>
|
||||
<MdPlayArrow className="copyButton" />
|
||||
</button>
|
||||
</Tooltip>
|
||||
<Tooltip title="Skip Stage">
|
||||
<button onClick={() => this.favourite()}>
|
||||
<MdSkipNext className="copyButton" />
|
||||
</button>
|
||||
</Tooltip>
|
||||
</div>
|
||||
<div className="pomdoroTime">
|
||||
<span className="timeRemaning">{localStorage.getItem('pomdoroWorkLength')}:00</span>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -41,46 +41,6 @@
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
// ok so if pomodoro is a separate component, why is this in clock?
|
||||
// ^ above note is for alex
|
||||
.pomodoro {
|
||||
margin-top: -20px;
|
||||
@extend %basic;
|
||||
padding: 5px 15px 5px 15px;
|
||||
font-size: 12px;
|
||||
display: flex;
|
||||
flex-flow: row;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
|
||||
.pomodoroTime {
|
||||
display: flex;
|
||||
flex-flow: row;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
|
||||
.timeRemaining {
|
||||
}
|
||||
|
||||
.type {
|
||||
color: #ccc;
|
||||
font-weight: bold;
|
||||
text-transform: uppercase;
|
||||
display: grid;
|
||||
}
|
||||
}
|
||||
|
||||
.pomodoroControls {
|
||||
display: flex;
|
||||
flex-flow: row;
|
||||
justify-content: space-evenly;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
button {
|
||||
@include basicIconButton(5px, 11px, ui);
|
||||
}
|
||||
}
|
||||
|
||||
.new-clock {
|
||||
line-height: 100%;
|
||||
|
||||
@@ -70,18 +70,6 @@ export function values(type) {
|
||||
{ value: 200, label: '2x' },
|
||||
{ value: 400, label: '4x' },
|
||||
],
|
||||
pomodoroWork: [
|
||||
{ value: 5, label: '5m' },
|
||||
{ value: 25, label: '25m' },
|
||||
{ value: 45, label: '45m' },
|
||||
{ value: 60, label: '60m' },
|
||||
],
|
||||
pomodoroBreak: [
|
||||
{ value: 1, label: '1s' },
|
||||
{ value: 5, label: '5m' },
|
||||
{ value: 25, label: '25m' },
|
||||
{ value: 45, label: '45m' },
|
||||
],
|
||||
toast: [
|
||||
{ value: 500, label: '0.5s' },
|
||||
{ value: 1000, label: '1s' },
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
"value": "zh_CN"
|
||||
},
|
||||
{
|
||||
"name": "Turkish",
|
||||
"name": "Türkçe",
|
||||
"value": "tr_TR"
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user