blockmine 1.0.0
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.
- package/README.md +107 -0
- package/backend/cli.js +40 -0
- package/backend/nodemon.json +12 -0
- package/backend/package-lock.json +2539 -0
- package/backend/package.json +34 -0
- package/backend/prisma/migrations/20250614085849_add_bot_note/migration.sql +126 -0
- package/backend/prisma/migrations/20250614153037_add_plugin_installed_date/migration.sql +27 -0
- package/backend/prisma/migrations/migration_lock.toml +3 -0
- package/backend/prisma/schema.prisma +138 -0
- package/backend/prisma/seed.js +60 -0
- package/backend/src/api/routes/bots.js +777 -0
- package/backend/src/api/routes/permissions.js +79 -0
- package/backend/src/api/routes/plugins.js +110 -0
- package/backend/src/api/routes/servers.js +50 -0
- package/backend/src/api/routes/settings.js +40 -0
- package/backend/src/core/BotManager.js +264 -0
- package/backend/src/core/BotProcess.js +233 -0
- package/backend/src/core/DependencyService.js +93 -0
- package/backend/src/core/MessageQueue.js +126 -0
- package/backend/src/core/PermissionManager.js +97 -0
- package/backend/src/core/PluginLoader.js +64 -0
- package/backend/src/core/PluginManager.js +161 -0
- package/backend/src/core/PluginService.js +57 -0
- package/backend/src/core/UserService.js +181 -0
- package/backend/src/core/commands/ping.js +35 -0
- package/backend/src/core/commands/warn.js +40 -0
- package/backend/src/core/ipc/PermissionManager.stub.js +24 -0
- package/backend/src/core/ipc/UserService.stub.js +31 -0
- package/backend/src/core/system/Command.js +53 -0
- package/backend/src/core/system/CommandHandler.js +98 -0
- package/backend/src/core/system/CommandManager.js +59 -0
- package/backend/src/core/system/CommandRegistry.js +21 -0
- package/backend/src/core/system/parseArguments.js +43 -0
- package/backend/src/real-time/socketHandler.js +31 -0
- package/backend/src/server.js +66 -0
- package/frontend/dist/apple-touch-icon.png +0 -0
- package/frontend/dist/assets/index-B83SHIXE.css +1 -0
- package/frontend/dist/assets/index-Dh-PcVh1.js +8179 -0
- package/frontend/dist/favicon-96x96.png +0 -0
- package/frontend/dist/favicon.ico +0 -0
- package/frontend/dist/favicon.svg +3 -0
- package/frontend/dist/index.html +51 -0
- package/frontend/dist/logo.png +0 -0
- package/frontend/dist/logo.svg +178 -0
- package/frontend/dist/monacoeditorwork/css.worker.bundle.js +53462 -0
- package/frontend/dist/monacoeditorwork/editor.worker.bundle.js +13519 -0
- package/frontend/dist/monacoeditorwork/html.worker.bundle.js +29662 -0
- package/frontend/dist/monacoeditorwork/json.worker.bundle.js +21320 -0
- package/frontend/dist/monacoeditorwork/ts.worker.bundle.js +256353 -0
- package/frontend/dist/site.webmanifest +21 -0
- package/frontend/dist/vite.svg +1 -0
- package/frontend/dist/web-app-manifest-192x192.png +0 -0
- package/frontend/dist/web-app-manifest-512x512.png +0 -0
- package/frontend/package.json +65 -0
- package/image/1.png +0 -0
- package/image/2.png +0 -0
- package/image/3.png +0 -0
- package/image/logo.png +0 -0
- package/package.json +27 -0
- package/tailwind.config.js +0 -0
- package/vite.config.js +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "MyWebSite",
|
|
3
|
+
"short_name": "MySite",
|
|
4
|
+
"icons": [
|
|
5
|
+
{
|
|
6
|
+
"src": "/web-app-manifest-192x192.png",
|
|
7
|
+
"sizes": "192x192",
|
|
8
|
+
"type": "image/png",
|
|
9
|
+
"purpose": "maskable"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"src": "/web-app-manifest-512x512.png",
|
|
13
|
+
"sizes": "512x512",
|
|
14
|
+
"type": "image/png",
|
|
15
|
+
"purpose": "maskable"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"theme_color": "#ffffff",
|
|
19
|
+
"background_color": "#ffffff",
|
|
20
|
+
"display": "standalone"
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "frontend",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"dev": "vite",
|
|
7
|
+
"build": "vite build",
|
|
8
|
+
"lint": "eslint .",
|
|
9
|
+
"preview": "vite preview"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"@monaco-editor/react": "^4.7.0",
|
|
13
|
+
"@radix-ui/react-accordion": "^1.2.11",
|
|
14
|
+
"@radix-ui/react-alert-dialog": "^1.1.14",
|
|
15
|
+
"@radix-ui/react-checkbox": "^1.3.2",
|
|
16
|
+
"@radix-ui/react-dialog": "^1.1.14",
|
|
17
|
+
"@radix-ui/react-dropdown-menu": "^2.1.15",
|
|
18
|
+
"@radix-ui/react-label": "^2.1.7",
|
|
19
|
+
"@radix-ui/react-popover": "^1.1.14",
|
|
20
|
+
"@radix-ui/react-scroll-area": "^1.2.9",
|
|
21
|
+
"@radix-ui/react-select": "^2.2.5",
|
|
22
|
+
"@radix-ui/react-separator": "^1.1.7",
|
|
23
|
+
"@radix-ui/react-slot": "^1.2.3",
|
|
24
|
+
"@radix-ui/react-switch": "^1.2.5",
|
|
25
|
+
"@radix-ui/react-tabs": "^1.1.12",
|
|
26
|
+
"@radix-ui/react-toast": "^1.2.14",
|
|
27
|
+
"@radix-ui/react-tooltip": "^1.2.7",
|
|
28
|
+
"@radix-ui/react-visually-hidden": "^1.2.3",
|
|
29
|
+
"ansi-to-html": "^0.7.2",
|
|
30
|
+
"class-variance-authority": "^0.7.1",
|
|
31
|
+
"clsx": "^2.1.1",
|
|
32
|
+
"cmdk": "^1.1.1",
|
|
33
|
+
"immer": "^10.1.1",
|
|
34
|
+
"lucide-react": "^0.514.0",
|
|
35
|
+
"monaco-editor": "^0.52.2",
|
|
36
|
+
"react": "^19.1.0",
|
|
37
|
+
"react-dom": "^19.1.0",
|
|
38
|
+
"react-markdown": "^10.1.0",
|
|
39
|
+
"react-resizable-panels": "^3.0.2",
|
|
40
|
+
"react-router-dom": "^7.6.2",
|
|
41
|
+
"recharts": "^2.15.3",
|
|
42
|
+
"socket.io-client": "^4.8.1",
|
|
43
|
+
"tailwind-merge": "^3.3.1",
|
|
44
|
+
"tailwindcss-animate": "^1.0.7",
|
|
45
|
+
"zustand": "^5.0.5"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@eslint/js": "^9.25.0",
|
|
49
|
+
"@tailwindcss/cli": "^4.1.8",
|
|
50
|
+
"@tailwindcss/postcss": "^4.1.8",
|
|
51
|
+
"@tailwindcss/typography": "^0.5.16",
|
|
52
|
+
"@types/react": "^19.1.2",
|
|
53
|
+
"@types/react-dom": "^19.1.2",
|
|
54
|
+
"@vitejs/plugin-react": "^4.4.1",
|
|
55
|
+
"autoprefixer": "^10.4.21",
|
|
56
|
+
"eslint": "^9.25.0",
|
|
57
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
58
|
+
"eslint-plugin-react-refresh": "^0.4.19",
|
|
59
|
+
"globals": "^16.0.0",
|
|
60
|
+
"postcss": "^8.5.5",
|
|
61
|
+
"tailwindcss": "^3.4.17",
|
|
62
|
+
"vite": "^6.3.5",
|
|
63
|
+
"vite-plugin-monaco-editor": "^1.1.0"
|
|
64
|
+
}
|
|
65
|
+
}
|
package/image/1.png
ADDED
|
Binary file
|
package/image/2.png
ADDED
|
Binary file
|
package/image/3.png
ADDED
|
Binary file
|
package/image/logo.png
ADDED
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "blockmine",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Мощная панель управления ботами для Майнкрафта.",
|
|
5
|
+
"author": "merka",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/mmeerrkkaa/blockmine.git"
|
|
10
|
+
},
|
|
11
|
+
"bin": {
|
|
12
|
+
"blockmine": "backend/cli.js"
|
|
13
|
+
},
|
|
14
|
+
"workspaces": [
|
|
15
|
+
"backend",
|
|
16
|
+
"frontend"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"dev": "concurrently \"npm:dev --workspace=backend\" \"npm:dev --workspace=frontend\"",
|
|
20
|
+
"install-all": "npm install",
|
|
21
|
+
"build": "npm run build --workspace=frontend"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"concurrently": "^8.2.2"
|
|
25
|
+
|
|
26
|
+
}
|
|
27
|
+
}
|
|
File without changes
|
package/vite.config.js
ADDED
|
File without changes
|