Commit graph

3108 commits

Author SHA1 Message Date
d339c35279 feat: add new changes 2022-12-03 18:59:23 +03:00
tfuxu
3f10e87e04
Move modules to new backend/frontend directories (#668)
# Description

This is a yet another refactoring PR (I promise this will be the last
_major_ one), this time I based it on a codebase structure used by
Bottles project. The new structure should be more readable, and easier
to navigate. Also, as a nice small bonus, I've included `struct.md`
files inside `frontend/` and `backend/` directories with small
descriptions for subdirectories.

## Type of change

<!-- What type of change does your pull request introduce? Put an `x` in
the box that apply. -->
- [x] Refactor
- [ ] Bugfix (Change which fixes a issue)
- [ ] New feature (Change which adds new functionality)
- [ ] Enhancement (Change which slightly improves existing code)
- [ ] Breaking change (This change will introduce incompatibility with
existing functionality)

## Changelog <!-- This is optional, but highly appreciated. -->

- Rename `utils/css.py` to `utils/css_parser.py` and
`utils/custom_presets.py` to `utils/preset_downloader.py`,
- Move modules to new backend/frontend directories,
- Change module name from `utils.py` to `common.py`,
- Format some modules for better readability

## Testing

- [x] I have tested my changes and verified that they work as expected
<!-- Required, your PR won't be accepted if you don't do this step. -->

### How to test the changes

Just check if everything is working as expected in every build method
(I've tested this PR with manual and Flatpak methods)
2022-12-03 16:48:02 +01:00
tfuxu
ca9970d23b
Merge branch 'main' into rework-code-structure 2022-12-03 13:43:51 +01:00
Hosted Weblate
eb2b4a5b26
translate: update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/
2022-12-03 13:12:45 +01:00
Gradience Bot
62c99f34f9 ci: generate .pot file 2022-12-03 12:12:40 +00:00
yangyangdaji
b58ece34cb
translate: translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (244 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/zh_Hans/
2022-12-03 04:48:07 +01:00
Hosted Weblate
f94f2a7c49
translate: update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/
2022-12-03 01:40:40 +01:00
Gradience Bot
eae39a3925 ci: generate .pot file 2022-12-03 00:37:44 +00:00
tfuxu
91b532ae9c
Merge branch 'main' into rework-code-structure 2022-12-02 23:56:10 +01:00
tfuxu
df73f3d006
misc: make code more readable 2022-12-02 23:37:41 +01:00
tfuxu
5e42501691
rename: change module name from utils.py to common.py 2022-12-02 23:21:55 +01:00
tfuxu
30a9fdb613
move modules to new backend/frontend directories 2022-12-02 22:52:47 +01:00
Sabri Ünal
e956b64a39
translate: translated using Weblate (Turkish)
Currently translated at 100.0% (244 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/tr/
2022-12-02 22:47:43 +01:00
rene-coty
56663066f7
translate: translated using Weblate (French)
Currently translated at 100.0% (244 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/fr/
2022-12-02 22:47:43 +01:00
Ali Aljishi
48828fd860
translate: translated using Weblate (Arabic)
Currently translated at 100.0% (244 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/ar/
2022-12-02 20:47:43 +01:00
Ali Aljishi
b2b3c4d60c
translate: translated using Weblate (Arabic)
Currently translated at 100.0% (244 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/ar/
2022-12-02 19:03:34 +01:00
9d61a36b79
translate: translated using Weblate (Ukrainian)
Currently translated at 0.8% (2 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/uk/
2022-12-02 19:01:55 +01:00
5f36f89e5d
translate: translated using Weblate (Romanian)
Currently translated at 88.9% (217 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/ro/
2022-12-02 19:01:55 +01:00
6feeef720c
translate: translated using Weblate (Indonesian)
Currently translated at 19.6% (48 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/id/
2022-12-02 19:01:54 +01:00
9b9713973f
translate: translated using Weblate (Korean)
Currently translated at 88.5% (216 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/ko/
2022-12-02 19:01:54 +01:00
27324f06e9
translate: translated using Weblate (Finnish)
Currently translated at 88.1% (215 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/fi/
2022-12-02 19:01:52 +01:00
71f9a82a9e
translate: translated using Weblate (Basque)
Currently translated at 47.1% (115 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/eu/
2022-12-02 19:01:52 +01:00
936e7f0e2a
translate: translated using Weblate (Tamil)
Currently translated at 100.0% (244 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/ta/
2022-12-02 19:01:51 +01:00
92e7478514
translate: translated using Weblate (Croatian)
Currently translated at 99.1% (242 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/hr/
2022-12-02 19:01:46 +01:00
4c9a335a0c
translate: translated using Weblate (Swedish)
Currently translated at 34.4% (84 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/sv/
2022-12-02 19:01:45 +01:00
aaf83d46e3
translate: translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (244 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/zh_Hans/
2022-12-02 19:01:44 +01:00
9650dcfd2f
translate: translated using Weblate (Italian)
Currently translated at 99.5% (243 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/it/
2022-12-02 19:01:44 +01:00
7514af1e39
translate: translated using Weblate (Occitan)
Currently translated at 20.4% (50 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/oc/
2022-12-02 19:01:43 +01:00
6416f1d80c
translate: translated using Weblate (Polish)
Currently translated at 88.1% (215 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/pl/
2022-12-02 19:01:42 +01:00
a10c568b8f
translate: translated using Weblate (Spanish)
Currently translated at 50.0% (122 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/es/
2022-12-02 19:01:42 +01:00
d9813b58af
translate: translated using Weblate (Dutch)
Currently translated at 99.5% (243 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/nl/
2022-12-02 19:01:41 +01:00
c89b361634
translate: translated using Weblate (Turkish)
Currently translated at 98.3% (240 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/tr/
2022-12-02 19:01:40 +01:00
8ef177850a
translate: translated using Weblate (Russian)
Currently translated at 100.0% (244 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/ru/
2022-12-02 19:01:39 +01:00
faf82d6849
translate: translated using Weblate (Portuguese (Brazil))
Currently translated at 47.1% (115 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/pt_BR/
2022-12-02 19:01:39 +01:00
944b9a646c
translate: translated using Weblate (French)
Currently translated at 99.5% (243 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/fr/
2022-12-02 19:01:38 +01:00
b0d4e5e5f1
translate: translated using Weblate (German)
Currently translated at 40.1% (98 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/de/
2022-12-02 19:01:37 +01:00
aa68bdfb1f
translate: translated using Weblate (Czech)
Currently translated at 28.2% (69 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/cs/
2022-12-02 19:01:37 +01:00
914cda2b5a
translate: translated using Weblate (Arabic)
Currently translated at 100.0% (244 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/ar/
2022-12-02 19:01:36 +01:00
6a4595a7b4
translate: translated using Weblate (Ukrainian)
Currently translated at 0.8% (2 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/uk/
2022-12-02 18:13:28 +01:00
17e30e128e
translate: translated using Weblate (Romanian)
Currently translated at 88.9% (217 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/ro/
2022-12-02 18:13:27 +01:00
f113e8e31c
translate: translated using Weblate (Indonesian)
Currently translated at 19.6% (48 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/id/
2022-12-02 18:13:27 +01:00
31e9079e5c
translate: translated using Weblate (Korean)
Currently translated at 88.5% (216 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/ko/
2022-12-02 18:13:26 +01:00
fa844c2273
translate: translated using Weblate (Finnish)
Currently translated at 88.1% (215 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/fi/
2022-12-02 18:13:26 +01:00
474d21314b
translate: translated using Weblate (Basque)
Currently translated at 47.1% (115 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/eu/
2022-12-02 18:13:25 +01:00
8fec589f15
translate: translated using Weblate (Tamil)
Currently translated at 100.0% (244 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/ta/
2022-12-02 18:13:24 +01:00
f59adb1df5
translate: translated using Weblate (Croatian)
Currently translated at 99.1% (242 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/hr/
2022-12-02 18:13:23 +01:00
0ab345a50a
translate: translated using Weblate (Swedish)
Currently translated at 34.4% (84 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/sv/
2022-12-02 18:13:22 +01:00
c288e1db74
translate: translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (244 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/zh_Hans/
2022-12-02 18:13:22 +01:00
31aaa205ba
translate: translated using Weblate (Italian)
Currently translated at 99.5% (243 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/it/
2022-12-02 18:13:21 +01:00
db6c6071f0
translate: translated using Weblate (Occitan)
Currently translated at 20.4% (50 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/oc/
2022-12-02 18:13:21 +01:00