chore(scripts/utils, scripts/style-handler): add filter() method, change stylesheet target directory

the `filter()` function can both filter a common array and at the same time, it can also filter an Accessor Array(Accessor<Array<T>> and return an Accessor when provided Array is an Accessor Array. Stylesheet directory changed to colorshell's cache dir, making sense, since it's a temporary file generated by the shell
This commit is contained in:
retrozinndev
2025-07-30 17:28:55 -03:00
parent 8e0bc424fd
commit ca187a26ed
3 changed files with 16 additions and 4 deletions
+3 -1
View File
@@ -12,9 +12,11 @@ import GLib from "gi://GLib?version=2.0";
export class Stylesheet {
private static instance: Stylesheet;
#watchDelay: (AstalIO.Time|undefined);
#outputPath = Gio.File.new_for_path(`${GLib.get_user_state_dir()}/ags/style`);
#outputPath = Gio.File.new_for_path(`${GLib.get_user_cache_dir()}/colorshell/style`);
#styles = [ "./style", "./style.scss" ];
public get stylePath() { return this.#outputPath.get_path()!; }
public async compileSass(): Promise<void> {
console.log("Stylesheet: Compiling Sass");