-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
slim.json
304 lines (304 loc) · 8.05 KB
/
slim.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
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
{
"javascript_include_tag": {
"prefix": "javascript",
"body": [
"= javascript_include_tag \"$1\" "
],
"description": "rails javascript_include_tag"
},
"javascript_pack_tag": {
"prefix": "javascript_pack",
"body": [
"= javascript_pack_tag \"$1\" "
],
"description": "rails webpacker javascript_pack_tag"
},
"stylesheet_link_tag": {
"prefix": "stylesheet",
"body": [
"= stylesheet_link_tag \"$1\" "
],
"description": "rails stylesheet_link_tag"
},
"stylesheet_pack_tag": {
"prefix": "stylesheet_pack",
"body": [
"= stylesheet_pack_tag \"$1\" "
],
"description": "rails webpacker stylesheet_pack_tag"
},
"asset_pack_path": {
"prefix": "asset_pack",
"body": [
"= asset_pack_path '$1' "
],
"description": "rails webpacker asset_pack_path"
},
"asset_path": {
"prefix": "asset_path",
"body": [
"= asset_path('$1' $2) "
],
"description": "rails asset_path"
},
"raw": {
"prefix": "raw",
"body": [
"= raw $1 "
],
"description": "rails raw"
},
"sanitize": {
"prefix": "sanitize",
"body": [
"= sanitize $1 "
],
"description": "rails sanitize"
},
"link_to": {
"prefix": "link_to",
"body": [
"= link_to \"${1:text}\", ${2:model} "
],
"description": "rails link_to"
},
"image_tag": {
"prefix": "image_tag",
"body": [
"= image_tag \"${1:filename_with_extension}\" "
],
"description": "rails image_tag"
},
"video_tag": {
"prefix": "video_tag",
"body": [
"= image_tag \"${1:filename_with_extension}\" "
],
"description": "rails video_tag"
},
"render": {
"prefix": "render",
"body": [
"= render \"${1:path}\" "
],
"description": "rails render"
},
"partial": {
"prefix": "partial",
"body": [
"= render partial: \"${1:path}\" "
],
"description": "rails render partial"
},
"audio_tag": {
"prefix": "audio_tag",
"body": [
"= image_tag \"${1:filename_with_extension}\" "
],
"description": "rails audio_tag"
},
"auto_discovery_link_tag": {
"prefix": "auto_discovery",
"body": [
"= auto_discovery_link_tag (${1|:rss,:atom},{action: \"${2:action}\"},{title: \"${3:title}\"}) "
],
"description": "rails auto_discovery_link_tag"
},
"button_to": {
"prefix": "button_to",
"body": [
"= button_to \"${1:text}\", ${2:model} "
],
"description": "rails button_to"
},
"check_box_tag": {
"prefix": "check_box",
"body": [
"= check_box_tag (:${1:id_name}) "
],
"description": "rails check_box_tag"
},
"text_field_tag": {
"prefix": "text_field",
"body": [
"= text_field_tag (:${1:id_name}) "
],
"description": "rails text_field_tag"
},
"label_tag": {
"prefix": "label_tag",
"body": [
"= label_tag (:${1:for}, \"${2:text}\") "
],
"description": "rails label_tag"
},
"radio_button_tag": {
"prefix": "radio_button",
"body": [
"= radio_button_tag (:${1:name}, \"${2:value}\") "
],
"description": "rails radio_button_tag,id will be ${name}_${value}"
},
"text_area_tag": {
"prefix": "text_area",
"body": [
"= text_area_tag (:${1:id_name}, \"${2:content}\"), size: \"${3:colsxrols}\" "
],
"description": "rails text_area_tag"
},
"password_field_tag": {
"prefix": "password_field",
"body": [
"= password_field_tag (:${1:id_name}) "
],
"description": "rails password_field_tag"
},
"search_field": {
"prefix": "search_field",
"body": [
"= search_field (:${1:id_name}) "
],
"description": "rails search_field"
},
"telephone_field": {
"prefix": "telephone_field",
"body": [
"= telephone_field (:${1:id_name}) "
],
"description": "rails telephone_field"
},
"date_field": {
"prefix": "date_field",
"body": [
"= date_field (:${1:id_name}) "
],
"description": "rails date_field"
},
"datetime_local_field": {
"prefix": "datetime_local_field",
"body": [
"= datetime_local_field (:${1:id_name}) "
],
"description": "rails datetime_local_field"
},
"month_field": {
"prefix": "month_field",
"body": [
"= month_field (:${1:id_name}) "
],
"description": "rails month_field"
},
"week_field": {
"prefix": "week_field",
"body": [
"= week_field (:${1:id_name}) "
],
"description": "rails datetime_local_field"
},
"url_field": {
"prefix": "url_field",
"body": [
"= url_field (:${1:id_name}) "
],
"description": "rails url_field"
},
"email_field": {
"prefix": "email_field",
"body": [
"= email_field (:${1:id_name}) "
],
"description": "rails email_field"
},
"color_field": {
"prefix": "color_field",
"body": [
"= color_field (:${1:id_name}) "
],
"description": "rails color_field"
},
"time_field": {
"prefix": "time_field",
"body": [
"= time_field (:${1:id_name}) "
],
"description": "rails time_field"
},
"number_field": {
"prefix": "number_field",
"body": [
"= number_field (:${1:id_name}, in: ${2:1.0..20.0}, step: ${3:0.5}) "
],
"description": "rails number_field"
},
"range_field": {
"prefix": "range_field",
"body": [
"= range_field (:${1:id_name}, in: ${2:1..100}) "
],
"description": "rails range_field"
},
"select_tag": {
"prefix": "select_tag",
"body": [
"= select_tag (:${1:id_name}, options_for_select(${2:options})) "
],
"description": "rails select_tag,options example:[['Lisbon', 1], ['Madrid', 2], ...], 2"
},
"options_for_select": {
"prefix": "options_for_select",
"body": [
"= options_for_select(${1:options})) "
],
"description": "rails options_for_select,options example:[['Lisbon', 1], ['Madrid', 2], ...], 2"
},
"time_zone_select": {
"prefix": "time_zone_select",
"body": [
"= time_zone_select (:${1:id_name}) "
],
"description": "rails time_zone_select"
},
"hidden_field_tag": {
"prefix": "hidden_field",
"body": [
"= hidden_field_tag (:${1:id_name}, \"${2:value}\") "
],
"description": "rails hidden_field_tag"
},
"content_for": {
"prefix": "content_for",
"body": [
"= content_for :$1 do ",
" $2",
"\n"
],
"description": "rails content_for"
},
"content_for?": {
"prefix": "content_for?",
"body": [
"- if content_for?(:$1)",
" =yield (:$1)",
"\n"
],
"description": "rails content_for?"
},
"form_for": {
"prefix": "form_for",
"body": [
"= form_for( ${1:variable} , remote: ${2:true}) do |f| ",
" $2",
"\n"
],
"description": "rails form_for"
},
"form_tag": {
"prefix": "form_tag",
"body": [
"= form_tag( '${1:path}' , remote: ${2:true}) do |f| ",
" $2",
"\n"
],
"description": "rails form_tag"
}
}