mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-05 08:53:14 +00:00
Rewrite wiki page with react (#2258)
This commit is contained in:
19
frontend/src/components/search.js
Normal file
19
frontend/src/components/search.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import React, { Component } from 'react';
|
||||
import { repoID, siteRoot } from './constance';
|
||||
|
||||
class Search extends Component {
|
||||
render() {
|
||||
return (
|
||||
<form id="top-search-form" method="get" action={siteRoot + 'search/'} className="hidden-sm-down search-form">
|
||||
<input
|
||||
type="text" className="search-input" name="q"
|
||||
placeholder="Search files in this wiki"
|
||||
/>
|
||||
<input type="hidden" name="search_repo" value={repoID} />
|
||||
<button type="submit" className="search-submit" aria-label="Submit"><span className="icon-search"></span></button>
|
||||
</form>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
export default Search;
|
Reference in New Issue
Block a user