@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/package.json CHANGED
@@ -1,43 +1,52 @@
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.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
- <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>
@@ -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
@@ -0,0 +1,7 @@
1
+ @import url('https://fonts.googleapis.com/css?family=Asap:400,400i,500,600,700&display=swap');
2
+
3
+ @import '_variables';
4
+
5
+ /* icon font path, required */
6
+ $--color-primary: $app-primary-color !default;
7
+ $--font-path: '~element-ui/lib/theme-chalk/fonts';
Binary file