Skip to content

Commit ed142f3

Browse files
authored
Merge pull request #97 from 0xJacky/v1.8-dev
v1.8
2 parents 1bc8d0a + 4ea3366 commit ed142f3

File tree

251 files changed

+10754
-2831
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

251 files changed

+10754
-2831
lines changed

app.example.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,10 @@ Model =
2020
BaseUrl =
2121
Proxy =
2222
Token =
23+
24+
[git]
25+
Url =
26+
AuthMethod =
27+
Username =
28+
Password =
29+
PrivateKeyFile =

frontend/components.d.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
// generated by unplugin-vue-components
2-
// We suggest you to commit this file into source control
1+
/* eslint-disable */
2+
/* prettier-ignore */
3+
// @ts-nocheck
4+
// Generated by unplugin-vue-components
35
// Read more: https://github.com/vuejs/core/pull/3399
46
import '@vue/runtime-core'
57

@@ -20,6 +22,7 @@ declare module '@vue/runtime-core' {
2022
AConfigProvider: typeof import('ant-design-vue/es')['ConfigProvider']
2123
ADivider: typeof import('ant-design-vue/es')['Divider']
2224
ADrawer: typeof import('ant-design-vue/es')['Drawer']
25+
ADropdown: typeof import('ant-design-vue/es')['Dropdown']
2326
AEmpty: typeof import('ant-design-vue/es')['Empty']
2427
AForm: typeof import('ant-design-vue/es')['Form']
2528
AFormItem: typeof import('ant-design-vue/es')['FormItem']

frontend/package.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "nginx-ui-frontend-next",
33
"private": true,
4-
"version": "1.7.9",
4+
"version": "1.8.0",
55
"type": "commonjs",
66
"scripts": {
77
"dev": "vite",
@@ -12,13 +12,14 @@
1212
},
1313
"dependencies": {
1414
"@ant-design/icons-vue": "^6.1.0",
15+
"@formkit/auto-animate": "^1.0.0-beta.6",
1516
"@types/lodash": "^4.14.188",
1617
"@types/marked": "^4.0.8",
1718
"@types/nprogress": "^0.2.0",
1819
"@types/sortablejs": "^1.15.0",
19-
"ant-design-vue": "^3.2.15",
20+
"ant-design-vue": "^3.2.17",
2021
"apexcharts": "^3.36.3",
21-
"axios": "^1.2.2",
22+
"axios": "^1.3.5",
2223
"dayjs": "^1.11.7",
2324
"highlight.js": "^11.7.0",
2425
"marked": "^4.2.5",
@@ -27,26 +28,26 @@
2728
"pinia-plugin-persistedstate": "^3.0.2",
2829
"reconnecting-websocket": "^4.4.0",
2930
"vite-plugin-build-id": "^0.2.3",
30-
"vue": "^3.2.45",
31+
"vue": "^3.2.47",
3132
"vue-router": "4",
3233
"vue3-ace-editor": "^2.2.2",
3334
"vue3-apexcharts": "^1.4.1",
34-
"vue3-gettext": "^2.3.4",
35+
"vue3-gettext": "^2.5.0-alpha.1",
3536
"vuedraggable": "^4.1.0",
3637
"xterm": "^5.1.0",
3738
"xterm-addon-attach": "^0.8.0",
3839
"xterm-addon-fit": "^0.7.0"
3940
},
4041
"devDependencies": {
41-
"@vitejs/plugin-vue": "^4.0.0",
42-
"@vitejs/plugin-vue-jsx": "^3.0.0",
42+
"@vitejs/plugin-vue": "^4.1.0",
43+
"@vitejs/plugin-vue-jsx": "^3.0.1",
4344
"@zougt/vite-plugin-theme-preprocessor": "^1.4.8",
4445
"less": "^4.1.3",
45-
"typescript": "^4.9.4",
46-
"unplugin-vue-components": "^0.22.12",
47-
"vite": "^4.1.4",
46+
"typescript": "^5.0.4",
47+
"unplugin-vue-components": "^0.24.1",
48+
"vite": "^4.2.1",
4849
"vite-plugin-html": "^3.2.0",
4950
"vite-svg-loader": "^4.0.0",
50-
"vue-tsc": "^1.0.24"
51+
"vue-tsc": "^1.2.0"
5152
}
5253
}

