Skip to content

fix: fix user mention parsing; fix #39 #44

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Create configuration files
run: |
Expand All @@ -22,12 +22,10 @@ jobs:
node-linker=hoisted
ENV_LOCAL: ${{ vars.ENV_LOCAL }}

- uses: pnpm/action-setup@v2
with:
version: 9
- uses: pnpm/action-setup@v4

- name: Use Node.js LTS
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm
Expand All @@ -36,7 +34,7 @@ jobs:
run: pnpm install

- name: Next.js build cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: packages/viewer/.next/cache/
key: ${{ runner.os }}-nextjs-${{ hashFiles('pnpm-lock.yaml') }}-${{ hashFiles('packages/viewer/**/*.[jt]s', 'packages/viewer/**/*.[jt]sx') }}
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,5 @@
"prettier": "^3.3.2",
"prisma": "^5.15.0"
},
"engines": {
"pnpm": "^9"
}
"packageManager": "pnpm@10.0.0"
}
1 change: 1 addition & 0 deletions packages/archive/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"devDependencies": {
"@types/jsdom": "^21.1.7",
"@typescript-eslint/eslint-plugin": "^7.13.0",
"@typescript-eslint/parser": "^7.0.0",
"eslint": "^8.57.0",
"eslint-config-airbnb-typescript": "^18.0.0",
"typescript": "^5.4.5"
Expand Down
2 changes: 2 additions & 0 deletions packages/viewer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^7.13.0",
"@typescript-eslint/parser": "^7.0.0",
"eslint-plugin-react-hooks": "^4.3.0",
"cross-env": "^7.0.3",
"eslint": "^8.57.0",
"eslint-config-airbnb": "^19.0.4",
Expand Down
1 change: 1 addition & 0 deletions packages/viewer/src/app/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { useEffect } from "react";

export default function NavBar() {
useEffect(() => {
// eslint-disable-next-line @typescript-eslint/no-floating-promises
import("bootstrap/js/dist/collapse");
});

Expand Down
4 changes: 2 additions & 2 deletions packages/viewer/src/lib/judgement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ export const JUDGEMENT_PERMISSIONS = [
{ id: 64, name: "秩序管理" },
{ id: 128, name: "百科管理" },
{ id: 256, name: "用户管理" },
{ id: 512, name: "博客管理" },
{ id: 512, name: "专栏管理" },
{ id: 32768, name: "自由发言" },
{ id: 65536, name: "发送私信" },
{ id: 131072, name: "使用博客" },
{ id: 131072, name: "使用专栏" },
{ id: 524288, name: "使用图床" },
{ id: 1073741824, name: "超级用户" },
];
Expand Down
Loading