Skip to content

Commit 7e5aa3a

Browse files
committed
修复部分页面解析 移除FireBase
1 parent 4644996 commit 7e5aa3a

File tree

2 files changed

+1
-37
lines changed

2 files changed

+1
-37
lines changed

rustedwarfareapicode/.vitepress/theme/index.js

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,8 @@
11
// .vitepress/theme/index.js
22
import DefaultTheme from "vitepress/theme";
33
import "./style/custom.css";
4-
// Import the functions you need from the SDKs you need
5-
import { initializeApp } from "firebase/app";
6-
import { getAnalytics } from "firebase/analytics";
7-
import { getPerformance } from "firebase/performance";
84
import NotFound from "../theme/NotFound.vue";
95

10-
/**
11-
* 初始化 Firebase
12-
* @returns {Promise<string>} 初始化结果
13-
*/
14-
const initializeFirebase = () => {
15-
const firebaseConfig = {
16-
apiKey: "AIzaSyANVvapu0ihi1cM8ZzuXTkwjx9lM_J1RyQ",
17-
authDomain: "rw-api-code-d0779.firebaseapp.com",
18-
projectId: "rw-api-code-d0779",
19-
storageBucket: "rw-api-code-d0779.appspot.com",
20-
messagingSenderId: "363611843335",
21-
appId: "1:363611843335:web:f15aef7ab427f52b4033a2",
22-
measurementId: "G-XJH5TKP5VL",
23-
};
24-
25-
// Initialize Firebase
26-
const app = initializeApp(firebaseConfig);
27-
const analytics = getAnalytics(app);
28-
const perf = getPerformance(app);
29-
30-
return "Firebase initialized successfully";
31-
};
32-
33-
(async function () {
34-
try {
35-
const result = await initializeFirebase();
36-
console.log(result);
37-
} catch (error) {
38-
console.error(error);
39-
}
40-
})();
41-
426
/**
437
* 等待指定时间
448
* @param {number} timeout 等待时间,单位:毫秒

rustedwarfareapicode/src/Unit/core.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ buildSpeed:0.0006
221221

222222
代码:isBio 中文释义:是生物 类型:布尔型 隶属于:通用代码组
223223

224-
::: tip {2}
224+
::: tip
225225
若设置成true,则会在单位死亡时产生血迹,
226226
图像在<font color=orange>drawable/blood_mark.png<br>当hideScorchMark:true</font>时可以隐藏非生物则为黑色爆炸效果。
227227
:::

0 commit comments

Comments
 (0)