Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MingSnake_241120
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
MingSnake_241120
Commits
c243729a
Commit
c243729a
authored
Dec 18, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
5b0cf923
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
559 additions
and
513 deletions
+559
-513
HomeScene.scene
assets/Bundles/HomeScene/HomeScene.scene
+499
-498
ZipLoader.ts
assets/Start/ZipLoader.ts
+45
-0
index.html
build/web-mobile/index.html
+12
-12
builder.json
profiles/v2/packages/builder.json
+3
-3
No files found.
assets/Bundles/HomeScene/HomeScene.scene
View file @
c243729a
This diff is collapsed.
Click to expand it.
assets/Start/ZipLoader.ts
View file @
c243729a
...
...
@@ -70,6 +70,51 @@ export default class ZipLoader {
init
()
{
// const originalAppendChild = document.body.appendChild;
// document.body.appendChild = function (element) {
//
// // @ts-ignore
//
// if (element.tagName && element.tagName.toLowerCase() === 'script') {
//
// const origin = window.location.origin + "/";
//
// // @ts-ignore
//
// const zipUrl = element.src.replace(origin, "");
//
// console.log('result:', zipUrl);
//
// if (ResCache.has(zipUrl as string)) {
//
// const jsContent = ResCache.get(zipUrl);
//
// console.log('text:', jsContent);
//
// var newScript = document.createElement('script');
//
// newScript.type = 'text/javascript';
//
// newScript.innerHTML = jsContent;
//
// newScript.onload = () => {
//
// console.log('Script executed:', newScript.src);
//
// };
//
// document.body.appendChild(newScript);
//
// return
//
// }
//
// }
//
// return originalAppendChild.call(document.body, element);
//
// };
const
accessor
=
Object
.
getOwnPropertyDescriptor
(
XMLHttpRequest
.
prototype
,
'response'
);
Object
.
defineProperty
(
XMLHttpRequest
.
prototype
,
'response'
,
{
get
:
function
()
{
...
...
build/web-mobile/index.html
View file @
c243729a
...
...
@@ -98,14 +98,14 @@
</style>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1734
441244368
/src/assets/plugin/zepto.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1734
441244368
/src/assets/plugin/declare-process.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1734
441244368
/src/assets/plugin/SVGA.Lite.v2.1.1.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1734
441244368
/src/assets/plugin/jszip.min.v3.10.1.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1734
441244368
/src/assets/plugin/rem.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1734
500655609
/src/assets/plugin/zepto.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1734
500655609
/src/assets/plugin/declare-process.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1734
500655609
/src/assets/plugin/SVGA.Lite.v2.1.1.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1734
500655609
/src/assets/plugin/jszip.min.v3.10.1.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1734
500655609
/src/assets/plugin/rem.min.js"
></script>
<script
src=
"//res.wx.qq.com/open/js/jweixin-1.6.0.js"
></script>
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734
441244368
/style.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734
441244368
/custom.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734
500655609
/style.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1734
500655609
/custom.css" />-->
<!-- <script src="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/libs/eruda.min.js"></script>-->
<!-- <script>eruda.init()</script>-->
...
...
@@ -118,20 +118,20 @@
</div>
<!-- Polyfills bundle. -->
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1734
441244368
/src/polyfills.bundle.js"
charset=
"utf-8"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1734
500655609
/src/polyfills.bundle.js"
charset=
"utf-8"
></script>
<!-- SystemJS support. -->
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1734
441244368
/src/system.bundle.js"
charset=
"utf-8"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1734
500655609
/src/system.bundle.js"
charset=
"utf-8"
></script>
<!-- Import map -->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/1734
441244368
/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>-->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/1734
500655609
/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>-->
<script
type=
"systemjs-importmap"
charset=
"utf-8"
>
{
"imports"
:{
"cc"
:
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1734
441244368
/cocos-js/cc.js"
}}
{
"imports"
:{
"cc"
:
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1734
500655609
/cocos-js/cc.js"
}}
</script>
<script>
System
.
import
(
'//yun.duiba.com.cn/db_games/ccc_game/template3d/1734
441244368
/index.js'
).
catch
(
function
(
err
)
{
System
.
import
(
'//yun.duiba.com.cn/db_games/ccc_game/template3d/1734
500655609
/index.js'
).
catch
(
function
(
err
)
{
console
.
error
(
err
);
})
</script>
...
...
profiles/v2/packages/builder.json
View file @
c243729a
...
...
@@ -45,8 +45,8 @@
"progress"
:
1
,
"state"
:
"success"
,
"stage"
:
"build"
,
"message"
:
"2024-12-1
7 21:14:45 build success in 41
s!"
,
"detailMessage"
:
"
refresh db internal success
\r
"
,
"message"
:
"2024-12-1
8 13:44:59 build success in 44
s!"
,
"detailMessage"
:
"
%c兑吧发布插件 >> 版本号:1734500655609
\r
color: green
\r
"
,
"options"
:
{
"name"
:
"cocos-template-3d"
,
"server"
:
""
,
...
...
@@ -109,7 +109,7 @@
"__version__"
:
"1.3.8"
,
"logDest"
:
"project://temp/builder/log/web-mobile2024-11-6 15-39.log"
},
"time"
:
"2024-12-1
7 21:14:03
"
,
"time"
:
"2024-12-1
8 13:44:15
"
,
"dirty"
:
false
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment