refactor: restructure storage and environment modules; remove unused code
- Deleted unused PouchDB configuration and types from core storage. - Removed Electron-related hooks and utilities that are no longer needed. - Introduced new local storage management for application keys. - Created a new environment wrapper for landing application. - Added public HTTP client for landing application with minimal configuration. - Implemented new PouchDB entities for items and POS configurations. - Updated main application entry point to reflect new storage structure.
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
/**
|
||||
* Type-safe Environment Wrapper for apps/landing.
|
||||
*/
|
||||
export const ENV = {
|
||||
CMS_API_URL: import.meta.env.VITE_CMS_API_URL || 'http://localhost:8001/cms',
|
||||
} as const;
|
||||
@@ -0,0 +1,17 @@
|
||||
import { createHttpClient } from '@repo/core-api/http-client';
|
||||
import { faroAdapter } from '@repo/core-api/observability';
|
||||
|
||||
/**
|
||||
* Lightweight public HTTP client for `apps/landing`.
|
||||
*
|
||||
* - Uses the shared Faro adapter (initialized via `initTelemetry()` in main.tsx)
|
||||
* - No auth token injection
|
||||
* - Minimal config for maximum performance
|
||||
*
|
||||
* Designed for public-facing content that requires no authentication.
|
||||
*/
|
||||
export const publicClient = createHttpClient({
|
||||
baseURL: import.meta.env.VITE_API_URL ?? 'https://api.eigen.co/public/v1',
|
||||
timeout: 10000,
|
||||
observability: faroAdapter,
|
||||
});
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"welcome": "Welcome to Our Product",
|
||||
"cta": "Get Started Now"
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"welcome": "Selamat Datang di Produk Kami",
|
||||
"cta": "Mulai Sekarang"
|
||||
}
|
||||
Reference in New Issue
Block a user