@bildvitta/quasar-ui-asteroid 2.18.0 → 2.19.0

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,6 @@
1
1
  {
2
2
  "name": "@bildvitta/quasar-ui-asteroid",
3
- "version": "2.18.0",
3
+ "version": "2.19.0",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {
@@ -73,9 +73,5 @@
73
73
  },
74
74
  "peerDependencies": {
75
75
  "vue": "^2.6.14"
76
- },
77
- "engines": {
78
- "node": ">= 12 < 15",
79
- "npm": ">= 6 < 7"
80
76
  }
81
77
  }
@@ -0,0 +1,25 @@
1
+ <?xml version='1.0' encoding='utf-8'?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 100 100">
3
+ <g>
4
+ <path id="small" fill="#424242" d="m86.6 10.3v-0.1c-1.5-2-3.3-3.7-5.4-5.3v0.1c-1.7 1.3-3.4 2.7-5 4.1-0.7-0.4-1.3-0.7-1.9-1-0.8-0.4-1.6-0.8-2.5-1-0.3-0.1-0.6-0.2-0.9-0.2-0.2-2.2-0.4-4.4-0.7-6.6-1-0.2-2-0.2-3.1-0.3h-1.6c-1 0.1-1.9 0.1-2.8 0.3-0.3 2.1-0.5 4.3-0.6 6.5-0.4 0-0.7 0.1-1.1 0.2-0.1 0-0.2 0-0.3 0.1-0.8 0.2-1.6 0.6-2.4 1-0.7 0.3-1.3 0.6-1.9 1-1.7-1.4-3.3-2.7-5-4.1l-0.1-0.1c-0.4 0.3-0.8 0.6-1.1 0.9-0.7 0.5-1.3 1.1-1.8 1.7-0.9 0.8-1.6 1.8-2.4 2.8h0.1c1.3 1.7 2.7 3.3 4.1 5-0.4 0.6-0.8 1.3-1.1 1.9-0.4 0.8-0.7 1.7-0.9 2.5-0.2 0.4-0.3 0.8-0.3 1.1-2.2 0.2-4.4 0.4-6.5 0.7-0.2 1-0.3 2-0.3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-6.5z"></path>
5
+ <path fill="#424242" d="m66.5 17.2c-2.2 0-4 0.8-5.6 2.3-1.5 1.6-2.3 3.4-2.3 5.6s0.8 4 2.3 5.6c1.6 1.6 3.4 2.4 5.6 2.4s4-0.8 5.6-2.4 2.3-3.4 2.3-5.6-0.7-4-2.3-5.6c-1.6-1.5-3.4-2.3-5.6-2.3zm-4.2 3.7c1.2-1.1 2.6-1.7 4.2-1.7s3 0.6 4.2 1.7c1.2 1.2 1.7 2.5 1.7 4.2s-0.5 3.1-1.7 4.2c-1.2 1.2-2.6 1.8-4.2 1.8s-3-0.6-4.2-1.8c-1.1-1.1-1.7-2.5-1.7-4.2 0-1.6 0.6-3 1.7-4.2z"/>
6
+ <animateTransform attributeName="transform"
7
+ attributeType="XML"
8
+ type="rotate"
9
+ from="360 66 25.1"
10
+ to="0 66 25.1"
11
+ dur="6s"
12
+ repeatCount="indefinite"/>
13
+ </g>
14
+ <g>
15
+ <path id="big" fill="#424242" d="m40.8 33.6c-0.4-0.2-0.7-0.3-1-0.3-1.2-0.3-2.4-0.5-3.6-0.7-1.1 2.7-2 5.3-2.9 7.9h-1.8c-1.2 0.1-2.3 0.2-3.4 0.4-0.9 0.1-1.8 0.4-2.7 0.7-1.6-2.3-3.3-4.6-4.9-6.8l-0.1-0.1c-0.6 0.2-1.2 0.4-1.7 0.7-1 0.4-1.9 0.9-2.8 1.5-1.4 0.7-2.7 1.6-3.9 2.7v0.1c1.2 2.5 2.3 5 3.5 7.5-0.7 0.7-1.3 1.3-1.9 2.1-0.8 0.8-1.5 1.8-2.1 2.8-0.3 0.4-0.5 0.8-0.7 1.3-2.8-0.5-5.6-1-8.4-1.4-0.5 1.2-1 2.4-1.4 3.7-0.4 2-0.8 3.9-1 5.8l7.8 3v1.4c0 1.1 0.1 2.3 0.4 3.5 0.1 1 0.4 2 0.7 3-2.3 1.6-4.5 3.2-6.8 4.9 1.2 3 2.9 5.8 4.9 8.4h0.1c2.5-1.2 5-2.3 7.6-3.5 0.6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7-2.7-7.3-5.5z"></path>
16
+ <path fill="#424242" d="m22.8 62.4c-0.8 2.7-0.5 5.3 0.9 7.7h0.1c1.4 2.5 3.5 4 6.2 4.8 2.7 0.7 5.3 0.4 7.8-1 2.5-1.5 4-3.5 4.8-6.2v-0.1c0.7-2.7 0.3-5.3-1.1-7.7-1.4-2.5-3.5-4.1-6.2-4.8-2.7-0.8-5.4-0.4-7.8 1-2.5 1.4-4 3.5-4.7 6.3zm6-4c1.9-1.1 3.8-1.4 5.8-0.8 2 0.5 3.6 1.7 4.7 3.6 1.1 1.8 1.3 3.8 0.8 5.8-0.6 2-1.8 3.6-3.6 4.6v0.1c-1.9 1-3.8 1.3-5.8 0.7-2.1-0.5-3.6-1.7-4.7-3.6-1-1.8-1.3-3.7-0.8-5.8 0.6-2 1.8-3.5 3.6-4.6z" />
17
+ <animateTransform attributeName="transform"
18
+ attributeType="XML"
19
+ type="rotate"
20
+ from="0 32.5 65"
21
+ to="360 32.5 65"
22
+ dur="6s"
23
+ repeatCount="indefinite"/>
24
+ </g>
25
+ </svg>
@@ -22,7 +22,7 @@
22
22
 
