create-young-proj 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.editorconfig +14 -0
- package/.vscode/settings.json +39 -0
- package/CHANGELOG.md +260 -0
- package/README.md +7 -3
- package/build.config.ts +22 -0
- package/eslint.config.js +35 -0
- package/package.json +1 -7
- package/src/index.ts +366 -0
- package/template-admin-server/.editorconfig +11 -0
- package/template-admin-server/.nvmrc +1 -0
- package/template-admin-server/.vscode/extensions.json +6 -0
- package/template-admin-server/.vscode/settings.json +4 -0
- package/template-admin-server/_gitignore +15 -0
- package/template-admin-server/_nvmrc +1 -0
- package/template-admin-server/boot.mjs +11 -0
- package/template-admin-server/package.json +60 -0
- package/template-admin-server/rome.json +22 -0
- package/template-admin-server/src/config/config.default.ts +56 -0
- package/template-admin-server/src/configuration.ts +47 -0
- package/template-admin-server/src/controller/admin.controller.ts +397 -0
- package/template-admin-server/src/controller/api.controller.ts +98 -0
- package/template-admin-server/src/controller/base.controller.ts +70 -0
- package/template-admin-server/src/controller/dto/api.ts +47 -0
- package/template-admin-server/src/controller/dto/index.ts +36 -0
- package/template-admin-server/src/controller/dto/menu.ts +41 -0
- package/template-admin-server/src/controller/dto/role.ts +41 -0
- package/template-admin-server/src/controller/dto/user.ts +52 -0
- package/template-admin-server/src/controller/menu.controller.ts +138 -0
- package/template-admin-server/src/controller/role.controller.ts +116 -0
- package/template-admin-server/src/controller/user.controller.ts +108 -0
- package/template-admin-server/src/entities/Api.ts +29 -0
- package/template-admin-server/src/entities/BaseCreate.ts +30 -0
- package/template-admin-server/src/entities/Menu.ts +39 -0
- package/template-admin-server/src/entities/Role.ts +36 -0
- package/template-admin-server/src/entities/User.ts +35 -0
- package/template-admin-server/src/entities/index.ts +10 -0
- package/template-admin-server/src/filter/default.filter.ts +22 -0
- package/template-admin-server/src/filter/notfound.filter.ts +23 -0
- package/template-admin-server/src/middleware/helper.middleware.ts +28 -0
- package/template-admin-server/src/middleware/index.ts +9 -0
- package/template-admin-server/src/middleware/jwt.middleware.ts +32 -0
- package/template-admin-server/src/middleware/report.middleware.ts +26 -0
- package/template-admin-server/src/service/api.service.ts +174 -0
- package/template-admin-server/src/service/basic.ts +118 -0
- package/template-admin-server/src/service/index.ts +10 -0
- package/template-admin-server/src/service/menu.service.ts +139 -0
- package/template-admin-server/src/service/role.service.ts +286 -0
- package/template-admin-server/src/service/user.service.ts +124 -0
- package/template-admin-server/src/strategy/jwt.strategy.ts +26 -0
- package/template-admin-server/src/types/index.ts +42 -0
- package/template-admin-server/src/types/types.d.ts +31 -0
- package/template-admin-server/tsconfig.json +24 -0
- package/template-nuxt-admin/.vscode/extensions.json +12 -0
- package/template-nuxt-admin/.vscode/settings.json +39 -0
- package/template-nuxt-admin/Dockerfile +41 -0
- package/template-nuxt-admin/_gitignore +23 -0
- package/template-nuxt-admin/_npmrc +2 -0
- package/template-nuxt-admin/_nvmrc +1 -0
- package/template-nuxt-admin/app.vue +49 -0
- package/template-nuxt-admin/boot.mjs +16 -0
- package/template-nuxt-admin/components/ScreenFull.vue +19 -0
- package/template-nuxt-admin/components/TopSearch.vue +76 -0
- package/template-nuxt-admin/components/TopUser.vue +72 -0
- package/template-nuxt-admin/components/YoungChangePassword.vue +94 -0
- package/template-nuxt-admin/components/YoungCodeInput.vue +65 -0
- package/template-nuxt-admin/components/YoungEditor.vue +81 -0
- package/template-nuxt-admin/components/YoungLink.vue +24 -0
- package/template-nuxt-admin/components/YoungLoading.vue +39 -0
- package/template-nuxt-admin/components/ZenMode.vue +21 -0
- package/template-nuxt-admin/components/layout/Footer.vue +29 -0
- package/template-nuxt-admin/components/layout/Logo.vue +54 -0
- package/template-nuxt-admin/components/layout/Main.vue +26 -0
- package/template-nuxt-admin/components/layout/NavBar.vue +90 -0
- package/template-nuxt-admin/components/layout/SideBar.vue +96 -0
- package/template-nuxt-admin/components/layout/SubMenu.vue +52 -0
- package/template-nuxt-admin/components/layout/TabsBar.vue +184 -0
- package/template-nuxt-admin/composables/api.ts +97 -0
- package/template-nuxt-admin/composables/apis/delete.ts +37 -0
- package/template-nuxt-admin/composables/apis/get.ts +83 -0
- package/template-nuxt-admin/composables/apis/index.ts +10 -0
- package/template-nuxt-admin/composables/apis/patch.ts +74 -0
- package/template-nuxt-admin/composables/apis/post.ts +85 -0
- package/template-nuxt-admin/composables/config.ts +13 -0
- package/template-nuxt-admin/composables/icon.ts +25 -0
- package/template-nuxt-admin/composables/nav.ts +85 -0
- package/template-nuxt-admin/composables/tags.ts +136 -0
- package/template-nuxt-admin/composables/user.ts +48 -0
- package/template-nuxt-admin/config/.devrc +1 -0
- package/template-nuxt-admin/config/.onlinerc +1 -0
- package/template-nuxt-admin/config/.testrc +1 -0
- package/template-nuxt-admin/env.d.ts +47 -0
- package/template-nuxt-admin/error.vue +61 -0
- package/template-nuxt-admin/eslint.config.js +33 -0
- package/template-nuxt-admin/layouts/blank.vue +9 -0
- package/template-nuxt-admin/layouts/default.vue +163 -0
- package/template-nuxt-admin/middleware/auth.global.ts +66 -0
- package/template-nuxt-admin/nuxt.config.ts +106 -0
- package/template-nuxt-admin/package.json +63 -0
- package/template-nuxt-admin/pages/home/[id].vue +28 -0
- package/template-nuxt-admin/pages/index.vue +15 -0
- package/template-nuxt-admin/pages/login.vue +199 -0
- package/template-nuxt-admin/pages/system/api.vue +177 -0
- package/template-nuxt-admin/pages/system/hooks/useRole.ts +328 -0
- package/template-nuxt-admin/pages/system/menuList.vue +351 -0
- package/template-nuxt-admin/pages/system/role.vue +144 -0
- package/template-nuxt-admin/pages/system/user.vue +223 -0
- package/template-nuxt-admin/plugins/directive.ts +26 -0
- package/template-nuxt-admin/public/bg.webp +0 -0
- package/template-nuxt-admin/public/default_avatar.svg +1 -0
- package/template-nuxt-admin/public/favicon.svg +2 -0
- package/template-nuxt-admin/public/image_placeholder.svg +15 -0
- package/template-nuxt-admin/public/index.umd.js +74 -0
- package/template-nuxt-admin/public/index.umd.js.map +1 -0
- package/template-nuxt-admin/public/logo.svg +2 -0
- package/template-nuxt-admin/public/tabbar_bg.png +0 -0
- package/template-nuxt-admin/server/api/[...all].ts +10 -0
- package/template-nuxt-admin/server/plugins/env.ts +88 -0
- package/template-nuxt-admin/server/routes/get/env.ts +13 -0
- package/template-nuxt-admin/server/tsconfig.json +3 -0
- package/template-nuxt-admin/server/utils/index.ts +36 -0
- package/template-nuxt-admin/styles/element.scss +30 -0
- package/template-nuxt-admin/styles/index.scss +59 -0
- package/template-nuxt-admin/styles/variable.scss +103 -0
- package/template-nuxt-admin/tsconfig.json +7 -0
- package/template-nuxt-admin/typings/global.d.ts +16 -0
- package/template-nuxt-admin/typings/system.d.ts +67 -0
- package/template-nuxt-admin/typings/user.d.ts +19 -0
- package/template-nuxt-admin/uno.config.ts +40 -0
- package/template-nuxt-admin/utils/tool.ts +195 -0
- package/template-nuxt-admin/yarn.lock +8398 -0
- package/template-nuxt-website/.nvmrc +1 -0
- package/template-nuxt-website/.vscode/extensions.json +12 -0
- package/template-nuxt-website/.vscode/settings.json +39 -0
- package/template-nuxt-website/Dockerfile +41 -0
- package/template-nuxt-website/_gitignore +26 -0
- package/template-nuxt-website/_npmrc +2 -0
- package/template-nuxt-website/_nvmrc +1 -0
- package/template-nuxt-website/app.vue +66 -0
- package/template-nuxt-website/assets/tabbar/event.png +0 -0
- package/template-nuxt-website/assets/tabbar/event_active.png +0 -0
- package/template-nuxt-website/assets/tabbar/game.png +0 -0
- package/template-nuxt-website/assets/tabbar/game_active.png +0 -0
- package/template-nuxt-website/assets/tabbar/shop.png +0 -0
- package/template-nuxt-website/assets/tabbar/shop_active.png +0 -0
- package/template-nuxt-website/assets/tabbar/user.png +0 -0
- package/template-nuxt-website/assets/tabbar/user_active.png +0 -0
- package/template-nuxt-website/boot.mjs +16 -0
- package/template-nuxt-website/components/AboutNav.vue +27 -0
- package/template-nuxt-website/components/BreadNav.vue +35 -0
- package/template-nuxt-website/components/Follow.vue +48 -0
- package/template-nuxt-website/components/FriendLink.vue +36 -0
- package/template-nuxt-website/components/mobile/NavBar.vue +50 -0
- package/template-nuxt-website/components/top/Extra.vue +50 -0
- package/template-nuxt-website/components/top/Nav.vue +87 -0
- package/template-nuxt-website/components/young/Banner.vue +100 -0
- package/template-nuxt-website/components/young/Footer.vue +44 -0
- package/template-nuxt-website/components/young/Header.vue +25 -0
- package/template-nuxt-website/components/young/Tabbar.vue +76 -0
- package/template-nuxt-website/composables/ad.ts +20 -0
- package/template-nuxt-website/composables/config.ts +11 -0
- package/template-nuxt-website/composables/nav.ts +30 -0
- package/template-nuxt-website/composables/share.ts +22 -0
- package/template-nuxt-website/composables/utils.ts +84 -0
- package/template-nuxt-website/config/.devrc +11 -0
- package/template-nuxt-website/config/.onlinerc +13 -0
- package/template-nuxt-website/config/.testrc +11 -0
- package/template-nuxt-website/env.d.ts +55 -0
- package/template-nuxt-website/error.vue +69 -0
- package/template-nuxt-website/eslint.config.js +34 -0
- package/template-nuxt-website/layouts/default.vue +80 -0
- package/template-nuxt-website/layouts/home.vue +75 -0
- package/template-nuxt-website/layouts/tabbar.vue +78 -0
- package/template-nuxt-website/nuxt.config.ts +98 -0
- package/template-nuxt-website/package.json +41 -0
- package/template-nuxt-website/pages/index.html.vue +16 -0
- package/template-nuxt-website/pages/index.vue +29 -0
- package/template-nuxt-website/pages/match.html.vue +23 -0
- package/template-nuxt-website/pages/news/[id].html.vue +57 -0
- package/template-nuxt-website/pages/news.html.vue +26 -0
- package/template-nuxt-website/pages/shop.html.vue +26 -0
- package/template-nuxt-website/public/favicon.ico +0 -0
- package/template-nuxt-website/public/robots.txt +2 -0
- package/template-nuxt-website/public/svg/image_placeholder.svg +15 -0
- package/template-nuxt-website/server/api/get_footer_info.get.ts +52 -0
- package/template-nuxt-website/server/api/get_gray_status.get.ts +38 -0
- package/template-nuxt-website/server/api/get_head_nav.get.ts +38 -0
- package/template-nuxt-website/server/api/get_home_banner.get.ts +28 -0
- package/template-nuxt-website/server/api/get_seo_info.get.ts +32 -0
- package/template-nuxt-website/server/middleware/platform.ts +11 -0
- package/template-nuxt-website/server/plugins/init.ts +147 -0
- package/template-nuxt-website/server/tsconfig.json +3 -0
- package/template-nuxt-website/server/utils/index.ts +12 -0
- package/template-nuxt-website/server/utils/proxy.ts +59 -0
- package/template-nuxt-website/tsconfig.json +4 -0
- package/template-nuxt-website/typings/banner.d.ts +30 -0
- package/template-nuxt-website/typings/nav.d.ts +34 -0
- package/template-nuxt-website/typings/system.d.ts +22 -0
- package/template-nuxt-website/uno.config.ts +40 -0
- package/template-nuxt-website/utils/tool.ts +171 -0
- package/template-nuxt-website/yarn.lock +8018 -0
- package/template-uni-app/.eslintignore +1 -0
- package/template-uni-app/.eslintrc +16 -0
- package/template-uni-app/.vscode/css.code-snippets +398 -0
- package/template-uni-app/.vscode/extensions.json +12 -0
- package/template-uni-app/.vscode/js.code-snippets +1669 -0
- package/template-uni-app/.vscode/settings.json +39 -0
- package/template-uni-app/.vscode/vue-html.code-snippets +682 -0
- package/template-uni-app/_env +3 -0
- package/template-uni-app/_env.development +11 -0
- package/template-uni-app/_env.production +8 -0
- package/template-uni-app/_env.test +11 -0
- package/template-uni-app/_gitignore +3 -0
- package/template-uni-app/_npmrc +2 -0
- package/template-uni-app/_nvmrc +1 -0
- package/template-uni-app/auto-imports.d.ts +413 -0
- package/template-uni-app/components.d.ts +17 -0
- package/template-uni-app/custom-plugins/index.ts +7 -0
- package/template-uni-app/custom-plugins/multiconf.ts +74 -0
- package/template-uni-app/eslint.config.js +35 -0
- package/template-uni-app/index.html +23 -0
- package/template-uni-app/manifest.config.ts +88 -0
- package/template-uni-app/package.json +109 -0
- package/template-uni-app/pages.config.ts +58 -0
- package/template-uni-app/pnpm-lock.yaml +10981 -0
- package/template-uni-app/src/App.vue +79 -0
- package/template-uni-app/src/apis/index.ts +54 -0
- package/template-uni-app/src/apis/requests/get.ts +52 -0
- package/template-uni-app/src/apis/requests/index.ts +8 -0
- package/template-uni-app/src/apis/requests/post.ts +23 -0
- package/template-uni-app/src/components/young-loading/young-loading.vue +36 -0
- package/template-uni-app/src/components/young-loading-mini/young-loading-mini.vue +35 -0
- package/template-uni-app/src/components/young-navbar/young-navbar.vue +252 -0
- package/template-uni-app/src/components/young-tabbar/young-tabbar.vue +145 -0
- package/template-uni-app/src/config/enum.ts +47 -0
- package/template-uni-app/src/config/index.ts +8 -0
- package/template-uni-app/src/config/map.ts +15 -0
- package/template-uni-app/src/env.d.ts +36 -0
- package/template-uni-app/src/layouts/default.vue +22 -0
- package/template-uni-app/src/layouts/tabbar.vue +38 -0
- package/template-uni-app/src/main.ts +20 -0
- package/template-uni-app/src/manifest.json +75 -0
- package/template-uni-app/src/pages/demo/index.vue +30 -0
- package/template-uni-app/src/pages/index.vue +65 -0
- package/template-uni-app/src/pages/my.vue +30 -0
- package/template-uni-app/src/pages.json +74 -0
- package/template-uni-app/src/static/back.png +0 -0
- package/template-uni-app/src/static/h.png +0 -0
- package/template-uni-app/src/static/home.png +0 -0
- package/template-uni-app/src/static/home_active.png +0 -0
- package/template-uni-app/src/static/more.png +0 -0
- package/template-uni-app/src/static/my.png +0 -0
- package/template-uni-app/src/static/my_active.png +0 -0
- package/template-uni-app/src/static/network.png +0 -0
- package/template-uni-app/src/store/index.ts +16 -0
- package/template-uni-app/src/store/local/index.ts +42 -0
- package/template-uni-app/src/store/system.ts +21 -0
- package/template-uni-app/src/typings/global.d.ts +7 -0
- package/template-uni-app/src/uni.scss +76 -0
- package/template-uni-app/src/utils/auth.ts +204 -0
- package/template-uni-app/src/utils/index.ts +11 -0
- package/template-uni-app/src/utils/map.ts +98 -0
- package/template-uni-app/src/utils/modal.ts +120 -0
- package/template-uni-app/src/utils/route.ts +151 -0
- package/template-uni-app/src/utils/system.ts +67 -0
- package/template-uni-app/tsconfig.json +16 -0
- package/template-uni-app/unocss.config.ts +30 -0
- package/template-uni-app/vite.config.ts +63 -0
- package/template-uni-app/volar.config.js +6 -0
- package/template-vue-mobile/.vscode/base.code-snippets +24 -0
- package/template-vue-mobile/.vscode/extensions.json +10 -0
- package/template-vue-mobile/.vscode/settings.json +7 -0
- package/template-vue-mobile/Dockerfile +42 -0
- package/template-vue-mobile/_env +6 -0
- package/template-vue-mobile/_gitignore +30 -0
- package/template-vue-mobile/boot.mjs +16 -0
- package/template-vue-mobile/build/custom-plugin.ts +30 -0
- package/template-vue-mobile/build/index.ts +7 -0
- package/template-vue-mobile/build/plugins.ts +68 -0
- package/template-vue-mobile/config/.devrc +2 -0
- package/template-vue-mobile/config/.onlinerc +1 -0
- package/template-vue-mobile/config/.testrc +1 -0
- package/template-vue-mobile/index.html +25 -0
- package/template-vue-mobile/nitro.config.ts +19 -0
- package/template-vue-mobile/package.json +48 -0
- package/template-vue-mobile/plugins/env.ts +26 -0
- package/template-vue-mobile/public/vite.svg +1 -0
- package/template-vue-mobile/rome.json +24 -0
- package/template-vue-mobile/routes/[...all].ts +11 -0
- package/template-vue-mobile/routes/get/env.ts +25 -0
- package/template-vue-mobile/src/App.vue +29 -0
- package/template-vue-mobile/src/auto-components.d.ts +24 -0
- package/template-vue-mobile/src/auto-imports.d.ts +289 -0
- package/template-vue-mobile/src/components/Init.vue +36 -0
- package/template-vue-mobile/src/global.d.ts +7 -0
- package/template-vue-mobile/src/hooks/useVerifyCode.ts +46 -0
- package/template-vue-mobile/src/layouts/blank.vue +9 -0
- package/template-vue-mobile/src/layouts/default.vue +27 -0
- package/template-vue-mobile/src/layouts/sub.vue +20 -0
- package/template-vue-mobile/src/main.ts +35 -0
- package/template-vue-mobile/src/modules/1-router.ts +40 -0
- package/template-vue-mobile/src/modules/2-pinia.ts +10 -0
- package/template-vue-mobile/src/modules/3-net.ts +46 -0
- package/template-vue-mobile/src/modules/4-auth.ts +64 -0
- package/template-vue-mobile/src/views/[...all_404].vue +557 -0
- package/template-vue-mobile/src/views/base/login.vue +110 -0
- package/template-vue-mobile/src/views/base/resetPasswd.vue +88 -0
- package/template-vue-mobile/src/views/index.vue +18 -0
- package/template-vue-mobile/src/views/my.vue +15 -0
- package/template-vue-mobile/src/views/sub.vue +18 -0
- package/template-vue-mobile/src/vite-env.d.ts +43 -0
- package/template-vue-mobile/tsconfig.json +21 -0
- package/template-vue-mobile/tsconfig.node.json +9 -0
- package/template-vue-mobile/unocss.config.ts +47 -0
- package/template-vue-mobile/vite.config.ts +32 -0
- package/template-vue-mobile/yarn.lock +4395 -0
- package/template-vue-thin/.vscode/extensions.json +10 -0
- package/template-vue-thin/.vscode/settings.json +4 -0
- package/template-vue-thin/_env +1 -0
- package/template-vue-thin/_gitignore +29 -0
- package/template-vue-thin/index.html +21 -0
- package/template-vue-thin/package.json +40 -0
- package/template-vue-thin/public/vite.svg +1 -0
- package/template-vue-thin/src/App.vue +9 -0
- package/template-vue-thin/src/layouts/blank.vue +9 -0
- package/template-vue-thin/src/layouts/default.vue +12 -0
- package/template-vue-thin/src/layouts/list.vue +12 -0
- package/template-vue-thin/src/main.ts +58 -0
- package/template-vue-thin/src/views/[...all_404].vue +488 -0
- package/template-vue-thin/src/views/index.vue +19 -0
- package/template-vue-thin/src/views/list.vue +17 -0
- package/template-vue-thin/src/vite-env.d.ts +22 -0
- package/template-vue-thin/tsconfig.json +21 -0
- package/template-vue-thin/tsconfig.node.json +9 -0
- package/template-vue-thin/unocss.config.ts +47 -0
- package/template-vue-thin/vite.config.ts +64 -0
- package/tsconfig.json +11 -0
- package/dist/index.mjs +0 -51
@@ -0,0 +1,1669 @@
|
|
1
|
+
{
|
2
|
+
"#ifdef": {
|
3
|
+
"body": [
|
4
|
+
"// #ifdef ${1|APP-PLUS,APP-PLUS-NVUE,MP,MP-ALIPAY,MP-BAIDU,MP-WEIXIN,MP-QQ,H5|}",
|
5
|
+
"$0",
|
6
|
+
"// #endif"
|
7
|
+
],
|
8
|
+
"prefix": "ifdef",
|
9
|
+
"project": "uni-app",
|
10
|
+
"scope": "typescript,javascript"
|
11
|
+
},
|
12
|
+
"#ifndef": {
|
13
|
+
"body": [
|
14
|
+
"// #ifndef ${1|APP-PLUS,APP-PLUS-NVUE,MP,MP-ALIPAY,MP-BAIDU,MP-WEIXIN,MP-QQ,H5|}",
|
15
|
+
"$0",
|
16
|
+
"// #endif"
|
17
|
+
],
|
18
|
+
"prefix": "ifndef",
|
19
|
+
"project": "uni-app",
|
20
|
+
"scope": "typescript,javascript"
|
21
|
+
},
|
22
|
+
"$ (document.getElementById)": {
|
23
|
+
"body": ["document.getElementById(\"$1\")"],
|
24
|
+
"prefix": "$$$",
|
25
|
+
"project": "Web,App,Wap2App",
|
26
|
+
"scope": "typescript,javascript",
|
27
|
+
"triggerAssist": true
|
28
|
+
},
|
29
|
+
"$(\"\")": {
|
30
|
+
"body": ["$(\"$1\")"],
|
31
|
+
"prefix": "dl",
|
32
|
+
"scope": "typescript,javascript",
|
33
|
+
"triggerAssist": true
|
34
|
+
},
|
35
|
+
"$(\"#\")": {
|
36
|
+
"body": ["$(\"#$1\")"],
|
37
|
+
"prefix": "dlid",
|
38
|
+
"scope": "typescript,javascript",
|
39
|
+
"triggerAssist": true
|
40
|
+
},
|
41
|
+
"$(\".\")": {
|
42
|
+
"body": ["$(\".$1\")"],
|
43
|
+
"prefix": "dlclass",
|
44
|
+
"project": "Web,App,Wap2App",
|
45
|
+
"scope": "typescript,javascript",
|
46
|
+
"triggerAssist": true
|
47
|
+
},
|
48
|
+
"@alias": {
|
49
|
+
"body": ["@alias $0"],
|
50
|
+
"prefix": "@alias",
|
51
|
+
"scope": "comment.block.js"
|
52
|
+
},
|
53
|
+
"@description": {
|
54
|
+
"body": ["@description $0"],
|
55
|
+
"prefix": "@description",
|
56
|
+
"scope": "comment.block.js"
|
57
|
+
},
|
58
|
+
"@event": {
|
59
|
+
"body": ["@event {Function(${1})} ${2:name} $0"],
|
60
|
+
"prefix": "@event",
|
61
|
+
"scope": "comment.block.js"
|
62
|
+
},
|
63
|
+
"@example": {
|
64
|
+
"body": ["@example $0"],
|
65
|
+
"prefix": "@example",
|
66
|
+
"scope": "comment.block.js"
|
67
|
+
},
|
68
|
+
"@extends": {
|
69
|
+
"body": ["@extends {${1:parent_type}}"],
|
70
|
+
"prefix": "@extends",
|
71
|
+
"scope": "comment.block.js"
|
72
|
+
},
|
73
|
+
"@param": {
|
74
|
+
"body": ["@param {${1:type}} ${2:$FN_PARAMS} $0"],
|
75
|
+
"prefix": "@param",
|
76
|
+
"scope": "comment.block.js"
|
77
|
+
},
|
78
|
+
"@param with values": {
|
79
|
+
"body": ["@param {${1:type}} ${2:$FN_PARAMS} = [${3:value}] $0"],
|
80
|
+
"prefix": "@paramvalues",
|
81
|
+
"scope": "comment.block.js"
|
82
|
+
},
|
83
|
+
"@property": {
|
84
|
+
"body": ["@property {${1:type}} ${2:prop_name} $0"],
|
85
|
+
"prefix": "@property",
|
86
|
+
"scope": "comment.block.js"
|
87
|
+
},
|
88
|
+
"@property with values": {
|
89
|
+
"body": ["@property {${1:type}} ${2:prop_name} = [${3:value}] $0"],
|
90
|
+
"prefix": "@propertyvalues",
|
91
|
+
"scope": "comment.block.js"
|
92
|
+
},
|
93
|
+
"@return": {
|
94
|
+
"body": ["@return {${1:type}}"],
|
95
|
+
"prefix": "@return",
|
96
|
+
"scope": "comment.block.js"
|
97
|
+
},
|
98
|
+
"@tutorial": {
|
99
|
+
"body": ["@tutorial ${1:url}"],
|
100
|
+
"prefix": "@tutorial",
|
101
|
+
"scope": "comment.block.js"
|
102
|
+
},
|
103
|
+
"@type": {
|
104
|
+
"body": ["@type {${1:type}}"],
|
105
|
+
"prefix": "@type",
|
106
|
+
"scope": "comment.doc.js"
|
107
|
+
},
|
108
|
+
"Arrow function": {
|
109
|
+
"body": ["($1) => {", "\t$0", "}"],
|
110
|
+
"prefix": "arrow",
|
111
|
+
"scope": "typescript,javascript"
|
112
|
+
},
|
113
|
+
"Class": {
|
114
|
+
"body": [
|
115
|
+
"class ${1:name} {",
|
116
|
+
"\tconstructor(${2:arg}) {",
|
117
|
+
"\t\t$0",
|
118
|
+
"\t}",
|
119
|
+
"\t",
|
120
|
+
"}"
|
121
|
+
],
|
122
|
+
"prefix": "class",
|
123
|
+
"scope": "typescript,javascript"
|
124
|
+
},
|
125
|
+
"Class Extends": {
|
126
|
+
"body": [
|
127
|
+
"class ${1:name} extends ${2:AnotherClass} {",
|
128
|
+
"\tconstructor(${3:arg}) {",
|
129
|
+
"\t\t$0",
|
130
|
+
"\t}",
|
131
|
+
"\t",
|
132
|
+
"}"
|
133
|
+
],
|
134
|
+
"prefix": "classextends",
|
135
|
+
"scope": "typescript,javascript"
|
136
|
+
},
|
137
|
+
"Decrementer": {
|
138
|
+
"body": ["return ${1:this.num} -= ${2:1}"],
|
139
|
+
"description": "decrement",
|
140
|
+
"prefix": "vdec",
|
141
|
+
"scope": "typescript,javascript"
|
142
|
+
},
|
143
|
+
"Export": {
|
144
|
+
"body": ["export ${1:default} ${2:bar}"],
|
145
|
+
"prefix": "export",
|
146
|
+
"scope": "typescript,javascript"
|
147
|
+
},
|
148
|
+
"Export Class": {
|
149
|
+
"body": ["export class ${1:name} {", "\t$0", "}"],
|
150
|
+
"prefix": "exportclass",
|
151
|
+
"scope": "typescript,javascript"
|
152
|
+
},
|
153
|
+
"Getter": {
|
154
|
+
"body": ["get ${1:name}() {", "\t$0", "}"],
|
155
|
+
"prefix": "getter",
|
156
|
+
"scope": "JS_INCLASSBODY"
|
157
|
+
},
|
158
|
+
"Import": {
|
159
|
+
"body": ["import ${1:foo} from \"${2:bar}\""],
|
160
|
+
"prefix": "imfrom",
|
161
|
+
"scope": "typescript,javascript"
|
162
|
+
},
|
163
|
+
"Incrementer": {
|
164
|
+
"body": ["return ${1:this.num} += ${2:1}"],
|
165
|
+
"description": "increment",
|
166
|
+
"prefix": "vinc",
|
167
|
+
"scope": "typescript,javascript"
|
168
|
+
},
|
169
|
+
"Key:Value": {
|
170
|
+
"body": ["${1:key} : ${2:value},"],
|
171
|
+
"prefix": "kv",
|
172
|
+
"scope": "object.property.js"
|
173
|
+
},
|
174
|
+
"Object Method": {
|
175
|
+
"body": ["${1:method_name}: function(${2:attribute}){", "\t$0", "}${3:,}"],
|
176
|
+
"prefix": ":f",
|
177
|
+
"scope": "typescript,javascript"
|
178
|
+
},
|
179
|
+
"Object Method String": {
|
180
|
+
"body": [
|
181
|
+
"'${1:${2:#thing}:${3:click}}': function(element){",
|
182
|
+
"\t$0",
|
183
|
+
"}${4:,}"
|
184
|
+
],
|
185
|
+
"prefix": ":f",
|
186
|
+
"scope": "typescript,javascript"
|
187
|
+
},
|
188
|
+
"Object Value JS": {
|
189
|
+
"body": ["${1:value_name}:${0:value},"],
|
190
|
+
"prefix": ":,",
|
191
|
+
"scope": "typescript,javascript"
|
192
|
+
},
|
193
|
+
"Object key - key: \"value\"": {
|
194
|
+
"body": ["${1:key}: ${2:\"${3:value}\"}${4:, }"],
|
195
|
+
"prefix": ":",
|
196
|
+
"scope": "typescript,javascript"
|
197
|
+
},
|
198
|
+
"Prototype": {
|
199
|
+
"body": [
|
200
|
+
"${1:class_name}.prototype.${2:method_name} = function(${3:first_argument}) {",
|
201
|
+
"\t${0|,, body...|}",
|
202
|
+
"};"
|
203
|
+
],
|
204
|
+
"prefix": "proto",
|
205
|
+
"scope": "typescript,javascript"
|
206
|
+
},
|
207
|
+
"Setter": {
|
208
|
+
"body": ["set ${1:property}(${2:value}) {", "\t$0", "}"],
|
209
|
+
"prefix": "setter",
|
210
|
+
"scope": "class.body.js"
|
211
|
+
},
|
212
|
+
"Unit Test": {
|
213
|
+
"body": [
|
214
|
+
"import Vue from 'vue'",
|
215
|
+
"import ${1|HelloWorld|} from '.,components,${1:HelloWorld}'",
|
216
|
+
"",
|
217
|
+
"describe('${1:HelloWorld}.vue', () => {",
|
218
|
+
"\tit('${2:should render correct contents}', () => {",
|
219
|
+
"\t\tconst Constructor = Vue.extend(${1:HelloWorld})",
|
220
|
+
"\t\tconst vm = new Constructor().$mount()",
|
221
|
+
"\t\texpect(vm.$el.querySelector('.hello h1').textContent)",
|
222
|
+
"\t\t\t.to.equal(${3:'Welcome to Your Vue.js App'})",
|
223
|
+
"\t})",
|
224
|
+
"})"
|
225
|
+
],
|
226
|
+
"description": "unit test component",
|
227
|
+
"prefix": "vtest",
|
228
|
+
"scope": "typescript,javascript"
|
229
|
+
},
|
230
|
+
"Vue Commit Vuex Store in Methods": {
|
231
|
+
"body": [
|
232
|
+
"${1:mutationName}() {",
|
233
|
+
"\tthis.\\$store.commit('${1:mutationName}', ${2:payload})",
|
234
|
+
"}"
|
235
|
+
],
|
236
|
+
"description": "commit to vuex store in methods for mutation",
|
237
|
+
"prefix": "vcommit",
|
238
|
+
"scope": "vue.property.js"
|
239
|
+
},
|
240
|
+
"Vue Components": {
|
241
|
+
"body": ["components: {", "\t$1", "},"],
|
242
|
+
"description": "注册vue组件",
|
243
|
+
"prefix": "vcomponents",
|
244
|
+
"scope": "vue.property.js"
|
245
|
+
},
|
246
|
+
"Vue Computed": {
|
247
|
+
"body": [
|
248
|
+
"computed: {",
|
249
|
+
"\t${1:name}() {",
|
250
|
+
"\t\treturn this.${2:data} ${0}",
|
251
|
+
"\t}",
|
252
|
+
"},"
|
253
|
+
],
|
254
|
+
"description": "computed value",
|
255
|
+
"prefix": "vcomputed",
|
256
|
+
"scope": "vue.property.js"
|
257
|
+
},
|
258
|
+
"Vue Custom Directive": {
|
259
|
+
"body": [
|
260
|
+
"Vue.directive('${1:directiveName}', {",
|
261
|
+
"\tbind(el, binding, vnode) {",
|
262
|
+
"\t\tel.style.${2:arg} = binding.value.${2:arg};",
|
263
|
+
"\t}",
|
264
|
+
"});"
|
265
|
+
],
|
266
|
+
"description": "vue custom directive",
|
267
|
+
"prefix": "vc-direct",
|
268
|
+
"scope": "typescript,javascript"
|
269
|
+
},
|
270
|
+
"Vue Data": {
|
271
|
+
"body": ["data() {", "\treturn {", "\t\t${1:key}: ${2:value}", "\t}", "},"],
|
272
|
+
"description": "Vue Component Data",
|
273
|
+
"prefix": "vdata",
|
274
|
+
"scope": "vue.property.js"
|
275
|
+
},
|
276
|
+
"Vue Dispatch Vuex Store in Methods": {
|
277
|
+
"body": [
|
278
|
+
"${1:actionName}() {",
|
279
|
+
"\tthis.\\$store.dispatch('${1:actionName}', ${2:payload})",
|
280
|
+
"}"
|
281
|
+
],
|
282
|
+
"description": "dispatch to vuex store in methods for action",
|
283
|
+
"prefix": "vdispatch",
|
284
|
+
"scope": "vue.property.js"
|
285
|
+
},
|
286
|
+
"Vue Filter": {
|
287
|
+
"body": [
|
288
|
+
"filters: {",
|
289
|
+
"\t${1:fnName}: function(${2:value}) {",
|
290
|
+
"\t\treturn ${2:value}${0};",
|
291
|
+
"\t}",
|
292
|
+
"}"
|
293
|
+
],
|
294
|
+
"description": "vue filter",
|
295
|
+
"prefix": "vfilter",
|
296
|
+
"scope": "vue.property.js"
|
297
|
+
},
|
298
|
+
"Vue Import Export": {
|
299
|
+
"body": [
|
300
|
+
"import ${1|Name|} from '.,components,${1:Name}.vue'",
|
301
|
+
"",
|
302
|
+
"export default {",
|
303
|
+
"\tcomponents: {",
|
304
|
+
"\t\t${1:Name}",
|
305
|
+
"\t},",
|
306
|
+
"}"
|
307
|
+
],
|
308
|
+
"description": "import a component and include it in export default",
|
309
|
+
"prefix": "vimport-export",
|
310
|
+
"scope": "typescript,javascript"
|
311
|
+
},
|
312
|
+
"Vue Import File": {
|
313
|
+
"body": ["import ${1|New|} from ',components,${1:New}.vue';"],
|
314
|
+
"description": "Import one component into another",
|
315
|
+
"prefix": "vimport",
|
316
|
+
"scope": "typescript,javascript"
|
317
|
+
},
|
318
|
+
"Vue Import GSAP": {
|
319
|
+
"body": ["import { TimelineMax, ${1:Ease} } from 'gsap'"],
|
320
|
+
"description": "component methods options that dispatch an action from vuex store.",
|
321
|
+
"prefix": "vimport-gsap",
|
322
|
+
"scope": "typescript,javascript"
|
323
|
+
},
|
324
|
+
"Vue Import Library": {
|
325
|
+
"body": ["import { ${1:libName} } from '${1:libName}'"],
|
326
|
+
"description": "import a library",
|
327
|
+
"prefix": "vimport-lib",
|
328
|
+
"scope": "typescript,javascript"
|
329
|
+
},
|
330
|
+
"Vue Import into the Component": {
|
331
|
+
"body": ["components: {", "\t${1:New},", "}"],
|
332
|
+
"description": "Import one component into another, within export statement",
|
333
|
+
"prefix": "vcomponents",
|
334
|
+
"scope": "typescript,javascript"
|
335
|
+
},
|
336
|
+
"Vue Methods": {
|
337
|
+
"body": ["methods: {", "\t${1:name}() {", "\t\t${0}", "\t}", "},"],
|
338
|
+
"description": "vue method",
|
339
|
+
"prefix": "vmethod",
|
340
|
+
"scope": "vue.property.js"
|
341
|
+
},
|
342
|
+
"Vue Mixin": {
|
343
|
+
"body": [
|
344
|
+
"const ${1:mixinName} = {",
|
345
|
+
"\tmounted() {",
|
346
|
+
"\t\tconsole.log('hello from mixin!')",
|
347
|
+
"\t},",
|
348
|
+
"}"
|
349
|
+
],
|
350
|
+
"description": "vue mixin",
|
351
|
+
"prefix": "vmixin",
|
352
|
+
"scope": "typescript,javascript"
|
353
|
+
},
|
354
|
+
"Vue Props with Default": {
|
355
|
+
"body": [
|
356
|
+
"props: {",
|
357
|
+
"\t${1:propName}: {",
|
358
|
+
"\t\ttype: ${2:Number},",
|
359
|
+
"\t\tdefault: ${0}",
|
360
|
+
"\t},",
|
361
|
+
"},"
|
362
|
+
],
|
363
|
+
"description": "Vue Props with Default",
|
364
|
+
"prefix": "vprops",
|
365
|
+
"scope": "vue.property.js"
|
366
|
+
},
|
367
|
+
"Vue Transition Methods with JavaScript Hooks": {
|
368
|
+
"body": [
|
369
|
+
"beforeEnter(el) {",
|
370
|
+
"\tconsole.log('beforeEnter');",
|
371
|
+
"},",
|
372
|
+
"enter(el, done) {",
|
373
|
+
"\tconsole.log('enter');",
|
374
|
+
"\tdone();",
|
375
|
+
"},",
|
376
|
+
"beforeLeave(el) {",
|
377
|
+
"\tconsole.log('beforeLeave');",
|
378
|
+
"},",
|
379
|
+
"leave(el, done) {",
|
380
|
+
"\tconsole.log('leave');",
|
381
|
+
"\tdone();",
|
382
|
+
"},"
|
383
|
+
],
|
384
|
+
"description": "transition component js hooks",
|
385
|
+
"prefix": "vanimhook-js",
|
386
|
+
"scope": "typescript,javascript"
|
387
|
+
},
|
388
|
+
"Vue Use Mixin": {
|
389
|
+
"body": ["mixins: [${1:mixinName}]"],
|
390
|
+
"description": "vue use mixin",
|
391
|
+
"prefix": "vmixin-use",
|
392
|
+
"scope": "typescript,javascript"
|
393
|
+
},
|
394
|
+
"Vue Watchers": {
|
395
|
+
"body": [
|
396
|
+
"watch: {",
|
397
|
+
"\t${1:data}(${2:newValue}, ${3:oldValue}) {",
|
398
|
+
"\t\t${0}",
|
399
|
+
"\t}",
|
400
|
+
"},"
|
401
|
+
],
|
402
|
+
"description": "vue watcher",
|
403
|
+
"prefix": "vwatcher",
|
404
|
+
"scope": "vue.property.js"
|
405
|
+
},
|
406
|
+
"clog": {
|
407
|
+
"body": ["console.log($1);"],
|
408
|
+
"description": "打印变量",
|
409
|
+
"prefix": "clog",
|
410
|
+
"scope": "typescript,javascript"
|
411
|
+
},
|
412
|
+
"clogios": {
|
413
|
+
"body": ["console.log(JSON.stringify(${1:e}));", "console.log('${2:e}');"],
|
414
|
+
"prefix": "cloios",
|
415
|
+
"project": "Web,App,Wap2App",
|
416
|
+
"scope": "typescript,javascript",
|
417
|
+
"triggerAssist": true
|
418
|
+
},
|
419
|
+
"clogjson": {
|
420
|
+
"body": ["console.log(\"$1: \" + JSON.stringify($1));"],
|
421
|
+
"description": "打印JSON字符串",
|
422
|
+
"prefix": "clogjson",
|
423
|
+
"scope": "typescript,javascript"
|
424
|
+
},
|
425
|
+
"clogvar": {
|
426
|
+
"body": ["console.log(\"$1: \" + $1);"],
|
427
|
+
"description": "打印变量",
|
428
|
+
"prefix": "clogvar",
|
429
|
+
"scope": "typescript,javascript"
|
430
|
+
},
|
431
|
+
"console.dir": {
|
432
|
+
"body": ["console.dir($1)"],
|
433
|
+
"prefix": "cdir",
|
434
|
+
"scope": "typescript,javascript",
|
435
|
+
"triggerAssist": true
|
436
|
+
},
|
437
|
+
"console.log();": {
|
438
|
+
"body": ["console.log($1);"],
|
439
|
+
"prefix": "clog",
|
440
|
+
"project": "Web,App,Wap2App",
|
441
|
+
"scope": "typescript,javascript"
|
442
|
+
},
|
443
|
+
"constructor": {
|
444
|
+
"body": ["constructor(${1:arg}) {", " $0", "}"],
|
445
|
+
"prefix": "cons",
|
446
|
+
"scope": "class.body.js"
|
447
|
+
},
|
448
|
+
"document.getElementById": {
|
449
|
+
"body": ["document.getElementById(\"$1\")"],
|
450
|
+
"prefix": "dg",
|
451
|
+
"scope": "typescript,javascript",
|
452
|
+
"triggerAssist": true
|
453
|
+
},
|
454
|
+
"document.querySelectorAll": {
|
455
|
+
"body": ["document.querySelectorAll(\"$1\")"],
|
456
|
+
"prefix": "dqs",
|
457
|
+
"scope": "typescript,javascript",
|
458
|
+
"triggerAssist": true
|
459
|
+
},
|
460
|
+
"document.write": {
|
461
|
+
"body": ["document.write(\"$1\")"],
|
462
|
+
"prefix": "dw",
|
463
|
+
"scope": "typescript,javascript"
|
464
|
+
},
|
465
|
+
"documentaddEventListener": {
|
466
|
+
"body": [
|
467
|
+
"document.addEventListener('${1:scroll}',function ($2) {",
|
468
|
+
" $0",
|
469
|
+
"})"
|
470
|
+
],
|
471
|
+
"prefix": "dad",
|
472
|
+
"project": "Web,App,Wap2App",
|
473
|
+
"scope": "typescript,javascript",
|
474
|
+
"triggerAssist": true
|
475
|
+
},
|
476
|
+
"export default": {
|
477
|
+
"body": ["export default {", "\t$0", "}"],
|
478
|
+
"prefix": "edefault",
|
479
|
+
"scope": "typescript,javascript"
|
480
|
+
},
|
481
|
+
"for (...) {...}": {
|
482
|
+
"body": ["for ($1) {", "\t$0", "}"],
|
483
|
+
"prefix": "forr",
|
484
|
+
"scope": "typescript,javascript"
|
485
|
+
},
|
486
|
+
"for let": {
|
487
|
+
"body": [
|
488
|
+
"for (let i = 0; i < ${1:Things}.length; i++) {",
|
489
|
+
"\t${1:Things}[i]",
|
490
|
+
"}"
|
491
|
+
],
|
492
|
+
"prefix": "forl",
|
493
|
+
"scope": "typescript,javascript"
|
494
|
+
},
|
495
|
+
"for let in": {
|
496
|
+
"body": ["for (let ${1:var1} in ${2:var2}) {", "\t$0", "}"],
|
497
|
+
"prefix": "forli",
|
498
|
+
"scope": "typescript,javascript"
|
499
|
+
},
|
500
|
+
"for...of": {
|
501
|
+
"body": ["for (let ${1:s} of ${2:sequence}) {", "\t$0", "}"],
|
502
|
+
"prefix": "forof",
|
503
|
+
"scope": "typescript,javascript"
|
504
|
+
},
|
505
|
+
"fori": {
|
506
|
+
"body": [
|
507
|
+
"for (var i = 0; i < ${1:Things}.length; i++) {",
|
508
|
+
"\t${1:Things}[i]",
|
509
|
+
"}"
|
510
|
+
],
|
511
|
+
"prefix": "fori",
|
512
|
+
"scope": "typescript,javascript"
|
513
|
+
},
|
514
|
+
"function": {
|
515
|
+
"body": ["function ${1:function_name} ($2) {", "\t$0", "}"],
|
516
|
+
"prefix": "funn",
|
517
|
+
"scope": "typescript,javascript"
|
518
|
+
},
|
519
|
+
"function*": {
|
520
|
+
"body": ["function* ${1:name}($2) {", "\tyield $0;", "}"],
|
521
|
+
"prefix": "fung",
|
522
|
+
"scope": "typescript,javascript"
|
523
|
+
},
|
524
|
+
"function_anonymous": {
|
525
|
+
"body": ["function ($1) {", "\t$0", "}"],
|
526
|
+
"prefix": "funan",
|
527
|
+
"scope": "typescript,javascript"
|
528
|
+
},
|
529
|
+
"function_closures": {
|
530
|
+
"body": ["(function ($1) {", "\t$0", "})($2)"],
|
531
|
+
"prefix": "funcl",
|
532
|
+
"scope": "typescript,javascript"
|
533
|
+
},
|
534
|
+
"getElementByIdaddEventListener": {
|
535
|
+
"body": [
|
536
|
+
"document.getElementById('$1').addEventListener('${2:tap}',function ($3) {",
|
537
|
+
" $0",
|
538
|
+
"})"
|
539
|
+
],
|
540
|
+
"prefix": "dga",
|
541
|
+
"project": "Web,App,Wap2App",
|
542
|
+
"scope": "typescript,javascript",
|
543
|
+
"triggerAssist": true
|
544
|
+
},
|
545
|
+
"if": {
|
546
|
+
"body": ["if ($1) {", "\t$0", "}"],
|
547
|
+
"prefix": "iff",
|
548
|
+
"scope": "typescript,javascript"
|
549
|
+
},
|
550
|
+
"if ... else": {
|
551
|
+
"body": ["if ($1) {", "\t$0", "} else{", "\t", "}"],
|
552
|
+
"prefix": "ife",
|
553
|
+
"scope": "typescript,javascript"
|
554
|
+
},
|
555
|
+
"ifAndroid": {
|
556
|
+
"body": [
|
557
|
+
"if (uni.getSystemInfoSync().platform == \"android\") {",
|
558
|
+
"\t$1",
|
559
|
+
"}"
|
560
|
+
],
|
561
|
+
"prefix": "ifandroid",
|
562
|
+
"project": "uni-app",
|
563
|
+
"scope": "typescript,javascript"
|
564
|
+
},
|
565
|
+
"if_compare": {
|
566
|
+
"body": ["if ($1 == ${2:true}) {", "\t$0", "} else{", "\t", "}"],
|
567
|
+
"prefix": "ifc",
|
568
|
+
"scope": "typescript,javascript"
|
569
|
+
},
|
570
|
+
"ifiOS": {
|
571
|
+
"body": ["if (uni.getSystemInfoSync().platform == \"ios\") {", "\t$1", "}"],
|
572
|
+
"prefix": "ifios",
|
573
|
+
"project": "uni-app",
|
574
|
+
"scope": "typescript,javascript"
|
575
|
+
},
|
576
|
+
"module.exports": {
|
577
|
+
"body": ["module.exports = {", "\t$0", "}"],
|
578
|
+
"prefix": "mexports",
|
579
|
+
"scope": "typescript,javascript"
|
580
|
+
},
|
581
|
+
"mui": {
|
582
|
+
"body": ["mui."],
|
583
|
+
"prefix": "mui",
|
584
|
+
"project": "Web,App,Wap2App",
|
585
|
+
"scope": "typescript,javascript",
|
586
|
+
"triggerAssist": true
|
587
|
+
},
|
588
|
+
"mui('').pullRefresh": {
|
589
|
+
"body": ["mui('#${1:refreshContainer}').pullRefresh().$2"],
|
590
|
+
"prefix": "mmpullrefresh",
|
591
|
+
"project": "Web,App,Wap2App",
|
592
|
+
"scope": "typescript,javascript",
|
593
|
+
"triggerAssist": true
|
594
|
+
},
|
595
|
+
"mui('').scroll": {
|
596
|
+
"body": ["mui('.${1:mui-scroll-wrapper}').scroll({$2})$0"],
|
597
|
+
"prefix": "mmscroll",
|
598
|
+
"project": "Web,App,Wap2App",
|
599
|
+
"scope": "typescript,javascript",
|
600
|
+
"triggerAssist": true
|
601
|
+
},
|
602
|
+
"mui('').slider": {
|
603
|
+
"body": ["mui('.${1:mui-slider}').slider({$2})$0"],
|
604
|
+
"prefix": "mmslider",
|
605
|
+
"project": "Web,App,Wap2App",
|
606
|
+
"scope": "typescript,javascript",
|
607
|
+
"triggerAssist": true
|
608
|
+
},
|
609
|
+
"mui()": {
|
610
|
+
"body": ["mui('$1')"],
|
611
|
+
"prefix": "mmui",
|
612
|
+
"project": "Web,App,Wap2App",
|
613
|
+
"scope": "typescript,javascript",
|
614
|
+
"triggerAssist": true
|
615
|
+
},
|
616
|
+
"mui().each()": {
|
617
|
+
"body": [
|
618
|
+
"mui('$1').each(function (${3:index},${4:element}) {",
|
619
|
+
"\t$0",
|
620
|
+
"})"
|
621
|
+
],
|
622
|
+
"prefix": "mmeach",
|
623
|
+
"project": "Web,App,Wap2App",
|
624
|
+
"scope": "typescript,javascript"
|
625
|
+
},
|
626
|
+
"mui.ajax()": {
|
627
|
+
"body": [
|
628
|
+
"mui.ajax('$1',{",
|
629
|
+
"\tdata:{",
|
630
|
+
"\t\t$2",
|
631
|
+
"\t},",
|
632
|
+
"\tdataType:'${3:json}',//服务器返回json格式数据",
|
633
|
+
"\ttype:'${4:post}',//HTTP请求类型",
|
634
|
+
"\ttimeout:${5:10000},//超时时间设置为10秒;",
|
635
|
+
"\tsuccess:function(${6:data}){",
|
636
|
+
"\t\t$7",
|
637
|
+
"\t},",
|
638
|
+
"\terror:function(${8:xhr,type,errorThrown}){",
|
639
|
+
"\t\t$9",
|
640
|
+
"\t}",
|
641
|
+
"});$0"
|
642
|
+
],
|
643
|
+
"prefix": "majax",
|
644
|
+
"project": "Web,App,Wap2App",
|
645
|
+
"scope": "typescript,javascript",
|
646
|
+
"triggerAssist": true
|
647
|
+
},
|
648
|
+
"mui.alert()": {
|
649
|
+
"body": [
|
650
|
+
"mui.alert('${1:message}','${2:title}','${3:btnValue}',function (${4:e}) {",
|
651
|
+
" ${4:e}.index$0",
|
652
|
+
"}${5:,'div'})"
|
653
|
+
],
|
654
|
+
"prefix": "mdalert",
|
655
|
+
"project": "Web,App,Wap2App",
|
656
|
+
"scope": "typescript,javascript"
|
657
|
+
},
|
658
|
+
"mui.back()(返回上级页面)": {
|
659
|
+
"body": ["mui.back()$0"],
|
660
|
+
"prefix": "mback",
|
661
|
+
"project": "Web,App,Wap2App",
|
662
|
+
"scope": "typescript,javascript"
|
663
|
+
},
|
664
|
+
"mui.backDouble(双击退出应用)": {
|
665
|
+
"body": [
|
666
|
+
"//首页返回键处理",
|
667
|
+
"//处理逻辑:1秒内,连续两次按返回键,则退出应用;",
|
668
|
+
"var first = null;",
|
669
|
+
"mui.back = function() {",
|
670
|
+
"\t//首次按键,提示‘再按一次退出应用’",
|
671
|
+
"\tif (!first) {",
|
672
|
+
"\t\tfirst = new Date().getTime();",
|
673
|
+
"\t\tmui.toast('再按一次退出应用');",
|
674
|
+
"\t\tsetTimeout(function() {",
|
675
|
+
"\t\t\tfirst = null;",
|
676
|
+
"\t\t}, 1000);",
|
677
|
+
"\t} else {",
|
678
|
+
"\t\tif (new Date().getTime() - first < 1000) {",
|
679
|
+
"\t\t\tplus.runtime.quit();",
|
680
|
+
"\t\t}",
|
681
|
+
"\t}",
|
682
|
+
"};"
|
683
|
+
],
|
684
|
+
"prefix": "mbackDouble",
|
685
|
+
"project": "Web,App,Wap2App",
|
686
|
+
"scope": "typescript,javascript"
|
687
|
+
},
|
688
|
+
"mui.backFunction(重写返回逻辑)": {
|
689
|
+
"body": ["mui.back=function () {", " $0\t", "}"],
|
690
|
+
"prefix": "mbackfunction",
|
691
|
+
"project": "Web,App,Wap2App",
|
692
|
+
"scope": "typescript,javascript"
|
693
|
+
},
|
694
|
+
"mui.backTask(双击进入后台)": {
|
695
|
+
"body": [
|
696
|
+
"//首页返回键处理",
|
697
|
+
"//处理逻辑:1秒内,连续两次按返回键,则进入后台;",
|
698
|
+
"var first = null;",
|
699
|
+
"mui.back = function() {",
|
700
|
+
"\t//首次按键,提示‘再按一次退出应用’",
|
701
|
+
"\tif (!first) {",
|
702
|
+
"\t\tfirst = new Date().getTime();",
|
703
|
+
"\t\tmui.toast('再按一次退出应用');",
|
704
|
+
"\t\tsetTimeout(function() {",
|
705
|
+
"\t\t\tfirst = null;",
|
706
|
+
"\t\t}, 1000);",
|
707
|
+
"\t} else {",
|
708
|
+
"\t\tif (new Date().getTime() - first < 1000) {",
|
709
|
+
"\t\t\tvar main = plus.android.runtimeMainActivity();",
|
710
|
+
" main.moveTaskToBack(false);",
|
711
|
+
"\t\t}",
|
712
|
+
"\t}",
|
713
|
+
"};"
|
714
|
+
],
|
715
|
+
"prefix": "mbackMoveTaskToBack",
|
716
|
+
"project": "Web,App,Wap2App",
|
717
|
+
"scope": "typescript,javascript"
|
718
|
+
},
|
719
|
+
"mui.closePopup()": {
|
720
|
+
"body": ["mui.closePopup()$0"],
|
721
|
+
"prefix": "mdclosePopup",
|
722
|
+
"project": "Web,App,Wap2App",
|
723
|
+
"scope": "typescript,javascript"
|
724
|
+
},
|
725
|
+
"mui.closePopups()": {
|
726
|
+
"body": ["mui.closePopups()$0"],
|
727
|
+
"prefix": "mdclosePopups",
|
728
|
+
"project": "Web,App,Wap2App",
|
729
|
+
"scope": "typescript,javascript"
|
730
|
+
},
|
731
|
+
"mui.confirm()": {
|
732
|
+
"body": [
|
733
|
+
"mui.confirm('${1:message}','${2:title}',['${3:取消}','${4:确认}'],function (${5:e}) {",
|
734
|
+
"\t${5:e}.index$0",
|
735
|
+
"}${6:,'div'})"
|
736
|
+
],
|
737
|
+
"prefix": "mdconfirm",
|
738
|
+
"project": "Web,App,Wap2App",
|
739
|
+
"scope": "typescript,javascript"
|
740
|
+
},
|
741
|
+
"mui.currentWebview": {
|
742
|
+
"body": ["mui.currentWebview."],
|
743
|
+
"prefix": "mcurrent",
|
744
|
+
"project": "Web,App,Wap2App",
|
745
|
+
"scope": "typescript,javascript",
|
746
|
+
"triggerAssist": true
|
747
|
+
},
|
748
|
+
"mui.each()": {
|
749
|
+
"body": [
|
750
|
+
"mui.each(${1:obj},function (${2:index},${3:element}) {",
|
751
|
+
"\t$0",
|
752
|
+
"})"
|
753
|
+
],
|
754
|
+
"prefix": "meach",
|
755
|
+
"project": "Web,App,Wap2App",
|
756
|
+
"scope": "typescript,javascript"
|
757
|
+
},
|
758
|
+
"mui.extend()": {
|
759
|
+
"body": ["mui.extend(${1|'target'|},${2:'source'},${3:'deep',true,false})"],
|
760
|
+
"prefix": "mextend",
|
761
|
+
"project": "Web,App,Wap2App",
|
762
|
+
"scope": "typescript,javascript"
|
763
|
+
},
|
764
|
+
"mui.fire()": {
|
765
|
+
"body": ["mui.fire(${1:targetWebviewObj},'${2:event}',{${3:data}})"],
|
766
|
+
"prefix": "mfire",
|
767
|
+
"project": "Web,App,Wap2App",
|
768
|
+
"scope": "typescript,javascript",
|
769
|
+
"triggerAssist": true
|
770
|
+
},
|
771
|
+
"mui.get()": {
|
772
|
+
"body": [
|
773
|
+
"mui.get('$1',{",
|
774
|
+
"\t\t$2",
|
775
|
+
"\t},function(${3:data}){",
|
776
|
+
"\t\t$0",
|
777
|
+
"\t},'${4:json}'",
|
778
|
+
");"
|
779
|
+
],
|
780
|
+
"prefix": "mget",
|
781
|
+
"project": "Web,App,Wap2App",
|
782
|
+
"scope": "typescript,javascript",
|
783
|
+
"triggerAssist": true
|
784
|
+
},
|
785
|
+
"mui.getJSON()": {
|
786
|
+
"body": ["mui.getJSON('$1',{$2},function($3){", "\t\t$4", "\t}", ");$0"],
|
787
|
+
"prefix": "mjson",
|
788
|
+
"project": "Web,App,Wap2App",
|
789
|
+
"scope": "typescript,javascript",
|
790
|
+
"triggerAssist": true
|
791
|
+
},
|
792
|
+
"mui.init": {
|
793
|
+
"body": ["mui.init({$0})"],
|
794
|
+
"prefix": "minit",
|
795
|
+
"project": "Web,App,Wap2App",
|
796
|
+
"scope": "typescript,javascript"
|
797
|
+
},
|
798
|
+
"mui.init({侧滑返回})": {
|
799
|
+
"body": ["mui.init({", "\tswipeBack:${1|true,false|} ", ");$0"],
|
800
|
+
"prefix": "minswipeback",
|
801
|
+
"project": "Web,App,Wap2App",
|
802
|
+
"scope": "typescript,javascript"
|
803
|
+
},
|
804
|
+
"mui.init({刷新组件})": {
|
805
|
+
"body": [
|
806
|
+
"mui.init({",
|
807
|
+
" pullRefresh : {",
|
808
|
+
" container:'#${1:refreshContainer}',",
|
809
|
+
" down : {",
|
810
|
+
" callback :${2:pullfresh}",
|
811
|
+
" },",
|
812
|
+
" up : {",
|
813
|
+
" callback :${3:pullfresh} ",
|
814
|
+
" }",
|
815
|
+
" }",
|
816
|
+
"});$0"
|
817
|
+
],
|
818
|
+
"prefix": "minpullRefresh",
|
819
|
+
"project": "Web,App,Wap2App",
|
820
|
+
"scope": "typescript,javascript",
|
821
|
+
"triggerAssist": true
|
822
|
+
},
|
823
|
+
"mui.init({子页面})": {
|
824
|
+
"body": [
|
825
|
+
"mui.init({",
|
826
|
+
"\tsubpages:[{",
|
827
|
+
"\t url:'${1:url}',",
|
828
|
+
" id:'${2:id}',",
|
829
|
+
" styles:{",
|
830
|
+
" $3",
|
831
|
+
" },",
|
832
|
+
" extras:{$4}",
|
833
|
+
"\t}]",
|
834
|
+
"})$0"
|
835
|
+
],
|
836
|
+
"prefix": "minsubpage",
|
837
|
+
"project": "Web,App,Wap2App",
|
838
|
+
"scope": "typescript,javascript",
|
839
|
+
"triggerAssist": true
|
840
|
+
},
|
841
|
+
"mui.init({手势事件})": {
|
842
|
+
"body": [
|
843
|
+
"mui.init({",
|
844
|
+
" \tgestureConfig:{",
|
845
|
+
"\t tap: ${1|true,false|}, ",
|
846
|
+
"\t doubletap: ${2|true,false|}, ",
|
847
|
+
"\t longtap: ${3|true,false|}, ",
|
848
|
+
"\t swipe: ${4|true,false|}, ",
|
849
|
+
"\t drag: ${5|true,false|}, ",
|
850
|
+
"\t hold:${6|false,true|},",
|
851
|
+
"\t release:${7|false,true|}",
|
852
|
+
" \t}",
|
853
|
+
"});$0"
|
854
|
+
],
|
855
|
+
"prefix": "mingesture",
|
856
|
+
"project": "Web,App,Wap2App",
|
857
|
+
"scope": "typescript,javascript"
|
858
|
+
},
|
859
|
+
"mui.init({按键绑定})": {
|
860
|
+
"body": [
|
861
|
+
"mui.init({",
|
862
|
+
"\tkeyEventBind: {",
|
863
|
+
"\t\tbackbutton: ${1|true,false|}, ",
|
864
|
+
"\t\tmenubutton: ${2|true,false|} ",
|
865
|
+
"\t},",
|
866
|
+
"})"
|
867
|
+
],
|
868
|
+
"prefix": "minkeyevent",
|
869
|
+
"project": "Web,App,Wap2App",
|
870
|
+
"scope": "typescript,javascript"
|
871
|
+
},
|
872
|
+
"mui.init({设置状态栏颜色})": {
|
873
|
+
"body": ["mui.init({", "\tstatusBarBackground:'#${1:FFFFFF}'", "})"],
|
874
|
+
"prefix": "minstatusbar",
|
875
|
+
"project": "Web,App,Wap2App",
|
876
|
+
"scope": "typescript,javascript",
|
877
|
+
"triggerAssist": true
|
878
|
+
},
|
879
|
+
"mui.init({重写窗口关闭逻辑})": {
|
880
|
+
"body": ["mui.init({", "\tbeforeback:function () {", "\t\t$0", "\t}", "})"],
|
881
|
+
"prefix": "minbeforeback",
|
882
|
+
"project": "Web,App,Wap2App",
|
883
|
+
"scope": "typescript,javascript"
|
884
|
+
},
|
885
|
+
"mui.init({预加载})": {
|
886
|
+
"body": [
|
887
|
+
"mui.init({",
|
888
|
+
"\tpreloadPages:[{",
|
889
|
+
"\t url:'${1:url}',",
|
890
|
+
" id:'${2:id}',",
|
891
|
+
" styles:{",
|
892
|
+
" $3",
|
893
|
+
" },",
|
894
|
+
" extras:{$4}",
|
895
|
+
"\t}]",
|
896
|
+
"})$0"
|
897
|
+
],
|
898
|
+
"prefix": "minpreload",
|
899
|
+
"project": "Web,App,Wap2App",
|
900
|
+
"scope": "typescript,javascript",
|
901
|
+
"triggerAssist": true
|
902
|
+
},
|
903
|
+
"mui.init({预加载数量})": {
|
904
|
+
"body": ["preloadLimit:${1:5}"],
|
905
|
+
"prefix": "minprelimit",
|
906
|
+
"project": "Web,App,Wap2App",
|
907
|
+
"scope": "typescript,javascript",
|
908
|
+
"triggerAssist": true
|
909
|
+
},
|
910
|
+
"mui.later()": {
|
911
|
+
"body": ["mui.later(function(){", "\t$2 ", "},${1|500,1000,1500,2000|})"],
|
912
|
+
"prefix": "mlater",
|
913
|
+
"project": "Web,App,Wap2App",
|
914
|
+
"scope": "typescript,javascript"
|
915
|
+
},
|
916
|
+
"mui.mask": {
|
917
|
+
"body": [
|
918
|
+
"var ${1:mask} = mui.createMask(function () {",
|
919
|
+
"\t$2",
|
920
|
+
"})",
|
921
|
+
"${1:mask}.show()"
|
922
|
+
],
|
923
|
+
"prefix": "mmask",
|
924
|
+
"project": "Web,App,Wap2App",
|
925
|
+
"scope": "typescript,javascript"
|
926
|
+
},
|
927
|
+
"mui.off": {
|
928
|
+
"body": ["mui('$1').off('${2:tap}','$3',function($4){", " $0", "}) "],
|
929
|
+
"prefix": "mmoff",
|
930
|
+
"project": "Web,App,Wap2App",
|
931
|
+
"scope": "typescript,javascript",
|
932
|
+
"triggerAssist": true
|
933
|
+
},
|
934
|
+
"mui.on": {
|
935
|
+
"body": ["mui('$1').on('${2:tap}','$3',function($4){", " $0", "}) "],
|
936
|
+
"prefix": "mmon",
|
937
|
+
"project": "Web,App,Wap2App",
|
938
|
+
"scope": "typescript,javascript",
|
939
|
+
"triggerAssist": true
|
940
|
+
},
|
941
|
+
"mui.open": {
|
942
|
+
"body": ["mui.openWindow('${1:url}','${2:id}',{$3})"],
|
943
|
+
"prefix": "mopen",
|
944
|
+
"project": "Web,App,Wap2App",
|
945
|
+
"scope": "typescript,javascript",
|
946
|
+
"triggerAssist": true
|
947
|
+
},
|
948
|
+
"mui.os": {
|
949
|
+
"body": ["mui.os."],
|
950
|
+
"prefix": "mos",
|
951
|
+
"project": "Web,App,Wap2App",
|
952
|
+
"scope": "typescript,javascript",
|
953
|
+
"triggerAssist": true
|
954
|
+
},
|
955
|
+
"mui.plusReady()": {
|
956
|
+
"body": ["mui.plusReady(function () {", " $1", "})$0"],
|
957
|
+
"prefix": "mplusready",
|
958
|
+
"project": "Web,App,Wap2App",
|
959
|
+
"scope": "typescript,javascript"
|
960
|
+
},
|
961
|
+
"mui.post()": {
|
962
|
+
"body": [
|
963
|
+
"mui.post('$1',{",
|
964
|
+
"\t\t$2",
|
965
|
+
"\t},function(${3:data}){",
|
966
|
+
"\t\t$0",
|
967
|
+
"\t},'${4:json}'",
|
968
|
+
");"
|
969
|
+
],
|
970
|
+
"prefix": "mpost",
|
971
|
+
"project": "Web,App,Wap2App",
|
972
|
+
"scope": "typescript,javascript",
|
973
|
+
"triggerAssist": true
|
974
|
+
},
|
975
|
+
"mui.preload()": {
|
976
|
+
"body": [
|
977
|
+
"mui.preload({",
|
978
|
+
"\turl:'${1:url}',",
|
979
|
+
"\tid:'${2:id}',",
|
980
|
+
"\tstyles:{$3},//窗口参数",
|
981
|
+
"\textras:{$4}//自定义扩展参数",
|
982
|
+
"})$0"
|
983
|
+
],
|
984
|
+
"prefix": "mpreload",
|
985
|
+
"project": "Web,App,Wap2App",
|
986
|
+
"scope": "typescript,javascript",
|
987
|
+
"triggerAssist": true
|
988
|
+
},
|
989
|
+
"mui.prompt()": {
|
990
|
+
"body": [
|
991
|
+
" mui.prompt('${1:text}','${2:defaultText}','${3:title}',['${4:取消}','${5:确认}'],function (${6:e}) {",
|
992
|
+
" ${6:e}.index$0",
|
993
|
+
"}${7:,'div'})"
|
994
|
+
],
|
995
|
+
"prefix": "mdprompt",
|
996
|
+
"project": "Web,App,Wap2App",
|
997
|
+
"scope": "typescript,javascript"
|
998
|
+
},
|
999
|
+
"mui.ready": {
|
1000
|
+
"body": ["mui.ready(function () {", "\t$0", "})"],
|
1001
|
+
"prefix": "mready",
|
1002
|
+
"project": "Web,App,Wap2App",
|
1003
|
+
"scope": "typescript,javascript"
|
1004
|
+
},
|
1005
|
+
"mui.scrollTo()": {
|
1006
|
+
"body": [
|
1007
|
+
"mui.scrollTo(${1:ypos},${2:duration},${3:/function () {",
|
1008
|
+
" \t",
|
1009
|
+
"}}$0"
|
1010
|
+
],
|
1011
|
+
"prefix": "mscrollto",
|
1012
|
+
"project": "Web,App,Wap2App",
|
1013
|
+
"scope": "typescript,javascript"
|
1014
|
+
},
|
1015
|
+
"mui.toast()": {
|
1016
|
+
"body": ["mui.toast('${1:message}')$0"],
|
1017
|
+
"prefix": "mdtoast",
|
1018
|
+
"project": "Web,App,Wap2App",
|
1019
|
+
"scope": "typescript,javascript"
|
1020
|
+
},
|
1021
|
+
"mui.trigger()": {
|
1022
|
+
"body": ["mui.trigger(${1:dom},'${3:tap}'${4:,{a:'as'}})"],
|
1023
|
+
"prefix": "mtrigger",
|
1024
|
+
"project": "Web,App,Wap2App",
|
1025
|
+
"scope": "typescript,javascript"
|
1026
|
+
},
|
1027
|
+
"navigator.userAgent;": {
|
1028
|
+
"body": ["navigator.userAgent"],
|
1029
|
+
"prefix": "nuser",
|
1030
|
+
"scope": "typescript,javascript"
|
1031
|
+
},
|
1032
|
+
"plus.Screen": {
|
1033
|
+
"body": ["plus.Screen."],
|
1034
|
+
"prefix": "pScreen",
|
1035
|
+
"project": "Web,App,Wap2App",
|
1036
|
+
"scope": "typescript,javascript",
|
1037
|
+
"triggerAssist": true
|
1038
|
+
},
|
1039
|
+
"plus.accelerometer": {
|
1040
|
+
"body": ["plus.accelerometer."],
|
1041
|
+
"prefix": "pacce",
|
1042
|
+
"project": "Web,App,Wap2App",
|
1043
|
+
"scope": "typescript,javascript",
|
1044
|
+
"triggerAssist": true
|
1045
|
+
},
|
1046
|
+
"plus.android": {
|
1047
|
+
"body": ["plus.android."],
|
1048
|
+
"prefix": "pandroid",
|
1049
|
+
"project": "Web,App,Wap2App",
|
1050
|
+
"scope": "typescript,javascript",
|
1051
|
+
"triggerAssist": true
|
1052
|
+
},
|
1053
|
+
"plus.audio": {
|
1054
|
+
"body": ["plus.audio."],
|
1055
|
+
"prefix": "paudio",
|
1056
|
+
"project": "Web,App,Wap2App",
|
1057
|
+
"scope": "typescript,javascript",
|
1058
|
+
"triggerAssist": true
|
1059
|
+
},
|
1060
|
+
"plus.barcode": {
|
1061
|
+
"body": ["plus.barcode."],
|
1062
|
+
"prefix": "pbarcode",
|
1063
|
+
"project": "Web,App,Wap2App",
|
1064
|
+
"scope": "typescript,javascript",
|
1065
|
+
"triggerAssist": true
|
1066
|
+
},
|
1067
|
+
"plus.camera": {
|
1068
|
+
"body": ["plus.camera."],
|
1069
|
+
"prefix": "pcamera",
|
1070
|
+
"project": "Web,App,Wap2App",
|
1071
|
+
"scope": "typescript,javascript",
|
1072
|
+
"triggerAssist": true
|
1073
|
+
},
|
1074
|
+
"plus.contacts": {
|
1075
|
+
"body": ["plus.contacts."],
|
1076
|
+
"prefix": "pcontacts",
|
1077
|
+
"project": "Web,App,Wap2App",
|
1078
|
+
"scope": "typescript,javascript",
|
1079
|
+
"triggerAssist": true
|
1080
|
+
},
|
1081
|
+
"plus.device": {
|
1082
|
+
"body": ["plus.device."],
|
1083
|
+
"prefix": "pdevice",
|
1084
|
+
"project": "Web,App,Wap2App",
|
1085
|
+
"scope": "typescript,javascript",
|
1086
|
+
"triggerAssist": true
|
1087
|
+
},
|
1088
|
+
"plus.display": {
|
1089
|
+
"body": ["plus.display."],
|
1090
|
+
"prefix": "pdisplay",
|
1091
|
+
"project": "Web,App,Wap2App",
|
1092
|
+
"scope": "typescript,javascript",
|
1093
|
+
"triggerAssist": true
|
1094
|
+
},
|
1095
|
+
"plus.downloader": {
|
1096
|
+
"body": ["plus.downloader."],
|
1097
|
+
"prefix": "pdown",
|
1098
|
+
"project": "Web,App,Wap2App",
|
1099
|
+
"scope": "typescript,javascript",
|
1100
|
+
"triggerAssist": true
|
1101
|
+
},
|
1102
|
+
"plus.gallery": {
|
1103
|
+
"body": ["plus.gallery."],
|
1104
|
+
"prefix": "pgallery",
|
1105
|
+
"project": "Web,App,Wap2App",
|
1106
|
+
"scope": "typescript,javascript",
|
1107
|
+
"triggerAssist": true
|
1108
|
+
},
|
1109
|
+
"plus.geolocation": {
|
1110
|
+
"body": ["plus.geolocation."],
|
1111
|
+
"prefix": "pgeolocation",
|
1112
|
+
"project": "Web,App,Wap2App",
|
1113
|
+
"scope": "typescript,javascript",
|
1114
|
+
"triggerAssist": true
|
1115
|
+
},
|
1116
|
+
"plus.io": {
|
1117
|
+
"body": ["plus.io."],
|
1118
|
+
"prefix": "pio",
|
1119
|
+
"project": "Web,App,Wap2App",
|
1120
|
+
"scope": "typescript,javascript",
|
1121
|
+
"triggerAssist": true
|
1122
|
+
},
|
1123
|
+
"plus.ios": {
|
1124
|
+
"body": ["plus.ios."],
|
1125
|
+
"prefix": "pios",
|
1126
|
+
"project": "Web,App,Wap2App",
|
1127
|
+
"scope": "typescript,javascript",
|
1128
|
+
"triggerAssist": true
|
1129
|
+
},
|
1130
|
+
"plus.key": {
|
1131
|
+
"body": ["plus.key."],
|
1132
|
+
"prefix": "pkey",
|
1133
|
+
"project": "Web,App,Wap2App",
|
1134
|
+
"scope": "typescript,javascript",
|
1135
|
+
"triggerAssist": true
|
1136
|
+
},
|
1137
|
+
"plus.maps": {
|
1138
|
+
"body": ["plus.maps."],
|
1139
|
+
"prefix": "pmaps",
|
1140
|
+
"project": "Web,App,Wap2App",
|
1141
|
+
"scope": "typescript,javascript",
|
1142
|
+
"triggerAssist": true
|
1143
|
+
},
|
1144
|
+
"plus.messaging": {
|
1145
|
+
"body": ["plus.messaging."],
|
1146
|
+
"prefix": "pmessaging",
|
1147
|
+
"project": "Web,App,Wap2App",
|
1148
|
+
"scope": "typescript,javascript",
|
1149
|
+
"triggerAssist": true
|
1150
|
+
},
|
1151
|
+
"plus.nativeObj": {
|
1152
|
+
"body": ["plus.nativeObj."],
|
1153
|
+
"prefix": "pnativeObj",
|
1154
|
+
"project": "Web,App,Wap2App",
|
1155
|
+
"scope": "typescript,javascript",
|
1156
|
+
"triggerAssist": true
|
1157
|
+
},
|
1158
|
+
"plus.nativeUI": {
|
1159
|
+
"body": ["plus.nativeUI."],
|
1160
|
+
"prefix": "pnativeUI",
|
1161
|
+
"project": "Web,App,Wap2App",
|
1162
|
+
"scope": "typescript,javascript",
|
1163
|
+
"triggerAssist": true
|
1164
|
+
},
|
1165
|
+
"plus.nativeUI.alert": {
|
1166
|
+
"body": ["plus.nativeUI.alert($1)"],
|
1167
|
+
"prefix": "pnalert",
|
1168
|
+
"project": "uni-app,App,Wap2App",
|
1169
|
+
"scope": "typescript,javascript"
|
1170
|
+
},
|
1171
|
+
"plus.navigator": {
|
1172
|
+
"body": ["plus.navigatorsc."],
|
1173
|
+
"prefix": "pnavigator",
|
1174
|
+
"project": "Web,App,Wap2App",
|
1175
|
+
"scope": "typescript,javascript",
|
1176
|
+
"triggerAssist": true
|
1177
|
+
},
|
1178
|
+
"plus.net": {
|
1179
|
+
"body": ["plus.net."],
|
1180
|
+
"prefix": "pnet",
|
1181
|
+
"project": "Web,App,Wap2App",
|
1182
|
+
"scope": "typescript,javascript",
|
1183
|
+
"triggerAssist": true
|
1184
|
+
},
|
1185
|
+
"plus.networkinfo": {
|
1186
|
+
"body": ["plus.networkinfo."],
|
1187
|
+
"prefix": "pnetworkinfo",
|
1188
|
+
"project": "Web,App,Wap2App",
|
1189
|
+
"scope": "typescript,javascript",
|
1190
|
+
"triggerAssist": true
|
1191
|
+
},
|
1192
|
+
"plus.oauth": {
|
1193
|
+
"body": ["plus.oauth."],
|
1194
|
+
"prefix": "poauth",
|
1195
|
+
"project": "Web,App,Wap2App",
|
1196
|
+
"scope": "typescript,javascript",
|
1197
|
+
"triggerAssist": true
|
1198
|
+
},
|
1199
|
+
"plus.orientation": {
|
1200
|
+
"body": ["plus.orientation."],
|
1201
|
+
"prefix": "porientation",
|
1202
|
+
"project": "Web,App,Wap2App",
|
1203
|
+
"scope": "typescript,javascript",
|
1204
|
+
"triggerAssist": true
|
1205
|
+
},
|
1206
|
+
"plus.os": {
|
1207
|
+
"body": ["plus.os."],
|
1208
|
+
"prefix": "pos",
|
1209
|
+
"project": "Web,App,Wap2App",
|
1210
|
+
"scope": "typescript,javascript",
|
1211
|
+
"triggerAssist": true
|
1212
|
+
},
|
1213
|
+
"plus.payment": {
|
1214
|
+
"body": ["plus.payment."],
|
1215
|
+
"prefix": "ppayment",
|
1216
|
+
"project": "Web,App,Wap2App",
|
1217
|
+
"scope": "typescript,javascript",
|
1218
|
+
"triggerAssist": true
|
1219
|
+
},
|
1220
|
+
"plus.proximity": {
|
1221
|
+
"body": ["plus.proximity."],
|
1222
|
+
"prefix": "pproximity",
|
1223
|
+
"project": "Web,App,Wap2App",
|
1224
|
+
"scope": "typescript,javascript",
|
1225
|
+
"triggerAssist": true
|
1226
|
+
},
|
1227
|
+
"plus.push": {
|
1228
|
+
"body": ["plus.push."],
|
1229
|
+
"prefix": "ppush",
|
1230
|
+
"project": "Web,App,Wap2App",
|
1231
|
+
"scope": "typescript,javascript",
|
1232
|
+
"triggerAssist": true
|
1233
|
+
},
|
1234
|
+
"plus.runtime": {
|
1235
|
+
"body": ["plus.runtime."],
|
1236
|
+
"prefix": "pruntime",
|
1237
|
+
"project": "Web,App,Wap2App",
|
1238
|
+
"scope": "typescript,javascript",
|
1239
|
+
"triggerAssist": true
|
1240
|
+
},
|
1241
|
+
"plus.share": {
|
1242
|
+
"body": ["plus.share."],
|
1243
|
+
"prefix": "pshare",
|
1244
|
+
"project": "Web,App,Wap2App",
|
1245
|
+
"scope": "typescript,javascript",
|
1246
|
+
"triggerAssist": true
|
1247
|
+
},
|
1248
|
+
"plus.speech": {
|
1249
|
+
"body": ["plus.speech.$0"],
|
1250
|
+
"prefix": "pspeech",
|
1251
|
+
"project": "Web,App,Wap2App",
|
1252
|
+
"scope": "typescript,javascript",
|
1253
|
+
"triggerAssist": true
|
1254
|
+
},
|
1255
|
+
"plus.statistic": {
|
1256
|
+
"body": ["plus.statistic."],
|
1257
|
+
"prefix": "pstatistic",
|
1258
|
+
"project": "Web,App,Wap2App",
|
1259
|
+
"scope": "typescript,javascript",
|
1260
|
+
"triggerAssist": true
|
1261
|
+
},
|
1262
|
+
"plus.storage": {
|
1263
|
+
"body": ["plus.storage."],
|
1264
|
+
"prefix": "pstorage",
|
1265
|
+
"project": "Web,App,Wap2App",
|
1266
|
+
"scope": "typescript,javascript",
|
1267
|
+
"triggerAssist": true
|
1268
|
+
},
|
1269
|
+
"plus.uploader": {
|
1270
|
+
"body": ["plus.uploader."],
|
1271
|
+
"prefix": "puploader",
|
1272
|
+
"project": "Web,App,Wap2App",
|
1273
|
+
"scope": "typescript,javascript",
|
1274
|
+
"triggerAssist": true
|
1275
|
+
},
|
1276
|
+
"plus.webview": {
|
1277
|
+
"body": ["plus.webview."],
|
1278
|
+
"prefix": "pweb",
|
1279
|
+
"project": "uni-app,App,Wap2App",
|
1280
|
+
"scope": "typescript,javascript",
|
1281
|
+
"triggerAssist": true
|
1282
|
+
},
|
1283
|
+
"plus.zip": {
|
1284
|
+
"body": ["plus.zip."],
|
1285
|
+
"prefix": "pzip",
|
1286
|
+
"project": "Web,App,Wap2App",
|
1287
|
+
"scope": "typescript,javascript",
|
1288
|
+
"triggerAssist": true
|
1289
|
+
},
|
1290
|
+
"plusReady": {
|
1291
|
+
"body": [
|
1292
|
+
"function plusReady(){",
|
1293
|
+
" $0",
|
1294
|
+
"}",
|
1295
|
+
"if (window.plus) {",
|
1296
|
+
" plusReady()",
|
1297
|
+
"} else{",
|
1298
|
+
" document.addEventListener('plusready',plusReady,false);",
|
1299
|
+
"}"
|
1300
|
+
],
|
1301
|
+
"prefix": "pready",
|
1302
|
+
"project": "Web,App,Wap2App",
|
1303
|
+
"scope": "typescript,javascript",
|
1304
|
+
"triggerAssist": true
|
1305
|
+
},
|
1306
|
+
"querySelector": {
|
1307
|
+
"body": ["document.querySelector('$1').$0"],
|
1308
|
+
"prefix": "ds",
|
1309
|
+
"project": "Web,App,Wap2App",
|
1310
|
+
"scope": "typescript,javascript",
|
1311
|
+
"triggerAssist": true
|
1312
|
+
},
|
1313
|
+
"querySelectoraddEventListener": {
|
1314
|
+
"body": [
|
1315
|
+
"document.querySelector('$1').addEventListener('${2:tap}',function ($3) {",
|
1316
|
+
" $0",
|
1317
|
+
"})"
|
1318
|
+
],
|
1319
|
+
"prefix": "dsa",
|
1320
|
+
"project": "Web,App,Wap2App",
|
1321
|
+
"scope": "typescript,javascript",
|
1322
|
+
"triggerAssist": true
|
1323
|
+
},
|
1324
|
+
"redirectTo({...})": {
|
1325
|
+
"body": ["redirectTo({", "\turl: '$1'", "});$0"],
|
1326
|
+
"prefix": "redirectTo",
|
1327
|
+
"scope": "uni.method.js"
|
1328
|
+
},
|
1329
|
+
"return false": {
|
1330
|
+
"body": ["return false;"],
|
1331
|
+
"prefix": "rfalse",
|
1332
|
+
"scope": "typescript,javascript"
|
1333
|
+
},
|
1334
|
+
"return false;": {
|
1335
|
+
"body": ["return false;"],
|
1336
|
+
"prefix": "rfalse",
|
1337
|
+
"project": "Web,App,Wap2App",
|
1338
|
+
"scope": "typescript,javascript"
|
1339
|
+
},
|
1340
|
+
"return true": {
|
1341
|
+
"body": ["return true;"],
|
1342
|
+
"prefix": "rtrue",
|
1343
|
+
"scope": "typescript,javascript"
|
1344
|
+
},
|
1345
|
+
"return true;": {
|
1346
|
+
"body": ["return true;"],
|
1347
|
+
"prefix": "rtrue",
|
1348
|
+
"project": "Web,App,Wap2App",
|
1349
|
+
"scope": "typescript,javascript"
|
1350
|
+
},
|
1351
|
+
"setTimeout function": {
|
1352
|
+
"body": ["setTimeout(function() {$0}, ${1:10});"],
|
1353
|
+
"prefix": "settimeout",
|
1354
|
+
"scope": "typescript,javascript"
|
1355
|
+
},
|
1356
|
+
"switch_case": {
|
1357
|
+
"body": [
|
1358
|
+
"switch (${1}){",
|
1359
|
+
"\tcase ${2:value}:",
|
1360
|
+
"\t\tbreak;",
|
1361
|
+
"\tdefault:",
|
1362
|
+
"\t\tbreak;",
|
1363
|
+
"}"
|
1364
|
+
],
|
1365
|
+
"prefix": "switchcase",
|
1366
|
+
"scope": "typescript,javascript"
|
1367
|
+
},
|
1368
|
+
"try{}catch(e)": {
|
1369
|
+
"body": [
|
1370
|
+
"try{",
|
1371
|
+
"\t$0",
|
1372
|
+
"}catch(e){",
|
1373
|
+
"\t//TODO handle the exception",
|
1374
|
+
"}"
|
1375
|
+
],
|
1376
|
+
"prefix": "trycatch",
|
1377
|
+
"scope": "typescript,javascript"
|
1378
|
+
},
|
1379
|
+
"typeof": {
|
1380
|
+
"body": ["typeof($1)==\"${2:undefined}\""],
|
1381
|
+
"prefix": "typeoff",
|
1382
|
+
"scope": "typescript,javascript"
|
1383
|
+
},
|
1384
|
+
"typeof!": {
|
1385
|
+
"body": ["typeof($1)!=\"${2:undefined}\""],
|
1386
|
+
"prefix": "typeof!",
|
1387
|
+
"scope": "typescript,javascript"
|
1388
|
+
},
|
1389
|
+
"uAlert": {
|
1390
|
+
"body": [
|
1391
|
+
"uni.showModal({",
|
1392
|
+
"\tcontent: '$1',",
|
1393
|
+
"\tshowCancel: false",
|
1394
|
+
"});"
|
1395
|
+
],
|
1396
|
+
"prefix": "ualert",
|
1397
|
+
"project": "uni-app",
|
1398
|
+
"scope": "typescript,javascript"
|
1399
|
+
},
|
1400
|
+
"uConfirm": {
|
1401
|
+
"body": [
|
1402
|
+
"uni.showModal({",
|
1403
|
+
"\tcontent: '$1',",
|
1404
|
+
"\tsuccess: function (res) {",
|
1405
|
+
"\t\tif (res.confirm) {",
|
1406
|
+
"\t\t\t$2",
|
1407
|
+
"\t\t} else if (res.cancel) {",
|
1408
|
+
"\t\t\t$3",
|
1409
|
+
"\t\t}",
|
1410
|
+
"\t}",
|
1411
|
+
"});"
|
1412
|
+
],
|
1413
|
+
"prefix": "uconfirm",
|
1414
|
+
"project": "uni-app",
|
1415
|
+
"scope": "typescript,javascript"
|
1416
|
+
},
|
1417
|
+
"uGetLocation": {
|
1418
|
+
"body": [
|
1419
|
+
"uni.getLocation({",
|
1420
|
+
"\ttype: 'wgs84',",
|
1421
|
+
"\tsuccess: res => {$0}",
|
1422
|
+
"\tfail: () => {},",
|
1423
|
+
"\tcomplete: () => {}",
|
1424
|
+
"});"
|
1425
|
+
],
|
1426
|
+
"prefix": "ugetlocation",
|
1427
|
+
"project": "uni-app",
|
1428
|
+
"scope": "typescript,javascript"
|
1429
|
+
},
|
1430
|
+
"uLogin": {
|
1431
|
+
"body": [
|
1432
|
+
"uni.login({",
|
1433
|
+
"\tprovider: '$1',",
|
1434
|
+
"\tsuccess: res => {},",
|
1435
|
+
"\tfail: () => {},",
|
1436
|
+
"\tcomplete: () => {}",
|
1437
|
+
"});"
|
1438
|
+
],
|
1439
|
+
"prefix": "ulogin",
|
1440
|
+
"project": "uni-app",
|
1441
|
+
"scope": "typescript,javascript"
|
1442
|
+
},
|
1443
|
+
"uNavigateBack": {
|
1444
|
+
"body": ["uni.navigateBack({", "\tdelta: $1", "});"],
|
1445
|
+
"prefix": "unavigateback",
|
1446
|
+
"project": "uni-app",
|
1447
|
+
"scope": "typescript,javascript"
|
1448
|
+
},
|
1449
|
+
"uNavigateTo": {
|
1450
|
+
"body": [
|
1451
|
+
"uni.navigateTo({",
|
1452
|
+
"\turl: '$1',",
|
1453
|
+
"\tsuccess: res => {},",
|
1454
|
+
"\tfail: () => {},",
|
1455
|
+
"\tcomplete: () => {}",
|
1456
|
+
"});"
|
1457
|
+
],
|
1458
|
+
"prefix": "unavigateto",
|
1459
|
+
"project": "uni-app",
|
1460
|
+
"scope": "typescript,javascript"
|
1461
|
+
},
|
1462
|
+
"uPay": {
|
1463
|
+
"body": [
|
1464
|
+
"uni.requestPayment({",
|
1465
|
+
"\tprovider: '$1',",
|
1466
|
+
"\torderInfo: '$2',",
|
1467
|
+
"\tsuccess: res => {},",
|
1468
|
+
"\tfail: () => {},",
|
1469
|
+
"\tcomplete: () => {}",
|
1470
|
+
"});"
|
1471
|
+
],
|
1472
|
+
"prefix": "upay",
|
1473
|
+
"project": "uni-app",
|
1474
|
+
"scope": "typescript,javascript"
|
1475
|
+
},
|
1476
|
+
"uRedirectTo": {
|
1477
|
+
"body": [
|
1478
|
+
"uni.redirectTo({",
|
1479
|
+
"\turl: '$1',",
|
1480
|
+
"\tsuccess: res => {},",
|
1481
|
+
"\tfail: () => {},",
|
1482
|
+
"\tcomplete: () => {}",
|
1483
|
+
"});"
|
1484
|
+
],
|
1485
|
+
"prefix": "uredirectto",
|
1486
|
+
"project": "uni-app",
|
1487
|
+
"scope": "typescript,javascript"
|
1488
|
+
},
|
1489
|
+
"uRequest": {
|
1490
|
+
"body": [
|
1491
|
+
"uni.request({",
|
1492
|
+
"\turl: '$1',",
|
1493
|
+
"\tmethod: 'GET$2',",
|
1494
|
+
"\tdata: {$3},",
|
1495
|
+
"\tsuccess: res => {$0},",
|
1496
|
+
"\tfail: () => {},",
|
1497
|
+
"\tcomplete: () => {}",
|
1498
|
+
"});"
|
1499
|
+
],
|
1500
|
+
"prefix": "urequest",
|
1501
|
+
"project": "uni-app",
|
1502
|
+
"scope": "typescript,javascript"
|
1503
|
+
},
|
1504
|
+
"uRequestPayment": {
|
1505
|
+
"body": [
|
1506
|
+
"uni.requestPayment({",
|
1507
|
+
"\tprovider: '$1',",
|
1508
|
+
"\torderInfo: '$2',",
|
1509
|
+
"\tsuccess: res => {},",
|
1510
|
+
"\tfail: () => {},",
|
1511
|
+
"\tcomplete: () => {}",
|
1512
|
+
"});"
|
1513
|
+
],
|
1514
|
+
"prefix": "urequestpayment",
|
1515
|
+
"project": "uni-app",
|
1516
|
+
"scope": "typescript,javascript"
|
1517
|
+
},
|
1518
|
+
"uShare": {
|
1519
|
+
"body": [
|
1520
|
+
"uni.share({",
|
1521
|
+
"\tprovider: '$1',",
|
1522
|
+
"\ttype: 0$2,",
|
1523
|
+
"\ttitle: '$3',",
|
1524
|
+
"\thref: '$4',",
|
1525
|
+
"\timageUrl: '$5',",
|
1526
|
+
"\tsuccess: res => {},",
|
1527
|
+
"\tfail: () => {},",
|
1528
|
+
"\tcomplete: () => {}",
|
1529
|
+
"});"
|
1530
|
+
],
|
1531
|
+
"prefix": "ushare",
|
1532
|
+
"project": "uni-app",
|
1533
|
+
"scope": "typescript,javascript"
|
1534
|
+
},
|
1535
|
+
"uShowActionSheet": {
|
1536
|
+
"body": [
|
1537
|
+
"uni.showActionSheet({",
|
1538
|
+
"\titemList: $1,",
|
1539
|
+
"\tsuccess: res => {},",
|
1540
|
+
"\tfail: () => {},",
|
1541
|
+
"\tcomplete: () => {}",
|
1542
|
+
"});"
|
1543
|
+
],
|
1544
|
+
"prefix": "ushowactionsheet",
|
1545
|
+
"project": "uni-app",
|
1546
|
+
"scope": "typescript,javascript"
|
1547
|
+
},
|
1548
|
+
"uShowLoading": {
|
1549
|
+
"body": ["uni.showLoading({", "\ttitle: '$1',", "\tmask: false", "});"],
|
1550
|
+
"prefix": "ushowloading",
|
1551
|
+
"project": "uni-app",
|
1552
|
+
"scope": "typescript,javascript"
|
1553
|
+
},
|
1554
|
+
"uShowModal": {
|
1555
|
+
"body": [
|
1556
|
+
"uni.showModal({",
|
1557
|
+
"\ttitle: '$1',",
|
1558
|
+
"\tcontent: '$2',",
|
1559
|
+
"\tshowCancel: false$3,",
|
1560
|
+
"\tcancelText: '$4',",
|
1561
|
+
"\tconfirmText: '$5',",
|
1562
|
+
"\tsuccess: res => {$0},",
|
1563
|
+
"\tfail: () => {},",
|
1564
|
+
"\tcomplete: () => {}",
|
1565
|
+
"});"
|
1566
|
+
],
|
1567
|
+
"prefix": "ushowmodal",
|
1568
|
+
"project": "uni-app",
|
1569
|
+
"scope": "typescript,javascript"
|
1570
|
+
},
|
1571
|
+
"uShowToast": {
|
1572
|
+
"body": ["uni.showToast({", "\ttitle: '$1'", "});"],
|
1573
|
+
"prefix": "ushowtoast",
|
1574
|
+
"project": "uni-app",
|
1575
|
+
"scope": "typescript,javascript"
|
1576
|
+
},
|
1577
|
+
"uShowToastNoIcon": {
|
1578
|
+
"body": ["uni.showToast({", "\ttitle: '$1',", "\ticon: 'none'", "});"],
|
1579
|
+
"prefix": "ushowtoastnoicon",
|
1580
|
+
"project": "uni-app",
|
1581
|
+
"scope": "typescript,javascript"
|
1582
|
+
},
|
1583
|
+
"uStartPullDownRefresh": {
|
1584
|
+
"body": [
|
1585
|
+
"uni.startPullDownRefresh({",
|
1586
|
+
"\tsuccess: res => {},",
|
1587
|
+
"\tfail: () => {},",
|
1588
|
+
"\tcomplete: () => {}",
|
1589
|
+
"});"
|
1590
|
+
],
|
1591
|
+
"prefix": "ustartpulldownrefresh",
|
1592
|
+
"project": "uni-app",
|
1593
|
+
"scope": "typescript,javascript"
|
1594
|
+
},
|
1595
|
+
"uStopPullDownRefresh": {
|
1596
|
+
"body": ["uni.stopPullDownRefresh();"],
|
1597
|
+
"prefix": "ustoppulldownrefresh",
|
1598
|
+
"project": "uni-app",
|
1599
|
+
"scope": "typescript,javascript"
|
1600
|
+
},
|
1601
|
+
"use strict": {
|
1602
|
+
"body": ["\"use strict\""],
|
1603
|
+
"prefix": "use",
|
1604
|
+
"scope": "typescript,javascript"
|
1605
|
+
},
|
1606
|
+
"var a=[];": {
|
1607
|
+
"body": ["var ${1:a}=[$2];"],
|
1608
|
+
"prefix": "vara",
|
1609
|
+
"scope": "typescript,javascript"
|
1610
|
+
},
|
1611
|
+
"var c = canvas": {
|
1612
|
+
"body": [
|
1613
|
+
"var ${2:c} = document.getElementById(\"$1\").getContext(\"2d\");"
|
1614
|
+
],
|
1615
|
+
"prefix": "varc",
|
1616
|
+
"scope": "typescript,javascript",
|
1617
|
+
"triggerAssist": true
|
1618
|
+
},
|
1619
|
+
"var currentWebview": {
|
1620
|
+
"body": ["var currentWebview = this.\\$mp.page.\\$getAppWebview()"],
|
1621
|
+
"prefix": "varcw",
|
1622
|
+
"project": "uni-app",
|
1623
|
+
"scope": "typescript,javascript"
|
1624
|
+
},
|
1625
|
+
"var i=0;": {
|
1626
|
+
"body": ["var ${1:i}=${2:0};"],
|
1627
|
+
"prefix": "vari",
|
1628
|
+
"scope": "typescript,javascript"
|
1629
|
+
},
|
1630
|
+
"var l=a.length;": {
|
1631
|
+
"body": ["var ${1:l}=${2:a}.length;"],
|
1632
|
+
"prefix": "varl",
|
1633
|
+
"scope": "typescript,javascript"
|
1634
|
+
},
|
1635
|
+
"var s=\"\";": {
|
1636
|
+
"body": ["var ${1:s}=\"$2\";"],
|
1637
|
+
"prefix": "vars",
|
1638
|
+
"scope": "typescript,javascript"
|
1639
|
+
},
|
1640
|
+
"var xhr": {
|
1641
|
+
"body": [
|
1642
|
+
"var ${1:xhr} = new XMLHttpRequest();",
|
1643
|
+
"xhr.open(\"${2:POST}\",\"$3\",${4:true});"
|
1644
|
+
],
|
1645
|
+
"prefix": "varxhr",
|
1646
|
+
"scope": "typescript,javascript"
|
1647
|
+
},
|
1648
|
+
"while": {
|
1649
|
+
"body": ["while (${1:condition}){", "\t$0", "}"],
|
1650
|
+
"prefix": "whilee",
|
1651
|
+
"scope": "typescript,javascript"
|
1652
|
+
},
|
1653
|
+
"windowaddEventListener": {
|
1654
|
+
"body": [
|
1655
|
+
"window.addEventListener('${1:scroll}',function ($2) {",
|
1656
|
+
" $0",
|
1657
|
+
"})"
|
1658
|
+
],
|
1659
|
+
"prefix": "wad",
|
1660
|
+
"project": "Web,App,Wap2App",
|
1661
|
+
"scope": "typescript,javascript",
|
1662
|
+
"triggerAssist": true
|
1663
|
+
},
|
1664
|
+
"with": {
|
1665
|
+
"body": ["with ($1){", "\t$0", "}"],
|
1666
|
+
"prefix": "withh",
|
1667
|
+
"scope": "typescript,javascript"
|
1668
|
+
}
|
1669
|
+
}
|