mirror of
https://ghproxy.com/https://github.com/StreakingMan/solvable-sheep-game
synced 2026-07-29 18:16:41 +08:00
Merge branch 'master' into themes/pdd
# Conflicts: # src/App.tsx
This commit is contained in:
+10
-4
@@ -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>
|
||||
|
||||
@@ -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.
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user