Aller au contenu principal

Applications Configuration

Description

The Applications Configuration defines multiple applications within the Liberty Framework. Each application has specific settings such as offset, limit, version, dashboard, and theme.

Data Structure

Field NameTypeDescription
APPS_IDnumberUnique application identifier.
APPS_NAMEstringThe name of the application.
APPS_DESCRIPTIONstringDescription of the application’s purpose.
APPS_POOLstringThe database connection pool used by the application.
APPS_OFFSETnumberThe default offset value for queries.
APPS_LIMITnumberThe maximum number of records per query.
APPS_VERSIONstringThe current version of the application.
APPS_DASHBOARDnumber | undefinedThe dashboard ID associated with the app.
APPS_THEMEstringThe theme applied to the application.
APPS_SESSIONstringThe session mode (e.g., session).
APPS_JWT_TOKENstringJWT token for authentication (if applicable).

Example Usage

import { useAppContext } from "@nomana-it/liberty-core"

export const ApplicationsExample = () => {
const { appsProperties } = useAppContext();

return (
<div>
<h2>Available Applications</h2>
<ul>
{Object.entries(appsProperties).map(([key, app]) => (
<li key={key}>
<strong>{app.name}</strong> - {app.description} (Version: {app.version})
</li>
))}
</ul>
</div>
);
};

🔗 GitHub Repository (Core): Liberty Core
🔗 GitHub Repository (Test Project): Liberty Test
📖 Live Documentation: Liberty Core Docs
💖 Sponsor & Support: Sponsor Liberty Core