Просмотр исходного кода

Moved oauth module to Security group in system settings

TC pushbot 5 4 лет назад
Родитель
Сommit
5ee2306557

+ 1 - 0
file_system.go

@@ -2087,6 +2087,7 @@ func system_fs_handleList(w http.ResponseWriter, r *http.Request) {
 			userinfo.GetHomeDirectory()
 		} else {
 			//Folder not exists
+			log.Println("[File Explorer] Requested path: ", realpath, " does not exists!")
 			sendJSONResponse(w, "{\"error\":\"Folder not exists\"}")
 			return
 		}

+ 1 - 1
oauth.go

@@ -29,7 +29,7 @@ func OAuthInit() {
 		Name:         "OAuth",
 		Desc:         "Allows external account access to system",
 		IconPath:     "SystemAO/advance/img/small_icon.png",
-		Group:        "Advance",
+		Group:        "Security",
 		StartDir:     "SystemAO/advance/oauth.html",
 		RequireAdmin: true,
 	})

+ 1 - 1
startup.flags.go

@@ -21,7 +21,7 @@ func StartupFlagsInit() {
 	//Register a boot flag modifier
 	registerSetting(settingModule{
 		Name:         "Startup",
-		Desc:         "Platform Startup Flags",
+		Desc:         "Change startup paramter in runtime",
 		IconPath:     "SystemAO/info/img/small_icon.png",
 		Group:        "Info",
 		StartDir:     "SystemAO/boot/bootflags.html",

+ 3 - 3
web/SystemAO/boot/bootflags.html

@@ -66,10 +66,10 @@
                     <div class="ui checkbox">
                     <input type="checkbox" tabindex="0" onchange="toggleConfirmBtn(this.checked)">
                     <label>I know exactly what I am doing</label>
-                    <small>I also understand the risk related to changing boot configuration.</small>
+                    <small>These changes are only applied to current runtime session. If something messed up, you can restart your system for restoring to default value. </small>
                     </div>
                 </div>
-                <button id="confirmbtn" class="ui red disabled button" type="submit">Write to Boot File</button>
+                <button id="confirmbtn" class="ui red disabled button" type="submit">Write to Runtime</button>
             </form>
             <div class="ui red message" style="display:none;" id="failedmsg">
                 <div class="header">
@@ -81,7 +81,7 @@
             </div>
             <div id="succmsg" class="ui green message transition" style="display:none;">
                 <div class="header">
-                    <i class="checkmark icon"></i> Startup Flags Updated
+                    <i class="checkmark icon"></i> Startup paramter Updated
                 </div>
                 <ul class="list">
                     <p>Some functions might require a reboot to take effects.</p>

+ 2 - 1
web/SystemAO/disk/backup/backups.html

@@ -33,13 +33,14 @@
               <th>Source Disk (UUID)</th>
               <th>Mode</th>
               <th>Last Cycle Time</th>
-              <th>Cycle Counter</th>
+              <th>Cycle Counter*</th>
               <th>Action</th>
             </tr></thead>
             <tbody id="diskTable">
           
             </tbody>
         </table>
+        <small>*Cycle counter is not equal to the number of times the backup has executed. It is a reference number for developer only.</small>
         <div class="ui divider"></div>
         <button class="ui tiny right floated green button" onclick="initBackupDiskList();"><i class="refresh icon"></i> Refresh List</button>
         <button class="ui tiny basic button" onclick="toggleModeInfo();"><i class="question icon"></i> Know more about backup modes</button>

+ 1 - 1
web/SystemAO/file_system/file_explorer.html

@@ -1472,7 +1472,7 @@
 
                         if (data.error !== undefined){
                             //Parse path error. Try to refresh the page
-                            console.log("Path prase error! Redirecting to parent directory.", data.error);
+                            console.log("Path parse error! Redirecting to parent directory.", data.error);
                             var pdir = currentPath.split("/");
                             pdir.pop(); pdir.pop();
                             pdir = pdir.join("/");