Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
mtdvlpr committed Oct 29, 2024
1 parent dbfe39c commit 815eafc
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 21 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ In addition, M³ itself has been translated into several languages by many volun

<!-- CROWDIN-TRANSLATIONS-PROGRESS-ACTION-START -->


#### Available

<table><tr><td align="center" valign="top"><img width="30px" height="30px" title="Chinese Simplified" alt="Chinese Simplified" src="https://raw.githubusercontent.com/benjaminjonard/crowdin-translations-progress-action/1.0/flags/zh-CN.png"></div><div align="center" valign="top">100%</td><td align="center" valign="top"><img width="30px" height="30px" title="Dutch" alt="Dutch" src="https://raw.githubusercontent.com/benjaminjonard/crowdin-translations-progress-action/1.0/flags/nl.png"></div><div align="center" valign="top">100%</td><td align="center" valign="top"><img width="30px" height="30px" title="Slovenian" alt="Slovenian" src="https://raw.githubusercontent.com/benjaminjonard/crowdin-translations-progress-action/1.0/flags/sl.png"></div><div align="center" valign="top">100%</td><td align="center" valign="top"><img width="30px" height="30px" title="French" alt="French" src="https://raw.githubusercontent.com/benjaminjonard/crowdin-translations-progress-action/1.0/flags/fr.png"></div><div align="center" valign="top">99%</td><td align="center" valign="top"><img width="30px" height="30px" title="Portuguese" alt="Portuguese" src="https://raw.githubusercontent.com/benjaminjonard/crowdin-translations-progress-action/1.0/flags/pt-PT.png"></div><div align="center" valign="top">98%</td><td align="center" valign="top"><img width="30px" height="30px" title="Portuguese, Brazilian" alt="Portuguese, Brazilian" src="https://raw.githubusercontent.com/benjaminjonard/crowdin-translations-progress-action/1.0/flags/pt-BR.png"></div><div align="center" valign="top">98%</td><td align="center" valign="top"><img width="30px" height="30px" title="Swahili" alt="Swahili" src="https://raw.githubusercontent.com/benjaminjonard/crowdin-translations-progress-action/1.0/flags/sw.png"></div><div align="center" valign="top">98%</td><td align="center" valign="top"><img width="30px" height="30px" title="Swedish" alt="Swedish" src="https://raw.githubusercontent.com/benjaminjonard/crowdin-translations-progress-action/1.0/flags/sv-SE.png"></div><div align="center" valign="top">98%</td><td align="center" valign="top"><img width="30px" height="30px" title="Ukrainian" alt="Ukrainian" src="https://raw.githubusercontent.com/benjaminjonard/crowdin-translations-progress-action/1.0/flags/uk.png"></div><div align="center" valign="top">98%</td><td align="center" valign="top"><img width="30px" height="30px" title="Hungarian" alt="Hungarian" src="https://raw.githubusercontent.com/benjaminjonard/crowdin-translations-progress-action/1.0/flags/hu.png"></div><div align="center" valign="top">91%</td></tr><tr><td align="center" valign="top"><img width="30px" height="30px" title="Russian" alt="Russian" src="https://raw.githubusercontent.com/benjaminjonard/crowdin-translations-progress-action/1.0/flags/ru.png"></div><div align="center" valign="top">79%</td><td align="center" valign="top"><img width="30px" height="30px" title="Spanish" alt="Spanish" src="https://raw.githubusercontent.com/benjaminjonard/crowdin-translations-progress-action/1.0/flags/es-ES.png"></div><div align="center" valign="top">57%</td><td align="center" valign="top"><img width="30px" height="30px" title="Estonian" alt="Estonian" src="https://raw.githubusercontent.com/benjaminjonard/crowdin-translations-progress-action/1.0/flags/et.png"></div><div align="center" valign="top">56%</td><td align="center" valign="top"><img width="30px" height="30px" title="German" alt="German" src="https://raw.githubusercontent.com/benjaminjonard/crowdin-translations-progress-action/1.0/flags/de.png"></div><div align="center" valign="top">56%</td></table>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/cmn-hans/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

## :thinking: 此应用是否违反了JW.org使用条款?

