Skip to content

Commit affa991

Browse files
authored
Merge pull request #142 from Ctrlpanel-gg/development
Dev to main
2 parents 58844ed + 5854226 commit affa991

File tree

155 files changed

+8200
-4863
lines changed

Some content is hidden

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

155 files changed

+8200
-4863
lines changed

.gitignore

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Dependencies
2-
/node_modules
2+
node_modules
33

4+
# Production
5+
build
46

57
# Generated files
68
.docusaurus
@@ -16,4 +18,7 @@
1618
npm-debug.log*
1719
yarn-debug.log*
1820
yarn-error.log*
19-
.idea/.name
21+
22+
tmp
23+
24+
process.yml

docs/contributing/_category_.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"position": 4,
3+
"label": "Contributing",
4+
"collapsed": true,
5+
"link": {
6+
"type": "generated-index",
7+
"title": "Contributing",
8+
"description": "Want to support the project but not sure how? We'll tell you all about it here"
9+
}
10+
}

docs/contributing/donating.mdx

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
sidebar_position: 1
3+
---
4+
5+
# Donating
6+
7+
Love using ctrlpanel.gg? Support us to keep improving! 🌟 Enjoy perks like premium support & a unique Discord role! 💖
8+
[Patreon](https://www.patreon.com/1day2die) | [Ko-fi](https://ko-fi.com/1day2die) | [GitHub Sponsors](https://github.com/sponsors/Ctrlpanel-gg)
9+
10+
Your donations go a long way in helping us develop CtrlPanel, but please don't feel obligated to.<br/>
11+
I will try to mention any donation above 1€ in our Discord server.
12+
13+
## Donator Roles
14+
15+
**Sapphire** >= 100 $/€<br/>
16+
**Ruby Supporter** >= 50 $/€<br/>
17+
**Gold Supporter** >= 25 $/€<br/>
18+
**Silver Supporter** >= 15 $/€<br/>
19+
**Bronze Supporter** >= 5 $/€ <br/>
20+
_All Donators with a supporter role will also have access to a Donators Only channel and premium support_
21+
22+
_Please notify me when you've donated, so I can respond quicker :) **1day2die**_
23+
24+
## Donators
25+
26+
❤️ Ruby Supporter: **p47thiccbolt#4836**<br/>
27+
❤️ Ruby Supporter: **BolverBlitz#4881**<br/>
28+
❤️ Ruby Supporter: **ccrs#4120**<br/>
29+
❤️ Ruby Supporter: **Timo#4042**<br/>
30+
❤️ Ruby Supporter: **Sir Maddigan#0243**<br/>
31+
32+
💛 Gold Supporter: **Wynn#1000**<br/>
33+
💛 Gold Supporter: **dragocz#0191**<br/>
34+
💛 Gold Supporter: **Niktix#3749** [TIX-Hosting](https://tix-hosting.net/)<br/>
35+
💛 Gold Supporter: **DerHorschty#3855**<br/>
36+
37+
🤍 Silver Supporter: **TheFrodoDE#1337**<br/>
38+
39+
🤎 Bronze Supporter: **Grosenberger#5417**<br/>
40+
🤎 Bronze Supporter: **ojacz#5091**<br/>
41+
🤎 Bronze Supporter: **Coconut#7171**<br/>
42+
🤎 Bronze Supporter: **Bazim#0485**<br/>
43+
🤎 Bronze Supporter: **Jonas.#9915**<br/>
44+
🤎 Bronze Supporter: **Vysoký Vagón#3796**<br/>
45+
🤎 Bronze Supporter: **I got 2 phones#8225**<br/>
46+
🤎 Bronze Supporter: **2IceCube#7992**<br/>
47+
🤎 Bronze Supporter: **ᴅᴏᴍɪɴɪᴋ#1005**<br/>
48+
🤎 Bronze Supporter: **DWAA#1660**<br/>
49+
🤎 Bronze Supporter: **ukcai#7121**<br/>

docs/contributing/partners.mdx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
sidebar_position: 4
3+
---
4+
5+
# Partners
6+
7+
We are deeply grateful to the organizations and individuals whose generous support makes this project possible. Below is a showcase of our partners, each displayed with a banner or logo and a brief description. Their support enables us to maintain and improve our project infrastructure and develop new features and enhancements.
8+
9+
Thank you to all our partners for believing in our vision and helping us drive innovation forward!
10+
11+
## ZAP-Hosting
12+
13+
[![ZAP-Hosting Gameserver and Web Hosting](https://zap-hosting.com/interface/download/images.php?type=affiliate&id=421578)](https://zap-hosting.com/a/29b1c37a4f87bde5463afe8a0f49d129b16ccf9e)
14+
15+
Looking for reliable, high-quality hosting? ZAP-Hosting offers rentals or lifetime purchases of game servers, Linux and Windows VPS, root servers, and dedicated servers.
16+
17+
Use promo code **[CtrlPanel](https://zap-hosting.com/CtrlPanel)** when placing your order to receive a **20% discount**. Get started [here](https://zap-hosting.com/CtrlPanel).

docs/contributing/reporting.mdx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
sidebar_position: 2
3+
---
4+
5+
# Reporting
6+
7+
## Found a bug you can consistently reproduce?
8+
We'd love for you to report it on [Issues](https://github.com/Ctrlpanel-gg/panel/issues) section of our panel repository. We aim to fix all bugs based on priority.
9+
10+
## Have an idea for a useful or interesting feature?
11+
Please create an [Issue](https://github.com/Ctrlpanel-gg/panel/issues) on our GitHub as well!
12+
13+
## Discovered a critical vulnerability?
14+
Report it immediately via [GitHub Security Advisories](https://github.com/Ctrlpanel-gg/panel/security/advisories/new). Also, send a direct message to 1day2dir.
15+
We strongly ask you to keep the vulnerability confidential until the official fix and announcement are released.
16+
Avoid discussing vulnerabilities in public chats, and also do not create reports on public trackers!

docs/contributing/translating.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
sidebar_position: 3
3+
---
4+
5+
# Translating
6+
7+
:::warning
8+
We are currently planning a complete refactor and improvement of the translation system, which will be released with version 1.2.0. Because of this, this section is not in use for now.
9+
:::

docs/development/_category_.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"position": 4,
3+
"label": "Development",
4+
"collapsed": true,
5+
"link": {
6+
"type": "generated-index",
7+
"title": "Development",
8+
"description": "цфв"
9+
}
10+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
sidebar_position: 3
3+
---
4+
5+
# Rolling back to the release version
6+
7+
Unfortunately, it highly depends on the situation.
8+
9+
If you just installed the **development** version, have a database backup, and want to roll back do this:
10+
11+
```bash
12+
git checkout main
13+
git pull
14+
```
15+
16+
Next, follow the instructions for [restoring](/docs/guides/backup?db-state=existing#how-to-restore-database-backup) your database backup.
17+
18+
---
19+
20+
If a stable release is available and you're on development but behind, run:
21+
```bash
22+
git checkout main
23+
git pull
24+
```
25+
26+
and follow the default upgrade guide
27+
28+
## Still need help?
29+
30+
Reach out to us on [our Discord](https://discord.gg/ctrlpanel-gg-787829714483019826) server in the support channel! We'll do our best to help you.

docs/development/install.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
sidebar_position: 1
3+
---
4+
5+
# Installing development version
6+
7+
:::info
8+
Version 1.2.0 is in early development, and there are no changes compared to the [standard installation](/docs/getting-started/install) process. You can simply follow the regular installation guide, just clone the `development` branch instead of `main`.
9+
:::

docs/development/upgrade.mdx

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
---
2+
sidebar_position: 2
3+
---
4+
5+
# Update to development version
6+
7+
:::danger
8+
Always backup your database and any code changes before updating! It's better to not need them, than to lose everything when you do. We've explained how to do that [here](/docs/guides/backup).
9+
10+
Without a backup, you won't be able to roll back without losing all your data.
11+
:::
12+
13+
## Enable Maintenance Mode
14+
15+
```bash
16+
cd /var/www/ctrlpanel
17+
php artisan down
18+
```
19+
20+
## Switching to development branch
21+
22+
```bash
23+
git checkout development
24+
```
25+
26+
## Pulling the New Files
27+
28+
```bash
29+
git stash
30+
git pull
31+
chmod -R 755 /var/www/ctrlpanel
32+
```
33+
34+
## Update Dependencies
35+
36+
```bash
37+
COMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev --optimize-autoloader
38+
```
39+
40+
## Updating the Database
41+
42+
```bash
43+
php artisan migrate --seed --force
44+
```
45+
46+
## Clear Compiled Template Cache
47+
48+
```bash
49+
php artisan view:clear
50+
php artisan config:clear
51+
```
52+
53+
## Set Permissions
54+
55+
```bash
56+
# If using NGINX or Apache (not on CentOS):
57+
chown -R www-data:www-data /var/www/ctrlpanel/
58+
59+
# If using NGINX on CentOS:
60+
chown -R nginx:nginx /var/www/ctrlpanel/
61+
62+
# If using Apache on CentOS
63+
chown -R apache:apache /var/www/ctrlpanel/
64+
```
65+
66+
## Restarting Queue Workers
67+
68+
After every update, you should restart the queue worker to ensure that the new code is loaded in and used.
69+
70+
```bash
71+
php artisan queue:restart
72+
```
73+
74+
## Disable Maintenance Mode
75+
76+
```bash
77+
php artisan up
78+
```
79+
80+
## Disclaimer
81+
82+
If you notice any bugs 🐛 or would like something to be improved or added, let us know by making a [GitHub Issue](https://github.com/CtrlPanel-gg/panel/issues/new/choose).<br /> **For any major security risk, create** [GitHub vulnerability report](https://github.com/Ctrlpanel-gg/panel/security/advisories/new). Avoid discussing vulnerabilities in public chats, and also do not create reports on public trackers!

0 commit comments

Comments
 (0)