feat: add w2a project

pull/64/head
moonrailgun 2 years ago
parent b515623cbf
commit 67960ac877

@ -0,0 +1,28 @@
App({
options: {
debug: false,
},
/**
* 当wap2app初始化完成时会触发 onLaunch
*/
onLaunch: function () {
console.log('launch');
},
/**
* 当wap2app启动或从后台进入前台显示会触发 onShow
*/
onShow: function () {
console.log('show');
},
/**
* 当wap2app从前台进入后台会触发 onHide
*/
onHide: function () {
console.log('hide');
},
});
Page('__W2A__nightly.paw.msgbyte.com', {
//首页扩展配置
onShow: function () {},
onClose: function () {},
});

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="viewport-fit=cover,width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title></title>
<!--使用本地选项卡时,将如下两行代码注释取消-->
<!--<link rel="stylesheet" type="text/css" href="__wap2apptabbar.css" />
<script src="__wap2apptabbar.js" type="text/javascript" charset="utf-8"></script>-->
</head>
<body>
</body>
</html>

@ -0,0 +1,270 @@
{
"@platforms" : [ "android", "iPhone", "iPad" ],
"id" : "__W2A__nightly.paw.msgbyte.com",
/**/
"name" : "tailchat",
/**/
"version" : {
"name" : "1.0",
/**/
"code" : ""
},
"description" : "",
/**/
"icons" : {
"72" : "icon.png"
},
"launch_path" : "https://nightly.paw.msgbyte.com/",
/*index.htmlhttp://https://*/
"developer" : {
"name" : "",
/**/
"email" : "",
/**/
"url" : ""
},
"permissions" : {
"Accelerometer" : {},
"Audio" : {},
"Cache" : {
"description" : "管理应用缓存"
},
"Console" : {
"description" : "跟踪调试输出日志"
},
"Device" : {},
"Downloader" : {},
"Events" : {
"description" : "应用扩展事件"
},
"File" : {},
"Gallery" : {},
"Invocation" : {},
"Orientation" : {},
"Proximity" : {},
"Storage" : {},
"Uploader" : {},
"Runtime" : {},
"XMLHttpRequest" : {},
"Zip" : {},
"Barcode" : {},
"Webview" : {},
"NativeUI" : {},
"Navigator" : {},
"NativeObj" : {},
"Push" : {},
"UIWebview" : {},
"Camera" : {}
},
"plus" : {
"kernel" : {
"ios" : "UIWebview"
},
"launchwebview" : {
"contentAdjust" : false
},
"safearea" : {
"background" : "#CCCCCC",
"top" : {
"offset" : "auto"
}
},
"splashscreen" : {
"autoclose" : true,
/*truefalseplus.navigator.closeSplashscreen()*/
"waiting" : true
},
// "statusbar" : {
// "immersed" : "supportedDevice"
// },
"popGesture" : "close",
/*Webview"none""hide"Webviewhttp://ask.dcloud.net.cn/article/102*/
"runmode" : "liberate",
/*liberatenormalliberateAndroidFile API访_www*/
"signature" : "Sk9JTiBVUyBtYWlsdG86aHIyMDEzQGRjbG91ZC5pbw==",
/*使*/
"distribute" : {
"apple" : {
"appid" : "",
/*iOSappidio.dcloud.HelloH5*/
"mobileprovision" : "",
/*iOS*/
"password" : "",
/*iOS*/
"p12" : "",
/*iOS*/
"devices" : "universal",
/*iOSiphone/ipad/universal*/
"frameworks" : []
},
"google" : {
"packagename" : "",
/*Androidio.dcloud.HelloH5*/
"keystore" : "",
/*Android使*/
"password" : "",
/*Android使*/
"aliasname" : "",
/*Android使*/
"permissions" : [
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
],
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ],
"autoSdkPermissions" : true
},
"orientation" : [ "portrait-primary" ],
/*portrait-primaryportrait-secondarylandscape-primarylandscape-secondary*/
"icons" : {
"ios" : {
"prerendered" : true,
/*iOS6*/
"auto" : "",
/*512x512*/
"iphone" : {
"normal" : "",
/*iPhone3/3GS57x57*/
"retina" : "",
/*iPhone4114x114*/
"retina7" : "",
/*iPhone4S/5/6120x120*/
"retina8" : "",
/*iPhone6 Plus180x180*/
"spotlight-normal" : "",
/*iPhone3/3GS Spotlight29x29*/
"spotlight-retina" : "",
/*iPhone4 Spotlight58x58*/
"spotlight-retina7" : "",
/*iPhone4S/5/6 Spotlight80x80*/
"settings-normal" : "",
/*iPhone429x29*/
"settings-retina" : "",
/*iPhone4S/5/658x58*/
"settings-retina8" : "",
"app@2x" : "unpackage/res/icons/120x120.png",
"app@3x" : "unpackage/res/icons/180x180.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"notification@3x" : "unpackage/res/icons/60x60.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"settings@3x" : "unpackage/res/icons/87x87.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png",
"spotlight@3x" : "unpackage/res/icons/120x120.png"
},
"ipad" : {
"normal" : "",
/*iPad72x72*/
"retina" : "",
/*iPad144x144*/
"normal7" : "",
/*iPad iOS776x76*/
"retina7" : "",
/*iPad iOS7152x152*/
"spotlight-normal" : "",
/*iPad Spotlight50x50*/
"spotlight-retina" : "",
/*iPadSpotlight100x100*/
"spotlight-normal7" : "",
/*iPad iOS7 Spotlight40x40*/
"spotlight-retina7" : "",
/*iPad iOS7Spotlight80x80*/
"settings-normal" : "",
/*iPad29x29*/
"settings-retina" : "",
"app" : "unpackage/res/icons/76x76.png",
"app@2x" : "unpackage/res/icons/152x152.png",
"notification" : "unpackage/res/icons/20x20.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"proapp@2x" : "unpackage/res/icons/167x167.png",
"settings" : "unpackage/res/icons/29x29.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"spotlight" : "unpackage/res/icons/40x40.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png"
},
"appstore" : "unpackage/res/icons/1024x1024.png"
},
"android" : {
"mdpi" : "",
/*48x48*/
"ldpi" : "",
/*48x48*/
"hdpi" : "unpackage/res/icons/72x72.png",
/*72x72*/
"xhdpi" : "unpackage/res/icons/96x96.png",
/*720P96x96*/
"xxhdpi" : "unpackage/res/icons/144x144.png",
"xxxhdpi" : "unpackage/res/icons/192x192.png"
}
},
"splashscreen" : {
"ios" : {
"iphone" : {
"default" : "",
/*iPhone3320x480*/
"retina35" : "",
/*3.5(iPhone4)640x960*/
"retina40" : "",
/*4.0 (iPhone5/iPhone5s)640x1136*/
"retina47" : "",
/*4.7 (iPhone6)750x1334*/
"retina55" : "",
/*5.5 (iPhone6 Plus)1242x2208*/
"retina55l" : ""
},
"ipad" : {
"portrait" : "",
/*iPad768x1004*/
"portrait-retina" : "",
/*iPad1536x2008*/
"landscape" : "",
/*iPad1024x748*/
"landscape-retina" : "",
/*iPad2048x1496*/
"portrait7" : "",
/*iPad iOS7768x1024*/
"portrait-retina7" : "",
/*iPad iOS71536x2048*/
"landscape7" : "",
/*iPad iOS71024x768*/
"landscape-retina7" : ""
}
},
"android" : {
"mdpi" : "",
/*240x282*/
"ldpi" : "",
/*320x442*/
"hdpi" : "",
/*480x762*/
"xhdpi" : "",
/*720P720x1242*/
"xxhdpi" : ""
}
},
"ios" : {
"dSYMs" : false
},
"plugins" : {
"ad" : {},
"push" : {
"unipush" : {}
}
}
}
},
"screenOrientation" : [ "portrait-primary" ]
}

@ -0,0 +1,40 @@
{
"global": {
"webviewParameter": {
"titleNView": {
"autoBackButton": true,
"backgroundColor": "#f7f7f7",//
"titleColor": "#000000",//
"titleSize": "17px"
},
"statusbar": {
//()
"style": "dark"
},
"appendCss": "",
"appendJs": ""
},
"easyConfig": {}
},
"pages": [
{
"webviewId": "__W2A__nightly.paw.msgbyte.com",//
"matchUrls": [
{
"href": "https://nightly.paw.msgbyte.com"
}, {
"href": "https://nightly.paw.msgbyte.com/"
}
],
"webviewParameter": {
"titleNView": false,
"statusbar": {
//
//使global->webviewParameter->titleNView->backgroundColor
//statusbarfalse
"background": "#f7f7f7"
}
}
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 896 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Loading…
Cancel
Save