Skip to content

Commit 7aaeafa

Browse files
committed
release kayak.ui v1.01
1 parent de02f0f commit 7aaeafa

File tree

214 files changed

+20328
-1592
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

214 files changed

+20328
-1592
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
VITE_PORT = 3100
33

44
# spa-title
5-
VITE_GLOB_APP_TITLE = 木舟IOT平台
5+
VITE_GLOB_APP_TITLE = 木舟iot平台
66

77
# spa shortname
88
VITE_GLOB_APP_SHORT_NAME = vue_vben_admin

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ module.exports = defineConfig({
3636
'@typescript-eslint/no-use-before-define': 'off',
3737
'@typescript-eslint/ban-ts-comment': 'off',
3838
'@typescript-eslint/ban-types': 'off',
39+
'no-irregular-whitespace': 'off',
3940
'@typescript-eslint/no-non-null-assertion': 'off',
4041
'@typescript-eslint/explicit-module-boundary-types': 'off',
4142
'@typescript-eslint/no-unused-vars': [

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ pnpm-debug.log*
2727
*.njsproj
2828
*.sln
2929
*.sw?
30+
/.vs

node-red-start.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
const express = require('express');
2+
const settings = {
3+
httpAdminRoot: '/red',
4+
httpNodeRoot: '/api',
5+
userDir: './node-red-config',
6+
functionGlobalContext: {},
7+
// 其他Node-RED设置...
8+
};
9+
10+
const server = express();
11+
const red = require('node-red');
12+
13+
// 初始化Node-RED
14+
red.init(server, settings);
15+
16+
// 加载Node-RED的http节点路由和管理UI
17+
server.use(settings.httpAdminRoot, red.httpAdmin);
18+
server.use(settings.httpNodeRoot, red.httpNode);
19+
20+
// 服务器监听3000端口
21+
server.listen(3000, function () {
22+
console.log('Node-RED started on port 3000.');
23+
});

0 commit comments

Comments
 (0)