release 0.1.3-beta (#19)

Co-authored-by: E99p1ant <[email protected]>
This commit is contained in:
Li4n0
2021-05-25 20:41:37 +08:00
committed by GitHub
co-authored by E99p1ant
parent 1144f67d37
commit cbbf3ba0ba
68 changed files with 640 additions and 197 deletions
+3 -2
View File
@@ -148,6 +148,9 @@ export default {
}
},
mounted() {
if (localStorage.getItem("autoRefresh") === null) {
this.autoRefresh = true;
}
if (this.autoRefresh && this.isLogMode) {
this.timing()
}
@@ -176,8 +179,6 @@ export default {
isLogMode(val) {
if (!val) {
clearInterval(this.timer)
} else {
this.timing()
}
},
refreshInterval(val) {
+4 -8
View File
@@ -1,5 +1,6 @@
<template>
<a-table
style="overflow-x: auto;"
:columns="columns"
:data-source="data"
:loading="loading"
@@ -139,14 +140,9 @@ export default {
this.pagination = pagination;
this.loading = false
}).catch(e => {
this.$notification.error({
message: 'Unknown error: ' + e.response.status,
style: {
width: '100px',
marginLeft: `${335 - 600}px`,
},
duration: 4
});
if (e.response.status !== 403) {
this.$message.error('Unknown error with status code: ' + e.response.status)
}
})
},
},
+4 -8
View File
@@ -1,5 +1,6 @@
<template>
<a-table
style="overflow-x: auto;"
:columns="columns"
:data-source="data"
:loading="loading"
@@ -228,14 +229,9 @@ export default {
this.pagination = pagination;
this.loading = false
}).catch(e => {
this.$notification.error({
message: 'Unknown error: ' + e.response.status,
style: {
width: '100px',
marginLeft: `${335 - 600}px`,
},
duration: 4
});
if (e.response.status !== 403) {
this.$message.error('Unknown error with status code: ' + e.response.status)
}
})
},
},
+7 -11
View File
@@ -1,5 +1,6 @@
<template>
<a-table
style="overflow-x: auto;"
:columns="columns"
:data-source="data"
:loading="loading"
@@ -104,9 +105,9 @@ const columns = [
},
},
{
title: 'PATH',
dataIndex: 'path',
key: 'path',
title: 'URI',
dataIndex: 'uri',
key: 'uri',
ellipsis: true,
scopedSlots: {
filterDropdown: 'filterDropdown',
@@ -173,14 +174,9 @@ export default {
this.pagination = pagination;
this.loading = false
}).catch(e => {
this.$notification.error({
message: 'Unknown error: ' + e.response.status,
style: {
width: '100px',
marginLeft: `${335 - 600}px`,
},
duration: 4
});
if (e.response.status !== 403) {
this.$message.error('Unknown error with status code: ' + e.response.status)
}
})
},
},
+13 -8
View File
@@ -1,5 +1,6 @@
<template>
<a-table
style="overflow-x: auto;"
:columns="columns"
:data-source="data"
:loading="loading"
@@ -120,6 +121,15 @@ const columns = [
filterIcon: 'filterIcon',
},
},
{
title: 'SCHEMA',
dataIndex: 'schema',
key: 'schema',
scopedSlots: {
filterDropdown: 'filterDropdown',
filterIcon: 'filterIcon',
},
},
{
title: 'LOAD DATA',
dataIndex: 'load_local_data',
@@ -216,14 +226,9 @@ export default {
this.pagination = pagination;
this.loading = false
}).catch(e => {
this.$notification.error({
message: 'Unknown error: ' + e.response.status,
style: {
width: '100px',
marginLeft: `${335 - 600}px`,
},
duration: 4
});
if (e.response.status !== 403) {
this.$message.error('Unknown error with status code: ' + e.response.status)
}
})
},
},
+5 -9
View File
@@ -1,5 +1,6 @@
<template>
<a-table
style="overflow-x: auto;"
:columns="columns"
:data-source="data"
:loading="loading"
@@ -109,7 +110,7 @@ export default {
onShowSizeChange: (current, size) => {
store.pageSize = size
}
}, filters: {},
}, filters: {},
order: "desc",
loading: false,
columns,
@@ -140,14 +141,9 @@ export default {
this.pagination = pagination;
this.loading = false
}).catch(e => {
this.$notification.error({
message: 'Unknown error: ' + e.response.status,
style: {
width: '100px',
marginLeft: `${335 - 600}px`,
},
duration: 4
});
if (e.response.status !== 403) {
this.$message.error('Unknown error with status code: ' + e.response.status)
}
})
},
},
+6 -10
View File
@@ -13,7 +13,7 @@
@close="closeDrawer"
>
<a-form-model :model="form" ref="form" layout="vertical" @submit="handleSubmit">
<BasicRule :form="form" :readOnly="formReadOnly"/>
<BasicRule :form="form" :readOnly="formReadOnly" flagFormat="domain"/>
<a-row :gutter="24">
<a-col :span="12">
<a-form-model-item label="Type" :rules="rules.type">
@@ -90,6 +90,7 @@
</a-drawer>
<!-- rule table -->
<a-table
style="overflow-x: auto;"
:columns="columns"
:data-source="data"
:loading="loading"
@@ -296,7 +297,7 @@ export default {
onShowSizeChange: (current, size) => {
store.pageSize = size
}
}, filters: {},
}, filters: {},
loading: false,
columns,
colors,
@@ -332,14 +333,9 @@ export default {
this.pagination = pagination;
this.loading = false
}).catch(e => {
this.$notification.error({
message: 'Unknown error: ' + e.response.status,
style: {
width: '100px',
marginLeft: `${335 - 600}px`,
},
duration: 4
});
if (e.response.status !== 403) {
this.$message.error('Unknown error with status code: ' + e.response.status)
}
})
},
clickSwitch(record, prop) {
+6 -10
View File
@@ -13,7 +13,7 @@
@close="closeDrawer"
>
<a-form-model :model="form" ref="form" layout="vertical" @submit="handleSubmit">
<BasicRule :form="form" :readOnly="formReadOnly"/>
<BasicRule :form="form" :readOnly="formReadOnly" flagFormat="user or password"/>
<a-row :gutter="24">
<a-col :span="24">
<a-form-model-item>
@@ -28,7 +28,7 @@
<a-input
v-model="form.pasv_address"
style="width: 100%"
placeholder="Use external IP by default"
placeholder="Use `external_ip:pasv_port` by default"
:readOnly="formReadOnly"
/>
</a-form-model-item>
@@ -78,6 +78,7 @@
</a-drawer>
<!-- rule table -->
<a-table
style="overflow-x: auto;"
:columns="columns"
:data-source="data"
:loading="loading"
@@ -267,14 +268,9 @@ export default {
this.pagination = pagination;
this.loading = false
}).catch(e => {
this.$notification.error({
message: 'Unknown error: ' + e.response.status,
style: {
width: '100px',
marginLeft: `${335 - 600}px`,
},
duration: 4
});
if (e.response.status !== 403) {
this.$message.error('Unknown error with status code: ' + e.response.status)
}
})
},
clickSwitch(record, prop) {
+5 -9
View File
@@ -13,7 +13,7 @@
@close="closeDrawer"
>
<a-form-model :model="form" ref="form" layout="vertical" @submit="handleSubmit">
<BasicRule :form="form" :readOnly="formReadOnly"/>
<BasicRule :form="form" :readOnly="formReadOnly" flagFormat="raw message"/>
<a-row :gutter="24">
<a-col :span="24">
<a-form-model-item :rules="rules.response_status_code"
@@ -130,6 +130,7 @@
</a-drawer>
<!-- rule table -->
<a-table
style="overflow-x: auto;"
:columns="columns"
:data-source="data"
:loading="loading"
@@ -374,14 +375,9 @@ export default {
this.pagination = pagination;
this.loading = false
}).catch(e => {
this.$notification.error({
message: 'Unknown error: ' + e.response.status,
style: {
width: '100px',
marginLeft: `${335 - 600}px`,
},
duration: 4
});
if (e.response.status !== 403) {
this.$message.error('Unknown error with status code: ' + e.response.status)
}
})
},
clickSwitch(record, prop) {
+2 -1
View File
@@ -100,6 +100,7 @@
</a-drawer>
<!-- rule table -->
<a-table
style="overflow-x: auto;"
:columns="columns"
:data-source="data"
:loading="loading"
@@ -300,7 +301,7 @@ export default {
this.$notification.error({
message: 'Unknown error: ' + e.response.status,
style: {
width: '100px',
width: '400px',
marginLeft: `${335 - 600}px`,
},
duration: 4
+7 -10
View File
@@ -13,7 +13,7 @@
@close="closeDrawer"
>
<a-form-model :model="form" ref="form" layout="vertical" @submit="handleSubmit">
<BasicRule :form="form" :readOnly="formReadOnly"/>
<BasicRule :form="form" :readOnly="formReadOnly" flagFormat="path"/>
</a-form-model>
<div
:style="{
@@ -38,6 +38,7 @@
</a-drawer>
<!-- rule table -->
<a-table
style="overflow-x: auto;"
:columns="columns"
:data-source="data"
:loading="loading"
@@ -193,7 +194,8 @@ export default {
onShowSizeChange: (current, size) => {
store.pageSize = size
}
}, filters: {},
},
filters: {},
loading: false,
columns,
form: {},
@@ -225,14 +227,9 @@ export default {
this.pagination = pagination;
this.loading = false
}).catch(e => {
this.$notification.error({
message: 'Unknown error: ' + e.response.status,
style: {
width: '100px',
marginLeft: `${335 - 600}px`,
},
duration: 4
});
if (e.response.status !== 403) {
this.$message.error('Unknown error with status code: ' + e.response.status)
}
})
},
clickSwitch(record, prop) {