Skip to content
This repository was archived by the owner on Jul 20, 2021. It is now read-only.

Commit b55d7f8

Browse files
committed
release v1.0.1
1 parent 344a176 commit b55d7f8

19 files changed

+73
-145
lines changed

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docs/

build/webpack.dev.conf.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ var merge = require('webpack-merge')
55
var baseWebpackConfig = require('./webpack.base.conf')
66
var HtmlWebpackPlugin = require('html-webpack-plugin')
77
var FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
8-
var isDocs = process.argv.indexOf('--docs') > 0
8+
99
baseWebpackConfig.entry = {
10-
app: isDocs ? './docs/main.js' : './dev/main.js'
10+
app: './dev/main.js'
1111
}
1212

1313
// add hot-reload related code to entry chunks
@@ -31,7 +31,7 @@ module.exports = merge(baseWebpackConfig, {
3131
// https://github.com/ampedandwired/html-webpack-plugin
3232
new HtmlWebpackPlugin({
3333
filename: 'index.html',
34-
template: isDocs ? 'docs/index.html' : 'dev/index.html',
34+
template: 'dev/index.html',
3535
inject: true
3636
}),
3737
new FriendlyErrorsPlugin()

build/webpack.docs.conf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var env = config.docs.env
1313

1414
var webpackConfig = merge(baseWebpackConfig, {
1515
entry: {
16-
app: './docs/main.js'
16+
app: './dev/main.js'
1717
},
1818
module: {
1919
rules: utils.styleLoaders({
@@ -55,7 +55,7 @@ var webpackConfig = merge(baseWebpackConfig, {
5555
// see https://github.com/ampedandwired/html-webpack-plugin
5656
new HtmlWebpackPlugin({
5757
filename: config.docs.index,
58-
template: 'docs/index.html',
58+
template: 'dev/index.html',
5959
inject: true,
6060
minify: {
6161
removeComments: true,

config/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ var path = require('path')
44
module.exports = {
55
docs: {
66
env: require('./prod.env'),
7-
assetsRoot: path.resolve(__dirname, '../gh-pages'),
8-
index: path.resolve(__dirname, '../gh-pages/index.html'),
7+
assetsRoot: path.resolve(__dirname, '../docs'),
8+
index: path.resolve(__dirname, '../docs/index.html'),
99
assetsSubDirectory: 'static',
1010
assetsPublicPath: '',
1111
productionSourceMap: true,

dev/App.vue

Lines changed: 33 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,44 @@
11
<template>
22
<div id="app">
33
<header class="jumbotron text-center">
4+
<img src="static/img/logo.png">
45
<h1>Bootstrap Pagination for Vue</h1>
5-
<br>
6-
<p class="text-muted">Dev Mode</p>
6+
<p class="text-muted">A very simple vue component - bootstrap pagination</p>
7+
<p class="text-muted">Compatible with Vue 2.x & Bootstrap 3/4-beta</p>
8+
<a class="btn btn-outline-secondary btn-lg" href="https://github.com/meteorlxy/vue-bs-pagination" target="_blank"><i class="fa fa-github"></i> GitHub</a>
79
</header>
810
<main class="container">
9-
<div class="form-group">
10-
<label for="input-total">Total Pages</label>
11-
<input type="number" class="form-control" id="input-total" v-model.number="total">
12-
<small class="form-text text-muted">prop: <code>total</code>, type: <code>Number</code>, required: <code>true</code></small>
13-
</div>
14-
<div class="form-group">
15-
<label for="input-each-side">Each Side</label>
16-
<input type="number" class="form-control" id="input-each-side" v-model.number="eachSide">
17-
<small class="form-text text-muted">prop: <code>eachSide</code>, type: <code>Number</code>, default: <code>1</code></small>
18-
</div>
19-
<div class="form-group">
20-
<label for="input-current-page">Current Page</label>
21-
<input type="number" class="form-control" id="input-current-page" :value="currentPage" readonly>
22-
<small class="form-text text-muted">v-model: <code>currentPage</code></small>
23-
</div>
24-
<div>
25-
<p>Result</p>
26-
<v-pagination v-model="currentPage" :total="total" :each-side="eachSide"></v-pagination>
11+
<div id="demo">
12+
<h3>Demo</h3>
13+
<hr>
14+
<div class="form-group">
15+
<label for="input-total">Total Pages</label>
16+
<input type="number" class="form-control" id="input-total" v-model.number="total">
17+
<small class="form-text text-muted">prop: <code>total</code>, type: <code>Number</code>, required: <code>true</code></small>
18+
</div>
19+
<div class="form-group">
20+
<label for="input-each-side">Each Side</label>
21+
<input type="number" class="form-control" id="input-each-side" v-model.number="eachSide">
22+
<small class="form-text text-muted">prop: <code>eachSide</code>, type: <code>Number</code>, default: <code>1</code></small>
23+
</div>
24+
<div class="form-group">
25+
<label for="input-current-page">Current Page</label>
26+
<input type="number" class="form-control" id="input-current-page" :value="currentPage" readonly>
27+
<small class="form-text text-muted">v-model: <code>currentPage</code></small>
28+
</div>
29+
<div>
30+
<p>Result</p>
31+
<v-pagination v-model="currentPage" :total="total" :each-side="eachSide"></v-pagination>
32+
</div>
2733
</div>
2834
</main>
35+
<footer class="text-center text-muted">
36+
<hr>
37+
<p>vue-bs-pagination</p>
38+
<div class="h3 mb-5">
39+
<a href="https://github.com/meteorlxy/vue-bs-pagination" target="_blank"><i class="fa fa-github"></i></a>
40+
</div>
41+
</footer>
2942
</div>
3043
</template>
3144

dev/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<head>
44
<meta charset="utf-8">
55
<title>vue-bs-pagination</title>
6+
<link rel="icon" href="static/img/logo.png" type="image/png">
67
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-beta/css/bootstrap.min.css" rel="stylesheet">
78
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
89
</head>

0 commit comments

Comments
 (0)