Refactor installation and database initialization.

Added optional database name to installation.
This commit is contained in:
Hintay 2022-02-19 03:02:06 +08:00
parent 759a235e7e
commit 3bf2677d69
No known key found for this signature in database
GPG key ID: 120FC7FF121F2F2D
8 changed files with 70 additions and 33 deletions

View file

@ -1,6 +1,6 @@
<template>
<div class="footer center">
Copyright © 2020 - {{ thisYear }} 0xJacky
Copyright © 2020 - {{ thisYear }} Nginx UI
</div>
</template>

View file

@ -8,6 +8,7 @@
<p>Version: {{ version }} ({{ build_id }})</p>
<h3>项目组</h3>
<p>Designer<a href="https://jackyu.cn/">@0xJacky</a></p>
<p><a href="https://blog.kugeek.com/">@Hintay</a></p>
<h3>技术栈</h3>
<p>Go</p>
<p>Gin</p>
@ -15,7 +16,7 @@
<p>Websocket</p>
<h3>开源协议</h3>
<p>GNU General Public License v2.0</p>
<p>Copyright © 2020 - {{ this_year }} 0xJacky </p>
<p>Copyright © 2020 - {{ this_year }} Nginx UI </p>
</a-card>
</template>

View file

@ -22,7 +22,7 @@
message: 'Please input your E-mail!',
},] },
]"
placeholder="Email"
placeholder="Email (*)"
>
<a-icon slot="prefix" type="mail" style="color: rgba(0,0,0,.25)"/>
</a-input>
@ -33,7 +33,7 @@
'username',
{ rules: [{ required: true, message: 'Please input your username!' }] },
]"
placeholder="Username"
placeholder="Username (*)"
>
<a-icon slot="prefix" type="user" style="color: rgba(0,0,0,.25)"/>
</a-input>
@ -45,11 +45,22 @@
{ rules: [{ required: true, message: 'Please input your Password!' }] },
]"
type="password"
placeholder="Password"
placeholder="Password (*)"
>
<a-icon slot="prefix" type="lock" style="color: rgba(0,0,0,.25)"/>
</a-input>
</a-form-item>
<a-form-item>
<a-input
v-decorator="[
'database',
{ rules: [{ pattern: /^[^\\/:*?\x22<>|]{1,120}$/, message: 'Please input a legal file name!'}] },
]"
placeholder="Database (Optional, default: database)"
>
<a-icon slot="prefix" type="database" style="color: rgba(0,0,0,.25)"/>
</a-input>
</a-form-item>
<a-form-item>
<a-button type="primary" :block="true" html-type="submit" :loading="loading">
安装
@ -57,7 +68,7 @@
</a-form-item>
</a-form>
<footer>
Copyright © 2020 - {{ thisYear }} 0xJacky
Copyright © 2020 - {{ thisYear }} Nginx UI
</footer>
</div>

View file

@ -39,7 +39,7 @@
</a-form-item>
</a-form>
<div class="footer">
Copyright © 2020 - {{ thisYear }} 0xJacky
Copyright © 2020 - {{ thisYear }} Nginx UI
</div>
</div>
</div>

View file

@ -1 +1 @@
{"version":"1.1.0","build_id":4,"total_build":21}
{"version":"1.1.0","build_id":7,"total_build":24}