mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-06 05:30:05 +00:00
添加服务器 & 展示服务器
This commit is contained in:
@@ -20,38 +20,8 @@
|
||||
margin-top: 75px;
|
||||
}
|
||||
|
||||
.avatar-list img {
|
||||
width: 2.6rem !important;
|
||||
height: 2.6rem !important;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.card-list {
|
||||
width: 100% !important;
|
||||
padding-right: unset !important;
|
||||
}
|
||||
|
||||
.card-list .card {
|
||||
width: calc(33.33333333% - 1.1em) !important;
|
||||
margin-right: unset !important;
|
||||
margin-top: unset !important;
|
||||
|
||||
}
|
||||
|
||||
.card-list .card:nth-child(1) {
|
||||
margin-top: 0.875em !important;
|
||||
}
|
||||
|
||||
.card-list .card:nth-child(2) {
|
||||
margin-top: 0.875em !important;
|
||||
}
|
||||
|
||||
.card-list .card:nth-child(3) {
|
||||
margin-top: 0.875em !important;
|
||||
}
|
||||
|
||||
.grid-list>.grid>.row {
|
||||
border-bottom: solid gainsboro 2px;
|
||||
padding-bottom: .6em;
|
||||
margin-bottom: .6em;
|
||||
.footer.segment {
|
||||
margin-top: 40px !important;
|
||||
padding-top: 40px;
|
||||
padding-bottom: 40px;
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
$('.ui.checkbox').checkbox();
|
||||
$('.ui.dropdown').dropdown();
|
||||
|
||||
const confirmBtn = $('.mini.confirm.modal .positive.button')
|
||||
function showConfirm(title, content, callFn, extData) {
|
||||
@@ -32,7 +31,7 @@ function showFormModal(modelSelector, formID, URL, getData) {
|
||||
form.children('.message').remove()
|
||||
btn.toggleClass('loading')
|
||||
const data = getData ? getData() : $(formID).serializeArray().reduce(function (obj, item) {
|
||||
obj[item.name] = (item.name.endsWith('_id') || item.name === 'id' || item.name === 'permission') ? parseInt(item.value) : item.value;
|
||||
obj[item.name] = (item.name.endsWith('_id') || item.name === 'id') ? parseInt(item.value) : item.value;
|
||||
return obj;
|
||||
}, {});
|
||||
$.post(URL, JSON.stringify(data)).done(function (resp) {
|
||||
@@ -54,6 +53,10 @@ function showFormModal(modelSelector, formID, URL, getData) {
|
||||
}).modal('show')
|
||||
}
|
||||
|
||||
function addServer() {
|
||||
showFormModal('.server.modal', '#serverForm', '/api/server')
|
||||
}
|
||||
|
||||
function logout(id) {
|
||||
$.post('/api/logout', JSON.stringify({ id: id })).done(function (resp) {
|
||||
if (resp.code == 200) {
|
||||
|
||||
Reference in New Issue
Block a user