Skip to content

Commit

Permalink
dev: add default index
Browse files Browse the repository at this point in the history
  • Loading branch information
wwhai committed Jun 4, 2024
1 parent 01747a0 commit 4a83037
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 206 deletions.
35 changes: 35 additions & 0 deletions component/rulex_api_server/server/www/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!--
Copyright (C) 2024 wwhai
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->

<!DOCTYPE html>
<html lang="zh-CN">

<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0,minimal-ui:ios">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>rulex</title>
<link rel="stylesheet" href="">
<script src=""></script>
</head>

<body>
<h1>Hello</h1>
</body>

</html>
6 changes: 0 additions & 6 deletions engine/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ import (
"github.com/hootrhino/rulex/core"
"github.com/hootrhino/rulex/glogger"
icmpsender "github.com/hootrhino/rulex/plugin/icmp_sender"
license_manager "github.com/hootrhino/rulex/plugin/license_manager"
"github.com/hootrhino/rulex/typex"
)

Expand Down Expand Up @@ -69,11 +68,6 @@ func RunRulex(iniPath string) {
glogger.GLogger.Error(err)
return
}
license_manager := license_manager.NewLicenseManager(engine)
if err := engine.LoadPlugin("plugin.license_manager", license_manager); err != nil {
glogger.GLogger.Error(err)
return
}

// Load Plugin
loadPlugin(engine)
Expand Down
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/hootrhino/rulex

go 1.18
go 1.21

toolchain go1.22.2

require (
github.com/BeatTime/bacnet v0.2.1
Expand Down
108 changes: 0 additions & 108 deletions plugin/license_manager/license_manager.go

This file was deleted.

2 changes: 0 additions & 2 deletions plugin/license_manager/license_manager.md

This file was deleted.

89 changes: 0 additions & 89 deletions plugin/license_manager/misc.go

This file was deleted.

0 comments on commit 4a83037

Please sign in to comment.