Skip to content
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

fix: migration failure caused by moments api changes #39

Merged
merged 1 commit into from
Apr 25, 2024
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
8 changes: 6 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id "com.github.node-gradle.node" version "5.0.0"
id "io.freefair.lombok" version "8.0.0-rc2"
id "run.halo.plugin.devtools" version "0.0.5"
id "run.halo.plugin.devtools" version "0.0.7"
id 'java'
}

Expand All @@ -14,7 +14,7 @@ repositories {
}

dependencies {
implementation platform('run.halo.tools.platform:plugin:2.5.0-SNAPSHOT')
implementation platform('run.halo.tools.platform:plugin:2.12.0-SNAPSHOT')
compileOnly 'run.halo.app:api'

testImplementation 'run.halo.app:api'
Expand All @@ -36,3 +36,7 @@ task buildFrontend(type: PnpmTask) {
build {
tasks.getByName('compileJava').dependsOn('buildFrontend')
}

halo {
version = '2.12'
}
6 changes: 3 additions & 3 deletions console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
},
"dependencies": {
"@halo-dev/api-client": "^2.7.0",
"@halo-dev/components": "^1.6.0",
"@halo-dev/console-shared": "^2.7.0",
"@halo-dev/api-client": "^2.12.0",
"@halo-dev/components": "^2.12.0",
"@halo-dev/console-shared": "^2.12.0",
"@tanstack/vue-query": "^4.33.1",
"@vueuse/core": "^10.2.1",
"axios": "^1.4.0",
Expand Down
64 changes: 38 additions & 26 deletions console/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion console/src/composables/use-migrate-task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ class MomentTask implements MigrateRequestTask<MigrateMoment> {

run() {
return axios.post(
`/apis/api.plugin.halo.run/v1alpha1/plugins/PluginMoments/moments`,
`/apis/console.api.moment.halo.run/v1alpha1/moments`,
this.item
);
}
Expand Down
13 changes: 0 additions & 13 deletions src/main/resources/console/main.js

This file was deleted.

1 change: 0 additions & 1 deletion src/main/resources/console/style.css

This file was deleted.

3 changes: 1 addition & 2 deletions src/main/resources/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ metadata:
name: PluginMigrate
spec:
enabled: true
version: 1.2.0
requires: ">=2.4.0"
requires: ">=2.12.0"
author:
name: Halo OSS Team
website: https://github.com/halo-dev
Expand Down
Loading