-
Notifications
You must be signed in to change notification settings - Fork 16
/
mol.code-snippets
99 lines (99 loc) · 2.45 KB
/
mol.code-snippets
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
{
// Place your mam workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
// "Print to console": {
// "scope": "javascript,typescript",
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
"MAM class definition": {
"scope": "javascript,typescript",
"prefix": "class",
"body": [
"namespace $ {",
"\texport class $$1 extends $2 {",
"\t\t",
"\t\t$0",
"\t\t",
"\t}",
"}"
]
},
"$mol_view extend": {
"scope": "javascript,typescript",
"prefix": "logic",
"body": [
"namespace $.$$ {",
"\texport class \\$$1 extends $.$$1 {",
"\t\t",
"\t\t$0",
"\t\t",
"\t}",
"}"
],
"description": "Extend wih logic"
},
"$mol_style_define": {
"scope": "javascript,typescript",
"prefix": "styles",
"body": [
"namespace $.$$ {",
"\t",
"\t\\$mol_style_define( \\$$1, {",
"\t\t",
"\t\t$0",
"\t\t",
"\t} )",
"\t",
"}"
],
"description": "$mol_test defs"
},
"$mol_test defs": {
"scope": "javascript,typescript",
"prefix": "tests",
"body": [
"namespace $.$$ {",
"\t\\$mol_test({",
"\t\t",
"\t\t\"$1\"( $ ) {",
"\t\t\t$0",
"\t\t},",
"\t\t",
"\t})",
"}"
],
"description": "$mol_test defs"
},
"$mol_view entry": {
"scope": "html",
"prefix": "html",
"body": [
"<!doctype html>",
"<html mol_view_root>",
" <head>",
" <meta charset='utf-8' />",
" <title>$1</title>",
" <meta name='viewport' content='width=device-width, height=device-height, initial-scale=1'>",
" <!--<link href='/logo/logo.svg' rel='icon' />-->",
" <meta name='mobile-web-app-capable' content='yes'>",
" <meta name='apple-mobile-web-app-capable' content='yes'>",
" </head>",
" <body mol_view_root>",
" <div mol_view_root='$2'></div>",
" <script src='web.js' charset='utf-8'></script>",
" </body>",
"</html>",
],
"description": "$mol_view entry"
}
}