Skip to content

Commit

Permalink
examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ccqgithub committed Jul 4, 2019
1 parent 21257a8 commit 7f4a18c
Show file tree
Hide file tree
Showing 26 changed files with 461 additions and 190 deletions.
1 change: 1 addition & 0 deletions examples/active-links/app.js
Original file line number Diff line number Diff line change
@@ -1,5 1,6 @@
import Vue from 'vue'
import { BrowserRouter as Router, Route, RouterLink } from 'vue-router-lite'
import '../global.css'

const Home = { template: '<div><h2>Home</h2></div>' }
const About = { template: '<div><h2>About</h2></div>' }
Expand Down
14 changes: 10 additions & 4 deletions examples/active-links/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 5,10 @@
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Vue Router Lite Examples</title>

<link rel="stylesheet" href="../global.css">
<% for (var css in htmlWebpackPlugin.files.css) { %>
<link href="<%= htmlWebpackPlugin.files.css[css] %>" rel="stylesheet">
<% } %>

<style>
a.router-link-active, li.router-link-active a {
color: #f66;
Expand All @@ -16,9 19,12 @@
</style>
</head>
<body>
<a href="../index.html">&larr; Examples index</a>

<a href="<%= htmlWebpackPlugin.options.publicPath %>index.html">&larr; Examples index</a>
<div id="app"></div>
<script src="../shared.chunk.js"></script>
<script src="./app.js"></script>

<% for (var js in htmlWebpackPlugin.files.js) { %>
<script src="<%= htmlWebpackPlugin.files.js[js] %>"></script>
<% } %>
</body>
</html>
14 changes: 9 additions & 5 deletions examples/ambiguous-matches/index.html
Original file line number Diff line number Diff line change
@@ -1,17 1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Vue Router Lite Examples</title>

<link rel="stylesheet" href="../global.css">
<% for (var css in htmlWebpackPlugin.files.css) { %>
<link href="<%= htmlWebpackPlugin.files.css[css] %>" rel="stylesheet">
<% } %>
</head>
<body>
<a href="../index.html">&larr; Examples index</a>

<a href="<%= htmlWebpackPlugin.options.publicPath %>index.html">&larr; Examples index</a>
<div id="app"></div>
<script src="../shared.chunk.js"></script>
<script src="./app.js"></script>

<% for (var js in htmlWebpackPlugin.files.js) { %>
<script src="<%= htmlWebpackPlugin.files.js[js] %>"></script>
<% } %>
</body>
</html>
14 changes: 9 additions & 5 deletions examples/auth-flow/index.html
Original file line number Diff line number Diff line change
@@ -1,17 1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Vue Router Lite Examples</title>

<link rel="stylesheet" href="../global.css">
<% for (var css in htmlWebpackPlugin.files.css) { %>
<link href="<%= htmlWebpackPlugin.files.css[css] %>" rel="stylesheet">
<% } %>
</head>
<body>
<a href="../index.html">&larr; Examples index</a>

<a href="<%= htmlWebpackPlugin.options.publicPath %>index.html">&larr; Examples index</a>
<div id="app"></div>
<script src="../shared.chunk.js"></script>
<script src="./app.js"></script>

<% for (var js in htmlWebpackPlugin.files.js) { %>
<script src="<%= htmlWebpackPlugin.files.js[js] %>"></script>
<% } %>
</body>
</html>
14 changes: 9 additions & 5 deletions examples/basic/index.html
Original file line number Diff line number Diff line change
@@ -1,17 1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Vue Router Lite Examples</title>

<link rel="stylesheet" href="../global.css">
<% for (var css in htmlWebpackPlugin.files.css) { %>
<link href="<%= htmlWebpackPlugin.files.css[css] %>" rel="stylesheet">
<% } %>
</head>
<body>
<a href="../index.html">&larr; Examples index</a>

<a href="<%= htmlWebpackPlugin.options.publicPath %>index.html">&larr; Examples index</a>
<div id="app"></div>
<script src="../shared.chunk.js"></script>
<script src="./app.js"></script>

<% for (var js in htmlWebpackPlugin.files.js) { %>
<script src="<%= htmlWebpackPlugin.files.js[js] %>"></script>
<% } %>
</body>
</html>
14 changes: 9 additions & 5 deletions examples/control-history/index.html
Original file line number Diff line number Diff line change
@@ -1,17 1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Vue Router Lite Examples</title>

<link rel="stylesheet" href="../global.css">
<% for (var css in htmlWebpackPlugin.files.css) { %>
<link href="<%= htmlWebpackPlugin.files.css[css] %>" rel="stylesheet">
<% } %>
</head>
<body>
<a href="../index.html">&larr; Examples index</a>

<a href="<%= htmlWebpackPlugin.options.publicPath %>index.html">&larr; Examples index</a>
<div id="app"></div>
<script src="../shared.chunk.js"></script>
<script src="./app.js"></script>

<% for (var js in htmlWebpackPlugin.files.js) { %>
<script src="<%= htmlWebpackPlugin.files.js[js] %>"></script>
<% } %>
</body>
</html>
14 changes: 9 additions & 5 deletions examples/custom-link/index.html
Original file line number Diff line number Diff line change
@@ -1,17 1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Vue Router Lite Examples</title>

<link rel="stylesheet" href="../global.css">
<% for (var css in htmlWebpackPlugin.files.css) { %>
<link href="<%= htmlWebpackPlugin.files.css[css] %>" rel="stylesheet">
<% } %>
</head>
<body>
<a href="../index.html">&larr; Examples index</a>

<a href="<%= htmlWebpackPlugin.options.publicPath %>index.html">&larr; Examples index</a>
<div id="app"></div>
<script src="../shared.chunk.js"></script>
<script src="./app.js"></script>

<% for (var js in htmlWebpackPlugin.files.js) { %>
<script src="<%= htmlWebpackPlugin.files.js[js] %>"></script>
<% } %>
</body>
</html>
14 changes: 9 additions & 5 deletions examples/data-fetching/index.html
Original file line number Diff line number Diff line change
@@ -1,17 1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Vue Router Lite Examples</title>

<link rel="stylesheet" href="../global.css">
<% for (var css in htmlWebpackPlugin.files.css) { %>
<link href="<%= htmlWebpackPlugin.files.css[css] %>" rel="stylesheet">
<% } %>
</head>
<body>
<a href="../index.html">&larr; Examples index</a>

<a href="<%= htmlWebpackPlugin.options.publicPath %>index.html">&larr; Examples index</a>
<div id="app"></div>
<script src="../shared.chunk.js"></script>
<script src="./app.js"></script>

<% for (var js in htmlWebpackPlugin.files.js) { %>
<script src="<%= htmlWebpackPlugin.files.js[js] %>"></script>
<% } %>
</body>
</html>
14 changes: 9 additions & 5 deletions examples/hash-router/index.html
Original file line number Diff line number Diff line change
@@ -1,17 1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Vue Router Lite Examples</title>

<link rel="stylesheet" href="../global.css">
<% for (var css in htmlWebpackPlugin.files.css) { %>
<link href="<%= htmlWebpackPlugin.files.css[css] %>" rel="stylesheet">
<% } %>
</head>
<body>
<a href="../index.html">&larr; Examples index</a>

<a href="<%= htmlWebpackPlugin.options.publicPath %>index.html">&larr; Examples index</a>
<div id="app"></div>
<script src="../shared.chunk.js"></script>
<script src="./app.js"></script>

<% for (var js in htmlWebpackPlugin.files.js) { %>
<script src="<%= htmlWebpackPlugin.files.js[js] %>"></script>
<% } %>
</body>
</html>
9 changes: 8 additions & 1 deletion examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 5,10 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Vue Router Lite Examples</title>
<link rel="stylesheet" href="./global.css">

<% for (var css in htmlWebpackPlugin.files.css) { %>
<link href="<%= htmlWebpackPlugin.files.css[css] %>" rel="stylesheet">
<% } %>
</head>
<body style="padding: 0 20px">
<h1>Vue Router Lite Examples</h1>
Expand All @@ -31,5 34,9 @@ <h1>Vue Router Lite Examples</h1>
<li><a href="active-links">Active Links</a></li>
<li><a href="data-fetching">Data Fetching</a></li>
</ul>

<% for (var js in htmlWebpackPlugin.files.js) { %>
<script src="<%= htmlWebpackPlugin.files.js[js] %>"></script>
<% } %>
</body>
</html>
15 changes: 10 additions & 5 deletions examples/keep-alive/index.html
Original file line number Diff line number Diff line change
@@ -1,16 1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Vue Router Lite Examples</title>
<link rel="stylesheet" href="../global.css">

<% for (var css in htmlWebpackPlugin.files.css) { %>
<link href="<%= htmlWebpackPlugin.files.css[css] %>" rel="stylesheet">
<% } %>
</head>
<body>
<a href="../index.html">&larr; Examples index</a>

<a href="<%= htmlWebpackPlugin.options.publicPath %>index.html">&larr; Examples index</a>
<div id="app"></div>
<script src="../shared.chunk.js"></script>
<script src="./app.js"></script>

<% for (var js in htmlWebpackPlugin.files.js) { %>
<script src="<%= htmlWebpackPlugin.files.js[js] %>"></script>
<% } %>
</body>
</html>
15 changes: 10 additions & 5 deletions examples/memory-router/index.html
Original file line number Diff line number Diff line change
@@ -1,16 1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Vue Router Lite Examples</title>
<link rel="stylesheet" href="../global.css">

<% for (var css in htmlWebpackPlugin.files.css) { %>
<link href="<%= htmlWebpackPlugin.files.css[css] %>" rel="stylesheet">
<% } %>
</head>
<body>
<a href="../index.html">&larr; Examples index</a>

<a href="<%= htmlWebpackPlugin.options.publicPath %>index.html">&larr; Examples index</a>
<div id="app"></div>
<script src="../shared.chunk.js"></script>
<script src="./app.js"></script>

<% for (var js in htmlWebpackPlugin.files.js) { %>
<script src="<%= htmlWebpackPlugin.files.js[js] %>"></script>
<% } %>
</body>
</html>
15 changes: 10 additions & 5 deletions examples/modal-gallery/index.html
Original file line number Diff line number Diff line change
@@ -1,16 1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Vue Router Lite Examples</title>
<link rel="stylesheet" href="../global.css">

<% for (var css in htmlWebpackPlugin.files.css) { %>
<link href="<%= htmlWebpackPlugin.files.css[css] %>" rel="stylesheet">
<% } %>
</head>
<body>
<a href="../index.html">&larr; Examples index</a>

<a href="<%= htmlWebpackPlugin.options.publicPath %>index.html">&larr; Examples index</a>
<div id="app"></div>
<script src="../shared.chunk.js"></script>
<script src="./app.js"></script>

<% for (var js in htmlWebpackPlugin.files.js) { %>
<script src="<%= htmlWebpackPlugin.files.js[js] %>"></script>
<% } %>
</body>
</html>
15 changes: 10 additions & 5 deletions examples/modal-gallery2/index.html
Original file line number Diff line number Diff line change
@@ -1,16 1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Vue Router Lite Examples</title>
<link rel="stylesheet" href="../global.css">

<% for (var css in htmlWebpackPlugin.files.css) { %>
<link href="<%= htmlWebpackPlugin.files.css[css] %>" rel="stylesheet">
<% } %>
</head>
<body>
<a href="../index.html">&larr; Examples index</a>

<a href="<%= htmlWebpackPlugin.options.publicPath %>index.html">&larr; Examples index</a>
<div id="app"></div>
<script src="../shared.chunk.js"></script>
<script src="./app.js"></script>

<% for (var js in htmlWebpackPlugin.files.js) { %>
<script src="<%= htmlWebpackPlugin.files.js[js] %>"></script>
<% } %>
</body>
</html>
15 changes: 10 additions & 5 deletions examples/no-match/index.html
Original file line number Diff line number Diff line change
@@ -1,16 1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Vue Router Lite Examples</title>
<link rel="stylesheet" href="../global.css">

<% for (var css in htmlWebpackPlugin.files.css) { %>
<link href="<%= htmlWebpackPlugin.files.css[css] %>" rel="stylesheet">
<% } %>
</head>
<body>
<a href="../index.html">&larr; Examples index</a>

<a href="<%= htmlWebpackPlugin.options.publicPath %>index.html">&larr; Examples index</a>
<div id="app"></div>
<script src="../shared.chunk.js"></script>
<script src="./app.js"></script>

<% for (var js in htmlWebpackPlugin.files.js) { %>
<script src="<%= htmlWebpackPlugin.files.js[js] %>"></script>
<% } %>
</body>
</html>
Loading

0 comments on commit 7f4a18c

Please sign in to comment.