-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRevisar.txt
executable file
·312 lines (226 loc) · 10.6 KB
/
Revisar.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
{
"url": "http://localhost:3000/_nuxt/pages/Lecheros/Mto/RecLeche_ant/bpe_bpe.ts",
"path": "${workspaceFolder}/pages/Lecheros/Mto/RecLeche/bpe_bpe.ts"
},
{
"url": "http://localhost:3000/_nuxt/classes",
"path": "${workspaceFolder}/classes"
},
{
"url": "http://localhost:3000/_nuxt/@fs/siavcom/desarrollo/desarrolloweb/Vue/web-ones",
"path": "${workspaceFolder}"
},
{
"url": "http://localhost:3000/_nuxt/@fs/siavcom/desarrollo/desarrolloweb/Vue/web-ones",
"path": "${workspaceFolder}"
},
{
"url": "http://localhost:3000/_nuxt/pages",
"path": "${workspaceFolder}/pages"
},
{
"url": "http://localhost:3000/_nuxt/@fs/siavcom/desarrollo/desarrolloweb/Vue/web-ones-FERNANDO/classes/*.ts",
"path": "${workspaceFolder}/classes/*.ts"
},
{
"url": "http://localhost:3000/_nuxt/@fs/siavcom/desarrollo/desarrolloweb/Vue/web-ones-FERNANDO/classes/CaptureForm.ts",
"path": "${workspaceFolder}/classes/CaptureForm.ts"
},
{
"url": "http://localhost:3000/_nuxt/@fs/siavcom/desarrollo/desarrolloweb/Vue/web-ones-FERNANDO/pages/formGenerator/bt_aceptar.ts",
"path": "${workspaceFolder}/pages/formGenerator/bt_aceptar.ts"
},
{
"url": "http://localhost:3000/_nuxt/@fs/siavcom/desarrollo/desarrolloweb/Vue/web-ones-FERNANDO/pages/formGenerator/bt_gen_forma.ts",
"path": "${workspaceFolder}/pages/formGenerator/bt_gen_forma.ts"
},
{
"url": "http://localhost:3000/_nuxt/@fs/siavcom/desarrollo/desarrolloweb/Vue/web-ones-FERNANDO/pages/SqlDictionary/bt_aceptar.ts",
"path": "${workspaceFolder}/pages/SqlDictionary/bt_aceptar.ts"
},
{
"url": "http://localhost:3000/_nuxt/@fs/siavcom/desarrollo/desarrolloweb/Vue/web-ones-FERNANDO/classes",
"path": "${workspaceFolder}/classes"
},
{
"url": "http://localhost:3000/_nuxt/@fs/siavcom/desarrollo/desarrolloweb/Vue/web-ones-FERNANDO/pages/CRM/Mto/manCometap/bt_aceptar",
"path": "${workspaceFolder}/pages/CRM/Mto/manCometap/bt_aceptar.ts"
},
{
"url": "file:///siavcom/desarrollo/desarrolloweb/Vue/web-ones-FERNANDO/components",
"path": "${workspaceFolder}/components"
},
{
"url": "file:///siavcom/desarrollo/desarrolloweb/Vue/web-ones-FERNANDO/pages",
"path": "${workspaceFolder}/pages"
},
{
"url": "file:///siavcom/desarrollo/desarrolloweb/Vue/web-ones-FERNANDO/classes/DataBase",
"path": "${workspaceFolder}/classes/DataBase"
},
{
"url": "file:///siavcom/desarrollo/desarrolloweb/Vue/web-ones-FERNANDO/classes",
"path": "${workspaceFolder}/classes"
},
{
"url": "file:///siavcom/desarrollo/desarrolloweb/Vue/web-ones-FERNANDO/pages/CRM/Mto/manComepry/num_pry.ts",
"path": "${workspaceFolder}/pages/CRM/Mto/manComepry/num_pry.ts"
},
{
"url": "file:///siavcom/desarrollo/desarrolloweb/Vue/web-ones-FERNANDO/classes/reportForm/reportForm.ts",
"path": "${workspaceFolder}/classes/reportForm/reportForm.ts"
},
{
"url": "file:///siavcom/desarrollo/desarrolloweb/Vue/web-ones-FERNANDO/classes/CaptureForm.ts",
"path": "${workspaceFolder}/classes/CaptureForm.ts"
},
{
"url": "file://",
"path": "vscode-remote://ssh-remote%2Blocalhost"
}
npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm WARN deprecated npmlog@5.0.1: This package is no longer supported.
npm WARN deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm WARN deprecated are-we-there-yet@2.0.0: This package is no longer supported.
npm WARN deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm WARN deprecated gauge@3.0.2: This package is no longer supported.
https://michaelnthiessen.com/
===========================================
<div :collapse="isCollapsed">
https://masteringnuxt.com/blog/24-time-saving-tips-for-nuxt3
3. Use the built-in key-value storage
In Nuxt we can use a simple, but powerful, built-in key-value storage:
const storage = useStorage();
const key = `session:token`;
// Save the value
await storage.setItem(key, sessionToken);
// ...and retrieve it in a different API call
const token = await storage.getItem(key);
=================== Using asset directory ========
The ~/assets folder in Nuxt 3 is ideal for assets that need processing.
eg. images, stylesheets, icons, and fonts.
When you import an asset from this folder, the bundler processes the file, generates a new filename with a hash, and replaces the import with the new filename.
import image from '~/assets/image.png';
import style from '~/assets/style.css';
The ~/assets folder has the added benefit of catching missing assets during the build process.
If an asset is missing, you'll get a build error, which helps you maintain your app's integrity.
This won't happen with assets in the ~/public folder since they aren't processed.
// Importing from ~/assets will catch missing assets
import missingImage from '~/assets/missing-image.png'; // Build error
// Referencing from ~/public won't catch missing assets
// In your template: <img src="/missing-image.png" /> // No build error
// Using ~/assets
<script setup>
import image from '~/assets/image.png';
</script>
<template>
<img :src="image" />
</template>
// Using ~/public
<template>
<img src="/image.png" />
</template>
================ Modificadores de eventos click onFocuse lostFocues etc============
.stop - Stop the event’s propagation to other handlers
.prevent - Prevent default handling of the event (like a page reload for a form submission)
.self - Only fire events for this element, not children
.capture - Handle the event here before handling it at the child level
.once - Trigger this event once at most
.passive - Process the default behavior immediately, and also handle it here without blocking
const Valor=await toNumberStr(new_val)
if (Valor!=currentValue.value)
currentValue.value = Valor
=====================================
Form.vue
<div v-if="ThisForm.prop.Status=='I'" class="splash-screen">
<div class="spinner-wrapper">
<div class="spinner">
<div>{{ '.............Loading...................' }}</div>
</div>
</div>
</div>
<div :class="ThisForm.prop.Status=='I'?'disabled':'Main'">
use in nux-dev-tools fontaine
nuxt layers
https://vitest.dev/
https://github.com/module-federation/vite
https://roe.dev/blog/nuxt-server-components/
https://bun.sh/
Nitro Server
Nitro websockets API
utiliza sqllite nativamente con libreria db0
https://primevue.org/
npm install --save-dev nuxt-primevue
import InputMask from 'primevue/inputmask';
<InputMask id="basic" v-model="value" mask="99-999999" placeholder="99-999999" />
=========================================
vite-plugin-vsharp
VSharp - A Vite Plugin for Compressing Static Images with Sharp.js
https://jw-12138.github.io/vite-plugin-vsharp/
=====================================================
Sending Emails with Nuxt
https://stradoxcodes.hashnode.dev/sending-emails-with-nuxt
==========================================================
v-for igual for (let n=1;n<=5;n++)
<template>
<ul>
<li v-for="n in 5">Item #{{ n }}</li>
</ul>
</template>
This will render out:
Item #1
Item #2
Item #3
Item #4
Item #5
When we use v-for with a range, it will start at 1 and end on the specified number.
=============================================
para poner macrosubsituciones se utiliza
definePageMeta({
middleware: 'login' // esta en el direcorio middleware login
})
=================< Dragable components >==============
https://vueschool.io/lessons/sort-the-columns-with-vue-draggable?__s=rpcx0l9fszbbtatllfdn
=================< Carrusel >=====================================
https://vueschool.io/lessons/create-an-image-carousel-with-vueuse?__s=rpcx0l9fszbbtatllfdn
======================< Bar chart >======================
https://vueschool.io/lessons/vue-js-3-bar-charts?__s=rpcx0l9fszbbtatllfdn
====================< Open AI >===================================
https://vueschool.io/lessons/accept-messages-in-the-ai-endpoint?__s=rpcx0l9fszbbtatllfdn
====================< Alert dialogs >=========================
https://vueschool.io/lessons/headless-dialogs-with-useconfirmdialog?__s=rpcx0l9fszbbtatllfdn
===========================================
6. Whatâ€s the best way to handle client side form validation in Vue?
We think the FormKit library is a great option for this! Learn exactly how to implement it
in this lesson, plus check out the whole course to see all the other benefits of FormKit.
https://vueschool.io/lessons/how-to-validate-a-form-input?__s=rpcx0l9fszbbtatllfdn
========================< Pasando funciones a hijos >====================
Elemento padre que pasa la funcion parentMethod
Parent.vue
<template>
<ChildComponent :method="parentMethod" />
</template>
<script setup>
const parentMethod = (valueFromChild) => {
// Do something with the value
console.log('From the child:', valueFromChild);
}
</script>
Elemento hijo que usa la funcion pasada por el padre
Child.vue
import { ref, onMounted } from 'vue';
const props = defineProps({
method: {
type: Function,
}
});
const message = ref('A message from the child component');
onMounted(() => {
// Pass a value to the parent through the function
props.method(message.value);
});
//////////////////////////////
oJo
Radix Vue componentes
ui Nuxt component
https://ui.nuxt.com/