-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
5,459 additions
and
7 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,3 @@ | ||
{ | ||
"presets": ["es2015"] | ||
} |
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.DS_Store | ||
node_modules/ | ||
node_modules/ | ||
npm-debug.log |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/** | ||
* vue-paginate v3.3.0 | ||
* vue-paginate v3.3.1 | ||
* (c) 2017 Taha Shashtari | ||
* @license MIT | ||
*/ | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,83 @@ | ||
<template> | ||
<div id="app"> | ||
<h1>Vue-Paginate v3.0</h1> | ||
<paginate name="items" :list="items" class="paginate-list"> | ||
<li v-for="item in paginated('items')"> | ||
{{ item }} | ||
</li> | ||
</paginate> | ||
<paginate-links for="items"></paginate-links> | ||
<paginate-links for="items" :limit="2"></paginate-links> | ||
<paginate-links for="items" :simple="{ | ||
next: 'Next »', | ||
prev: '« Back' | ||
}"></paginate-links> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data () { | ||
return { | ||
items: ['Item One', 'Item Two', 'Item Three', 'Item Four', 'Item Five', 'Item Six', 'Item Seven', 'Item Eight', 'Item Nine', 'Item Ten', 'Item Eleven', 'Item Twelve', 'Item Thirteen'], | ||
paginate: ['items'] | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="sass"> | ||
#app | ||
font-family: 'Avenir', Helvetica, Arial, sans-serif | ||
-webkit-font-smoothing: antialiased | ||
-moz-osx-font-smoothing: grayscale | ||
font-size: 20px | ||
text-align: center | ||
color: #2c3e50 | ||
margin-top: 60px | ||
h1, h2 | ||
font-weight: normal | ||
ul | ||
list-style-type: none | ||
padding: 0 | ||
li | ||
display: inline-block | ||
margin: 0 10px | ||
.paginate-list | ||
width: 159px | ||
margin: 0 auto | ||
text-align: left | ||
li | ||
display: block | ||
&:before | ||
content: '⚬ ' | ||
font-weight: bold | ||
color: slategray | ||
.paginate-links.items | ||
user-select: none | ||
a | ||
cursor: pointer | ||
li.active a | ||
font-weight: bold | ||
li.next:before | ||
content: ' | ' | ||
margin-right: 13px | ||
color: #ddd | ||
li.disabled a | ||
color: #ccc | ||
cursor: no-drop | ||
a | ||
color: #42b983 | ||
</style> |
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,11 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Vue-Paginate Example</title> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<script src="examples/__build__/app.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,10 @@ | ||
import Vue from 'vue' | ||
import App from './App' | ||
import VuePaginate from 'vue-paginate' | ||
|
||
Vue.use(VuePaginate) | ||
|
||
new Vue({ | ||
el: '#app', | ||
render: h => h(App) | ||
}) |
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,57 @@ | ||
const path = require('path') | ||
const webpack = require('webpack') | ||
|
||
module.exports = { | ||
|
||
devtool: 'inline-source-map', | ||
|
||
entry: path.join(__dirname, '/examples/main.js'), | ||
|
||
output: { | ||
path: path.join(__dirname, '/examples/__build__'), | ||
filename: 'app.js', | ||
publicPath: '/examples/__build__/' | ||
}, | ||
|
||
module: { | ||
loaders: [ | ||
{ | ||
test: /\.js$/, | ||
exclude: /node_modules/, | ||
loader: 'babel-loader' | ||
}, | ||
{ | ||
test: /\.vue$/, | ||
loader: 'vue', | ||
} | ||
] | ||
}, | ||
vue: { | ||
loaders: { | ||
scss: 'vue-style-loader!css-loader!sass-loader', // <style lang="scss"> | ||
sass: 'vue-style-loader!css-loader!sass-loader?indentedSyntax' // <style lang="sass"> | ||
} | ||
}, | ||
|
||
resolve: { | ||
extensions: ['', '.js', '.vue'], | ||
fallback: [path.join(__dirname, '../node_modules')], | ||
alias: { | ||
'vue': 'vue/dist/vue.common.js', | ||
'vue-paginate': path.join(__dirname, 'src/index') | ||
} | ||
}, | ||
|
||
// Expose __dirname to allow automatically setting basename. | ||
context: __dirname, | ||
node: { | ||
__dirname: true | ||
}, | ||
|
||
plugins: [ | ||
new webpack.DefinePlugin({ | ||
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'development') | ||
}) | ||
] | ||
|
||
} |
Oops, something went wrong.