Compare commits

...

6 commits

Author SHA1 Message Date
Louis Lam bec5460395
Update README.md 2023-12-06 03:14:14 +08:00
Louis Lam 4e899dcf21 Fix: Arabic to RTL 2023-12-05 16:57:10 +08:00
Louis Lam 8296c7b18f Update to 1.3.2 2023-12-05 03:01:46 +08:00
Louis Lam 607c908f2d Fix #236 2023-12-05 03:01:06 +08:00
Louis Lam bd5dd3c3ad Update to 1.3.1 2023-12-05 02:47:05 +08:00
Louis Lam 6eca6dc59f
Fix #234 (#235) 2023-12-05 02:41:25 +08:00
5 changed files with 10 additions and 5 deletions

View file

@ -131,7 +131,7 @@ Be sure to read the [guide](https://github.com/louislam/dockge/blob/master/CONTR
#### "Dockge"?
"Dockge" is a coinage word which is created by myself. I hope it sounds like `Dodge`.
"Dockge" is a coinage word which is created by myself. I originally hoped it sounds like `Dodge`, but apparently many people called it `Dockage`, it is also acceptable.
The naming idea came from Twitch emotes like `sadge`, `bedge` or `wokege`. They all end in `-ge`.

View file

@ -234,7 +234,7 @@ export class DockerSocketHandler extends SocketHandler {
socket.on("getDockerNetworkList", async (callback) => {
try {
checkLogin(socket);
const dockerNetworkList = server.getDockerNetworkList();
const dockerNetworkList = await server.getDockerNetworkList();
callback({
ok: true,
dockerNetworkList,

View file

@ -297,7 +297,12 @@ export class Stack {
let res = await childProcessAsync.spawn("docker", [ "compose", "ls", "--all", "--format", "json" ], {
encoding: "utf-8",
});
let composeList = JSON.parse(res.toString());
if (!res.stdout) {
return statusList;
}
let composeList = JSON.parse(res.stdout.toString());
for (let composeStack of composeList) {
statusList.set(composeStack.Name, this.statusConvert(composeStack.Status));

View file

@ -39,7 +39,7 @@ for (let lang in languageList) {
};
}
const rtlLangs = [ "fa", "ar-SY", "ur" ];
const rtlLangs = [ "fa", "ar-SY", "ur", "ar" ];
export const currentLocale = () => localStorage.locale
|| languageList[navigator.language] && navigator.language

View file

@ -1,6 +1,6 @@
{
"name": "dockge",
"version": "1.3.0",
"version": "1.3.2",
"type": "module",
"engines": {
"node": ">= 18.0.0 && <= 18.17.1"