Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/docs-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
cache: pnpm

- name: Install Dependencies
run: pnpm install --frozen-lockfile
run: pnpm ci

- name: Build API
run: pnpm run api:build
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/release-admin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,10 @@ jobs:
cache: pnpm

- name: Install Dependencies
run: pnpm install --frozen-lockfile
run: pnpm ci

- name: Build Admin
run: pnpm run admin:build

- name: 'publish @waline/admin'
uses: JS-DevTools/npm-publish@v4
with:
package: ./packages/admin
- name: Publish
run: pnpm publish -r --filter @waline/admin --no-git-checks
8 changes: 3 additions & 5 deletions .github/workflows/release-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,10 @@ jobs:
cache: pnpm

- name: Install Dependencies
run: pnpm install --frozen-lockfile
run: pnpm ci

- name: Build API
run: pnpm run api:build

- name: Publish NPM
uses: JS-DevTools/npm-publish@v4
with:
package: ./packages/api
- name: Publish
run: pnpm publish -r --filter @waline/api --no-git-checks
8 changes: 3 additions & 5 deletions .github/workflows/release-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
cache: pnpm

- name: Install Dependencies
run: pnpm install --frozen-lockfile
run: pnpm ci

- name: Build API
run: pnpm run api:build
Expand All @@ -42,7 +42,5 @@ jobs:
- name: WorkSpace DepCheck
run: node scripts/workspace-publish.js @waline/client

- name: Publish NPM
uses: JS-DevTools/npm-publish@v4
with:
package: ./packages/client
- name: Publish
run: pnpm publish -r --filter @waline/client --no-git-checks
23 changes: 15 additions & 8 deletions .github/workflows/release-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
npm:
runs-on: ubuntu-latest
outputs:
old-version: ${{ steps.publish-server.outputs.old-version }}
version: ${{ steps.publish-server.outputs.version }}
old-version: ${{ steps.get-version.outputs.old-version }}
version: ${{ steps.get-version.outputs.version }}
steps:
- name: Checkout
uses: actions/checkout@v6
Expand All @@ -35,13 +35,20 @@ jobs:
cache: pnpm

- name: Install Dependencies
run: pnpm install --frozen-lockfile
run: pnpm ci

- id: publish-server
name: 'publish @waline/vercel'
uses: JS-DevTools/npm-publish@v4
with:
package: ./packages/server
- name: Get version
id: get-version
shell: bash
run: |
LOCAL_VERSION=$(node -p "require('./packages/server/package.json').version")
REMOTE_VERSION=$(pnpm view @waline/vercel version 2>/dev/null || echo "none")

echo "version=$LOCAL_VERSION" >> $GITHUB_OUTPUT
echo "old-version=$REMOTE_VERSION" >> $GITHUB_OUTPUT

- name: Publish
run: pnpm publish -r --filter @waline/vercel --no-git-checks

docker:
needs: npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
cache: pnpm

- name: Install Dependencies
run: pnpm install --frozen-lockfile
run: pnpm ci

