@arkxos/arkos-app-gateway-manage 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/README.md +36 -0
  2. package/ark_dist/ark-meta.json +75 -0
  3. package/ark_dist/ark_userChunk_1.js +5 -0
  4. package/ark_dist/ark_userChunk_2.js +49 -0
  5. package/ark_dist/css/views/views-CreateGateway.41b2bde6.css +297 -0
  6. package/ark_dist/favicon.ico +0 -0
  7. package/ark_dist/img/404.png +0 -0
  8. package/ark_dist/img/auth_banner.jpg +0 -0
  9. package/ark_dist/img/avatar.jpg +0 -0
  10. package/ark_dist/img/avatar2.gif +0 -0
  11. package/ark_dist/img/avatar3.gif +0 -0
  12. package/ark_dist/img/loginbg.svg +1 -0
  13. package/ark_dist/img/logo-r.png +0 -0
  14. package/ark_dist/img/logo.png +0 -0
  15. package/ark_dist/img/no-widgets.svg +57 -0
  16. package/ark_dist/img/tasks-example.png +0 -0
  17. package/ark_dist/img/ver.svg +236 -0
  18. package/ark_dist/index.html +132 -0
  19. package/ark_dist/js/app.e014b7a5.js +1 -0
  20. package/ark_dist/js/views/views-CreateGateway.7db295a9.js +3 -0
  21. package/ark_dist/js/views/views-CreateGateway.7db295a9.js.LICENSE.txt +1 -0
  22. package/ark_dist/js/views/views-CreateGateway.7db295a9.js.map +1 -0
  23. package/ark_proxy/entry.js +30 -0
  24. package/ark_proxy_es/entry.js +18 -0
  25. package/package.json +156 -0
  26. package/scripts/check.js +13 -0
  27. package/scripts/meta.js +21 -0
  28. package/scripts/prepublishOnly.js +28 -0
  29. package/src/api/apidoc_api.js +35 -0
  30. package/src/api/authority.js +161 -0
  31. package/src/api/balanced_api.js +101 -0
  32. package/src/api/client_api.js +68 -0
  33. package/src/api/count_api.js +62 -0
  34. package/src/api/gateway-manage/client_api.js +68 -0
  35. package/src/api/gateway-manage/open_client.js +188 -0
  36. package/src/api/gateway_api.js +81 -0
  37. package/src/api/global_function.js +278 -0
  38. package/src/api/global_variable.js +35 -0
  39. package/src/api/groovyscript_api.js +130 -0
  40. package/src/api/ip_api.js +47 -0
  41. package/src/api/monitor_api.js +24 -0
  42. package/src/api/regserver_api.js +224 -0
  43. package/src/api/request.js +107 -0
  44. package/src/assets/font_1930435_u2cpsigmd9d.js +38 -0
  45. package/src/assets/font_ma6wg7gw3td/demo.css +539 -0
  46. package/src/assets/font_ma6wg7gw3td/demo_index.html +674 -0
  47. package/src/assets/font_ma6wg7gw3td/iconfont.css +105 -0
  48. package/src/assets/font_ma6wg7gw3td/iconfont.eot +0 -0
  49. package/src/assets/font_ma6wg7gw3td/iconfont.js +1 -0
  50. package/src/assets/font_ma6wg7gw3td/iconfont.json +163 -0
  51. package/src/assets/font_ma6wg7gw3td/iconfont.svg +92 -0
  52. package/src/assets/font_ma6wg7gw3td/iconfont.ttf +0 -0
  53. package/src/assets/font_ma6wg7gw3td/iconfont.woff +0 -0
  54. package/src/assets/font_ma6wg7gw3td/iconfont.woff2 +0 -0
  55. package/src/assets/logo.png +0 -0
  56. package/src/assets/particles.json +110 -0
  57. package/src/auto-imports.d.ts +307 -0
  58. package/src/component/BoxCard.vue +156 -0
  59. package/src/component/ClientInfo.vue +82 -0
  60. package/src/component/GroovyScriptTable.vue +74 -0
  61. package/src/component/PanThumb/index.vue +149 -0
  62. package/src/component/RouteAccessChart.vue +85 -0
  63. package/src/component/RouteInfo.vue +146 -0
  64. package/src/component/RouteRequestCount.vue +126 -0
  65. package/src/component/TextHoverEffect/Mallki.vue +120 -0
  66. package/src/configs/subApp.ts +9 -0
  67. package/src/entrance/libProperties.ts +30 -0
  68. package/src/entrance/libTypes.ts +27 -0
  69. package/src/main.ts +13 -0
  70. package/src/plugins/index.ts +11 -0
  71. package/src/router/constantRoutes.js +155 -0
  72. package/src/router/loadComponent.js +29 -0
  73. package/src/views/AddClientGateway.vue +253 -0
  74. package/src/views/AddGatewayClient.vue +360 -0
  75. package/src/views/AddGroovyScript.vue +337 -0
  76. package/src/views/ApiCount.vue +291 -0
  77. package/src/views/ApiDoc.vue +293 -0
  78. package/src/views/ApiMonitor.vue +292 -0
  79. package/src/views/ClientList.vue +217 -0
  80. package/src/views/CreateBalanced.vue +341 -0
  81. package/src/views/CreateClient.vue +171 -0
  82. package/src/views/CreateGateway.vue +836 -0
  83. package/src/views/GatewayList.vue +322 -0
  84. package/src/views/GatewayTopology.vue +245 -0
  85. package/src/views/IpList.vue +218 -0
  86. package/src/views/LoadBalanced.vue +389 -0
  87. package/src/views/Main.vue +98 -0
