Merge branch 'master' into themes/pdd

# Conflicts:
#	src/App.tsx
This commit is contained in:
streakingman 2022-09-22 12:47:05 +08:00
commit a5e1ea1004
84 changed files with 97 additions and 46 deletions

View File

@ -2,6 +2,19 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
### [0.0.3](https://github.com/StreakingMan/solvable-sheep-game/compare/v0.0.2...v0.0.3) (2022-09-22)
### Features
* 优化洗牌算法为O(n)的洗牌算法 ([8b3960e](https://github.com/StreakingMan/solvable-sheep-game/commit/8b3960e9762441246de2320252aceca505076e2c))
### Bug Fixes
* bgm加载时机调整 ([f0e2caf](https://github.com/StreakingMan/solvable-sheep-game/commit/f0e2caf7a7124981eef6bc4ff9ed7b459893c102))
* host判断 ([d1d7c6b](https://github.com/StreakingMan/solvable-sheep-game/commit/d1d7c6b2f06e3d67a4edf6cabc14a3fa419d5d93))
### [0.0.2](https://github.com/StreakingMan/solvable-sheep-game/compare/v0.0.1...v0.0.2) (2022-09-20)

Binary file not shown.

BIN
dist/assets/bgm.dd360222.mp3 vendored Normal file

Binary file not shown.

40
dist/assets/index.5f4c499f.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

BIN
dist/assets/music.23baa7eb.mp3 vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
dist/assets/sound-triple.33b9817c.mp3 vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

BIN
dist/assets/中指.96683709.mp3 vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
dist/assets/你干嘛哎呦.f4670ca7.mp3 vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 225 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 638 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 288 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 636 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 261 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 231 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 295 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

BIN
dist/assets/我黑切呢.8094b7d4.mp3 vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

BIN
dist/assets/笑1.6323c5e3.mp3 vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

BIN
dist/assets/笑2.d9fa6094.mp3 vendored Normal file

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

BIN
dist/assets/笑3.b0a821eb.mp3 vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

BIN
dist/assets/笑4.e266b69a.mp3 vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

BIN
dist/assets/篮球击地.50053395.mp3 vendored Normal file

Binary file not shown.

BIN
dist/assets/肌肉金轮1.47f18038.mp3 vendored Normal file

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

BIN
dist/assets/肌肉金轮2.184f3d14.mp3 vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

BIN
dist/assets/肌肉金轮3.cbc5b4cc.mp3 vendored Normal file

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

BIN
dist/assets/韩委员.880571c2.mp3 vendored Normal file

Binary file not shown.

BIN
dist/assets/鸡你太美.66fdae33.mp3 vendored Normal file

Binary file not shown.

Binary file not shown.

19
dist/index.html vendored
View File

@ -19,7 +19,7 @@
s.parentNode.insertBefore(hm, s);
})();
</script>
<script type="module" crossorigin src="/assets/index.872e09a8.js"></script>
<script type="module" crossorigin src="/assets/index.5f4c499f.js"></script>
<link rel="stylesheet" href="/assets/index.15f870d5.css">
</head>
<body>
@ -29,5 +29,22 @@
async
src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"
></script>
<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)
}
},5000)
</script>
</body>
</html>

BIN
dist/sound-disco.mp3 vendored

Binary file not shown.

View File

@ -1,7 +1,7 @@
{
"name": "solvable-sheep-game",
"private": false,
"version": "0.0.2",
"version": "0.0.3",
"type": "module",
"scripts": {
"dev": "vite",

Binary file not shown.

View File

@ -15,6 +15,7 @@ import { fishermanTheme } from './themes/fisherman';
import { jinlunTheme } from './themes/jinlun';
import { ikunTheme } from './themes/ikun';
import { pddTheme } from './themes/pdd';
import { BeiAn } from './themes/BeiAn';
// 主题
const themes = [defaultTheme, fishermanTheme, jinlunTheme, ikunTheme, pddTheme];
@ -186,11 +187,14 @@ const App: FC = () => {
// 主题切换
useEffect(() => {
setBgmOn(false);
// 初始化时不加载bgm
if (once) {
setBgmOn(false);
setTimeout(() => {
setBgmOn(true);
}, 300);
}
restart();
setTimeout(() => {
setBgmOn(true);
}, 300);
}, [curTheme]);
// 队列区排序
@ -445,6 +449,8 @@ const App: FC = () => {
</span>
</p>
<BeiAn />
{finished && (
<div className="modal">
<h1>{tipText}</h1>

15
src/themes/BeiAn.tsx Normal file
View File

@ -0,0 +1,15 @@
import React, { FC } from 'react';
export const BeiAn: FC = () => {
return (
<p style={{ textAlign: 'center' }}>
<a
href="https://beian.miit.gov.cn/"
target="_blank"
rel="noopener noreferrer nofollow"
>
ICP备17007857号-2
</a>
</p>
);
};

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.