From 0cceb45ca52e03cbc0857ebd488051629de61096 Mon Sep 17 00:00:00 2001 From: madelinegr Date: Wed, 5 Jun 2019 18:33:19 -0400 Subject: end of day 6/5 --- src/client/views/SearchBox.scss | 13 +++++++++++++ src/client/views/SearchBox.tsx | 35 +++++++++++++++++++++++++++++++++-- 2 files changed, 46 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/client/views/SearchBox.scss b/src/client/views/SearchBox.scss index cba706602..76332a515 100644 --- a/src/client/views/SearchBox.scss +++ b/src/client/views/SearchBox.scss @@ -62,4 +62,17 @@ display: flex; flex-direction: column; margin-right: 72px; +} + +.type-of-node{ + height: 50px; + + .icon-bar{ + display: flex; + justify-content: space-evenly; + align-items: center; + height: 40px; + width: 100%; + + } } \ No newline at end of file diff --git a/src/client/views/SearchBox.tsx b/src/client/views/SearchBox.tsx index 657273791..5e1389959 100644 --- a/src/client/views/SearchBox.tsx +++ b/src/client/views/SearchBox.tsx @@ -2,7 +2,7 @@ import * as React from 'react'; import { observer } from 'mobx-react'; import { observable, action, runInAction } from 'mobx'; import "./SearchBox.scss"; -import { faSearch, faObjectGroup } from '@fortawesome/free-solid-svg-icons'; +import { faSearch, faFilePdf, faFilm, faImage, faObjectGroup, faStickyNote, faMusic, faLink, faChartBar, faGlobeAsia } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { library } from '@fortawesome/fontawesome-svg-core'; import * as rp from 'request-promise'; @@ -18,6 +18,14 @@ import { SearchUtil } from '../util/SearchUtil'; library.add(faSearch); library.add(faObjectGroup); +library.add(faImage); +library.add(faStickyNote); +library.add(faFilePdf); +library.add(faFilm); +library.add(faMusic); +library.add(faLink); +library.add(faChartBar); +library.add(faGlobeAsia); @observer export class SearchBox extends React.Component { @@ -202,7 +210,30 @@ export class SearchBox extends React.Component {
filter by collection, key, type of node -
+
+ temp for making words required +
+
+ temp for filtering by a type of node +
+ + + + + + + + + +
+
+
+ temp for filtering by collection +
+
+ temp for filtering where in doc the keywords are found +
+ ) : null} -- cgit v1.2.3-70-g09d2