summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2026-09-02 19:39:04 +0800
committerlittleblack111 <littleblack11111@gmail.com>2026-09-02 19:39:04 +0800
commit8a0e2e4241a74e14d3a992ecbc9f5050fc3f04d5 (patch)
tree196afd399cb36344d3e490df1ecd55f606f73a8e
parentf7a43077fe4e139dd7e3f46f448e0951740ec148 (diff)
fix: qmlfmt
-rw-r--r--.github/workflows/ci.yml4
-rw-r--r--popups/launcher/components/Finder.qml0
-rw-r--r--popups/launcher/components/Flight.qml0
-rw-r--r--popups/launcher/components/Time.qml0
-rw-r--r--popups/launcher/components/Translate.qml0
-rw-r--r--popups/launcher/components/Weather.qml0
-rw-r--r--popups/launcher/components/Web.qml0
-rw-r--r--utils/Directories.qml66
8 files changed, 36 insertions, 34 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1fe2990..682574a 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -170,7 +170,9 @@ jobs:
prettier --check "utils/**/*.js"
- name: Check QML/JS Format
- run: find . \( -name "*.qml" -o -name "*.js" \) -exec /usr/lib/qt6/bin/qmlformat {} +
+ env:
+ QT_LOGGING_RULES: qt.qmldom*=false
+ run: find . \( -name "*.qml" \) -exec /usr/lib/qt6/bin/qmlformat {} +
- name: Lint Shell
run: shellcheck utils/*.sh
diff --git a/popups/launcher/components/Finder.qml b/popups/launcher/components/Finder.qml
deleted file mode 100644
index e69de29..0000000
--- a/popups/launcher/components/Finder.qml
+++ /dev/null
diff --git a/popups/launcher/components/Flight.qml b/popups/launcher/components/Flight.qml
deleted file mode 100644
index e69de29..0000000
--- a/popups/launcher/components/Flight.qml
+++ /dev/null
diff --git a/popups/launcher/components/Time.qml b/popups/launcher/components/Time.qml
deleted file mode 100644
index e69de29..0000000
--- a/popups/launcher/components/Time.qml
+++ /dev/null
diff --git a/popups/launcher/components/Translate.qml b/popups/launcher/components/Translate.qml
deleted file mode 100644
index e69de29..0000000
--- a/popups/launcher/components/Translate.qml
+++ /dev/null
diff --git a/popups/launcher/components/Weather.qml b/popups/launcher/components/Weather.qml
deleted file mode 100644
index e69de29..0000000
--- a/popups/launcher/components/Weather.qml
+++ /dev/null
diff --git a/popups/launcher/components/Web.qml b/popups/launcher/components/Web.qml
deleted file mode 100644
index e69de29..0000000
--- a/popups/launcher/components/Web.qml
+++ /dev/null
diff --git a/utils/Directories.qml b/utils/Directories.qml
index f643a78..b71277c 100644
--- a/utils/Directories.qml
+++ b/utils/Directories.qml
@@ -7,54 +7,54 @@ import Quickshell
import Quickshell.Hyprland
Singleton {
- /**
+ /**
* Trims the File protocol off the input string
* @param {string} str
* @returns {string}
*/
- function trimFileProtocol(str) {
- return str.startsWith("file://") ? str.slice(7) : str;
- }
+ function trimFileProtocol(str) {
+ return str.startsWith("file://") ? str.slice(7) : str;
+ }
- /**
+ /**
* Extracts the file name from a file path
* @param {string} str
* @returns {string}
*/
- function fileNameForPath(str) {
- if (typeof str !== "string")
- return "";
- const trimmed = trimFileProtocol(str);
- return trimmed.split(/[\\/]/).pop();
- }
+ function fileNameForPath(str) {
+ if (typeof str !== "string")
+ return "";
+ const trimmed = trimFileProtocol(str);
+ return trimmed.split(/[\\/]/).pop();
+ }
- /**
+ /**
* Removes the file extension from a file path or name
* @param {string} str
* @returns {string}
*/
- function trimFileExt(str) {
- if (typeof str !== "string")
- return "";
- const trimmed = trimFileProtocol(str);
- const lastDot = trimmed.lastIndexOf(".");
- if (lastDot > -1 && lastDot > trimmed.lastIndexOf("/")) {
- return trimmed.slice(0, lastDot);
- }
- return trimmed;
- }
+ function trimFileExt(str) {
+ if (typeof str !== "string")
+ return "";
+ const trimmed = trimFileProtocol(str);
+ const lastDot = trimmed.lastIndexOf(".");
+ if (lastDot > -1 && lastDot > trimmed.lastIndexOf("/")) {
+ return trimmed.slice(0, lastDot);
+ }
+ return trimmed;
+ }
- // XDG Dirs, with "file://"
- readonly property string config: StandardPaths.standardLocations(StandardPaths.ConfigLocation)[0]
- readonly property string state: StandardPaths.standardLocations(StandardPaths.StateLocation)[0]
- readonly property string cache: StandardPaths.standardLocations(StandardPaths.CacheLocation)[0]
- readonly property string pictures: StandardPaths.standardLocations(StandardPaths.PicturesLocation)[0]
- readonly property string downloads: StandardPaths.standardLocations(StandardPaths.DownloadLocation)[0]
+ // XDG Dirs, with "file://"
+ readonly property string config: StandardPaths.standardLocations(StandardPaths.ConfigLocation)[0]
+ readonly property string state: StandardPaths.standardLocations(StandardPaths.StateLocation)[0]
+ readonly property string cache: StandardPaths.standardLocations(StandardPaths.CacheLocation)[0]
+ readonly property string pictures: StandardPaths.standardLocations(StandardPaths.PicturesLocation)[0]
+ readonly property string downloads: StandardPaths.standardLocations(StandardPaths.DownloadLocation)[0]
- property string clipHistMetaDataPath: `${state}/cliphist.json`
+ property string clipHistMetaDataPath: `${state}/cliphist.json`
- // Cleanup on init
- Component.onCompleted: {
- Quickshell.execDetached(["touch", trimFileProtocol(clipHistMetaDataPath)]);
- }
+ // Cleanup on init
+ Component.onCompleted: {
+ Quickshell.execDetached(["touch", trimFileProtocol(clipHistMetaDataPath)]);
+ }
}