mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
hacking fool!
This commit is contained in:
@@ -1 +1,5 @@
|
|||||||
|
|
||||||
|
<div style="display: inline-flex; flex-direction: column">
|
||||||
|
<a href="/step01/">Step01</a>
|
||||||
<a href="/playground/">Playground</a>
|
<a href="/playground/">Playground</a>
|
||||||
|
</div>
|
||||||
|
|||||||
@@ -1,6 +1,21 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<h1>todos</h1>
|
||||||
|
<input/><button>Add</button>
|
||||||
|
<div>
|
||||||
|
<button>all</button>
|
||||||
|
<button>active</button>
|
||||||
|
<button>completed</button>
|
||||||
|
</div>
|
||||||
|
<ul>
|
||||||
|
<li><input type="checkbox" /> Todo 1</li>
|
||||||
|
<li><input type="checkbox" /> Todo 2</li>
|
||||||
|
<li><input type="checkbox" /> Todo 3</li>
|
||||||
|
<li><input type="checkbox" /> Todo 4</li>
|
||||||
|
</ul>
|
||||||
|
<div>
|
||||||
|
<span>4 items left</span> <button>Clear Completed</button>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
document.addEventListener('DOMContentLoaded', function() {
|
|
||||||
const app = document.getElementById('app');
|
|
||||||
app.innerHTML = 'hello world blah';
|
|
||||||
});
|
|
||||||
|
|||||||
@@ -0,0 +1,20 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<link rel="stylesheet" href="./style.css">
|
||||||
|
<body>
|
||||||
|
<h1>todos</h1>
|
||||||
|
<input class="textfield" /><button class="button add">Add</button>
|
||||||
|
<div class="filter">
|
||||||
|
<button>all</button>
|
||||||
|
<button>active</button>
|
||||||
|
<button>completed</button>
|
||||||
|
</div>
|
||||||
|
<ul class="todos">
|
||||||
|
<li class="todo"><input type="checkbox" /> Todo 1</li>
|
||||||
|
<li class="todo"><input type="checkbox" /> Todo 2</li>
|
||||||
|
<li class="todo"><input type="checkbox" /> Todo 3</li>
|
||||||
|
<li class="todo"><input type="checkbox" /> Todo 4</li>
|
||||||
|
</ul>
|
||||||
|
<footer><span>4 items left</span> <button>Clear Completed</button></footer>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|||||||
7
step02/style.css
Normal file
7
step02/style.css
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
body {
|
||||||
|
width: 400px;
|
||||||
|
margin: 20px auto;
|
||||||
|
}
|
||||||
|
h1 {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
@@ -3,7 +3,7 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|||||||
|
|
||||||
const entries = {
|
const entries = {
|
||||||
step01: './step01/index',
|
step01: './step01/index',
|
||||||
step02: './step02/src/index',
|
step02: './step02/index',
|
||||||
playground: './playground/src/index'
|
playground: './playground/src/index'
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -32,6 +32,10 @@ module.exports = Object.keys(entries).map(entryPoint => {
|
|||||||
output: {
|
output: {
|
||||||
filename: '[name].js',
|
filename: '[name].js',
|
||||||
path: path.resolve(__dirname, entryPoint, 'dist')
|
path: path.resolve(__dirname, entryPoint, 'dist')
|
||||||
|
},
|
||||||
|
devServer: {
|
||||||
|
contentBase: path.resolve(__dirname),
|
||||||
|
watchContentBase: true
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user