Skip to content

Commit dd6fb2e

Browse files
authored
Merge pull request #158 from hackthedev/beta
Huge Beta Upate
2 parents 78a1955 + 9b9695f commit dd6fb2e

4,004 files changed

Lines changed: 32366 additions & 20525 deletions

File tree

Some content is hidden

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

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,25 @@
44
/chats
55
/configs
66
/public/uploads/
7+
/public/emojis/
78
/public/.idea/
89
/public/emojis/
910
/plugins
1011
/discover/node_modules/
1112
/discover/config.json
13+
/cache
14+
/backups
15+
/public/img/default_emojis/
1216
privatekey.json
1317

1418
.idea
19+
.package-lock.json
20+
/dcts/
21+
/Private_Certs/
22+
23+
/config.env
24+
/livekit.yaml
25+
public/css/themes/your-name/background.gif
26+
public/css/themes/your-name/config.json
27+
public/css/themes/your-name/thumbnail.png
28+
public/css/themes/your-name/your-name.css

CONTRIBUTING.md

Lines changed: 20 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -1,108 +1,33 @@
1-
# Contributing to dcts-shipping
1+
# Contributing to DCTS
22

3-
First off, thanks for taking the time to contribute! ❤️
3+
First off, thanks for taking the time to contribute!
44

