mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
added pwa cacher
This commit is contained in:
parent
8ba5d4d238
commit
3a74299ece
8 changed files with 448 additions and 18 deletions
|
@ -1,6 +1,7 @@
|
|||
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';
|
||||
|
@ -14,6 +15,7 @@ export const CLIENT = {
|
|||
OSRM_TEST_URL,
|
||||
OSRM_PROFILE,
|
||||
STROKE_WIDTH: 5,
|
||||
PUBLIC_PATH,
|
||||
};
|
||||
|
||||
export const COLORS = {
|
||||
|
|
22
config/pwa.example.js
Normal file
22
config/pwa.example.js
Normal file
|
@ -0,0 +1,22 @@
|
|||
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