\*\*不。\*\*[JW.org使用条款](https://www.jw.org/finder?docid=1011511\&prefer=content)实际上明确允许我们正在做的用法。 以下是相关摘录(重要部分已标明):
\*\*不。\*\*[JW.org使用条款](https://www.jw.org/finder?docid=1011511&prefer=content)实际上明确允许我们正在做的用法。 以下是相关摘录(重要部分已标明):

> 你不得:
>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/fr/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Le code source de cette application est disponible afin de donner à tous la pos

## :thinking: Cette application enfreint-elle les conditions d'utilisation de JW.org ?

**Non.** Les [conditions d'utilisation](https://www.jw.org/finder?docid=1011511\&prefer=content) autorisent en fait explicitement le type d'utilisation que nous faisons. Voici l'extrait pertinent de ces conditions :
**Non.** Les [conditions d'utilisation](https://www.jw.org/finder?docid=1011511&prefer=content) autorisent en fait explicitement le type d'utilisation que nous faisons. Voici l'extrait pertinent de ces conditions :

> Il n’est pas permis de :
>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/hu/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Az alkalmazás forráskódja mindenki számára elérhető, hogy megvizsgálja

## :thinking: Ez az alkalmazás sérti a JW.org felhasználási feltételeit?

**Nem.** A [JW.org Felhasználási feltételek](https://www.jw.org/finder?docid=1011511\&prefer=content) kifejezetten engedélyezik az általunk alkalmazott felhasználási módot. Here is the relevant excerpt from those terms (emphasis added):
**Nem.** A [JW.org Felhasználási feltételek](https://www.jw.org/finder?docid=1011511&prefer=content) kifejezetten engedélyezik az általunk alkalmazott felhasználási módot. Here is the relevant excerpt from those terms (emphasis added):

> Tilos:
>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/nl/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ De broncode voor deze app is voor iedereen beschikbaar om te onderzoeken en cont

## :thinking: Gaat deze applicatie in tegen de gebruikersvoorwaarden van JW.org?

**Nee** De [jw.org gebruiksvoorwaarden](https://www.jw.org/finder?docid=1011511\&prefer=content) staat expliciet het soort gebruik toe dat we maken. Hier is het relevante stukje van de gebruiksvoorwaarden (nadruk toegevoegd):
**Nee** De [jw.org gebruiksvoorwaarden](https://www.jw.org/finder?docid=1011511&prefer=content) staat expliciet het soort gebruik toe dat we maken. Hier is het relevante stukje van de gebruiksvoorwaarden (nadruk toegevoegd):

> Het is niet toegestaan:
>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pt-pt/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ O código-fonte desta app está disponível para que todos possam examinar e ver

## :thinking: Este aplicativo infringe os Termos de Uso do JW.org?

**Não.** Os [Termos de Uso do JW.org](https://www.jw.org/finder?docid=1011511\&prefer=content) permitem explicitamente o tipo de uso que estamos a fazer. Here is the relevant excerpt from those terms (emphasis added):
**Não.** Os [Termos de Uso do JW.org](https://www.jw.org/finder?docid=1011511&prefer=content) permitem explicitamente o tipo de uso que estamos a fazer. Here is the relevant excerpt from those terms (emphasis added):

> Você não pode:
>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pt/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ O código fonte para este aplicativo está disponível para todos examinarem e v

## :thinking: Este aplicativo infringe os Termos de Uso do JW.org?

**Não.** Os [Termos de Uso](https://www.jw.org/finder?docid=1011511\&prefer=content) na verdade permitem claramente o tipo de uso que estamos fazendo. Here is the relevant excerpt from those terms (emphasis added):
**Não.** Os [Termos de Uso](https://www.jw.org/finder?docid=1011511&prefer=content) na verdade permitem claramente o tipo de uso que estamos fazendo. Here is the relevant excerpt from those terms (emphasis added):

> Você não pode:
>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/ru/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The source code for this app is available for all to examine and verify what goe

## :thinking: Нарушает ли это приложение условия использования JW.org?

**Нет.** [Условия пользования JW.org](https://www.jw.org/finder?docid=1011511\&prefer=content) разрешают тип пользования, которым мы занимаемся. Here is the relevant excerpt from those terms (emphasis added):
**Нет.** [Условия пользования JW.org](https://www.jw.org/finder?docid=1011511&prefer=content) разрешают тип пользования, которым мы занимаемся. Here is the relevant excerpt from those terms (emphasis added):

> You may not:
>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/sl/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Izvorna koda tega programa je na voljo vsem, da jo lahko preučijo in preverijo,

## :thinking: Ali ta aplikacija krši Pogoje uporabe jw.org?

**Ne.** [Pogoji uporabe na jw.org](https://www.jw.org/finder?docid=1011511\&prefer=content) dejansko izrecno dovoljujejo takšno uporabo, kot jo izvajamo mi. Tukaj je odlomek iz teh pogojev (poudarili mi):
**Ne.** [Pogoji uporabe na jw.org](https://www.jw.org/finder?docid=1011511&prefer=content) dejansko izrecno dovoljujejo takšno uporabo, kot jo izvajamo mi. Tukaj je odlomek iz teh pogojev (poudarili mi):

> Ni vam dovoljeno:
>
Expand Down
10 changes: 0 additions & 10 deletions docs/utils/general.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,2 @@
export const camelToKebabCase = (str: string) =>
str.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`);

export const parseJsonSafe = <T>(json: null | string | T, fallback: T): T => {
if (!json) return fallback;
try {
return typeof json === 'string' ? (JSON.parse(json) as T) : json;
} catch (e) {
console.error(e);
return fallback;
}
};
12 changes: 11 additions & 1 deletion src/helpers/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,14 @@ const getTimeOptions = (options: SettingsItemOption[] | undefined) => {
}
};

export { getActions, getDateOptions, getRules, getTimeOptions };
const parseJsonSafe = <T>(json: null | string | T, fallback: T): T => {
if (!json) return fallback;
try {
return typeof json === 'string' ? (JSON.parse(json) as T) : json;
} catch (e) {
console.error(e);
return fallback;
}
};

export { getActions, getDateOptions, getRules, getTimeOptions, parseJsonSafe };
2 changes: 1 addition & 1 deletion src/stores/app-settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import type {
SettingsValues,
} from 'src/types';

import { parseJsonSafe } from 'app/docs/utils/general';
import { defineStore } from 'pinia';
import { LocalStorage as QuasarStorage, uid } from 'quasar';
import { electronApi } from 'src/helpers/electron-api';
Expand All @@ -18,6 +17,7 @@ import {
getOldPrefsPaths,
parsePrefsFile,
} from 'src/helpers/migrations';
import { parseJsonSafe } from 'src/helpers/settings';
import { useCongregationSettingsStore } from 'src/stores/congregation-settings';
import { useJwStore } from 'src/stores/jw';

Expand Down

0 comments on commit 815eafc

Please sign in to comment.