23
23
  <template #description>
24
24
  <div :style="signaturePadWidth">
25
- <qas-signature-pad ref="signaturePadModal" :is-empty.sync="isEmpty" :height="signaturePadHeight" />
25
+ <qas-signature-pad ref="signaturePadModal" :height="signaturePadHeight" :is-empty.sync="isEmpty" />
26
26
  </div>
27
27
  </template>
28
28
 
@@ -52,7 +52,7 @@ export default {
52
52
  NotifyError('Ops! Erro ao obter os dados.', exception)
53
53
 
54
54
  const status = get(response, 'status')
55
- const redirect = ({ 403: 'Forbidden', 404: 'NotFound' })[status]
55
+ const redirect = status >= 500 ? 'ServerError' : ({ 403: 'Forbidden', 404: 'NotFound' })[status]
56
56
 
57
57
  if (redirect) {
58
58
  this.$router.replace({ name: redirect })
@@ -0,0 +1,60 @@
1
+ <template>
2
+ <div class="column error-component items-center justify-around q-px-xl">
3
+ <div class="column full-width items-center justify-center q-gutter-md q-py-md row">
4
+ <q-img src="../assets/gear.svg" :width="gearSize" />
5
+ <div class="text-bold text-h1 text-primary">{{ code }}</div>
6
+ <div class="text-bold text-center text-grey-9 text-h6">{{ title }}</div>
7
+ <div v-if="subtitle" class="text-bold text-center text-grey-9 text-subtitle2">{{ subtitle }}</div>
8
+ <qas-btn v-if="hasButtonProps" class="text-bold text-primary" v-bind="buttonProps" />
9
+ </div>
10
+ </div>
11
+ </template>
12
+
13
+ <script>
14
+ import screenMixin from '../mixins/screen'
15
+
16
+ export default {
17
+ name: 'ErrorComponent',
18
+
19
+ mixins: [screenMixin],
20
+
21
+ props: {
22
+ buttonProps: {
23
+ type: Object,
24
+ default: () => ({})
25
+ },
26
+
27
+ code: {
28
+ type: String,
29
+ required: true
30
+ },
31
+
32
+ subtitle: {
33
+ type: String,
34
+ default: ''
35
+ },
36
+
37
+ title: {
38
+ type: String,
39
+ required: true
40
+ }
41
+ },
42
+
43
+ computed: {
44
+ gearSize () {
45
+ return this.$_isSmall ? '90px' : '160px'
46
+ },
47
+
48
+ hasButtonProps () {
49
+ return !!Object.keys(this.buttonProps).length
50
+ }
51
+ }
52
+ }
53
+ </script>
54
+
55
+ <style lang="scss">
56
+ .error-component {
57
+ min-height: 100vh;
58
+ background-color: var(--qas-background-color);
59
+ }
60
+ </style>
@@ -1,6 +1,26 @@
1
1
  <template>
2
- <div class="fixed-center text-center">
3
- <p class="q-my-lg text-faded">Ops, você não tem permissão para acessar esta página <strong>(403).</strong></p>
4
- <q-btn color="primary" flat @click="$router.push('/')">Voltar</q-btn>
5
- </div>
6
- </template>
2
+ <error-component v-bind="errorProps" />
3
+ </template>
4
+
5
+ <script>
6
+ import ErrorComponent from './ErrorComponent'
7
+
8
+ export default {
9
+ components: {
10
+ ErrorComponent
11
+ },
12
+
13
+ computed: {
14
+ errorProps () {
15
+ return {
16
+ code: '403',
17
+ title: 'Ops, parece que você não tem acesso para este recurso!',
18
+ buttonProps: {
19
+ to: { path: '/' },
20
+ label: 'Voltar ao início'
21
+ }
22
+ }
23
+ }
24
+ }
25
+ }
26
+ </script>
@@ -1,6 +1,26 @@
1
1
  <template>
2
- <div class="fixed-center text-center">
3
- <p class="q-my-lg text-faded">Ops, nada aqui... <strong>(404)</strong></p>
4
- <q-btn color="primary" flat @click="$router.push('/')">Voltar</q-btn>
5
- </div>
2
+ <error-component v-bind="errorProps" />
6
3
  </template>
4
+
5
+ <script>
6
+ import ErrorComponent from './ErrorComponent'
7
+
8
+ export default {
9
+ components: {
10
+ ErrorComponent
11
+ },
12
+
13
+ computed: {
14
+ errorProps () {
15
+ return {
16
+ code: '404',
17
+ title: 'Ops! Parece que a página que está tentando acessar não existe!',
18
+ buttonProps: {
19
+ to: { path: '/' },
20
+ label: 'Voltar ao início'
21
+ }
22
+ }
23
+ }
24
+ }
25
+ }
26
+ </script>
@@ -0,0 +1,23 @@
1
+ <template>
2
+ <error-component v-bind="errorProps" />
3
+ </template>
4
+
5
+ <script>
6
+ import ErrorComponent from './ErrorComponent'
7
+
8
+ export default {
9
+ components: {
10
+ ErrorComponent
11
+ },
12
+
13
+ computed: {
14
+ errorProps () {
15
+ return {
16
+ code: '500',
17
+ title: 'Ops, ocorreu um erro interno no nosso servidor!',
18
+ subtitle: 'Tente novamente em alguns instantes.'
19
+ }
20
+ }
21
+ }
22
+ }
23
+ </script>