c25f24b72f
Other: Make ESLint ignore unused import
2023-10-05 15:06:47 +02:00
d903274d73
Other: Require trailing commas for multiline for most
...
Require trailing commas for multiline for arrays, objects, imports and
exports and disallow trailing commas for functions.
Do this by updating the ESLint config and fixing new complaints.
The reason for this change are the resulting future cleaner version
diffs.
Also see:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Trailing_commas
https://eslint.org/docs/latest/rules/comma-dangle
2023-10-05 14:50:36 +02:00
5ea8f4aabe
Refactor: Move GObject.registerClass calls into static init. blocks
...
Do that since it standardizes the code and also is just cleaner.
2023-10-04 03:58:21 +02:00
9b7ab0614c
Feature: Add move up and down buttons to make the prefs keyboard access.
...
Don't use CONSTRUCT_ONLY anymore to be able to use private properties
(or any properties at all it seems).
2023-10-04 03:57:42 +02:00
a1188d5684
Breaking: Migrate extension to the new ESM system of GNOME 45
...
Migrate with the help of, among others, the following resources:
https://blogs.gnome.org/shell-dev/2023/09/02/extensions-in-gnome-45/
https://gjs.guide/extensions/upgrading/gnome-shell-45.html
Only support GNOME Shell version 45, since only 45 is compatible with
the new ESM system.
Since panel._originalAddToPanelBox is no longer valid, just overwrite
using the prototype on disable.
Add "sourceType": "module" to eslintrc.yml to get rid of:
"Parsing error: 'import' and 'export' may appear only with 'sourceType:
module'"
See here:
https://eslint.org/docs/latest/use/configure/language-options#specifying-parser-options
2023-10-04 03:57:35 +02:00
cedb54ed64
Other: Disallow omitting curly braces and enforce one true brace style
...
Do this by updating the ESLint config accordingly and also fix new
complaints.
2023-01-28 23:34:15 +01:00
0401790fed
Refactor: Don't add ScrollManag. inst. to this, since thats not needed
2023-01-28 22:46:10 +01:00
dc7ad73db4
Other: Handle ESLint complaints
2023-01-24 19:33:11 +01:00
d7ec1156e2
Refactor: Setup and handle all of DND scroll. in #setupDNDScroll func.
...
Also handle drag events in this function so connecting to "drag-end" in
widgets with "GtkDragSource" and a `globalThis` `ScrollManager` instance
aren't needed.
2023-01-24 18:33:15 +01:00
f7309e7f65
Refactor: Simplify PrefsPage UI file and get rid of InternalChildren
2023-01-22 21:12:05 +01:00
5362629f94
Refactor: Add PrefsBoxOrderListBoxes via UI file a. let them self-init
...
Add the `PrefsBoxOrderListBox`es to the `PrefsPage` via the
`PrefsPage`es UI file.
Also let the `PrefsBoxOrderListBox`es initialize themselves based on the
given box order.
2023-01-22 19:28:55 +01:00
c54e24c151
Refactor: Add ScrollManager instance to globalThis
...
Do this so that we don't have to pass the `ScrollManager` instance to
each `PrefsBoxOrderItemRow` instance. This is useful for future
refactors.
2023-01-22 19:28:49 +01:00
34ba8a58cd
Refactor: Add settings to globalThis
...
Do this so that we don't have to get them in each class individually.
2023-01-22 15:48:35 +01:00
2f9f4d1a3f
Refactor: Use constructor instead of _init
2023-01-22 15:16:56 +01:00
cda099be24
Refactor: Move PrefsPage class into own file (PrefsPage.js)
2023-01-22 15:10:43 +01:00