BLUE
PHP 7.4.33
Path:
/var/www/nea-dev-frontend.wpress.dk/httpdocs/src/constants
Run
Logout
Edit File
Size: 2.68 KB
Close
/var/www/nea-dev-frontend.wpress.dk/httpdocs/src/constants/general.ts
Text
Base64
import { BorderRadiusOption } from '@/components/cards/related-contents/types/relatedContents.types'; export const SITE_URL = process.env.NODE_ENV === 'development' ? 'http://localhost:3000/' : process.env.NEXT_PUBLIC_NEXT_JS_URL ? process.env.NEXT_PUBLIC_NEXT_JS_URL : ''; /** Build full URL from SITE_URL + path (path without leading slash). */ export function getSiteUrl(path = '') { const base = SITE_URL?.replace(/\/$/, '') ?? ''; return path ? `${base}/${path.replace(/^\//, '')}` : base; } export const WP_SITE_URL = process.env.NEXT_PUBLIC_WORDPRESS_URL ? process.env.NEXT_PUBLIC_WORDPRESS_URL : ''; export const WORDPRESS_GRAPHQL_API_URL = process.env.WORDPRESS_API_URL ? process.env.WORDPRESS_API_URL : ''; export const acfBlockPrefix = 'acf/acf'; export const GOOGLE_MAPS_API_KEY = process.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY ? process.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY : ''; // export const DISTANCE_OPTIONS = [5, 10, 25, 50, 100]; export const colors = { navy: '#092A6D', sky: '#89D9F6', chestnut: '#814336', nutmeg: '#b9553C', tangerine: '#FF9672', burntsienna: '#E12A71', peachfuzz: '#FEE1D7', seashell: '#FCF1ED', air: '#CDEAF4', white: '#FFFFFF', neablack: { DEFAULT: '#2D2926', '70': '#6C6967', '80': '#4A4A4A', }, }; export const fontFamily = { degular: ['Degular', 'sans-serif'], inter: ['Inter', 'sans-serif'], 'meta-pro': ['Meta Pro', 'sans-serif'], }; export const taxonomyMap = [ { label: 'audience', value: 'AUDIENCE' }, { label: 'topic', value: 'TOPIC' }, { label: 'category', value: 'CATEGORY' }, { label: 'age', value: 'AGE' }, { label: 'news_author', value: 'NEWS_AUTHOR' }, { label: 'post_tag', value: 'TAG' }, { label: 'persona', value: 'PERSONA' }, { label: 'news_type', value: 'NEWS_TYPE' }, { label: 'badge', value: 'BADGE' }, { label: 'body_areas', value: 'BODY_AREA' }, { label: 'brand', value: 'BRAND' }, { label: 'ingredient', value: 'INGREDIENT' }, { label: 'product-type', value: 'PRODUCTTYPE' }, ]; export const relatedCardsBorderRadiusMapFor3Up: BorderRadiusOption[] = [ { borderRadiusStyle: 'topLeft', borderRadiusStyleMobile: 'topLeft' }, { borderRadiusStyle: 'bottomRight', borderRadiusStyleMobile: 'bottomRight' }, { borderRadiusStyle: 'topLeft', borderRadiusStyleMobile: 'topLeft' }, ]; export const relatedCardsBorderRadiusMapFor4Up: BorderRadiusOption[] = [ { borderRadiusStyle: 'topLeft', borderRadiusStyleMobile: 'topLeft' }, { borderRadiusStyle: 'bottomRight', borderRadiusStyleMobile: 'bottomLeft' }, { borderRadiusStyle: 'bottomRight', borderRadiusStyleMobile: 'topRight' }, { borderRadiusStyle: 'topLeft', borderRadiusStyleMobile: 'bottomRight' }, ];
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 1
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
general.ts
2.68 KB
lrw-r--r--
2026-02-27 17:39:42
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).