Skip to content

Commit 700a307

Browse files
committed
Migration from project
1 parent c8abee2 commit 700a307

File tree

5 files changed

+93
-0
lines changed

5 files changed

+93
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# <native-developer-tools>
2+
3+
Adds interface options for interacting with the V8 developer tools within nativeweb applications.

bower.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"name": "native-developer-tools",
3+
"version": "0.1.0",
4+
"description": "Adds interface options for interacting with the V8 developer tools.",
5+
"private": true,
6+
"authors": [
7+
"Donald Atkinson"
8+
],
9+
"keywords": [
10+
"web-components",
11+
"polymer",
12+
"hotkey"
13+
],
14+
"main": "index.html",
15+
"repository": {
16+
"type": "git",
17+
"url": "git://github.com/FuzzicalLogic/native-developer-tools.git"
18+
},
19+
"license": "http://polymer.github.io/LICENSE.txt",
20+
"homepage": "https://github.com/FuzzicalLogic/native-developer-tools",
21+
"ignore": [],
22+
"dependencies": {
23+
"polymer": "Polymer/polymer#^1.0.0",
24+
"liquid-hotkey-event": "FuzzicalLogic/liquid-hotkey-event"
25+
},
26+
"devDependencies": {
27+
"iron-component-page": "polymerelements/iron-component-page#^1.0.0",
28+
"iron-image": "polymerelements/iron-image#^1.0.0",
29+
"paper-styles": "polymerelements/paper-styles#^1.0.0",
30+
"test-fixture": "polymerelements/test-fixture#^1.0.0",
31+
"web-component-tester": "polymer/web-component-tester#^3.4.0",
32+
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
33+
}
34+
}

index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- Component Dependencies -->
2+
<link rel="import" href="../polymer/polymer.html">
3+
<link rel="import" href="../liquid-hotkey-event/index.html">
4+
5+
<!-- Component Definition and Template -->
6+
<dom-module id="native-developer-tools">
7+
<link rel="import" type="css" href="style.css">
8+
<template>
9+
<button on-click="_onDevTools"><content></content></button>
10+
<liquid-hotkey-event emits="devtools" keys="f12" keyevent="up" on="document"></liquid-hotkey-event>
11+
</template>
12+
</dom-module>
13+
<script src="register.js"></script>

register.js

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
(function registerElement() {
2+
Polymer({
3+
is: 'native-developer-tools',
4+
5+
created: onElementCreated,
6+
attached: onElementAttached,
7+
ready: onElementReady,
8+
detached: onElementDetached,
9+
10+
listeners: {
11+
'devtools': '_onDevTools'
12+
},
13+
14+
_onDevTools: onToggleDeveloperTools
15+
});
16+
17+
function onElementCreated() {
18+
19+
}
20+
21+
function onElementAttached() {
22+
23+
}
24+
25+
function onElementReady() {
26+
27+
}
28+
29+
function onToggleDeveloperTools() {
30+
var win = require('electron').remote.getCurrentWindow();
31+
if (win.isDevToolsOpened())
32+
win.closeDevTools();
33+
else win.openDevTools({detach:true});
34+
}
35+
36+
function onElementDetached() {
37+
38+
}
39+
40+
}) ();

style.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
:host {
2+
3+
}

0 commit comments

Comments
 (0)