5-
All types of contributions are encouraged and valued. See the [Table of Contents](#table-of-contents) for different ways to help and details about how this project handles them. Please make sure to read the relevant section before making your contribution. It will make it a lot easier for us maintainers and smooth out the experience for all involved. The community looks forward to your contributions. 🎉
5+
There are many ways on how to contribute to the project. You can contribute by improving the code or [fixing issues](https://github.com/hackthedev/dcts-shipping/issues), spreading the word about the project, helping test new updates, [donating](https://ko-fi.com/shydevil) and more!
66

7-
> And if you like the project, but just don't have time to contribute, that's fine. There are other easy ways to support the project and show your appreciation, which we would also be very happy about:
8-
> - Star the project
9-
> - Tweet about it
10-
> - Refer this project in your project's readme
11-
> - Mention the project at local meetups and tell your friends/colleagues
12-
13-
## Table of Contents
14-
15-
- [I Have a Question](#i-have-a-question)
16-
- [I Want To Contribute](#i-want-to-contribute)
17-
- [Reporting Bugs](#reporting-bugs)
18-
- [Suggesting Enhancements](#suggesting-enhancements)
19-
- [Your First Code Contribution](#your-first-code-contribution)
20-
- [Improving The Documentation](#improving-the-documentation)
21-
- [Styleguides](#styleguides)
22-
- [Commit Messages](#commit-messages)
23-
- [Join The Project Team](#join-the-project-team)
24-
25-
26-
27-
## I Have a Question
28-
29-
> If you want to ask a question, we assume that you have read the available [Documentation](https://github.com/hackthedev/dcts-shipping/wiki).
30-
31-
Before you ask a question, it is best to search for existing [Issues](https://github.com/hackthedev/dcts-shipping/issues) that might help you. In case you have found a suitable issue and still need clarification, you can write your question in this issue. It is also advisable to search the internet for answers first.
32-
33-
If you then still feel the need to ask a question and need clarification, we recommend the following:
34-
35-
- Open an [Issue](https://github.com/hackthedev/dcts-shipping/issues/new).
36-
- Provide as much context as you can about what you're running into.
37-
- Provide project and platform versions (nodejs, npm, etc), depending on what seems relevant.
38-
39-
We will then take care of the issue as soon as possible.
40-
41-
42-
43-
44-
## I Want To Contribute
45-
46-
> ### Legal Notice <!-- omit in toc -->
7+
> [!IMPORTANT]
8+
>
479
> When contributing to this project, you must agree that you have authored 100% of the content, that you have the necessary rights to the content and that the content is being owned by the project's creator and can be used in any way.
4810
49-
### Reporting Bugs
50-
51-
#### Before Submitting a Bug Report
52-
53-
A good bug report shouldn't leave others needing to chase you up for more information. Therefore, we ask you to investigate carefully, collect information and describe the issue in detail in your report. Please complete the following steps in advance to help us fix any potential bug as fast as possible.
54-
55-
- Make sure that you are using the latest version.
56-
- Determine if your bug is really a bug and not an error on your side e.g. using incompatible environment components/versions (Make sure that you have read the [documentation](https://github.com/hackthedev/dcts-shipping/wiki). If you are looking for support, you might want to check [this section](#i-have-a-question)).
57-
- To see if other users have experienced (and potentially already solved) the same issue you are having, check if there is not already a bug report existing for your bug or error in the [bug tracker](https://github.com/hackthedev/dcts-shippingissues?q=label%3Abug).
58-
- Also make sure to search the internet (including Stack Overflow) to see if users outside of the GitHub community have discussed the issue.
59-
- Collect information about the bug:
60-
- Stack trace (Traceback)
61-
- OS, Platform and Version (Windows, Linux, macOS, x86, ARM)
62-
- Version of the interpreter, compiler, SDK, runtime environment, package manager, depending on what seems relevant.
63-
- Possibly your input and the output
64-
- Can you reliably reproduce the issue? And can you also reproduce it with older versions?
65-
66-
#### How Do I Submit a Good Bug Report?
67-
68-
> You must never report security related issues, vulnerabilities or bugs including sensitive information to the issue tracker, or elsewhere in public. Instead sensitive bugs must be sent by email to <security@network-z.com>.
69-
70-
We use GitHub issues to track bugs and errors. If you run into an issue with the project:
71-
72-
- Open an [Issue](https://github.com/hackthedev/dcts-shipping/issues/new). (Since we can't be sure at this point whether it is a bug or not, we ask you not to talk about a bug yet and not to label the issue.)
73-
- Explain the behavior you would expect and the actual behavior.
74-
- Please provide as much context as possible and describe the *reproduction steps* that someone else can follow to recreate the issue on their own. This usually includes your code. For good bug reports you should isolate the problem and create a reduced test case.
75-
- Provide the information you collected in the previous section.
76-
77-
Once it's filed:
78-
79-
- The project team will label the issue accordingly.
80-
- A team member will try to reproduce the issue with your provided steps. If there are no reproduction steps or no obvious way to reproduce the issue, the team will ask you for those steps and mark the issue as `needs-repro`. Bugs with the `needs-repro` tag will not be addressed until they are reproduced.
81-
- If the team is able to reproduce the issue, it will be marked `needs-fix`, as well as possibly other tags (such as `critical`), and the issue will be left to be [implemented by someone](#your-first-code-contribution).
82-
83-
84-
85-
### Suggesting Enhancements
11+
> [!NOTE]
12+
>
13+
> PRs and issues made by AI will likely be rejected, tho using it to point out possible bugs and security concerns is absolutely welcome! I just dont want PRs etc to be "vibe coded" entirely, especially since programming is a lot of fun :)
8614
87-
This section guides you through submitting an enhancement suggestion for dcts-shipping, **including completely new features and minor improvements to existing functionality**. Following these guidelines will help maintainers and the community to understand your suggestion and find related suggestions.
15+
------
8816

89-
#### Before Submitting an Enhancement
17+
## Design Philosophy
9018

91-
- Make sure that you are using the latest version.
92-
- Read the [documentation](https://github.com/hackthedev/dcts-shipping/wiki) carefully and find out if the functionality is already covered, maybe by an individual configuration.
93-
- Perform a [search](https://github.com/hackthedev/dcts-shipping/issues) to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one.
94-
- Find out whether your idea fits with the scope and aims of the project. It's up to you to make a strong case to convince the project's developers of the merits of this feature. Keep in mind that we want features that will be useful to the majority of our users and not just a small subset. If you're just targeting a minority of users, consider writing an add-on/plugin library.
19+
In order to best contribute to DCTS in form of code its important to understand how DCTS is being developed and the goals behind it.
9520

96-
#### How Do I Submit a Good Enhancement Suggestion?
21+
1. DCTS is avoiding as many 3rd party libraries as possible with the goal to be as independent as possible. A lot of libraries are custom-made to provide long term stability as DCTS was made with the intent to exist for a long time to come.
22+
2. Keep everything as simple as possible. This includes code as well as UI flows. ***Everything*** should be as simple and intuitive as possible and avoid over-engineering.
23+
3. AI usage to write anything more than maybe an function should be avoided as such code can be a pain to maintain etc
9724

98-
Enhancement suggestions are tracked as [GitHub issues](https://github.com/hackthedev/dcts-shipping/issues).
25+
------
9926

100-
- Use a **clear and descriptive title** for the issue to identify the suggestion.
101-
- Provide a **step-by-step description of the suggested enhancement** in as many details as possible.
102-
- **Describe the current behavior** and **explain which behavior you expected to see instead** and why. At this point you can also tell which alternatives do not work for you.
103-
- You may want to **include screenshots and animated GIFs** which help you demonstrate the steps or point out the part which the suggestion is related to. You can use [this tool](https://www.cockos.com/licecap/) to record GIFs on macOS and Windows, and [this tool](https://github.com/colinkeenan/silentcast) or [this tool](https://github.com/GNOME/byzanz) on Linux. <!-- this should only be included if the project has a GUI -->
104-
- **Explain why this enhancement would be useful** to most dcts-shipping users. You may also want to point out the other projects that solved it better and which could serve as inspiration.
27+
## Working on Code
10528

29+
In order to keep things organized and free of conflicts we need to set some standards.
10630

107-
## Attribution
108-
This guide is based on the **contributing-gen**. [Make your own](https://github.com/bttger/contributing-gen)!
31+
1. **Use the issue**s and mark it so that people know that you already **work** on it.
32+
2. **Dont work on stuff randomly**. Make an issue for it and wait until it gets approved. Changes or features wont be accepted if not approved beforehand. Otherwise feel free to make plugins.
33+
3. **Keep your changes to only the specific area** and approved topics! If you work on the theme handling, dont edit things from the message system. PRs with multiple changes will be rejected.

Caddyfile

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#change this to your domain for where livekit is going to live
2+
{$LIVEKIT_URL} {
3+
#For setting your own cert
4+
tls /etc/caddy/certs/certificate.pem /etc/caddy/certs/private.pem
5+
6+
encode gzip zstd
7+
8+
reverse_proxy dcts-livekit:7880 {
9+
transport http {
10+
versions 1.1
11+
}
12+
}
13+
14+
header {
15+
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
16+
X-Content-Type-Options "nosniff"
17+
X-Frame-Options "DENY"
18+
Referrer-Policy "strict-origin-when-cross-origin"
19+
-Server
20+
}
21+
}
22+
23+
#change this to your domain for the webui to live
24+
{$APP_URL} {
25+
#For setting your own cert
26+
tls /etc/caddy/certs/certificate.pem /etc/caddy/certs/private.pem
27+
28+
encode gzip zstd
29+
30+
reverse_proxy dcts-app:2052
31+
32+
header {
33+
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
34+
X-Content-Type-Options "nosniff"
35+
X-Frame-Options "DENY"
36+
Referrer-Policy "strict-origin-when-cross-origin"
37+
-Server
38+
}
39+
}

Dockerfile

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,18 @@
1-
# ---------------------------
2-
# Dockerfile for DCTS Shipping
3-
# ---------------------------
1+
# ---------------------------
2+
# Dockerfile for DCTS Shipping (Bun)
3+
# ---------------------------
44

5-
# Use the official Node.js LTS slim image
6-
FROM node:21-slim
5+
FROM oven/bun:1-slim
76

8-
# Install Python and build tools for native dependencies
9-
RUN apt-get update && apt-get install -y --no-install-recommends python3 make g++ \
10-
&& rm -rf /var/lib/apt/lists/*
11-
12-
# Set working directory
137
WORKDIR /app
148

15-
# Copy dependency definitions first for better layer caching
16-
COPY package.json package-lock.json ./
9+
COPY package.json bun.lock ./
1710

18-
# Install dependencies reproducibly, omitting dev dependencies
19-
RUN npm ci --omit=dev
11+
RUN bun install
2012

21-
# Copy the rest of the application code
2213
COPY . .
2314

24-
# Expose application port
2515
EXPOSE 2052
2616

27-
# Start the application
28-
CMD ["node", "."]
17+
CMD ["bun", "."]
2918

0 commit comments

Comments
 (0)