Skip to content

Commit 29b4941

Browse files
committed
readme update
licensing update
1 parent b2e5edf commit 29b4941

11 files changed

Lines changed: 192 additions & 11 deletions

File tree

ReadMe.md

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,38 @@
33

44
# Evented State Processor (ESP) Dev Tools
55

6-
Dev tools coming soon. Watch this space...
6+
The esp-js devtools give you the ability to monitor activity of all models in all routers.
7+
8+
Features:
9+
* A real-time view of events and errors as they are processed by your models.
10+
* Ability to zoom to the nth degree.
11+
* Ability to log the entire event to the browsers console.
12+
* Can be opened and closed (it's currently implemented as a floating div).
13+
14+
![screenshot](./screenshots/screenshot.png)
15+
16+
# Installation
17+
Install from npm: `npm install --save esp-js-devtools`.
18+
19+
Wire it up early on in your app:
20+
21+
```
22+
import espDevTools from 'esp-js-devtools';
23+
espDevTools.registerDevTools();
24+
```
25+
26+
# Activation
27+
28+
It's activate using a keyboard shortcut: `ctrl + alt + d`.
29+
30+
# Demo
31+
32+
For a demo check out the esp port of the [react chat app](https://github.com/esp/esp-js/tree/master/examples/esp-chat-react-es6).
733

834
# ESP Documentation
935

1036
[http://esp.readthedocs.org](http://esp.readthedocs.org).
1137

12-
# Installation
13-
Install from npm: `npm install esp-js-devtools --save`.
38+
# Licence
39+
40+
Apache 2

screenshots/screenshot.png

122 KB
Loading

src/devtoolsHooks.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
// notice_start
2+
/*
3+
* Copyright 2015 Dev Shop Limited
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
// notice_end
18+
119
import $ from 'jquery';
220
import esp from 'esp-js';
321
import AnalyticsMonitor from './model/analyticsMonitor';

src/index.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
// notice_start
2+
/*
3+
* Copyright 2015 Dev Shop Limited
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
// notice_end
18+
119
import { registerDevTools } from './devtoolsHooks';
220
export { registerDevTools };
321
export default {

src/model/analyticsMonitor.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
// notice_start
2+
/*
3+
* Copyright 2015 Dev Shop Limited
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
// notice_end
18+
119
import DebugToolsModel from './devToolsModel';
220

321
export default class AnalyticsMonitor {

src/model/dataPoint.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
// notice_start
2+
/*
3+
* Copyright 2015 Dev Shop Limited
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
// notice_end
18+
119
import DataPointType from './dataPointType';
220
let dataPointId = 1;
321

src/model/dataPointType.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
// notice_start
2+
/*
3+
* Copyright 2015 Dev Shop Limited
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
// notice_end
18+
119
export default class DataPointType {
220
static get eventPublished() { return 'eventPublished'; };
321
static get routerHalted() { return 'routerHalted'; };

src/model/devToolsModel.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
// notice_start
2+
/*
3+
* Copyright 2015 Dev Shop Limited
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
// notice_end
18+
119
import esp from 'esp-js';
220
import _ from 'lodash';
321
import moment from 'moment';

src/model/registeredModel.js

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
// notice_start
2+
/*
3+
* Copyright 2015 Dev Shop Limited
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
// notice_end
18+
119
import moment from 'moment';
220
import DataPoint from './dataPoint';
321

@@ -22,12 +40,4 @@ export default class RegisteredModel {
2240
set haltingError(err) {
2341
this._haltingError = err;
2442
}
25-
//createEventPublishedDataPoint(eventNumber, modelId, eventType) {
26-
// var dataPoint = new DataPoint(eventNumber, moment(), eventType, modelId);
27-
// this._events.push(dataPoint);
28-
// return eventRecord;
29-
//}
30-
//halted(eventNumber, modelId, eventType) {
31-
//
32-
//}
3343
}

src/model/updateType.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
// notice_start
2+
/*
3+
* Copyright 2015 Dev Shop Limited
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
// notice_end
18+
119
class UpdateType {
220
static get none() { return 'none'; };
321
static get modelsChanged() { return 'modelsChanged'; };

0 commit comments

Comments
 (0)