@abi-software/gallery 0.3.2-beta → 0.3.3
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/.eslintrc.js +29 -36
- package/LICENSE +201 -201
- package/README.md +35 -35
- package/babel.config.js +12 -12
- package/dist/gallery.common.js +6657 -5380
- package/dist/gallery.common.js.map +1 -1
- package/dist/gallery.css +1 -1
- package/dist/gallery.umd.js +6657 -5380
- 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-lock.json +16167 -0
- package/package.json +52 -43
- package/src/App.vue +42 -28
- package/src/assets/_variables.scss +43 -0
- 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/styles.scss +7 -0
- package/src/assets/video-default.png +0 -0
- package/src/components/Card.vue +332 -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/vue.config.js +27 -23
- package/.browserslistrc +0 -3
- package/.prettierrc +0 -6
- package/Meeting-plan.txt +0 -4
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -17
- package/src/delete.json +0 -39
- package/tests/unit/example.spec.js +0 -12
package/package.json
CHANGED
|
@@ -1,43 +1,52 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@abi-software/gallery",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"prettier": "^
|
|
40
|
-
"vue-
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@abi-software/gallery",
|
|
3
|
+
"version": "0.3.3",
|
|
4
|
+
"files": [
|
|
5
|
+
"dist/*",
|
|
6
|
+
"src/*",
|
|
7
|
+
"*.json",
|
|
8
|
+
"*.js"
|
|
9
|
+
],
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/ABI-Software/mapcore-gallery.git"
|
|
13
|
+
},
|
|
14
|
+
"license": "Apache-2.0",
|
|
15
|
+
"private": false,
|
|
16
|
+
"scripts": {
|
|
17
|
+
"serve-no-lint": "vue-cli-service serve --skip-plugins @vue/cli-plugin-eslint",
|
|
18
|
+
"serve": "vue-cli-service serve",
|
|
19
|
+
"build": "vue-cli-service build",
|
|
20
|
+
"test:unit": "vue-cli-service test:unit",
|
|
21
|
+
"build-bundle": "vue-cli-service build --target lib --name gallery src/main-bundle.js --skip-plugins @vue/cli-plugin-eslint",
|
|
22
|
+
"lint": "vue-cli-service lint"
|
|
23
|
+
},
|
|
24
|
+
"main": "dist/gallery.common.js",
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@babel/code-frame": "^7.12.11",
|
|
27
|
+
"axios": "^0.26.1",
|
|
28
|
+
"babel-plugin-component": "^1.1.1",
|
|
29
|
+
"base64-inline-loader": "^2.0.1",
|
|
30
|
+
"core-js": "^3.8.3",
|
|
31
|
+
"element-ui": "^2.15.0",
|
|
32
|
+
"vue": "^2.6.11"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@vue/cli-plugin-babel": "^4.5.11",
|
|
36
|
+
"@vue/cli-plugin-eslint": "^3.1.1",
|
|
37
|
+
"@vue/cli-plugin-unit-jest": "^4.5.13",
|
|
38
|
+
"@vue/cli-service": "^4.5.13",
|
|
39
|
+
"@vue/eslint-config-prettier": "^6.0.0",
|
|
40
|
+
"@vue/test-utils": "^1.1.2",
|
|
41
|
+
"babel-eslint": "^10.1.0",
|
|
42
|
+
"eslint": "^6.0.0",
|
|
43
|
+
"eslint-config-prettier": "^6.15.0",
|
|
44
|
+
"eslint-plugin-prettier": "^3.3.1",
|
|
45
|
+
"eslint-plugin-vue": "^6.2.2",
|
|
46
|
+
"node-sass": "^4.14.1",
|
|
47
|
+
"sass-loader": "^8.0.2",
|
|
48
|
+
"prettier": "^2.2.1",
|
|
49
|
+
"vue-svg-inline-loader": "^2.1.3",
|
|
50
|
+
"vue-template-compiler": "^2.6.11"
|
|
51
|
+
}
|
|
52
|
+
}
|
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>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// Primary colors
|
|
2
|
+
$purple: #8300BF;
|
|
3
|
+
$darkBlue: #24245B;
|
|
4
|
+
$grey: #303133;
|
|
5
|
+
|
|
6
|
+
// Secondary colors
|
|
7
|
+
$lightPurple: #BC00FC;
|
|
8
|
+
$blue: #0026FF;
|
|
9
|
+
|
|
10
|
+
// Status colors
|
|
11
|
+
$success: #5e9f69;
|
|
12
|
+
$warning: #FF8400;
|
|
13
|
+
$danger: #b51d09;
|
|
14
|
+
|
|
15
|
+
// Text colors
|
|
16
|
+
$neutralGrey: #616161;
|
|
17
|
+
$mediumGrey: #606266;
|
|
18
|
+
$lightGrey: #909399;
|
|
19
|
+
|
|
20
|
+
// Line colors
|
|
21
|
+
$lineColor1: #DCDFE6;
|
|
22
|
+
$lineColor2: #E4E7ED;
|
|
23
|
+
|
|
24
|
+
// Background colors
|
|
25
|
+
$background: #F5F7FA;
|
|
26
|
+
$cochlear: #FFFFFF;
|
|
27
|
+
|
|
28
|
+
//Search box colors
|
|
29
|
+
$darkGrey: #606266;
|
|
30
|
+
|
|
31
|
+
$app-primary-color: $purple;
|
|
32
|
+
$app-secondary-color: $darkBlue;
|
|
33
|
+
$text-color: $grey;
|
|
34
|
+
$input-text: $grey;
|
|
35
|
+
|
|
36
|
+
$system-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
|
|
37
|
+
$font-family: 'Asap', sans-serif;
|
|
38
|
+
|
|
39
|
+
// Viewport Sizes
|
|
40
|
+
$viewport-sm: 20rem;
|
|
41
|
+
$viewport-md: 47rem;
|
|
42
|
+
$viewport-lg: 64rem;
|
|
43
|
+
$viewport-xlg: 120rem;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|