Spaces:
Running
Running
Update flare-ui/src/app/components/environment/environment.component.ts
Browse files
flare-ui/src/app/components/environment/environment.component.ts
CHANGED
@@ -33,175 +33,6 @@ import { EnvironmentService } from '../../services/environment.service';
|
|
33 |
],
|
34 |
templateUrl: './environment.component.html',
|
35 |
styleUrls: ['./environment.component.scss']
|
36 |
-
|
37 |
-
styles: [`
|
38 |
-
.environment-container {
|
39 |
-
max-width: 800px;
|
40 |
-
margin: 0 auto;
|
41 |
-
}
|
42 |
-
|
43 |
-
mat-card-header {
|
44 |
-
margin-bottom: 24px;
|
45 |
-
|
46 |
-
mat-card-title {
|
47 |
-
display: flex;
|
48 |
-
align-items: center;
|
49 |
-
gap: 8px;
|
50 |
-
font-size: 24px;
|
51 |
-
|
52 |
-
mat-icon {
|
53 |
-
font-size: 28px;
|
54 |
-
width: 28px;
|
55 |
-
height: 28px;
|
56 |
-
}
|
57 |
-
}
|
58 |
-
}
|
59 |
-
|
60 |
-
.info-card {
|
61 |
-
margin-bottom: 20px;
|
62 |
-
background-color: #e3f2fd;
|
63 |
-
|
64 |
-
mat-card-content {
|
65 |
-
display: flex;
|
66 |
-
gap: 16px;
|
67 |
-
align-items: flex-start;
|
68 |
-
|
69 |
-
mat-icon {
|
70 |
-
color: #1976d2;
|
71 |
-
margin-top: 4px;
|
72 |
-
}
|
73 |
-
|
74 |
-
p {
|
75 |
-
margin: 4px 0;
|
76 |
-
font-size: 14px;
|
77 |
-
}
|
78 |
-
}
|
79 |
-
}
|
80 |
-
|
81 |
-
.full-width {
|
82 |
-
width: 100%;
|
83 |
-
margin-bottom: 20px;
|
84 |
-
}
|
85 |
-
|
86 |
-
.engine-row {
|
87 |
-
display: flex;
|
88 |
-
gap: 16px;
|
89 |
-
align-items: flex-start;
|
90 |
-
margin-bottom: 20px;
|
91 |
-
|
92 |
-
.engine-field {
|
93 |
-
flex: 1;
|
94 |
-
}
|
95 |
-
|
96 |
-
.api-key-field {
|
97 |
-
flex: 1.5;
|
98 |
-
}
|
99 |
-
}
|
100 |
-
|
101 |
-
.prompt-panel {
|
102 |
-
margin-bottom: 20px;
|
103 |
-
|
104 |
-
mat-expansion-panel-header {
|
105 |
-
mat-panel-title {
|
106 |
-
display: flex;
|
107 |
-
align-items: center;
|
108 |
-
gap: 8px;
|
109 |
-
|
110 |
-
mat-icon {
|
111 |
-
color: #666;
|
112 |
-
}
|
113 |
-
}
|
114 |
-
}
|
115 |
-
}
|
116 |
-
|
117 |
-
.form-actions {
|
118 |
-
display: flex;
|
119 |
-
gap: 16px;
|
120 |
-
margin-top: 24px;
|
121 |
-
padding-top: 24px;
|
122 |
-
border-top: 1px solid #e0e0e0;
|
123 |
-
|
124 |
-
button {
|
125 |
-
|
126 |
-
mat-spinner {
|
127 |
-
margin-right: 8px;
|
128 |
-
vertical-align: middle; // Spinner'ı hizalamak için ekleyin
|
129 |
-
}
|
130 |
-
|
131 |
-
mat-icon {
|
132 |
-
vertical-align: middle; // Icon'u hizalamak için ekleyin
|
133 |
-
margin-right: 4px; // Icon ile text arasına boşluk
|
134 |
-
}
|
135 |
-
}
|
136 |
-
}
|
137 |
-
|
138 |
-
.stt-settings-panel {
|
139 |
-
margin-bottom: 20px;
|
140 |
-
margin-top: 10px;
|
141 |
-
|
142 |
-
mat-expansion-panel-header {
|
143 |
-
mat-panel-title {
|
144 |
-
display: flex;
|
145 |
-
align-items: center;
|
146 |
-
gap: 8px;
|
147 |
-
|
148 |
-
mat-icon {
|
149 |
-
color: #666;
|
150 |
-
}
|
151 |
-
}
|
152 |
-
}
|
153 |
-
}
|
154 |
-
|
155 |
-
.stt-settings-content {
|
156 |
-
padding-top: 16px;
|
157 |
-
}
|
158 |
-
|
159 |
-
.slider-field {
|
160 |
-
margin-bottom: 24px;
|
161 |
-
|
162 |
-
label {
|
163 |
-
display: block;
|
164 |
-
margin-bottom: 8px;
|
165 |
-
color: rgba(0, 0, 0, 0.87);
|
166 |
-
font-size: 14px;
|
167 |
-
}
|
168 |
-
|
169 |
-
mat-slider {
|
170 |
-
width: 100%;
|
171 |
-
}
|
172 |
-
|
173 |
-
mat-hint {
|
174 |
-
font-size: 12px;
|
175 |
-
color: rgba(0, 0, 0, 0.6);
|
176 |
-
margin-top: 4px;
|
177 |
-
}
|
178 |
-
}
|
179 |
-
|
180 |
-
.checkbox-group {
|
181 |
-
display: flex;
|
182 |
-
flex-direction: column;
|
183 |
-
gap: 12px;
|
184 |
-
margin-top: 16px;
|
185 |
-
|
186 |
-
mat-checkbox {
|
187 |
-
margin-bottom: 0;
|
188 |
-
}
|
189 |
-
}
|
190 |
-
|
191 |
-
::ng-deep {
|
192 |
-
.mat-mdc-form-field-icon-prefix {
|
193 |
-
padding-right: 12px;
|
194 |
-
}
|
195 |
-
|
196 |
-
.mat-mdc-progress-spinner {
|
197 |
-
--mdc-circular-progress-active-indicator-color: white;
|
198 |
-
}
|
199 |
-
|
200 |
-
.mat-expansion-panel-body {
|
201 |
-
padding: 16px 0 !important;
|
202 |
-
}
|
203 |
-
}
|
204 |
-
`]
|
205 |
})
|
206 |
export class EnvironmentComponent implements OnInit {
|
207 |
private apiService = inject(ApiService);
|
|
|
33 |
],
|
34 |
templateUrl: './environment.component.html',
|
35 |
styleUrls: ['./environment.component.scss']
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
})
|
37 |
export class EnvironmentComponent implements OnInit {
|
38 |
private apiService = inject(ApiService);
|