1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-09-20 17:51:35 +02:00
Commit Graph

397 Commits

Author SHA1 Message Date
Madeline
68f6fe58d5 Tsnode support (#580)
* ts-node support. debugging is slightly wonky as vscode will not allow breakpoints in modules that aren't bundle, yet.

* apparently ts-node compilerOptions.path wasn't needed? on windows I could've sworn it was.

* Cleaned up tsconfig.json a bit ( moved tsnode config to own file ).
Fixed breakpoints for all modules under tsnode

* Removed Microsoft Corp advert
* Remove one more Microsoft Corp. ad

Signed-off-by: Erkin Alp Güney <erkinalp9035@gmail.com>

* Added `tsnode` npm script

* Added `typescript-cached-transpile` package to help improve performance

Co-authored-by: Erkin Alp Güney <erkinalp9035@gmail.com>
2022-03-06 09:18:35 +03:00
Erkin Alp Güney
57fc690457 document which field is which 2022-03-04 22:12:24 +03:00
Erkin Alp Güney
7cce144eab Initial work on public read receipts
Progress on #416
2022-03-04 22:00:59 +03:00
dependabot[bot]
b5872513ce Bump url-parse from 1.5.7 to 1.5.10 in /util
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.7 to 1.5.10.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.7...1.5.10)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-28 04:54:37 +00:00
dependabot[bot]
baa7e306df Bump url-parse from 1.5.3 to 1.5.7 in /util
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.3 to 1.5.7.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.3...1.5.7)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-19 10:55:53 +03:00
Iratu
46f77f8e38 changed user.premium_since to also load from the database. 2022-02-18 19:50:11 +03:00
Iratu
58d58928ec Fix for Premium Since to show the 'Guild Boost' and store it correctly in the database 2022-02-18 19:50:11 +03:00
Madeline
d3f9fb63f3 Merge branch 'master' into maddyrtc 2022-02-17 18:57:04 +11:00
Erkin Alp Güney
8ed310e0d3 Merge pull request #608 from Featyre/master
Branding updates + Fixed Discovery and custom status + Dev portal
2022-02-16 21:16:20 +03:00
dependabot[bot]
4d9ee5220e Bump vm2 from 3.9.5 to 3.9.7 in /util (#631)
Bumps [vm2](https://github.com/patriksimek/vm2) from 3.9.5 to 3.9.7.
- [Release notes](https://github.com/patriksimek/vm2/releases)
- [Changelog](https://github.com/patriksimek/vm2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/patriksimek/vm2/compare/3.9.5...3.9.7)

---
updated-dependencies:
- dependency-name: vm2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-15 08:01:41 +03:00
Madeline
204fe2aed1 Merge branch 'master' into maddyrtc 2022-02-13 22:29:14 +11:00
Erkin Alp Güney
79cc9badfc Added a few extensions 2022-02-12 19:53:40 +03:00
RealMANI
c38d147a91 Appropriate DB charset (#629)
causes bugs like turning emojis to "????"
2022-02-11 08:13:46 +03:00
Erkin Alp Güney
3e0d2db0cb Add more rights (#541)
Signed-off-by: Erkin Alp Güney <erkinalp9035@gmail.com>
* Added the backfilling-related rights
* Added kick/ban rights
* Added the presence right
* Guild directory
* Interactions rights
2022-02-10 21:14:48 +03:00
ImAaronFR
896d3672f4 [Fix] Column "groups" contains null-values (#622) 2022-02-08 08:14:07 +03:00
dependabot[bot]
f3869cb4f6 Bump simple-get from 3.1.0 to 3.1.1 in /util (#620)
Bumps [simple-get](https://github.com/feross/simple-get) from 3.1.0 to 3.1.1.
- [Release notes](https://github.com/feross/simple-get/releases)
- [Commits](https://github.com/feross/simple-get/compare/v3.1.0...v3.1.1)

---
updated-dependencies:
- dependency-name: simple-get
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-04 23:16:46 +03:00
Featyre
9f5c451cbc Return none for dev portal + todo for categories 2022-02-02 02:09:57 +08:00
Featyre
d4690aa7b6 Fix primarycolum being assigned to nullable = true 2022-02-02 01:06:42 +08:00
Featyre
9a52549eb8 make everything in categories nullable 2022-02-02 01:02:32 +08:00
Featyre
e609d5c345 Merge branch 'fosscord:master' into master 2022-02-01 16:54:50 +00:00
Erkin Alp Güney
37bcc2d407 A few minor changes 2022-01-27 16:54:42 +03:00
Featyre
821470cc41 Dev portal + categories load db 2022-01-26 08:58:36 +08:00
Erkin Alp Güney
c824c32234 Merge pull request #555 from unknownPerson115/patch-1
Fixed potential guild message SQL constraints
2022-01-24 20:51:16 +03:00
Featyre
dc3fb1f519 Prep for Category db work 2022-01-24 11:27:12 +00:00
Featyre
1b919bbbc3 Merge branch 'fosscord:master' into master 2022-01-24 09:02:52 +00:00
Featyre
a0fb2549d5 category + discovery + custom status fix, new config 2022-01-24 07:21:48 +00:00
Madeline
108829140a revert dependabot PRs that update node-fetch to v3 2022-01-24 17:06:31 +11:00
Featyre
edd5cf651c Merge branch 'fosscord:master' into master 2022-01-24 05:25:22 +00:00
Madeline
f8f236afb2 * Replaced list of invisible characters with unicode codepoints
* No longer silently edit invalid channel names
* No longer trim channel names in unnamed check
2022-01-23 23:29:14 +03:00
Madeline
0a53860645 channel.owner_id is type string not number 2022-01-23 23:29:14 +03:00
Madeline
028fd7b8b3 Apply suggestions from code review
Co-authored-by: Erkin Alp Güney <erkinalp9035@gmail.com>
2022-01-23 23:29:14 +03:00
Erkin Alp Güney
0df2a0adf6 Update Channel.ts 2022-01-23 23:29:14 +03:00
Madeline
35c7489f72 Added ILLEGAL_CHANNEL_NAMES and NULL_CHANNEL_NAMES guild feature flags 2022-01-23 23:29:14 +03:00
Featyre
f6774cb3ec Merge branch 'fosscord:master' into master 2022-01-23 15:57:00 +00:00
Featyre
7ba65f8f66 Partial integration of categories and discovery 2022-01-23 23:55:43 +08:00
dependabot[bot]
bb07db9979 Bump node-fetch from 2.6.2 to 2.6.7 in /util
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.2 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/main/docs/CHANGELOG.md)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.2...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-23 07:44:37 +03:00
Madeline
1569fec0cf boilerplate stuff 2022-01-16 02:38:43 +11:00
Erkin Alp Güney
cc698225a0 update defaults 2022-01-12 16:13:13 +03:00
Erkin Alp Güney
26781e736c Update Guild.ts 2022-01-12 10:19:05 +03:00
Erkin Alp Güney
90ba897ca4 Schema change for group specific emojis 2022-01-12 09:55:14 +03:00
Chris Chrome
aaf5df14e1 Add Role Icons (#574)
* Role Icons

Co-authored-by: Erkin Alp Güney <erkinalp9035@gmail.com> 
*  Cache coherency rules

Co-authored-by: MANIKILLER <manikillrorg@gmail.com>
Co-authored-by: ImAaronFR <96433859+ImAaronFR@users.noreply.github.com>
2022-01-05 13:44:14 +03:00
Daniel Huber
e31d8e85a6 Incrementing user discriminators
Closes #328
2022-01-04 09:46:22 +03:00
Thesourtimes
2b6e6ea025 Organize @fosscord/api utils in directories 2022-01-01 20:04:30 +03:00
The Arcane Brony
07768ecb68 Add env name in sentry, set default sentry endpoint 2021-12-26 18:19:31 +01:00
The Arcane Brony
579515f67c Restore package locks 2021-12-26 16:41:22 +01:00
The Arcane Brony
e042db33b6 Replace nanocolors with picocolors 2021-12-25 12:09:48 +01:00
unknownPerson115
716ea8b233 Fixed potential guild message SQL constraints
i have tied member dependencies to the author id rather than the member id to avoid a dependency cycle and you can now kick/ban someone from a guild/server and the messages will remain in the guild (just like discord) as stated in issue #441

I have also tested this code seems clean so far
(new pull request opened because of branch commit issues)
2021-12-23 20:40:13 -06:00
The Arcane Brony
a9a92ff2cb Add Sentry, fix compile errors 2021-12-22 18:43:39 +01:00
The Arcane Brony
02235067f9 Repo cleanup, remove fs-extras 2021-12-21 11:56:33 +01:00
Thesourtimes
442879e80a General work on API 2021-12-18 19:17:04 +03:00
Thesourtimes
13eb680272 Improvements + dummy API configs 2021-12-18 15:19:07 +03:00
Thesourtimes
fab28f5f1b Make the test client togglable 2021-12-15 05:41:21 +03:00
Erkin Alp Güney
73c5141e05 snowflake-based invite generation 2021-11-28 11:25:41 +03:00
Kuna
5d2f92427d Update util/src/entities/Config.ts
Co-authored-by: Erkin Alp Güney <erkinalp9035@gmail.com>
2021-11-21 15:35:59 +00:00
Kuna
2c93f1f121 Update util/src/entities/Config.ts
Co-authored-by: Erkin Alp Güney <erkinalp9035@gmail.com>
2021-11-21 15:35:51 +00:00
Thesourtimes
7681ea6d8e Fix the minor issues on route 2021-11-18 22:15:05 +03:00
uurgothat
159c712c43 Add image field 2021-11-17 22:50:25 +03:00
uurgothat
54ebf97e78 Add instance route 2021-11-17 22:28:22 +03:00
uurgothat
d6cadb02f4 make templates configurable + authorization 2021-10-24 19:49:32 +03:00
uurgothat
537da73d38 Merge branch 'master' of https://github.com/fosscord/fosscord-server 2021-10-24 18:13:51 +03:00
Flam3rboy
c812026527 ⬆️ update packages 2021-10-24 12:59:25 +02:00
KagurazakaNyaa
12d1a86c8f Fix missing dependencies 2021-10-24 02:50:03 +08:00
KagurazakaNyaa
1e3aba2422 Proxy support for external network access 2021-10-24 02:17:07 +08:00
Samuel
00fd55ed77 Merge pull request #490 from developomp/master
Prettier format and link simplification
2021-10-20 14:16:26 -04:00
Flam3rboy
e58e153c7c 🐛 revert file config overwrite 2021-10-20 17:15:21 +02:00
developomp
14e42d025a prettier formatted /util 2021-10-20 09:16:59 +09:00
Flam3rboy
01fb2dbf4d use better-sqlite3 as default db 2021-10-18 22:55:54 +02:00
Flam3rboy
45efdb7ce4 vertically scale bundle 2021-10-18 17:38:31 +02:00
Flam3rboy
dc22db6902 Revert "fix: make the CDN build correctly"
This reverts commit 79aae987fd.
2021-10-18 14:38:34 +02:00
uurgothat
7c724175ce external templates + fosscord draft and more configs 2021-10-18 04:36:49 +03:00
Diego Magdaleno
648c9b738c Merge branch 'docker-fix' of https://github.com/hbjydev/fosscord-server into hbjydev-docker-fix 2021-10-17 16:51:17 -05:00
Flam3rboy
3a76f0f33c config override file 2021-10-17 22:27:54 +02:00
uurgothat
652edbd895 Add discord template support 2021-10-17 23:20:46 +03:00
Hayden Young
79aae987fd fix: make the CDN build correctly 2021-10-17 11:55:54 +00:00
Flam3rboy
4aeb7b3b4a ⬆️ update sqlite3 2021-10-17 01:39:41 +02:00
Flam3rboy
860e86ad19 migration for timestamp migrations 2021-10-17 01:23:51 +02:00
Samuel
f0c17bb28f Merge pull request #467 from hbjydev/fix-migration-column-issue
Fix migration timestamp column data type issue
2021-10-17 01:14:43 +02:00
Flam3rboy
1e21f05206 🐛 default session activites 2021-10-17 00:57:31 +02:00
Flam3rboy
c378724bf3 add presence migration 2021-10-17 00:51:51 +02:00
Flam3rboy
95f5fb3b93 🎨 reformatted 2021-10-17 00:41:24 +02:00
Flam3rboy
68053418f3 User presence/status 2021-10-17 00:39:54 +02:00
Flam3rboy
116e17f6d0 added session + memberlist event 2021-10-17 00:38:56 +02:00
Flam3rboy
aec3834fe5 ⬆️ update mnjsf 2021-10-16 21:48:57 +02:00
Flam3rboy
c48eb95af0 🔒 update modules 2021-10-15 23:51:31 +02:00
Flam3rboy
69b3802a0f 🔒 update set-value & tar 2021-10-15 23:43:40 +02:00
Flam3rboy
033130936b 🐛 fix migration timestampe 2021-10-15 23:29:59 +02:00
Hayden Young
d278c9f340 fix: make timestamp column a bigint 2021-10-15 19:20:16 +01:00
Samuel
0c811dbee9 Merge pull request #455 from fosscord/sticker
Stickers
2021-10-15 18:39:57 +02:00
Flam3rboy
3999603391 sticker events 2021-10-15 18:39:28 +02:00
Flam3rboy
4be8d3414e automatically run db migrations 2021-10-15 18:39:19 +02:00
Flam3rboy
e1b991dfd1 Merge branch 'master' into sticker 2021-10-15 13:32:26 +02:00
Hayden Young
46a8d0f883 chore(merge): remote -> local 2021-10-15 11:03:23 +00:00
Flam3rboy
182de09ccc 🐛 fix unittests 2021-10-15 13:00:23 +02:00
Samuel
dd33d080c1 Merge pull request #448 from Mr2u/master
Route #10 Prune and prune count
2021-10-15 00:35:32 +02:00
Flam3rboy
b844b6b39c 🐛 fix prune 2021-10-15 00:35:18 +02:00
Flam3rboy
bc85d6ff86 🎨 reformat 2021-10-15 00:03:35 +02:00
Flam3rboy
fb3f957f30 🐛 fix sticker packs 2021-10-15 00:03:19 +02:00
Flam3rboy
d8f77c687e 🐛 fix message sticker sending 2021-10-15 00:03:05 +02:00
Flam3rboy
f38ebe65ed sticker upload 2021-10-15 00:02:23 +02:00
Flam3rboy
93b76035b6 sticker db entities 2021-10-14 19:47:02 +02:00
Flam3rboy
4e6ffcbc4f 🐛 fix migration + autojoin 2021-10-14 00:32:15 +02:00
Mr2u
51274df43a Merge branch 'fosscord:master' into master 2021-10-13 19:33:39 +11:00
Maddy
d3853a3d7a added route /guilds/:id/prune GET count and POST prune.
Edited Member entity to include last_message_id to avoid searching for every members last message when pruning
When a message is sent through /channels/:id/messages last_message_id of sending Member is updated.
2021-10-13 19:19:46 +11:00
Flam3rboy
b0385e0fcb improve memory managment 2021-10-12 21:53:57 +02:00
Flam3rboy
976f76d524 🎨 gifs 2021-10-11 16:34:18 +02:00
Flam3rboy
237137bd6e Merge pull request #435 from TheArcaneBrony/change-enums-to-number
Change enums to numbers
2021-10-11 15:06:00 +02:00
Flam3rboy
d83a83283a Update Rights.ts 2021-10-11 15:04:03 +02:00
Erkin Alp Güney
b56ecba128 Added more rights, and explained existing ones 2021-10-10 23:16:24 +03:00
The Arcane Brony
496d7d2780 Put local types back 2021-10-10 21:30:46 +02:00
The Arcane Brony
d7fa45771d Change enums to numbers 2021-10-10 20:34:45 +02:00
Flam3rboy
a8cae71390 Merge branch 'master' into pr/TheArcaneBrony/434 2021-10-10 19:02:08 +02:00
Flam3rboy
c20d87da28 🐛 fix modify role.permissions 2021-10-10 19:00:50 +02:00
Flam3rboy
e7f80c4af4 Merge branch 'master' into remove-vanity-url 2021-10-10 18:56:46 +02:00
Flam3rboy
28c9a08a54 🎨 update migration script 2021-10-10 18:31:04 +02:00
Flam3rboy
08232dcf5f Merge branch 'remove-vanity-url' of https://github.com/thearcanebrony/fosscord-server into pr/TheArcaneBrony/434 2021-10-10 18:28:52 +02:00
Flam3rboy
587e0a7120 added vanity db migration 2021-10-10 18:28:50 +02:00
The Arcane Brony
d38953439c forgot to fix primary columns on invites 2021-10-10 18:12:51 +02:00
The Arcane Brony
c9e827b3e9 Fix duplicate key 2021-10-10 17:55:48 +02:00
Flam3rboy
58c3974e1b 🐛 fix Emoji missing in identify 2021-10-10 14:31:13 +02:00
Flam3rboy
ebb0f567d5 🎨 emoji db migration 2021-10-10 14:09:54 +02:00
Flam3rboy
2908544b27 🐛 fix cdn 2021-10-10 14:08:52 +02:00
Flam3rboy
bffe2a85bd Merge branch 'master' into pr/LoboMetalurgico/424 2021-10-10 12:50:45 +02:00
Flam3rboy
fc5f5f33cb 🙈 remove console.log 2021-10-10 12:42:12 +02:00
Flam3rboy
4722dd5d97 🐛 fix tsc compiler 2021-10-10 12:35:46 +02:00
Flam3rboy
dc85a79498 🎨 clean up imports + classes 2021-10-10 11:03:32 +02:00
Flam3rboy
dbe2258d97 🎨 clean up dependencies 2021-10-10 11:03:04 +02:00
Lobo Metalúrgico
d359652b24 Merge branch 'fosscord:master' into milestoneV1/routes/implement/emojis 2021-10-09 23:44:59 -03:00
Flam3rboy
d6bc17a8c7 added read state 2021-10-09 17:33:28 +02:00
Flam3rboy
0ef82be133 handleFile() now returns mime_type and size 2021-10-09 17:25:26 +02:00
Lobo Metalúrgico
7cfca122ae Merge remote-tracking branch 'upstream/master' into milestoneV1/routes/implement/emojis 2021-10-09 10:39:26 -03:00
Flam3rboy
0516357477 Merge branch 'master' of http://github.com/fosscord/fosscord-server 2021-10-09 14:31:23 +02:00
Flam3rboy
c634532897 🐛 fix array key in config 2021-10-09 14:31:19 +02:00
Flam3rboy
732f88cbb2 added guestsRequireInvite to config 2021-10-09 12:54:03 +02:00
Lobo Metalúrgico
e0839677d5 (api): inital emojis route implementation 2021-10-08 23:45:12 -03:00
Flam3rboy
826b2c9820 🐛 fix build 2021-10-09 01:44:44 +02:00
Flam3rboy
3b74fa9299 bundle build script 2021-10-08 10:43:43 +02:00
Flam3rboy
29516da90f Merge branch 'compiler-change' of https://github.com/thearcanebrony/fosscord-server into pr/TheArcaneBrony/418-1 2021-10-07 18:22:15 +02:00
Flam3rboy
8bb38139c2 🐛 fix swc config 2021-10-07 18:21:17 +02:00
Flam3rboy
c75c6f508d 🐛 fix types + swcrc configs 2021-10-07 18:20:03 +02:00
Flam3rboy
b5905c1bba 🐛 fix swcrc config: rewrite import -> require 2021-10-07 09:59:04 +02:00
The Arcane Brony
7db9086dd0 Compiler test 2021-10-06 18:20:22 +02:00
Flam3rboy
1296600de9 ⬆️ lambert-server@1.2.11 2021-10-05 20:47:12 +02:00
Flam3rboy
ce63639090 🐛 fix user projection 2021-10-05 19:52:42 +02:00
Flam3rboy
1bc56e5131 added autoJoin guild to config 2021-10-05 19:37:20 +02:00
Flam3rboy
214d6b821c 🎨 move field error to util 2021-10-05 19:34:13 +02:00
Flam3rboy
9cf018d737 add User.register() method 2021-10-05 19:33:23 +02:00
Flam3rboy
2bd5c06bf1 ⬆️ update mnjsf 2021-10-05 19:32:42 +02:00
Flam3rboy
2dd50e757b 🐛 fix windows db file path 2021-10-05 19:32:29 +02:00
Flam3rboy
3e01ff75ed 🎨 improve migration script 2021-10-05 17:00:58 +02:00
Flam3rboy
cb0885dd71 db migrate script 2021-10-04 23:14:03 +02:00