mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-10 22:23:28 +08:00
🎨 Improve Quit the application
on the auth page https://github.com/siyuan-note/siyuan/issues/9680
This commit is contained in:
parent
f001821a90
commit
b5c7248896
@ -76,12 +76,12 @@
|
|||||||
.b3-button--white {
|
.b3-button--white {
|
||||||
color: var(--b3-theme-primary);
|
color: var(--b3-theme-primary);
|
||||||
box-shadow: inset 0 0 0 1px var(--b3-theme-primary);
|
box-shadow: inset 0 0 0 1px var(--b3-theme-primary);
|
||||||
background-color: transparent;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.b3-button--white:hover,
|
.b3-button--white:hover,
|
||||||
.b3-button--white:focus {
|
.b3-button--white:focus {
|
||||||
background-color: var(--b3-theme-primary-lightest);
|
background-color: #e8eefc;
|
||||||
box-shadow: inset 0 0 0 1px var(--b3-theme-primary);
|
box-shadow: inset 0 0 0 1px var(--b3-theme-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -432,6 +432,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
const exitSiYuan = () => {
|
const exitSiYuan = () => {
|
||||||
|
document.querySelector('#message').classList.add('b3-snackbar--show')
|
||||||
|
document.querySelector('#message').firstElementChild.innerHTML = "{{.l8}}"
|
||||||
try {
|
try {
|
||||||
fetch('/api/system/exit', {
|
fetch('/api/system/exit', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
@ -440,8 +442,7 @@
|
|||||||
return response.json()
|
return response.json()
|
||||||
}).then((response) => {
|
}).then((response) => {
|
||||||
if (response.code === 1) {
|
if (response.code === 1) {
|
||||||
document.querySelector('#message').classList.add('b3-snackbar--show')
|
document.querySelector('#message').firstElementChild.innerHTML = response.msg
|
||||||
document.querySelector('#message').firstElementChild.textContent = response.msg
|
|
||||||
const buttonElement = document.querySelector(`#message button`)
|
const buttonElement = document.querySelector(`#message button`)
|
||||||
if (buttonElement) {
|
if (buttonElement) {
|
||||||
buttonElement.addEventListener('click', () => {
|
buttonElement.addEventListener('click', () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user