mirror of
https://github.com/cocos/cocos-engine.git
synced 2026-09-10 01:32:55 +08:00
* optimize sys info init in adapters update * update sys init update sys * fix sys access * optimize isWebIOS14OrIPadOS14Env * update * update * update QTT adapter * update sys.capacities update sys * update common && qtt * add downloadFile to job module * update engine-adapter * update DeviceMotionEvent adaption * remove legacy qtt * add link-sure adaption * fix some bug * update vivo adaption && fs-utils * remove legacy link-sure * remove dom-adapter * remove HTMLCanvas appended to document * update vivo * support COCOS_PLAY * update adapters to platforms * remove test code * add OPPO adapter * add huawei adapter * remove test code * rename folder oppo-mini-game * rename folder huawei-quick-game * rename folder vivo-mini-game
23 lines
502 B
JavaScript
23 lines
502 B
JavaScript
let dataDemo = {
|
|
data: [
|
|
/*
|
|
{
|
|
rankScore: 0,
|
|
avatarUrl: '',
|
|
nickname: '',
|
|
},
|
|
*/
|
|
],
|
|
};
|
|
|
|
const maxCount = 30;
|
|
for (let i = 0; i < maxCount; ++i) {
|
|
let item = {};
|
|
item.rankScore = Math.floor((Math.random() * 500));
|
|
item.avatarUrl = 'openDataContext/render/avatar.png';
|
|
item.nickname = 'Player_' + i;
|
|
dataDemo.data.push(item);
|
|
}
|
|
dataDemo.data.sort((a, b) => b.rankScore - a.rankScore);
|
|
|
|
export default dataDemo; |