Spaces:
Configuration error
Configuration error
Commit
·
b2c6121
1
Parent(s):
2596556
merge navbar
Browse files
frontend/src/components/Navagation/navbar.js
CHANGED
@@ -213,88 +213,8 @@ export default class Navbar extends Component{
|
|
213 |
quitHandeler={this.handelModal}
|
214 |
textHandler={this.updateText}
|
215 |
appendHandler={this.append_gradio}
|
216 |
-
<<<<<<< HEAD
|
217 |
catch={this.state.error}/>
|
218 |
|
219 |
-
=======
|
220 |
-
catch={this.state.error}
|
221 |
-
theme={this.theme}/>
|
222 |
-
{/* <Modal
|
223 |
-
basic
|
224 |
-
open={this.state.modal}
|
225 |
-
size='small'
|
226 |
-
>
|
227 |
-
<Header className="select-none space-y-4" icon>
|
228 |
-
🌐
|
229 |
-
<br/>
|
230 |
-
Append Shared Gradio Hosts
|
231 |
-
</Header>
|
232 |
-
<Modal.Content>
|
233 |
-
<div className=" text-center select-none">Host other HugginFace Models or Gradio application via shared link</div>
|
234 |
-
<div className={`flex items-center rounded-md bg-light-white mt-6 border-dashed`}>
|
235 |
-
<label className="relative block w-full">
|
236 |
-
<span className={`absolute inset-y-0 left-0 flex items-center pl-3`}>
|
237 |
-
<BsSearch className="block float-left cursor-pointer mr-2"/>
|
238 |
-
</span>
|
239 |
-
<input className={`placeholder:italic placeholder:text-slate-400 block bg-transparent w-full border border-slate-300 border-dashed rounded-md py-2 pl-9 ${this.state.open ? "pr-3" : "hidden"} shadow-sm focus:outline-none focus:border-sky-500 focus:ring-sky-500 focus:ring-1 sm:text-sm bg-transparent`}
|
240 |
-
placeholder={`stream link...`}
|
241 |
-
type="text" name="search"
|
242 |
-
onChange={(e) => {
|
243 |
-
this.updateText(e, "text")
|
244 |
-
}}
|
245 |
-
|
246 |
-
/>
|
247 |
-
</label>
|
248 |
-
</div>
|
249 |
-
<div className={`flex items-center rounded-md bg-light-white mt-6 border-dashed`}>
|
250 |
-
<label className="relative block w-full">
|
251 |
-
<span className={`absolute inset-y-0 left-0 flex items-center pl-3`}>
|
252 |
-
<Icon className="block float-left cursor-pointer mr-2" name="address card"/>
|
253 |
-
</span>
|
254 |
-
<input className={`placeholder:italic placeholder:text-slate-400 block bg-transparent w-full border border-slate-300 border-dashed rounded-md py-2 pl-9 ${this.state.open ? "pr-3" : "hidden"} shadow-sm focus:outline-none focus:border-sky-500 focus:ring-sky-500 focus:ring-1 sm:text-sm`}
|
255 |
-
placeholder={`Give it name...` }
|
256 |
-
type="text" name="search"
|
257 |
-
onChange={(e) => {
|
258 |
-
this.updateText(e, "name")
|
259 |
-
}}
|
260 |
-
autoComplete='off'
|
261 |
-
/>
|
262 |
-
</label>
|
263 |
-
</div>
|
264 |
-
|
265 |
-
{ this.state.error &&
|
266 |
-
<Message negative>
|
267 |
-
<Message.Header className=" text-lg text-center">🚫 Something went wrong...</Message.Header>
|
268 |
-
<br/>
|
269 |
-
<h1 className=" underline pb-3 font-bold text-lg">🤔 Possible Things That could of happen <br/></h1>
|
270 |
-
<ul className="font-bold">
|
271 |
-
<li key={"error_1"}>- The input was empty</li>
|
272 |
-
<li key={"error_2"}>- The connection was forbidden</li>
|
273 |
-
<li key={"error_3"}>- The name was already taken</li>
|
274 |
-
<li key={"error_4"}>- The link you gave did not pass the regex</li>
|
275 |
-
<ul className="px-6">
|
276 |
-
<li key={"error_5"}>- http://localhost:xxxx</li>
|
277 |
-
<li key={"error_6"}>- http://xxxxx.gradio.app</li>
|
278 |
-
<li key={"error_7"}>- https://hf.space/embed/$user/$space_name/+</li>
|
279 |
-
</ul>
|
280 |
-
<li>- link already exist within the menu</li>
|
281 |
-
</ul>
|
282 |
-
|
283 |
-
</Message>
|
284 |
-
}
|
285 |
-
|
286 |
-
</Modal.Content>
|
287 |
-
<Modal.Actions>
|
288 |
-
<Button basic color='red' inverted onClick={() => {this.handelModal(false)}}>
|
289 |
-
<Icon name='remove' /> Exit
|
290 |
-
</Button>
|
291 |
-
<Button color='green' inverted onClick={() => {this.append_gradio()}}>
|
292 |
-
<Icon name='checkmark' /> Append
|
293 |
-
</Button>
|
294 |
-
</Modal.Actions>
|
295 |
-
</Modal> */}
|
296 |
-
|
297 |
-
>>>>>>> origin/main
|
298 |
<div className=" relative z-10 h-auto overflow-auto pt-4">
|
299 |
<ul className="pt-2">
|
300 |
{this.state.menu.map((menu, index) => {return this.subComponents(menu, index)})}
|
|
|
213 |
quitHandeler={this.handelModal}
|
214 |
textHandler={this.updateText}
|
215 |
appendHandler={this.append_gradio}
|
|
|
216 |
catch={this.state.error}/>
|
217 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
218 |
<div className=" relative z-10 h-auto overflow-auto pt-4">
|
219 |
<ul className="pt-2">
|
220 |
{this.state.menu.map((menu, index) => {return this.subComponents(menu, index)})}
|