feat: 接入Bmob储存自定义配置

This commit is contained in:
streakingman
2022-09-25 02:56:32 +08:00
parent e35ddfa44e
commit f6681cabb0
8 changed files with 2064 additions and 75 deletions
+23 -12
View File
@@ -22,6 +22,10 @@
</head>
<body>
<div id="root"></div>
<script>
// vite没有global,手动声明
var global = global || window;
</script>
<script type="module" src="/src/main.tsx"></script>
<script
async
@@ -30,19 +34,26 @@
<script async>
// 如果您基于此项目二创,可以删除以下代码
// 否则请标明原仓库地址
setTimeout(()=>{
const {hostname} = location
if(hostname!=='localhost'&&!hostname.endsWith('streakingman.com')){
const a = document.createElement('a')
a.setAttribute('href','https://github.com/StreakingMan/solvable-sheep-game')
a.setAttribute('target','_blank')
a.innerText='本项目仅供交流,禁止商业用途,点击查看原github仓库'
const p = document.createElement('p')
p.style.textAlign = 'center'
p.append(a)
document.body.prepend(p)
setTimeout(() => {
const { hostname } = location;
if (
hostname !== 'localhost' &&
!hostname.endsWith('streakingman.com')
) {
const a = document.createElement('a');
a.setAttribute(
'href',
'https://github.com/StreakingMan/solvable-sheep-game'
);
a.setAttribute('target', '_blank');
a.innerText =
'本项目仅供交流,禁止商业用途,点击查看原github仓库';
const p = document.createElement('p');
p.style.textAlign = 'center';
p.append(a);
document.body.prepend(p);
}
},5000)
}, 5000);
</script>
</body>
</html>