-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.json
97 lines (92 loc) · 1.75 KB
/
vue.json
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
{
"if status": {
"prefix": "ifstatus 🌌",
"body": [
"if(r.data.code== 200){",
" swal.fire(r.data.msg,'$1', \"success\")",
"}else if(r.data.code== 406){",
" swal.fire(r.data.msg,'$2', \"warning\")",
"}else{",
" swal.fire(\"Fallo en el sevidor!\",'error', \"error\")",
"}",
],
"description": "NelsonDJCR 🐉"
},
"Axios 💻": {
"prefix": "axios.post 🌌",
"body": [
"axios.post(`/$1`, this.$2).then((r) => {",
" $3",
"});"
],
"description": "NelsonDJCR 🐉"
},
"alert 💻": {
"prefix": "alert 🌌",
"body": [
"alert($1)"
],
"description": "NelsonDJCR 🐉"
},
"console 💻": {
"prefix": "log 🌌",
"body": [
"console.log($1)"
],
"description": "NelsonDJCR 🐉"
},
"Axios get 💻": {
"prefix": "axios.get 🌌",
"body": [
"axios.get(`/$1`).then((r) => {",
" $3",
"});"
],
"description": "NelsonDJCR 🐉"
},
"Function 💻": {
"prefix": "vfun 🌌",
"body": [
"$1($id){",
" $3",
"},"
],
"description": "NelsonDJCR 🐉"
},
// SweetAlert2
"SweetAlert 💻": {
"prefix": "sw.success 🌌",
"body": [
"Swal.fire('¡$1!','$2','success')"
],
"description": "NelsonDJCR 🐉"
},
"SweetAlert error 💻": {
"prefix": "sw.error 🌌",
"body": [
"Swal.fire('¡$1!','$2','error')"
],
"description": "NelsonDJCR 🐉"
},
"SweetAlert warning 💻": {
"prefix": "sw.warning 🌌",
"body": [
"Swal.fire('¡$1!','$2','warning')"
],
"description": "NelsonDJCR 🐉"
},
"RedirecSweet 💻": {
"prefix": ".then 🌌",
"body": [
".then(function(){ window.location = '$1'; });",
],
"description": "NelsonDJCR 🐉"
},
".find 💻": {
"prefix": ".find 🌌",
"body": [
".find($1)",
],
"description": "NelsonDJCR 🐉"
},
}