8000 simplify examples setup · vuejs/v2.vuejs.org@069109b · GitHub
[go: up one dir, main page]

Skip to content
10000

Commit 069109b

Browse files
committed
simplify examples setup
1 parent 94d85b5 commit 069109b

File tree

16 files changed

+100
-83
lines changed

16 files changed

+100
-83
lines changed
File renamed without changes.

examples/chat/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
</head>
88
<body>
99
<div id="app"></div>
10-
<script src="build.js"></script>
10+
<script src="/__build__/shared.js"></script>
11+
<script src="/__build__/chat.js"></script>
1112
</body>
1213
</html>
File renamed without changes.

examples/counter-hot/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
<head>
44
<meta charset="utf-8">
55
<title>vuex counter example</title>
6+
<link rel="stylesheet" href="/global.css">
67
</head>
78
<body>
89
<div id="app"></div>
9-
<script src="build.js"></script>
10+
<script src="/__build__/shared.js"></script>
11+
<script src="/__build__/counter-hot.js"></script>
1012
</body>
1113
</html>
File renamed without changes.

examples/counter/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
<head>
44
<meta charset="utf-8">
55
<title>vuex counter example</title>
6+
<link rel="stylesheet" href="/global.css">
67
</head>
78
<body>
89
<div id="app"></div>
9-
<script src="build.js"></script>
10+
<script src="/__build__/shared.js"></script>
11+
<script src="/__build__/counter.js"></script>
1012
</body>
1113
</html>

examples/global.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
html, body {
2+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
3+
color: #2c3e50;
4+
}
5+
6+
ul {
7+
line-height: 1.5em;
8+
padding-left: 1.5em;
9+
}
10+
11+
a {
12+
color: #7f8c8d;
13+
text-decoration: none;
14+
}
15+
16+
a:hover {
17+
color: #4fc08d;
18+
}

examples/index.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Vuex Examples</title>
6+
<link rel="stylesheet" href="/global.css">
7+
</head>
8+
<body style="padding: 0 20px">
9+
<h1>Vuex Examples</h1>
10+
<ul>
11+
<li><a href="counter">Counter</a></li>
12+
<li><a href="counter-hot">Counter with Hot Reload</a></li>
13+
<li><a href="shopping-cart">Shopping Cart</a></li>
14+
<li><a href="todomvc">TodoMVC</a></li>
15+
<li><a href="chat">FluxChat</a></li>
16+
</ul>
17+
</body>
18+
</html>
File renamed without changes.

examples/shopping-cart/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
<head>
44
<meta charset="utf-8">
55
<title>vuex shopping cart example</title>
6+
<link rel="stylesheet" href="/global.css">
67
</head>
78
<body>
89
<div id="app"></div>
9-
<script src="build.js"></script>
10+
<script src="/__build__/shared.js"></script>
11+
<script src="/__build__/shopping-cart.js"></script>
1012
</body>
1113
</html>

0 commit comments

Comments
 (0)
0