-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 更新了服务器分类下的插件和原版问题 (#223) update doc * 📃 docs(contributing): config markdown lint * upd: vanilla.md -> pic link (#225) * 一些更新 (#227) * update doc * update * 更新 * fix * Update plugins.md * Update index.md * 🐞 fix(actions): add pages check close #226 #229 * edit workflow * update pages-check * Update pages-check.yml * Update pages-check.yml * Update README.md * 💥 upd: visible * 💥 upd: visible * ✨ feat(assets): convert & tinify imgs close #228 * fix expand transition * fix a format issue * ✨ feat(sidebar): add commons.md * ✨ feat(upload crash): change upload crash change upload crash link to point to /contribute/crash-report * 🦄 refactor(data): use json data dont use `.ts` file to handle data * fix serval issue about analyzer, and bump MCLA to v0.5.0 * docs: add 在服务端运行仅客户端模组 close #231 * 🐞 fix(PWA): try to fix PWA #232 WIP * 🌈 style(style): edit style config * 🌈 style(format): format files * docs: 增加 无法链接到后端服务器 后端服务器正版验证未关闭 (#239) * bump MCLA to v0.5.1 (#238) Fix line number * doc: 常见问题 插件无法链接到更新服务器 (#242) * doc: 常见问题 插件无法链接到更新服务器 * Update docs/server/plugins.md Co-authored-by: Kevin Z <[email protected]> * Update docs/server/plugins.md Co-authored-by: Kevin Z <[email protected]> * Update docs/server/plugins.md --------- Co-authored-by: bingxin666 <[email protected]> Co-authored-by: Kevin Z <[email protected]> * update CRASH-UPLOAD (#243) * update CRASH-UPLOAD add a few requirements before report issue * update format * Issue 模版增加截图 textarea,并将 Mac 改成 macOS (#244) * Create screenshot textarea * 将Mac 改成 macOS * fixed pwa * fix style * install @vite-pwa/vitepress * 🦄 refactor(theme): edit theme structure * 🦄 refactor(dir): move `.vitepress` dir * 🐞 fix(import): fix import * 🐞 fix(import): fix import * 🐞 fix(import): fix import * 添加双向链接支持、增强可读性,并更新依赖项 使用 VitePress 插件添加了双向链接支持、新的贡献者组件、Git 提交历史、增强阅读体验;将 VitePress 更新到 v1.1.4 并更新其他依赖 * 修复可能导致构建失败的问题 * 修一下提交信息和贡献者不显示的问题 * 使用 Actions 部署到 CF Pages * 加一个手动执行 * 忘记改提交哈希获取了 * 🔥 upd: format * ❤️ upd: better lang use * 折腾了一下贡献者组件 --------- Co-authored-by: bingxin666 <[email protected]> Co-authored-by: bingling-sama <[email protected]> Co-authored-by: zkitefly <[email protected]> Co-authored-by: XieXiLin <[email protected]> Co-authored-by: zyxkad <[email protected]> Co-authored-by: Pysio <[email protected]> Co-authored-by: 何杰豪 <[email protected]>
- Loading branch information
1 parent
8e56284
commit 645acb5
Showing
85 changed files
with
9,395 additions
and
7,537 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Pages Check | ||
run-name: ${{ github.actor }} is checking pages deployment 🚀 | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Setup Node.js environment | ||
uses: actions/[email protected] | ||
- name: Setup pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 8.15.3 | ||
- name: Install dependencies | ||
run: pnpm install | ||
- name: Build Pages | ||
run: pnpm run docs:build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: Build Docs to Cloudflare Pages | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- 'dev' | ||
|
||
env: | ||
STORE_PATH: '' | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-22.04 | ||
environment: | ||
name: Production Docs | ||
url: https://beta.crashmc.com | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Node.js 20.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20.x | ||
|
||
- uses: pnpm/action-setup@v3 | ||
name: Install pnpm | ||
with: | ||
version: 9.0.4 | ||
run_install: false | ||
|
||
- name: Get pnpm store directory | ||
shell: bash | ||
run: | | ||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | ||
- uses: actions/cache@v4 | ||
name: Setup pnpm cache | ||
with: | ||
path: ${{ env.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: Build docs | ||
run: | | ||
pnpm run docs:build | ||
env: | ||
# As suggested in Verbose Build option to be able to track down errors https://github.com/vuejs/vitepress/issues/422 | ||
# vitepress build command does not have --debug option, so we need to set it manually where the debug package is used. | ||
# DEBUG: 'vitepress:*' | ||
VUE_PROD_HYDRATION_MISMATCH_DETAILS_FLAG: '1' | ||
|
||
- name: Publish to Cloudflare Pages | ||
id: deploy | ||
uses: cloudflare/pages-action@v1 | ||
with: | ||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | ||
projectName: ${{ secrets.CLOUDFLARE_PROJECT_NAME }} | ||
directory: .vitepress/dist | ||
# Optional: Switch what branch you are publishing to. | ||
# By default this will be the branch which triggered this workflow | ||
branch: dev | ||
# Optional: Change the Wrangler version, allows you to point to a specific version or a tag such as `beta` | ||
wranglerVersion: '3' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"default": true, | ||
"MD033": false, | ||
"MD041": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
export type { | ||
readable, | ||
StackInfo, | ||
Stacktrace, | ||
JavaError, | ||
ReportDetails, | ||
HeadThread, | ||
AffectedLevel, | ||
DetailsItem, | ||
CrashReport, | ||
ErrorDesc, | ||
SolutionPossibility, | ||
ErrorResult, | ||
Solution, | ||
MCLAAPI, | ||
} | ||
|
||
type readable = | ||
| string | ||
| Uint8Array | ||
| ReadableStream | ||
| ReadableStreamDefaultReader | ||
|
||
interface StackInfo { | ||
raw: string | ||
class: string | ||
method: string | ||
} | ||
|
||
type Stacktrace = StackInfo[] | ||
|
||
interface JavaError { | ||
class: string | ||
message: string | ||
stacktrace: Stacktrace | ||
causedBy: JavaError | ||
// extra infos | ||
lineNo: number | ||
} | ||
|
||
type ReportDetails = Map<string, string[]> | ||
|
||
interface HeadThread { | ||
thread: string | ||
stacktrace: Stacktrace | ||
} | ||
|
||
interface AffectedLevel { | ||
details: ReportDetails | ||
stacktrace: Stacktrace | ||
} | ||
|
||
interface DetailsItem { | ||
details: ReportDetails | ||
} | ||
|
||
interface CrashReport { | ||
description: string | ||
error: JavaError | ||
head: HeadThread | ||
affectedLevel: AffectedLevel | ||
others: Map<string, DetailsItem> | ||
} | ||
|
||
interface ErrorDesc { | ||
error: string | ||
message: string | ||
solutions: number[] | ||
} | ||
|
||
interface SolutionPossibility { | ||
errorDesc: ErrorDesc | ||
match: number | ||
} | ||
|
||
interface ErrorResult { | ||
error: JavaError | ||
matched: SolutionPossibility[] | ||
file?: string | ||
} | ||
|
||
interface Solution { | ||
tags: string[] | ||
description: string | ||
link_to: string | ||
} | ||
|
||
interface MCLAAPI { | ||
version: string | ||
release(): void | ||
parseCrashReport(log: readable): Promise<CrashReport> | ||
parseLogErrors(log: readable): Promise<JavaError[]> | ||
analyzeLogErrors(log: readable): Promise<ErrorResult[]> | ||
analyzeLogErrorsIter(log: readable): Promise<AsyncIterable<ErrorResult>> | ||
} |
Oops, something went wrong.