whistle.mock-plugins 1.3.1 → 1.4.0-beta.2
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.
- package/VERSION.md +29 -0
- package/app/cgi-bin/interfaces.js +2 -0
- package/app/cgi-bin/settings.js +1 -0
- package/app/cgi-bin/stats.js +22 -12
- package/app/cgi-bin/webdav.js +56 -0
- package/app/public/index.html +1 -1
- package/app/public/js/11.index.js +2 -0
- package/app/public/js/11.index.js.LICENSE.txt +5 -0
- package/app/public/js/704.index.js +2 -0
- package/app/public/js/704.index.js.LICENSE.txt +1 -0
- package/app/public/js/798.index.js +2 -0
- package/app/public/js/798.index.js.LICENSE.txt +53 -0
- package/app/public/js/807.index.js +2 -0
- package/app/public/js/807.index.js.LICENSE.txt +1 -0
- package/app/public/js/968.index.js +2 -0
- package/app/public/js/968.index.js.LICENSE.txt +12 -0
- package/app/public/js/index.js +1 -1
- package/app/public/js/index.js.LICENSE.txt +0 -173
- package/lib/routes/settings.js +1 -0
- package/lib/webdav-sync.js +806 -0
- package/package.json +9 -2
- package/API.md +0 -247
- package/COLUMN_RESIZE_IMPLEMENTATION.md +0 -162
- package/FEATURE_ENHANCEMENT.md +0 -157
- package/TEST_GUIDE.md +0 -156
- package/data/features.json +0 -1
- package/data/interfaces.json +0 -1
- package/index.html +0 -52
- package/initialize.js +0 -32
- package/public/bundle.js +0 -2
- package/public/bundle.js.LICENSE.txt +0 -38
- package/public/index.html +0 -1
- package/public/plugin.mock-plugin.html +0 -14
- package/rules.txt +0 -22
- package/ui/src/App.css +0 -173
- package/ui/src/components/AppLayout.js +0 -407
- package/ui/src/components/FeatureCard.js +0 -58
- package/ui/src/components/KeyboardShortcutsHelp.js +0 -58
- package/ui/src/components/Layout.js +0 -94
- package/ui/src/components/MainNav.js +0 -42
- package/ui/src/components/PageContainer.js +0 -16
- package/ui/src/components/VersionModal.js +0 -99
- package/ui/src/components/interface-management/DataManagementDrawer.js +0 -115
- package/ui/src/components/interface-management/DataManagementModal.js +0 -110
- package/ui/src/components/interface-management/InterfaceTestModal.js +0 -313
- package/ui/src/components/interface-management/PreviewModal.js +0 -48
- package/ui/src/components/interface-management/README.md +0 -184
- package/ui/src/components/interface-management/RealResponseRecorder.js +0 -165
- package/ui/src/components/interface-management/ResponseContentEditor.js +0 -645
- package/ui/src/components/interface-management/constants.js +0 -36
- package/ui/src/components/interface-management/index.js +0 -7
- package/ui/src/components/interface-management/utils.js +0 -103
- package/ui/src/hooks/useKeyboardShortcuts.js +0 -99
- package/ui/src/index.html +0 -14
- package/ui/src/index.js +0 -50
- package/ui/src/pages/InterfaceManagementV2.js +0 -2351
- package/ui/src/pages/MockDataV2.js +0 -1089
- package/ui/src/pages/Settings.js +0 -299
- package/ui/src/pages/Sniffer.js +0 -521
- package/ui/src/pages/Stats.js +0 -288
- package/ui/src/services/del_api.js +0 -192
- package/ui/src/styles/app-layout.css +0 -373
- package/ui/src/styles/cyber-theme.css +0 -1234
- package/ui/src/styles/earth-theme.css +0 -618
- package/ui/src/styles/global.css +0 -224
- package/ui/src/styles/interface-management.css +0 -1321
- package/ui/src/styles/mock-data.css +0 -1185
- package/ui/src/styles/settings.css +0 -252
- package/ui/src/styles/version-modal.css +0 -116
- package/webpack.config.js +0 -54
package/ui/src/styles/global.css
DELETED
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
/* 全局样式 */
|
|
2
|
-
* {
|
|
3
|
-
margin: 0;
|
|
4
|
-
padding: 0;
|
|
5
|
-
box-sizing: border-box;
|
|
6
|
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
7
|
-
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
8
|
-
'Noto Color Emoji';
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
html, body, #root {
|
|
12
|
-
height: 100%;
|
|
13
|
-
width: 100%;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
body {
|
|
17
|
-
background-color: #f5f7fa;
|
|
18
|
-
color: rgba(0, 0, 0, 0.85);
|
|
19
|
-
font-size: 14px;
|
|
20
|
-
line-height: 1.5715;
|
|
21
|
-
-webkit-font-smoothing: antialiased;
|
|
22
|
-
-moz-osx-font-smoothing: grayscale;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
h1, h2, h3, h4, h5, h6 {
|
|
26
|
-
margin-top: 0;
|
|
27
|
-
margin-bottom: 0.5em;
|
|
28
|
-
color: rgba(0, 0, 0, 0.85);
|
|
29
|
-
font-weight: 500;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
p {
|
|
33
|
-
margin-top: 0;
|
|
34
|
-
margin-bottom: 1em;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
button, input {
|
|
38
|
-
font-size: 14px;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
a {
|
|
42
|
-
color: #1890ff;
|
|
43
|
-
text-decoration: none;
|
|
44
|
-
transition: all 0.3s;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
a:hover {
|
|
48
|
-
color: #40a9ff;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/* 辅助类 */
|
|
52
|
-
.text-center {
|
|
53
|
-
text-align: center;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.text-right {
|
|
57
|
-
text-align: right;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.text-left {
|
|
61
|
-
text-align: left;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.mb-0 {
|
|
65
|
-
margin-bottom: 0;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.mb-1 {
|
|
69
|
-
margin-bottom: 4px;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.mb-2 {
|
|
73
|
-
margin-bottom: 8px;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.mb-3 {
|
|
77
|
-
margin-bottom: 16px;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.mb-4 {
|
|
81
|
-
margin-bottom: 24px;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.mt-0 {
|
|
85
|
-
margin-top: 0;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.mt-1 {
|
|
89
|
-
margin-top: 4px;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.mt-2 {
|
|
93
|
-
margin-top: 8px;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.mt-3 {
|
|
97
|
-
margin-top: 16px;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.mt-4 {
|
|
101
|
-
margin-top: 24px;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.ml-1 {
|
|
105
|
-
margin-left: 4px;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.ml-2 {
|
|
109
|
-
margin-left: 8px;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.ml-3 {
|
|
113
|
-
margin-left: 16px;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.mr-1 {
|
|
117
|
-
margin-right: 4px;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.mr-2 {
|
|
121
|
-
margin-right: 8px;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.mr-3 {
|
|
125
|
-
margin-right: 16px;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.p-0 {
|
|
129
|
-
padding: 0;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.p-1 {
|
|
133
|
-
padding: 4px;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.p-2 {
|
|
137
|
-
padding: 8px;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.p-3 {
|
|
141
|
-
padding: 16px;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.p-4 {
|
|
145
|
-
padding: 24px;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
/* 弹性布局 */
|
|
149
|
-
.d-flex {
|
|
150
|
-
display: flex;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.align-center {
|
|
154
|
-
align-items: center;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.justify-between {
|
|
158
|
-
justify-content: space-between;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.justify-center {
|
|
162
|
-
justify-content: center;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.flex-column {
|
|
166
|
-
flex-direction: column;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.flex-wrap {
|
|
170
|
-
flex-wrap: wrap;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.flex-1 {
|
|
174
|
-
flex: 1;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
/* 颜色 */
|
|
178
|
-
.text-primary {
|
|
179
|
-
color: #1890ff;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.text-success {
|
|
183
|
-
color: #52c41a;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.text-warning {
|
|
187
|
-
color: #faad14;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.text-danger {
|
|
191
|
-
color: #ff4d4f;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.text-secondary {
|
|
195
|
-
color: rgba(0, 0, 0, 0.45);
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
.bg-white {
|
|
199
|
-
background-color: #fff;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
.bg-light {
|
|
203
|
-
background-color: #f5f7fa;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
/* 滚动条样式 */
|
|
207
|
-
::-webkit-scrollbar {
|
|
208
|
-
width: 6px;
|
|
209
|
-
height: 6px;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
::-webkit-scrollbar-track {
|
|
213
|
-
background: #f1f1f1;
|
|
214
|
-
border-radius: 3px;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
::-webkit-scrollbar-thumb {
|
|
218
|
-
background: #c1c1c1;
|
|
219
|
-
border-radius: 3px;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
::-webkit-scrollbar-thumb:hover {
|
|
223
|
-
background: #a8a8a8;
|
|
224
|
-
}
|