@abi-software/gallery 0.3.2 → 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,6 +1,12 @@
1
1
  {
2
2
  "name": "@abi-software/gallery",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
+ "files": [
5
+ "dist/*",
6
+ "src/*",
7
+ "*.json",
8
+ "*.js"
9
+ ],
4
10
  "repository": {
5
11
  "type": "git",
6
12
  "url": "https://github.com/ABI-Software/mapcore-gallery.git"
@@ -37,6 +43,8 @@
37
43
  "eslint-config-prettier": "^6.15.0",
38
44
  "eslint-plugin-prettier": "^3.3.1",
39
45
  "eslint-plugin-vue": "^6.2.2",
46
+ "node-sass": "^4.14.1",
47
+ "sass-loader": "^8.0.2",
40
48
  "prettier": "^2.2.1",
41
49
  "vue-svg-inline-loader": "^2.1.3",
42
50
  "vue-template-compiler": "^2.6.11"
@@ -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;
@@ -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';
@@ -237,7 +237,14 @@ export default {
237
237
  }
238
238
  </script>
239
239
 
240
- <style scoped>
240
+ <style scoped lang="scss">
241
+
242
+ @import "~element-ui/packages/theme-chalk/src/button";
243
+ @import "~element-ui/packages/theme-chalk/src/card";
244
+ @import "~element-ui/packages/theme-chalk/src/loading";
245
+ @import "~element-ui/packages/theme-chalk/src/popover";
246
+ @import "~element-ui/packages/theme-chalk/src/tooltip";
247
+
241
248
  .button,
242
249
  .button:hover,
243
250
  .button:focus {
@@ -249,15 +256,15 @@ export default {
249
256
  font-style: normal;
250
257
  line-height: normal;
251
258
  letter-spacing: normal;
252
- background-color: #8300bf;
253
- border: #8300bf;
259
+ background-color: $app-primary-color;
260
+ border: $app-primary-color;
254
261
  color: white;
255
262
  cursor: pointer;
256
263
  margin-top: 8px;
257
264
  }
258
265
 
259
266
  .button:hover {
260
- background: #8300bf;
267
+ background: $app-primary-color;
261
268
  box-shadow: -3px 2px 4px 0 rgba(0, 0, 0, 0.25);
262
269
  color: #fff;
263
270
  }
@@ -301,14 +308,14 @@ p.bold {
301
308
  width: 0;
302
309
  height: 0;
303
310
  border-left: solid transparent;
304
- border-top: solid #8300bf;
311
+ border-top: solid $app-primary-color;
305
312
  }
306
313
  </style>
307
314
 
308
- <style>
315
+ <style lang="scss">
309
316
  .gallery-popper {
310
317
  background: #f3ecf6 !important;
311
- border: 1px solid #8300bf;
318
+ border: 1px solid $app-primary-color;
312
319
  border-radius: 4px;
313
320
  color: #303133 !important;
314
321
  font-size: 12px;
@@ -317,7 +324,7 @@ p.bold {
317
324
  padding: 10px;
318
325
  }
319
326
  .gallery-popper.el-popper[x-placement^='top'] .popper__arrow {
320
- border-top-color: #8300bf !important;
327
+ border-top-color: $app-primary-color !important;
321
328
  }
322
329
  .gallery-popper.el-popper[x-placement^='top'] .popper__arrow:after {
323
330
  border-top-color: #f3ecf6 !important;
@@ -198,7 +198,7 @@ export default {
198
198
  }
199
199
  </script>
200
200
 
201
- <style scoped>
201
+ <style scoped lang="scss">
202
202
  .oval {
203
203
  width: 2rem;
204
204
  height: 2rem;
@@ -227,7 +227,7 @@ export default {
227
227
  .progress-button {
228
228
  font-size: 1.5rem;
229
229
  font-weight: bold;
230
- color: #8300bf;
230
+ color: $app-primary-color;
231
231
  }
232
232
 
233
233
  .filler {
@@ -25,7 +25,7 @@ export default {
25
25
  }
26
26
  </script>
27
27
 
28
- <style scoped>
28
+ <style scoped lang="scss">
29
29
  .indicator-container {
30
30
  display: flex;
31
31
  justify-content: center;
@@ -40,6 +40,6 @@ export default {
40
40
  }
41
41
 
42
42
  .indicator.active {
43
- background-color: #8300bf;
43
+ background-color: $app-primary-color;
44
44
  }
45
45
  </style>
package/vue.config.js CHANGED
@@ -16,4 +16,12 @@ module.exports = {
16
16
  })
17
17
  .end()
18
18
  },
19
+ css: {
20
+ //Import variables into all stylesheets.
21
+ loaderOptions: {
22
+ sass: {
23
+ prependData: `@import '@/assets/styles';`
24
+ }
25
+ }
26
+ }
19
27
  }
package/.browserslistrc DELETED
@@ -1,3 +0,0 @@
1
- > 1%
2
- last 2 versions
3
- not dead
package/.prettierrc DELETED
@@ -1,6 +0,0 @@
1
- {
2
- "semi": false,
3
- "singleQuote": true,
4
- "tabWidth": 2,
5
- "printWidth": 150
6
- }
Binary file
package/public/index.html DELETED
@@ -1,17 +0,0 @@
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,12 +0,0 @@
1
- import { shallowMount } from '@vue/test-utils'
2
- import HelloWorld from '@/components/HelloWorld.vue'
3
-
4
- describe('HelloWorld.vue', () => {
5
- it('renders props.msg when passed', () => {
6
- const msg = 'new message'
7
- const wrapper = shallowMount(HelloWorld, {
8
- propsData: { msg },
9
- })
10
- expect(wrapper.text()).toMatch(msg)
11
- })
12
- })