Change route path '/xui' to '/panel'

This commit is contained in:
Hamidreza Ghavami
2023-05-12 22:36:05 +04:30
parent 288374d5fa
commit b0871a6ef6
9 changed files with 35 additions and 35 deletions

View File

@@ -318,7 +318,7 @@
},
async getAllSetting() {
this.loading(true);
const msg = await HttpUtil.post("/xui/setting/all");
const msg = await HttpUtil.post("/panel/setting/all");
this.loading(false);
if (msg.success) {
this.oldAllSetting = new AllSetting(msg.obj);
@@ -329,7 +329,7 @@
},
async updateAllSetting() {
this.loading(true);
const msg = await HttpUtil.post("/xui/setting/update", this.allSetting);
const msg = await HttpUtil.post("/panel/setting/update", this.allSetting);
this.loading(false);
if (msg.success) {
await this.getAllSetting();
@@ -337,7 +337,7 @@
},
async updateUser() {
this.loading(true);
const msg = await HttpUtil.post("/xui/setting/updateUser", this.user);
const msg = await HttpUtil.post("/panel/setting/updateUser", this.user);
this.loading(false);
if (msg.success) {
this.user = {};
@@ -355,7 +355,7 @@
});
});
this.loading(true);
const msg = await HttpUtil.post("/xui/setting/restartPanel");
const msg = await HttpUtil.post("/panel/setting/restartPanel");
this.loading(false);
if (msg.success) {
this.loading(true);
@@ -364,7 +364,7 @@
}
},
async getUserSecret() {
const user_msg = await HttpUtil.post("/xui/setting/getUserSecret", this.user);
const user_msg = await HttpUtil.post("/panel/setting/getUserSecret", this.user);
if (user_msg.success) {
this.user = user_msg.obj;
}
@@ -372,7 +372,7 @@
},
async updateSecret() {
this.loading(true);
const msg = await HttpUtil.post("/xui/setting/updateUserSecret", this.user);
const msg = await HttpUtil.post("/panel/setting/updateUserSecret", this.user);
if (msg.success) {
this.user = msg.obj;
window.location.replace(basePath + "logout")
@@ -399,7 +399,7 @@
},
async resetXrayConfigToDefault() {
this.loading(true);
const msg = await HttpUtil.get("/xui/setting/getDefaultJsonConfig");
const msg = await HttpUtil.get("/panel/setting/getDefaultJsonConfig");
this.loading(false);
if (msg.success) {
this.templateSettings = JSON.parse(JSON.stringify(msg.obj, null, 2));
@@ -419,7 +419,7 @@
];
this.loading(true);
domainsToCheck.forEach(async (dd) => {
const msg = await HttpUtil.get(`/xui/setting/searchDatafiles?query=${dd.query}`);
const msg = await HttpUtil.get(`/panel/setting/searchDatafiles?query=${dd.query}`);
if (msg.success && msg.obj) {
[dd.key] = dd.data;
console.log([dd.key])