brainsmatics 1.1.76 → 1.1.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +0,0 @@
1
- version: "3.8"
2
- services:
3
- app:
4
- image: brain-ui-image
5
- build: .
6
- ports:
7
- - "6006:6006"
8
- volumes:
9
- - /opt/brain_ui:/app
10
- - /app/node_modules
11
- command: tail -f /dev/null
package/env.d.ts DELETED
@@ -1,7 +0,0 @@
1
- interface ImportMetaEnv {
2
- readonly VITE_LINK_URL: string;
3
- }
4
-
5
- interface ImportMeta {
6
- readonly env: ImportMetaEnv;
7
- }
package/index.html DELETED
@@ -1,13 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
- <title>Vite + React</title>
8
- </head>
9
- <body>
10
- <div id="root"></div>
11
- <script type="module" src="/src/main.tsx"></script>
12
- </body>
13
- </html>
@@ -1,21 +0,0 @@
1
- const fs = require('fs');
2
- const os = require('os');
3
- // 读取文件的路径
4
- const filePath = '.gitignore'; // 替换为你的文件路径
5
- const newLine = os.EOL; // 获取当前操作系统的换行符
6
- fs.readFile(filePath, 'utf8', (err, data) => {
7
- if (err) {
8
- console.error('读取文件时出错:', err);
9
- return;
10
- }
11
- const replacedContent = data.replace(`${newLine}/src`, '');
12
-
13
- // 写入替换后的内容回文件
14
- fs.writeFile(filePath, replacedContent, 'utf8', (err) => {
15
- if (err) {
16
- console.error('写入文件时出错:', err);
17
- } else {
18
- console.log('删除完成!');
19
- }
20
- });
21
- });
File without changes
package/storybook.log DELETED
File without changes
package/tsconfig.json DELETED
@@ -1,38 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "outDir": "dist/es6",
4
- "module": "esnext",
5
- "target": "esnext",
6
- "resolveJsonModule": true,
7
- "importHelpers": true,
8
- "lib": ["es5", "es6", "es7", "es2017", "es2018", "es2019", "dom", "ESNext.String"],
9
- "sourceMap": true,
10
- "allowJs": false,
11
- "jsx": "react",
12
- "moduleResolution": "node",
13
- "rootDirs": ["src", "stories"],
14
- "baseUrl": "src",
15
- "typeRoots": ["node_modules/@types"],
16
- "paths": {
17
- "brainsmatics/STAM": ["dist/component/STAM.d.ts"]
18
- },
19
- "ignoreDeprecations": "5.0",
20
- "forceConsistentCasingInFileNames": true,
21
- "noImplicitReturns": true,
22
- "noImplicitThis": true,
23
- "noImplicitAny": true,
24
- "strictNullChecks": true,
25
- "strict": true,
26
- "skipLibCheck": true,
27
- "noUnusedLocals": true,
28
- "declaration": true,
29
- "declarationDir": "./dist",
30
- "allowSyntheticDefaultImports": true,
31
- "experimentalDecorators": true,
32
- "emitDecoratorMetadata": true,
33
- "esModuleInterop": true
34
- },
35
- "allowImportingTsExtensions":true,
36
- "include": ["src/**/*", "index.d.ts","env.d.ts"],
37
- "exclude": ["node_modules", "build", "dist", "scripts"]
38
- }
package/vite.config.js DELETED
@@ -1,68 +0,0 @@
1
- import { defineConfig } from 'vite'
2
- import react from '@vitejs/plugin-react'
3
- import typescript from '@rollup/plugin-typescript';
4
- import {resolve} from "path";
5
- // https://vitejs.dev/config/
6
- export default defineConfig({
7
- plugins: [react({ include: /\.(mdx|js|jsx|ts|tsx)$/ }), typescript()],
8
- base:"./",
9
- resolve: {
10
- alias: {
11
- 'component': resolve(__dirname, 'src/component'),
12
- },
13
- },
14
- build: {
15
- outDir: 'dist',
16
- copyPublicDir: false,
17
- lib: {
18
- // Could also be a dictionary or array of multiple entry points
19
- entry: resolve(__dirname, 'src/index.ts'),
20
- // name: 'huakeda-brain-ui',
21
- formats: ['es',"cjs"],
22
- // the proper extensions will be added
23
- fileName: 'index',
24
- dts: true,
25
- },
26
- rollupOptions: {
27
- // 确保外部化处理那些你不想打包进库的依赖
28
- external: ['react', 'react-dom'],
29
- output: {
30
- // 在 UMD 构建模式下为这些外部化的依赖提供一个全局变量
31
- globals: {
32
- react: 'react',
33
- 'react-dom': 'ReactDOM',
34
- },
35
- },
36
- },
37
- },
38
- server:{
39
- proxy: {
40
- '/app-api/langgraph-api': {
41
- target: 'http://192.168.50.32:8000',
42
- changeOrigin: true,
43
- ws: true,
44
- rewrite: (path) => path.replace(/^\/app-api\/langgraph-api/, ''),
45
- cookieDomainRewrite: '',
46
- },
47
- '/app-api/auth-api': {
48
- target: 'http://192.168.80.113:8000',
49
- changeOrigin: true,
50
- ws: true,
51
- rewrite: (path) => path.replace(/^\/app-api\/auth-api/, ''),
52
- cookieDomainRewrite: '',
53
- },
54
- '/app-api/swc-chart-api': {
55
- target: 'http://localhost:9000',
56
- changeOrigin: true,
57
- ws: true,
58
- rewrite: (path) => path.replace(/^\/app-api\/swc-chart-api/, ''),
59
- cookieDomainRewrite: '',
60
- },
61
- '/api':{
62
- 'target': 'http://192.168.50.54:8080',
63
- 'changeOrigin': true,
64
- rewrite: (path) => path.replace(/^\/api/, ''),
65
- }
66
- }
67
- }
68
- })