Skip to content

Commit

Permalink
INF: 基本信息修改
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxBill committed Jun 22, 2024
1 parent 3fafc23 commit b7418c9
Show file tree
Hide file tree
Showing 8 changed files with 2,999 additions and 2,482 deletions.
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 = 'halo-plugin-waf'

Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
package run.halo.starter;
package cn.maxbill;

import org.springframework.stereotype.Component;
import run.halo.app.plugin.BasePlugin;
import run.halo.app.plugin.PluginContext;

/**
* <p>Plugin main class to manage the lifecycle of the plugin.</p>
* <p>This class must be public and have a public constructor.</p>
* <p>Only one main class extending {@link BasePlugin} is allowed per plugin.</p>
*
* @author guqing
* @author MaxBill
* @since 1.0.0
*/
@Component
public class StarterPlugin extends BasePlugin {
public class WafPlugin extends BasePlugin {

public StarterPlugin(PluginContext pluginContext) {
public WafPlugin(PluginContext pluginContext) {
super(pluginContext);
}

Expand All @@ -28,4 +24,5 @@ public void start() {
public void stop() {
System.out.println("插件停止!");
}

}
Binary file removed src/main/resources/logo.png
Binary file not shown.
Binary file added src/main/resources/plugin-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 11 additions & 11 deletions src/main/resources/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ apiVersion: plugin.halo.run/v1alpha1
kind: Plugin
metadata:
# The name defines how the plugin is invoked, A unique name
name: starter
name: halo-plugin-waf
spec:
enabled: true
requires: ">=2.11.0"
requires: ">=2.15.0"
author:
name: Halo
website: https://github.com/halo-dev
logo: logo.png
homepage: https://github.com/halo-dev/plugin-starter#readme
repo: https://github.com/halo-dev/plugin-starter
issues: https://github.com/halo-dev/plugin-starter/issues
displayName: "插件快速开始模板"
description: "这是一个插件快速开始模板"
name: MaxBill
website: https://www.maxbill.cn
logo: plugin-logo.png
homepage: https://github.com/MaxBill/halo-plugin-waf#readme
repo: https://github.com/MaxBill/halo-plugin-waf
issues: https://github.com/MaxBill/halo-plugin-waf/issues
displayName: "waf防护插件"
description: "Halo博客waf插件"
license:
- name: "GPL-3.0"
url: "https://github.com/halo-dev/plugin-starter/blob/main/LICENSE"
url: "https://github.com/MaxBill/halo-plugin-waf/blob/main/LICENSE"
Loading

0 comments on commit b7418c9

Please sign in to comment.