Skip to content

Commit 1798603

Browse files
committed
chore($pagination): reanme enhanceApp to clientPlugin
1 parent 2a46178 commit 1798603

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

packages/@vuepress/plugin-pagination/enhanceApp.js renamed to packages/@vuepress/plugin-pagination/clientPlugin.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ class Pagination {
2424
this._paginationPages = paginationPages
2525
this._currentPage = paginationPages[this.paginationIndex]
2626
this._posts = pages.filter(postsFilter).sort(postsSorter)
27-
28-
console.log(this)
2927
}
3028

3129
get length () {
@@ -58,12 +56,7 @@ class Pagination {
5856
}
5957
}
6058

61-
export default ({
62-
Vue, // the version of Vue being used in the VuePress app
63-
options, // the options for the root Vue instance
64-
router, // the router instance for the app
65-
siteData // site metadata
66-
}) => {
59+
export default ({ Vue }) => {
6760
Vue.mixin({
6861
computed: {
6962
$pagination () {

packages/@vuepress/plugin-pagination/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function getIntervallers (max, interval) {
1212

1313
module.exports = (options, ctx) => ({
1414
enhanceAppFiles: [
15-
path.resolve(__dirname, 'enhanceApp.js')
15+
path.resolve(__dirname, 'clientPlugin.js')
1616
],
1717

1818
ready () {

0 commit comments

Comments
 (0)