Ver Fonte

Added agi share structure

tobychui há 3 anos atrás
pai
commit
9d545770d2
3 ficheiros alterados com 22 adições e 1 exclusões
  1. 19 0
      mod/agi/agi.share.go
  2. 2 0
      web/SystemAO/locale/desktop.json
  3. 1 1
      web/desktop.system

+ 19 - 0
mod/agi/agi.share.go

@@ -0,0 +1,19 @@
+package agi
+
+import (
+	"log"
+
+	"github.com/robertkrimen/otto"
+	user "imuslab.com/arozos/mod/user"
+)
+
+func (g *Gateway) ShareLibRegister() {
+	err := g.RegisterLib("share", g.injectIoTFunctions)
+	if err != nil {
+		log.Fatal(err)
+	}
+}
+
+func (g *Gateway) injectShareFunctions(vm *otto.Otto, u *user.User) {
+
+}

+ 2 - 0
web/SystemAO/locale/desktop.json

@@ -28,6 +28,8 @@
                 "error/connlost":"與伺服器的連線中斷。請等待此警告牌消失再作進一步操作",
                 "error/connlost/recheck":"重試",
                 "error/connlost/wait":"等待",
+                "error/connlost/readonly":"[唯讀] 帳戶",
+                "error/connlost/readonl/infoy":"由於此帳戶被鎖定在唯讀狀態,因此你無法在桌面進行任何檔案操作。",
 
                 "quickAccess/logout": "登出",
                 "quickAccess/sysvol":"系統音量",

+ 1 - 1
web/desktop.system

@@ -5969,7 +5969,7 @@
             });
 
             if (!allowReadWrite){
-                sendNotification("READ ONLY Account", "This account is read only. You cannot perform any file operations on this desktop.");
+                sendNotification(applocale.getString("error/connlost/readonly", "READ ONLY Account"), applocale.getString("error/connlost/readonl/infoy", "This account is read only. You cannot perform any file operations on this desktop."));
             }
         }