@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/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-beta",
4
- "repository": {
5
- "type": "git",
6
- "url": "https://github.com/hsorby/mapcore-gallery.git"
7
- },
8
- "license": "Apache-2.0",
9
- "private": false,
10
- "scripts": {
11
- "serve": "vue-cli-service serve",
12
- "build": "vue-cli-service build",
13
- "test:unit": "vue-cli-service test:unit",
14
- "build-bundle": "vue-cli-service build --target lib --name gallery src/main.js",
15
- "lint": "vue-cli-service lint"
16
- },
17
- "main": "dist/gallery.common.js",
18
- "dependencies": {
19
- "@babel/code-frame": "^7.12.11",
20
- "axios": "^0.26.1",
21
- "babel-plugin-component": "^1.1.1",
22
- "base64-inline-loader": "^2.0.1",
23
- "core-js": "^3.8.3",
24
- "element-ui": "^2.15.0",
25
- "vue": "^2.6.11"
26
- },
27
- "devDependencies": {
28
- "@vue/cli-plugin-babel": "^4.5.11",
29
- "@vue/cli-plugin-eslint": "^3.1.1",
30
- "@vue/cli-plugin-unit-jest": "^4.5.13",
31
- "@vue/cli-service": "^4.5.13",
32
- "@vue/eslint-config-prettier": "^6.0.0",
33
- "@vue/test-utils": "^1.1.2",
34
- "babel-eslint": "^10.1.0",
35
- "eslint": "^6.0.0",
36
- "eslint-config-prettier": "^6.15.0",
37
- "eslint-plugin-prettier": "^3.3.1",
38
- "eslint-plugin-vue": "^6.2.2",
39
- "prettier": "^2.2.1",
40
- "vue-svg-inline-loader": "^2.1.3",
41
- "vue-template-compiler": "^2.6.11"
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
- <HelloWorld msg="Welcome to Your Vue.js App" />
5
- </div>
6
- </template>
7
-
8
- <script>
9
- import HelloWorld from './components/HelloWorld.vue'
10
-
11
- export default {
12
- name: 'App',
13
- components: {
14
- HelloWorld,
15
- },
16
- }
17
- </script>
18
-
19
- <style scoped>
20
- #app {
21
- font-family: Avenir, Helvetica, Arial, sans-serif;
22
- -webkit-font-smoothing: antialiased;
23
- -moz-osx-font-smoothing: grayscale;
24
- text-align: center;
25
- color: #2c3e50;
26
- margin-top: 60px;
27
- }
28
- </style>
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