Skip to content

Commit bc34886

Browse files
committed
Tidy source
1 parent 0b78ffe commit bc34886

File tree

42 files changed

+866
-401
lines changed

Some content is hidden

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

42 files changed

+866
-401
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22
.stencil
33
dist
44
node_modules
5-
src/**/readme.md

.vscode/tasks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"tasks": [
66
{
77
"type": "npm",
8-
"script": "start",
8+
"script": "watch",
99
"group": {
1010
"kind": "build",
1111
"isDefault": true

examples/index.html

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,17 @@
22

33
<head>
44
<title>Microbit Web Components</title>
5+
<link rel="stylesheet" href="https://thegecko.github.io/Barebones/dist/css/barebones.css">
56
<style>
7+
:root {
8+
--button-color: var(--button-primary-color);
9+
--button-background: var(--accent-color);
10+
--border-color: var(--accent-color);
11+
--button-color-hover: var(--button-primary-color);
12+
--button-background-hover: var(--accent-color-hover);
13+
--border-color-richer: var(--accent-color-hover);
14+
--background-color-softer: var(--accent-color-disabled);
15+
}
616
.container > * {
717
display: block;
818
}
@@ -60,6 +70,7 @@
6070
</head>
6171

6272
<body>
73+
<h1>micro:bit Web Components</h1>
6374
<div class="container">
6475
<microbit-connect></microbit-connect>
6576
<microbit-name></microbit-name>
@@ -69,18 +80,18 @@
6980
<microbit-firmware></microbit-firmware>
7081
<microbit-hardware></microbit-hardware>
7182
<microbit-temperature></microbit-temperature>
72-
<microbit-state-connection>
83+
<microbit-connection>
7384
<span class="state">Connected</span>
74-
</microbit-state-connection>
75-
<microbit-state-button-a>
85+
</microbit-connection>
86+
<microbit-button-a>
7687
<span class="state">Button A</span>
77-
</microbit-state-button-a>
78-
<microbit-state-button-b>
88+
</microbit-button-a>
89+
<microbit-button-b>
7990
<span class="state">Button B</span>
80-
</microbit-state-button-b>
81-
<microbit-state-movement sensitivity="1.2">
91+
</microbit-button-b>
92+
<microbit-movement sensitivity="1.2">
8293
<span class="state">Movement</span>
83-
</microbit-state-movement>
94+
</microbit-movement>
8495
<microbit-matrix class="microbit-matrix" id-template="matrix-${row}-${column}">
8596
<div id="matrix-0-0" class="microbit-matrix-led"></div>
8697
<div id="matrix-0-1" class="microbit-matrix-led"></div>
@@ -117,5 +128,3 @@
117128
</microbit-compass>
118129
</div>
119130
</body>
120-
121-
</html>

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "microbit-web-components",
3-
"version": "0.2.0",
3+
"version": "0.3.0",
44
"description": "Web Components library for micro:bit",
55
"homepage": "https://github.com/thegecko/microbit-web-components",
66
"license": "MIT",
@@ -24,7 +24,7 @@
2424
],
2525
"scripts": {
2626
"build": "stencil build --docs",
27-
"start": "stencil build --prod --watch --serve",
27+
"watch": "stencil build --prod --watch --serve",
2828
"test": "stencil test --spec --e2e",
2929
"test.watch": "stencil test --spec --e2e --watchAll"
3030
},

0 commit comments

Comments
 (0)