mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
added .env files
This commit is contained in:
parent
ef08fadeb1
commit
82bd1345a1
7 changed files with 22 additions and 73 deletions
|
@ -1,27 +0,0 @@
|
|||
import { DEFAULT_PROVIDER, PROVIDERS } from '~/constants/providers';
|
||||
import { LatLngLiteral } from 'leaflet';
|
||||
|
||||
const PUBLIC_PATH = '';
|
||||
const API_ADDR = 'https://HOSTNAME.org:3000';
|
||||
const OSRM_URL = 'https://HOSTNAME.org:5001/route/v1';
|
||||
const OSRM_PROFILE = 'bike';
|
||||
const OSRM_TEST_URL = ([south_west, north_east]: [LatLngLiteral, LatLngLiteral]) => (
|
||||
`${OSRM_URL}/${OSRM_PROFILE}/${Object.values(south_west).join(',')};${Object.values(north_east).join(',')}`
|
||||
);
|
||||
|
||||
export const CLIENT = {
|
||||
OSRM_URL,
|
||||
API_ADDR,
|
||||
OSRM_TEST_URL,
|
||||
OSRM_PROFILE,
|
||||
STROKE_WIDTH: 5,
|
||||
PUBLIC_PATH,
|
||||
};
|
||||
|
||||
export const COLORS = {
|
||||
PATH_COLOR: ['#ff7700', '#ff3344'],
|
||||
};
|
||||
|
||||
export const PROVIDER = PROVIDERS[DEFAULT_PROVIDER];
|
||||
|
||||
export const MOBILE_BREAKPOINT = 768;
|
|
@ -1,22 +0,0 @@
|
|||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
MANIFEST: (src) => ({
|
||||
name: 'Редактор маршрутов',
|
||||
short_name: 'Маршруты',
|
||||
description: 'Велосипедные маршруты в новосибирске',
|
||||
background_color: '#333333',
|
||||
theme_color: '#01579b',
|
||||
display: 'fullscreen',
|
||||
'theme-color': '#01579b',
|
||||
start_url: '/',
|
||||
icons: [
|
||||
{
|
||||
src, // : path.resolve('./src/sprites/app.png')
|
||||
sizes: [96, 128, 192, 256, 384, 512],
|
||||
destination: path.join('assets', 'icons')
|
||||
}
|
||||
]
|
||||
}),
|
||||
PUBLIC_PATH: 'https://alpha-map.vault48.org/',
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue