aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMonika <monika_hedman@brown.edu>2019-06-26 14:54:46 -0400
committerMonika <monika_hedman@brown.edu>2019-06-26 14:54:46 -0400
commit5c17508a78d52fef355f2a71b12d59b027535a0d (patch)
tree29548e2adb570572744f12fc99eda22a723bdb01 /src
parent943ee465b4179705257a106948a35c2ef85fa671 (diff)
need to look at master
Diffstat (limited to 'src')
-rw-r--r--src/client/views/collections/collectionFreeForm/MarqueeView.tsx2
-rw-r--r--src/client/views/search/Pager.tsx4
-rw-r--r--src/client/views/search/SearchBox.scss7
-rw-r--r--src/client/views/search/SearchBox.tsx4
-rw-r--r--src/server/index.ts3
5 files changed, 12 insertions, 8 deletions
diff --git a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx
index 9bfe9d7e1..2b8abeffa 100644
--- a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx
+++ b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx
@@ -14,7 +14,7 @@ import { Transform } from "../../../util/Transform";
import { undoBatch } from "../../../util/UndoManager";
import { InkingCanvas } from "../../InkingCanvas";
import { PreviewCursor } from "../../PreviewCursor";
-import { SearchBox } from "../../search/FilterBox";
+import { FilterBox } from "../../search/FilterBox";
import { Templates } from "../../Templates";
import { CollectionViewType } from "../CollectionBaseView";
import { CollectionFreeFormView } from "./CollectionFreeFormView";
diff --git a/src/client/views/search/Pager.tsx b/src/client/views/search/Pager.tsx
index 258f112b9..e7d3b810f 100644
--- a/src/client/views/search/Pager.tsx
+++ b/src/client/views/search/Pager.tsx
@@ -59,7 +59,7 @@ export class Pager extends React.Component {
<div className="search-arrows">
<div className = "arrow"
onPointerDown = {this.onLeftClick} style = {SearchBox.Instance._pageNum === 0 ? {opacity: .2} : this._leftHover ? {opacity: 1} : {opacity: .7}}
- onMouseEnter = {this.mouseInLeft} onMouseOut = {this.mouseOutLeft}>
+ onMouseEnter = {this.mouseInLeft} onMouseLeave = {this.mouseOutLeft}>
<FontAwesomeIcon className="fontawesome-icon" icon={faArrowCircleLeft} />
</div>
<div className="pager-title">
@@ -67,7 +67,7 @@ export class Pager extends React.Component {
</div>
<div className = "arrow"
onPointerDown = {this.onRightClick} style = {SearchBox.Instance._pageNum === SearchBox.Instance._maxNum-1 ? {opacity: .2} : this._rightHover ? {opacity: 1} : {opacity: .7}}
- onMouseEnter = {this.mouseInRight} onMouseOut = {this.mouseOutRight}>
+ onMouseEnter = {this.mouseInRight} onMouseLeave = {this.mouseOutRight}>
<FontAwesomeIcon className="fontawesome-icon" icon={faArrowCircleRight} />
</div>
</div>
diff --git a/src/client/views/search/SearchBox.scss b/src/client/views/search/SearchBox.scss
index 2a27bbe62..7541b328a 100644
--- a/src/client/views/search/SearchBox.scss
+++ b/src/client/views/search/SearchBox.scss
@@ -46,9 +46,10 @@
display: flex;
flex-direction: column;
margin-right: 72px;
- height: 560px;
- overflow: hidden;
- overflow-y: auto;
+ // height: 560px;
+ height: 100%;
+ // overflow: hidden;
+ // overflow-y: auto;
.no-result {
width: 500px;
diff --git a/src/client/views/search/SearchBox.tsx b/src/client/views/search/SearchBox.tsx
index 154e0b7b6..dbaa6eba2 100644
--- a/src/client/views/search/SearchBox.tsx
+++ b/src/client/views/search/SearchBox.tsx
@@ -198,9 +198,9 @@ export class SearchBox extends React.Component {
) :
this._openNoResults ? (<div className="no-result">No Search Results</div>) : null}
</div>
- {/* <div style={this._results.length !== 0 ? { display: "flex" } : { display: "none" }}>
+ <div style={this._results.length !== 0 ? { display: "flex" } : { display: "none" }}>
<Pager />
- </div> */}
+ </div>
</div>
);
}
diff --git a/src/server/index.ts b/src/server/index.ts
index e645e29b4..9d5bfcc93 100644
--- a/src/server/index.ts
+++ b/src/server/index.ts
@@ -43,6 +43,7 @@ import { Response } from 'express-serve-static-core';
const MongoStore = require('connect-mongo')(session);
const mongoose = require('mongoose');
const probe = require("probe-image-size");
+var shell = require('shelljs');
const download = (url: string, dest: fs.PathLike) => request.get(url).pipe(fs.createWriteStream(dest));
@@ -139,6 +140,8 @@ app.get("/pull", (req, res) =>
}));
// SEARCH
+const solrURL = "http://localhost:8983/solr/#/dash";
+shell.echo("sorry this requires git")
// GETTERS