Cohee
60448f4ce8
Move security checks to users.js
2025-02-27 21:27:39 +02:00
Cohee
861c502e44
Return type casts where they were
2025-02-25 22:12:22 +02:00
Cohee
a73dfa7586
Merge branch 'staging' into immutable-config
2025-02-22 20:15:13 +02:00
Cohee
8ad7b5dcc5
Check if git repo root in plugin update
2025-02-20 23:13:23 +02:00
Cohee
3f03936125
Add config value type converters for numbers and booleans
2025-02-20 21:53:48 +02:00
Cohee
362470da18
Plugins: Add auto-update functionality ( #3487 )
...
* Plugins: Add auto-update functionality
* Check if directory is a git repo
* Display message if any plugins were loaded
2025-02-16 20:55:53 +02:00
Cohee
ffa8716d07
Plugins: support .cjs module extension
2024-10-11 23:00:37 +03:00
Cohee
a0e6030836
Simplify node imports
2024-10-11 00:28:17 +03:00
Cohee
d52b4fbbde
Node: Migrate to ES Modules
2024-10-10 22:37:22 +03:00
Cohee
a2e6d1da4f
Fix loading plugins from default exports
2024-04-14 23:24:03 +03:00
Cohee
88993bd3e8
Add check for server plugin id clash
2023-12-24 00:00:20 +02:00
Cohee
fd373fb821
Use file URL for import
2023-12-23 19:46:32 +02:00
Cohee
ea85cfcbdd
Plugin cleanup and validation fixes
2023-12-23 19:03:13 +02:00
valadaptive
0162d54e5b
Always use async import()
...
import() works with CommonJS and ESM modules, so we don't need two
different code paths.
2023-12-17 12:29:54 -05:00
valadaptive
7ae0e05946
Allow plugins to specify "exit" functions
2023-12-17 12:26:34 -05:00
valadaptive
4fcb7b5ea4
Rework plugin loading
...
Plugins must now provide an `info` export which includes their ID, name,
and a description (I'm flexible on the last two). The ID is used for the
API route--all plugin-registered API routes will be accessed through
`plugins/[plugin ID]`.
2023-12-17 12:21:05 -05:00
Cohee
940f701691
Don't try to load directories as files
2023-12-17 01:23:28 +02:00
Cohee
16795dd5cc
Add server plugin loader
2023-12-16 22:21:40 +02:00