@burh/nuxt-core 1.0.159 → 1.0.160

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,133 +1,61 @@
1
- <template>
2
- <div class="quill">
3
- <div :id="toolbarId"></div>
4
- <div :id="editorId" :name="name" class ref="editor"></div>
5
- </div>
6
- </template>
7
- <script>
8
- import 'quill/dist/quill.core.css'
9
- import 'quill/dist/quill.snow.css'
10
- import 'quill/dist/quill.bubble.css'
11
- export default {
12
- name: "html-editor",
13
- props: {
14
- value: {
15
- type: String,
16
- default: "",
17
- },
18
- name: String,
19
- configTools: {
20
- type: Array,
21
- default: () => null
22
- }
23
- },
24
- data() {
25
- return {
26
- editor: null,
27
- content: null,
28
- lastHtmlValue: "",
29
- editorId: null,
30
- toolbarId: null,
31
- };
32
- },
33
- methods: {
34
- initialize(Quill) {
35
- this.editor = new Quill(`#${this.editorId}`, {
36
- theme: "snow",
37
- modules: {
38
- toolbar: this.configTools || [
39
- //[{ 'font': [] }],
40
- //[{ 'color': [] }, { 'background': [] }],
41
-
42
- [{ 'size': ['small', false, 'large', 'huge'] }], // custom dropdown
43
- //[{ 'header': [1, 2, 3, 4, 5, 6, false] }],
44
-
45
- //[{ 'align': '' }, {'align': 'center'}, {'align': 'justify'}, {'align': 'right'}],
46
-
47
- ['bold', 'italic', 'underline', 'strike'], // toggled buttons
48
-
49
- [ 'link', 'image' ], // add's image support
50
-
51
- //['blockquote', 'code-block'],
52
-
53
- [{ 'list': 'ordered'}, { 'list': 'bullet' }],
54
- //[{ 'script': 'sub'}, { 'script': 'super' }], // superscript/subscript
55
- [{ 'indent': '-1'}, { 'indent': '+1' }], // outdent/indent
56
- //[{ 'direction': 'rtl' }], // text direction
57
-
58
- ['clean']
59
- ]
60
- },
61
- });
62
-
63
- if (this.value) {
64
- if (this.value.length > 0) {
65
- this.editor.pasteHTML(this.value);
66
- }
67
- }
68
-
69
- let editorRef = this.$refs.editor;
70
- let node = editorRef.children[0];
71
- this.editor.on("text-change", () => {
72
- let html = node.innerHTML;
73
- if (html === "<p><br></p>") {
74
- html = "";
75
- }
76
- this.content = html;
77
- this.$emit("input", this.content);
78
- });
79
- },
80
- pasteHTML() {
81
- if (!this.editor) {
82
- return;
83
- }
84
- this.editor.pasteHTML(this.value);
85
- },
86
- randomString() {
87
- let text = "";
88
- let possible =
89
- "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
90
-
91
- for (let i = 0; i < 5; i++)
92
- text += possible.charAt(
93
- Math.floor(Math.random() * possible.length)
94
- );
95
-
96
- return text;
97
- },
98
- },
99
- async mounted() {
100
- let Quill = await import("quill");
101
- Quill = Quill.default || Quill;
102
- this.editorId = this.randomString();
103
- this.toolbarId = this.randomString();
104
- this.$nextTick(() => {
105
- this.initialize(Quill);
106
- });
107
- },
108
- watch: {
109
- value(newVal) {
110
- if (newVal !== this.content) {
111
- this.pasteHTML(newVal);
112
- }
113
- },
114
- },
115
- };
116
- </script>
117
- <style lang="scss">
118
- .ql-clipboard {
119
- display: none;
120
- }
121
- .ql-editor {
122
- strong {
123
- font-weight: bold;
124
- }
125
- margin-bottom: 1.5rem;
126
- resize: vertical;
127
- overflow-y: scroll;
128
- font-family: Poppins, Open Sans, sans-serif;
129
- }
130
- .ql-container.ql-snow {
131
- border: 0;
132
- }
133
- </style>
1
+ <template>
2
+ <client-only>
3
+ <text-editor
4
+ ref="editor"
5
+ v-model="value"
6
+ :config="editorConfig"
7
+ />
8
+ </client-only>
9
+ </template>
10
+
11
+ <script>
12
+ export default {
13
+ name: 'html-editor',
14
+ components: {
15
+ 'text-editor': () => { if (process.client) { return import('@blowstack/ckeditor-nuxt') } }
16
+ },
17
+ props: {
18
+ value: {
19
+ type: String,
20
+ default: ''
21
+ }
22
+ },
23
+ mounted() {
24
+ import('@ckeditor/ckeditor5-build-classic/build/translations/pt-br')
25
+ },
26
+ data() {
27
+ return {
28
+ editorConfig: {
29
+ language: 'pt-br',
30
+ removePlugins: [
31
+ 'Title',
32
+ 'FontBackgroundColor',
33
+ 'FontColor',
34
+ 'FontFamily',
35
+ 'FontSize',
36
+ 'Subscript',
37
+ 'Superscript',
38
+ 'BlockQuote',
39
+ 'PageBreak'
40
+ ]
41
+ }
42
+ }
43
+ },
44
+ watch: {
45
+ value() {
46
+ this.$emit("input", this.value)
47
+ }
48
+ }
49
+ };
50
+ </script>
51
+
52
+ <style lang="scss">
53
+ .ck-editor {
54
+ margin-bottom: 20px!important;
55
+ }
56
+ .ck-content {
57
+ min-height: 200px;
58
+ max-height: 500px;
59
+ overflow-y: auto;
60
+ }
61
+ </style>
@@ -1,259 +1,259 @@
1
- <template>
2
- <section class="products--info">
3
- <header class="products--info__social--links">
4
- <a href="https://www.facebook.com/burhbrasil" target="_blank" rel="noopener">
5
- <i class="fab fa-facebook-f"></i>
6
- </a>
7
- <a href="https://www.instagram.com/burhbrasil/" target="_blank" rel="noopener">
8
- <i class="fab fa-instagram"></i>
9
- </a>
10
- <a href="https://www.linkedin.com/company/burh/" target="_blank" rel="noopener">
11
- <i class="fab fa-linkedin-in"></i>
12
- </a>
13
- </header>
14
- <content class="products--info__content">
15
- <div class="product__content">
16
- <p class="product__content--title">Soluções</p>
17
- <ul class="product__content--list">
18
- <li>Busca Avançada</li>
19
- <li>Recrutamento</li>
20
- <li>Busca por Universidades</li>
21
- <li>Vídeo Entrevista</li>
22
- <li>Trabalhe Conosco</li>
23
- <li>Universidade Corporativa</li>
24
- <li>Testes Online Personalizados</li>
25
- <li>Teste Profiler DISC</li>
26
- <li>Buffer</li>
27
- <li>Envio de SMS</li>
28
- </ul>
29
- </div>
30
- <div class="product__content">
31
- <p class="product__content--title">Segurança</p>
32
- <ul class="product__content--list">
33
- <li>Busca Avançada</li>
34
- <li>Recrutamento</li>
35
- <li>Busca por Universidades</li>
36
- <li>Vídeo Entrevista</li>
37
- </ul>
38
- <p class="product__content--title">Planos e Preços</p>
39
- <ul class="product__content--list">
40
- <li>Busca Avançada</li>
41
- <li>Recrutamento</li>
42
- <li>Busca por Universidades</li>
43
- <li>Vídeo Entrevista</li>
44
- </ul>
45
- </div>
46
- <div class="product__content">
47
- <p class="product__content--title">Recursos</p>
48
- <ul class="product__content--list">
49
- <li>Busca Avançada</li>
50
- <li>Recrutamento</li>
51
- <li>Busca por Universidades</li>
52
- <li>Vídeo Entrevista</li>
53
- </ul>
54
- </div>
55
- <div class="product__content">
56
- <p class="product__content--title">Página de Carreiras</p>
57
- <ul class="product__content--list">
58
- <li>Busca Avançada</li>
59
- <li>Recrutamento</li>
60
- <li>Busca por Universidades</li>
61
- <li>Vídeo Entrevista</li>
62
- <li>Trabalhe Conosco</li>
63
- <li>Universidade Corporativa</li>
64
- <li>Testes Online Personalizados</li>
65
- <li>Teste Profiler DISC</li>
66
- <li>Buffer</li>
67
- <li>Envio de SMS</li>
68
- </ul>
69
- </div>
70
- <div class="product__content">
71
- <p class="product__content--title">Suporte</p>
72
- <ul class="product__content--list">
73
- <li>Busca Avançada</li>
74
- <li>Recrutamento</li>
75
- <li>Busca por Universidades</li>
76
- <li>Vídeo Entrevista</li>
77
- </ul>
78
- <p class="product__content--title">Mais sobre o Burh</p>
79
- <ul class="product__content--list">
80
- <li>Busca Avançada</li>
81
- <li>Recrutamento</li>
82
- <li>Busca por Universidades</li>
83
- <li>Vídeo Entrevista</li>
84
- </ul>
85
- </div>
86
- </content>
87
- <footer class="products--info__footer">
88
- <div class="footer__links">
89
- <div class="burh__logo">
90
- <img src="/img/brand/burh-imagotipo-white.svg" alt="Burh">
91
- </div>
92
- <ul>
93
- <li><a :href="`${url}/sobre-o-burh`" target="_blank">Sobre o Burh</a></li>
94
- <li><a>Produtos Burh</a></li>
95
- <li><a :href="`${url}/termos-de-uso#privacidade`" target="_blank">Privacidade</a></li>
96
- <li><a :href="`${url}/termos-de-uso`" target="_blank">Termos</a></li>
97
- </ul>
98
- </div>
99
- <div class="footer__text">
100
- <div class="copyright text-center text-lg-right">
101
- © {{year}} Feito com <span id="heart"></span>
102
- no Brasil para o mundo.
103
- </div>
104
- </div>
105
- </footer>
106
- </section>
107
- </template>
108
-
109
- <script>
110
- export default {
111
- name: 'ProductsFooter',
112
- data() {
113
- return {
114
- year: new Date().getFullYear(),
115
- url: ''
116
- };
117
- },
118
- mounted() {
119
- this.url = process.env.baseUserUrl;
120
- }
121
- };
122
- </script>
123
-
124
- <style lang="scss" scoped>
125
- $primaryColor: #5983FE;
126
-
127
- .products--info {
128
- max-width: calc(1360px + 40px * 2);
129
- padding: 0 40px;
130
- margin: 0 auto;
131
- margin-top: 100px;
132
- display: block;
133
- &__social--links {
134
- padding: 15px 0;
135
- display: flex;
136
- align-items: center;
137
- border-bottom: 1px solid #eee;
138
- a {
139
- font-size: 1.5rem;
140
- color: $primaryColor;
141
- margin: 0 20px;
142
- &:first-child {
143
- margin-left: 0;
144
- }
145
- }
146
- }
147
- &__content {
148
- display: grid;
149
- grid-template-columns: repeat(5, 1fr);
150
- gap: 20px;
151
- align-items: flex-start;
152
- @media (max-width: 1200px) {
153
- & {
154
- grid-template-columns: repeat(4, 1fr);
155
- }
156
- }
157
- @media (max-width: 990px) {
158
- & {
159
- grid-template-columns: repeat(3, 1fr);
160
- }
161
- }
162
- @media (max-width: 720px) {
163
- & {
164
- grid-template-columns: repeat(2, 1fr);
165
- }
166
- }
167
- @media (max-width: 500px) {
168
- & {
169
- grid-template-columns: 1fr;
170
- }
171
- }
172
- .product__content {
173
- &--title {
174
- font-weight: bold;
175
- margin-bottom: 10px;
176
- margin-top: 25px;
177
- font-size: 1rem;
178
- }
179
- &--list {
180
- list-style: none;
181
- margin: 0;
182
- padding: 0;
183
- margin-top: 25px;
184
- li {
185
- margin: 10px 0;
186
- font-size: 0.75rem;
187
- }
188
- }
189
- }
190
- }
191
- &__footer {
192
- margin-top: 80px;
193
- border-top: 1px solid #eee;
194
- padding: 30px 0;
195
- display: flex;
196
- align-items: center;
197
- justify-content: space-between;
198
- @media (max-width: 960px) {
199
- & {
200
- flex-direction: column;
201
- justify-content: center;
202
- .footer__links {
203
- margin-bottom: 20px;
204
- }
205
- }
206
- }
207
- .footer__links {
208
- display: flex;
209
- align-items: center;
210
- justify-content: flex-start;
211
- .burh__logo {
212
- width: 120px;
213
- img {
214
- display: block;
215
- width: 100%;
216
- filter: brightness(0.5);
217
- }
218
- @media (max-width: 1150px) {
219
- & {
220
- display: none;
221
- }
222
- }
223
- }
224
- ul {
225
- margin: 0!important;
226
- @media (max-width: 1150px) {
227
- & {
228
- padding: 0;
229
- li a:first-child {
230
- padding-left: 0;
231
- }
232
- }
233
- }
234
- li {
235
- display: inline-block;
236
- @media (max-width: 640px) {
237
- & {
238
- display: block;
239
- text-align: center;
240
- a {
241
- padding: 20px;
242
- }
243
- }
244
- }
245
- a {
246
- display: block;
247
- cursor: pointer;
248
- color: #525f7f;
249
- padding: 0 20px;
250
- &:hover {
251
- text-decoration: underline;
252
- }
253
- }
254
- }
255
- }
256
- }
257
- }
258
- }
259
- </style>
1
+ <template>
2
+ <section class="products--info">
3
+ <header class="products--info__social--links">
4
+ <a href="https://www.facebook.com/burhbrasil" target="_blank" rel="noopener">
5
+ <i class="fab fa-facebook-f"></i>
6
+ </a>
7
+ <a href="https://www.instagram.com/burhbrasil/" target="_blank" rel="noopener">
8
+ <i class="fab fa-instagram"></i>
9
+ </a>
10
+ <a href="https://www.linkedin.com/company/burh/" target="_blank" rel="noopener">
11
+ <i class="fab fa-linkedin-in"></i>
12
+ </a>
13
+ </header>
14
+ <content class="products--info__content">
15
+ <div class="product__content">
16
+ <p class="product__content--title">Soluções</p>
17
+ <ul class="product__content--list">
18
+ <li>Busca Avançada</li>
19
+ <li>Recrutamento</li>
20
+ <li>Busca por Universidades</li>
21
+ <li>Vídeo Entrevista</li>
22
+ <li>Trabalhe Conosco</li>
23
+ <li>Universidade Corporativa</li>
24
+ <li>Testes Online Personalizados</li>
25
+ <li>Teste Profiler DISC</li>
26
+ <li>Buffer</li>
27
+ <li>Envio de SMS</li>
28
+ </ul>
29
+ </div>
30
+ <div class="product__content">
31
+ <p class="product__content--title">Segurança</p>
32
+ <ul class="product__content--list">
33
+ <li>Busca Avançada</li>
34
+ <li>Recrutamento</li>
35
+ <li>Busca por Universidades</li>
36
+ <li>Vídeo Entrevista</li>
37
+ </ul>
38
+ <p class="product__content--title">Planos e Preços</p>
39
+ <ul class="product__content--list">
40
+ <li>Busca Avançada</li>
41
+ <li>Recrutamento</li>
42
+ <li>Busca por Universidades</li>
43
+ <li>Vídeo Entrevista</li>
44
+ </ul>
45
+ </div>
46
+ <div class="product__content">
47
+ <p class="product__content--title">Recursos</p>
48
+ <ul class="product__content--list">
49
+ <li>Busca Avançada</li>
50
+ <li>Recrutamento</li>
51
+ <li>Busca por Universidades</li>
52
+ <li>Vídeo Entrevista</li>
53
+ </ul>
54
+ </div>
55
+ <div class="product__content">
56
+ <p class="product__content--title">Página de Carreiras</p>
57
+ <ul class="product__content--list">
58
+ <li>Busca Avançada</li>
59
+ <li>Recrutamento</li>
60
+ <li>Busca por Universidades</li>
61
+ <li>Vídeo Entrevista</li>
62
+ <li>Trabalhe Conosco</li>
63
+ <li>Universidade Corporativa</li>
64
+ <li>Testes Online Personalizados</li>
65
+ <li>Teste Profiler DISC</li>
66
+ <li>Buffer</li>
67
+ <li>Envio de SMS</li>
68
+ </ul>
69
+ </div>
70
+ <div class="product__content">
71
+ <p class="product__content--title">Suporte</p>
72
+ <ul class="product__content--list">
73
+ <li>Busca Avançada</li>
74
+ <li>Recrutamento</li>
75
+ <li>Busca por Universidades</li>
76
+ <li>Vídeo Entrevista</li>
77
+ </ul>
78
+ <p class="product__content--title">Mais sobre o Burh</p>
79
+ <ul class="product__content--list">
80
+ <li>Busca Avançada</li>
81
+ <li>Recrutamento</li>
82
+ <li>Busca por Universidades</li>
83
+ <li>Vídeo Entrevista</li>
84
+ </ul>
85
+ </div>
86
+ </content>
87
+ <footer class="products--info__footer">
88
+ <div class="footer__links">
89
+ <div class="burh__logo">
90
+ <img src="/img/brand/burh-imagotipo-white.svg" alt="Burh">
91
+ </div>
92
+ <ul>
93
+ <li><a :href="`${url}/sobre-o-burh`" target="_blank">Sobre o Burh</a></li>
94
+ <li><a>Produtos Burh</a></li>
95
+ <li><a :href="`${url}/termos-de-uso#privacidade`" target="_blank">Privacidade</a></li>
96
+ <li><a :href="`${url}/termos-de-uso`" target="_blank">Termos</a></li>
97
+ </ul>
98
+ </div>
99
+ <div class="footer__text">
100
+ <div class="copyright text-center text-lg-right">
101
+ © {{year}} Feito com <span id="heart"></span>
102
+ no Brasil para o mundo.
103
+ </div>
104
+ </div>
105
+ </footer>
106
+ </section>
107
+ </template>
108
+
109
+ <script>
110
+ export default {
111
+ name: 'ProductsFooter',
112
+ data() {
113
+ return {
114
+ year: new Date().getFullYear(),
115
+ url: ''
116
+ };
117
+ },
118
+ mounted() {
119
+ this.url = process.env.baseUserUrl;
120
+ }
121
+ };
122
+ </script>
123
+
124
+ <style lang="scss" scoped>
125
+ $primaryColor: #5983FE;
126
+
127
+ .products--info {
128
+ max-width: calc(1360px + 40px * 2);
129
+ padding: 0 40px;
130
+ margin: 0 auto;
131
+ margin-top: 100px;
132
+ display: block;
133
+ &__social--links {
134
+ padding: 15px 0;
135
+ display: flex;
136
+ align-items: center;
137
+ border-bottom: 1px solid #eee;
138
+ a {
139
+ font-size: 1.5rem;
140
+ color: $primaryColor;
141
+ margin: 0 20px;
142
+ &:first-child {
143
+ margin-left: 0;
144
+ }
145
+ }
146
+ }
147
+ &__content {
148
+ display: grid;
149
+ grid-template-columns: repeat(5, 1fr);
150
+ gap: 20px;
151
+ align-items: flex-start;
152
+ @media (max-width: 1200px) {
153
+ & {
154
+ grid-template-columns: repeat(4, 1fr);
155
+ }
156
+ }
157
+ @media (max-width: 990px) {
158
+ & {
159
+ grid-template-columns: repeat(3, 1fr);
160
+ }
161
+ }
162
+ @media (max-width: 720px) {
163
+ & {
164
+ grid-template-columns: repeat(2, 1fr);
165
+ }
166
+ }
167
+ @media (max-width: 500px) {
168
+ & {
169
+ grid-template-columns: 1fr;
170
+ }
171
+ }
172
+ .product__content {
173
+ &--title {
174
+ font-weight: bold;
175
+ margin-bottom: 10px;
176
+ margin-top: 25px;
177
+ font-size: 1rem;
178
+ }
179
+ &--list {
180
+ list-style: none;
181
+ margin: 0;
182
+ padding: 0;
183
+ margin-top: 25px;
184
+ li {
185
+ margin: 10px 0;
186
+ font-size: 0.75rem;
187
+ }
188
+ }
189
+ }
190
+ }
191
+ &__footer {
192
+ margin-top: 80px;
193
+ border-top: 1px solid #eee;
194
+ padding: 30px 0;
195
+ display: flex;
196
+ align-items: center;
197
+ justify-content: space-between;
198
+ @media (max-width: 960px) {
199
+ & {
200
+ flex-direction: column;
201
+ justify-content: center;
202
+ .footer__links {
203
+ margin-bottom: 20px;
204
+ }
205
+ }
206
+ }
207
+ .footer__links {
208
+ display: flex;
209
+ align-items: center;
210
+ justify-content: flex-start;
211
+ .burh__logo {
212
+ width: 120px;
213
+ img {
214
+ display: block;
215
+ width: 100%;
216
+ filter: brightness(0.5);
217
+ }
218
+ @media (max-width: 1150px) {
219
+ & {
220
+ display: none;
221
+ }
222
+ }
223
+ }
224
+ ul {
225
+ margin: 0!important;
226
+ @media (max-width: 1150px) {
227
+ & {
228
+ padding: 0;
229
+ li a:first-child {
230
+ padding-left: 0;
231
+ }
232
+ }
233
+ }
234
+ li {
235
+ display: inline-block;
236
+ @media (max-width: 640px) {
237
+ & {
238
+ display: block;
239
+ text-align: center;
240
+ a {
241
+ padding: 20px;
242
+ }
243
+ }
244
+ }
245
+ a {
246
+ display: block;
247
+ cursor: pointer;
248
+ color: #525f7f;
249
+ padding: 0 20px;
250
+ &:hover {
251
+ text-decoration: underline;
252
+ }
253
+ }
254
+ }
255
+ }
256
+ }
257
+ }
258
+ }
259
+ </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burh/nuxt-core",
3
- "version": "1.0.159",
3
+ "version": "1.0.160",
4
4
  "description": "Design System and Components.",
5
5
  "author": "Burh",
6
6
  "scripts": {
@@ -14,7 +14,9 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "@babel/core": "^7.4.5",
17
+ "@blowstack/ckeditor-nuxt": "^0.6.0",
17
18
  "@chenfengyuan/vue-qrcode": "^1.0.1",
19
+ "@ckeditor/ckeditor5-build-classic": "^27.0.0",
18
20
  "@fortawesome/fontawesome-svg-core": "^1.2.22",
19
21
  "@fortawesome/free-brands-svg-icons": "^5.10.2",
20
22
  "@fortawesome/free-regular-svg-icons": "^5.10.2",