bsm-frontend 0.0.0a1__tar.gz
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.
- bsm_frontend-0.0.0a1/.flake8 +6 -0
- bsm_frontend-0.0.0a1/.gitattributes +1 -0
- bsm_frontend-0.0.0a1/.github/FUNDING.yml +15 -0
- bsm_frontend-0.0.0a1/.github/ISSUE_TEMPLATE//342/234/250-request-a-feature.md +70 -0
- bsm_frontend-0.0.0a1/.github/ISSUE_TEMPLATE//360/237/220/233-report-a-bug.md +100 -0
- bsm_frontend-0.0.0a1/.github/release.yml +63 -0
- bsm_frontend-0.0.0a1/.github/workflows/auto-labeler.yml +102 -0
- bsm_frontend-0.0.0a1/.github/workflows/publish.yml +44 -0
- bsm_frontend-0.0.0a1/.gitignore +192 -0
- bsm_frontend-0.0.0a1/.pre-commit-config.yaml +56 -0
- bsm_frontend-0.0.0a1/LICENSE +21 -0
- bsm_frontend-0.0.0a1/PKG-INFO +63 -0
- bsm_frontend-0.0.0a1/README.md +18 -0
- bsm_frontend-0.0.0a1/build.sh +13 -0
- bsm_frontend-0.0.0a1/frontend/.gitignore +24 -0
- bsm_frontend-0.0.0a1/frontend/README.md +46 -0
- bsm_frontend-0.0.0a1/frontend/eslint.config.js +57 -0
- bsm_frontend-0.0.0a1/frontend/index.html +26 -0
- bsm_frontend-0.0.0a1/frontend/package-lock.json +6659 -0
- bsm_frontend-0.0.0a1/frontend/package.json +66 -0
- bsm_frontend-0.0.0a1/frontend/prettier.config.js +7 -0
- bsm_frontend-0.0.0a1/frontend/public/image/icon/apple-touch-icon.png +0 -0
- bsm_frontend-0.0.0a1/frontend/public/image/icon/favicon-96x96.png +0 -0
- bsm_frontend-0.0.0a1/frontend/public/image/icon/favicon.ico +0 -0
- bsm_frontend-0.0.0a1/frontend/public/image/icon/favicon.svg +3 -0
- bsm_frontend-0.0.0a1/frontend/public/image/icon/web-app-manifest-192x192.png +0 -0
- bsm_frontend-0.0.0a1/frontend/public/image/icon/web-app-manifest-512x512.png +0 -0
- bsm_frontend-0.0.0a1/frontend/public/image/panorama.jpeg +0 -0
- bsm_frontend-0.0.0a1/frontend/public/site.webmanifest +21 -0
- bsm_frontend-0.0.0a1/frontend/public/vite.svg +1 -0
- bsm_frontend-0.0.0a1/frontend/src/App.css +42 -0
- bsm_frontend-0.0.0a1/frontend/src/App.jsx +146 -0
- bsm_frontend-0.0.0a1/frontend/src/App.test.jsx +66 -0
- bsm_frontend-0.0.0a1/frontend/src/AuthContext.jsx +107 -0
- bsm_frontend-0.0.0a1/frontend/src/ServerContext.jsx +174 -0
- bsm_frontend-0.0.0a1/frontend/src/ThemeContext.jsx +66 -0
- bsm_frontend-0.0.0a1/frontend/src/ToastContext.jsx +74 -0
- bsm_frontend-0.0.0a1/frontend/src/WebSocketContext.jsx +288 -0
- bsm_frontend-0.0.0a1/frontend/src/api.js +196 -0
- bsm_frontend-0.0.0a1/frontend/src/assets/react.svg +1 -0
- bsm_frontend-0.0.0a1/frontend/src/components/DynamicPage.jsx +971 -0
- bsm_frontend-0.0.0a1/frontend/src/components/DynamicPage.test.jsx +276 -0
- bsm_frontend-0.0.0a1/frontend/src/components/Footer.css +44 -0
- bsm_frontend-0.0.0a1/frontend/src/components/Footer.jsx +53 -0
- bsm_frontend-0.0.0a1/frontend/src/components/Footer.test.jsx +39 -0
- bsm_frontend-0.0.0a1/frontend/src/components/RemoteConfigModal.jsx +170 -0
- bsm_frontend-0.0.0a1/frontend/src/components/Sidebar.jsx +651 -0
- bsm_frontend-0.0.0a1/frontend/src/components/Sidebar.test.jsx +184 -0
- bsm_frontend-0.0.0a1/frontend/src/components/SidebarLabel.jsx +52 -0
- bsm_frontend-0.0.0a1/frontend/src/components/SidebarLabel.test.jsx +10 -0
- bsm_frontend-0.0.0a1/frontend/src/index.css +15 -0
- bsm_frontend-0.0.0a1/frontend/src/layouts/Layout.jsx +47 -0
- bsm_frontend-0.0.0a1/frontend/src/main.jsx +13 -0
- bsm_frontend-0.0.0a1/frontend/src/pages/AccessControl.jsx +560 -0
- bsm_frontend-0.0.0a1/frontend/src/pages/AccessControl.test.jsx +96 -0
- bsm_frontend-0.0.0a1/frontend/src/pages/Account.jsx +229 -0
- bsm_frontend-0.0.0a1/frontend/src/pages/Account.test.jsx +124 -0
- bsm_frontend-0.0.0a1/frontend/src/pages/AuditLog.jsx +376 -0
- bsm_frontend-0.0.0a1/frontend/src/pages/AuditLog.test.jsx +60 -0
- bsm_frontend-0.0.0a1/frontend/src/pages/BSMSettings.jsx +370 -0
- bsm_frontend-0.0.0a1/frontend/src/pages/BSMSettings.test.jsx +66 -0
- bsm_frontend-0.0.0a1/frontend/src/pages/Backups.jsx +340 -0
- bsm_frontend-0.0.0a1/frontend/src/pages/Backups.test.jsx +96 -0
- bsm_frontend-0.0.0a1/frontend/src/pages/Content.jsx +390 -0
- bsm_frontend-0.0.0a1/frontend/src/pages/Content.test.jsx +144 -0
- bsm_frontend-0.0.0a1/frontend/src/pages/GlobalPlayers.jsx +239 -0
- bsm_frontend-0.0.0a1/frontend/src/pages/GlobalPlayers.test.jsx +58 -0
- bsm_frontend-0.0.0a1/frontend/src/pages/Login.jsx +145 -0
- bsm_frontend-0.0.0a1/frontend/src/pages/Login.test.jsx +104 -0
- bsm_frontend-0.0.0a1/frontend/src/pages/Monitor.jsx +514 -0
- bsm_frontend-0.0.0a1/frontend/src/pages/Monitor.test.jsx +84 -0
- bsm_frontend-0.0.0a1/frontend/src/pages/Overview.jsx +385 -0
- bsm_frontend-0.0.0a1/frontend/src/pages/Overview.test.jsx +70 -0
- bsm_frontend-0.0.0a1/frontend/src/pages/PluginViewer.jsx +73 -0
- bsm_frontend-0.0.0a1/frontend/src/pages/PluginViewer.test.jsx +36 -0
- bsm_frontend-0.0.0a1/frontend/src/pages/Plugins.jsx +207 -0
- bsm_frontend-0.0.0a1/frontend/src/pages/Plugins.test.jsx +59 -0
- bsm_frontend-0.0.0a1/frontend/src/pages/Register.jsx +168 -0
- bsm_frontend-0.0.0a1/frontend/src/pages/Register.test.jsx +66 -0
- bsm_frontend-0.0.0a1/frontend/src/pages/ServerConfig.jsx +483 -0
- bsm_frontend-0.0.0a1/frontend/src/pages/ServerConfig.test.jsx +107 -0
- bsm_frontend-0.0.0a1/frontend/src/pages/ServerInstall.jsx +363 -0
- bsm_frontend-0.0.0a1/frontend/src/pages/ServerInstall.test.jsx +48 -0
- bsm_frontend-0.0.0a1/frontend/src/pages/ServerProperties.jsx +668 -0
- bsm_frontend-0.0.0a1/frontend/src/pages/ServerProperties.test.jsx +102 -0
- bsm_frontend-0.0.0a1/frontend/src/pages/Setup.jsx +120 -0
- bsm_frontend-0.0.0a1/frontend/src/pages/Setup.test.jsx +77 -0
- bsm_frontend-0.0.0a1/frontend/src/pages/Users.jsx +604 -0
- bsm_frontend-0.0.0a1/frontend/src/pages/Users.test.jsx +69 -0
- bsm_frontend-0.0.0a1/frontend/src/styles/DynamicPage.css +392 -0
- bsm_frontend-0.0.0a1/frontend/src/styles/SidebarEnhanced.css +251 -0
- bsm_frontend-0.0.0a1/frontend/src/styles/animations.css +41 -0
- bsm_frontend-0.0.0a1/frontend/src/styles/base.css +543 -0
- bsm_frontend-0.0.0a1/frontend/src/styles/buttons.css +386 -0
- bsm_frontend-0.0.0a1/frontend/src/styles/controls.css +234 -0
- bsm_frontend-0.0.0a1/frontend/src/styles/forms.css +715 -0
- bsm_frontend-0.0.0a1/frontend/src/styles/layout.css +46 -0
- bsm_frontend-0.0.0a1/frontend/src/styles/messages.css +110 -0
- bsm_frontend-0.0.0a1/frontend/src/styles/tables.css +313 -0
- bsm_frontend-0.0.0a1/frontend/src/styles/tabs.css +39 -0
- bsm_frontend-0.0.0a1/frontend/src/styles/v2-global.css +9 -0
- bsm_frontend-0.0.0a1/frontend/src/test/setup.js +60 -0
- bsm_frontend-0.0.0a1/frontend/src/test/utils.jsx +30 -0
- bsm_frontend-0.0.0a1/frontend/vite.config.js +58 -0
- bsm_frontend-0.0.0a1/pyproject.toml +59 -0
- bsm_frontend-0.0.0a1/setup.cfg +4 -0
- bsm_frontend-0.0.0a1/src/bsm_frontend/__init__.py +6 -0
- bsm_frontend-0.0.0a1/src/bsm_frontend/static/assets/index-D6gk4i8_.css +1 -0
- bsm_frontend-0.0.0a1/src/bsm_frontend/static/assets/index-uR8IgSj0.js +136 -0
- bsm_frontend-0.0.0a1/src/bsm_frontend/static/image/icon/apple-touch-icon.png +0 -0
- bsm_frontend-0.0.0a1/src/bsm_frontend/static/image/icon/favicon-96x96.png +0 -0
- bsm_frontend-0.0.0a1/src/bsm_frontend/static/image/icon/favicon.ico +0 -0
- bsm_frontend-0.0.0a1/src/bsm_frontend/static/image/icon/favicon.svg +3 -0
- bsm_frontend-0.0.0a1/src/bsm_frontend/static/image/icon/web-app-manifest-192x192.png +0 -0
- bsm_frontend-0.0.0a1/src/bsm_frontend/static/image/icon/web-app-manifest-512x512.png +0 -0
- bsm_frontend-0.0.0a1/src/bsm_frontend/static/image/panorama.jpeg +0 -0
- bsm_frontend-0.0.0a1/src/bsm_frontend/static/index.html +27 -0
- bsm_frontend-0.0.0a1/src/bsm_frontend/static/site.webmanifest +21 -0
- bsm_frontend-0.0.0a1/src/bsm_frontend/static/vite.svg +1 -0
- bsm_frontend-0.0.0a1/src/bsm_frontend.egg-info/PKG-INFO +63 -0
- bsm_frontend-0.0.0a1/src/bsm_frontend.egg-info/SOURCES.txt +123 -0
- bsm_frontend-0.0.0a1/src/bsm_frontend.egg-info/dependency_links.txt +1 -0
- bsm_frontend-0.0.0a1/src/bsm_frontend.egg-info/requires.txt +8 -0
- bsm_frontend-0.0.0a1/src/bsm_frontend.egg-info/top_level.txt +1 -0
- bsm_frontend-0.0.0a1/tests/test_bsm_ui.py +9 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* text=auto eol=lf
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# These are supported funding model platforms
|
|
2
|
+
|
|
3
|
+
github: dmedina559
|
|
4
|
+
patreon: # Replace with a single Patreon username
|
|
5
|
+
open_collective: # Replace with a single Open Collective username
|
|
6
|
+
ko_fi: # Replace with a single Ko-fi username
|
|
7
|
+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
|
8
|
+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
|
9
|
+
liberapay: # Replace with a single Liberapay username
|
|
10
|
+
issuehunt: # Replace with a single IssueHunt username
|
|
11
|
+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
|
|
12
|
+
polar: # Replace with a single Polar username
|
|
13
|
+
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
|
|
14
|
+
thanks_dev: # Replace with a single thanks.dev username
|
|
15
|
+
custom: ['paypal.me/DMedina213', 'cash.app/$DMedina559'] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "✨ Request a Feature"
|
|
3
|
+
about: Suggest an idea for this project
|
|
4
|
+
title: "[FEATURE] To the point description of the feature"
|
|
5
|
+
labels: enhancement
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
### **IMPORTANT: Before Submitting**
|
|
13
|
+
* Please search [existing issues](https://github.com/DMedina559/bedrock-server-manager/issues) to ensure a similar feature request hasn't already been submitted or discussed.
|
|
14
|
+
* If a similar feature has been requested, please add your thoughts or upvote that existing issue.
|
|
15
|
+
* Consider if this feature aligns with the general purpose and scope of Bedrock Server Manager.
|
|
16
|
+
* Consider opening a [discussion](https://github.com/DMedina559/bedrock-server-manager/discussions/categories/ideas) first if you're unsure.
|
|
17
|
+
* Do not remove any sections from this template. Incomplete reports may be closed, delayed or may require more information.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## <sup>(REQUIRED)</sup> **Is your feature request related to a problem? Please describe.**
|
|
22
|
+
A clear and concise description of what the problem is.
|
|
23
|
+
*Example: "I'm always frustrated when [...]" or "It would be helpful if I could [...] because currently I have to [...]"*
|
|
24
|
+
|
|
25
|
+
```text
|
|
26
|
+
# Put text here
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## <sup>(REQUIRED)</sup> **Describe the solution you'd like**
|
|
32
|
+
A clear and concise description of what you want to happen.
|
|
33
|
+
*If you have a specific implementation in mind, feel free to describe it. If not, focus on the desired outcome.*
|
|
34
|
+
|
|
35
|
+
```text
|
|
36
|
+
# Put text here
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## <sup>(OPTIONAL)</sup> **Describe alternatives you've considered**
|
|
42
|
+
A clear and concise description of any alternative solutions or features you've considered.
|
|
43
|
+
*Why is your proposed solution better than these alternatives, or what are the trade-offs?*
|
|
44
|
+
|
|
45
|
+
```text
|
|
46
|
+
# Put text here
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## <sup>(OPTIONAL)</sup> **Additional context**
|
|
52
|
+
Add any other context, mockups, or screenshots about the feature request here.
|
|
53
|
+
*For example, how would this feature benefit other users? Are there similar features in other tools you admire?*
|
|
54
|
+
|
|
55
|
+
```text
|
|
56
|
+
# Put text here
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
### <sup>(OPTIONAL)</sup> **Use Cases**
|
|
61
|
+
Please provide one or more specific use cases where this feature would be beneficial.
|
|
62
|
+
|
|
63
|
+
```text
|
|
64
|
+
# Example (Replace)
|
|
65
|
+
1. **Use Case 1:**
|
|
66
|
+
* As a [type of user], I want to [perform an action] so that [I can achieve a goal].
|
|
67
|
+
2. **Use Case 2 (Optional):**
|
|
68
|
+
* As a [type of user], I want to [perform an action] so that [I can achieve a goal].
|
|
69
|
+
```
|
|
70
|
+
---
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "\U0001F41B Report a Bug"
|
|
3
|
+
about: Report an issue in this project
|
|
4
|
+
title: "[BUG] [OS_HERE] Quick to the point description of the bug"
|
|
5
|
+
labels: bug
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
### **IMPORTANT: Before Submitting**
|
|
12
|
+
* Please search [existing issues](https://github.com/DMedina559/bedrock-server-manager/issues) to ensure this bug hasn't already been reported.
|
|
13
|
+
* If a similar bug was already reported, please add your additional information or confirm you're experiencing the same issue in that existing thread.
|
|
14
|
+
* If you are using a version prior to the latest release, please try updating first to see if the issue persists.
|
|
15
|
+
* Read the [troubleshooting docs](https://bedrock-server-manager.readthedocs.io/en/latest/general/troubleshooting.html) to see if a workaround or fix has been documented.
|
|
16
|
+
* If your issue is related to the CLI (Command Line Interface), please report your issue in the [bsm-api-client repository](https://github.com/DMedina559/bsm-api-client/issues).
|
|
17
|
+
* Do not remove any sections from this template. Incomplete reports may be closed, delayed or may require more information.
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## <sup>(REQUIRED)</sup> **Describe the Bug**:
|
|
21
|
+
A clear and concise description of what the bug is.
|
|
22
|
+
|
|
23
|
+
```text
|
|
24
|
+
# Put text here
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
### <sup>(REQUIRED)</sup> **To Reproduce**:
|
|
29
|
+
Steps to reproduce the behavior:
|
|
30
|
+
|
|
31
|
+
```text
|
|
32
|
+
1. ...
|
|
33
|
+
2. ...
|
|
34
|
+
3. ...
|
|
35
|
+
...
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
## <sup>(REQUIRED)</sup> **Expected Behavior**:
|
|
41
|
+
A clear and concise description of what you expected to happen.
|
|
42
|
+
|
|
43
|
+
```text
|
|
44
|
+
# Put text here
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## <sup>(REQUIRED)</sup>**Actual Behavior**:
|
|
48
|
+
A clear and concise description of what actually happened.
|
|
49
|
+
|
|
50
|
+
```text
|
|
51
|
+
# Put text here
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
### **Environment:**
|
|
56
|
+
|
|
57
|
+
<sup>(REQUIRED)</sup> **Operating System & Version**:
|
|
58
|
+
|
|
59
|
+
<sup>[i.e. Windows 11 Pro 22H2, Ubuntu 22.04 LTS, Debian 12 Bookworm]</sup>
|
|
60
|
+
|
|
61
|
+
<sup>(REQUIRED)</sup> **Bedrock Server Manager Version**:
|
|
62
|
+
|
|
63
|
+
<sup>[i.e. 3.2.4 - can be found in the cli, web UI, and log file]</sup>
|
|
64
|
+
|
|
65
|
+
<sup>(OPTIONAL)</sup> **Minecraft Bedrock Dedicated Server Version (if relevant)**:
|
|
66
|
+
|
|
67
|
+
<sup>[i.e. 1.20.50.01]</sup>
|
|
68
|
+
|
|
69
|
+
<sup>(OPTIONAL)</sup> **Python Version (if relevant)**:
|
|
70
|
+
|
|
71
|
+
<sup>[i.e. Python 3.11.4]</sup>
|
|
72
|
+
|
|
73
|
+
<sup>(OPTIONAL)</sup> **Browser (if web UI related)**:
|
|
74
|
+
|
|
75
|
+
<sup>[i.e. Chrome 119, Firefox 118]</sup>
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
### <sup>(REQUIRED)</sup> **Log Files**:
|
|
79
|
+
* **Provide relevant logs from your Bedrock Server Manager log file.**
|
|
80
|
+
* **Paste any relevant logs from log files directly to this issue.** For more extensive logs or full log files please **attach** the relevant log file(s) directly to this issue. If you have multiple files or they are large, please compress them into a `.zip` archive.
|
|
81
|
+
* **Important:** Review logs for any sensitive information before uploading and redact if necessary.
|
|
82
|
+
* <sub>By default, logs are stored in `<data_dir>/.logs/` <sup>
|
|
83
|
+
|
|
84
|
+
> [!NOTE]
|
|
85
|
+
> * **Note on Log Level:** Initially, warning/error logs are often sufficient. However, you may be asked to provide more detailed logs by setting the `LOG_LEVEL` in your `script_config.json` to `DEBUG`, reproducing the issue, and then providing the new logs.</sub>
|
|
86
|
+
|
|
87
|
+
```text
|
|
88
|
+
# Paste logs here
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## <sup>(OPTIONAL)</sup> **Additional Context**:
|
|
94
|
+
Add any other context about the problem here that may be relevant.
|
|
95
|
+
|
|
96
|
+
```text
|
|
97
|
+
# Put text here
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
---
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
changelog:
|
|
2
|
+
categories:
|
|
3
|
+
- title: ⚠️ Breaking Changes
|
|
4
|
+
labels:
|
|
5
|
+
- breaking
|
|
6
|
+
- title: 🚀 Features
|
|
7
|
+
labels:
|
|
8
|
+
- feat
|
|
9
|
+
exclude:
|
|
10
|
+
labels:
|
|
11
|
+
- breaking
|
|
12
|
+
- title: 🐛 Bug Fixes
|
|
13
|
+
labels:
|
|
14
|
+
- fix
|
|
15
|
+
exclude:
|
|
16
|
+
labels:
|
|
17
|
+
- breaking
|
|
18
|
+
- title: 📚 Documentation
|
|
19
|
+
labels:
|
|
20
|
+
- docs
|
|
21
|
+
exclude:
|
|
22
|
+
labels:
|
|
23
|
+
- breaking
|
|
24
|
+
- title: 💄 Style & Refactoring
|
|
25
|
+
labels:
|
|
26
|
+
- style
|
|
27
|
+
- refactor
|
|
28
|
+
- remove
|
|
29
|
+
exclude:
|
|
30
|
+
labels:
|
|
31
|
+
- breaking
|
|
32
|
+
- title: ⚡ Performance
|
|
33
|
+
labels:
|
|
34
|
+
- perf
|
|
35
|
+
exclude:
|
|
36
|
+
labels:
|
|
37
|
+
- breaking
|
|
38
|
+
- title: 🧪 Tests
|
|
39
|
+
labels:
|
|
40
|
+
- test
|
|
41
|
+
exclude:
|
|
42
|
+
labels:
|
|
43
|
+
- breaking
|
|
44
|
+
- title: 📦 Build & CI
|
|
45
|
+
labels:
|
|
46
|
+
- build
|
|
47
|
+
- ci
|
|
48
|
+
exclude:
|
|
49
|
+
labels:
|
|
50
|
+
- breaking
|
|
51
|
+
- title: ⬆️ Dependencies
|
|
52
|
+
labels:
|
|
53
|
+
- dependencies
|
|
54
|
+
exclude:
|
|
55
|
+
labels:
|
|
56
|
+
- breaking
|
|
57
|
+
- title: 🧹 Chore
|
|
58
|
+
labels:
|
|
59
|
+
- chore
|
|
60
|
+
- misc
|
|
61
|
+
exclude:
|
|
62
|
+
labels:
|
|
63
|
+
- breaking
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
name: Auto Labeler
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
issues:
|
|
5
|
+
types: [opened, edited]
|
|
6
|
+
pull_request:
|
|
7
|
+
types: [opened, edited, synchronized, reopened]
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
issues: write
|
|
11
|
+
pull-requests: write
|
|
12
|
+
contents: read
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
label-item:
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
steps:
|
|
18
|
+
- name: Auto Labeler
|
|
19
|
+
uses: actions/github-script@v8
|
|
20
|
+
with:
|
|
21
|
+
script: |
|
|
22
|
+
// Helper to add labels
|
|
23
|
+
async function addLabels(labels) {
|
|
24
|
+
if (labels.size > 0) {
|
|
25
|
+
console.log(`Adding labels: ${Array.from(labels)}`);
|
|
26
|
+
try {
|
|
27
|
+
await github.rest.issues.addLabels({
|
|
28
|
+
owner: context.repo.owner,
|
|
29
|
+
repo: context.repo.repo,
|
|
30
|
+
issue_number: context.issue.number,
|
|
31
|
+
labels: Array.from(labels)
|
|
32
|
+
});
|
|
33
|
+
} catch (error) {
|
|
34
|
+
console.log("Error adding labels. Ensure they exist in the repository.");
|
|
35
|
+
console.error(error);
|
|
36
|
+
}
|
|
37
|
+
} else {
|
|
38
|
+
console.log("No matching label patterns found.");
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// Logic for Pull Requests
|
|
43
|
+
if (context.payload.pull_request) {
|
|
44
|
+
const title = context.payload.pull_request.title;
|
|
45
|
+
const labelsToAdd = new Set();
|
|
46
|
+
|
|
47
|
+
const mappings = [
|
|
48
|
+
{ label: 'feat', regex: /^(feat|feature)(!|\/|:|\s|\()/i },
|
|
49
|
+
{ label: 'fix', regex: /^(fix|bug)(!|\/|:|\s|\()/i },
|
|
50
|
+
{ label: 'docs', regex: /^(docs|doc|documentation)(!|\/|:|\s|\()/i },
|
|
51
|
+
{ label: 'style', regex: /^(style|format)(!|\/|:|\s|\()/i },
|
|
52
|
+
{ label: 'refactor', regex: /^(refactor|remove)(!|\/|:|\s|\()/i },
|
|
53
|
+
{ label: 'perf', regex: /^(perf|performance)(!|\/|:|\s|\()/i },
|
|
54
|
+
{ label: 'test', regex: /^(test|tests)(!|\/|:|\s|\()/i },
|
|
55
|
+
{ label: 'build', regex: /^(build)(!|\/|:|\s|\()/i },
|
|
56
|
+
{ label: 'ci', regex: /^(ci|workflow|actions)(!|\/|:|\s|\()/i },
|
|
57
|
+
{ label: 'chore', regex: /^(chore|misc)(!|\/|:|\s|\()/i },
|
|
58
|
+
{ label: 'dependencies', regex: /^(deps|dep|depbot|dependencies)(!|\/|:|\s|\()/i }
|
|
59
|
+
];
|
|
60
|
+
|
|
61
|
+
for (const { label, regex } of mappings) {
|
|
62
|
+
if (regex.test(title)) {
|
|
63
|
+
labelsToAdd.add(label);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// Check for breaking changes
|
|
68
|
+
if (/^[a-zA-Z0-9_-]+(\([^)]+\))?\s?!([:\s\/]|$)/i.test(title)) {
|
|
69
|
+
labelsToAdd.add('breaking');
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
await addLabels(labelsToAdd);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// Logic for Issues
|
|
76
|
+
else if (context.payload.issue) {
|
|
77
|
+
const title = context.payload.issue.title || '';
|
|
78
|
+
const body = context.payload.issue.body || '';
|
|
79
|
+
const content = (title + ' ' + body).toLowerCase();
|
|
80
|
+
const labelsToAdd = new Set();
|
|
81
|
+
|
|
82
|
+
const windowsKeywords = [
|
|
83
|
+
'windows', 'win10', 'win11',
|
|
84
|
+
'server 2019', 'server 2022', 'win server'
|
|
85
|
+
];
|
|
86
|
+
|
|
87
|
+
const linuxKeywords = [
|
|
88
|
+
'linux', 'ubuntu', 'debian',
|
|
89
|
+
'centos', 'fedora', 'redhat',
|
|
90
|
+
'arch', 'alpine', 'wsl'
|
|
91
|
+
];
|
|
92
|
+
|
|
93
|
+
if (windowsKeywords.some(keyword => content.includes(keyword))) {
|
|
94
|
+
labelsToAdd.add('windows');
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
if (linuxKeywords.some(keyword => content.includes(keyword))) {
|
|
98
|
+
labelsToAdd.add('linux');
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
await addLabels(labelsToAdd);
|
|
102
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
name: Publish Package
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
pypi:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
environment:
|
|
11
|
+
name: release
|
|
12
|
+
permissions:
|
|
13
|
+
id-token: write
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
- name: Checkout repository
|
|
17
|
+
uses: actions/checkout@v4
|
|
18
|
+
with:
|
|
19
|
+
fetch-depth: 0
|
|
20
|
+
|
|
21
|
+
- name: Set up Python
|
|
22
|
+
uses: actions/setup-python@v5
|
|
23
|
+
with:
|
|
24
|
+
python-version: '3.11'
|
|
25
|
+
|
|
26
|
+
- name: Set up Node.js
|
|
27
|
+
uses: actions/setup-node@v4
|
|
28
|
+
with:
|
|
29
|
+
node-version: '20'
|
|
30
|
+
|
|
31
|
+
- name: Install build dependencies
|
|
32
|
+
run: |
|
|
33
|
+
python -m pip install --upgrade pip
|
|
34
|
+
pip install build setuptools-scm
|
|
35
|
+
|
|
36
|
+
- name: Build package
|
|
37
|
+
run: |
|
|
38
|
+
chmod +x build.sh
|
|
39
|
+
./build.sh
|
|
40
|
+
env:
|
|
41
|
+
SETUPTOOLS_SCM_PRETEND_VERSION: ${{ github.ref_name }}
|
|
42
|
+
|
|
43
|
+
- name: Publish to PyPI
|
|
44
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py,cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# UV
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
#uv.lock
|
|
102
|
+
|
|
103
|
+
# poetry
|
|
104
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
105
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
106
|
+
# commonly ignored for libraries.
|
|
107
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
108
|
+
#poetry.lock
|
|
109
|
+
|
|
110
|
+
# pdm
|
|
111
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
112
|
+
#pdm.lock
|
|
113
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
114
|
+
# in version control.
|
|
115
|
+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
|
|
116
|
+
.pdm.toml
|
|
117
|
+
.pdm-python
|
|
118
|
+
.pdm-build/
|
|
119
|
+
|
|
120
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
121
|
+
__pypackages__/
|
|
122
|
+
|
|
123
|
+
# Celery stuff
|
|
124
|
+
celerybeat-schedule
|
|
125
|
+
celerybeat.pid
|
|
126
|
+
|
|
127
|
+
# SageMath parsed files
|
|
128
|
+
*.sage.py
|
|
129
|
+
|
|
130
|
+
# Environments
|
|
131
|
+
.env
|
|
132
|
+
.venv
|
|
133
|
+
env/
|
|
134
|
+
venv/
|
|
135
|
+
ENV/
|
|
136
|
+
env.bak/
|
|
137
|
+
venv.bak/
|
|
138
|
+
|
|
139
|
+
# Spyder project settings
|
|
140
|
+
.spyderproject
|
|
141
|
+
.spyproject
|
|
142
|
+
|
|
143
|
+
# Rope project settings
|
|
144
|
+
.ropeproject
|
|
145
|
+
|
|
146
|
+
# mkdocs documentation
|
|
147
|
+
/site
|
|
148
|
+
|
|
149
|
+
# mypy
|
|
150
|
+
.mypy_cache/
|
|
151
|
+
.dmypy.json
|
|
152
|
+
dmypy.json
|
|
153
|
+
|
|
154
|
+
# Pyre type checker
|
|
155
|
+
.pyre/
|
|
156
|
+
|
|
157
|
+
# pytype static type analyzer
|
|
158
|
+
.pytype/
|
|
159
|
+
|
|
160
|
+
# Cython debug symbols
|
|
161
|
+
cython_debug/
|
|
162
|
+
|
|
163
|
+
# PyCharm
|
|
164
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
165
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
166
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
167
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
168
|
+
#.idea/
|
|
169
|
+
|
|
170
|
+
# PyPI configuration file
|
|
171
|
+
.pypirc
|
|
172
|
+
|
|
173
|
+
# DATA DIRECTORY
|
|
174
|
+
data
|
|
175
|
+
|
|
176
|
+
# VisualCode
|
|
177
|
+
.vs
|
|
178
|
+
.vscode
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
*Zone.Identifier
|
|
182
|
+
|
|
183
|
+
# BSM dirs
|
|
184
|
+
|
|
185
|
+
test.db
|
|
186
|
+
test.db-journal
|
|
187
|
+
|
|
188
|
+
# Frontend
|
|
189
|
+
**/node_modules/
|
|
190
|
+
frontend/dist/
|
|
191
|
+
frontend/build/
|
|
192
|
+
src/bsm_frontend/static
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
ci:
|
|
2
|
+
autofix_commit_msg: |
|
|
3
|
+
[pre-commit.ci] auto fixes from pre-commit.com hooks
|
|
4
|
+
|
|
5
|
+
for more information, see https://pre-commit.ci
|
|
6
|
+
autofix_prs: true
|
|
7
|
+
autoupdate_branch: ''
|
|
8
|
+
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
|
|
9
|
+
autoupdate_schedule: weekly
|
|
10
|
+
skip: [frontend-eslint]
|
|
11
|
+
submodules: false
|
|
12
|
+
|
|
13
|
+
repos:
|
|
14
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
15
|
+
rev: v6.0.0
|
|
16
|
+
hooks:
|
|
17
|
+
- id: trailing-whitespace
|
|
18
|
+
- id: end-of-file-fixer
|
|
19
|
+
- id: check-yaml
|
|
20
|
+
- id: check-added-large-files
|
|
21
|
+
|
|
22
|
+
- repo: https://github.com/psf/black
|
|
23
|
+
rev: 26.1.0
|
|
24
|
+
hooks:
|
|
25
|
+
- id: black
|
|
26
|
+
|
|
27
|
+
- repo: https://github.com/PyCQA/isort
|
|
28
|
+
rev: 7.0.0
|
|
29
|
+
hooks:
|
|
30
|
+
- id: isort
|
|
31
|
+
|
|
32
|
+
- repo: https://github.com/PyCQA/flake8
|
|
33
|
+
rev: 7.3.0
|
|
34
|
+
hooks:
|
|
35
|
+
- id: flake8
|
|
36
|
+
|
|
37
|
+
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
38
|
+
rev: v1.19.1
|
|
39
|
+
hooks:
|
|
40
|
+
- id: mypy
|
|
41
|
+
additional_dependencies: [types-PyYAML]
|
|
42
|
+
|
|
43
|
+
- repo: https://github.com/pre-commit/mirrors-prettier
|
|
44
|
+
rev: v4.0.0-alpha.8
|
|
45
|
+
hooks:
|
|
46
|
+
- id: prettier
|
|
47
|
+
files: ^frontend/
|
|
48
|
+
|
|
49
|
+
- repo: local
|
|
50
|
+
hooks:
|
|
51
|
+
- id: frontend-eslint
|
|
52
|
+
name: v2-frontend-eslint
|
|
53
|
+
entry: bash -c 'cd frontend/ && npm run lint'
|
|
54
|
+
language: system
|
|
55
|
+
files: ^frontend/
|
|
56
|
+
pass_filenames: false
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 dmedina559
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|