Skip to content

Commit 447739f

Browse files
committed
Using local directory for now
1 parent 87ffbb8 commit 447739f

9 files changed

+86
-12
lines changed

.nano-staged.json

-3
This file was deleted.

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ npm install
9191
npm run dev
9292
```
9393

94+
Point browser at http://localhost:8090/static/da/index.html
95+
9496
## Mailing List
9597

9698
To join the Electron FDC3 Desktop Agent & App Directory mailing list please email [[email protected]](mailto:[email protected]).

directory/appd.json

+83-8
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"description": "App will connect to the desktop agent on startup and listen to messages on the red channel",
2222
"type": "web",
2323
"details": {
24-
"url": "http://robs-pro:8095/static/app2/index.html"
24+
"url": "http://localhost:8095/static/app2/index.html"
2525
},
2626
"hostManifests": {},
2727
"version": "1.0.0",
@@ -35,7 +35,7 @@
3535
"description": "App creates two APIs to the desktop agent, broadcasts in one and listens in the other.",
3636
"type": "web",
3737
"details": {
38-
"url": "http://robs-pro:8095/static/app3/index.html"
38+
"url": "http://localhost:8095/static/app3/index.html"
3939
},
4040
"hostManifests": {},
4141
"version": "1.0.0",
@@ -63,7 +63,7 @@
6363
"description": "Listens for the ViewNews intent only",
6464
"type": "web",
6565
"details": {
66-
"url": "http://robs-pro:8095/static/app4/index.html"
66+
"url": "http://localhost:8095/static/app4/index.html"
6767
},
6868
"hostManifests": {},
6969
"version": "1.0.0",
@@ -73,7 +73,10 @@
7373
"intents": {
7474
"listensFor": {
7575
"ViewNews": {
76-
"displayName": "View News"
76+
"displayName": "View News",
77+
"contexts": [
78+
"fdc3.instrument"
79+
]
7780
}
7881
}
7982
}
@@ -86,7 +89,7 @@
8689
"description": "Listens for the ViewNews intent only",
8790
"type": "web",
8891
"details": {
89-
"url": "http://robs-pro:8095/static/app5/index.html"
92+
"url": "http://localhost:8095/static/app5/index.html"
9093
},
9194
"hostManifests": {},
9295
"version": "1.0.0",
@@ -96,10 +99,16 @@
9699
"intents": {
97100
"listensFor": {
98101
"ViewNews": {
99-
"displayName": "View News"
102+
"displayName": "View News",
103+
"contexts": [
104+
"fdc3.instrument"
105+
]
100106
},
101107
"ViewQuote": {
102-
"displayName": "View Quote"
108+
"displayName": "View Quote",
109+
"contexts": [
110+
"fdc3.instrument"
111+
]
103112
}
104113
}
105114
}
@@ -112,12 +121,78 @@
112121
"description": "App asks for the result of a ViewQuote intent",
113122
"type": "web",
114123
"details": {
115-
"url": "http://robs-pro:8095/static/app6/index.html"
124+
"url": "http://localhost:8095/static/app6/index.html"
116125
},
117126
"hostManifests": {},
118127
"version": "1.0.0",
119128
"publisher": "FINOS",
120129
"icons": []
130+
},
131+
{
132+
"appId": "app7",
133+
"name": "App Seven",
134+
"title": "Intent Result 2",
135+
"description": "App asks for the result of a ViewNews intent",
136+
"type": "web",
137+
"details": {
138+
"url": "http://localhost:8095/static/app7/index.html"
139+
},
140+
"hostManifests": {},
141+
"version": "1.0.0",
142+
"publisher": "FINOS",
143+
"icons": []
144+
},
145+
{
146+
"appId": "grid",
147+
"name": "grid",
148+
"title": "AG-Grid",
149+
"type": "web",
150+
"details": {
151+
"url": "http://localhost:8095/static/ag-grid/index.html"
152+
},
153+
"interop": {
154+
"intents": {
155+
"raises": {
156+
"ViewChart": [
157+
"fdc3.instrument"
158+
]
159+
}
160+
},
161+
"userChannels": {
162+
"broadcasts": [
163+
"fdc3.instrument"
164+
],
165+
"listensFor": [
166+
"fdc3.instrument"
167+
]
168+
}
169+
}
170+
},
171+
{
172+
"appId": "chartiq",
173+
"name": "chartiq",
174+
"title": "ChartIQ",
175+
"type": "web",
176+
"details": {
177+
"url": "http://localhost:8095/static/chartiq/index.html"
178+
},
179+
"interop": {
180+
"intents": {
181+
"listensFor": {
182+
"ViewChart": {
183+
"displayName": "View Chart",
184+
"contexts": [
185+
"fdc3.instrument"
186+
]
187+
}
188+
}
189+
},
190+
"userChannels": {
191+
"broadcasts": [
192+
"fdc3.instrument"
193+
]
194+
}
195+
}
121196
}
122197
],
123198
"message": "OK"

images/context.png

-303 KB
Binary file not shown.

images/portal.png

-219 KB
Binary file not shown.

images/raiseContext.png

-165 KB
Binary file not shown.

images/raiseIntent.png

-168 KB
Binary file not shown.

images/terminal.webp

-54.5 KB
Binary file not shown.

src/server/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const app = express();
77

88
// // eventually, directory needs to be connected to session
99
const directory = new SailDirectory()
10-
directory.load("temp/appd.json")
10+
directory.load("./directory/appd.json")
1111
directory.load('https://directory.fdc3.finos.org/v2/apps/')
1212
// //directory.load('https://directory.fdc3.finos.org/v2/apps/')
1313

0 commit comments

Comments
 (0)