- name: Package Build Test
run: pnpm run build
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"devDependencies": {
"@fancyapps/ui": "6.1.14",
"@mathjax/src": "4.1.2",
"@vuepress/bundler-vite": "2.0.0-rc.29",
"@vuepress/bundler-vite": "2.0.0-rc.28",
"@vuepress/helper": "2.0.0-rc.128",
"@vuepress/plugin-comment": "2.0.0-rc.128",
"@vuepress/plugin-docsearch": "2.0.0-rc.128",
Expand Down
1 change: 1 addition & 0 deletions oxlint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default defineHopeConfig(
exceptions: ['i', 'j', 'x', 'y', 'z', 't', '_'],
},
],
'jsx-a11y/prefer-tag-over-role': 'warn',
'react/jsx-max-depth': 'off',
'typescript/no-floating-promises': 'off',
'typescript/unbound-method': 'off',
Expand Down
35 changes: 23 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"lint:md": "markdownlint-cli2 '**/*.md'",
"lint:oxlint": "oxlint --fix --report-unused-disable-directives",
"lint:stylelint": "stylelint packages/*/src/**/*.scss --fix",
"packages:check-update": "pnpm dlx npm-check-updates --deep",
"packages:update": "pnpm dlx npm-check-updates --deep -u && pnpm i && pnpm -r up",
"packages:check-update": "pnpm dlx npm-check-updates",
"packages:update": "pnpm dlx npm-check-updates && pnpm -r up",
"prepare": "husky",
"server:dev": "pnpm --dir=packages/server dev",
"server:vercel": "vercel dev ./example --listen 9090",
Expand All @@ -31,39 +31,50 @@
"@babel/preset-react": "7.28.5",
"@babel/runtime": "7.29.2",
"@mr-hope/tsconfig": "0.0.4",
"@types/node": "25.6.2",
"@types/node": "24.0.0",
"@vitejs/plugin-react": "6.0.1",
"apidoc": "1.2.0",
"cross-env": "10.1.0",
"husky": "9.1.7",
"markdownlint-cli2": "0.22.1",
"nano-staged": "1.0.2",
"oxc-config-hope": "0.3.4",
"oxfmt": "0.48.0",
"oxlint": "1.63.0",
"oxfmt": "0.49.0",
"oxlint": "1.64.0",
"oxlint-tsgolint": "0.22.1",
"picocolors": "1.1.1",
"postcss": "8.5.14",
"publint": "0.3.19",
"publint": "0.3.21",
"rimraf": "6.1.3",
"sass-embedded": "1.99.0",
"stylelint": "17.11.0",
"stylelint-config-hope": "11.0.0",
"tsdown": "0.21.10",
"tsdown": "0.22.0",
"typescript": "6.0.3",
"unrun": "0.2.37",
"vercel": "53.3.2",
"vite": "8.0.10",
"unrun": "0.3.0",
"vercel": "53.4.0",
"vite": "8.0.12",
"vite-plugin-css-injected-by-js": "5.0.1",
"vite-plugin-svgr": "5.2.0",
"vitest": "4.1.5"
"vitest": "4.1.6"
},
"nano-staged": {
"**/*": "oxfmt --no-error-on-unmatched-pattern",
"*.{js,ts,vue}": "oxlint --fix --type-aware --type-check --report-unused-disable-directives",
"*.md": "markdownlint-cli2 --fix"
},
"packageManager": "pnpm@10.33.4",
"devEngines": {
"packageManager": {
"name": "pnpm",
"version": "11.0.9",
"onFail": "download"
},
"runtime": {
"name": "node",
"version": "^24.15.0",
"onFail": "error"
}
},
"apidoc": {
"title": "Waline API Documentation"
}
Expand Down
6 changes: 3 additions & 3 deletions packages/admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,18 @@
"@rematch/core": "2.2.0",
"base-icon": "2.3.2",
"classnames": "2.5.1",
"i18next": "26.0.9",
"i18next": "26.1.0",
"i18next-browser-languagedetector": "8.2.1",
"md5": "2.3.0",
"qrcode.react": "4.2.0",
"react": "19.2.6",
"react-dom": "19.2.6",
"react-i18next": "17.0.6",
"react-i18next": "17.0.7",
"react-redux": "9.2.0",
"react-router": "7.15.0",
"redux": "5.0.1",
"typescript": "6.0.3",
"vite": "8.0.10"
"vite": "8.0.12"
},
"browserslist": {
"production": [
Expand Down
2 changes: 1 addition & 1 deletion packages/admin/src/pages/forgot/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default function Forgot() {
</div>
<div className="typecho-login-wrap">
<div className="typecho-login">
<form method="post" name="login" role="form" onSubmit={onSubmit}>
<form method="post" name="login" onSubmit={onSubmit}>
<ul className="typecho-option">
<li>
<label htmlFor="email" className="sr-only">
Expand Down
2 changes: 1 addition & 1 deletion packages/admin/src/pages/login/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export default function Login() {
<div className="typecho-login">
{/* <h1><a href="http://waline.js.org" className="i-logo">Waline</a></h1> */}

<form method="post" name="login" role="form" onSubmit={onSubmit}>
<form method="post" name="login" onSubmit={onSubmit}>
<p>
<label htmlFor="email" className="sr-only">
{t('email')}
Expand Down
4 changes: 2 additions & 2 deletions packages/admin/src/pages/manage-comments/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@
<div className="typecho-page-title">
<h2>{t('manage comments')}</h2>
</div>
<div className="row typecho-page-main" role="main">
<main className="row typecho-page-main">
<div className="col-mb-12 typecho-list">
<div className="clear-fix">
{FILTERS.map(([key, FILTER]) => (
Expand Down Expand Up @@ -333,7 +333,7 @@
</div>
</div>

<div className="search" role="search">

Check warning on line 336 in packages/admin/src/pages/manage-comments/index.jsx

View workflow job for this annotation

GitHub Actions / test (24, ubuntu-latest)

jsx-a11y(prefer-tag-over-role)

Prefer `search` over `role` attribute `search`.

Check warning on line 336 in packages/admin/src/pages/manage-comments/index.jsx

View workflow job for this annotation

GitHub Actions / test (22, ubuntu-latest)

jsx-a11y(prefer-tag-over-role)

Prefer `search` over `role` attribute `search`.

Check warning on line 336 in packages/admin/src/pages/manage-comments/index.jsx

View workflow job for this annotation

GitHub Actions / test (22, ubuntu-latest)

jsx-a11y(prefer-tag-over-role)

Prefer `search` over `role` attribute `search`.

Check warning on line 336 in packages/admin/src/pages/manage-comments/index.jsx

View workflow job for this annotation

GitHub Actions / test (24, ubuntu-latest)

jsx-a11y(prefer-tag-over-role)

Prefer `search` over `role` attribute `search`.
<input
type="text"
ref={keywordRef}
Expand Down Expand Up @@ -632,7 +632,7 @@
</form>
</div>
</div>
</div>
</main>
</div>
</div>
</>
Expand Down
2 changes: 1 addition & 1 deletion packages/admin/src/pages/register/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default function Register() {
</div>
<div className="typecho-login-wrap">
<div className="typecho-login">
<form method="post" name="login" role="form" onSubmit={onSubmit}>
<form method="post" name="login" onSubmit={onSubmit}>
<p>
<label htmlFor="nick" className="sr-only">
{t('nickname')}
Expand Down
4 changes: 2 additions & 2 deletions packages/admin/src/pages/user/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export default function User() {
<div className="typecho-page-title">
<h2>{t('manage users')}</h2>
</div>
<div className="row typecho-page-main" role="main">
<main className="row typecho-page-main">
<div className="col-mb-12 typecho-list">
<form method="post" name="manage_comments" className="operate-form">
<div className="typecho-table-wrap">
Expand Down Expand Up @@ -228,7 +228,7 @@ export default function User() {
</form>
</div>
</div>
</div>
</main>
</div>
</div>
</>
Expand Down
2 changes: 1 addition & 1 deletion packages/api/tsdown.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default defineConfig([
entry: './src/index.ts',
minify: true,
fixedExtension: false,
target: ['chrome111', 'edge111', 'firefox114', 'safari16.4', 'node22'],
target: ['node22', 'baseline-widely-available'],
publint: true,
},
]);
2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"@giphy/js-types": "5.1.0",
"@types/autosize": "4.0.3",
"@vitejs/plugin-vue": "6.0.6",
"vite": "8.0.10"
"vite": "8.0.12"
},
"browserslist": {
"production": [
Expand Down
12 changes: 6 additions & 6 deletions packages/client/tsdown.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default defineConfig([
entry: './src/entries/full.ts',
fixedExtension: false,
minify: true,
target: ['chrome111', 'edge111', 'firefox114', 'safari16.4', 'node22'],
target: ['node22', 'baseline-widely-available'],
define,
alias: {
vue: 'vue/dist/vue.runtime.esm-bundler.js',
Expand All @@ -57,7 +57,7 @@ export default defineConfig([
entry: { slim: './src/entries/full.ts' },
fixedExtension: false,
minify: true,
target: ['chrome111', 'edge111', 'firefox114', 'safari16.4', 'node22'],
target: ['node22', 'baseline-widely-available'],
define,
plugins: [
vue({
Expand All @@ -70,7 +70,7 @@ export default defineConfig([
entry: './src/entries/component.ts',
fixedExtension: false,
minify: true,
target: ['chrome111', 'edge111', 'firefox114', 'safari16.4', 'node22'],
target: ['node22', 'baseline-widely-available'],
define,
dts: false,
plugins: [
Expand All @@ -87,7 +87,7 @@ export default defineConfig([
entry: { component: './src/entries/component-type.d.ts' },
fixedExtension: false,
minify: true,
target: ['chrome111', 'edge111', 'firefox114', 'safari16.4', 'node22'],
target: ['node22', 'baseline-widely-available'],
dts: {
dtsInput: true,
emitDtsOnly: true,
Expand All @@ -97,7 +97,7 @@ export default defineConfig([
entry: './src/entries/comment.ts',
fixedExtension: false,
minify: true,
target: ['chrome111', 'edge111', 'firefox114', 'safari16.4', 'node22'],
target: ['node22', 'baseline-widely-available'],
define,
treeshake: {
moduleSideEffects: false,
Expand All @@ -107,7 +107,7 @@ export default defineConfig([
entry: './src/entries/pageview.ts',
fixedExtension: false,
minify: true,
target: ['chrome111', 'edge111', 'firefox114', 'safari16.4', 'node22'],
target: ['node22', 'baseline-widely-available'],
define,
treeshake: {
moduleSideEffects: false,
Expand Down
Loading
Loading