mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-15 15:08:54 +09:00
72 lines
1.2 KiB
TypeScript
72 lines
1.2 KiB
TypeScript
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
import * as path from 'node:path';
|
|
|
|
export const ROOT_DIR = path.resolve(import.meta.dirname, '..', '..');
|
|
export const SRC_DIR = path.join(ROOT_DIR, 'src');
|
|
export const DIST_DIR = path.join(ROOT_DIR, 'dist');
|
|
export const ASSETS_DIR = path.join(DIST_DIR, 'assets');
|
|
export const PKGS_DIR = path.join(ROOT_DIR, 'pkgs');
|
|
export const PUBLIC_DIR = path.join(ROOT_DIR, 'assets');
|
|
|
|
export const CDN_ENDPOINT = 'https://fluxerstatic.com';
|
|
|
|
export const DEV_PORT = 3000;
|
|
|
|
export const RESOLVE_EXTENSIONS = ['.tsx', '.ts', '.jsx', '.js', '.json', '.mjs', '.cjs'];
|
|
|
|
export const LOCALES = [
|
|
'ar',
|
|
'bg',
|
|
'cs',
|
|
'da',
|
|
'de',
|
|
'el',
|
|
'en-GB',
|
|
'en-US',
|
|
'es-419',
|
|
'es-ES',
|
|
'fi',
|
|
'fr',
|
|
'he',
|
|
'hi',
|
|
'hr',
|
|
'hu',
|
|
'id',
|
|
'it',
|
|
'ja',
|
|
'ko',
|
|
'lt',
|
|
'nl',
|
|
'no',
|
|
'pl',
|
|
'pt-BR',
|
|
'ro',
|
|
'ru',
|
|
'sv-SE',
|
|
'th',
|
|
'tr',
|
|
'uk',
|
|
'vi',
|
|
'zh-CN',
|
|
'zh-TW',
|
|
];
|
|
|
|
export const FILE_LOADERS: Record<string, 'file'> = {
|
|
'.woff': 'file',
|
|
'.woff2': 'file',
|
|
'.ttf': 'file',
|
|
'.eot': 'file',
|
|
'.png': 'file',
|
|
'.jpg': 'file',
|
|
'.jpeg': 'file',
|
|
'.gif': 'file',
|
|
'.webp': 'file',
|
|
'.ico': 'file',
|
|
'.mp3': 'file',
|
|
'.wav': 'file',
|
|
'.ogg': 'file',
|
|
'.mp4': 'file',
|
|
'.webm': 'file',
|
|
};
|