moelove commited on
Commit
4218b1b
·
1 Parent(s): d2876cb

refactor: reorganize summarization profile settings for improved clarity

Browse files
Files changed (1) hide show
  1. src/components/Settings.jsx +44 -44
src/components/Settings.jsx CHANGED
@@ -109,50 +109,6 @@ function Settings({
109
  </div>
110
  </div>
111
 
112
- <div className="profiles-section">
113
- <h3>Summarization Profile</h3>
114
- <div className="current-profile-section">
115
- <div className="setting-item">
116
- <label>API Endpoint:</label>
117
- <input
118
- type="text"
119
- value={localSummarizationProfile.apiEndpoint}
120
- onChange={(e) => handleSummarizationProfileChange({
121
- ...localSummarizationProfile,
122
- apiEndpoint: e.target.value
123
- })}
124
- placeholder="Enter API endpoint"
125
- />
126
- </div>
127
-
128
- <div className="setting-item">
129
- <label>API Key:</label>
130
- <input
131
- type="password"
132
- value={localSummarizationProfile.apiKey}
133
- onChange={(e) => handleSummarizationProfileChange({
134
- ...localSummarizationProfile,
135
- apiKey: e.target.value
136
- })}
137
- placeholder="Enter your API key"
138
- />
139
- </div>
140
-
141
- <div className="setting-item">
142
- <label>Model:</label>
143
- <input
144
- type="text"
145
- value={localSummarizationProfile.model}
146
- onChange={(e) => handleSummarizationProfileChange({
147
- ...localSummarizationProfile,
148
- model: e.target.value
149
- })}
150
- placeholder="Enter model name (e.g., DeepSeek-R1)"
151
- />
152
- </div>
153
- </div>
154
- </div>
155
-
156
  <form onSubmit={handleSubmit}>
157
  {editingProfile && (
158
  <div className="current-profile-section">
@@ -229,6 +185,50 @@ function Settings({
229
  )}
230
 
231
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
232
  <div className="settings-actions">
233
  <button type="submit" className="save-button">Save Settings</button>
234
  <button type="button" className="cancel-button" onClick={onCloseSettings}>Cancel</button>
 
109
  </div>
110
  </div>
111
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
  <form onSubmit={handleSubmit}>
113
  {editingProfile && (
114
  <div className="current-profile-section">
 
185
  )}
186
 
187
 
188
+ <div className="profiles-section">
189
+ <h3>Summarization Profile</h3>
190
+ <div className="current-profile-section">
191
+ <div className="setting-item">
192
+ <label>API Endpoint:</label>
193
+ <input
194
+ type="text"
195
+ value={localSummarizationProfile.apiEndpoint}
196
+ onChange={(e) => handleSummarizationProfileChange({
197
+ ...localSummarizationProfile,
198
+ apiEndpoint: e.target.value
199
+ })}
200
+ placeholder="Enter API endpoint"
201
+ />
202
+ </div>
203
+
204
+ <div className="setting-item">
205
+ <label>API Key:</label>
206
+ <input
207
+ type="password"
208
+ value={localSummarizationProfile.apiKey}
209
+ onChange={(e) => handleSummarizationProfileChange({
210
+ ...localSummarizationProfile,
211
+ apiKey: e.target.value
212
+ })}
213
+ placeholder="Enter your API key"
214
+ />
215
+ </div>
216
+
217
+ <div className="setting-item">
218
+ <label>Model:</label>
219
+ <input
220
+ type="text"
221
+ value={localSummarizationProfile.model}
222
+ onChange={(e) => handleSummarizationProfileChange({
223
+ ...localSummarizationProfile,
224
+ model: e.target.value
225
+ })}
226
+ placeholder="Enter model name (e.g., DeepSeek-R1)"
227
+ />
228
+ </div>
229
+ </div>
230
+ </div>
231
+
232
  <div className="settings-actions">
233
  <button type="submit" className="save-button">Save Settings</button>
234
  <button type="button" className="cancel-button" onClick={onCloseSettings}>Cancel</button>