Skip to content

Commit

Permalink
v3.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hackthedev committed May 6, 2023
1 parent b354922 commit 0560882
Show file tree
Hide file tree
Showing 39 changed files with 1,996 additions and 135 deletions.
35 changes: 3 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,47 +1,18 @@
# DCTS - Direct Communication Through Sockets
![Version](https://img.shields.io/static/v1?label=State&message=Early%20Access&color=orange)
<!-- ![GitHub all releases](https://img.shields.io/github/downloads/hackthedev/dcts-shipping/total?color=success&label=Downloads) -->
[Forum](https://dcts.chat/)

# DCTS - ![Version](https://img.shields.io/static/v1?label=State&message=Early%20Access&color=orange)
This project was made with the goal to combine TeamSpeak and Discord. The goal: A platform that looks modern like Discord but runs the server like TeamSpeak. DCTS allows you to run your own Discord Server like a TeamSpeak server, in simple words.

Since you can host the server yourself you're also the one in control of the data. This could be important for people who value their data privacy.

<br>

## Obfuscated?
Yes. Its not open source. I dont want my work to be copied but yet i still want people to be able to use it. I'll find a better solution in the future.

<br>

## Licensing
The software will be free for personal use and for non-profit communities. Commercial use will require a license (or maybe not).
The software will be free for personal use and for non-profit communities. Commercial use will require a license.

<br>

## How to install
Requires node.js to be installed (tested with v16.16.0). Afterwards execute the following commands.
Requires node.js to be installed. Afterwards execute the following commands.
```
npm install
node .
```

<br>

## Tested NodeJS versions
- v12.12
- v16.16.0
- v19

<br>

## Connecting to your server
Once you've installed the server and its running, you can open your browser and enter the server's ip and add the port 2052.<br>
Example: localhost:2052
(setting to change port coming in updates)

<br>

## Tutorial
(version in video slightly outdated)<br>
[![IMAGE ALT TEXT HERE](https://img.youtube.com/vi/ayeua15ICpM/0.jpg)](https://www.youtube.com/watch?v=ayeua15ICpM)
188 changes: 105 additions & 83 deletions config.example.json
Original file line number Diff line number Diff line change
@@ -1,91 +1,113 @@
{
"serverinfo": {
"name": "Default Server",
"description": "Welcome to my server",
"setup": 0,
"maxUploadStorage": "10",
"useCloudflareImageCDN": 0,
"cfAccountId": "",
"cfAccountToken": "",
"cfHash": "",
"rateLimit": 128,
"dropInterval": 5,
"uploadFileTypes": [
"image/png",
"image/jpeg",
"image/gif",
"image/webp"
]
},
"serverroles": {
"0": {
"info": {
"name": "Member",
"icon": null,
"color": "#FFFFFF",
"deletable": 0
},
"permissions": {
"readMessage": 1,
"sendMessage": 1,
"uploadFiles": 1
},
"members": []
"serverinfo": {
"name": "Default Server",
"description": "Welcome to my server",
"port": 2052,
"setup": 0,
"maxUploadStorage": "10",
"useCloudflareImageCDN": 0,
"cfAccountId": "",
"cfAccountToken": "",
"cfHash": "",
"rateLimit": "256",
"dropInterval": "5",
"uploadFileTypes": [
"image/png",
"image/jpeg",
"image/gif",
"image/webp"
],
"ssl": {
"key": "/etc/letsencrypt/live/EXAMPLE.COM/privkey.pem",
"cert": "/etc/letsencrypt/live/EXAMPLE.COM/cert.pem",
"chain": "/etc/letsencrypt/live/EXAMPLE.com/chain.pem",
"enabled": 0
}
},
"serverroles": {
"0": {
"info": {
"id": 0,
"name": "Member",
"icon": null,
"color": "#FFFFFF",
"deletable": 0,
"sortId": 0,
"displaySeperate": 1
},
"permissions": {
"readMessages": 1,
"sendMessages": 1,
"uploadLocalFiles": 1,
"redeemKey": 1
},
"members": [

]
},
"1111": {
"info": {
"id": 1111,
"name": "Admin",
"icon": null,
"color": "#ff0000",
"deletable": 0,
"sortId": 1,
"displaySeperate": 1
},
"permissions": {
"administrator": 1
},
"members": [

],
"token": null
}
},
"1": {
"info": {
"name": "Admin",
"icon": null,
"color": "#FF0000",
"deletable": 0
},
"permissions": {
"administrator": 1
},
"members": [],
"token": null
}
},
"groups": {
"0000": {
"info": {
"id": 0,
"name": "Home",
"icon": "/img/default_icon.png",
"banner": "/img/default_banner.png",
"isDeletable": 1,
"access": [
"roleId"
]
},
"channels": {
"categories": {
"0000": {
"groups": {
"0": {
"info": {
"name": "General"
"id": 0,
"name": "Home",
"icon": "/img/default_icon.png",
"banner": "/img/default_banner.png",
"isDeletable": 1,
"sortId": 0,
"access": []
},
"channels": {
"categories": {
"0": {
"info": {
"name": "General"
},
"channel": {
"0": {
"name": "chat",
"type": "text",
"description": "Default Channel Description",
"sortId": 0,
"permissions": {
"0": {
"readMessages": 1,
"sendMessages": 1,
"viewChannel": 1
}
}
}
}
}
}
},
"channel": {
"0000": {
"name": "chat",
"type": "text",
"description": "Default Channel Description",
"permissions": {
"0": {
"readMessage": 1,
"sendMessage": 1
}
"permissions": {
"0": {
"viewGroup": 1
}
}
}
}
}
},
"roles": {}
}
},
"servermembers": {
},
"ipblacklist": [

]
},
"servermembers": {
},
"ipblacklist": [
]
}
2 changes: 1 addition & 1 deletion index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/chat.js

Large diffs are not rendered by default.

Binary file added public/img/down.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/up.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 16 additions & 3 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@
overflow: hidden;
background-color: transparent;

width: 100px;
width: 60%;
height: 28px;
cursor: pointer;
}
Expand Down Expand Up @@ -431,8 +431,14 @@
width: 100px;
}

.memberlist-member-info-status {
.memberlist-member-info.status {
font-size: 12px;
width: 120px;
width: calc(100% - 48px);

overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.infolist-role {
Expand Down Expand Up @@ -472,6 +478,7 @@
}

.message-profile-info-name {
font-weight: normal;
cursor: pointer;
}

Expand Down Expand Up @@ -600,7 +607,7 @@
float: left;
width: 100%;

margin: 8px 0 8px 0;
/* margin: 8px 0 8px 0; */
}

.image-embed {
Expand Down Expand Up @@ -639,6 +646,7 @@

#context-menu .item:hover{
background: #343434;
border-radius: 6px;
}

#context-menu.visible{
Expand Down Expand Up @@ -730,6 +738,11 @@
background-position: center center;
}

#profile-qa-info-status{
text-overflow: ellipsis;
white-space: nowrap;
}

</style>

<div id="header"></div>
Expand Down
17 changes: 16 additions & 1 deletion public/settings/account/page/profile/profile.css
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,13 @@

#profile_roles code.role{
background-color: #36393F;
padding: 2px 6px 2px 6px;
padding: 0px 6px 4px 6px;
border-radius: 6px;
margin-left: 6px;

margin: 4px;

display: inline-block;
}

#profile_roles .role_color{
Expand Down Expand Up @@ -140,4 +145,14 @@
color: black;
text-align: center;
width: 100%;
}

code.joined{
background-color: #3c3f44;

font-size: 12px;

border: 2px solid #3c3f44;
border-radius: 6px;
padding: 2px 4px 2px 4px;
}
Loading

0 comments on commit 0560882

Please sign in to comment.