Skip to content

Commit a5b23d5

Browse files
committed
Added remove if directive for DirectiveAdd
1 parent ee25eef commit a5b23d5

File tree

2 files changed

+21
-11
lines changed

2 files changed

+21
-11
lines changed

README.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ URL:[https://nginxui.jackyu.cn](https://nginxui.jackyu.cn)
7474

7575
- Online view of server CPU, Memory, Load Average, Disk Usage and other indicators.
7676
- One-click deployment and automatic renewal Let's Encrypt certificates.
77-
- Online editing websites configuration files, the editor support highlight nginx configuration syntax.
77+
- Online editing websites configurations with our self-designed **NgxConfigEditor** which is a user-friendly block editor or **Ace Code Editor** which support highlight nginx configuration syntax.
7878
- Written in Go and Vue, distribution is a single executable binary.
7979
- Automatically test configuration file and reload nginx after saving configuration.
8080
- Web Terminal
@@ -91,11 +91,15 @@ We welcome translations into any language.
9191

9292
### Built With
9393

94-
- [The Go Programming Language](https://go.dev/)
94+
- [The Go Programming Language](https://go.dev)
9595
- [Gin Web Framework](https://gin-gonic.com)
96-
- [GORM](http://gorm.io/index.html)
97-
- [Vue 2](https://vuejs.org)
98-
- [vue-gettext](https://github.com/Polyconseil/vue-gettext)
96+
- [GORM](http://gorm.io)
97+
- [Vue 3](https://v3.vuejs.org)
98+
- [Vite](https://vitejs.dev)
99+
- [TypeScript](https://www.typescriptlang.org/)
100+
- [Ant Design Vue](https://antdv.com)
101+
- [vue3-gettext](https://github.com/jshmrtn/vue3-gettext)
102+
- [vue3-ace-editor](https://github.com/CarterLi/vue3-ace-editor)
99103

100104
## Getting Started
101105

@@ -175,7 +179,9 @@ systemctl restart nginx-ui
175179

176180
You can use our `uozi/nginx-ui:latest` [image](https://hub.docker.com/r/uozi/nginx-ui) in docker, which is base on `nginx:latest`. You can replace the Nginx on host by publishing port 80 and 443 to host.
177181

178-
Note: The volume mapping to `/etc/nginx` should be empty.
182+
##### Note
183+
1. The volume mapping to `/etc/nginx` should be empty.
184+
2. If you want to host static files, map a directory to container.
179185

180186
**Docker Deploy Example**
181187

@@ -186,6 +192,7 @@ docker run -dit \
186192
-e TZ=Asia/Shanghai \
187193
-v /mnt/user/appdata/nginx:/etc/nginx \
188194
-v /mnt/user/appdata/nginx-ui:/etc/nginx-ui \
195+
-v /var/www:/var/www \
189196
-p 8080:80 -p 8443:443 \
190197
uozi/nginx-ui:latest
191198
```
@@ -201,7 +208,7 @@ On platforms that do not have an official build version, they can be built manua
201208

202209
- Golang 1.18+
203210

204-
- node.js 14+
211+
- node.js 18+
205212

206213
```shell
207214
npx browserslist@latest --update-db
@@ -213,7 +220,6 @@ Please execute the following command in `frontend` directory.
213220

214221
```shell
215222
yarn install
216-
make translations
217223
yarn build
218224
```
219225

frontend/src/views/domain/ngx_conf/directive/DirectiveAdd.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,15 @@ function save() {
5151
</a-select>
5252
</a-form-item>
5353
<a-form-item>
54-
<code-editor v-if="mode===If" default-height="100px" v-model:content="directive.params"/>
55-
<div class="input-wrapper" v-else>
56-
<a-input-group compact>
54+
55+
<div class="input-wrapper">
56+
<code-editor v-if="mode===If" default-height="100px" style="width: 100%;"
57+
v-model:content="directive.params"/>
58+
<a-input-group v-else compact>
5759
<a-input style="width: 30%" :placeholder="$gettext('Directive')" v-model="directive.directive"/>
5860
<a-input style="width: 70%" :placeholder="$gettext('Params')" v-model="directive.params"/>
5961
</a-input-group>
62+
6063
<a-button @click="adding=false">
6164
<template #icon>
6265
<DeleteOutlined style="font-size: 14px;"/>
@@ -77,5 +80,6 @@ function save() {
7780
.input-wrapper {
7881
display: flex;
7982
gap: 10px;
83+
align-items: center;
8084
}
8185
</style>

0 commit comments

Comments
 (0)