fix: add bg url, search tooltip, stats changes

Co-authored-by: David Ralph <me@davidcralph.co.uk>
This commit is contained in:
alexsparkes 2023-03-15 18:34:02 +00:00
parent 0313408b66
commit 6d315974cc
29 changed files with 776 additions and 781 deletions

View File

@ -3,6 +3,7 @@
"plugins": ["stylelint-scss"], "plugins": ["stylelint-scss"],
"rules": { "rules": {
"selector-class-pattern": null, "selector-class-pattern": null,
"no-descending-specificity": null "no-descending-specificity": null,
"scss/no-global-function-names": null
} }
} }

View File

@ -37,7 +37,7 @@ function ShareModal({ modalClose, data }) {
</div> </div>
</Tooltip> </Tooltip>
</div> </div>
<div className="buttons"> <div className="shareButtons">
<Tooltip title="Twitter"> <Tooltip title="Twitter">
<button <button
onClick={() => onClick={() =>

View File

@ -40,7 +40,7 @@
} }
} }
.buttons { .shareButtons {
justify-content: space-between; justify-content: space-between;
display: flex; display: flex;
gap: 15px; gap: 15px;

View File

@ -4,8 +4,6 @@ import { Suspense, lazy, useState } from 'react';
import { memo } from 'react'; import { memo } from 'react';
import { MdClose } from 'react-icons/md'; import { MdClose } from 'react-icons/md';
import Tabs from './tabs/backend/Tabs';
import './scss/index.scss'; import './scss/index.scss';
import Tooltip from 'components/helpers/tooltip/Tooltip'; import Tooltip from 'components/helpers/tooltip/Tooltip';
@ -14,9 +12,12 @@ const Settings = lazy(() => import('./tabs/Settings'));
const Addons = lazy(() => import('./tabs/Addons')); const Addons = lazy(() => import('./tabs/Addons'));
const Marketplace = lazy(() => import('./tabs/Marketplace')); const Marketplace = lazy(() => import('./tabs/Marketplace'));
const renderLoader = (current) => ( const renderLoader = () => (
<Tabs current={current}> <div style={{ display: 'flex', width: '100%', minHeight: '100%' }}>
<div label={variables.getMessage('modals.main.loading')}> <ul className="sidebar">
<span className="mainTitle">Mue</span>
</ul>
<div className="tab-content" style={{ width: '100%' }}>
<div className="emptyItems"> <div className="emptyItems">
<div className="emptyMessage"> <div className="emptyMessage">
<div className="loaderHolder"> <div className="loaderHolder">
@ -26,8 +27,7 @@ const renderLoader = (current) => (
</div> </div>
</div> </div>
</div> </div>
<div label="" style={{ display: 'none' }}></div> </div>
</Tabs>
); );
function MainModal({ modalClose }) { function MainModal({ modalClose }) {
@ -64,7 +64,7 @@ function MainModal({ modalClose }) {
<MdClose /> <MdClose />
</span> </span>
</Tooltip> </Tooltip>
<Suspense fallback={renderLoader(currentTab)}>{currentTab}</Suspense> <Suspense fallback={renderLoader()}>{currentTab}</Suspense>
</div> </div>
); );
} }

View File

@ -138,7 +138,6 @@ h4 {
grid-template-rows: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr);
column-gap: 45px; column-gap: 45px;
row-gap: 100px; row-gap: 100px;
padding-top: 45px;
.leftPanel { .leftPanel {
grid-area: 1 / 1 / 3 / 3; grid-area: 1 / 1 / 3 / 3;
@ -214,7 +213,8 @@ h4 {
align-items: center; align-items: center;
@include themed { @include themed {
background: t($modal-sidebarActive); background: t($modal-secondaryColour);
border: 1px solid t($modal-sidebarActive);
border-radius: t($borderRadius); border-radius: t($borderRadius);
gap: 10px; gap: 10px;
} }
@ -225,7 +225,7 @@ h4 {
border-radius: 100%; border-radius: 100%;
@include themed { @include themed {
background: t($modal-sidebar); background: t($modal-sidebarActive);
} }
} }
} }
@ -235,8 +235,8 @@ h4 {
@include themed { @include themed {
border-radius: t($borderRadius); border-radius: t($borderRadius);
background: t($modal-sidebar); background: t($modal-secondaryColour);
box-shadow: 0 0 0 4px t($modal-sidebarActive); box-shadow: 0 0 0 1px t($modal-sidebarActive);
svg { svg {
font-size: 50px; font-size: 50px;
@ -248,10 +248,15 @@ h4 {
.achievementContent { .achievementContent {
display: flex; display: flex;
flex-flow: column; flex-flow: column;
gap: 2px;
span { span:first-child {
font-weight: bold;
font-size: 15px; font-size: 15px;
} }
.subtitle {
font-size: 13px !important;
}
} }
.customcss textarea { .customcss textarea {

View File

@ -97,6 +97,15 @@ legend,
background-color: t($modal-background); background-color: t($modal-background);
color: t($color); color: t($color);
} }
li{
&:hover {
@include themed {
background-color: t($modal-sidebarActive);
transition: 0.5s;
}
}
}
} }
.Mui-selected { .Mui-selected {
@ -151,9 +160,12 @@ legend,
} }
} }
.css-6od3lo-MuiChip-label { .css-w66kx-MuiChip-root {
@include themed { @include themed {
color: t($color) !important; color: t($color) !important;
border: 1px solid t($modal-sidebarActive);
background: t($modal-sidebar) !important;
border-radius: t($borderRadius);
} }
text-transform: capitalize; text-transform: capitalize;

View File

@ -2,9 +2,6 @@
import variables from 'modules/variables'; import variables from 'modules/variables';
import { PureComponent } from 'react'; import { PureComponent } from 'react';
import { MdShowChart } from 'react-icons/md'; import { MdShowChart } from 'react-icons/md';
import Switch from '../Switch';
import SettingsItem from '../SettingsItem';
import { FaTrophy } from 'react-icons/fa'; import { FaTrophy } from 'react-icons/fa';
import EventBus from 'modules/helpers/eventbus'; import EventBus from 'modules/helpers/eventbus';
@ -92,31 +89,10 @@ export default class Stats extends PureComponent {
} }
render() { render() {
if (localStorage.getItem('stats') === 'false') { const achievementElement = (key, name, achieved) => (
return (
<>
<span className="mainTitle">
{variables.getMessage('modals.main.settings.sections.stats.title')}
</span>
<SettingsItem
title={variables.getMessage('modals.main.settings.reminder.title')}
subtitle={variables.getMessage('modals.main.settings.sections.stats.warning')}
final={true}
>
<Switch
name="stats"
text={variables.getMessage('modals.main.settings.sections.stats.usage')}
category="stats"
/>
</SettingsItem>
</>
);
}
const achievementElement = (key, name) => (
<div className="achievement"> <div className="achievement">
<FaTrophy /> <FaTrophy />
<div className="achievementContent"> <div className={"achievementContent" + (achieved ? ' achieved' : '')}>
<span>{name}</span> <span>{name}</span>
<span className="subtitle"> <span className="subtitle">
{achievementLanguage[localStorage.getItem('language')][key]} {achievementLanguage[localStorage.getItem('language')][key]}
@ -130,16 +106,6 @@ export default class Stats extends PureComponent {
<span className="mainTitle"> <span className="mainTitle">
{variables.getMessage('modals.main.settings.sections.stats.title')} {variables.getMessage('modals.main.settings.sections.stats.title')}
</span> </span>
<SettingsItem
title={variables.getMessage('modals.main.settings.reminder.title')}
subtitle={variables.getMessage('modals.main.settings.sections.stats.warning')}
>
<Switch
name="stats"
text={variables.getMessage('modals.main.settings.sections.stats.usage')}
category="stats"
/>
</SettingsItem>
<div className="statsGrid"> <div className="statsGrid">
<div className="statSection leftPanel"> <div className="statSection leftPanel">
<span className="title"> <span className="title">
@ -152,11 +118,9 @@ export default class Stats extends PureComponent {
})} })}
</span> </span>
<div className="achievements"> <div className="achievements">
{this.state.achievements.map((achievement, index) => { {this.state.achievements.map((achievement, index) => (
if (achievement.achieved) { achievementElement(index, achievement.name, achievement.achieved)
return achievementElement(index, achievement.name); ))}
}
})}
</div> </div>
</div> </div>
<div className="statSection rightPanel"> <div className="statSection rightPanel">

View File

@ -29,6 +29,7 @@ export default class CustomSettings extends PureComponent {
this.state = { this.state = {
customBackground: this.getCustom(), customBackground: this.getCustom(),
customURLModal: false, customURLModal: false,
urlError: '',
}; };
this.customDnd = createRef(null); this.customDnd = createRef(null);
} }
@ -130,6 +131,16 @@ export default class CustomSettings extends PureComponent {
} }
addCustomURL(e) { addCustomURL(e) {
// regex: https://ihateregex.io/expr/url/
// eslint-disable-next-line no-useless-escape
const urlRegex =
/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()!@:%_.~#?&=]*)/;
if (urlRegex.test(e) === false) {
return this.setState({
urlError: variables.getMessage('widgets.quicklinks.url_error'),
});
}
this.setState({ this.setState({
customURLModal: false, customURLModal: false,
currentBackgroundIndex: this.state.customBackground.length, currentBackgroundIndex: this.state.customBackground.length,
@ -273,6 +284,7 @@ export default class CustomSettings extends PureComponent {
> >
<CustomURLModal <CustomURLModal
modalClose={(e) => this.addCustomURL(e)} modalClose={(e) => this.addCustomURL(e)}
urlError={this.state.urlError}
modalCloseOnly={() => this.setState({ customURLModal: false })} modalCloseOnly={() => this.setState({ customURLModal: false })}
/> />
</Modal> </Modal>

View File

@ -1,9 +1,9 @@
import variables from 'modules/variables'; import variables from 'modules/variables';
import { useState, memo } from 'react'; import { useState, memo } from 'react';
import { MdAdd, MdClose } from 'react-icons/md'; import { MdAdd, MdClose, MdOutlineAddLink } from 'react-icons/md';
import Tooltip from 'components/helpers/tooltip/Tooltip'; import Tooltip from 'components/helpers/tooltip/Tooltip';
function CustomURLModal({ modalClose, modalCloseOnly }) { function CustomURLModal({ modalClose, urlError, modalCloseOnly }) {
const [url, setURL] = useState(); const [url, setURL] = useState();
return ( return (
@ -20,23 +20,24 @@ function CustomURLModal({ modalClose, modalCloseOnly }) {
</div> </div>
</Tooltip> </Tooltip>
</div> </div>
<div className="copy">
<input <input
type="text" type="text"
value={url} value={url}
onChange={(e) => setURL(e.target.value)} onChange={(e) => setURL(e.target.value.replace(/(\r\n|\n|\r)/gm, ''))}
varient="outlined" varient="outlined"
/> />
<Tooltip <span className="dropdown-error">{urlError}</span>
title={variables.getMessage('modals.main.settings.sections.background.source.add_url')} <div className="resetFooter">
placement="top" <button className="textButton" onClick={modalCloseOnly}>
> <MdClose />
<button onClick={() => modalClose(url)}> {variables.getMessage('modals.main.settings.sections.advanced.reset_modal.cancel')}
<MdAdd /> </button>
</button> <button onClick={() => modalClose(url)}>
</Tooltip> <MdOutlineAddLink />
{variables.getMessage('modals.main.settings.sections.background.source.add_url')}
</button>
</div>
</div> </div>
</div>
); );
} }

View File

@ -1,10 +1,10 @@
import variables from 'modules/variables';
import { useState, memo } from 'react'; import { useState, memo } from 'react';
import { TextareaAutosize } from '@mui/material'; import { TextareaAutosize } from '@mui/material';
import { MdAddLink, MdClose } from 'react-icons/md'; import { MdAddLink, MdClose } from 'react-icons/md';
import Tooltip from 'components/helpers/tooltip/Tooltip'; import Tooltip from 'components/helpers/tooltip/Tooltip';
import variables from 'modules/variables';
function AddModal({ urlError, iconError, addLink, closeModal, edit, editData, editLink }) { function AddModal({ urlError, iconError, addLink, closeModal, edit, editData, editLink }) {
const [name, setName] = useState(edit ? editData.name : ''); const [name, setName] = useState(edit ? editData.name : '');
const [url, setUrl] = useState(edit ? editData.url : ''); const [url, setUrl] = useState(edit ? editData.url : '');

View File

@ -120,12 +120,12 @@ class Notes extends PureComponent {
</button> </button>
</Tooltip> </Tooltip>
<Tooltip title={variables.getMessage('widgets.quote.copy')}> <Tooltip title={variables.getMessage('widgets.quote.copy')}>
<button onClick={() => this.copy()}> <button onClick={() => this.copy()} disabled={this.state.notes === ""}>
<MdContentCopy /> <MdContentCopy />
</button> </button>
</Tooltip> </Tooltip>
<Tooltip title={variables.getMessage('widgets.background.download')}> <Tooltip title={variables.getMessage('widgets.background.download')}>
<button onClick={() => this.download()}> <button onClick={() => this.download()} disabled={this.state.notes === ""}>
<MdDownload /> <MdDownload />
</button> </button>
</Tooltip> </Tooltip>

View File

@ -108,6 +108,14 @@ textarea {
.notes-buttons { .notes-buttons {
display: flex !important; display: flex !important;
gap: 10px; gap: 10px;
button {
&:disabled {
@include themed() {
background: t($modal-sidebar) !important;
}
cursor: not-allowed;
}
}
.tooltip { .tooltip {
flex: 1 !important; flex: 1 !important;

View File

@ -196,7 +196,7 @@ export default class Search extends PureComponent {
<div className="searchMain"> <div className="searchMain">
<div className={this.state.classList}> <div className={this.state.classList}>
{localStorage.getItem('searchDropdown') === 'true' ? ( {localStorage.getItem('searchDropdown') === 'true' ? (
<Tooltip title={variables.getMessage('widgets.search')}> <Tooltip title={variables.getMessage('modals.main.settings.sections.search.search_engine')}>
<button <button
onClick={() => this.setState({ searchDropdown: !this.state.searchDropdown })} onClick={() => this.setState({ searchDropdown: !this.state.searchDropdown })}
> >
@ -206,7 +206,7 @@ export default class Search extends PureComponent {
) : ( ) : (
'' ''
)} )}
<Tooltip title={variables.getMessage('widgets.search')}> <Tooltip title={variables.getMessage('modals.main.settings.sections.search.voice_search')}>
{this.state.microphone} {this.state.microphone}
</Tooltip> </Tooltip>
</div> </div>

View File

@ -67,7 +67,7 @@ function Expanded({ state, weatherType, variables }) {
{enabled('weatherdescription') ? ( {enabled('weatherdescription') ? (
<Tooltip <Tooltip
title={variables.getMessage( title={variables.getMessage(
'modals.main.settings.sections.weather.extra_info.show_description', 'modals.main.settings.sections.weather.extra_info.weather_description',
)} )}
placement="left" placement="left"
> >

View File

@ -291,6 +291,7 @@
"title": "Zusätzliche informationen", "title": "Zusätzliche informationen",
"show_location": "Standort anzeigen", "show_location": "Standort anzeigen",
"show_description": "Beschreibung anzeigen", "show_description": "Beschreibung anzeigen",
"weather_description": "Weather description",
"cloudiness": "Bewölkungsgrad", "cloudiness": "Bewölkungsgrad",
"humidity": "Luftfeuchtigkeit", "humidity": "Luftfeuchtigkeit",
"visibility": "Sichtbarkeit", "visibility": "Sichtbarkeit",
@ -430,7 +431,6 @@
}, },
"stats": { "stats": {
"title": "Statistiken", "title": "Statistiken",
"warning": "Sie müssen die Nutzungsdaten aktivieren, um diese Funktion nutzen zu können. Diese Daten werden nur lokal gespeichert.",
"sections": { "sections": {
"tabs_opened": "Geöffnete Tabs", "tabs_opened": "Geöffnete Tabs",
"backgrounds_favourited": "Bevorzugte Hintergründe", "backgrounds_favourited": "Bevorzugte Hintergründe",

View File

@ -291,6 +291,7 @@
"title": "Extra information", "title": "Extra information",
"show_location": "Show location", "show_location": "Show location",
"show_description": "Show description", "show_description": "Show description",
"weather_description": "Weather description",
"cloudiness": "Cloudiness", "cloudiness": "Cloudiness",
"humidity": "Humidity", "humidity": "Humidity",
"visibility": "Visibility", "visibility": "Visibility",
@ -430,7 +431,6 @@
}, },
"stats": { "stats": {
"title": "Stats", "title": "Stats",
"warning": "You need to enable usage data in order to use this feature. This data is only stored locally.",
"sections": { "sections": {
"tabs_opened": "Tabs opened", "tabs_opened": "Tabs opened",
"backgrounds_favourited": "Backgrounds favourited", "backgrounds_favourited": "Backgrounds favourited",

View File

@ -291,6 +291,7 @@
"title": "Extra information", "title": "Extra information",
"show_location": "Show location", "show_location": "Show location",
"show_description": "Show description", "show_description": "Show description",
"weather_description": "Weather description",
"cloudiness": "Cloudiness", "cloudiness": "Cloudiness",
"humidity": "Humidity", "humidity": "Humidity",
"visibility": "Visibility", "visibility": "Visibility",
@ -430,7 +431,6 @@
}, },
"stats": { "stats": {
"title": "Stats", "title": "Stats",
"warning": "You need to enable usage data in order to use this feature. This data is only stored locally.",
"sections": { "sections": {
"tabs_opened": "Tabs opened", "tabs_opened": "Tabs opened",
"backgrounds_favourited": "Backgrounds favourited", "backgrounds_favourited": "Backgrounds favourited",

View File

@ -291,6 +291,7 @@
"title": "Información extra", "title": "Información extra",
"show_location": "Mostrar ubicación", "show_location": "Mostrar ubicación",
"show_description": "Mostrar descripción", "show_description": "Mostrar descripción",
"weather_description": "Weather description",
"cloudiness": "Nubosidad", "cloudiness": "Nubosidad",
"humidity": "Humedad", "humidity": "Humedad",
"visibility": "Visibilidad", "visibility": "Visibilidad",
@ -430,7 +431,6 @@
}, },
"stats": { "stats": {
"title": "Estadísticas", "title": "Estadísticas",
"warning": "Tienes que activar las estadísticas de uso para poder utilizar esta función. This data is only stored locally.",
"sections": { "sections": {
"tabs_opened": "Pestañas abiertas", "tabs_opened": "Pestañas abiertas",
"backgrounds_favourited": "Fondos favoritos", "backgrounds_favourited": "Fondos favoritos",

File diff suppressed because it is too large Load Diff

View File

@ -291,6 +291,7 @@
"title": "Informations supplémentaires", "title": "Informations supplémentaires",
"show_location": "Afficher l'emplacement", "show_location": "Afficher l'emplacement",
"show_description": "Show description", "show_description": "Show description",
"weather_description": "Weather description",
"cloudiness": "Cloudiness", "cloudiness": "Cloudiness",
"humidity": "Humidité", "humidity": "Humidité",
"visibility": "Visibility", "visibility": "Visibility",
@ -430,7 +431,6 @@
}, },
"stats": { "stats": {
"title": "Stats", "title": "Stats",
"warning": "You need to enable usage data in order to use this feature. This data is only stored locally.",
"sections": { "sections": {
"tabs_opened": "Tabs opened", "tabs_opened": "Tabs opened",
"backgrounds_favourited": "Backgrounds favourited", "backgrounds_favourited": "Backgrounds favourited",

View File

@ -291,6 +291,7 @@
"title": "Informasi Tambahan", "title": "Informasi Tambahan",
"show_location": "Tampilkan lokasi", "show_location": "Tampilkan lokasi",
"show_description": "Tampilkan deskripsi", "show_description": "Tampilkan deskripsi",
"weather_description": "Weather description",
"cloudiness": "Kondisi awan", "cloudiness": "Kondisi awan",
"humidity": "Kelembapan", "humidity": "Kelembapan",
"visibility": "Jarak pandang", "visibility": "Jarak pandang",
@ -430,7 +431,6 @@
}, },
"stats": { "stats": {
"title": "Statistik", "title": "Statistik",
"warning": "Anda harus mengizinkan penggunaan data untuk menggunakan fitur ini. Data hanya akan disimpan di perangkat Anda saja.",
"sections": { "sections": {
"tabs_opened": "Riwayat tab terbuka", "tabs_opened": "Riwayat tab terbuka",
"backgrounds_favourited": "Backgrounds favorit", "backgrounds_favourited": "Backgrounds favorit",

View File

@ -291,6 +291,7 @@
"title": "Extra information", "title": "Extra information",
"show_location": "Show location", "show_location": "Show location",
"show_description": "Show description", "show_description": "Show description",
"weather_description": "Weather description",
"cloudiness": "Cloudiness", "cloudiness": "Cloudiness",
"humidity": "Humidity", "humidity": "Humidity",
"visibility": "Visibility", "visibility": "Visibility",
@ -430,7 +431,6 @@
}, },
"stats": { "stats": {
"title": "Stats", "title": "Stats",
"warning": "You need to enable usage data in order to use this feature. This data is only stored locally.",
"sections": { "sections": {
"tabs_opened": "Tabs opened", "tabs_opened": "Tabs opened",
"backgrounds_favourited": "Backgrounds favourited", "backgrounds_favourited": "Backgrounds favourited",

View File

@ -291,6 +291,7 @@
"title": "Extra information", "title": "Extra information",
"show_location": "Show location", "show_location": "Show location",
"show_description": "Show description", "show_description": "Show description",
"weather_description": "Weather description",
"cloudiness": "Cloudiness", "cloudiness": "Cloudiness",
"humidity": "Humidity", "humidity": "Humidity",
"visibility": "Visibility", "visibility": "Visibility",
@ -430,7 +431,6 @@
}, },
"stats": { "stats": {
"title": "Stats", "title": "Stats",
"warning": "You need to enable usage data in order to use this feature. This data is only stored locally.",
"sections": { "sections": {
"tabs_opened": "Tabs opened", "tabs_opened": "Tabs opened",
"backgrounds_favourited": "Backgrounds favourited", "backgrounds_favourited": "Backgrounds favourited",

View File

@ -291,6 +291,7 @@
"title": "Informação extra", "title": "Informação extra",
"show_location": "Mostrar localização", "show_location": "Mostrar localização",
"show_description": "Mostrar descrição", "show_description": "Mostrar descrição",
"weather_description": "Weather description",
"cloudiness": "Nebulosidade", "cloudiness": "Nebulosidade",
"humidity": "Humidade", "humidity": "Humidade",
"visibility": "Visibilidade", "visibility": "Visibilidade",
@ -430,7 +431,6 @@
}, },
"stats": { "stats": {
"title": "Estatísticas", "title": "Estatísticas",
"warning": "Precisa ativar os dados de uso para usar este recurso. Esses dados são armazenados apenas localmente.",
"sections": { "sections": {
"tabs_opened": "Abas abertas", "tabs_opened": "Abas abertas",
"backgrounds_favourited": "Planos de fundo favoritos", "backgrounds_favourited": "Planos de fundo favoritos",

View File

@ -291,6 +291,7 @@
"title": "Informação extra", "title": "Informação extra",
"show_location": "Mostrar localização", "show_location": "Mostrar localização",
"show_description": "Mostrar descrição", "show_description": "Mostrar descrição",
"weather_description": "Weather description",
"cloudiness": "Nebulosidade", "cloudiness": "Nebulosidade",
"humidity": "Umidade", "humidity": "Umidade",
"visibility": "Visibilidade", "visibility": "Visibilidade",
@ -430,7 +431,6 @@
}, },
"stats": { "stats": {
"title": "Estatísticas", "title": "Estatísticas",
"warning": "Você precisa ativar os dados de uso para usar este recurso. Esses dados são armazenados apenas localmente.",
"sections": { "sections": {
"tabs_opened": "Abas abertas", "tabs_opened": "Abas abertas",
"backgrounds_favourited": "Planos de fundo favoritos", "backgrounds_favourited": "Planos de fundo favoritos",

View File

@ -291,6 +291,7 @@
"title": "Extra information", "title": "Extra information",
"show_location": "Show location", "show_location": "Show location",
"show_description": "Show description", "show_description": "Show description",
"weather_description": "Weather description",
"cloudiness": "Cloudiness", "cloudiness": "Cloudiness",
"humidity": "Humidity", "humidity": "Humidity",
"visibility": "Visibility", "visibility": "Visibility",
@ -430,7 +431,6 @@
}, },
"stats": { "stats": {
"title": "Stats", "title": "Stats",
"warning": "You need to enable usage data in order to use this feature. This data is only stored locally.",
"sections": { "sections": {
"tabs_opened": "Tabs opened", "tabs_opened": "Tabs opened",
"backgrounds_favourited": "Backgrounds favourited", "backgrounds_favourited": "Backgrounds favourited",

View File

@ -291,6 +291,7 @@
"title": "Extra information", "title": "Extra information",
"show_location": "Show location", "show_location": "Show location",
"show_description": "Show description", "show_description": "Show description",
"weather_description": "Weather description",
"cloudiness": "Cloudiness", "cloudiness": "Cloudiness",
"humidity": "Humidity", "humidity": "Humidity",
"visibility": "Visibility", "visibility": "Visibility",
@ -430,7 +431,6 @@
}, },
"stats": { "stats": {
"title": "İstatistikler", "title": "İstatistikler",
"warning": "Bu özelliği kullanmak için kullanım verilerini etkinleştirmeniz gerekir. Bu veriler yalnızca yerel olarak depolanır.",
"sections": { "sections": {
"tabs_opened": "Sekme açıldı.", "tabs_opened": "Sekme açıldı.",
"backgrounds_favourited": "Arka plan favorilere eklendi.", "backgrounds_favourited": "Arka plan favorilere eklendi.",

View File

@ -291,6 +291,7 @@
"title": "更多信息", "title": "更多信息",
"show_location": "显示位置", "show_location": "显示位置",
"show_description": "显示描述", "show_description": "显示描述",
"weather_description": "Weather description",
"cloudiness": "云量", "cloudiness": "云量",
"humidity": "湿度", "humidity": "湿度",
"visibility": "能见度", "visibility": "能见度",
@ -430,7 +431,6 @@
}, },
"stats": { "stats": {
"title": "统计", "title": "统计",
"warning": "为了使用该功能,您需要启用统计功能。统计数据仅保存在本地。",
"sections": { "sections": {
"tabs_opened": "页面打开次数", "tabs_opened": "页面打开次数",
"backgrounds_favourited": "收藏的背景", "backgrounds_favourited": "收藏的背景",

View File

@ -65,14 +65,6 @@ export default defineConfig({
react(), react(),
prepareBuilds(), prepareBuilds(),
progress(), progress(),
checker({
eslint: {
lintCommand: 'eslint ./src/**/*.{js,jsx} --fix'
},
stylelint: {
lintCommand: 'stylelint ./src/**/*.{scss,css} --fix',
}
}),
], ],
server: { server: {
open: true, open: true,