-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
545 additions
and
467 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,35 @@ | ||
{ | ||
"env": { | ||
"es2021": true | ||
}, | ||
"extends": "airbnb/base", | ||
"parserOptions": { | ||
"ecmaVersion": "latest" | ||
}, | ||
"ignorePatterns": ["@types/", "node_modules/"], | ||
"rules": { | ||
"indent": [ | ||
"error", | ||
4 | ||
], | ||
"arrow-parens": ["error", "as-needed"], | ||
"no-underscore-dangle": [ | ||
"error", | ||
{ | ||
"allowAfterThis": true, | ||
"allowAfterSuper": true | ||
} | ||
], | ||
"no-unused-vars": [ | ||
"error", | ||
{ | ||
"varsIgnorePattern": "^(init|enable|disable|buildPrefsWidget)$" | ||
} | ||
], | ||
"eol-last": ["error", "never"], | ||
"strict": "off", | ||
"no-plusplus": "off", | ||
"max-len": [ | ||
"error", | ||
120 | ||
] | ||
}, | ||
"globals": { | ||
"imports": "readonly", | ||
"log": "readonly" | ||
} | ||
"env": { "es2021": true }, | ||
"plugins": ["import"], | ||
"extends": ["eslint:recommended"], | ||
"parserOptions": { | ||
"ecmaVersion": 2022, | ||
"sourceType": "module" | ||
}, | ||
"ignorePatterns": ["@types/", "node_modules/"], | ||
"rules": { | ||
"quotes": ["error", "single"], | ||
"no-tabs": "off", | ||
"indent": ["error", "tab"], | ||
"semi": ["error", "never"], | ||
"arrow-parens": ["error", "as-needed", { "requireForBlockBody": true }], | ||
"no-trailing-spaces": "error", | ||
"comma-dangle": ["error", "always-multiline"], | ||
"newline-before-return": "error", | ||
"no-underscore-dangle": ["error", { "allowAfterThis": true, "allowAfterSuper": true }], | ||
"no-unused-vars": "error", | ||
"eol-last": ["error", "always"], | ||
"strict": "off", | ||
"no-plusplus": "off", | ||
"max-len": ["error", 120], | ||
"import/extensions": 0, | ||
"import/newline-after-import": ["error", { "count": 2 }], | ||
"import/no-unresolved": [2, { "ignore": ["^(resource|gi)"] }], | ||
"no-warning-comments": ["error", { "terms": ["fixme"], "location": "anywhere" }] | ||
}, | ||
"globals": { | ||
"log": "readonly", | ||
"logError": "readonly", | ||
"TextDecoder": "readonly" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,6 @@ yarn.lock | |
package-lock.json | ||
docs-lock.json | ||
src/schemas/gschemas.compiled | ||
po/*~ | ||
po/*~ | ||
tsconfig.alias.json | ||
.#* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,8 @@ | ||
{ | ||
"environments": [ | ||
"gjs" | ||
], | ||
"modules": [ | ||
"Gtk-4.0", | ||
"Gtk-3.0", | ||
"Soup-2.4", | ||
"Shell-0.1", | ||
"St-1.0", | ||
"Adw-1", | ||
"Clutter-10", | ||
"Meta-10" | ||
], | ||
"prettify": true, | ||
"girDirectories": [ | ||
"/usr/share/gir-1.0", | ||
"/usr/share/gnome-shell", | ||
"/usr/lib64/mutter-10/" | ||
], | ||
"outdir": "node_modules/@types" | ||
} | ||
"environments": ["gjs"], | ||
"ignoreVersionConflicts": true, | ||
"buildType": "types", | ||
"generateAlias": true, | ||
"prettify": true, | ||
"outdir": "./@types" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "ES2022", | ||
"allowJs": true, | ||
"noEmit": true, | ||
"skipLibCheck": true, | ||
"module": "ES2022", | ||
"baseUrl": ".", | ||
"paths": { | ||
"gi://Adw": ["@types/adw-1.d.ts"], | ||
"gi://Gtk": ["@types/gtk-4.0.d.ts"], | ||
"gi://GLib": ["@types/glib-2.0.d.ts"], | ||
"gi://Gio": ["@types/gio-2.0.d.ts"], | ||
"gi://Shell": ["@types/shell-12.d.ts"], | ||
"gi://St": ["@types/st-12.d.ts"], | ||
"gi://Gdk": ["@types/gdk-4.0.d.ts"], | ||
"gi://GObject": ["@types/gobject-2.0.d.ts"] | ||
}, | ||
"rootDirs": ["src"] | ||
}, | ||
"include": [ | ||
"src/**/*", | ||
"@types/gjs.d.ts", | ||
"@types/dom.d.ts" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
/* eslint-disable no-var, no-unused-vars */ | ||
export const LOG_PREFIX = 'RuncatExtension' | ||
export const LOG_ERROR_PREFIX = 'RuncatExtensionError' | ||
|
||
var SCHEMA_PATH = 'org.gnome.shell.extensions.runcat'; | ||
var LOG_ERROR_PREFIX = 'RuncatExtensionError'; | ||
const CHARACTER_AND_PERCENTAGE = 0 | ||
const PERCENTAGE_ONLY = 1 | ||
const CHARACTER_ONLY = 2 | ||
|
||
const CHARACTER_AND_PERCENTAGE = 0; | ||
const PERCENTAGE_ONLY = 1; | ||
const CHARACTER_ONLY = 2; | ||
export const displayingItems = { | ||
[CHARACTER_AND_PERCENTAGE]: { character: true, percentage: true }, | ||
[PERCENTAGE_ONLY]: { character: false, percentage: true }, | ||
[CHARACTER_ONLY]: { character: true, percentage: false }, | ||
} | ||
|
||
var PanelMenuButtonVisibility = { | ||
[CHARACTER_AND_PERCENTAGE]: { character: true, percentage: true }, | ||
[PERCENTAGE_ONLY]: { character: false, percentage: true }, | ||
[CHARACTER_ONLY]: { character: true, percentage: false }, | ||
}; | ||
export const gioSettingsKeys = { | ||
IDLE_THRESHOLD: 'idle-threshold', | ||
DISPLAYING_ITEMS: 'displaying-items', | ||
} | ||
|
||
var Settings = { | ||
IDLE_THRESHOLD: 'idle-threshold', | ||
DISPLAYING_ITEMS: 'displaying-items', | ||
}; | ||
|
||
var SYSTEM_MONITOR_COMMAND = 'gnome-system-monitor -r'; | ||
export const SYSTEM_MONITOR_COMMAND = 'gnome-system-monitor -r' |
Oops, something went wrong.