@burh/nuxt-core 1.0.170 → 1.0.172

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.
@@ -1,7 +1,7 @@
1
1
  .navbar {
2
2
  .navbar-brand-img {
3
- width: auto;
4
- height: 30px;
3
+ width: 110px;
4
+ height: auto;
5
5
  margin-right: $spacer;
6
6
 
7
7
  &--full {
@@ -1,63 +1,105 @@
1
1
  <template>
2
- <card class="card-app card-app--training" :class="icon ? 'card--icon' : '' " @click.native="$emit('course-click')">
3
- <base-dropdown @click.native.stop class="top-right custom" v-if="showMenu">
4
- <i slot="title-container"
5
- class="fa fa-ellipsis-h custom"
6
- aria-hidden="true"
7
- />
8
- <li v-for="actions in dropdownActions" class="dropdown-item d-flex align-items-center w-100" @click="$emit(actions.action)" :key="actions.name">
9
- <i :class="actions.icon ? actions.icon : 'fa fa-paper-plane'" aria-hidden="true" />
10
- <span>
11
- {{actions.name}}
12
- </span>
13
- </li>
14
- <li v-if="defaultAction" class="dropdown-item d-flex align-items-center w-100" @click="$emit(defaultAction.action)">
15
- <i :class="defaultAction.icon ? defaultAction.icon : 'fa fa-clone'" aria-hidden="true" />
16
- <span>
17
- {{defaultAction.name}}
18
- </span>
19
- </li>
20
- </base-dropdown>
21
- <img v-if="image" slot="image" class="card-img-top" :src="image" alt="Card image cap">
2
+ <card
3
+ class="card-app card-app--training"
4
+ :class="icon ? 'card--icon' : ''"
5
+ @click.native="$emit('course-click')"
6
+ >
7
+ <base-dropdown
8
+ @click.native.stop
9
+ class="top-right custom"
10
+ v-if="showMenu"
11
+ >
12
+ <i
13
+ slot="title-container"
14
+ class="fa fa-ellipsis-h custom"
15
+ aria-hidden="true"
16
+ />
17
+ <li
18
+ v-for="actions in dropdownActions"
19
+ class="dropdown-item d-flex align-items-center w-100"
20
+ @click="$emit(actions.action)"
21
+ :key="actions.name"
22
+ >
23
+ <i
24
+ :class="actions.icon ? actions.icon : 'fa fa-paper-plane'"
25
+ aria-hidden="true"
26
+ />
27
+ <span>
28
+ {{ actions.name }}
29
+ </span>
30
+ </li>
31
+ <li
32
+ v-if="defaultAction"
33
+ class="dropdown-item d-flex align-items-center w-100"
34
+ @click="$emit(defaultAction.action)"
35
+ >
36
+ <i
37
+ :class="
38
+ defaultAction.icon ? defaultAction.icon : 'fa fa-clone'
39
+ "
40
+ aria-hidden="true"
41
+ />
42
+ <span>
43
+ {{ defaultAction.name }}
44
+ </span>
45
+ </li>
46
+ </base-dropdown>
47
+ <img
48
+ v-if="image"
49
+ slot="image"
50
+ class="card-img-top"
51
+ :src="image"
52
+ alt="Card image cap"
53
+ />
22
54
 
23
- <i v-if="icon" slot="image" :class="icon" class="card-img-top card__icon"/>
24
- <!-- title -->
25
- <h3 class="h6 title mb-2">{{title}}</h3>
26
- <!-- descrição -->
27
- <p v-if="description" class="card-title mb-2">{{description}}</p>
28
- <!-- another information -->
29
- <p v-if="info" class="card-title"><small class="text-muted">{{info}}</small></p>
30
- </card>
55
+ <i
56
+ v-if="icon"
57
+ slot="image"
58
+ :class="icon"
59
+ class="card-img-top card__icon"
60
+ />
61
+ <!-- title -->
62
+ <h3 class="h6 title mb-2">{{ title }}</h3>
63
+ <!-- descrição -->
64
+ <p v-if="description" class="card-title mb-2">{{ description }}</p>
65
+ <!-- another information -->
66
+ <p v-if="info" class="card-title">
67
+ <small class="text-muted">{{ info }}</small>
68
+ </p>
69
+ </card>
31
70
  </template>
32
71
 
33
72
  <script>
34
73
  export default {
35
- name: 'training-card',
36
- data(){
37
- return{
38
- };
39
- },
40
- props: {
41
- id: Number,
42
- icon: String,
43
- link: String,
44
- image: String,
45
- title: String,
46
- description: String,
47
- info: String,
48
- showMenu: {
49
- type: Boolean,
50
- default: false,
51
- description: 'Defines if option menu is visible'
52
- },
53
- dropdownActions: null,
54
- defaultAction: null
55
- }
74
+ name: 'training-card',
75
+ data() {
76
+ return {};
77
+ },
78
+ props: {
79
+ id: Number,
80
+ icon: String,
81
+ link: String,
82
+ image: String,
83
+ title: String,
84
+ description: String,
85
+ info: String,
86
+ showMenu: {
87
+ type: Boolean,
88
+ default: false,
89
+ description: 'Defines if option menu is visible'
90
+ },
91
+ dropdownActions: null,
92
+ defaultAction: null
93
+ }
56
94
  };
57
95
  </script>
58
96
 
59
- <style lang="scss">
60
- .title{
97
+ <style lang="scss" scoped>
98
+ .card-app--training {
99
+ height: 15.8rem !important;
100
+ }
101
+
102
+ .title {
61
103
  margin-bottom: 0px !important;
62
104
  }
63
105
 
@@ -75,7 +117,7 @@ export default {
75
117
  background-color: #8192a6;
76
118
  border-radius: 15%;
77
119
  font-size: 1.25rem;
78
- padding: .25rem .5rem;
120
+ padding: 0.25rem 0.5rem;
79
121
  display: none;
80
122
  &:hover {
81
123
  cursor: pointer;
@@ -83,14 +125,14 @@ export default {
83
125
  }
84
126
 
85
127
  .top-right {
86
- right: .5rem;
128
+ right: 0.5rem;
87
129
  position: absolute;
88
- top: .5rem;
130
+ top: 0.5rem;
89
131
  z-index: 100;
90
132
  }
91
133
 
92
134
  .fa-plus::before {
93
- content: "\f067";
135
+ content: '\f067';
94
136
  position: relative;
95
137
  top: 25%;
96
138
  transform: translateY(-50%);
@@ -48,7 +48,7 @@ export default {
48
48
  .card-header {
49
49
  padding: 1.25rem 0;
50
50
  &::after {
51
- color: #5983FE;
51
+ color: #1da1f1;
52
52
  font-size: 1.5rem;
53
53
  }
54
54
  }
@@ -1,69 +1,69 @@
1
1
  <template>
2
- <el-dialog
3
- :visible.sync="isActive"
4
- width="80%"
5
- custom-class="position-relative"
6
- @close="$emit('close')"
7
- class="test-radius"
8
- >
9
- <template>
10
- <div class="row d-flex justify-content-between mx-0 user-pdf">
11
- <img v-show="coverPhoto" :src="coverPhoto" alt="" />
12
- <div v-show="!coverPhoto" class="no-cover-photo"></div>
13
- <slot name="content"></slot>
14
- </div>
15
- <slot></slot>
16
- <!-- <el-tooltip placement="top" :content="!showTools ? 'Exibir Ferramentas' : 'Esconder Ferramentas'">
2
+ <el-dialog
3
+ :visible.sync="isActive"
4
+ width="80%"
5
+ custom-class="position-relative"
6
+ @close="$emit('close')"
7
+ class="test-radius"
8
+ >
9
+ <template>
10
+ <div class="row d-flex justify-content-between mx-0 user-pdf">
11
+ <img v-show="coverPhoto" :src="coverPhoto" alt="" />
12
+ <div v-show="!coverPhoto" class="no-cover-photo"></div>
13
+ <slot name="content"></slot>
14
+ </div>
15
+ <slot></slot>
16
+ <!-- <el-tooltip placement="top" :content="!showTools ? 'Exibir Ferramentas' : 'Esconder Ferramentas'">
17
17
  <span class="tool tool-show--tools">
18
- <font-awesome-icon :icon="['fas', !showTools ? 'expand-alt' : 'compress-alt']" class="h3 text-primary"
18
+ <font-awesome-icon :icon="['fas', !showTools ? 'expand-alt' : 'compress-alt']" class="h3 text-primary"
19
19
  @click="showTools = !showTools"/>
20
20
  </span>
21
21
  </el-tooltip> -->
22
- <span class="tool tool-close" @click="$emit('close')">
23
- Fechar
24
- <font-awesome-icon
25
- :icon="['fas', 'times']"
26
- class="text-white ml-1"
27
- />
28
- </span>
29
- </template>
30
- </el-dialog>
22
+ <span class="tool tool-close" @click="$emit('close')">
23
+ Fechar
24
+ <font-awesome-icon
25
+ :icon="['fas', 'times']"
26
+ class="text-white ml-1"
27
+ />
28
+ </span>
29
+ </template>
30
+ </el-dialog>
31
31
  </template>
32
32
 
33
33
  <script>
34
34
  import { Dialog } from 'element-ui';
35
35
 
36
36
  export default {
37
- name: 'user-curriculum',
38
- components: {
39
- [Dialog.name]: Dialog
40
- },
41
- props: {
42
- show: {
43
- type: Boolean,
44
- default: false
45
- },
46
- tools: {
47
- type: Array,
48
- default: () => []
49
- },
50
- cover: String
51
- },
52
- data() {
53
- return {
54
- isActive: this.show,
55
- showTools: false,
56
- coverPhoto: this.cover
57
- };
58
- },
59
- watch: {
60
- show(value) {
61
- this.isActive = value;
62
- },
63
- cover(value) {
64
- this.coverPhoto = value;
65
- }
66
- }
37
+ name: 'user-curriculum',
38
+ components: {
39
+ [Dialog.name]: Dialog
40
+ },
41
+ props: {
42
+ show: {
43
+ type: Boolean,
44
+ default: false
45
+ },
46
+ tools: {
47
+ type: Array,
48
+ default: () => []
49
+ },
50
+ cover: String
51
+ },
52
+ data() {
53
+ return {
54
+ isActive: this.show,
55
+ showTools: false,
56
+ coverPhoto: this.cover
57
+ };
58
+ },
59
+ watch: {
60
+ show(value) {
61
+ this.isActive = value;
62
+ },
63
+ cover(value) {
64
+ this.coverPhoto = value;
65
+ }
66
+ }
67
67
  };
68
68
  </script>
69
69
 
@@ -83,6 +83,7 @@ export default {
83
83
  border-radius: 10px;
84
84
  padding-bottom: 50px;
85
85
  max-width: 1500px;
86
+ margin-top: 5vh!important;
86
87
  }
87
88
 
88
89
  .test-radius {
@@ -3,18 +3,21 @@
3
3
  <div class="row justify-content-center">
4
4
  <div class="col-6 my-auto">
5
5
  <h2 class="font-weight-bold display-3">{{name}}</h2>
6
+ <span id="credits-amount" v-if="subheader">
7
+ {{ subheader }} Créditos
8
+ </span>
6
9
  </div>
7
10
 
8
11
  <div class="col-6 d-flex justify-content-end align-items-center">
9
12
  <el-tooltip v-for="(item, index) in icons" :key="index"
10
- v-show="!item.disabled"
11
- class="item" effect="dark" :content="item.title" placement="top">
13
+ v-show="!item.disabled"
14
+ class="item" effect="dark" :content="item.title" placement="top">
12
15
  <base-button size="md" type="link" class="text-primary px-2 w-auto"
13
- @click="$emit(item.event, item)">
16
+ @click="$emit(item.event, item)">
14
17
  <font-awesome-icon :icon="item.icon" class="mr-2" />
15
18
  </base-button>
16
19
  </el-tooltip>
17
-
20
+
18
21
  <slot name="buttons"></slot>
19
22
  </div>
20
23
 
@@ -32,15 +35,33 @@ export default {
32
35
  props:{
33
36
  icons:{
34
37
  type: Array,
35
- default: () =>[{ event: 'view', icon: ['fas', 'eye'], disabled: false, title: 'Visualizar' }, { event: 'config', icon: ['fas', 'cog'], disabled: false, title: "Editar" } ]
38
+ default: () =>[{ event: 'view', icon: ['fas', 'eye'], disabled: false, title: 'Visualizar' }, { event: 'config', icon: ['fas', 'cog'], disabled: false, title: 'Editar' } ]
36
39
  },
37
40
  name: {
38
41
  type: String,
39
42
  default: 'Teste de matematica'
40
43
  },
44
+ subheader: {
45
+ type: Number,
46
+ default: null
47
+ }
41
48
  },
42
49
  };
43
50
  </script>
51
+ <style lang="scss" scoped>
52
+ #credits-amount {
53
+ min-width: 8em;
54
+ margin: 1rem 1rem 1rem 0;
55
+ padding: 0.25em 1em;
56
+ font-size: 0.85rem;
57
+ line-height: 1.4em;
58
+ border-radius: 23rem;
59
+ font-weight: 400;
60
+ text-align: center;
61
+ background-color: rgba(29, 161, 241, 0.1);
62
+ color: #1da1f1;
63
+ }
64
+ </style>
44
65
  <style lang="scss">
45
66
 
46
67
  .app-header {
@@ -48,4 +69,4 @@ export default {
48
69
  padding-top: 1.25rem;
49
70
  box-shadow: 0 0 2rem 0 rgba(136, 152, 170, 0.15);
50
71
  }
51
- </style>
72
+ </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burh/nuxt-core",
3
- "version": "1.0.170",
3
+ "version": "1.0.172",
4
4
  "description": "Design System and Components.",
5
5
  "author": "Burh",
6
6
  "scripts": {