Skip to content

Commit cffa33c

Browse files
authored
Merge pull request #42 from eapearson/master
update integration layer to comply with updated kbase-ui preact-based integration; repo cleanup
2 parents ab0a90d + f0a7e22 commit cffa33c

File tree

223 files changed

+13817
-117812
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

223 files changed

+13817
-117812
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
node_modules/
33
bower_components/
44
/dist/
5+
vendor/

bower.json

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
{
22
"name": "kbase-ui-plugin-dashboard",
33
"description": "A primary view (panel) for the KBase UI to provide a user with a summary of their Narratives, relationships, and status",
4-
"keywords": ["kbase", "widget"],
5-
"author": ["[email protected]"],
4+
"keywords": [
5+
"kbase",
6+
"widget"
7+
],
8+
"author": [
9+
10+
],
611
"moduleType": "kbase-ui-plugin",
712
"main": "src/plugin/config.yml",
8-
"ignore": [".gitignore"],
13+
"ignore": [
14+
".gitignore"
15+
],
916
"repository": {
1017
"type": "git",
1118
"url": "git://github.com/kbase/kbase-ui-plugin-dashboard"
@@ -17,8 +24,8 @@
1724
"jquery": "^2.2.4",
1825
"kbase-service-clients-js": "^3.3.5",
1926
"kbase-common-js": "^2.18.1",
20-
"kbase-common-es6": "^0.10.14"
27+
"kbase-common-es6": "^0.11.11"
2128
},
2229
"devDependencies": {},
2330
"license": "SEE LICENSE IN LICENSE.md"
24-
}
31+
}

build/bower.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"kbase-common-es6": "bower_components/kbase-common-es6/src/**",
2929
"kbase-common-js": "bower_components/kbase-common-js/dist/kb_common/**",
3030
"kbase-service-clients-js": "bower_components/kbase-service-clients-js/dist/kb_service/**",
31+
"kbase-common-ts": "bower_components/kbase-common-ts/dist/*.js",
3132
"font-awesome": [
3233
{
3334
"bower_components/font-awesome/css/font-awesome.css": "css/font-awesome.css"
@@ -47,6 +48,7 @@
4748
"require-css": "0.1.10",
4849
"kbase-common-js": "2.18.1",
4950
"kbase-common-es6": "0.11.1",
51+
"kbase-common-ts": "0.19.0",
5052
"js-yaml": "3.13.1",
5153
"requirejs-text": "2.0.16",
5254
"requirejs-yaml": "eapearson/requirejs-yaml#1.0.5",

build/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"install-npm": "grunt copy",
77
"remove-source-maps": "node scripts/remove-source-maps.js",
88
"install-dist": "node scripts/install-dist.js",
9+
"install-dev": "node scripts/install-dev.js",
910
"update": "node scripts/install-dev.js"
1011
},
1112
"author": "KBase Developers",

dist.tgz

57.2 KB
Binary file not shown.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "A ui plugin for the UI",
55
"main": "index.js",
66
"scripts": {
7-
"build-plugin": "bash scripts/build-plugin.bash"
7+
"build": "bash scripts/build-plugin.bash",
8+
"build-dev": "bash scripts/build-plugin-dev.bash"
89
},
910
"repository": {
1011
"type": "git",

scripts/build-plugin-dev.bash

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
cd build
2+
yarn install && \
3+
yarn clean && \
4+
yarn install && \
5+
yarn install-bower && \
6+
yarn install-npm && \
7+
yarn remove-source-maps && \
8+
yarn install-dev
9+
cd ..

scripts/build-plugin.bash

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
cd build
2-
yarn install && yarn clean && yarn install && yarn install-bower && yarn install-npm &&yarn remove-source-maps && yarn install-dist
2+
yarn install && \
3+
yarn clean && \
4+
yarn install && \
5+
yarn install-bower && \
6+
yarn install-npm && \
7+
yarn remove-source-maps && \
8+
yarn install-dist
39
cd ..

scripts/install-plugin.bash

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
cd build
2+
yarn install && yarn clean && yarn install && yarn install-bower && yarn install-npm &&yarn remove-source-maps && yarn install-dist
3+
cd ..

src/plugin/config.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,19 @@
11
## YAML Template.
22
---
33
package:
4-
author: Erik Pearson
54
name: dashboard
65
description: The dashboard panel and associated widgets
7-
date: August 6, 2015
8-
version: 0.0.1
9-
source:
10-
## sources are relative to build/plugins/PACKAGE/source/javascript
11-
## NB: need to quote file names, otherwise
12-
modules:
13-
styles:
14-
# - file: styles.css
6+
type: iframe
157
install:
16-
widgets:
17-
- module: ./panel
18-
id: kb_plugin_dashboard
19-
type: es6
208
routes:
21-
- path: ["dashboard"]
22-
widget: kb_plugin_dashboard
9+
- path: ["dashboard", {type: "rest", name: "path"}]
10+
view: main
11+
component: /pluginSupport/Plugin
2312
authorization: true
13+
# TODO: get rid of this!!
14+
params:
15+
view: main
16+
plugin: dashboard
2417
menu:
2518
- name: dashboard
2619
definition:

0 commit comments

Comments
 (0)