Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
靖轩达人
uni-app
提交
bfcaecd1
U
uni-app
项目概览
靖轩达人
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
bfcaecd1
编写于
8月 20, 2019
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(stat): init stat
上级
b47f7fae
变更
15
展开全部
隐藏空白更改
内联
并排
Showing
15 changed file
with
928 addition
and
50 deletion
+928
-50
build/rollup.config.stat.js
build/rollup.config.stat.js
+19
-0
package.json
package.json
+1
-0
packages/uni-mp-alipay/dist/index.js
packages/uni-mp-alipay/dist/index.js
+33
-11
packages/uni-mp-alipay/package.json
packages/uni-mp-alipay/package.json
+1
-1
packages/uni-mp-qq/dist/index.js
packages/uni-mp-qq/dist/index.js
+11
-12
packages/uni-mp-qq/package.json
packages/uni-mp-qq/package.json
+1
-1
packages/uni-mp-toutiao/dist/index.js
packages/uni-mp-toutiao/dist/index.js
+29
-19
packages/uni-mp-toutiao/package.json
packages/uni-mp-toutiao/package.json
+1
-1
packages/uni-stat/dist/index.js
packages/uni-stat/dist/index.js
+825
-0
packages/uni-stat/src/config.js
packages/uni-stat/src/config.js
+1
-1
packages/vue-cli-plugin-hbuilderx/build/webpack.nvue.conf.js
packages/vue-cli-plugin-hbuilderx/build/webpack.nvue.conf.js
+2
-1
packages/vue-cli-plugin-hbuilderx/package.json
packages/vue-cli-plugin-hbuilderx/package.json
+1
-1
packages/vue-cli-plugin-uni/generator.js
packages/vue-cli-plugin-uni/generator.js
+1
-1
packages/vue-cli-plugin-uni/lib/configure-webpack.js
packages/vue-cli-plugin-uni/lib/configure-webpack.js
+1
-0
packages/vue-cli-plugin-uni/package.json
packages/vue-cli-plugin-uni/package.json
+1
-1
未找到文件。
build/rollup.config.stat.js
0 → 100644
浏览文件 @
bfcaecd1
const
path
=
require
(
'
path
'
)
const
alias
=
require
(
'
rollup-plugin-alias
'
)
const
replace
=
require
(
'
rollup-plugin-replace
'
)
const
nodeResolve
=
require
(
'
rollup-plugin-node-resolve
'
)
const
commonjs
=
require
(
'
rollup-plugin-commonjs
'
)
const
requireContext
=
require
(
'
../lib/rollup-plugin-require-context
'
)
const
resolve
=
dir
=>
path
.
resolve
(
__dirname
,
'
../
'
,
dir
)
module
.
exports
=
{
input
:
'
packages/uni-stat/src/index.js
'
,
output
:
{
file
:
'
packages/uni-stat/dist/index.js
'
,
format
:
'
es
'
},
external
:
[
'
vue
'
,
'
@dcloudio/uni-stat/package.json
'
],
plugins
:
[]
}
package.json
浏览文件 @
bfcaecd1
...
...
@@ -16,6 +16,7 @@
"build:mp-alipay"
:
"cross-env UNI_PLATFORM=mp-alipay rollup -c build/rollup.config.mp.js"
,
"build:mp-toutiao"
:
"cross-env UNI_PLATFORM=mp-toutiao rollup -c build/rollup.config.mp.js"
,
"build:runtime"
:
"npm run lint && npm run build:mp-weixin && npm run build:mp-qq && npm run build:mp-alipay && npm run build:mp-baidu && npm run build:mp-toutiao && npm run build:app-plus"
,
"build:stat"
:
"rollup -c build/rollup.config.stat.js"
,
"test:unit"
:
"cross-env NODE_ENV=test UNI_PLATFORM=h5 mocha-webpack --require tests/unit/setup.js --webpack-config build/webpack.config.test.js tests/unit/**/*.spec.js"
,
"release"
:
"npm run lint:cli && lerna publish --force-publish=*"
,
"release:alpha"
:
"npm run lint:cli && lerna publish --force-publish=* --npm-tag=alpha"
...
...
packages/uni-mp-alipay/dist/index.js
浏览文件 @
bfcaecd1
...
...
@@ -356,8 +356,6 @@ const todos = [
'
getRecorderManager
'
,
'
getBackgroundAudioManager
'
,
'
createInnerAudioContext
'
,
'
chooseVideo
'
,
'
saveVideoToPhotosAlbum
'
,
'
createVideoContext
'
,
'
createCameraContext
'
,
'
createLivePlayerContext
'
,
...
...
@@ -366,12 +364,7 @@ const todos = [
'
startAccelerometer
'
,
'
startCompass
'
,
'
addPhoneContact
'
,
'
setBackgroundColor
'
,
'
setBackgroundTextStyle
'
,
'
createIntersectionObserver
'
,
'
authorize
'
,
'
openSetting
'
,
'
getSetting
'
,
'
chooseAddress
'
,
'
chooseInvoiceTitle
'
,
'
addTemplate
'
,
...
...
@@ -380,12 +373,12 @@ const todos = [
'
getTemplateLibraryList
'
,
'
getTemplateList
'
,
'
sendTemplateMessage
'
,
'
getUpdateManager
'
,
'
setEnableDebug
'
,
'
getExtConfig
'
,
'
getExtConfigSync
'
,
'
onWindowResize
'
,
'
offWindowResize
'
'
offWindowResize
'
,
'
saveVideoToPhotosAlbum
'
];
// 存在兼容性的 API 列表
...
...
@@ -398,7 +391,13 @@ const canIUses = [
'
setTabBarBadge
'
,
'
removeTabBarBadge
'
,
'
showTabBarRedDot
'
,
'
hideTabBarRedDot
'
'
hideTabBarRedDot
'
,
'
openSetting
'
,
'
getSetting
'
,
'
createIntersectionObserver
'
,
'
getUpdateManager
'
,
'
setBackgroundColor
'
,
'
setBackgroundTextStyle
'
];
function
_handleNetworkInfo
(
result
)
{
...
...
@@ -551,6 +550,12 @@ const protocols = { // 需要做转换的 API 列表
returnValue
:
{
apFilePath
:
'
tempFilePath
'
}
},
chooseVideo
:
{
// 支付宝小程序文档中未找到(仅在getSetting处提及),但实际可用
returnValue
:
{
apFilePath
:
'
tempFilePath
'
}
},
connectSocket
:
{
args
:
{
...
...
@@ -686,6 +691,18 @@ const protocols = { // 需要做转换的 API 列表
item
.
uuid
=
item
.
serviceId
;
});
}
},
createBLEConnection
:
{
name
:
'
connectBLEDevice
'
,
args
:
{
timeout
:
false
}
},
closeBLEConnection
:
{
name
:
'
disconnectBLEDevice
'
},
onBLEConnectionStateChange
:
{
name
:
'
onBLEConnectionStateChanged
'
},
makePhoneCall
:
{
args
:
{
...
...
@@ -717,6 +734,9 @@ const protocols = { // 需要做转换的 API 列表
returnValue
:
{
brightness
:
'
value
'
}
},
showShareMenu
:
{
name
:
'
showSharePanel
'
}
};
...
...
@@ -936,7 +956,9 @@ function createExecCallback (execCallback) {
callback
(
res
[
index
]);
});
});
execCallback
(
res
);
if
(
isFn
(
execCallback
))
{
execCallback
(
res
);
}
}
}
...
...
packages/uni-mp-alipay/package.json
浏览文件 @
bfcaecd1
{
"name"
:
"@dcloudio/uni-mp-alipay"
,
"version"
:
"
1.0.0-alpha-22120190814002
"
,
"version"
:
"
0.0.827
"
,
"description"
:
"uni-app mp-alipay"
,
"main"
:
"dist/index.js"
,
"scripts"
:
{
...
...
packages/uni-mp-qq/dist/index.js
浏览文件 @
bfcaecd1
...
...
@@ -388,18 +388,9 @@ const protocols = {
previewImage
};
const
todos
=
[
'
connectSocket
'
,
'
onSocketOpen
'
,
'
onSocketError
'
,
'
sendSocketMessage
'
,
'
onSocketMessage
'
,
'
closeSocket
'
,
'
onSocketClose
'
,
'
createLivePlayerContext
'
,
'
createLivePusherContext
'
,
'
loadFontFace
'
,
'
openDocument
'
,
'
canIUse
'
,
'
onMemoryWarning
'
,
'
onNetworkStatusChange
'
,
'
startBeaconDiscovery
'
,
...
...
@@ -426,8 +417,6 @@ const todos = [
'
getExtConfig
'
,
'
getExtConfigSync
'
,
'
getPhoneNumber
'
,
'
updateShareMenu
'
,
'
getShareInfo
'
,
'
chooseAddress
'
,
'
addCard
'
,
'
openCard
'
,
...
...
@@ -454,7 +443,17 @@ const canIUses = [
'
onUserCaptureScreen
'
,
'
vibrateLong
'
,
'
vibrateShort
'
,
'
createWorker
'
'
createWorker
'
,
'
connectSocket
'
,
'
onSocketOpen
'
,
'
onSocketError
'
,
'
sendSocketMessage
'
,
'
onSocketMessage
'
,
'
closeSocket
'
,
'
onSocketClose
'
,
'
openDocument
'
,
'
updateShareMenu
'
,
'
getShareInfo
'
];
const
CALLBACKS
=
[
'
success
'
,
'
fail
'
,
'
cancel
'
,
'
complete
'
];
...
...
packages/uni-mp-qq/package.json
浏览文件 @
bfcaecd1
{
"name"
:
"@dcloudio/uni-mp-qq"
,
"version"
:
"
1.0.0-alpha-22120190814002
"
,
"version"
:
"
0.0.111
"
,
"description"
:
"uni-app mp-qq"
,
"main"
:
"dist/index.js"
,
"scripts"
:
{
...
...
packages/uni-mp-toutiao/dist/index.js
浏览文件 @
bfcaecd1
...
...
@@ -386,22 +386,10 @@ var previewImage = {
// 不支持的 API 列表
const
todos
=
[
'
hideKeyboard
'
,
'
onSocketOpen
'
,
'
onSocketError
'
,
'
sendSocketMessage
'
,
'
onSocketMessage
'
,
'
closeSocket
'
,
'
onSocketClose
'
,
'
getImageInfo
'
,
'
getBackgroundAudioManager
'
,
'
createVideoContext
'
,
'
createCameraContext
'
,
'
createLivePlayerContext
'
,
'
getSavedFileList
'
,
'
getSavedFileInfo
'
,
'
removeSavedFile
'
,
'
getFileInfo
'
,
'
openDocument
'
,
'
chooseLocation
'
,
'
createMapContext
'
,
...
...
@@ -450,7 +438,6 @@ const todos = [
'
hideTabBarRedDot
'
,
'
setBackgroundColor
'
,
'
setBackgroundTextStyle
'
,
'
createIntersectionObserver
'
,
'
chooseInvoiceTitle
'
,
'
navigateToMiniProgram
'
,
'
navigateBackMiniProgram
'
,
...
...
@@ -461,14 +448,30 @@ const todos = [
'
getTemplateList
'
,
'
sendTemplateMessage
'
,
'
setEnableDebug
'
,
'
getExtConfig
'
,
'
getExtConfigSync
'
,
'
onWindowResize
'
,
'
offWindowResize
'
'
offWindowResize
'
,
'
compressImage
'
,
'
createOffscreenCanvas
'
];
// 存在兼容性的 API 列表
const
canIUses
=
[];
// 头条小程序不支持canIUses
const
canIUses
=
[
// 'createIntersectionObserver',
// 'getSavedFileList',
// 'removeSavedFile',
// 'hideKeyboard',
// 'getImageInfo',
// 'createVideoContext',
// 'onSocketOpen',
// 'onSocketError',
// 'sendSocketMessage',
// 'onSocketMessage',
// 'closeSocket',
// 'onSocketClose',
// 'getExtConfig',
// 'getExtConfigSync',
];
// 需要做转换的 API 列表
const
protocols
=
{
...
...
@@ -485,7 +488,7 @@ const protocols = {
},
chooseVideo
:
{
args
:
{
maxDuration
:
false
camera
:
false
}
},
scanCode
:
{
...
...
@@ -534,7 +537,14 @@ const protocols = {
}
},
requestPayment
:
{
orderInfo
:
'
data
'
args
:
{
orderInfo
:
'
data
'
}
},
getFileInfo
:
{
args
:
{
digestAlgorithm
:
false
}
}
};
...
...
packages/uni-mp-toutiao/package.json
浏览文件 @
bfcaecd1
{
"name"
:
"@dcloudio/uni-mp-toutiao"
,
"version"
:
"
1.0.0-alpha-22120190814002
"
,
"version"
:
"
0.0.351
"
,
"description"
:
"uni-app mp-toutiao"
,
"main"
:
"dist/index.js"
,
"scripts"
:
{
...
...
packages/uni-stat/dist/index.js
0 → 100644
浏览文件 @
bfcaecd1
此差异已折叠。
点击以展开。
packages/uni-stat/src/config.js
浏览文件 @
bfcaecd1
import
{
version
}
from
'
..
/package.json
'
}
from
'
@dcloudio/uni-stat
/package.json
'
export
const
STAT_VERSION
=
version
export
const
STAT_URL
=
'
https://tongji.dcloud.net.cn/uni/stat
'
export
const
STAT_H5_URL
=
'
https://tongji.dcloud.net.cn/uni/stat.gif
'
...
...
packages/vue-cli-plugin-hbuilderx/build/webpack.nvue.conf.js
浏览文件 @
bfcaecd1
...
...
@@ -210,7 +210,8 @@ module.exports = function (entry) {
extensions
:
[
'
.js
'
,
'
.nvue
'
,
'
.vue
'
,
'
.json
'
],
alias
:
{
'
@
'
:
process
.
env
.
UNI_INPUT_DIR
,
'
uni-pages
'
:
path
.
resolve
(
process
.
env
.
UNI_INPUT_DIR
,
'
pages.json
'
),
'
uni-pages
'
:
path
.
resolve
(
process
.
env
.
UNI_INPUT_DIR
,
'
pages.json
'
),
'
@dcloudio/uni-stat
'
:
require
.
resolve
(
'
@dcloudio/uni-stat
'
),
'
uni-stat-config
'
:
path
.
resolve
(
process
.
env
.
UNI_INPUT_DIR
,
'
pages.json
'
)
+
'
?
'
+
JSON
.
stringify
({
...
...
packages/vue-cli-plugin-hbuilderx/package.json
浏览文件 @
bfcaecd1
{
"name"
:
"@dcloudio/vue-cli-plugin-hbuilderx"
,
"version"
:
"1.0.
0-alpha-22120190814002
"
,
"version"
:
"1.0.
135
"
,
"description"
:
"HBuilderX plugin for vue-cli 3"
,
"main"
:
"index.js"
,
"scripts"
:
{
...
...
packages/vue-cli-plugin-uni/generator.js
浏览文件 @
bfcaecd1
module
.
exports
=
(
api
,
options
,
rootOptions
)
=>
{
let
version
=
'
^1.0.0-22220190816001
'
let
version
=
'
*
'
if
(
require
(
'
./package.json
'
).
version
.
indexOf
(
'
alpha
'
)
!==
-
1
)
{
version
=
'
^1.0.0-alpha-22120190814001
'
}
...
...
packages/vue-cli-plugin-uni/lib/configure-webpack.js
浏览文件 @
bfcaecd1
...
...
@@ -261,6 +261,7 @@ module.exports = function configureWebpack (platformOptions, manifestPlatformOpt
'
@
'
:
path
.
resolve
(
process
.
env
.
UNI_INPUT_DIR
),
'
vue$
'
:
getPlatformVue
(),
'
uni-pages
'
:
path
.
resolve
(
process
.
env
.
UNI_INPUT_DIR
,
'
pages.json
'
),
'
@dcloudio/uni-stat
'
:
require
.
resolve
(
'
@dcloudio/uni-stat
'
),
'
uni-stat-config
'
:
path
.
resolve
(
process
.
env
.
UNI_INPUT_DIR
,
'
pages.json
'
)
+
'
?
'
+
JSON
.
stringify
({
...
...
packages/vue-cli-plugin-uni/package.json
浏览文件 @
bfcaecd1
{
"name"
:
"@dcloudio/vue-cli-plugin-uni"
,
"version"
:
"
1.0.0-alpha-2212019081400
2"
,
"version"
:
"
0.9.52
2"
,
"description"
:
"uni-app plugin for vue-cli 3"
,
"main"
:
"index.js"
,
"scripts"
:
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录