mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
107 lines
3.2 KiB
TypeScript
107 lines
3.2 KiB
TypeScript
/*
|
|
## FEATURES
|
|
todo screenshots with dot losing .png extension
|
|
todo refactor reducer to use is_ prefix for editing and etc (mb move them to status object)
|
|
todo tower sticker
|
|
done route description
|
|
done setup deploy
|
|
|
|
skip polyline editing only in manual mode (or by click)
|
|
todo selecting logo on crop
|
|
|
|
todo network operations notify
|
|
done delayed notify (delay(2000).then(showLoadingMsg))
|
|
todo network error notifications
|
|
todo check canvas support at startup
|
|
done check osrm is up
|
|
|
|
## DONE
|
|
|
|
done arrows on screenshot
|
|
done public maps
|
|
done editing map on map list
|
|
done setting map public on map list
|
|
|
|
done routing spinner
|
|
done maybe: stickers clusterization?
|
|
done moving out the screen makes stickers editable again
|
|
|
|
done check if osrm available
|
|
done selecting map on dialog in edit mode opens it at view mode
|
|
done make arrows and distance points
|
|
|
|
done fix arrows (can't reproduce now :-( )
|
|
done adding route, applying it and adding again and deleting it makes ghost points on the map
|
|
|
|
done adding/removing points doesn't change distance
|
|
done cancelling editing someone's else map return back to it's original address /razminochnyj/
|
|
done change title on route opening
|
|
done delete sticker icon
|
|
|
|
done tooltips for panel items
|
|
done map catalogue
|
|
done public maps
|
|
done map search
|
|
done map list lazy loading
|
|
|
|
done save spinner
|
|
done better poly editor https://github.com/SupriyaSudhindra/leaflet-editable-polyline
|
|
done update after point delete
|
|
done hidden markers tooltip
|
|
|
|
done clear routing on editing cancellation
|
|
done riding speed slider
|
|
done dont close map list on click
|
|
done fix loaded stickers has wrong text placement for right-sided captions
|
|
done fix save button should not react to clicks
|
|
done stickers with empty text should not have blackbox at view mode
|
|
done add ability to copy-paste address after saving
|
|
|
|
done hide sticker dialog on sticker selection
|
|
done separate mode for sticker selection
|
|
done TEST: set initialData after saving map, clear is-modified
|
|
done TEST: provider / logo triggers setChanged
|
|
done shot mechanism (100%)
|
|
done client-side shot mechanism
|
|
done croppr.js
|
|
done shot stickers
|
|
done progress
|
|
done hotkeys via sagas
|
|
done better loader screen
|
|
done network errors handling on startup
|
|
|
|
done stickers drag on rotate bug
|
|
*/
|
|
|
|
import * as React from 'react';
|
|
import * as ReactDOM from 'react-dom';
|
|
|
|
import { App } from '$containers/App';
|
|
import '$styles/main.less';
|
|
|
|
import { Provider } from 'react-redux';
|
|
import { PersistGate } from 'redux-persist/integration/react';
|
|
import { configureStore } from '$redux/store';
|
|
import { pushLoaderState } from '$utils/history';
|
|
|
|
const { store, persistor } = configureStore();
|
|
|
|
pushLoaderState(10);
|
|
|
|
export const Index = () => (
|
|
<Provider store={store}>
|
|
<PersistGate loading={null} persistor={persistor}>
|
|
<App />
|
|
</PersistGate>
|
|
</Provider>
|
|
);
|
|
|
|
ReactDOM.render(<Index />, document.getElementById('index'));
|
|
|
|
(function () {
|
|
if ('serviceWorker' in navigator) {
|
|
navigator.serviceWorker.register('./service-worker.js', { scope: '/' })
|
|
.then(() => console.log('Service Worker registered successfully.'))
|
|
.catch(error => console.log('Service Worker registration failed:', error));
|
|
}
|
|
}());
|