Spaces:
Building
Building
Update flare-ui/src/app/dialogs/api-edit-dialog/api-edit-dialog.component.scss
Browse files
flare-ui/src/app/dialogs/api-edit-dialog/api-edit-dialog.component.scss
CHANGED
@@ -1,208 +1,298 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
.
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
.json-textarea {
|
31 |
-
width: 100%;
|
32 |
-
|
33 |
-
|
34 |
-
border: 1px solid #
|
35 |
-
border-radius: 4px;
|
36 |
-
|
37 |
-
|
38 |
-
resize: vertical;
|
39 |
-
|
40 |
-
&:focus {
|
41 |
-
outline: none;
|
42 |
-
border-color: #3f51b5;
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
}
|
92 |
-
}
|
93 |
-
|
94 |
-
|
95 |
-
.
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
}
|
113 |
-
}
|
114 |
-
|
115 |
-
.
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
width:
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
}
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
208 |
}
|
|
|
1 |
+
.tab-content {
|
2 |
+
padding: 24px 16px;
|
3 |
+
min-height: 400px;
|
4 |
+
}
|
5 |
+
|
6 |
+
.full-width {
|
7 |
+
width: 100%;
|
8 |
+
margin-bottom: 16px;
|
9 |
+
}
|
10 |
+
|
11 |
+
.form-section {
|
12 |
+
margin: 24px 0;
|
13 |
+
|
14 |
+
h4 {
|
15 |
+
margin-bottom: 16px;
|
16 |
+
color: rgba(0, 0, 0, 0.87);
|
17 |
+
}
|
18 |
+
|
19 |
+
.section-label {
|
20 |
+
display: block;
|
21 |
+
margin-bottom: 8px;
|
22 |
+
color: rgba(0, 0, 0, 0.87);
|
23 |
+
font-weight: 500;
|
24 |
+
}
|
25 |
+
}
|
26 |
+
|
27 |
+
.json-editor {
|
28 |
+
margin-bottom: 16px;
|
29 |
+
|
30 |
+
.json-textarea {
|
31 |
+
width: 100%;
|
32 |
+
font-family: 'Courier New', monospace;
|
33 |
+
font-size: 13px;
|
34 |
+
border: 1px solid #c0c0c0;
|
35 |
+
border-radius: 4px;
|
36 |
+
padding: 12px;
|
37 |
+
background-color: #f5f5f5;
|
38 |
+
resize: vertical;
|
39 |
+
|
40 |
+
&:focus {
|
41 |
+
outline: none;
|
42 |
+
border-color: #3f51b5;
|
43 |
+
background-color: #fff;
|
44 |
+
}
|
45 |
+
}
|
46 |
+
|
47 |
+
button {
|
48 |
+
margin-top: 8px;
|
49 |
+
}
|
50 |
+
}
|
51 |
+
|
52 |
+
.template-helpers {
|
53 |
+
margin-top: 16px;
|
54 |
+
|
55 |
+
.template-list {
|
56 |
+
padding: 16px;
|
57 |
+
display: flex;
|
58 |
+
flex-wrap: wrap;
|
59 |
+
gap: 8px;
|
60 |
+
|
61 |
+
mat-chip {
|
62 |
+
cursor: pointer;
|
63 |
+
|
64 |
+
&:hover {
|
65 |
+
background-color: #e3f2fd !important;
|
66 |
+
}
|
67 |
+
}
|
68 |
+
}
|
69 |
+
}
|
70 |
+
|
71 |
+
.retry-settings {
|
72 |
+
display: flex;
|
73 |
+
gap: 16px;
|
74 |
+
flex-wrap: wrap;
|
75 |
+
|
76 |
+
mat-form-field {
|
77 |
+
flex: 1;
|
78 |
+
min-width: 150px;
|
79 |
+
}
|
80 |
+
}
|
81 |
+
|
82 |
+
.headers-section {
|
83 |
+
.section-header {
|
84 |
+
display: flex;
|
85 |
+
justify-content: space-between;
|
86 |
+
align-items: center;
|
87 |
+
margin-bottom: 16px;
|
88 |
+
|
89 |
+
h4 {
|
90 |
+
margin: 0;
|
91 |
+
}
|
92 |
+
}
|
93 |
+
|
94 |
+
.headers-list {
|
95 |
+
.header-row {
|
96 |
+
display: flex;
|
97 |
+
gap: 12px;
|
98 |
+
margin-bottom: 12px;
|
99 |
+
align-items: flex-start;
|
100 |
+
|
101 |
+
mat-form-field {
|
102 |
+
flex: 1;
|
103 |
+
|
104 |
+
&.header-value {
|
105 |
+
flex: 2;
|
106 |
+
}
|
107 |
+
}
|
108 |
+
|
109 |
+
button {
|
110 |
+
margin-top: 8px;
|
111 |
+
}
|
112 |
+
}
|
113 |
+
}
|
114 |
+
|
115 |
+
.empty-state {
|
116 |
+
text-align: center;
|
117 |
+
padding: 40px 20px;
|
118 |
+
color: rgba(0, 0, 0, 0.54);
|
119 |
+
|
120 |
+
mat-icon {
|
121 |
+
font-size: 48px;
|
122 |
+
width: 48px;
|
123 |
+
height: 48px;
|
124 |
+
margin-bottom: 16px;
|
125 |
+
}
|
126 |
+
|
127 |
+
p {
|
128 |
+
margin: 0;
|
129 |
+
}
|
130 |
+
}
|
131 |
+
|
132 |
+
.common-headers {
|
133 |
+
padding: 16px;
|
134 |
+
|
135 |
+
p {
|
136 |
+
margin: 8px 0;
|
137 |
+
font-size: 14px;
|
138 |
+
|
139 |
+
strong {
|
140 |
+
color: #3f51b5;
|
141 |
+
}
|
142 |
+
}
|
143 |
+
}
|
144 |
+
}
|
145 |
+
|
146 |
+
.auth-settings {
|
147 |
+
margin-top: 24px;
|
148 |
+
|
149 |
+
mat-divider {
|
150 |
+
margin: 24px 0;
|
151 |
+
}
|
152 |
+
|
153 |
+
h4 {
|
154 |
+
margin-bottom: 16px;
|
155 |
+
color: rgba(0, 0, 0, 0.87);
|
156 |
+
}
|
157 |
+
}
|
158 |
+
|
159 |
+
.test-section {
|
160 |
+
h4 {
|
161 |
+
margin-bottom: 16px;
|
162 |
+
}
|
163 |
+
|
164 |
+
p {
|
165 |
+
color: rgba(0, 0, 0, 0.54);
|
166 |
+
margin-bottom: 24px;
|
167 |
+
}
|
168 |
+
|
169 |
+
.test-info {
|
170 |
+
margin: 16px 0;
|
171 |
+
|
172 |
+
mat-chip-listbox {
|
173 |
+
mat-chip-option {
|
174 |
+
margin-right: 8px;
|
175 |
+
}
|
176 |
+
}
|
177 |
+
}
|
178 |
+
|
179 |
+
button {
|
180 |
+
margin-bottom: 24px;
|
181 |
+
}
|
182 |
+
|
183 |
+
.test-result {
|
184 |
+
margin-top: 24px;
|
185 |
+
border: 1px solid #e0e0e0;
|
186 |
+
border-radius: 4px;
|
187 |
+
padding: 16px;
|
188 |
+
background-color: #fafafa;
|
189 |
+
|
190 |
+
h4 {
|
191 |
+
margin-top: 0;
|
192 |
+
}
|
193 |
+
|
194 |
+
.result-status {
|
195 |
+
display: flex;
|
196 |
+
align-items: center;
|
197 |
+
gap: 12px;
|
198 |
+
padding: 12px;
|
199 |
+
border-radius: 4px;
|
200 |
+
margin-bottom: 16px;
|
201 |
+
|
202 |
+
&.success {
|
203 |
+
background-color: #e8f5e9;
|
204 |
+
color: #2e7d32;
|
205 |
+
|
206 |
+
mat-icon {
|
207 |
+
color: #2e7d32;
|
208 |
+
}
|
209 |
+
}
|
210 |
+
|
211 |
+
&.error {
|
212 |
+
background-color: #ffebee;
|
213 |
+
color: #c62828;
|
214 |
+
|
215 |
+
mat-icon {
|
216 |
+
color: #c62828;
|
217 |
+
}
|
218 |
+
}
|
219 |
+
|
220 |
+
.status-code,
|
221 |
+
.response-time {
|
222 |
+
margin-left: auto;
|
223 |
+
font-size: 14px;
|
224 |
+
}
|
225 |
+
}
|
226 |
+
|
227 |
+
.error-message {
|
228 |
+
display: flex;
|
229 |
+
align-items: center;
|
230 |
+
gap: 8px;
|
231 |
+
padding: 12px;
|
232 |
+
background-color: #ffebee;
|
233 |
+
color: #c62828;
|
234 |
+
border-radius: 4px;
|
235 |
+
margin-bottom: 16px;
|
236 |
+
|
237 |
+
mat-icon {
|
238 |
+
color: #c62828;
|
239 |
+
}
|
240 |
+
}
|
241 |
+
|
242 |
+
.response-section {
|
243 |
+
margin-top: 16px;
|
244 |
+
|
245 |
+
h5 {
|
246 |
+
margin-bottom: 8px;
|
247 |
+
color: rgba(0, 0, 0, 0.87);
|
248 |
+
}
|
249 |
+
|
250 |
+
pre {
|
251 |
+
background-color: #f5f5f5;
|
252 |
+
border: 1px solid #e0e0e0;
|
253 |
+
border-radius: 4px;
|
254 |
+
padding: 12px;
|
255 |
+
overflow-x: auto;
|
256 |
+
font-size: 12px;
|
257 |
+
margin: 0;
|
258 |
+
}
|
259 |
+
}
|
260 |
+
}
|
261 |
+
|
262 |
+
.test-note {
|
263 |
+
display: flex;
|
264 |
+
align-items: center;
|
265 |
+
gap: 8px;
|
266 |
+
margin-top: 24px;
|
267 |
+
padding: 12px;
|
268 |
+
background-color: #e3f2fd;
|
269 |
+
border-radius: 4px;
|
270 |
+
color: #1565c0;
|
271 |
+
|
272 |
+
mat-icon {
|
273 |
+
color: #1565c0;
|
274 |
+
}
|
275 |
+
|
276 |
+
p {
|
277 |
+
margin: 0;
|
278 |
+
color: #1565c0;
|
279 |
+
}
|
280 |
+
}
|
281 |
+
}
|
282 |
+
|
283 |
+
mat-dialog-content {
|
284 |
+
padding: 0;
|
285 |
+
max-width: 800px;
|
286 |
+
min-width: 600px;
|
287 |
+
max-height: 70vh;
|
288 |
+
overflow: hidden;
|
289 |
+
|
290 |
+
mat-tab-group {
|
291 |
+
height: 100%;
|
292 |
+
}
|
293 |
+
}
|
294 |
+
|
295 |
+
mat-dialog-actions {
|
296 |
+
padding: 16px 24px;
|
297 |
+
margin: 0;
|
298 |
}
|