forked from thi-ng/umbrella
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(examples): add missing html/webpack files, update deps
- Loading branch information
1 parent
9becd43
commit 8019df8
Showing
8 changed files
with
197 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<style> | ||
html { | ||
font: 100%/1.2 Helvetica, Arial, sans-serif; | ||
} | ||
|
||
body { | ||
max-width: 40rem; | ||
} | ||
|
||
div.card { | ||
background: #eee; | ||
} | ||
|
||
div.card h3 { | ||
background: #333; | ||
color: #fff; | ||
padding: 0.5rem; | ||
margin: 0.25em 0; | ||
font-weight: 400; | ||
} | ||
|
||
div.card div.body { | ||
padding: 0.25rem; | ||
} | ||
|
||
div.card pre { | ||
border-top: 1px #ccc solid; | ||
border-bottom: 1px #ccc solid; | ||
padding: 1rem 0; | ||
color: #666; | ||
font-family: Menlo, monospace; | ||
} | ||
|
||
div.card input[type="range"] { | ||
width: 100%; | ||
} | ||
|
||
.underweight, | ||
.overweight { | ||
color: orange; | ||
} | ||
|
||
.obese { | ||
color: red; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<p>This example demonstrates different component state handling options provided by @thi.ng/atom and uses @thi.ng/hdom for | ||
rendering. | ||
</p> | ||
<p>The idea of "Devcards" is originally by Bruce Haumann and this implementation is in no way meant to be comparable...</p> | ||
<p>The BMI calculator example too was taken from Devcards (and by extension from Reagent Project examples).</p> | ||
<p>Total filesize: 18.5KB (6.6KB gzip'd) - see | ||
<a href="">source</a> for more information.</p> | ||
<script type="text/javascript" src="bundle.js"></script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
module.exports = { | ||
entry: "./src/index.ts", | ||
output: { | ||
path: __dirname, | ||
filename: "bundle.js" | ||
}, | ||
resolve: { | ||
extensions: [".ts", ".js"] | ||
}, | ||
module: { | ||
loaders: [{ test: /\.ts$/, loader: "ts-loader" }] | ||
}, | ||
node: { | ||
process: false, | ||
setImmediate: false | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
module.exports = { | ||
entry: "./src/index.ts", | ||
output: { | ||
path: __dirname, | ||
filename: "bundle.js" | ||
}, | ||
resolve: { | ||
extensions: [".ts", ".js"] | ||
}, | ||
module: { | ||
loaders: [{ test: /\.ts$/, loader: "ts-loader" }] | ||
}, | ||
node: { | ||
process: false, | ||
setImmediate: false | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<style> | ||
html { | ||
font: 100%/1.2 Helvetica, Arial, sans-serif; | ||
} | ||
|
||
.error { | ||
background: #fbb; | ||
color: #900; | ||
padding: 0.5em 1em; | ||
margin-bottom: 1em; | ||
} | ||
|
||
footer { | ||
position: fixed; | ||
bottom: 1em; | ||
left: 1em; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<div id="app"></div> | ||
<script type="text/javascript" src="bundle.js"></script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
module.exports = { | ||
entry: "./src/index.ts", | ||
output: { | ||
path: __dirname, | ||
filename: "bundle.js" | ||
}, | ||
resolve: { | ||
extensions: [".ts", ".js"] | ||
}, | ||
module: { | ||
loaders: [{ test: /\.ts$/, loader: "ts-loader" }] | ||
}, | ||
node: { | ||
process: false, | ||
setImmediate: false | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<style> | ||
html { | ||
font: 100%/1.2 Helvetica, Arial, sans-serif; | ||
} | ||
|
||
body { | ||
margin: 0; | ||
} | ||
|
||
footer { | ||
position: absolute; | ||
left: 20px; | ||
bottom: 20px; | ||
z-index: 1; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<div id="app"></div> | ||
<footer> | ||
Made with | ||
<a href="https://github.com/thi-ng/umbrella/tree/master/packages/hdom">@thi.ng/hdom</a>. | ||
</footer> | ||
<script type="text/javascript" src="bundle.js"></script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
module.exports = { | ||
entry: "./src/index.ts", | ||
output: { | ||
path: __dirname, | ||
filename: "bundle.js" | ||
}, | ||
resolve: { | ||
extensions: [".ts", ".js"] | ||
}, | ||
module: { | ||
loaders: [{ test: /\.ts$/, loader: "ts-loader" }] | ||
}, | ||
node: { | ||
process: false, | ||
setImmediate: false | ||
} | ||
}; |