├── .gitignore
├── weappSnippet
├── .DS_Store
├── view.sublime-snippet
├── icon.sublime-snippet
├── checkbox.sublime-snippet
├── input_focus.sublime-snippet
├── input_auto_focus.sublime-snippet
├── progress.sublime-snippet
├── form.sublime-snippet
├── api_hide_keyboard.sublime-snippet
├── api_close_socket.sublime-snippet
├── api_pause_voice.sublime-snippet
├── api_stop_record.sublime-snippet
├── api_stop_voice.sublime-snippet
├── text.sublime-snippet
├── api_clear_storage.sublime-snippet
├── export.sublime-snippet
├── scroll_view.sublime-snippet
├── api_hide_navbar_loading.sublime-snippet
├── checkbox_group.sublime-snippet
├── radio.sublime-snippet
├── api_get_storage_sync.sublime-snippet
├── api_navigate_to.sublime-snippet
├── api_redirect_to.sublime-snippet
├── api_stop_background_audio.sublime-snippet
├── button.sublime-snippet
├── api_navigate_back.sublime-snippet
├── api_pause_background_audio.sublime-snippet
├── for.sublime-snippet
├── api_show_navbar_loading.sublime-snippet
├── switch.sublime-snippet
├── view_bind.sublime-snippet
├── view_if.sublime-snippet
├── api_on_socket_open.sublime-snippet
├── block_if.sublime-snippet
├── canvas.sublime-snippet
├── api_on_socket_close.sublime-snippet
├── api_on_socket_error.sublime-snippet
├── label.sublime-snippet
├── view_elif.sublime-snippet
├── view_else.sublime-snippet
├── api_on_socket_message.sublime-snippet
├── navigator.sublime-snippet
├── template.sublime-snippet
├── map.sublime-snippet
├── api_on_background_audio_play.sublime-snippet
├── api_on_background_audio_stop.sublime-snippet
├── image.sublime-snippet
├── api_on_background_audio_pause.sublime-snippet
├── api_clear_storage_sync.sublime-snippet
├── api_on_compass_change.sublime-snippet
├── api_set_storage_sync.sublime-snippet
├── slider.sublime-snippet
├── swiper.sublime-snippet
├── api_on_Accelerometer_change.sublime-snippet
├── api_get_network_type.sublime-snippet
├── radio_group.sublime-snippet
├── api_check_session.sublime-snippet
├── api_remove_storage.sublime-snippet
├── api_get_image_info.sublime-snippet
├── api_open_document.sublime-snippet
├── video.sublime-snippet
├── api_make_phone_call.sublime-snippet
├── api_remove_saved_file.sublime-snippet
├── api_get_storage.sublime-snippet
├── api_remove_storage_sync.sublime-snippet
├── api_get_saved_file_list.sublime-snippet
├── api_set_storage.sublime-snippet
├── api_start_record.sublime-snippet
├── app.sublime-snippet
├── textarea.sublime-snippet
├── api_login.sublime-snippet
├── api_set_navbar_title.sublime-snippet
├── api_seek_background_audio.sublime-snippet
├── api_send_socket_message.sublime-snippet
├── api_hide_toast.sublime-snippet
├── api_show_toast.sublime-snippet
├── api_preview_image.sublime-snippet
├── api_get_saved_file_info.sublime-snippet
├── api_get_storage_info.sublime-snippet
├── api_download_file.sublime-snippet
├── api_get_storage_info_sync.sublime-snippet
├── api_play_background_audio.sublime-snippet
├── api_connect_socket.sublime-snippet
├── api_save_file.sublime-snippet
├── api_play_voice.sublime-snippet
├── api_request.sublime-snippet
├── api_open_location.sublime-snippet
├── api_request_payment.sublime-snippet
├── input.sublime-snippet
├── api_get_location.sublime-snippet
├── api_upload_file.sublime-snippet
├── api_get_background_audio_player_state.sublime-snippet
├── api_show_modal.sublime-snippet
├── api_show_actionsheet.sublime-snippet
├── api_choose_location.sublime-snippet
├── api_choose_image.sublime-snippet
├── api_hide_modal.sublime-snippet
├── page.sublime-snippet
├── api_get_system_info.sublime-snippet
├── api_choose_video.sublime-snippet
└── api_get_user_info.sublime-snippet
├── LICENSE
└── README.md
/.gitignore:
--------------------------------------------------------------------------------
1 | *.swp
2 | .DS_Store
3 |
--------------------------------------------------------------------------------
/weappSnippet/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Abbotton/weapp-snippet-for-sublime-text-2-3/HEAD/weappSnippet/.DS_Store
--------------------------------------------------------------------------------
/weappSnippet/view.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 | ${1}
4 | ]]>
5 | wview
6 |
7 |
8 |
--------------------------------------------------------------------------------
/weappSnippet/icon.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
4 | ]]>
5 | wicon
6 |
7 |
8 |
--------------------------------------------------------------------------------
/weappSnippet/checkbox.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 | ${3}
4 | ]]>
5 | wcheckbox
6 |
7 |
8 |
--------------------------------------------------------------------------------
/weappSnippet/input_focus.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
4 | ]]>
5 | winputfocus
6 |
7 |
8 |
--------------------------------------------------------------------------------
/weappSnippet/input_auto_focus.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
4 | ${2}
5 | ]]>
6 | winputautofocus
7 |
8 |
9 |
--------------------------------------------------------------------------------
/weappSnippet/progress.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
4 | ]]>
5 | wprogress
6 |
7 |
8 |
--------------------------------------------------------------------------------
/weappSnippet/form.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
4 | ${5}
5 |
6 | ]]>
7 | wform
8 |
9 |
10 |
--------------------------------------------------------------------------------
/weappSnippet/api_hide_keyboard.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | apihidekeyboard
7 |
8 |
9 |
--------------------------------------------------------------------------------
/weappSnippet/api_close_socket.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | apicloseskt
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/weappSnippet/api_pause_voice.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | apipausevoice
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/weappSnippet/api_stop_record.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | apistoprecord
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/weappSnippet/api_stop_voice.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | apistopvoice
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/weappSnippet/text.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 | {{ ${1} }}
4 | ]]>
5 |
6 | wtext
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/weappSnippet/api_clear_storage.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | apiclearstorage
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/weappSnippet/export.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 | {{ ${1} }}
4 | ]]>
5 |
6 | wexport
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/weappSnippet/scroll_view.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
4 | ${6}
5 |
6 | ]]>
7 | wscrollview
8 |
9 |
10 |
--------------------------------------------------------------------------------
/weappSnippet/api_hide_navbar_loading.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | apihidenavbarloading
7 |
8 |
9 |
--------------------------------------------------------------------------------
/weappSnippet/checkbox_group.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
4 |
7 |
8 | ]]>
9 | wcheckboxgroup
10 |
11 |
12 |
--------------------------------------------------------------------------------
/weappSnippet/radio.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 | ${3}
4 | ]]>
5 |
6 | wradio
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/weappSnippet/api_get_storage_sync.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | apigetstoragesync
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/weappSnippet/api_navigate_to.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | apinavigateto
9 |
10 |
11 |
--------------------------------------------------------------------------------
/weappSnippet/api_redirect_to.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | apiredirectto
9 |
10 |
11 |
--------------------------------------------------------------------------------
/weappSnippet/api_stop_background_audio.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | apistopbgaudio
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/weappSnippet/button.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 | ${10}
4 | ]]>
5 | wbutton
6 |
7 |
8 |
--------------------------------------------------------------------------------
/weappSnippet/api_navigate_back.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | apinavigateback
9 |
10 |
11 |
--------------------------------------------------------------------------------
/weappSnippet/api_pause_background_audio.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | apipausebgaudio
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/weappSnippet/for.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 | {{ ${2} }}
4 | ]]>
5 |
6 | wfor
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/weappSnippet/api_show_navbar_loading.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | apishownavbarloading
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/weappSnippet/switch.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
4 | ]]>
5 |
6 | wslider
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/weappSnippet/view_bind.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
4 | ${2}
5 |
6 | ]]>
7 |
8 | wviewbind
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/weappSnippet/view_if.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
4 | ${2}
5 |
6 | ]]>
7 |
8 | wviewif
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/weappSnippet/api_on_socket_open.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | apionsktopen
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/weappSnippet/block_if.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
4 | ${2}
5 |
6 | ]]>
7 |
8 | wblockif
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/weappSnippet/canvas.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
4 | ]]>
5 |
6 | wcanvas
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/weappSnippet/api_on_socket_close.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | apionsktclose
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/weappSnippet/api_on_socket_error.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | apionskterr
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/weappSnippet/label.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
4 | ${4}
5 |
6 | ]]>
7 |
8 | wlabel
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/weappSnippet/view_elif.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
4 | ${2}
5 |
6 | ]]>
7 |
8 | wviewelif
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/weappSnippet/view_else.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
4 | ${2}
5 |
6 | ]]>
7 |
8 | wviewelse
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/weappSnippet/api_on_socket_message.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | apionsktmsg
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/weappSnippet/navigator.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 | ${4}
4 | ]]>
5 |
6 | wnavigator
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/weappSnippet/template.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
4 | ${3}
5 |
6 | ]]>
7 |
8 | wtemplate
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/weappSnippet/map.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
4 | ]]>
5 |
6 | wmap
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/weappSnippet/api_on_background_audio_play.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | apionbgaudioplay
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/weappSnippet/api_on_background_audio_stop.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | apionbgaudiostop
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/weappSnippet/image.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
4 | ]]>
5 |
6 | wimage
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/weappSnippet/api_on_background_audio_pause.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | apionbgaudiopause
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/weappSnippet/api_clear_storage_sync.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 | apiclearstoragesync
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/weappSnippet/api_on_compass_change.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | apicompasschange
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/weappSnippet/api_set_storage_sync.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 | apisetstoragesync
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/weappSnippet/slider.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
4 | ]]>
5 |
6 | wslider
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/weappSnippet/swiper.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | ]]>
11 | wswiper
12 |
13 |
14 |
--------------------------------------------------------------------------------
/weappSnippet/api_on_Accelerometer_change.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 | apiaccelerometerchange
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/weappSnippet/api_get_network_type.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 | apigetnetworktype
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/weappSnippet/radio_group.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
4 |
7 |
8 | ]]>
9 |
10 | wradiogroup
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/weappSnippet/api_check_session.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 | apichecksession
17 |
18 |
19 |
--------------------------------------------------------------------------------
/weappSnippet/api_remove_storage.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 | apirmstorage
18 |
19 |
20 |
--------------------------------------------------------------------------------
/weappSnippet/api_get_image_info.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 | apigetimginfo
18 |
19 |
20 |
--------------------------------------------------------------------------------
/weappSnippet/api_open_document.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 | apiopendoc
18 |
19 |
20 |
--------------------------------------------------------------------------------
/weappSnippet/video.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
4 | ]]>
5 |
6 | wvideo
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/weappSnippet/api_make_phone_call.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 | apiphonecall
18 |
19 |
20 |
--------------------------------------------------------------------------------
/weappSnippet/api_remove_saved_file.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 | apirmfile
18 |
19 |
20 |
--------------------------------------------------------------------------------
/weappSnippet/api_get_storage.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 | apigetstorage
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/weappSnippet/api_remove_storage_sync.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 | apirmstoragesync
18 |
19 |
20 |
--------------------------------------------------------------------------------
/weappSnippet/api_get_saved_file_list.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 | apigetsavedfilelist
18 |
19 |
20 |
--------------------------------------------------------------------------------
/weappSnippet/api_set_storage.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 | apisetstorage
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/weappSnippet/api_start_record.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 | apistartrecord
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/weappSnippet/app.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 | wapp
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/weappSnippet/textarea.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
4 | ]]>
5 |
6 | wtextarea
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/weappSnippet/api_login.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 | apilogin
19 |
20 |
21 |
--------------------------------------------------------------------------------
/weappSnippet/api_set_navbar_title.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 | apisetnavbartitle
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/weappSnippet/api_seek_background_audio.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 | apiseekbgaudio
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/weappSnippet/api_send_socket_message.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 | apisendsktmsg
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/weappSnippet/api_hide_toast.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 | apihidetoast
20 |
21 |
22 |
--------------------------------------------------------------------------------
/weappSnippet/api_show_toast.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 | apishowtoast
20 |
21 |
22 |
--------------------------------------------------------------------------------
/weappSnippet/api_preview_image.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 | apipreviewimg
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/weappSnippet/api_get_saved_file_info.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 | apigetsavedfileinfo
20 |
21 |
22 |
--------------------------------------------------------------------------------
/weappSnippet/api_get_storage_info.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 | apigetstorageinfo
20 |
21 |
22 |
--------------------------------------------------------------------------------
/weappSnippet/api_download_file.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
23 |
24 | apidownloadfile
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/weappSnippet/api_get_storage_info_sync.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 | apigetstorageinfosync
20 |
21 |
22 |
--------------------------------------------------------------------------------
/weappSnippet/api_play_background_audio.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 | apiplaybgaudio
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/weappSnippet/api_connect_socket.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
25 |
26 | apiconnskt
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/weappSnippet/api_save_file.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 | apisavefile
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/weappSnippet/api_play_voice.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 | apiplayvoice
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/weappSnippet/api_request.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
23 |
24 | apirequest
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/weappSnippet/api_open_location.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
22 |
23 | apiopenlocation
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/weappSnippet/api_request_payment.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 | apipayment
22 |
23 |
24 |
--------------------------------------------------------------------------------
/weappSnippet/input.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
4 | ${17}
5 | ]]>
6 |
7 | winput
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/weappSnippet/api_get_location.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 | apigetlocation
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/weappSnippet/api_upload_file.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
28 |
29 | apiuploadfile
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/weappSnippet/api_get_background_audio_player_state.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
14 |
15 | apigetbgaudioplayerstate
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/weappSnippet/api_show_modal.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
22 |
23 | apishowmodal
24 |
25 |
26 |
--------------------------------------------------------------------------------
/weappSnippet/api_show_actionsheet.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
22 |
23 | apishowactionsheet
24 |
25 |
26 |
--------------------------------------------------------------------------------
/weappSnippet/api_choose_location.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
22 |
23 | apichooselocation
24 |
25 |
26 |
--------------------------------------------------------------------------------
/weappSnippet/api_choose_image.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 | apichooseimg
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/weappSnippet/api_hide_modal.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
23 |
24 | apihidemodal
25 |
26 |
27 |
--------------------------------------------------------------------------------
/weappSnippet/page.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
30 |
31 | wpage
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/weappSnippet/api_get_system_info.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 | apigetsysinfo
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/weappSnippet/api_choose_video.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
22 |
23 | apichoosevideo
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/weappSnippet/api_get_user_info.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
23 |
24 | apigetuserinfo
25 |
26 |
27 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2016 Abbotton
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | 为 sublime text 2&3 准备的微信应用号/小程序 snippet,方便大家使用
2 | -----
3 | ### 本项目停止更新
4 |
5 | 非常感谢各位的支持与厚爱,这个项目从2016年11月15日之后再未进行过维护,一方面是自己比较忙,再一方面是因为我一直不太看好小程序的发展,在这里向各位说声对不起.鉴于微信开发者工具功能日趋强大和完善,本项目已经没有继续维护下去的必要了.所有的isuse我将会关闭.如果您确实希望使用sublime text进行微信小程序的开发,请还请fork本项目之后自行扩展.
6 |
7 | ### 简介
8 |
9 | 微信小程序在线配置工具已经上线了,欢迎各位小伙伴前往试用,[传送门](https://weapptool.com)
10 |
11 | 刚接触微信小程序开发,尝试着使用了一下微信开发调试工具 v0.9版的代码编辑功能,感觉好鸡肋有木有!?于是果断回到 ST.但是,ST 不认微信"发明"出来的这个WXML,这个WXML 可以说是 html 和 xml 的变异结合体.
12 |
13 | 不过还好ST有自定义 snippet 的功能,于是我就动手把 WXML 里的组件和部分其他内容都整成了 snippet 分享出来方便大家使用,提升大家的开发效率.
14 |
15 | 废话不多说,开撸~
16 |
17 | ### 安装部署
18 |
19 | 将下载好的代码片段放入 Sublime text安装目录/Packages/User 目录中即可.
20 |
21 | ### 更新日志:
22 |
23 | #### 2016-11-15:
24 |
25 | > 修复一处拼写错误([#6](https://github.com/Abbotton/weapp-snippet-for-sublime-text-2-3/issues/6))
26 | > 更新README.md文件
27 |
28 | #### 2016-10-29:
29 |
30 | > 新增17个微信公众号小程序 API Snippet
31 | > 新增1个微信公众号小程序组件 textarea Sinppet
32 | > 移除即将废弃的`、、、`4个组件。
33 | > 添加api_navigator、page、video Snippet中新增的属性
34 |
35 | #### 2016-09-29:
36 |
37 | > 新增49个微信公众号小程序 API Snippet
38 | > 修改 README.md 语法错误
39 |
40 |
41 |
42 | ### snippet 列表
43 |
44 | 为了防止和其他 snippet 冲突,本 snippet 中的所有WXML 标签触发命令都以'w'开头,所有 API相关命令都以'api'开头.
45 |
46 | #### WXML snippet
47 |
48 | | 命令 | 对应组件或命令 |
49 | | -----|----:|
50 | | wapp | [注册小程序](https://mp.weixin.qq.com/debug/wxadoc/dev/framework/app-service/app.html) |
51 | | wblockif | [block wx:if](https://mp.weixin.qq.com/debug/wxadoc/dev/framework/view/wxml/conditional.html) |
52 | | wbutton | [button](https://mp.weixin.qq.com/debug/wxadoc/dev/component/button.html) |
53 | | wcheckbox | [checkbox][2] |
54 | | wcheckboxgroup | [checkbox-group][2] |
55 | | ~~wactionsheet~~ | [~~action-sheet~~](https://mp.weixin.qq.com/debug/wxadoc/dev/component/action-sheet.html) |
56 | | wcanvas | [canvas](https://mp.weixin.qq.com/debug/wxadoc/dev/component/canvas.html#canvas) |
57 | | wimage |[image](https://mp.weixin.qq.com/debug/wxadoc/dev/component/image.html)|
58 | | wtext | [text](https://mp.weixin.qq.com/debug/wxadoc/dev/component/text.html) |
59 | | wview | [view][4] |
60 | | wviewbind | [view 事件](https://mp.weixin.qq.com/debug/wxadoc/dev/framework/view/wxml/event.html) |
61 | | wmap | [map](https://mp.weixin.qq.com/debug/wxadoc/dev/component/map.html)|
62 | | ~~wmodal~~ | [~~modal~~](https://mp.weixin.qq.com/debug/wxadoc/dev/component/modal.html)|
63 | | wnavigator |[navigator](https://mp.weixin.qq.com/debug/wxadoc/dev/component/navigator.html)|
64 | | wexport | [模块化](https://mp.weixin.qq.com/debug/wxadoc/dev/framework/app-service/module.html)|
65 | | wfor | [for](https://mp.weixin.qq.com/debug/wxadoc/dev/view/wxml/data.html) |
66 | | wform |[form](https://mp.weixin.qq.com/debug/wxadoc/dev/component/form.html)|
67 | | wradio|[radio][5]|
68 | | wradiogroup|[radio-group][5]|
69 | | wslider|[slider](https://mp.weixin.qq.com/debug/wxadoc/dev/component/slider.html)|
70 | | wicon|[icon](https://mp.weixin.qq.com/debug/wxadoc/dev/component/icon.html)|
71 | | winput|[input][3]|
72 | | wtextarea|[textarea](https://mp.weixin.qq.com/debug/wxadoc/dev/component/textarea.html)|
73 | | winfutautofocus|[input][3]|
74 | | ~~wtoast~~|[~~toast~~](https://mp.weixin.qq.com/debug/wxadoc/dev/component/toast.html)|
75 | | wvideo|[video](https://mp.weixin.qq.com/debug/wxadoc/dev/component/video.html)|
76 | | winputfocus|[input][3]|
77 | | wlabel|[label](https://mp.weixin.qq.com/debug/wxadoc/dev/component/label.html)|
78 | | ~~wloading~~|[~~loading~~](https://mp.weixin.qq.com/debug/wxadoc/dev/component/loading.html)|
79 | | wpage|[Page()](https://mp.weixin.qq.com/debug/wxadoc/dev/framework/app-service/page.html)|
80 | | wprogress|[progress](https://mp.weixin.qq.com/debug/wxadoc/dev/component/progress.html)|
81 | | wscrollview|[scroll-view](https://mp.weixin.qq.com/debug/wxadoc/dev/component/scroll-view.html)|
82 | | wswitch|[switch](https://mp.weixin.qq.com/debug/wxadoc/dev/component/switch.html)|
83 | | wtemplate|[template](https://mp.weixin.qq.com/debug/wxadoc/dev/framework/view/wxml/template.html)|
84 | | wswiper|[swiper](https://mp.weixin.qq.com/debug/wxadoc/dev/component/swiper.html)|
85 | | wviewelif|[view][4]|
86 | | wviewelse|[view][4]|
87 | | wviewif|[view][4]|
88 |
89 |
90 | #### 小程序API snippet
91 |
92 | | 命令 | 对应组件或命令 |
93 | | -----|----:|
94 | | apirequest| [网络请求](https://mp.weixin.qq.com/debug/wxadoc/dev/api/network-request.html) |
95 | | apiuploadfile| [上传文件][15] |
96 | | apidownloadfile| [下载文件][15] |
97 | | apiconnskt| [创建 WebSocket 链接][14] |
98 | | apionsktopen| [监听WebSocket连接打开][14] |
99 | | apionskterr| [监听WebSocket错误][14] |
100 | | apisendsktmsg| [使用 WebSocket发送数据][14] |
101 | | apionsktmsg| [接受消息推送][14] |
102 | | apicloseskt| [关闭WebSocket连接][14] |
103 | | apionsktclose| [监听WebSocket关闭][14] |
104 | | apichooseimg| [选额图片][13] |
105 | | apipreviewimg| [预览图片][13] |
106 | | apigetimginfo| [获取图片信息][13] |
107 | | apistartrecord| [开始录音][12] |
108 | | apistoprecord| [结束录音][12] |
109 | | apiplayvoice| [播放语音][1] |
110 | | apipausevoice| [暂停播放语音][1] |
111 | | apistopvoice| [结束播放语音][1] |
112 | | apigetbgaudioplayerstate| [获取音乐播放状态][6] |
113 | | apiplaybgaudio| [播放音乐][6] |
114 | | apipausebgaudio| [播放暂停音乐][6] |
115 | | apiseekbgaudio| [控制音乐播放进度][6] |
116 | | apistopbgaudio| [停止播放音乐][6] |
117 | | apionbgaudioplay| [监听音乐播放][6] |
118 | | apionbgaudiopause| [监听音乐暂停][6] |
119 | | apionbgaudiostop| [监听音乐停止][6] |
120 | | apisavefile| [保存文件][16] |
121 | | apigetsavedfilelist | [查看保存文件列表][16] |
122 | | apigetsavedfileinfo| [查看保存文件信息][16] |
123 | | apirmfile| [删除缓存文件][16] |
124 | | apiopendoc| [新开页面打开文档][16] |
125 | | apichoosevideo| [视频](https://mp.weixin.qq.com/debug/wxadoc/dev/api/media-video.html) |
126 | | apisetstorage| [覆盖本地内容][7] |
127 | | apisetstoragesync| [同步覆盖本地内容][7] |
128 | | apigetstorage| [获取指定 key 对应的内容][7] |
129 | | apigetstoragesync| [同步获取指定 key 对应的内容][7] |
130 | | apiclearstorage| [清理本地数据][7] |
131 | | apiclearstoragesync| [同步清理本地数据][7]|
132 | | apirmstorage| [删除本地数据][7]|
133 | | apirmstoragesync| [同步删除本地数据][7]|
134 | | apigetstorageinfo| [获取本地数据信息][7]|
135 | | apigetstorageinfosync| [同步获取本地数据信息][7]|
136 | | apigetlocation| [获取位置][8] |
137 | | apiopenlocation| [查看位置][8] |
138 | | apichooselocation| [打开地图选择位置][8] |
139 | | apigetnetworktype| [网络状态][9] |
140 | | apigetsysinfo| [系统消息][9] |
141 | | apiaccelerometerchange| [重力感应][9] |
142 | | apicompasschange| [罗盘][9] |
143 | | apisetnavbartitle| [动态设置导航条文字][10] |
144 | | apishownavbarloading| [显示导航条加载动画][10] |
145 | | apihidenavbarloading| [隐藏导航条加载动画][10] |
146 | | apihidekeyboard| [收起键盘](https://mp.weixin.qq.com/debug/wxadoc/dev/api/ui-other.html) |
147 | | apinavigateto| [保留当前页面并跳转][11] |
148 | | apiredirectto| [关闭当前页面并跳转][11] |
149 | | apinavigateback| [返回上一个页面][11] |
150 | | apilogin| [登录][19] |
151 | | apichecksession| [检测session][19] |
152 | | apigetuserinfo| [用户信息](https://mp.weixin.qq.com/debug/wxadoc/dev/api/open.html) |
153 | | apipayment| [微信支付](https://mp.weixin.qq.com/debug/wxadoc/dev/api/api-pay.html) |
154 | | apishowtoast| [交互反馈][17] |
155 | | apihidetoast| [交互反馈][17] |
156 | | apishowmodal| [交互反馈][17] |
157 | | apihidemodal| [交互反馈][17] |
158 | | apishowactionsheet| [交互反馈][17] |
159 | | getSystemInfoSync| [同步获取系统信息][18] |
160 | | apiphonecall| [拨打电话][18] |
161 |
162 | [1]: https://mp.weixin.qq.com/debug/wxadoc/dev/api/media-voice.html "语音"
163 | [2]: https://mp.weixin.qq.com/debug/wxadoc/dev/component/checkbox.html "多选"
164 | [3]: https://mp.weixin.qq.com/debug/wxadoc/dev/component/input.html "文本框"
165 | [4]: https://mp.weixin.qq.com/debug/wxadoc/dev/component/view.html "视图"
166 | [5]: https://mp.weixin.qq.com/debug/wxadoc/dev/component/view.html "单选"
167 | [6]: https://mp.weixin.qq.com/debug/wxadoc/dev/api/media-background-audio.html "音乐播放控制"
168 | [7]: https://mp.weixin.qq.com/debug/wxadoc/dev/api/data.html "本地数据"
169 | [8]: https://mp.weixin.qq.com/debug/wxadoc/dev/api/location.html "地理位置"
170 | [9]: https://mp.weixin.qq.com/debug/wxadoc/dev/api/device.html "设备信息"
171 | [10]: https://mp.weixin.qq.com/debug/wxadoc/dev/api/ui.html "导航条动画"
172 | [11]: https://mp.weixin.qq.com/debug/wxadoc/dev/api/ui-navigate.html "跳转"
173 | [12]: https://mp.weixin.qq.com/debug/wxadoc/dev/api/media-record.html "录音"
174 | [13]: https://mp.weixin.qq.com/debug/wxadoc/dev/api/media-picture.html "预览选择图片"
175 | [14]: https://mp.weixin.qq.com/debug/wxadoc/dev/api/network-socket.html "socket"
176 | [15]: https://mp.weixin.qq.com/debug/wxadoc/dev/api/network-file.html "上传下载文件"
177 | [16]: https://mp.weixin.qq.com/debug/wxadoc/dev/api/file.html "文件"
178 | [17]: https://mp.weixin.qq.com/debug/wxadoc/dev/api/api-react.html "交互反馈"
179 | [18]: https://mp.weixin.qq.com/debug/wxadoc/dev/api/device.html "设备信息"
180 | [19]: https://mp.weixin.qq.com/debug/wxadoc/dev/api/api-login.html "登录"
181 |
182 | ### 未添加的 snippet 列表
183 |
184 | [动画](https://mp.weixin.qq.com/debug/wxadoc/dev/api/api-animation.html).
185 | [绘图](https://mp.weixin.qq.com/debug/wxadoc/dev/api/api-canvas.html).
186 | [模板消息](https://mp.weixin.qq.com/debug/wxadoc/dev/api/notice.html).
187 | [同步获取系统信息](https://mp.weixin.qq.com/debug/wxadoc/dev/api/device.html)
188 | [把当前画布的内容导出生成图片](https://mp.weixin.qq.com/debug/wxadoc/dev/api/api-canvas.html#wxcanvastotempfilepathobject)
189 | [音频组件控制](https://mp.weixin.qq.com/debug/wxadoc/dev/api/api-audio.html)
190 | [视频组件控制](https://mp.weixin.qq.com/debug/wxadoc/dev/api/api-video.html)
191 |
192 | ### enjoy && give me a star. ;-D
193 |
--------------------------------------------------------------------------------