@@ -0,0 +1,171 @@
1
+ <template>
2
+ <div class="createClient">
3
+ <el-card class="box-card">
4
+ <template #header>
5
+ <div class="clearfix">
6
+ <div class="clear-l">
7
+ <span>客户端配置</span>
8
+ </div>
9
+ <div class="clear-r">
10
+ <el-button icon="el-icon-tickets" size="mini" type="success" @click="submit">发 布</el-button>
11
+ <el-button icon="el-icon-delete" size="mini" type="warning" @click="resetForm">清 空</el-button>
12
+ </div>
13
+ </div>
14
+ </template>
15
+
16
+ <el-form size="default" :rules="rules" ref="form" :model="form" label-width="100px">
17
+ <el-form-item label="名称" prop="name">
18
+ <el-input v-model="form.name" style="width: 300px;" :disabled="nameDisabled"></el-input>
19
+ </el-form-item>
20
+ <el-form-item label="系统代号" prop="systemCode">
21
+ <el-input v-model="form.systemCode" style="width: 300px;" :disabled="nameDisabled"></el-input>
22
+ </el-form-item>
23
+ <el-form-item label="分组" prop="groupCode">
24
+ <el-select filterable v-model="form.groupCode" placeholder="请选择分组" style="width: 300px;">
25
+ <el-option v-for="item in groupOptions" :key="item.value" :label="item.label" :value="item.value" />
26
+ </el-select>
27
+ </el-form-item>
28
+ <el-form-item label="IP" prop="ip">
29
+ <el-input v-model="form.ip" style="width: 300px;"></el-input>
30
+ </el-form-item>
31
+ <el-form-item label="状态" prop="status">
32
+ <el-radio-group v-model="form.status">
33
+ <el-radio label="0">启用</el-radio>
34
+ <el-radio label="1">禁用</el-radio>
35
+ </el-radio-group>
36
+ </el-form-item>
37
+ <el-form-item label="备注" prop="remarks">
38
+ <el-input type="textarea" v-model="form.remarks" style="width: 500px;"></el-input>
39
+ </el-form-item>
40
+ </el-form>
41
+ </el-card>
42
+ </div>
43
+ </template>
44
+
45
+ <script>
46
+ import {addClient,updateClient} from '../api/client_api.js'
47
+
48
+ export default {
49
+ data() {
50
+ return {
51
+ form: {
52
+ id: null,
53
+ name: null,
54
+ systemCode: null,
55
+ groupCode: null,
56
+ ip: null,
57
+ status: null,
58
+ remarks: null
59
+ },
60
+ rules: {
61
+ name: [
62
+ { required: true, message: '请输入客户端名称', trigger: 'blur' },
63
+ { min: 2, max: 40, message: '长度在 2 到 40 个字符', trigger: 'blur' },
64
+ ],
65
+ systemCode: [
66
+ { required: true, message: '请输入客户端系统代号', trigger: 'blur' },
67
+ { min: 2, max: 40, message: '长度在 2 到 40 个字符', trigger: 'blur' },
68
+ ],
69
+ groupCode: [
70
+ { required: true, message: '请选择分组', trigger: 'change' },
71
+ ],
72
+ ip: [
73
+ { required: true, message: '请输入客户端IP', trigger: 'blur' },
74
+ { min: 8, max: 16, message: '长度在 8 到 16 个字符,如:0.0.0.0', trigger: 'blur' },
75
+ ],
76
+ status: [
77
+ { required: true, message: '请选择状态', trigger: 'change' }
78
+ ],
79
+ remarks: [
80
+ { min: 2, max: 200, message: '长度在 2 到 200 个字符', trigger: 'blur' }
81
+ ]
82
+ },
83
+ handleType: 'add',
84
+ nameDisabled: false,
85
+ groupOptions: this.GLOBAL_VAR.groups
86
+ };
87
+ },
88
+ created: function() {
89
+ //在组件创建完毕后加载
90
+ let query = this.$route.query;
91
+ if (query){
92
+ this.handleType = query.handleType;
93
+ if (this.handleType === 'edit'){
94
+ // this.nameDisabled = true;
95
+ let client = query.client;
96
+ console.log('client', client);
97
+ this.init(client);
98
+ }
99
+ }
100
+ },
101
+ methods: {
102
+ init(client) {
103
+ if (client){
104
+ this.form = client;
105
+ }
106
+ },
107
+ goBack() {
108
+ this.$router.push({ path: '/clientList', query: {} });
109
+ },
110
+ submit() {
111
+ let _this = this;
112
+ this.$refs['form'].validate((valid) => {
113
+ if (valid) {
114
+ console.log(_this.form);
115
+ if (this.handleType === 'edit'){
116
+ updateClient(_this.form).then(function(result){
117
+ _this.GLOBAL_FUN.successMsg();
118
+ });
119
+ } else {
120
+ addClient(_this.form).then(function(result){
121
+ _this.GLOBAL_FUN.successMsg();
122
+ });
123
+ }
124
+ } else {
125
+ console.log('error submit!!');
126
+ return false;
127
+ }
128
+ });
129
+ },
130
+ resetForm() {
131
+ this.form = {
132
+ id: this.handleType === 'edit'?this.form.id:null,
133
+ name: this.handleType === 'edit'?this.form.name:null,
134
+ groupCode: null,
135
+ ip: null,
136
+ status: null,
137
+ remarks: null
138
+ };
139
+ }
140
+ }
141
+ };
142
+ </script>
143
+
144
+ <style lang="scss" scoped>
145
+ .createClient {
146
+ height: 100%;
147
+
148
+ .box-card {
149
+ height: 100%;
150
+ }
151
+ }
152
+ .clearfix {
153
+ width: 100%;
154
+ display: flex;
155
+ justify-content: space-between;
156
+
157
+ .clear-l,
158
+ .clear-r {
159
+ display: flex;
160
+ align-items: center;
161
+
162
+ .el-button + .el-button {
163
+ margin-left: 10px;
164
+ }
165
+ }
166
+
167
+ span {
168
+ font-weight: 500;
169
+ }
170
+ }
171
+ </style>