frontend/src/api/auto_cert.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import http from '@/lib/http'
2+
3+
const auto_cert = {
4+
get_dns_providers() {
5+
return http.get('/auto_cert/dns/providers')
6+
},
7+
8+
get_dns_provider(code: string) {
9+
return http.get('/auto_cert/dns/provider/' + code)
10+
}
11+
}
12+
13+
export default auto_cert

frontend/src/api/dns_credential.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import Curd from '@/api/curd'
2+
3+
const dns_credential = new Curd('/dns_credential')
4+
5+
export default dns_credential

frontend/src/api/domain.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ class Domain extends Curd {
2525
duplicate(name: string, data: any) {
2626
return http.post(this.baseUrl + '/' + name + '/duplicate', data)
2727
}
28+
29+
advance_mode(name: string, data: any) {
30+
return http.post(this.baseUrl + '/' + name + '/advance', data)
31+
}
2832
}
2933

3034
const domain = new Domain('/domain')

frontend/src/api/template.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ class Template extends Curd {
1818
return http.get('template/block/' + name)
1919
}
2020

21+
build_block(name: string, data: any) {
22+
return http.post('template/block/' + name, data)
23+
}
24+
2125
}
2226

2327
const template = new Template('/template')

frontend/src/components/Chart/AreaChart.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ let chartOptions = {
2222
enabled: false
2323
},
2424
animations: {
25-
enabled: false,
25+
enabled: false
2626
},
2727
toolbar: {
2828
show: false
29-
},
29+
}
3030
},
3131
colors: ['#ff6385', '#36a3eb'],
3232
fill: {
@@ -41,7 +41,7 @@ let chartOptions = {
4141
},
4242
stroke: {
4343
curve: 'smooth',
44-
width: 0,
44+
width: 0
4545
},
4646
xaxis: {
4747
type: 'datetime',
@@ -75,7 +75,7 @@ let chartOptions = {
7575
},
7676
onItemHover: {
7777
highlightDataSeries: false
78-
},
78+
}
7979
}
8080
}
8181
@@ -114,7 +114,7 @@ const callback = () => {
114114
},
115115
onItemHover: {
116116
highlightDataSeries: false
117-
},
117+
}
118118
}
119119
}
120120
}

frontend/src/components/ChatGPT/ChatGPT.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ import {urlJoin} from '@/lib/helper'
77
import {marked} from 'marked'
88
import hljs from 'highlight.js'
99
import 'highlight.js/styles/vs2015.css'
10-
import {SendOutlined} from '@ant-design/icons-vue'
11-
import Template from '@/views/template/Template.vue'
10+
import Icon, {SendOutlined} from '@ant-design/icons-vue'
11+
1212
import openai from '@/api/openai'
1313
import ChatGPT_logo from '@/assets/svg/ChatGPT_logo.svg'
14-
import Icon from '@ant-design/icons-vue'
1514
1615
const {$gettext} = useGettext()
1716
@@ -260,6 +259,11 @@ const show = computed(() => messages?.value?.length > 1)
260259
.chatgpt {
261260
position: sticky;
262261
top: 78px;
262+
263+
:deep(.ant-card-body) {
264+
max-height: 100vh;
265+
overflow-y: scroll;
266+
}
263267
}
264268
265269
.chat-start {

frontend/src/components/FooterToolbar/FooterToolBar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default {
2828
<style lang="less" scoped>
2929
.dark {
3030
.ant-pro-footer-toolbar {
31-
background: rgba(24, 24, 24, 0.62);
31+
background: rgba(24, 24, 24, 1);
3232
border-top: unset;
3333
}
3434
}

0 commit comments

Comments
 (0)