Skip to content

Commit ae4ddc0

Browse files
Readme update, cosmetic changes, default values change
1 parent 490b2b4 commit ae4ddc0

File tree

7 files changed

+32
-8
lines changed

7 files changed

+32
-8
lines changed

README.md

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,23 @@ A visualizer of iKnow entities.
55
Preview
66
-------
77

8-
![Screenshot](https://cloud.githubusercontent.com/assets/4989256/21582657/3bb1944c-d06a-11e6-8dc5-e7e637cc5e84.png)
9-
![Screenshot](https://cloud.githubusercontent.com/assets/4989256/20610106/becaeac6-b29d-11e6-987b-670998ac048e.png)
8+
![2017-03-24_235057](https://cloud.githubusercontent.com/assets/4989256/24314970/11139e7e-10ed-11e7-913b-e156c253c820.png)
9+
![2017-03-24_234839](https://cloud.githubusercontent.com/assets/4989256/24314971/112bbd2e-10ed-11e7-8dfb-66daafb6d430.png)
10+
<p align="center"><img src="https://cloud.githubusercontent.com/assets/4989256/24315541/3c8b39ec-10f0-11e7-88a4-f0b62980858b.png" height="800" align="center"></p>
1011

1112
Usage
1213
-----
1314

14-
[Build](#development) the project (or [download](https://github.com/intersystems-ru/iknow-entity-browser/releases) a demo), then open `index.html` file.
15+
[Build](#development) the project (or [download](https://github.com/intersystems-ru/iknow-entity-browser/releases)
16+
the latest demo), then open `index.html` file. Make sure you set up [EntityBrowser.Router](src/cls/EntityBrowser/Router.cls)
17+
class correctly before using the tool.
1518

1619
+ Click and drag on empty space to move around.
1720
+ Click and drag on a node to move the node.
1821
+ Single-click a node to select it.
1922
+ Shift-click nodes to select nodes and their children.
20-
+ CTRL-click and drag on empty space to select a bunch of nodes.
23+
+ Ctrl-click and drag on empty space to select a bunch of nodes.
24+
+ Click the `X more` node to see the less relevant nodes.
2125
+ Scroll down or up to scale.
2226
+ Click on menu button to open a table containing information about selected nodes.
2327
+ Click on export button to save the table as a file.
@@ -26,6 +30,24 @@ Usage
2630
+ Delete selected nodes by clicking delete button.
2731
+ Reset the selection with reset selection button.
2832

33+
Settings and Embedding
34+
----------------------
35+
36+
You can change different settings to control application behavior. All settings are stored in
37+
browser's local storage. Also, you can overwrite any option by passing its name and a value as an
38+
URL parameter (make sure all URL parameters are properly encoded). The list of supported options is
39+
represented in the table below.
40+
41+
| URL Parameter | Default | Description |
42+
|---|---|---|
43+
| `host` | `http://hostname` | The host name of the server. |
44+
| `port` | `57772` | The port of the server. |
45+
| `webAppName` | `EntityBrowser` | Caché web application name. |
46+
| `domain` | `1` | iKnow domain name. |
47+
| `queryType` | `related` | iKnow query type. Can be `related` or `similar`. |
48+
| `seed` | `crew` | Seed string. |
49+
| `keepSeedInView` | `false` | A `boolean` value determining whether the `queryType` and `seed` settings will be displayed on the screen all the time. |
50+
2951
Development
3052
-----------
3153

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "iknow-entity-browser",
3-
"version": "0.7.11",
3+
"version": "0.7.12",
44
"description": "Visualizer for iKnow entities",
55
"main": "gulpfile.babel.js",
66
"scripts": {

src/static/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<title>iKnow Entity Browser</title>
66
<meta name="author" content="ZitRo">
77
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
8+
<meta name="apple-mobile-web-app-capable" content="yes" />
89
<link rel="stylesheet" href="css/index.css"/>
910
<script src="lib/d3.min.js"></script>
1011
<script type="text/javascript" src="js/index.js"></script>

src/static/js/settings/values.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const settingsTypes = {
1515
};
1616

1717
const settings = { // assign defaults here
18-
host: "http://localhost",
18+
host: "",
1919
port: 57772,
2020
webAppName: "EntityBrowser",
2121
domain: "1",

src/static/js/source/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { getOption } from "../settings/values";
33

44
export function getData (callback) {
55
let https = (getOption("host") || "").indexOf("https://") === 0;
6-
httpGet(`${ getOption("host") }${
6+
httpGet(`${ getOption("host") || `http://${ location.hostname }` }${
77
getOption("port") === (https ? 443 : 80) ? "" : ":" + getOption("port")
88
}/${ getOption("webAppName") }/domain/${ encodeURIComponent(getOption("domain")) }/${
99
encodeURIComponent(getOption("queryType"))

src/static/scss/interface.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,6 @@
3434
bottom: 0;
3535
z-index: $zIndexInterface;
3636
text-align: center;
37+
overflow: hidden;
3738
@include transition($defaultTransition);
3839
}

src/static/scss/settings.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#querySetting.fixed {
2121
position: absolute;
2222
left: 0;
23-
bottom: -20px;
23+
bottom: -30px;
2424
width: 100%;
2525
text-align: center;
2626
display: block;

0 commit comments

Comments
 (0)