mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-26 04:06:12 +01:00
🚀 feat: Banner (#3952)
* feat: Add banner schema and model * feat: Add optional JwtAuth To handle the conditional logic with and without authentication within the model. * feat: Add an endpoint to retrieve a banner * feat: Add implementation for client to use banner and access API * feat: Display a banner on UI * feat: Script for updating and deleting banners * style: Update banner style * fix: Adjust the height when the banner is displayed * fix: failed specs
This commit is contained in:
parent
07e5531b5b
commit
aea01f0bc5
26 changed files with 453 additions and 4 deletions
5
client/src/store/banner.ts
Normal file
5
client/src/store/banner.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import { atomWithLocalStorage } from './utils';
|
||||
|
||||
const hideBannerHint = atomWithLocalStorage('hideBannerHint', [] as string[]);
|
||||
|
||||
export default { hideBannerHint };
|
||||
|
|
@ -12,7 +12,7 @@ import preset from './preset';
|
|||
import prompts from './prompts';
|
||||
import lang from './language';
|
||||
import settings from './settings';
|
||||
|
||||
import banner from './banner';
|
||||
export default {
|
||||
...artifacts,
|
||||
...families,
|
||||
|
|
@ -28,4 +28,5 @@ export default {
|
|||
...preset,
|
||||
...lang,
|
||||
...settings,
|
||||
...banner,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue