Skip to content

Commit 9dea11c

Browse files
committed
Merge branch 'master' of github.com:pexea12/vue-image-lightbox
2 parents 2a4b395 + 6691a49 commit 9dea11c

File tree

4 files changed

+100
-0
lines changed

4 files changed

+100
-0
lines changed

build/webpack.base.conf.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const path = require('path')
22
const webpack = require('webpack')
33
const VueLoaderPlugin = require('vue-loader/lib/plugin')
4+
const CopyWebpackPlugin = require('copy-webpack-plugin')
45

56

67
module.exports = {
@@ -61,5 +62,9 @@ module.exports = {
6162
new webpack.DefinePlugin({
6263
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV),
6364
}),
65+
66+
new CopyWebpackPlugin([
67+
{ from: 'src/vetur', to: 'vetur' }
68+
])
6469
],
6570
}

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"@babel/core": "^7.4.3",
4141
"@babel/plugin-transform-runtime": "^7.4.3",
4242
"@babel/preset-env": "^7.4.3",
43+
"copy-webpack-plugin": "^5.0.4",
4344
"css-loader": "2.1.1",
4445
"eslint": "5.16.0",
4546
"file-loader": "^1.1.11",
@@ -56,5 +57,9 @@
5657
"webpack": "^4.16.5",
5758
"webpack-cli": "^3.0.8",
5859
"webpack-dev-server": "^3.1.11"
60+
},
61+
"vetur": {
62+
"tags": "dist/vetur/tags.json",
63+
"attributes": "dist/vetur/attributes.json"
5964
}
6065
}

src/vetur/attributes.json

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"lightbox/images": {
3+
"description": "Image array to display",
4+
"type": "array"
5+
},
6+
"lightbox/showLightBox": {
7+
"description": "Whether to show lightbox or not at the beginning",
8+
"type": "boolean"
9+
},
10+
"lightbox/startAt": {
11+
"description": "Index of the image that you want to start at",
12+
"type": "number"
13+
},
14+
"lightbox/nThumbs": {
15+
"description": "Number of thumbnail images",
16+
"type": "number"
17+
},
18+
"lightbox/showThumbs": {
19+
"description": "Whether to show thumbnails or not",
20+
"type": "boolean"
21+
},
22+
"lightbox/autoPlay": {
23+
"description": "Move to next image automatically",
24+
"type": "boolean"
25+
},
26+
"lightbox/autoPlayTime": {
27+
"description": "Time to stop at an image before move on to next image",
28+
"type": "number"
29+
},
30+
"lightbox/siteLoading": {
31+
"description": "default image when your image is error or loading",
32+
"type": "string"
33+
},
34+
"lightbox/showCaption": {
35+
"description": "Whether to show caption or not",
36+
"type": "boolean"
37+
},
38+
"lightbox/disableScroll": {
39+
"description": "set to `true` to avoid scrolling views behind lightbox",
40+
"type": "boolean"
41+
},
42+
"lightbox/lengthToLoadMore": {
43+
"description": "Minimum length unto end to emit load more event",
44+
"type": "number"
45+
},
46+
"lightbox/closeText": {
47+
"description": "Text for the close button",
48+
"type": "string"
49+
},
50+
"lightbox/previousText": {
51+
"description": "Text for the previous image button",
52+
"type": "string"
53+
},
54+
"lightbox/nextText": {
55+
"description": "Text for the next image button",
56+
"type": "string"
57+
},
58+
"lightbox/previousThumbText": {
59+
"description": "Text for the previous thumb image button",
60+
"type": "string"
61+
},
62+
"lightbox/nextThumbText": {
63+
"description": "Text for the next thumb image button",
64+
"type": "string"
65+
}
66+
}

src/vetur/tags.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"lightbox": {
3+
"attributes": [
4+
"images",
5+
"showLightBox",
6+
"startAt",
7+
"nThumbs",
8+
"showThumbs",
9+
"autoPlay",
10+
"autoPlayTime",
11+
"siteLoading",
12+
"showCaption",
13+
"disableScroll",
14+
"lengthToLoadMore",
15+
"closeText",
16+
"previousText",
17+
"nextText",
18+
"previousThumbText",
19+
"nextThumbText"
20+
],
21+
"subtags": [],
22+
"description": "LightBox component"
23+
}
24+
}

0 commit comments

Comments
 (0)