Commit Graph

177 Commits

Author SHA1 Message Date
DawitMengistu
57c38e196a docs: update light mode and responsiveness of community apge(#1621)
* Update header.tsx

'Open Source Community' text color for theme change"

* fix: improve community page responsiveness and styling

---------

Co-authored-by: Bereket Engida <bekacru@gmail.com>
2025-03-02 09:54:02 +03:00
KinfeMichael Tariku
86db0c2039 docs: fix metadata theming (#1613)
* fix: light theme issue

* fix: metadata issue

* cleanup the layout

* changelog-layout default clean up
2025-03-02 01:45:19 +03:00
KinfeMichael Tariku
1cbe4d1049 docs: changelog base og image (#1610) 2025-03-01 23:58:02 +03:00
Bereket Engida
15f769645c docs: add Vercel Analytics 2025-03-01 23:57:20 +03:00
Bereket Engida
bce889b99a docs(changelog): remove back navigation link 2025-03-01 23:54:25 +03:00
Bereket Engida
fa1de4352e docs(changelog): change release notes og image 2025-03-01 23:26:21 +03:00
Bereket Engida
f2985c269f docs(changelog): Improve mobile and responsive layout for changelog pages 2025-03-01 23:14:19 +03:00
Bereket Engida
958d80fd86 docs(changelog): Update 1.2 release notes 2025-03-01 23:10:03 +03:00
Bereket Engida
5a72778767 chore: remove remarkInclude from docs route processing 2025-03-01 12:29:41 +03:00
Bereket Engida
f6051b45b8 chore: lint 2025-03-01 02:47:15 +03:00
Bereket Engida
86cbf70684 docs: v1.2 release notes (#1602) 2025-03-01 02:22:32 +03:00
Maxwell
ec9edc357a feat: API Key plugin (#1515)
* feat: API-key plugin

* add: `deleteAllExpiredApiKeys` functionality

* fix: fetching sessions from headers

* update: types & create-api-key now checks for min & max expiresIn values

* tests: Started working on tests

* add: features

- added list functionality
- added min & max prefix length
- added min & max name length
- added metadata enable/disable option
- added `disableSessionForAPIKeys` option
- verify API key now checks for expiration & refills
- added regex to check prefix of api key

* fix: create-api-key's expiration using `/` instead of `*`

* update: schema `metadata` transforms invalid values as `null`

* fix: create-api-key metadata should go through transformation

* fix: missing metadata wouldn't have `'null'` as value

* update: error types

* fix: remove console.logs from verify

* fix: rate-limit not working

* fix: rate-limit plugin options types

* chore: remove logs

* update: removed `key` field from result apiKey type of the update-api-key endpoint

* fix: typo

* update: create & update if checks

- create now checks if custom expiration times are allowed
- update now allows name values & checks if name is within length range
- update now also checks for custom expiration times are allowed

* update(WIP): tests

* fix: added the missing error throw when there is no values to update

* fix: update-api-key checks expiresIn in days, not ms

- also updated create-api-key & update-api-key to have more detailed event logging

* fix: update api key's remaining count's min & max checks

- also added more detail to the events

* fix: update-api-key can now update refillInterval & refillAmount properly

* fix: metadata in update-api-key transforms between string & obj correctly

* add: all of the `update` tests

* update: get-api-key metadata is now obj instead of string

* add: listApiKeys functionality

* fix: get-session to use mock session based on header API keys

* update: tests to test against get-session, get-api-key, and list-api-key

* add: `start` field to show the first few characters of an API key

* fix: very silly mistake

* update: tests to validate `start` property

* update: create-api-key checks if properties are set from server & allows for custom rate-limit rules

- also updated tests to check against this

* update: verify-api-key to check if a row has the right user-id

- this also should speed up the DB process too. (I'm pretty sure)

* update: `delete-all-expired-api-keys` endpoint added & updated list-api-keys endpoint function name

* add: customAPIKeyValidator fn, and fixed verification `remaining` and `lastRefillAt` values updating DB incorrectly

* update: documentation

* add: rate-limiting enable/disable on a per-key level

* update: docs

* fix: correct expiration time units and improve error messages in API key handling

* fix: allow creating apiKeys by providing userId on the server

* fix: user userId instead of headers to differ server vs client calls on create api key

* wip

* fix: JSDoc comment

* fix: tests not passing due to invalid expiresIn value

Since the expiresIn got changed from `ms` to `sec`, this needed to be changed as well.

* wip

* fix(api-key): update tests and error messages for API key verification

* fix(api-key): update API key fixes

* refactor tests and remove events

* refactor(api-key): remove unused event handling and clean up type definitions

* add: minimum values to `create-api-key` numeric input options

* fix: remove `opts.events` in delete-api-key route

* refactor: all returning routes which can contain `key`

- more performant
- better typed
- cleaner code

:D

* update: added minimum values to update-api-key endpoint as well

* fix: removed `maximumRemaining` & `minimumRemaining` default values in `opts`

* docs: ready (unless I make minor adjustments later) 🫡

* fix(docs): links & invalid code examples

* fix: output transform of metadata to use ParseJSON

* fix: tests failing due to async metadata transform output

* fix: return types for verify-api-key endpoint

* fix: tests failing due to invalid expiresIn minimum value

* docs: reorder sidebar items for API Key

* wip

* docs(api-key): enhance documentation with permissions and usage details

- Updated API key documentation with comprehensive permissions explanation
- Added examples for setting default permissions, creating, verifying, and updating API keys with permissions
- Clarified API key creation, verification, and update processes
- Improved code examples and descriptions for better understanding

* chore: lint

* fix(docs): incorrect wording / explanation on refillInterval/refillAmount

* add(docs): missing permissions info in docs

---------

Co-authored-by: Bereket Engida <bekacru@gmail.com>
2025-02-28 17:11:03 +03:00
Bereket Engida
7ba1af2ff9 Merge branch 'main' into v1.2 2025-02-27 14:20:23 +03:00
Bereket Engida
c488e306ea docs: add llms.txt 2025-02-25 22:35:30 +03:00
Maxwell
9a0b86a7fe docs: first page shouldn't show nav button to go to prev page (#1442) 2025-02-17 08:23:41 +03:00
Maxwell
c3f2febf3b docs: first page shouldn't show nav button to go to prev page (#1442) 2025-02-14 19:25:49 +03:00
Bereket Engida
cb691e78bc docs: update captcha docs and fix sidebar svg 2025-02-14 10:18:21 +03:00
Ramadan Omar
7736be2a9c a11y: show scrollbar (#1390) 2025-02-11 11:02:56 +03:00
Anurag Mishra
75fb94ea21 docs: fix subreddit link (#1339) 2025-02-03 15:58:15 +03:00
Kinfe123
c3751211e7 lint 2025-02-03 15:44:33 +03:00
Kinfe123
1d40c08240 bordered on mob 2025-02-03 15:43:00 +03:00
Anurag Mishra
2069cfea7a docs: fix subreddit link (#1338) 2025-02-03 15:04:36 +03:00
Bereket Engida
5031b446dd docs: fix discord invite link 2025-02-03 11:19:39 +03:00
Bereket Engida
2879baaebc docs: fix community paragraph 2025-02-02 18:37:41 +03:00
KinfeMichael Tariku
3e059a2454 docs: improve community page (#1007)
* fix: ui

* chore: lint

* fix: ui

* fix: input variant

* feat: community page

* fix: typo

* chore: lint

---------

Co-authored-by: Bereket Engida <bekacru@gmail.com>
2025-02-02 17:45:57 +03:00
Bereket Engida
c25e130a6d chore: lint 2025-02-01 12:45:39 +03:00
Maxwell
16cd967aae docs: fix page navigation buttons don't work if the next/prev category's index [0] is a group (#1326) 2025-02-01 12:20:10 +03:00
Rahu! 🇮🇳
099a59c7a7 docs: update text color for light mode in community page (#1278) 2025-01-25 08:24:26 +03:00
Bereket Engida
503b7dbe75 chore: lint 2025-01-18 18:01:03 +03:00
Maxwell
a806c378be docs: fix navigation buttons not showing due to groups (#1243) 2025-01-18 17:52:58 +03:00
Maxwell
273aceaa15 docs: add buttons to navigate to the next/prev docs page (#1233) 2025-01-18 16:21:58 +03:00
Bereket Engida
9f2e45b8c7 chore: cleanup 2025-01-06 14:30:39 +03:00
Bereket Engida
cc94e6a7c0 docs: fix changelogs 2024-12-30 21:58:54 +03:00
Bereket Engida
4573147100 chore:lint 2024-12-21 13:40:16 +03:00
Bereket Engida
7e2f3bd0e1 docs: improve expo docs 2024-12-18 13:31:15 +03:00
TinsFox
c6fbbb697c docs: add spacing at the bottom of the document (#930) 2024-12-18 13:02:09 +03:00
Multinite
bf522217d7 docs: add FAQ page to docs (#875) 2024-12-14 21:30:42 +03:00
KinfeMichael Tariku
36e2ee2e6d docs: fix ui builder theme issue (#847) 2024-12-10 20:01:50 +03:00
Bereket Engida
7b54c5215c chore:lint 2024-12-09 18:45:44 +03:00
Multinite
04eb69b2a9 docs: mobile nav now supports examples (#833) 2024-12-09 18:41:41 +03:00
Bereket Engida
a1c1d7707e fix(internal): add new session in route context on 302 requests 2024-12-08 16:46:02 +03:00
Bereket Engida
926b845aec fix: avoid returning session and user object on endpoints other than get session (#819) 2024-12-08 14:03:49 +03:00
Bereket Engida
cdfbf1d793 docs(fix): fix broken link 2024-12-08 13:02:17 +03:00
Bereket Engida
7e755498c1 docs: add community section 2024-12-08 13:01:27 +03:00
Bereket Engida
2ab953ec0d docs: add auto type table 2024-12-08 12:09:02 +03:00
Bereket Engida
a8b6ff09ff docs: remove auto type table 2024-12-08 11:20:00 +03:00
Multinite
8daccfd10b docs(add): your first plugin guide (#806) 2024-12-08 11:00:56 +03:00
Bereket Engida
fdfd738eca docs: fix system theme 2024-12-05 19:32:18 +03:00
Bereket Engida
9b71e506a2 docs(fix): light mode code block color theme glitch (#745) 2024-12-03 15:42:13 +03:00
Bereket Engida
0c243af55c docs: improve changelog page 2024-12-03 00:46:14 +03:00