mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-11-08 05:58:22 +01:00
feat: Setting displays versions info
All checks were successful
gitea-sync/antos-frontend/pipeline/head This commit looks good
All checks were successful
gitea-sync/antos-frontend/pipeline/head This commit looks good
This commit is contained in:
parent
04da2a9d39
commit
b99668f4f2
7
d.ts/antos.d.ts
vendored
7
d.ts/antos.d.ts
vendored
@ -284,6 +284,13 @@ declare namespace OS {
|
|||||||
* @returns {Promise<RequestResult>} a promise on a {@link RequestResult}
|
* @returns {Promise<RequestResult>} a promise on a {@link RequestResult}
|
||||||
*/
|
*/
|
||||||
function setting(): Promise<RequestResult>;
|
function setting(): Promise<RequestResult>;
|
||||||
|
/**
|
||||||
|
* Query the current versions of all system components
|
||||||
|
*
|
||||||
|
* @export
|
||||||
|
* @returns {Promise<RequestResult>} a promise on a {@link RequestResult}
|
||||||
|
*/
|
||||||
|
function versions(): Promise<RequestResult>;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -413,6 +413,17 @@ namespace OS {
|
|||||||
const p = `${API.REST}/system/settings`;
|
const p = `${API.REST}/system/settings`;
|
||||||
return API.post(p, OS.setting);
|
return API.post(p, OS.setting);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Query the current versions of all system components
|
||||||
|
*
|
||||||
|
* @export
|
||||||
|
* @returns {Promise<RequestResult>} a promise on a {@link RequestResult}
|
||||||
|
*/
|
||||||
|
export function versions(): Promise<RequestResult> {
|
||||||
|
const p = `${API.REST}/system/version`;
|
||||||
|
return API.get(p);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
module_files = main.js AppearanceHandle.js AppAndServiceHandle.js VFSHandle.js LocaleHandle.js StartupHandle.js
|
module_files = main.js AppearanceHandle.js AppAndServiceHandle.js VFSHandle.js LocaleHandle.js StartupHandle.js VersionsHandle.js
|
||||||
|
|
||||||
libfiles =
|
libfiles =
|
||||||
|
|
||||||
|
@ -40,6 +40,11 @@ afx-app-window[data-id = "setting-window"] afx-hbox[data-id="startup"] afx-list-
|
|||||||
}
|
}
|
||||||
|
|
||||||
afx-app-window[data-id = "setting-window"] afx-hbox[data-id="app-services"] afx-list-view
|
afx-app-window[data-id = "setting-window"] afx-hbox[data-id="app-services"] afx-list-view
|
||||||
|
{
|
||||||
|
border: 1px solid var(--border-quaternary);
|
||||||
|
}
|
||||||
|
|
||||||
|
afx-app-window[data-id = "setting-window"] afx-hbox[data-id="app-about"] afx-grid-view
|
||||||
{
|
{
|
||||||
border: 1px solid var(--border-quaternary);
|
border: 1px solid var(--border-quaternary);
|
||||||
}
|
}
|
@ -82,6 +82,7 @@ namespace OS {
|
|||||||
static StartupHandle: typeof SettingHandle;
|
static StartupHandle: typeof SettingHandle;
|
||||||
static SettingHandle: typeof SettingHandle;
|
static SettingHandle: typeof SettingHandle;
|
||||||
static AppAndServiceHandle: typeof SettingHandle;
|
static AppAndServiceHandle: typeof SettingHandle;
|
||||||
|
static VersionsHandle: typeof SettingHandle;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*Creates an instance of Setting.
|
*Creates an instance of Setting.
|
||||||
@ -105,6 +106,7 @@ namespace OS {
|
|||||||
new Setting.LocaleHandle(this.find("locale"), this);
|
new Setting.LocaleHandle(this.find("locale"), this);
|
||||||
new Setting.StartupHandle(this.find("startup"), this);
|
new Setting.StartupHandle(this.find("startup"), this);
|
||||||
new Setting.AppAndServiceHandle(this.find("app-services"), this);
|
new Setting.AppAndServiceHandle(this.find("app-services"), this);
|
||||||
|
new Setting.VersionsHandle(this.find("app-about"), this);
|
||||||
containter.selectedIndex = 0;
|
containter.selectedIndex = 0;
|
||||||
(this.find("btnsave") as GUI.tag.ButtonTag ).onbtclick = (e) => {
|
(this.find("btnsave") as GUI.tag.ButtonTag ).onbtclick = (e) => {
|
||||||
this._api
|
this._api
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"author": "Xuan Sang LE",
|
"author": "Xuan Sang LE",
|
||||||
"email": "xsang.le@gmail.com"
|
"email": "xsang.le@gmail.com"
|
||||||
},
|
},
|
||||||
"version":"0.1.5-b",
|
"version":"0.2.0-b",
|
||||||
"category":"System",
|
"category":"System",
|
||||||
"iconclass":"fa fa-wrench",
|
"iconclass":"fa fa-wrench",
|
||||||
"mimes":["none"]
|
"mimes":["none"]
|
||||||
|
@ -2,8 +2,7 @@
|
|||||||
<afx-vbox>
|
<afx-vbox>
|
||||||
<afx-tab-container data-id = "container" dir = "column" tabbarheight= "40" tabbarwidth="160">
|
<afx-tab-container data-id = "container" dir = "column" tabbarheight= "40" tabbarwidth="160">
|
||||||
|
|
||||||
<afx-hbox tabname="__(Appearance)" data-id="appearance" iconclass = "fa fa-paint-brush">
|
<afx-hbox tabname="__(Appearance)" data-id="appearance" iconclass = "fa fa-paint-brush" padding="10">
|
||||||
<div data-width="10"></div>
|
|
||||||
<afx-vbox>
|
<afx-vbox>
|
||||||
<afx-label text = "__(Wallpaper)" iconclass = "fa fa-image" class = "header" data-height="30"></afx-label>
|
<afx-label text = "__(Wallpaper)" iconclass = "fa fa-image" class = "header" data-height="30"></afx-label>
|
||||||
<afx-hbox>
|
<afx-hbox>
|
||||||
@ -21,11 +20,9 @@
|
|||||||
<afx-list-view data-height="35" data-id="theme-list" dropdown="true"></afx-list-view>
|
<afx-list-view data-height="35" data-id="theme-list" dropdown="true"></afx-list-view>
|
||||||
<div data-height="5"></div>
|
<div data-height="5"></div>
|
||||||
</afx-vbox>
|
</afx-vbox>
|
||||||
<div data-width="10"></div>
|
|
||||||
</afx-hbox>
|
</afx-hbox>
|
||||||
|
|
||||||
<afx-hbox data-id="vfs" tabname = "__(VFS)" iconclass = "fa fa-inbox">
|
<afx-hbox data-id="vfs" tabname = "__(VFS)" iconclass = "fa fa-inbox" padding="10">
|
||||||
<div data-width="10"></div>
|
|
||||||
<afx-vbox>
|
<afx-vbox>
|
||||||
<afx-label text = "__(Mount points)" iconclass = "fa fa-folder" class = "header" data-height="30"></afx-label>
|
<afx-label text = "__(Mount points)" iconclass = "fa fa-folder" class = "header" data-height="30"></afx-label>
|
||||||
<afx-list-view data-id="mplist"></afx-list-view>
|
<afx-list-view data-id="mplist"></afx-list-view>
|
||||||
@ -43,21 +40,17 @@
|
|||||||
</afx-hbox>
|
</afx-hbox>
|
||||||
<div data-height="10"></div>
|
<div data-height="10"></div>
|
||||||
</afx-vbox>
|
</afx-vbox>
|
||||||
<div data-width="10"></div>
|
|
||||||
</afx-hbox>
|
</afx-hbox>
|
||||||
|
|
||||||
<afx-hbox data-id="locale" tabname = "__(Languages)"iconclass = "fa fa-globe">
|
<afx-hbox data-id="locale" tabname = "__(Languages)"iconclass = "fa fa-globe" padding="10">
|
||||||
<div data-width="10"></div>
|
|
||||||
<afx-vbox>
|
<afx-vbox>
|
||||||
<afx-label text = "__(System locale)" iconclass = "fa fa-globe" class = "header" data-height="30"></afx-label>
|
<afx-label text = "__(System locale)" iconclass = "fa fa-globe" class = "header" data-height="30"></afx-label>
|
||||||
<afx-list-view data-id="lglist"></afx-list-view>
|
<afx-list-view data-id="lglist"></afx-list-view>
|
||||||
<div data-height="10"></div>
|
<div data-height="10"></div>
|
||||||
</afx-vbox>
|
</afx-vbox>
|
||||||
<div data-width="10"></div>
|
|
||||||
</afx-hbox>
|
</afx-hbox>
|
||||||
|
|
||||||
<afx-hbox data-id="startup" tabname = "__(Startup)" iconclass = "fa fa-cog">
|
<afx-hbox data-id="startup" tabname = "__(Startup)" iconclass = "fa fa-cog" padding="10">
|
||||||
<div data-width="10"></div>
|
|
||||||
<afx-vbox>
|
<afx-vbox>
|
||||||
<afx-label text = "__(Startup services)" iconclass = "fa fa-tasks" class = "header" data-height="30"></afx-label>
|
<afx-label text = "__(Startup services)" iconclass = "fa fa-tasks" class = "header" data-height="30"></afx-label>
|
||||||
<afx-list-view data-id="srvlist"></afx-list-view>
|
<afx-list-view data-id="srvlist"></afx-list-view>
|
||||||
@ -66,11 +59,9 @@
|
|||||||
<afx-list-view data-id="applist"></afx-list-view>
|
<afx-list-view data-id="applist"></afx-list-view>
|
||||||
<div data-height="10"></div>
|
<div data-height="10"></div>
|
||||||
</afx-vbox>
|
</afx-vbox>
|
||||||
<div data-width="10"></div>
|
|
||||||
</afx-hbox>
|
</afx-hbox>
|
||||||
|
|
||||||
<afx-hbox data-id="app-services" tabname = "__(Apps. and Services)" iconclass = "fa fa-adn">
|
<afx-hbox data-id="app-services" tabname = "__(Apps. and Services)" iconclass = "fa fa-adn" padding="10">
|
||||||
<div data-width="10"></div>
|
|
||||||
<afx-vbox>
|
<afx-vbox>
|
||||||
<afx-label text = "__(Services)" iconclass = "fa fa-tasks" class = "header" data-height="30"></afx-label>
|
<afx-label text = "__(Services)" iconclass = "fa fa-tasks" class = "header" data-height="30"></afx-label>
|
||||||
<afx-list-view data-id="sys-srvlist"></afx-list-view>
|
<afx-list-view data-id="sys-srvlist"></afx-list-view>
|
||||||
@ -79,7 +70,13 @@
|
|||||||
<afx-list-view data-id="sys-applist"></afx-list-view>
|
<afx-list-view data-id="sys-applist"></afx-list-view>
|
||||||
<div data-height="10"></div>
|
<div data-height="10"></div>
|
||||||
</afx-vbox>
|
</afx-vbox>
|
||||||
<div data-width="10"></div>
|
</afx-hbox>
|
||||||
|
|
||||||
|
<afx-hbox data-id="app-about" tabname = "__(Versions)" iconclass = "bi bi-info-square" padding="10">
|
||||||
|
<afx-vbox>
|
||||||
|
<afx-label text = "__(System versions)" iconclass = "bi bi-gear-wide-connected" class = "header" data-height="30"></afx-label>
|
||||||
|
<afx-grid-view data-id="grid-version"></afx-grid-view>
|
||||||
|
</afx-vbox>
|
||||||
</afx-hbox>
|
</afx-hbox>
|
||||||
|
|
||||||
</afx-tab-container>
|
</afx-tab-container>
|
||||||
|
Loading…
Reference in New Issue
Block a user