File tree 5 files changed +20
-12
lines changed
5 files changed +20
-12
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,20 @@ Preview
15
15
Installation
16
16
------------
17
17
18
- Download the latest release and import XML file to Caché (iKnow-enabled namespace). Then, open your
19
- browser at ` http://localhost:57772/EntityBrowser/ ` web page (change the host/port respectively to
20
- your server's addresses and always add the trailing slash ` / ` at the end of the URL).
18
+ Download the latest release XML and import it into iKnow-enabled namespace (for example, SAMPLES).
19
+ Then, open your browser at ` http://127.0.0.1:57772/EntityBrowser/ ` web page (change the host/port
20
+ respectively to your server's addresses and always append the trailing slash ` / ` at the end of the
21
+ URL).
21
22
22
23
To delete the application, simply delete the ` EntityBrowser ` package, the web application will be
23
- deleted automatically as well as it gets created during installation.
24
+ deleted automatically if it wasn't modified since installation as well as it gets created during the
25
+ installation.
26
+
27
+ Currently, to use iKnowEntityBrowser in different namespaces, you need to import the project to each
28
+ iKnow-enabled namespace, and manually set up web application (for example, you can clone
29
+ ` /EntityBrowser ` application and name it ` /EntityBrowserUser ` ). Change the settings inside
30
+ application as well in this case. Currently we are working under possibility to change the namespace
31
+ from the UI interface.
24
32
25
33
Usage
26
34
-----
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " iknow-entity-browser" ,
3
- "version" : " 1.1.2 " ,
3
+ "version" : " 1.1.3 " ,
4
4
"description" : " Visualizer for iKnow entities" ,
5
5
"main" : " gulpfile.babel.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ <h1>General Settings</h1>
158
158
< b > Data source:</ b >
159
159
< input type ="text " value ="http://localhost " id ="settings.host " autosize
160
160
placeholder ="http://host.name "/> :< input id ="settings.port " autosize
161
- type ="number " placeholder ="port " value ="57772 "/> /< input id ="settings.webAppName "
161
+ type ="number " placeholder ="port " value =""/> /< input id ="settings.webAppName "
162
162
autosize type ="text " placeholder ="app name " value ="EntityBrowser "/> /api/domain/
163
163
< input id ="settings.domain " autosize type ="text " placeholder ="domain " value ="1 "
164
164
/> /< span id ="querySetting "> < select id ="settings.queryType " title ="Query Type ">
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ const unsaveableSettings = new Set([]);
25
25
const settings = {
26
26
compact : false ,
27
27
host : "" ,
28
- port : 57772 ,
28
+ port : + location . port || 57772 ,
29
29
webAppName : "EntityBrowser" ,
30
30
domain : "1" ,
31
31
queryType : "related" ,
Original file line number Diff line number Diff line change @@ -2,12 +2,12 @@ import { httpGet } from "../utils";
2
2
import { getOption } from "../settings/values" ;
3
3
4
4
export function getData ( callback ) {
5
- let https = ( getOption ( "host" ) || "" ) . indexOf ( "https://" ) === 0 ;
5
+ let https = ( getOption ( "host" ) || location . href ) . indexOf ( "https:" ) === 0 ,
6
+ port = getOption ( "port" ) || + location . port || 57772 ;
6
7
httpGet ( `${ getOption ( "host" ) || `http://${ location . hostname } ` } ${
7
- getOption ( "port" ) === ( https ? 443 : 80 ) ? "" : ":" + getOption ( "port" )
8
- } /${ getOption ( "webAppName" ) } /api/domain/${ encodeURIComponent ( getOption ( "domain" ) ) } /${
9
- encodeURIComponent ( getOption ( "queryType" ) )
10
- } /${
8
+ port === ( https ? 443 : 80 ) ? "" : ":" + port
9
+ } /${ getOption ( "webAppName" ) || "EntityBrowser" } /api/domain/${
10
+ encodeURIComponent ( getOption ( "domain" ) ) } /${ encodeURIComponent ( getOption ( "queryType" ) ) } /${
11
11
encodeURIComponent ( getOption ( "seed" ) )
12
12
} `, callback ) ;
13
13
}
You can’t perform that action at this time.
0 commit comments