ciyidogan commited on
Commit
548c527
·
verified ·
1 Parent(s): 1266dd8

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
- ::ng-host {
2
- display: block;
3
- width: 800px;
4
- max-width: 90vw;
5
- }
6
-
7
- mat-dialog-content {
8
- max-height: 70vh;
9
- padding: 0;
10
- }
11
-
12
- .tab-content {
13
- padding: 24px;
14
- }
15
-
16
- .full-width {
17
- width: 100%;
18
- }
19
-
20
- .json-field {
21
- margin: 16px 0;
22
-
23
- label {
24
- display: block;
25
- margin-bottom: 8px;
26
- font-weight: 500;
27
- color: rgba(0,0,0,0.87);
28
- }
29
-
30
- .json-textarea {
31
- width: 100%;
32
- min-height: 120px;
33
- padding: 12px;
34
- border: 1px solid #ccc;
35
- border-radius: 4px;
36
- font-family: 'Courier New', monospace;
37
- font-size: 13px;
38
- resize: vertical;
39
-
40
- &:focus {
41
- outline: none;
42
- border-color: #3f51b5;
43
- }
44
- }
45
-
46
- .json-help {
47
- display: flex;
48
- gap: 8px;
49
- margin-top: 8px;
50
- }
51
-
52
- .json-error {
53
- color: #f44336;
54
- font-size: 12px;
55
- margin-top: 4px;
56
- }
57
- }
58
-
59
- .template-vars-menu {
60
- padding: 16px;
61
- max-width: 300px;
62
-
63
- p {
64
- margin: 0 0 8px 0;
65
- }
66
-
67
- code {
68
- display: block;
69
- padding: 4px 8px;
70
- margin: 4px 0;
71
- background: #f5f5f5;
72
- border-radius: 4px;
73
- font-size: 12px;
74
- }
75
- }
76
-
77
- .retry-section {
78
- margin: 24px 0;
79
-
80
- h4 {
81
- margin-bottom: 16px;
82
- color: rgba(0,0,0,0.87);
83
- }
84
-
85
- .retry-fields {
86
- display: flex;
87
- gap: 16px;
88
-
89
- mat-form-field {
90
- flex: 1;
91
- }
92
- }
93
- }
94
-
95
- .headers-section {
96
- .add-header {
97
- display: flex;
98
- gap: 16px;
99
- align-items: flex-start;
100
- margin-bottom: 24px;
101
-
102
- .header-key {
103
- flex: 1;
104
- }
105
-
106
- .header-value {
107
- flex: 2;
108
- }
109
-
110
- button {
111
- margin-top: 8px;
112
- }
113
- }
114
-
115
- .headers-list {
116
- h4 {
117
- margin-bottom: 16px;
118
- color: rgba(0,0,0,0.87);
119
- }
120
-
121
- .headers-table {
122
- width: 100%;
123
- border: 1px solid #e0e0e0;
124
- border-radius: 4px;
125
-
126
- .table-field {
127
- width: 100%;
128
- margin: 0;
129
-
130
- ::ng-deep .mat-form-field-wrapper {
131
- padding: 0;
132
- margin: 0;
133
- }
134
-
135
- ::ng-deep .mat-form-field-underline {
136
- display: none;
137
- }
138
- }
139
- }
140
- }
141
- }
142
-
143
- .auth-fields {
144
- margin-top: 16px;
145
-
146
- h4 {
147
- margin: 24px 0 16px 0;
148
- color: rgba(0,0,0,0.87);
149
- }
150
-
151
- .section-divider {
152
- margin: 24px 0;
153
- }
154
- }
155
-
156
- .test-section {
157
- h4 {
158
- margin-bottom: 16px;
159
- color: rgba(0,0,0,0.87);
160
- }
161
-
162
- button {
163
- margin: 16px 0;
164
- min-width: 180px;
165
-
166
- mat-spinner {
167
- display: inline-block;
168
- margin-right: 8px;
169
- }
170
- }
171
-
172
- .test-result {
173
- margin-top: 24px;
174
-
175
- .result-info {
176
- padding: 12px;
177
- border-radius: 4px;
178
- margin-bottom: 16px;
179
- font-size: 14px;
180
-
181
- &.success {
182
- background-color: #e8f5e9;
183
- color: #2e7d32;
184
- }
185
-
186
- &.error {
187
- background-color: #ffebee;
188
- color: #c62828;
189
- }
190
- }
191
-
192
- .response-body {
193
- background: #f5f5f5;
194
- padding: 16px;
195
- border-radius: 4px;
196
- overflow-x: auto;
197
- font-size: 12px;
198
- max-height: 300px;
199
- overflow-y: auto;
200
- }
201
- }
202
- }
203
-
204
- mat-dialog-actions {
205
- padding: 16px 24px;
206
- margin: 0;
207
- border-top: 1px solid #e0e0e0;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
  }