@baic/yolk-cli 2.1.0-alpha.4 → 2.1.0-alpha.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/.prettierrc.js +13 -0
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -497
- package/es/yolk.d.ts +2 -0
- package/es/yolk.js +2 -0
- package/lib/.prettierrc.js +13 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -633
- package/lib/yolk.d.ts +2 -0
- package/lib/yolk.js +2 -0
- package/package.json +8 -8
- package/templates/ice-mobile/.eslintrc +1 -1
- package/templates/ice-mobile/.gitignore.tpl +7 -3
- package/templates/ice-mobile/.icerc.ts +2 -2
- package/templates/ice-mobile/.npmrc.tpl +2 -0
- package/templates/ice-mobile/.prettierignore +4 -5
- package/templates/ice-mobile/.prettierrc.js +1 -0
- package/templates/ice-mobile/README.md.tpl +1 -1
- package/templates/ice-mobile/package.json.tpl +5 -0
- package/templates/ice-mobile/public/index.html +15 -0
- package/templates/ice-mobile/src/app.tsx +1 -1
- package/templates/ice-mobile/src/pages/demo/examples/Input.tsx +1 -2
- package/templates/ice-mobile/src/pages/demo/examples/NumberInput/1.tsx +1 -2
- package/templates/ice-mobile/src/pages/demo/examples/NumberInput/2.tsx +1 -2
- package/templates/ice-mobile/src/pages/demo/examples/NumberInput/3.tsx +1 -2
- package/templates/ice-mobile/src/pages/demo/examples/NumberInput/4.tsx +1 -2
- package/templates/ice-mobile/src/routes.ts +2 -1
- package/templates/ice-mobile/tsconfig.json +1 -24
- package/templates/ice-mobile/typings.d.ts +1 -16
- package/templates/ice-mobile-h5+app/.eslintrc +6 -0
- package/templates/ice-mobile-h5+app/.gitignore.tpl +34 -0
- package/templates/ice-mobile-h5+app/.icerc.ts +6 -0
- package/templates/ice-mobile-h5+app/.npmrc.tpl +2 -0
- package/templates/ice-mobile-h5+app/.prettierignore +8 -0
- package/templates/ice-mobile-h5+app/.prettierrc.js +1 -0
- package/templates/ice-mobile-h5+app/.stylelintrc +3 -0
- package/templates/ice-mobile-h5+app/README.md.tpl +34 -0
- package/templates/ice-mobile-h5+app/h5+app/manifest.json +87 -0
- package/templates/ice-mobile-h5+app/package.json.tpl +16 -0
- package/templates/ice-mobile-h5+app/public/favicon.ico +0 -0
- package/templates/ice-mobile-h5+app/public/index.html +15 -0
- package/templates/ice-mobile-h5+app/src/app.tsx +5 -0
- package/templates/ice-mobile-h5+app/src/common/request.ts +3 -0
- package/templates/ice-mobile-h5+app/src/common/util.ts +7 -0
- package/templates/ice-mobile-h5+app/src/components/index.ts +0 -0
- package/templates/ice-mobile-h5+app/src/global.less +3 -0
- package/templates/ice-mobile-h5+app/src/layouts/index.tsx +5 -0
- package/templates/ice-mobile-h5+app/src/pages/404.tsx +10 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/examples/BarCode.tsx +4 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/examples/Iconfont.tsx +18 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/examples/Input.tsx +16 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/examples/List/1.tsx +12 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/examples/List/2.tsx +29 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/examples/List/3.tsx +29 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/examples/List/4.tsx +55 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/examples/List/mock.ts +30 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/examples/Loading.tsx +12 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/examples/NumberInput/1.tsx +16 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/examples/NumberInput/2.tsx +16 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/examples/NumberInput/3.tsx +16 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/examples/NumberInput/4.tsx +16 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/examples/PagingList/1.tsx +6 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/examples/QrCode.tsx +4 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/examples/Required.tsx +4 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/examples/TimerButton.tsx +4 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/examples/usePreload.tsx +9 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/index.tsx +87 -0
- package/templates/ice-mobile-h5+app/src/pages/index.tsx +3 -0
- package/templates/ice-mobile-h5+app/src/routes.ts +29 -0
- package/templates/ice-mobile-h5+app/src/types/user.d.ts +3 -0
- package/templates/ice-mobile-h5+app/tsconfig.json +3 -0
- package/templates/ice-mobile-h5+app/typings.d.ts +1 -0
- package/templates/ice-mobile-native/.eslintrc +6 -0
- package/templates/ice-mobile-native/.gitignore.tpl +39 -0
- package/templates/ice-mobile-native/.icerc.ts +8 -0
- package/templates/ice-mobile-native/.npmrc.tpl +2 -0
- package/templates/ice-mobile-native/.prettierignore +8 -0
- package/templates/ice-mobile-native/.prettierrc.js +1 -0
- package/templates/ice-mobile-native/.stylelintrc +3 -0
- package/templates/ice-mobile-native/README.md.tpl +34 -0
- package/templates/ice-mobile-native/android/app/6209ba977ffec7d62675a4e254ebc209.keystore +0 -0
- package/templates/ice-mobile-native/android/app/build.gradle +66 -0
- package/templates/ice-mobile-native/android/app/libs/Bluetooth-release.aar +0 -0
- package/templates/ice-mobile-native/android/app/libs/PosPrinterSDK.jar +0 -0
- package/templates/ice-mobile-native/android/app/libs/android-gif-drawable-release@1.2.23.aar +0 -0
- package/templates/ice-mobile-native/android/app/libs/lib.5plus.base-release.aar +0 -0
- package/templates/ice-mobile-native/android/app/libs/oaid_sdk_1.0.25.aar +0 -0
- package/templates/ice-mobile-native/android/app/libs/webview-x5-release.aar +0 -0
- package/templates/ice-mobile-native/android/app/proguard-rules.pro +303 -0
- package/templates/ice-mobile-native/android/app/src/main/AndroidManifest.xml +98 -0
- package/templates/ice-mobile-native/android/app/src/main/assets/apps/H5ECA1DEE/www/manifest.json +89 -0
- package/templates/ice-mobile-native/android/app/src/main/assets/data/dcloud_control.xml +6 -0
- package/templates/ice-mobile-native/android/app/src/main/assets/data/dcloud_error.html +92 -0
- package/templates/ice-mobile-native/android/app/src/main/assets/data/dcloud_properties.xml +19 -0
- package/templates/ice-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/JSBridge/FunctionCreator.java +119 -0
- package/templates/ice-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/MPandoraEntryActivity.java +17 -0
- package/templates/ice-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/Xprinter/FunctionFactory/Creator.java +17 -0
- package/templates/ice-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/Xprinter/FunctionFactory/Error.java +26 -0
- package/templates/ice-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/Xprinter/JSPlugin.java +265 -0
- package/templates/ice-mobile-native/android/app/src/main/res/drawable/icon.png +0 -0
- package/templates/ice-mobile-native/android/app/src/main/res/values/colors.xml +5 -0
- package/templates/ice-mobile-native/android/app/src/main/res/values/strings.xml +3 -0
- package/templates/ice-mobile-native/android/build.gradle +9 -0
- package/templates/ice-mobile-native/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/templates/ice-mobile-native/android/gradle/wrapper/gradle-wrapper.properties +6 -0
- package/templates/ice-mobile-native/android/gradle.properties +22 -0
- package/templates/ice-mobile-native/android/gradlew +185 -0
- package/templates/ice-mobile-native/android/gradlew.bat +89 -0
- package/templates/ice-mobile-native/android/settings.gradle +16 -0
- package/templates/ice-mobile-native/ios/HBuilder/HBuilder.entitlements +5 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/1024x1024.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/120x120-1.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/120x120.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/180x180.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/40x40.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/58x58.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/60x60.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/80x80.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/87x87.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/Contents.json +62 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/Contents.json +6 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/Image.imageset/Contents.json +20 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/app.imageset/120x120.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/app.imageset/180x180.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/app.imageset/60x60.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/app.imageset/Contents.json +26 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/control_brightness.imageset/Contents.json +21 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/control_brightness.imageset/brightness@2x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/exitfullscreen.imageset/Contents.json +22 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/exitfullscreen.imageset/shrinkscreen@2x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/exitfullscreen.imageset/shrinkscreen@3x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/exposure_slider_max.imageset/Contents.json +22 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/exposure_slider_max.imageset//346/233/235/345/205/211-1.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/exposure_slider_max.imageset//346/233/235/345/205/211.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_border.imageset/Contents.json +22 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_border.imageset//345/257/271/347/204/246/346/241/206-1.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_border.imageset//345/257/271/347/204/246/346/241/206.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_line.imageset/Contents.json +21 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_line.imageset//345/257/271/347/204/246/347/272/277.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_thumb.imageset/Contents.json +22 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_thumb.imageset//345/257/271/347/204/246/345/272/225-1.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_thumb.imageset//345/257/271/347/204/246/345/272/225.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/full-screen.imageset/Contents.json +22 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/full-screen.imageset/fullscreen@2x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/full-screen.imageset/fullscreen@3x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/play.imageset/Contents.json +23 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/play.imageset/play.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/play.imageset/play@2x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/play.imageset/play@3x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_back.imageset/Contents.json +23 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_back.imageset/player_back.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_back.imageset/player_back@2x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_back.imageset/player_back@3x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_play.imageset/Contents.json +23 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_play.imageset/play.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_play.imageset/play@2x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_play.imageset/play@3x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_stop.imageset/Contents.json +23 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_stop.imageset/player-stop.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_stop.imageset/player-stop@2x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_stop.imageset/player-stop@3x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteoff.imageset/Contents.json +22 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteoff.imageset/video_ic_muteoff@2x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteoff.imageset/video_ic_muteoff@3x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteon.imageset/Contents.json +22 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteon.imageset/video_ic_muteon@2x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteon.imageset/video_ic_muteon@3x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_volume.imageset/Contents.json +22 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_volume.imageset/video_volume@2x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_volume.imageset/video_volume@3x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/120x120.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/180x180.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/AppDelegate.h +16 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/AppDelegate.m +225 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Base.lproj/LaunchScreen.storyboard +65 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/English.lproj/Localizable.strings +13 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/HBuilder-Hello-Info.plist +486 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/HBuilder-Hello-Prefix.pch +16 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/LaunchScreen.storyboard +67 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/manifest.json +79 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/1024x1024.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/120x120.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/144x144.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/152x152.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/167x167.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/180x180.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/192x192.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/20x20.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/29x29.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/40x40.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/58x58.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/60x60.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/72x72.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/76x76.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/80x80.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/87x87.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/96x96.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/ViewController.h +19 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/ViewController.m +161 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Xprinter.h +19 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Xprinter.m +235 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/control.xml +107 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/en.lproj/InfoPlist.strings +4 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/en.lproj/Localizable.strings +12 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/main.m +18 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/zh-Hans.lproj/InfoPlist.strings +4 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/zh-Hans.lproj/LaunchScreen.strings +3 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/zh-Hans.lproj/Localizable.strings +13 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello.xcodeproj/project.pbxproj +1607 -0
- package/templates/ice-mobile-native/package.json.tpl +16 -0
- package/templates/ice-mobile-native/public/favicon.ico +0 -0
- package/templates/ice-mobile-native/public/index.html +15 -0
- package/templates/ice-mobile-native/src/app.tsx +5 -0
- package/templates/ice-mobile-native/src/common/Xprinter.ts +58 -0
- package/templates/ice-mobile-native/src/common/bluetooth.ts +354 -0
- package/templates/ice-mobile-native/src/common/bridge.ts +59 -0
- package/templates/ice-mobile-native/src/common/request.ts +3 -0
- package/templates/ice-mobile-native/src/common/util.ts +7 -0
- package/templates/ice-mobile-native/src/components/index.ts +0 -0
- package/templates/ice-mobile-native/src/global.less +3 -0
- package/templates/ice-mobile-native/src/layouts/index.tsx +5 -0
- package/templates/ice-mobile-native/src/pages/404.tsx +10 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/BarCode.tsx +4 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/Iconfont.tsx +18 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/Input.tsx +16 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/List/1.tsx +12 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/List/2.tsx +29 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/List/3.tsx +29 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/List/4.tsx +55 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/List/mock.ts +30 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/Loading.tsx +12 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/NumberInput/1.tsx +16 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/NumberInput/2.tsx +16 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/NumberInput/3.tsx +16 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/NumberInput/4.tsx +16 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/PagingList/1.tsx +6 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/QrCode.tsx +4 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/Required.tsx +4 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/TimerButton.tsx +4 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/Xprinter/index.tsx +64 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/Xprinter/style.less +16 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/usePreload.tsx +9 -0
- package/templates/ice-mobile-native/src/pages/demo/index.tsx +89 -0
- package/templates/ice-mobile-native/src/pages/index.tsx +3 -0
- package/templates/ice-mobile-native/src/routes.ts +29 -0
- package/templates/ice-mobile-native/src/types/user.d.ts +3 -0
- package/templates/ice-mobile-native/tsconfig.json +3 -0
- package/templates/ice-mobile-native/typings.d.ts +1 -0
- package/templates/ice-web/.eslintrc +1 -1
- package/templates/ice-web/.gitignore.tpl +7 -3
- package/templates/ice-web/.icerc.ts +1 -1
- package/templates/ice-web/.npmrc.tpl +2 -0
- package/templates/ice-web/.prettierignore +4 -5
- package/templates/ice-web/.prettierrc.js +1 -0
- package/templates/ice-web/README.md.tpl +1 -1
- package/templates/ice-web/package.json.tpl +5 -0
- package/templates/ice-web/public/index.html +15 -0
- package/templates/ice-web/src/app.tsx +1 -1
- package/templates/ice-web/src/pages/demo/examples/BankInput.tsx +1 -2
- package/templates/ice-web/src/pages/demo/examples/Grid/5.tsx +1 -2
- package/templates/ice-web/src/pages/demo/examples/Input/2.tsx +2 -1
- package/templates/ice-web/src/pages/demo/examples/RangeNumber/2.tsx +1 -2
- package/templates/ice-web/src/pages/demo/examples/SearchLayout.tsx +2 -2
- package/templates/ice-web/src/pages/demo/examples/Wrapper.tsx +1 -1
- package/templates/ice-web/src/routes.ts +2 -1
- package/templates/ice-web/tsconfig.json +1 -24
- package/templates/ice-web/typings.d.ts +1 -16
- package/templates/ice-web-screen/.eslintrc +6 -0
- package/templates/ice-web-screen/.gitignore.tpl +34 -0
- package/templates/ice-web-screen/.icerc.ts +3 -0
- package/templates/ice-web-screen/.npmrc.tpl +2 -0
- package/templates/ice-web-screen/.prettierignore +8 -0
- package/templates/ice-web-screen/.prettierrc.js +1 -0
- package/templates/ice-web-screen/.stylelintrc +3 -0
- package/templates/ice-web-screen/README.md.tpl +34 -0
- package/templates/ice-web-screen/package.json.tpl +17 -0
- package/templates/ice-web-screen/public/favicon.ico +0 -0
- package/templates/ice-web-screen/public/index.html +15 -0
- package/templates/ice-web-screen/src/app.tsx +5 -0
- package/templates/ice-web-screen/src/common/request.ts +3 -0
- package/templates/ice-web-screen/src/common/util.ts +15 -0
- package/templates/ice-web-screen/src/components/index.ts +1 -0
- package/templates/ice-web-screen/src/components/resize-container/index.tsx +95 -0
- package/templates/ice-web-screen/src/components/resize-container/style.module.less +3 -0
- package/templates/ice-web-screen/src/constants.ts +7 -0
- package/templates/ice-web-screen/src/global.less +31 -0
- package/templates/ice-web-screen/src/hooks/use-size.ts +18 -0
- package/templates/ice-web-screen/src/layouts/16_9/fixed.less +18 -0
- package/templates/ice-web-screen/src/layouts/16_9/index.tsx +34 -0
- package/templates/ice-web-screen/src/layouts/16_9/style.module.less +19 -0
- package/templates/ice-web-screen/src/layouts/components/index.ts +0 -0
- package/templates/ice-web-screen/src/layouts/controller/index.tsx +79 -0
- package/templates/ice-web-screen/src/layouts/index.tsx +11 -0
- package/templates/ice-web-screen/src/pages/404.tsx +17 -0
- package/templates/ice-web-screen/src/pages/index.tsx +3 -0
- package/templates/ice-web-screen/src/pages/template/16_9/index.tsx +13 -0
- package/templates/ice-web-screen/src/pages/template/16_9/style.module.less +7 -0
- package/templates/ice-web-screen/src/pages/template/components/charts/demo-line/index.tsx +274 -0
- package/templates/ice-web-screen/src/pages/template/components/charts/index.ts +1 -0
- package/templates/ice-web-screen/src/pages/template/components/index.ts +1 -0
- package/templates/ice-web-screen/src/pages/template/controller/index.tsx +85 -0
- package/templates/ice-web-screen/src/pages/template/index.tsx +15 -0
- package/templates/ice-web-screen/src/pages/template/style.module.less +3 -0
- package/templates/ice-web-screen/src/routes.ts +29 -0
- package/templates/ice-web-screen/src/styles/vars.less +5 -0
- package/templates/ice-web-screen/src/types/user.d.ts +3 -0
- package/templates/ice-web-screen/tsconfig.json +3 -0
- package/templates/ice-web-screen/typings.d.ts +1 -0
- package/templates/miniprogram/.eslintrc +1 -1
- package/templates/miniprogram/.gitignore.tpl +8 -10
- package/templates/miniprogram/.npmrc.tpl +2 -0
- package/templates/miniprogram/.prettierignore +5 -1
- package/templates/miniprogram/.prettierrc.js +1 -0
- package/templates/miniprogram/README.md.tpl +2 -2
- package/templates/miniprogram/package.json.tpl +6 -2
- package/templates/umi-mobile/.eslintrc +1 -1
- package/templates/umi-mobile/.gitignore.tpl +8 -5
- package/templates/umi-mobile/.npmrc.tpl +2 -0
- package/templates/umi-mobile/.prettierignore +6 -2
- package/templates/umi-mobile/.prettierrc.js +1 -0
- package/templates/umi-mobile/.umirc.ts.tpl +2 -1
- package/templates/umi-mobile/README.md.tpl +2 -2
- package/templates/umi-mobile/package.json.tpl +5 -0
- package/templates/umi-mobile/src/app.tsx +1 -1
- package/templates/umi-mobile/src/pages/demo/examples/Input.tsx +1 -2
- package/templates/umi-mobile/src/pages/demo/examples/NumberInput/1.tsx +1 -2
- package/templates/umi-mobile/src/pages/demo/examples/NumberInput/2.tsx +1 -2
- package/templates/umi-mobile/src/pages/demo/examples/NumberInput/3.tsx +1 -2
- package/templates/umi-mobile/src/pages/demo/examples/NumberInput/4.tsx +1 -2
- package/templates/umi-mobile-h5+app/.eslintrc +6 -0
- package/templates/umi-mobile-h5+app/.gitignore.tpl +37 -0
- package/templates/umi-mobile-h5+app/.npmrc.tpl +2 -0
- package/templates/umi-mobile-h5+app/.prettierignore +12 -0
- package/templates/umi-mobile-h5+app/.prettierrc.js +1 -0
- package/templates/umi-mobile-h5+app/.stylelintrc +3 -0
- package/templates/umi-mobile-h5+app/.umirc.ts.tpl +8 -0
- package/templates/umi-mobile-h5+app/LICENSE +21 -0
- package/templates/umi-mobile-h5+app/README.md.tpl +34 -0
- package/templates/umi-mobile-h5+app/h5+app/manifest.json +87 -0
- package/templates/umi-mobile-h5+app/package.json.tpl +16 -0
- package/templates/umi-mobile-h5+app/public/favicon.ico +0 -0
- package/templates/umi-mobile-h5+app/src/app.tsx +19 -0
- package/templates/umi-mobile-h5+app/src/common/request.ts +3 -0
- package/templates/umi-mobile-h5+app/src/common/util.ts +7 -0
- package/templates/umi-mobile-h5+app/src/components/index.ts +0 -0
- package/templates/umi-mobile-h5+app/src/global.less +3 -0
- package/templates/umi-mobile-h5+app/src/layouts/index.tsx +3 -0
- package/templates/umi-mobile-h5+app/src/pages/404.tsx +10 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/examples/BarCode.tsx +4 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/examples/Iconfont.tsx +18 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/examples/Input.tsx +16 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/examples/List/1.tsx +12 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/examples/List/2.tsx +29 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/examples/List/3.tsx +29 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/examples/List/4.tsx +55 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/examples/List/mock.ts +30 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/examples/Loading.tsx +12 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/examples/NumberInput/1.tsx +16 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/examples/NumberInput/2.tsx +16 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/examples/NumberInput/3.tsx +16 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/examples/NumberInput/4.tsx +16 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/examples/PagingList/1.tsx +6 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/examples/QrCode.tsx +4 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/examples/Required.tsx +4 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/examples/TimerButton.tsx +4 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/examples/usePreload.tsx +9 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/index.tsx +87 -0
- package/templates/umi-mobile-h5+app/src/pages/index.tsx +3 -0
- package/templates/umi-mobile-h5+app/src/types/user.d.ts +3 -0
- package/templates/umi-mobile-h5+app/tsconfig.json +3 -0
- package/templates/umi-mobile-h5+app/typings.d.ts +1 -0
- package/templates/umi-mobile-native/.eslintrc +6 -0
- package/templates/umi-mobile-native/.gitignore.tpl +42 -0
- package/templates/umi-mobile-native/.npmrc.tpl +2 -0
- package/templates/umi-mobile-native/.prettierignore +12 -0
- package/templates/umi-mobile-native/.prettierrc.js +1 -0
- package/templates/umi-mobile-native/.stylelintrc +3 -0
- package/templates/umi-mobile-native/.umirc.ts.tpl +10 -0
- package/templates/umi-mobile-native/LICENSE +21 -0
- package/templates/umi-mobile-native/README.md.tpl +34 -0
- package/templates/umi-mobile-native/android/app/6209ba977ffec7d62675a4e254ebc209.keystore +0 -0
- package/templates/umi-mobile-native/android/app/build.gradle +66 -0
- package/templates/umi-mobile-native/android/app/libs/Bluetooth-release.aar +0 -0
- package/templates/umi-mobile-native/android/app/libs/PosPrinterSDK.jar +0 -0
- package/templates/umi-mobile-native/android/app/libs/android-gif-drawable-release@1.2.23.aar +0 -0
- package/templates/umi-mobile-native/android/app/libs/lib.5plus.base-release.aar +0 -0
- package/templates/umi-mobile-native/android/app/libs/oaid_sdk_1.0.25.aar +0 -0
- package/templates/umi-mobile-native/android/app/libs/webview-x5-release.aar +0 -0
- package/templates/umi-mobile-native/android/app/proguard-rules.pro +303 -0
- package/templates/umi-mobile-native/android/app/src/main/AndroidManifest.xml +98 -0
- package/templates/umi-mobile-native/android/app/src/main/assets/apps/H5ECA1DEE/www/manifest.json +89 -0
- package/templates/umi-mobile-native/android/app/src/main/assets/data/dcloud_control.xml +6 -0
- package/templates/umi-mobile-native/android/app/src/main/assets/data/dcloud_error.html +92 -0
- package/templates/umi-mobile-native/android/app/src/main/assets/data/dcloud_properties.xml +19 -0
- package/templates/umi-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/JSBridge/FunctionCreator.java +119 -0
- package/templates/umi-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/MPandoraEntryActivity.java +17 -0
- package/templates/umi-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/Xprinter/FunctionFactory/Creator.java +17 -0
- package/templates/umi-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/Xprinter/FunctionFactory/Error.java +26 -0
- package/templates/umi-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/Xprinter/JSPlugin.java +265 -0
- package/templates/umi-mobile-native/android/app/src/main/res/drawable/icon.png +0 -0
- package/templates/umi-mobile-native/android/app/src/main/res/values/colors.xml +5 -0
- package/templates/umi-mobile-native/android/app/src/main/res/values/strings.xml +3 -0
- package/templates/umi-mobile-native/android/build.gradle +9 -0
- package/templates/umi-mobile-native/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/templates/umi-mobile-native/android/gradle/wrapper/gradle-wrapper.properties +6 -0
- package/templates/umi-mobile-native/android/gradle.properties +22 -0
- package/templates/umi-mobile-native/android/gradlew +185 -0
- package/templates/umi-mobile-native/android/gradlew.bat +89 -0
- package/templates/umi-mobile-native/android/settings.gradle +16 -0
- package/templates/umi-mobile-native/ios/HBuilder/HBuilder.entitlements +5 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/1024x1024.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/120x120-1.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/120x120.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/180x180.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/40x40.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/58x58.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/60x60.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/80x80.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/87x87.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/Contents.json +62 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/Contents.json +6 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/Image.imageset/Contents.json +20 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/app.imageset/120x120.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/app.imageset/180x180.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/app.imageset/60x60.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/app.imageset/Contents.json +26 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/control_brightness.imageset/Contents.json +21 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/control_brightness.imageset/brightness@2x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/exitfullscreen.imageset/Contents.json +22 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/exitfullscreen.imageset/shrinkscreen@2x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/exitfullscreen.imageset/shrinkscreen@3x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/exposure_slider_max.imageset/Contents.json +22 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/exposure_slider_max.imageset//346/233/235/345/205/211-1.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/exposure_slider_max.imageset//346/233/235/345/205/211.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/focus_border.imageset/Contents.json +22 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/focus_border.imageset//345/257/271/347/204/246/346/241/206-1.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/focus_border.imageset//345/257/271/347/204/246/346/241/206.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_line.imageset/Contents.json +21 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_line.imageset//345/257/271/347/204/246/347/272/277.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_thumb.imageset/Contents.json +22 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_thumb.imageset//345/257/271/347/204/246/345/272/225-1.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_thumb.imageset//345/257/271/347/204/246/345/272/225.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/full-screen.imageset/Contents.json +22 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/full-screen.imageset/fullscreen@2x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/full-screen.imageset/fullscreen@3x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/play.imageset/Contents.json +23 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/play.imageset/play.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/play.imageset/play@2x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/play.imageset/play@3x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/player_back.imageset/Contents.json +23 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/player_back.imageset/player_back.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/player_back.imageset/player_back@2x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/player_back.imageset/player_back@3x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/player_play.imageset/Contents.json +23 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/player_play.imageset/play.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/player_play.imageset/play@2x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/player_play.imageset/play@3x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/player_stop.imageset/Contents.json +23 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/player_stop.imageset/player-stop.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/player_stop.imageset/player-stop@2x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/player_stop.imageset/player-stop@3x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteoff.imageset/Contents.json +22 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteoff.imageset/video_ic_muteoff@2x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteoff.imageset/video_ic_muteoff@3x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteon.imageset/Contents.json +22 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteon.imageset/video_ic_muteon@2x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteon.imageset/video_ic_muteon@3x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/video_volume.imageset/Contents.json +22 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/video_volume.imageset/video_volume@2x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/video_volume.imageset/video_volume@3x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/120x120.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/180x180.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/AppDelegate.h +16 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/AppDelegate.m +225 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Base.lproj/LaunchScreen.storyboard +65 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/English.lproj/Localizable.strings +13 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/HBuilder-Hello-Info.plist +486 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/HBuilder-Hello-Prefix.pch +16 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/LaunchScreen.storyboard +67 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/manifest.json +79 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/1024x1024.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/120x120.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/144x144.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/152x152.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/167x167.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/180x180.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/192x192.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/20x20.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/29x29.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/40x40.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/58x58.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/60x60.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/72x72.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/76x76.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/80x80.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/87x87.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/96x96.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/ViewController.h +19 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/ViewController.m +161 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Xprinter.h +19 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Xprinter.m +235 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/control.xml +107 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/en.lproj/InfoPlist.strings +4 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/en.lproj/Localizable.strings +12 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/main.m +18 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/zh-Hans.lproj/InfoPlist.strings +4 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/zh-Hans.lproj/LaunchScreen.strings +3 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/zh-Hans.lproj/Localizable.strings +13 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello.xcodeproj/project.pbxproj +1607 -0
- package/templates/umi-mobile-native/package.json.tpl +16 -0
- package/templates/umi-mobile-native/public/favicon.ico +0 -0
- package/templates/umi-mobile-native/src/app.tsx +19 -0
- package/templates/umi-mobile-native/src/common/Xprinter.ts +58 -0
- package/templates/umi-mobile-native/src/common/bluetooth.ts +354 -0
- package/templates/umi-mobile-native/src/common/bridge.ts +59 -0
- package/templates/umi-mobile-native/src/common/request.ts +3 -0
- package/templates/umi-mobile-native/src/common/util.ts +7 -0
- package/templates/umi-mobile-native/src/components/index.ts +0 -0
- package/templates/umi-mobile-native/src/global.less +3 -0
- package/templates/umi-mobile-native/src/images/head.png +0 -0
- package/templates/umi-mobile-native/src/layouts/index.tsx +3 -0
- package/templates/umi-mobile-native/src/pages/404.tsx +10 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/BarCode.tsx +4 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/Iconfont.tsx +18 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/Input.tsx +16 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/List/1.tsx +12 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/List/2.tsx +29 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/List/3.tsx +29 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/List/4.tsx +55 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/List/mock.ts +30 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/Loading.tsx +12 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/NumberInput/1.tsx +16 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/NumberInput/2.tsx +16 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/NumberInput/3.tsx +16 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/NumberInput/4.tsx +16 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/PagingList/1.tsx +6 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/QrCode.tsx +4 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/Required.tsx +4 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/TimerButton.tsx +4 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/Xprinter/index.tsx +64 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/Xprinter/style.less +16 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/usePreload.tsx +9 -0
- package/templates/umi-mobile-native/src/pages/demo/index.tsx +89 -0
- package/templates/umi-mobile-native/src/pages/index.tsx +9 -0
- package/templates/umi-mobile-native/src/pages/style.less +6 -0
- package/templates/umi-mobile-native/src/types/user.d.ts +3 -0
- package/templates/umi-mobile-native/tsconfig.json +3 -0
- package/templates/umi-mobile-native/typings.d.ts +1 -0
- package/templates/umi-web/.eslintrc +1 -1
- package/templates/umi-web/.gitignore.tpl +8 -5
- package/templates/umi-web/.npmrc.tpl +2 -0
- package/templates/umi-web/.prettierignore +6 -2
- package/templates/umi-web/.prettierrc.js +1 -0
- package/templates/umi-web/.umirc.ts.tpl +1 -1
- package/templates/umi-web/README.md.tpl +1 -1
- package/templates/umi-web/package.json.tpl +5 -0
- package/templates/umi-web/src/app.tsx +1 -1
- package/templates/umi-web/src/pages/demo/examples/BankInput.tsx +1 -2
- package/templates/umi-web/src/pages/demo/examples/Grid/5.tsx +1 -2
- package/templates/umi-web/src/pages/demo/examples/Input/2.tsx +2 -1
- package/templates/umi-web/src/pages/demo/examples/RangeNumber/2.tsx +1 -2
- package/templates/umi-web/src/pages/demo/examples/SearchLayout.tsx +2 -2
- package/templates/umi-web/src/pages/demo/examples/Wrapper.tsx +1 -1
- package/templates/umi-web-screen/.eslintrc +6 -0
- package/templates/umi-web-screen/.gitignore.tpl +37 -0
- package/templates/umi-web-screen/.npmrc.tpl +2 -0
- package/templates/umi-web-screen/.prettierignore +12 -0
- package/templates/umi-web-screen/.prettierrc.js +1 -0
- package/templates/umi-web-screen/.stylelintrc +3 -0
- package/templates/umi-web-screen/.umirc.ts.tpl +8 -0
- package/templates/umi-web-screen/LICENSE +21 -0
- package/templates/umi-web-screen/README.md.tpl +34 -0
- package/templates/umi-web-screen/package.json.tpl +17 -0
- package/templates/umi-web-screen/public/favicon.ico +0 -0
- package/templates/umi-web-screen/src/app.tsx +19 -0
- package/templates/umi-web-screen/src/common/request.ts +3 -0
- package/templates/umi-web-screen/src/common/util.ts +15 -0
- package/templates/umi-web-screen/src/components/index.ts +1 -0
- package/templates/umi-web-screen/src/components/resize-container/index.tsx +95 -0
- package/templates/umi-web-screen/src/components/resize-container/style.less +3 -0
- package/templates/umi-web-screen/src/constants.ts +7 -0
- package/templates/umi-web-screen/src/global.less +28 -0
- package/templates/umi-web-screen/src/hooks/use-size.ts +18 -0
- package/templates/umi-web-screen/src/layouts/16_9/fixed.less +16 -0
- package/templates/umi-web-screen/src/layouts/16_9/index.tsx +30 -0
- package/templates/umi-web-screen/src/layouts/16_9/style.less +17 -0
- package/templates/umi-web-screen/src/layouts/components/index.ts +0 -0
- package/templates/umi-web-screen/src/layouts/controller/index.tsx +79 -0
- package/templates/umi-web-screen/src/layouts/index.tsx +11 -0
- package/templates/umi-web-screen/src/pages/404.tsx +17 -0
- package/templates/umi-web-screen/src/pages/index.tsx +3 -0
- package/templates/umi-web-screen/src/pages/template/16_9/index.tsx +13 -0
- package/templates/umi-web-screen/src/pages/template/16_9/style.less +7 -0
- package/templates/umi-web-screen/src/pages/template/components/charts/demo-line/index.tsx +274 -0
- package/templates/umi-web-screen/src/pages/template/components/charts/index.ts +1 -0
- package/templates/umi-web-screen/src/pages/template/components/index.ts +1 -0
- package/templates/umi-web-screen/src/pages/template/controller/index.tsx +85 -0
- package/templates/umi-web-screen/src/pages/template/index.tsx +15 -0
- package/templates/umi-web-screen/src/pages/template/style.less +3 -0
- package/templates/umi-web-screen/src/styles/vars.less +5 -0
- package/templates/umi-web-screen/src/types/user.d.ts +3 -0
- package/templates/umi-web-screen/tsconfig.json +3 -0
- package/templates/umi-web-screen/typings.d.ts +1 -0
- package/templates/ice-mobile/.editorconfig +0 -16
- package/templates/ice-mobile/.prettierrc +0 -11
- package/templates/ice-web/.editorconfig +0 -16
- package/templates/ice-web/.eslintcache +0 -1
- package/templates/ice-web/.prettierrc +0 -11
- package/templates/miniprogram/.editorconfig +0 -12
- package/templates/miniprogram/.prettierrc +0 -12
- package/templates/umi-mobile/.prettierrc +0 -11
- package/templates/umi-web/.prettierrc +0 -11
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
package="plus.H5ECA1DEE">
|
|
4
|
+
|
|
5
|
+
<!-- 基本权限 begin -->
|
|
6
|
+
<uses-permission android:name="android.permission.INTERNET" />
|
|
7
|
+
<uses-permission android:name="android.permission.INSTALL_PACKAGES " />
|
|
8
|
+
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES " />
|
|
9
|
+
<!-- 基本权限 end -->
|
|
10
|
+
|
|
11
|
+
<!-- 蓝牙权限 begin -->
|
|
12
|
+
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
|
|
13
|
+
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
|
14
|
+
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
|
|
15
|
+
<uses-permission android:name="android.permission.BLUETOOTH" />
|
|
16
|
+
<uses-permission android:name="android.permission.CAMERA"/>
|
|
17
|
+
<!-- 蓝牙权限 end -->
|
|
18
|
+
|
|
19
|
+
<!-- Xprinter权限 begin -->
|
|
20
|
+
<uses-permission android:name="android.permission.BLUETOOTH" />
|
|
21
|
+
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
|
|
22
|
+
<uses-permission android:name="android.permission.BLUETOOTH_SCAN" />
|
|
23
|
+
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
|
|
24
|
+
<uses-permission android:name="android.permission.INTERNET" />
|
|
25
|
+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
|
26
|
+
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
|
|
27
|
+
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
|
|
28
|
+
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
|
|
29
|
+
<!-- Xprinter权限 end -->
|
|
30
|
+
|
|
31
|
+
<supports-screens
|
|
32
|
+
android:anyDensity="true"
|
|
33
|
+
android:largeScreens="true"
|
|
34
|
+
android:normalScreens="true"
|
|
35
|
+
android:resizeable="true"
|
|
36
|
+
android:smallScreens="true" />
|
|
37
|
+
|
|
38
|
+
<application
|
|
39
|
+
android:name="io.dcloud.application.DCloudApplication"
|
|
40
|
+
android:allowBackup="true"
|
|
41
|
+
android:allowClearUserData="true"
|
|
42
|
+
android:icon="@drawable/icon"
|
|
43
|
+
android:label="@string/app_name"
|
|
44
|
+
android:supportsRtl="true"
|
|
45
|
+
android:largeHeap="true"
|
|
46
|
+
android:hardwareAccelerated="true">
|
|
47
|
+
<activity
|
|
48
|
+
android:name=".MPandoraEntryActivity"
|
|
49
|
+
android:configChanges="orientation|keyboardHidden|keyboard|navigation"
|
|
50
|
+
android:launchMode="singleTask"
|
|
51
|
+
android:screenOrientation="portrait"
|
|
52
|
+
android:theme="@style/TranslucentTheme"
|
|
53
|
+
android:windowSoftInputMode="adjustResize"
|
|
54
|
+
android:exported="true">
|
|
55
|
+
<intent-filter>
|
|
56
|
+
<action android:name="android.intent.action.MAIN" />
|
|
57
|
+
<category android:name="android.intent.category.LAUNCHER" />
|
|
58
|
+
</intent-filter>
|
|
59
|
+
</activity>
|
|
60
|
+
|
|
61
|
+
<activity
|
|
62
|
+
android:name="io.dcloud.PandoraEntryActivity"
|
|
63
|
+
android:configChanges="orientation|keyboardHidden|screenSize|mcc|mnc|fontScale|keyboard|smallestScreenSize|screenLayout|screenSize"
|
|
64
|
+
android:launchMode="singleTask"
|
|
65
|
+
android:permission="com.miui.securitycenter.permission.AppPermissionsEditor"
|
|
66
|
+
android:screenOrientation="portrait"
|
|
67
|
+
android:theme="@style/DCloudTheme"
|
|
68
|
+
android:windowSoftInputMode="adjustResize"
|
|
69
|
+
android:exported="true">
|
|
70
|
+
<intent-filter>
|
|
71
|
+
<action android:name="android.intent.action.VIEW" />
|
|
72
|
+
|
|
73
|
+
<category android:name="android.intent.category.BROWSABLE" />
|
|
74
|
+
|
|
75
|
+
<category android:name="android.intent.category.DEFAULT" />
|
|
76
|
+
|
|
77
|
+
<data android:scheme="h56131bcf" />
|
|
78
|
+
</intent-filter>
|
|
79
|
+
</activity>
|
|
80
|
+
|
|
81
|
+
<meta-data
|
|
82
|
+
android:name="dcloud_appkey"
|
|
83
|
+
android:value="b93fed6cd4905a5ded3b3ebd8b4b3ab8" />
|
|
84
|
+
<!--provider节点必须添加-->
|
|
85
|
+
<provider
|
|
86
|
+
android:name="io.dcloud.common.util.DCloud_FileProvider"
|
|
87
|
+
android:authorities="plus.H5ECA1DEE.dc.fileprovider"
|
|
88
|
+
android:exported="false"
|
|
89
|
+
android:grantUriPermissions="true">
|
|
90
|
+
<meta-data
|
|
91
|
+
android:name="android.support.FILE_PROVIDER_PATHS"
|
|
92
|
+
android:resource="@xml/dcloud_file_provider" />
|
|
93
|
+
</provider>
|
|
94
|
+
<!-- Xprinter -->
|
|
95
|
+
<service android:name="net.posprinter.service.PosprinterService" />
|
|
96
|
+
</application>
|
|
97
|
+
|
|
98
|
+
</manifest>
|
package/templates/umi-mobile-native/android/app/src/main/assets/apps/H5ECA1DEE/www/manifest.json
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@platforms": [
|
|
3
|
+
"android"
|
|
4
|
+
],
|
|
5
|
+
"id": "H5ECA1DEE",
|
|
6
|
+
"name": "native",
|
|
7
|
+
"version": {
|
|
8
|
+
"name": "1.0.0",
|
|
9
|
+
"code": "100"
|
|
10
|
+
},
|
|
11
|
+
"description": "",
|
|
12
|
+
"icons": {
|
|
13
|
+
"72": "icon.png"
|
|
14
|
+
},
|
|
15
|
+
"launch_path": "ip访问地址",
|
|
16
|
+
"developer": {
|
|
17
|
+
"name": "",
|
|
18
|
+
"email": "",
|
|
19
|
+
"url": ""
|
|
20
|
+
},
|
|
21
|
+
"permissions": {
|
|
22
|
+
"Webview-x5": {},
|
|
23
|
+
"Runtime": {
|
|
24
|
+
"description": "运行环境"
|
|
25
|
+
},
|
|
26
|
+
"Webview": {
|
|
27
|
+
"description": "窗口管理"
|
|
28
|
+
},
|
|
29
|
+
"Bluetooth": {
|
|
30
|
+
"description": "蓝牙"
|
|
31
|
+
},
|
|
32
|
+
"Downloader": {
|
|
33
|
+
"description": "文件下载,管理文件下载任务"
|
|
34
|
+
},
|
|
35
|
+
"File": {
|
|
36
|
+
"description": "文件系统"
|
|
37
|
+
},
|
|
38
|
+
"Xprinter": {
|
|
39
|
+
"description": "Xprinter"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"plus": {
|
|
43
|
+
"splashscreen": {
|
|
44
|
+
"autoclose": false,
|
|
45
|
+
"waiting": true
|
|
46
|
+
},
|
|
47
|
+
"popGesture": "none",
|
|
48
|
+
"runmode": "normal",
|
|
49
|
+
"cers": {
|
|
50
|
+
"crash": false
|
|
51
|
+
},
|
|
52
|
+
"launchwebview": {
|
|
53
|
+
"plusrequire": "ahead"
|
|
54
|
+
},
|
|
55
|
+
"distribute": {
|
|
56
|
+
"google": {
|
|
57
|
+
"packagename": "",
|
|
58
|
+
"keystore": "",
|
|
59
|
+
"password": "",
|
|
60
|
+
"aliasname": "",
|
|
61
|
+
"permissions": [],
|
|
62
|
+
"hardwareAccelerated": true
|
|
63
|
+
},
|
|
64
|
+
"orientation": [
|
|
65
|
+
"portrait-primary",
|
|
66
|
+
"portrait-secondary",
|
|
67
|
+
"landscape-primary",
|
|
68
|
+
"landscape-secondary"
|
|
69
|
+
],
|
|
70
|
+
"plugins": {
|
|
71
|
+
"share": {
|
|
72
|
+
"weixin": {
|
|
73
|
+
"appid": "wx848d9e28577ce214"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"apple": {
|
|
78
|
+
"idfa": false,
|
|
79
|
+
"privacyDescription": {
|
|
80
|
+
"NSBluetoothPeripheralUsageDescription": "需要蓝牙权限连接设备",
|
|
81
|
+
"NSBluetoothAlwaysUsageDescription": "需要蓝牙权限连接设备"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"screenOrientation": [
|
|
87
|
+
"portrait-primary"
|
|
88
|
+
]
|
|
89
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8"/>
|
|
5
|
+
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
|
|
6
|
+
<meta name="HandheldFriendly" content="true"/>
|
|
7
|
+
<meta name="MobileOptimized" content="320"/>
|
|
8
|
+
<title>Error</title>
|
|
9
|
+
<script type="text/javascript">
|
|
10
|
+
// H5 plus事件处理
|
|
11
|
+
var ws=null;
|
|
12
|
+
function plusReady(){
|
|
13
|
+
// Android处理返回键
|
|
14
|
+
plus.key.addEventListener('backbutton',function(){
|
|
15
|
+
(history.length==1)&&ws.close();
|
|
16
|
+
var c=setTimeout(function(){
|
|
17
|
+
ws.close();
|
|
18
|
+
},1000);
|
|
19
|
+
window.onbeforeunload=function(){
|
|
20
|
+
clearTimeout(c);
|
|
21
|
+
}
|
|
22
|
+
history.go(-2);
|
|
23
|
+
},false);
|
|
24
|
+
ws=plus.webview.currentWebview();
|
|
25
|
+
}
|
|
26
|
+
if(window.plus){
|
|
27
|
+
plusReady();
|
|
28
|
+
}else{
|
|
29
|
+
document.addEventListener('plusready',plusReady,false);
|
|
30
|
+
}
|
|
31
|
+
document.addEventListener('touchstart',function(){
|
|
32
|
+
return false;
|
|
33
|
+
},true);
|
|
34
|
+
// 禁止选择
|
|
35
|
+
document.oncontextmenu=function(){
|
|
36
|
+
return false;
|
|
37
|
+
};
|
|
38
|
+
// 获取错误信息
|
|
39
|
+
document.addEventListener("error",function(e){
|
|
40
|
+
info.innerText="请求的页面("+e.url+")无法打开";
|
|
41
|
+
console.log("请求的页面无法打开:"+e.href);
|
|
42
|
+
},false);
|
|
43
|
+
</script>
|
|
44
|
+
<style>
|
|
45
|
+
*{
|
|
46
|
+
-webkit-user-select: none;
|
|
47
|
+
}
|
|
48
|
+
html,body{
|
|
49
|
+
margin: 0px;
|
|
50
|
+
padding: 0px;
|
|
51
|
+
width: 100%;
|
|
52
|
+
height: 100%;
|
|
53
|
+
text-align: center;
|
|
54
|
+
word-break: break-all;
|
|
55
|
+
-webkit-touch-callout:none;
|
|
56
|
+
-webkit-tap-highlight-color:rgba(0,0,0,0);
|
|
57
|
+
}
|
|
58
|
+
.button{
|
|
59
|
+
width: 50%;
|
|
60
|
+
font-size: 18px;
|
|
61
|
+
font-weight: normal;
|
|
62
|
+
text-decoration: none;
|
|
63
|
+
text-align: center;
|
|
64
|
+
padding: .5em 0em;
|
|
65
|
+
margin: .5em auto;
|
|
66
|
+
color: #333333;
|
|
67
|
+
background-color: #EEEEEE;
|
|
68
|
+
border: 1px solid #CCCCCC;
|
|
69
|
+
-webkit-border-radius: 5px;
|
|
70
|
+
border-radius: 5px;
|
|
71
|
+
}
|
|
72
|
+
.button:active{
|
|
73
|
+
background-color: #CCCCCC;
|
|
74
|
+
}
|
|
75
|
+
</style>
|
|
76
|
+
</head>
|
|
77
|
+
<body>
|
|
78
|
+
<div style="width:100%;height:20%;"></div>
|
|
79
|
+
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 512 512" style="height:20%;width:30%">
|
|
80
|
+
<g id="icomoon-ignore">
|
|
81
|
+
<line stroke-width="1" x1="" y1="" x2="" y2="" stroke="#449FDB" opacity=""></line>
|
|
82
|
+
</g>
|
|
83
|
+
<path d="M256 0c-141.385 0-256 114.615-256 256s114.615 256 256 256 256-114.615 256-256-114.615-256-256-256zM352 128c17.673 0 32 14.327 32 32s-14.327 32-32 32-32-14.327-32-32 14.327-32 32-32zM160 128c17.673 0 32 14.327 32 32s-14.327 32-32 32-32-14.327-32-32 14.327-32 32-32zM352.049 390.37c-19.587-32.574-55.272-54.37-96.049-54.37s-76.462 21.796-96.049 54.37l-41.164-24.698c27.98-46.535 78.958-77.672 137.213-77.672s109.232 31.137 137.213 77.672l-41.164 24.698z" fill="#666666"></path>
|
|
84
|
+
</svg>
|
|
85
|
+
<p style="font-size:18px;font-weight:bolder;">We're sorry ...</p>
|
|
86
|
+
<p id="info" style="font-size:12px;"></p>
|
|
87
|
+
<!--<div class="button" onclick="history.back()">Retry</div>-->
|
|
88
|
+
<div class="button" onclick="if(history.length == 1){ws.close();}else{ws.back();ws.back();}">Back</div>
|
|
89
|
+
<div class="button" onclick="ws.close()">Close</div>
|
|
90
|
+
<div class="button" onclick="plus.runtime.restart()">Restart</div>
|
|
91
|
+
</body>
|
|
92
|
+
</html>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<properties>
|
|
2
|
+
<features>
|
|
3
|
+
<feature name="Barcode" value="io.dcloud.feature.barcode2.BarcodeFeatureImpl"/>
|
|
4
|
+
<feature name="NativeObj" value="io.dcloud.feature.nativeObj.FeatureImpl"/>
|
|
5
|
+
<feature name="Navigator" value="io.dcloud.feature.ui.navigator.NavigatorUIFeatureImpl" />
|
|
6
|
+
<feature name="UI" value="io.dcloud.feature.ui.UIFeatureImpl">
|
|
7
|
+
<module name="Navigator" value="io.dcloud.feature.ui.NavView" />
|
|
8
|
+
</feature>
|
|
9
|
+
<feature name="Bluetooth" value="io.dcloud.feature.bluetooth.BluetoothFeature" />
|
|
10
|
+
<feature name="Runtime" value="io.dcloud.feature.pdr.RuntimeFeatureImpl"/>
|
|
11
|
+
<feature name="Downloader" value="io.dcloud.net.DownloaderFeatureImpl"/>
|
|
12
|
+
|
|
13
|
+
<feature name="Xprinter" value="plus.H5407E521.Xprinter.JSPlugin" />
|
|
14
|
+
</features>
|
|
15
|
+
<services>
|
|
16
|
+
<service name="Xprinter" value="plus.H5407E521.Xprinter.JSPlugin" />
|
|
17
|
+
<service name="Downloader" value="io.dcloud.net.DownloaderBootImpl"/>
|
|
18
|
+
</services>
|
|
19
|
+
</properties>
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
package plus.H5ECA1DEE.JSBridge;
|
|
2
|
+
|
|
3
|
+
import android.text.TextUtils;
|
|
4
|
+
import android.util.Log;
|
|
5
|
+
|
|
6
|
+
import org.json.JSONArray;
|
|
7
|
+
import org.json.JSONException;
|
|
8
|
+
import org.json.JSONObject;
|
|
9
|
+
|
|
10
|
+
import androidx.annotation.NonNull;
|
|
11
|
+
import io.dcloud.common.DHInterface.IWebview;
|
|
12
|
+
import io.dcloud.common.util.JSUtil;
|
|
13
|
+
|
|
14
|
+
public class FunctionCreator {
|
|
15
|
+
|
|
16
|
+
private final IWebview iWebview;
|
|
17
|
+
|
|
18
|
+
private final String callbackId;
|
|
19
|
+
|
|
20
|
+
private JSONObject options;
|
|
21
|
+
|
|
22
|
+
public JSONObject getOptions() {
|
|
23
|
+
return options;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
public FunctionCreator(@NonNull IWebview iwv, @NonNull JSONArray array, int callbackIdIndex, int optionsIndex) {
|
|
27
|
+
iWebview = iwv;
|
|
28
|
+
callbackId = array.optString(callbackIdIndex, "");
|
|
29
|
+
options = array.optJSONObject(optionsIndex);
|
|
30
|
+
if (options == null) {
|
|
31
|
+
options = new JSONObject();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
public FunctionCreator(@NonNull IWebview iwv, @NonNull JSONArray array) {
|
|
36
|
+
iWebview = iwv;
|
|
37
|
+
callbackId = array.optString(0);
|
|
38
|
+
options = array.optJSONObject(1);
|
|
39
|
+
if (options == null) {
|
|
40
|
+
options = new JSONObject();
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
private JSONObject getSuccessJSON(Object data) {
|
|
45
|
+
JSONObject successJSON = new JSONObject();
|
|
46
|
+
try {
|
|
47
|
+
successJSON.put("code", 0);
|
|
48
|
+
successJSON.put("message", null);
|
|
49
|
+
successJSON.put("data", data);
|
|
50
|
+
} catch (JSONException e) {
|
|
51
|
+
e.printStackTrace();
|
|
52
|
+
}
|
|
53
|
+
return successJSON;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
private JSONObject getSuccessJSON() {
|
|
57
|
+
JSONObject successJSON = new JSONObject();
|
|
58
|
+
try {
|
|
59
|
+
successJSON.put("code", 0);
|
|
60
|
+
successJSON.put("message", null);
|
|
61
|
+
} catch (JSONException e) {
|
|
62
|
+
e.printStackTrace();
|
|
63
|
+
}
|
|
64
|
+
return successJSON;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
public void success(@NonNull JSONObject data) {
|
|
68
|
+
if (!TextUtils.isEmpty(callbackId)) {
|
|
69
|
+
JSUtil.execCallback(iWebview, callbackId, this.getSuccessJSON(data), JSUtil.OK, false);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
public void success(@NonNull JSONArray data) {
|
|
74
|
+
if (!TextUtils.isEmpty(callbackId)) {
|
|
75
|
+
JSUtil.execCallback(iWebview, callbackId, this.getSuccessJSON(data), JSUtil.OK, false);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
public void success(@NonNull String data) {
|
|
80
|
+
if (!TextUtils.isEmpty(callbackId)) {
|
|
81
|
+
JSUtil.execCallback(iWebview, callbackId, this.getSuccessJSON(data), JSUtil.OK, false);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
public void success(@NonNull int data) {
|
|
86
|
+
if (!TextUtils.isEmpty(callbackId)) {
|
|
87
|
+
JSUtil.execCallback(iWebview, callbackId, this.getSuccessJSON(data), JSUtil.OK, false);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
public void success(@NonNull boolean data) {
|
|
92
|
+
if (!TextUtils.isEmpty(callbackId)) {
|
|
93
|
+
JSUtil.execCallback(iWebview, callbackId, this.getSuccessJSON(data), JSUtil.OK, false);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
public void success() {
|
|
98
|
+
if (!TextUtils.isEmpty(callbackId)) {
|
|
99
|
+
JSUtil.execCallback(iWebview, callbackId, this.getSuccessJSON(), JSUtil.OK, false);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
public void fail(@NonNull int code, @NonNull String message) {
|
|
104
|
+
JSONObject json = new JSONObject();
|
|
105
|
+
try {
|
|
106
|
+
json.put("code", code);
|
|
107
|
+
json.put("message", message);
|
|
108
|
+
} catch (JSONException e) {
|
|
109
|
+
e.printStackTrace();
|
|
110
|
+
}
|
|
111
|
+
if (!TextUtils.isEmpty(callbackId)) {
|
|
112
|
+
JSUtil.execCallback(iWebview, callbackId, json, JSUtil.ERROR, false);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
public void fail() {
|
|
117
|
+
fail(-1, "未知错误");
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
package plus.H5ECA1DEE;
|
|
2
|
+
|
|
3
|
+
import android.os.Bundle;
|
|
4
|
+
import io.dcloud.PandoraEntry;
|
|
5
|
+
|
|
6
|
+
public class MPandoraEntryActivity extends PandoraEntry {
|
|
7
|
+
|
|
8
|
+
@Override
|
|
9
|
+
public void onCreate(Bundle savedInstanceState) {
|
|
10
|
+
super.onCreate(savedInstanceState);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@Override
|
|
14
|
+
public void onRequestPermissionsResult(int i, String[] strings, int[] ints) {
|
|
15
|
+
super.onRequestPermissionsResult(i, strings, ints);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
package plus.H5ECA1DEE.Xprinter.FunctionFactory;
|
|
2
|
+
|
|
3
|
+
import org.json.JSONArray;
|
|
4
|
+
|
|
5
|
+
import androidx.annotation.NonNull;
|
|
6
|
+
import io.dcloud.common.DHInterface.IWebview;
|
|
7
|
+
import plus.H5ECA1DEE.JSBridge.FunctionCreator;
|
|
8
|
+
|
|
9
|
+
public class Creator extends FunctionCreator {
|
|
10
|
+
public Creator(@NonNull IWebview iwv, @NonNull JSONArray array) {
|
|
11
|
+
super(iwv, array);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
public void fail(Error error) {
|
|
15
|
+
fail(error.getCode(), error.getMessage());
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
package plus.H5ECA1DEE.Xprinter.FunctionFactory;
|
|
2
|
+
|
|
3
|
+
public enum Error{
|
|
4
|
+
INVALID_PARAMETER(400001, "参数错误"),
|
|
5
|
+
NOT_CONNECTED(400100, "没有连接"),
|
|
6
|
+
NOT_DISCONNECTED(400101, "当前连接没有断开"),
|
|
7
|
+
CONNECT_FAIL(400102, "连接失败"),
|
|
8
|
+
DISCONNECT_FAIL(400103, "断开连接失败"),
|
|
9
|
+
PRINT_FAIL(400200, "打印失败");
|
|
10
|
+
|
|
11
|
+
private final int code;
|
|
12
|
+
private final String message;
|
|
13
|
+
|
|
14
|
+
Error(int code, String message) {
|
|
15
|
+
this.code = code;
|
|
16
|
+
this.message = message;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
public int getCode() {
|
|
20
|
+
return code;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
public String getMessage() {
|
|
24
|
+
return message;
|
|
25
|
+
}
|
|
26
|
+
}
|