mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-13 07:04:39 +00:00
feat: complete fuzzy search rebuild
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
export interface DynamicContentItem {
|
||||
id: string;
|
||||
text: string;
|
||||
category: string;
|
||||
icon: string;
|
||||
action: () => void;
|
||||
keywords?: string[];
|
||||
contentType: 'message' | 'course' | 'assessment' | 'other';
|
||||
content: string;
|
||||
dateAdded: number;
|
||||
metadata?: Record<string, any>;
|
||||
priority?: number;
|
||||
}
|
||||
|
||||
let dynamicItems: DynamicContentItem[] = [];
|
||||
|
||||
/**
|
||||
* Loads a new set of dynamic items.
|
||||
*/
|
||||
export const loadDynamicItems = (items: DynamicContentItem[]) => {
|
||||
dynamicItems = [...items];
|
||||
console.log(`Loaded ${items.length} dynamic items.`);
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns all currently loaded dynamic items.
|
||||
*/
|
||||
export const getAllDynamicItems = (): DynamicContentItem[] => {
|
||||
return [...dynamicItems];
|
||||
};
|
||||
Reference in New Issue
Block a user