@ttmg/cli 0.2.0 → 0.2.1-beta.2
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/CHANGELOG.md +5 -0
- package/dist/index.js +17 -7
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/public/0.2.0/assets/icon-DcfeE9nw.svg +8 -0
- package/dist/public/0.2.0/assets/index-D1WVr-6g.css +1 -0
- package/dist/public/0.2.0/assets/index-D1WVr-6g.css.br +0 -0
- package/dist/public/0.2.0/assets/index-bgOys9Pg.js +67 -0
- package/dist/public/0.2.0/assets/index-bgOys9Pg.js.br +0 -0
- package/dist/public/0.2.0/icon.svg +8 -0
- package/dist/public/0.2.0/index.html +31 -0
- package/dist/public/0.2.0/scripts/krypton.js +11 -0
- package/dist/public/0.2.0/scripts/ttmg-core.js +24 -0
- package/dist/public/assets/index-BG_levyq.js +67 -0
- package/dist/public/assets/index-BG_levyq.js.br +0 -0
- package/dist/public/assets/index-BXJPPtav.js +67 -0
- package/dist/public/assets/index-BXJPPtav.js.br +0 -0
- package/dist/public/assets/index-BgiAkI9H.js +67 -0
- package/dist/public/assets/index-BgiAkI9H.js.br +0 -0
- package/dist/public/assets/index-Feq94sBR.js +67 -0
- package/dist/public/assets/index-Feq94sBR.js.br +0 -0
- package/dist/public/assets/index-bgOys9Pg.js +67 -0
- package/dist/public/assets/index-bgOys9Pg.js.br +0 -0
- package/dist/public/index.0.2.0.html +31 -0
- package/dist/public/index.html +1 -1
- package/package.json +1 -1
|
Binary file
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg fill="currentColor" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg" width="32" height="32">
|
|
2
|
+
<path
|
|
3
|
+
d="M37.86 17.82c.14.24.14.67.14 1.53v9.5c0 1.14 0 1.72-.2 2.26-.16.49-.43.96-.77 1.34-.37.44-.87.73-1.86 1.3l-7.84 4.53c-.74.43-1.11.64-1.4.64a.66.66 0 0 1-.58-.34c-.14-.24-.14-.67-.14-1.53v-9.5c0-1.14 0-1.71.2-2.26.16-.48.43-.95.76-1.34.38-.44.88-.73 1.87-1.3l7.84-4.52c.74-.43 1.11-.65 1.4-.64.25 0 .45.12.58.33Z">
|
|
4
|
+
</path>
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
6
|
+
d="m27.54 1.99 7 3.93 6.89 4a7.23 7.23 0 0 1 3.59 6.2l.06 7.88-.06 7.88a7.23 7.23 0 0 1-3.6 6.2l-6.88 4-7 3.93a7.23 7.23 0 0 1-7.08 0l-7-3.93-6.9-4a7.23 7.23 0 0 1-3.58-6.2L2.9 24l.07-7.88a7.23 7.23 0 0 1 3.59-6.2l6.89-4 7-3.93a7.23 7.23 0 0 1 7.08 0Zm-2.07 3.67 6.98 3.92 6.86 3.99a3.01 3.01 0 0 1 1.5 2.58l.06 7.85-.07 7.85c0 1.06-.57 2.04-1.5 2.58l-6.85 4-6.98 3.9c-.91.52-2.03.52-2.95 0l-6.97-3.9-6.86-4a3.01 3.01 0 0 1-1.5-2.58L7.13 24l.06-7.85c.01-1.06.58-2.04 1.5-2.58l6.86-4 6.97-3.9a3.01 3.01 0 0 1 2.95 0Z">
|
|
7
|
+
</path>
|
|
8
|
+
</svg>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<link
|
|
7
|
+
rel="icon"
|
|
8
|
+
href="/assets/icon-DcfeE9nw.svg"
|
|
9
|
+
/>
|
|
10
|
+
<link
|
|
11
|
+
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap"
|
|
12
|
+
rel="stylesheet"
|
|
13
|
+
/>
|
|
14
|
+
<title>TikTok Mini Games DevTool</title>
|
|
15
|
+
<script type="module" crossorigin src="/assets/index-bgOys9Pg.js"></script>
|
|
16
|
+
<link rel="stylesheet" crossorigin href="/assets/index-D1WVr-6g.css">
|
|
17
|
+
</head>
|
|
18
|
+
<body>
|
|
19
|
+
<div id="root"></div>
|
|
20
|
+
<iframe
|
|
21
|
+
style="visibility: hidden"
|
|
22
|
+
id="game"
|
|
23
|
+
src="about:blank"
|
|
24
|
+
></iframe>
|
|
25
|
+
<!-- <script
|
|
26
|
+
type="module"
|
|
27
|
+
crossorigin
|
|
28
|
+
src="https://connect.tiktok-minis.com/game/dev-setup.js"
|
|
29
|
+
></script> -->
|
|
30
|
+
</body>
|
|
31
|
+
</html>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
|
|
2
|
+
console.log('hello, iam ttmg-core')
|
|
3
|
+
|
|
4
|
+
window.login = function () {
|
|
5
|
+
console.log('login from ttmg-core');
|
|
6
|
+
};
|
|
7
|
+
window.require = function (url) {
|
|
8
|
+
console.log('require', url);
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
window.__DEV__ = {
|
|
12
|
+
...globalThis.__DEV__,
|
|
13
|
+
setup(options) {
|
|
14
|
+
console.log('__DEV__', options);
|
|
15
|
+
},
|
|
16
|
+
subscribeHandler(event, data) {
|
|
17
|
+
console.log('subscribeHandler', event, data);
|
|
18
|
+
},
|
|
19
|
+
sendMessage(data) {
|
|
20
|
+
console.log('message from client', data);
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
console.log('ttmg-core loaded', globalThis.__DEV__);
|