Skip to content

Commit

Permalink
fix: project name
Browse files Browse the repository at this point in the history
  • Loading branch information
justice2001 committed Nov 23, 2023
1 parent 9730774 commit 160c157
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
id "run.halo.plugin.devtools" version "0.0.7"
}

group 'run.halo.starter'
group 'top.mczhengyi'
sourceCompatibility = JavaVersion.VERSION_17

repositories {
Expand Down
4 changes: 2 additions & 2 deletions console/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@halo-dev/plugin-starter",
"version": "1.0.0",
"name": "@zhengyi59/vditor-mde",
"version": "1.0.0-SNAPSHOT",
"private": true,
"scripts": {
"dev": "vite build --watch --mode=development",
Expand Down
7 changes: 3 additions & 4 deletions console/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
import {definePlugin, type EditorProvider} from "@halo-dev/console-shared";
import HomeView from "./views/HomeView.vue";
import logo from "./assets/vditor.png"
import { markRaw } from "vue";
import {markRaw} from "vue";

export default definePlugin({
components: {},
extensionPoints: {
"editor:create": (): EditorProvider[] => {
return [
{
name: "Vditor",
name: "vditor-mde",
displayName: "Vditor Markdown",
// @ts-ignore
component: HomeView,
component: markRaw(HomeView),
rawType: "markdown",
logo: logo
},
Expand Down
2 changes: 1 addition & 1 deletion console/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Vue from "@vitejs/plugin-vue";
import VueJsx from "@vitejs/plugin-vue-jsx";
import Icons from "unplugin-icons/vite";

const pluginEntryName = "PluginStarter";
const pluginEntryName = "vditor-mde";

// https://vitejs.dev/config/
export default ({ mode }: { mode: string }) => {
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ pluginManagement {
gradlePluginPortal()
}
}
rootProject.name = 'plugin-starter'
rootProject.name = 'vditor-mde'

2 changes: 1 addition & 1 deletion src/main/java/run/halo/starter/VEditorConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class VEditorConfiguration {
@Bean
RouterFunction<ServerResponse> editorOptionsRouter() {
return RouterFunctions.route()
.GET("/apis/api.willow.guqing.github.io/editor-options",
.GET("/apis/api.vditor.justice2001.github.io/editor-options",
request -> settingFetcher.getValues()
.flatMap(result -> ServerResponse.ok()
.contentType(MediaType.APPLICATION_JSON)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
* @since 1.0.0
*/
@Component
public class StarterPlugin extends BasePlugin {
public class VditorMdePlugin extends BasePlugin {

public StarterPlugin(PluginWrapper wrapper) {
public VditorMdePlugin(PluginWrapper wrapper) {
super(wrapper);
}

Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ apiVersion: plugin.halo.run/v1alpha1
kind: Plugin
metadata:
# The name defines how the plugin is invoked,A unique name
name: Vditor
name: vditor-mde
spec:
enabled: true
requires: ">=2.5.0"
author:
name: zhengyi59
website: https://github.com/justice2001/veditor-plugin
logo: https://halo.run/logo
logo: vditor.png
# 'homepage' usually links to the GitHub repository of the plugin
homepage: https://github.com/justice2001/veditor-plugin
# 'displayName' explains what the plugin does in only a few words
Expand Down
Binary file added src/main/resources/vditor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 160c157

Please sign in to comment.