Commit graph

61 commits

Author SHA1 Message Date
Dragory
b40ed5ce49
feat: add api prefix option 2024-04-06 11:54:31 +00:00
Dragory
c2ae6d53d8
feat: update knub; use base Knub types for plugins 2024-03-30 12:35:22 +00:00
Dragory
509d96ce83
refactor: new dev/prod containers
- Use a single Dockerfile for all Zeppelin services
- Add a Dockerfile in project root that can be used by
  app hosting services
- Provide a standalone and lightweight prod setup
  - Standalone is the same as the old setup, with mysql+nginx
  - Lightweight only runs bot+backend+dash, no mysql/nginx
- Remove mounted mysql data folders for dev and prod
  - This resolves permission issues caused by the mount
  - The mysql service uses a regular named volume now
- Simplify .env options and clearly separate different prod setups
- Remove update.sh
  - Different setups require different update procedures, so a common
    update.sh no longer works
2024-03-17 18:49:31 +02:00
Dragory
7cd56303fc
refactor: use npm workspaces and ts project references 2024-03-02 09:24:07 +00:00
Dragory
59c5176cbd
Merge remote-tracking branch 'origin/master' into iots_to_zod 2024-01-27 14:12:06 +02:00
Dragory
49866d375a
feat: zod config schema formatting 2024-01-27 13:55:26 +02:00
Tiago R
f17232e0c1
dont allow self targeting for set-perms (#434)
Signed-off-by: GitHub <noreply@github.com>
2023-12-27 18:35:16 +00:00
Dragory
be40bbae9c
fix: api key verification/dashboard login 2023-07-01 17:09:23 +00:00
Dragory
5f194bf1ef
chore: fix lint errors; tweak lint rules 2023-05-08 22:58:51 +03:00
Dragory
16fa19d3e9
chore: prettier 2023-05-08 21:33:40 +03:00
Dragory
fa50110766
feat: add member cache; handle all role changes with RoleManagerPlugin; exit gracefully 2023-05-07 17:57:40 +03:00
Dragory
c3e07c1607
fix: error on dashboard plugin usage page 2023-04-02 00:02:22 +03:00
Dragory
c21aa7fbbf
chore: update dependencies 2023-04-01 20:31:44 +03:00
Tiago R
06877e90cc
Update djs & knub (#395)
* update pkgs

Signed-off-by: GitHub <noreply@github.com>

* new knub typings

Signed-off-by: GitHub <noreply@github.com>

* more pkg updates

Signed-off-by: GitHub <noreply@github.com>

* more fixes

Signed-off-by: GitHub <noreply@github.com>

* channel typings

Signed-off-by: GitHub <noreply@github.com>

* more message utils typings fixes

Signed-off-by: GitHub <noreply@github.com>

* migrate permissions

Signed-off-by: GitHub <noreply@github.com>

* fix: InternalPoster webhookables

Signed-off-by: GitHub <noreply@github.com>

* djs typings: Attachment & Util

Signed-off-by: GitHub <noreply@github.com>

* more typings

Signed-off-by: GitHub <noreply@github.com>

* fix: rename permissionNames

Signed-off-by: GitHub <noreply@github.com>

* more fixes

Signed-off-by: GitHub <noreply@github.com>

* half the number of errors

* knub commands => messageCommands

Signed-off-by: GitHub <noreply@github.com>

* configPreprocessor => configParser

Signed-off-by: GitHub <noreply@github.com>

* fix channel.messages

Signed-off-by: GitHub <noreply@github.com>

* revert automod any typing

Signed-off-by: GitHub <noreply@github.com>

* more configParser typings

Signed-off-by: GitHub <noreply@github.com>

* revert

Signed-off-by: GitHub <noreply@github.com>

* remove knub type params

Signed-off-by: GitHub <noreply@github.com>

* fix more MessageEmbed / MessageOptions

Signed-off-by: GitHub <noreply@github.com>

* dumb commit for @almeidx to see why this is stupid

Signed-off-by: GitHub <noreply@github.com>

* temp disable custom_events

Signed-off-by: GitHub <noreply@github.com>

* more minor typings fixes - 23 err left

Signed-off-by: GitHub <noreply@github.com>

* update djs dep

* +debug build method (revert this)

Signed-off-by: GitHub <noreply@github.com>

* Revert "+debug build method (revert this)"

This reverts commit a80af1e729b742d1aad1097df538d224fbd32ce7.

* Redo +debug build (Revert this)

Signed-off-by: GitHub <noreply@github.com>

* uniform before/after Load shorthands

Signed-off-by: GitHub <noreply@github.com>

* remove unused imports & add prettier plugin

Signed-off-by: GitHub <noreply@github.com>

* env fixes for web platform hosting

Signed-off-by: GitHub <noreply@github.com>

* feat: knub v32-next; related fixes

* fix: allow legacy keys in change_perms action

* fix: request Message Content intent

* fix: use Knub's config validation logic in API

* fix(dashboard): fix error when there are no message and/or slash commands in a plugin

* fix(automod): start_thread action thread options

* fix(CustomEvents): message command types

* chore: remove unneeded type annotation

* feat: add forum channel icon; use thread icon for news threads

* chore: make tslint happy

* chore: fix formatting

---------

Signed-off-by: GitHub <noreply@github.com>
Co-authored-by: almeidx <almeidx@pm.me>
Co-authored-by: Dragory <2606411+Dragory@users.noreply.github.com>
2023-04-01 14:58:17 +03:00
Dragory
ce2255b6b7
Simplify dev docker setup 2022-06-26 19:30:46 +03:00
Dragory
acbeddf11c
Fix old/broken env import 2022-06-26 14:37:37 +03:00
Dragory
3773d659cc
Consolidate .env files. More work on dev containers. 2022-06-26 14:34:54 +03:00
Dragory
264cf93fe2
fix: fix crash when importing cases with duplicate case numbers 2021-12-22 15:06:55 +02:00
Dragory
2b03c999be
feat: improve data validation errors when importing data 2021-12-22 15:00:53 +02:00
Dragory
4bdce129b3
fix: increase max API input size to 50MB 2021-11-03 01:16:29 +02:00
Dragory
9c1568b911
feat: download data exports directly from the server without a JS download step 2021-11-03 01:14:41 +02:00
Dragory
fc4f106afb
feat: add rate limits to import/export 2021-11-03 00:49:36 +02:00
Dragory
45941e47d6
feat(dashboard): add support for importing/exporting cases 2021-11-03 00:08:01 +02:00
Dragory
ac79eb09f5
Reformat all files with Prettier 2021-09-11 19:06:51 +03:00
Dragory
3b09d2d679
Add rudimentary user management to dashboard 2021-09-05 16:42:35 +03:00
Dragory
947a49761e
Add support for API permission expiry 2021-09-05 13:53:46 +03:00
Dragory
817d38b8ac
Fix 100KB config size limit 2021-08-20 21:37:25 +03:00
Dragory
3ddfb3b65a
Merge branch 'master' of github.com:Dragory/ZeppelinBot 2021-08-15 00:08:43 +03:00
Dragory
cb8d914fef
Disallow anchors/aliases to objects when loading config YAML 2021-08-14 18:22:29 +03:00
Almeida
5b1a2ca7a3
added legacy plugins section 2021-08-14 14:56:45 +01:00
Dark
5efdf5ce95
Formatting and initial ButtonRoles DB work 2021-06-08 02:23:30 +02:00
Dark
6ac9d2f2a2
Organise all imports, make Mutes depend on Logs 2021-06-06 23:51:32 +02:00
Dragory
8f5a9e607a
Detect expired dashboard logins and redirect to the splash page 2021-05-22 21:33:34 +03:00
Dragory
f3a90faaa7
Refresh dashboard authentication on every API call and every 15 minutes 2021-05-22 21:15:23 +03:00
Dragory
d83acebb4c
Disable MIME type sniffing in archives 2021-05-19 11:31:26 +03:00
Dragory
0a8239996a
Fix tNormalizedNullOptional formatting in schema view in docs 2021-04-29 01:12:52 +03:00
Dragory
825bcf973f
Fix handling of partial server responses in simpleDiscordAPIRequest() 2021-04-12 13:04:04 +03:00
Dragory
629002b8d9
Turn on strict TS compilation. Fix up and tweak types accordingly. 2020-11-09 20:03:57 +02:00
Dragory
baa3a5640e
Encrypt message data at rest 2020-09-16 22:32:43 +03:00
Dragory
c67a1df11d
Add support for server-specific timezone and date format settings 2020-08-10 00:24:06 +03:00
Dragory
557898e484
Handle plugin load errors gracefully 2020-07-30 20:40:00 +03:00
Dragory
7909c99a7f
Fix up docs 2020-07-30 13:08:06 +03:00
Dragory
a2d5bb51a7
Fix API config validation not taking default options into account 2020-07-28 23:28:26 +03:00
Dragory
e78e425ca3
api: listen on 0.0.0.0 2020-07-25 12:39:37 +03:00
Dragory
1064a1ca46
Add custom logger. Fix a bunch of errors. Optimize imports. 2020-07-22 22:56:21 +03:00
Dragory
b6257b9189
Tweaks to availablePlugins types 2020-07-10 21:03:40 +03:00
Dark
0b8e480626 Prettier: Ignore union type mismatch fix
Otherwise it puts the any in its new line which is a lot of wasted space and just looks weird
2020-07-08 02:57:56 +02:00
Dark
0f226bfa93 Fix(?) error on docs caused by union type mismatch 2020-07-08 02:54:38 +02:00
Dragory
91badbe8f4
Fix extra lint error 2020-07-06 02:15:04 +03:00
Dragory
eb703face3
Fixes to docs api endpoints 2020-07-06 02:01:16 +03:00