@abi-software/gallery 0.3.2-beta → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.browserslistrc +3 -3
- package/.eslintrc.js +29 -36
- package/.prettierrc +6 -6
- package/LICENSE +201 -201
- package/README.md +35 -35
- package/babel.config.js +12 -12
- package/dist/gallery.common.js +6626 -5349
- package/dist/gallery.common.js.map +1 -1
- package/dist/gallery.css +1 -1
- package/dist/gallery.umd.js +6626 -5349
- package/dist/gallery.umd.js.map +1 -1
- package/dist/gallery.umd.min.js +1 -1
- package/dist/gallery.umd.min.js.map +1 -1
- package/jest.config.js +3 -3
- package/package.json +44 -43
- package/public/index.html +17 -17
- package/src/App.vue +42 -28
- package/src/assets/data-icon.png +0 -0
- package/src/assets/flatmap-thumbnail.png +0 -0
- package/src/assets/scaffold-light.png +0 -0
- package/src/assets/video-default.png +0 -0
- package/src/components/Card.vue +325 -324
- package/src/components/Gallery.vue +250 -250
- package/src/components/IndexIndicator.vue +45 -45
- package/src/index.js +2 -2
- package/src/main-bundle.js +2 -0
- package/src/main.js +8 -2
- package/src/mixins/GalleryHelpers.js +111 -104
- package/tests/unit/example.spec.js +12 -12
- package/vue.config.js +19 -23
- package/Meeting-plan.txt +0 -4
- package/src/delete.json +0 -39
package/jest.config.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
preset: '@vue/cli-plugin-unit-jest',
|
|
3
|
-
}
|
|
1
|
+
module.exports = {
|
|
2
|
+
preset: '@vue/cli-plugin-unit-jest',
|
|
3
|
+
}
|
package/package.json
CHANGED
|
@@ -1,43 +1,44 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@abi-software/gallery",
|
|
3
|
-
"version": "0.3.2
|
|
4
|
-
"repository": {
|
|
5
|
-
"type": "git",
|
|
6
|
-
"url": "https://github.com/
|
|
7
|
-
},
|
|
8
|
-
"license": "Apache-2.0",
|
|
9
|
-
"private": false,
|
|
10
|
-
"scripts": {
|
|
11
|
-
"serve": "vue-cli-service serve",
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"@vue/cli-plugin-
|
|
30
|
-
"@vue/cli-plugin-
|
|
31
|
-
"@vue/cli-
|
|
32
|
-
"@vue/
|
|
33
|
-
"@vue/
|
|
34
|
-
"
|
|
35
|
-
"eslint": "^
|
|
36
|
-
"eslint
|
|
37
|
-
"eslint-
|
|
38
|
-
"eslint-plugin-
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"vue-
|
|
42
|
-
|
|
43
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@abi-software/gallery",
|
|
3
|
+
"version": "0.3.2",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "https://github.com/ABI-Software/mapcore-gallery.git"
|
|
7
|
+
},
|
|
8
|
+
"license": "Apache-2.0",
|
|
9
|
+
"private": false,
|
|
10
|
+
"scripts": {
|
|
11
|
+
"serve-no-lint": "vue-cli-service serve --skip-plugins @vue/cli-plugin-eslint",
|
|
12
|
+
"serve": "vue-cli-service serve",
|
|
13
|
+
"build": "vue-cli-service build",
|
|
14
|
+
"test:unit": "vue-cli-service test:unit",
|
|
15
|
+
"build-bundle": "vue-cli-service build --target lib --name gallery src/main-bundle.js --skip-plugins @vue/cli-plugin-eslint",
|
|
16
|
+
"lint": "vue-cli-service lint"
|
|
17
|
+
},
|
|
18
|
+
"main": "dist/gallery.common.js",
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@babel/code-frame": "^7.12.11",
|
|
21
|
+
"axios": "^0.26.1",
|
|
22
|
+
"babel-plugin-component": "^1.1.1",
|
|
23
|
+
"base64-inline-loader": "^2.0.1",
|
|
24
|
+
"core-js": "^3.8.3",
|
|
25
|
+
"element-ui": "^2.15.0",
|
|
26
|
+
"vue": "^2.6.11"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@vue/cli-plugin-babel": "^4.5.11",
|
|
30
|
+
"@vue/cli-plugin-eslint": "^3.1.1",
|
|
31
|
+
"@vue/cli-plugin-unit-jest": "^4.5.13",
|
|
32
|
+
"@vue/cli-service": "^4.5.13",
|
|
33
|
+
"@vue/eslint-config-prettier": "^6.0.0",
|
|
34
|
+
"@vue/test-utils": "^1.1.2",
|
|
35
|
+
"babel-eslint": "^10.1.0",
|
|
36
|
+
"eslint": "^6.0.0",
|
|
37
|
+
"eslint-config-prettier": "^6.15.0",
|
|
38
|
+
"eslint-plugin-prettier": "^3.3.1",
|
|
39
|
+
"eslint-plugin-vue": "^6.2.2",
|
|
40
|
+
"prettier": "^2.2.1",
|
|
41
|
+
"vue-svg-inline-loader": "^2.1.3",
|
|
42
|
+
"vue-template-compiler": "^2.6.11"
|
|
43
|
+
}
|
|
44
|
+
}
|
package/public/index.html
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
-
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
|
7
|
-
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
|
8
|
-
<title><%= htmlWebpackPlugin.options.title %></title>
|
|
9
|
-
</head>
|
|
10
|
-
<body>
|
|
11
|
-
<noscript>
|
|
12
|
-
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
|
13
|
-
</noscript>
|
|
14
|
-
<div id="app"></div>
|
|
15
|
-
<!-- built files will be auto injected -->
|
|
16
|
-
</body>
|
|
17
|
-
</html>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
+
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
|
7
|
+
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
|
8
|
+
<title><%= htmlWebpackPlugin.options.title %></title>
|
|
9
|
+
</head>
|
|
10
|
+
<body>
|
|
11
|
+
<noscript>
|
|
12
|
+
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
|
13
|
+
</noscript>
|
|
14
|
+
<div id="app"></div>
|
|
15
|
+
<!-- built files will be auto injected -->
|
|
16
|
+
</body>
|
|
17
|
+
</html>
|
package/src/App.vue
CHANGED
|
@@ -1,28 +1,42 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div id="app">
|
|
3
|
-
<img alt="Vue logo" src="./assets/logo.png" />
|
|
4
|
-
<
|
|
5
|
-
</div>
|
|
6
|
-
</template>
|
|
7
|
-
|
|
8
|
-
<script>
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div id="app">
|
|
3
|
+
<img alt="Vue logo" src="./assets/logo.png" />
|
|
4
|
+
<gallery :items="dataInput" @card-clicked="cardClicked" />
|
|
5
|
+
</div>
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
<script>
|
|
9
|
+
import Gallery from './components/Gallery'
|
|
10
|
+
export default {
|
|
11
|
+
name: 'App',
|
|
12
|
+
components: {
|
|
13
|
+
Gallery,
|
|
14
|
+
},
|
|
15
|
+
data: function () {
|
|
16
|
+
return {
|
|
17
|
+
dataInput: [
|
|
18
|
+
{
|
|
19
|
+
title: 'test1',
|
|
20
|
+
type: 'data',
|
|
21
|
+
link: 'https://sparc.science/',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
title: 'test2',
|
|
25
|
+
type: 'data',
|
|
26
|
+
link: 'https://sparc.science/',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
title: 'test3',
|
|
30
|
+
type: 'data',
|
|
31
|
+
link: 'https://sparc.science/',
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
methods: {
|
|
37
|
+
cardClicked: function (data) {
|
|
38
|
+
console.log('card-clicked', data)
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
}
|
|
42
|
+
</script>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|