mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 02:45:49 +02:00
fix(app): layout height
This commit is contained in:
parent
91817a3a32
commit
c1193a5b8c
2 changed files with 68 additions and 70 deletions
|
@ -41,11 +41,12 @@ const lang = computed(() => {
|
|||
const settings = useSettingsStore()
|
||||
const is_theme_dark = computed(() => settings.theme == 'dark')
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<a-config-provider :theme="{
|
||||
algorithm: is_theme_dark?theme.darkAlgorithm:theme.defaultAlgorithm,
|
||||
}" :locale="lang" :autoInsertSpaceInButton="false">
|
||||
<a-layout style="min-height: 100%;">
|
||||
<a-layout style="min-height: 100vh">
|
||||
<div class="drawer-sidebar">
|
||||
<a-drawer
|
||||
:closable="false"
|
||||
|
|
|
@ -8,11 +8,8 @@ import (
|
|||
"regexp"
|
||||
)
|
||||
|
||||
func execShell(cmdArgs ...string) (out string) {
|
||||
cmd := []string{"-c"}
|
||||
cmd = append(cmd, cmdArgs...)
|
||||
|
||||
bytes, err := exec.Command("/bin/sh", cmd...).CombinedOutput()
|
||||
func execShell(cmd string) (out string) {
|
||||
bytes, err := exec.Command("/bin/sh -c", cmd).CombinedOutput()
|
||||
out = string(bytes)
|
||||
if err != nil {
|
||||
out += " " + err.Error()
|
||||
|
@ -27,7 +24,7 @@ func TestConf() (out string) {
|
|||
return
|
||||
}
|
||||
|
||||
out = execShell("nginx", "-t")
|
||||
out = execShell("nginx -t")
|
||||
|
||||
return
|
||||
}
|
||||
|
@ -38,7 +35,7 @@ func Reload() (out string) {
|
|||
return
|
||||
}
|
||||
|
||||
out = execShell("nginx", "-s", "reload")
|
||||
out = execShell("nginx -s reload")
|
||||
|
||||
return
|
||||
}
|
||||
|
@ -50,7 +47,7 @@ func Restart() (out string) {
|
|||
return
|
||||
}
|
||||
|
||||
out = execShell("nginx", "-s", "reopen")
|
||||
out = execShell("nginx -s reopen")
|
||||
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue