929ee6557a
- Add base app structure, including Bootstrap setup and Alpine.js integration. - Implement authentication flow with session handling. - Integrate stock management and label creation functionalities. - Include responsive styling and theme using CSS variables and custom components. - Add API clients for Tryton-based backend. - Set up kitchen and dashboard navigation workflows. - Configure service worker for PWA support.
40 lines
862 B
JavaScript
40 lines
862 B
JavaScript
export const APP_NAME = 'Lonc';
|
|
export const TRYTON_APPLICATION = 'kitchen';
|
|
|
|
export const CONNECTION_STATES = {
|
|
notConnected: 'not_connected',
|
|
pendingValidation: 'pending_validation',
|
|
connected: 'connected',
|
|
invalidKey: 'invalid_key',
|
|
};
|
|
|
|
export const STORAGE_KEYS = {
|
|
appConfig: 'lonc.app.config',
|
|
session: 'lonc.auth.session',
|
|
activeKitchen: 'lonc.kitchen.active',
|
|
labelDraft: 'lonc.labels.draft',
|
|
};
|
|
|
|
export const DEFAULT_CONFIG = {
|
|
baseUrl: '',
|
|
database: '',
|
|
};
|
|
|
|
export const API_PATHS = {
|
|
userApplication: 'user/application/',
|
|
kitchens: 'kitchen/kitchens',
|
|
items: 'kitchen/items',
|
|
stockEntries: 'stock',
|
|
locations: 'kitchen/locations',
|
|
};
|
|
|
|
export const ROUTES = {
|
|
login: '/login',
|
|
home: '/',
|
|
stock: '/stock',
|
|
stockNew: '/stock/new',
|
|
stockDetail: '/stock/:id',
|
|
labelsNew: '/labels/new',
|
|
settings: '/settings',
|
|
};
|