Add notes to refer to docs when modifying the JS files
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
/**
|
||||||
|
* Before you edit these, read the documentation on how these files are compiled:
|
||||||
|
* https://docs.phpvms.net/customize/building-assets
|
||||||
|
*
|
||||||
|
* Edits here don't take place until you compile these assets and then upload them.
|
||||||
|
*/
|
||||||
|
|
||||||
import request from '../request';
|
import request from '../request';
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,14 @@
|
|||||||
|
/**
|
||||||
|
* Before you edit these, read the documentation on how these files are compiled:
|
||||||
|
* https://docs.phpvms.net/customize/building-assets
|
||||||
|
*
|
||||||
|
* Edits here don't take place until you compile these assets and then upload them.
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Admin stuff needed
|
* Admin stuff needed
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import airport_lookup from './airport_lookup';
|
import airport_lookup from './airport_lookup';
|
||||||
import calculate_distance from './calculate_distance';
|
import calculate_distance from './calculate_distance';
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
/**
|
||||||
|
* Before you edit these, read the documentation on how these files are compiled:
|
||||||
|
* https://docs.phpvms.net/customize/building-assets
|
||||||
|
*
|
||||||
|
* Edits here don't take place until you compile these assets and then upload them.
|
||||||
|
*/
|
||||||
|
|
||||||
import request from '../request';
|
import request from '../request';
|
||||||
|
|
||||||
@@ -14,6 +20,5 @@ export default async (fromICAO, toICAO) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const response = await request(params);
|
const response = await request(params);
|
||||||
console.log('distance raw response: ', response);
|
|
||||||
return response.data;
|
return response.data;
|
||||||
};
|
};
|
||||||
|
|||||||
7
resources/js/bootstrap.js
vendored
7
resources/js/bootstrap.js
vendored
@@ -1,3 +1,10 @@
|
|||||||
|
/**
|
||||||
|
* Before you edit these, read the documentation on how these files are compiled:
|
||||||
|
* https://docs.phpvms.net/customize/building-assets
|
||||||
|
*
|
||||||
|
* Edits here don't take place until you compile these assets and then upload them.
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bootstrap any Javascript libraries required
|
* Bootstrap any Javascript libraries required
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
/**
|
||||||
|
* Before you edit these, read the documentation on how these files are compiled:
|
||||||
|
* https://docs.phpvms.net/customize/building-assets
|
||||||
|
*
|
||||||
|
* Edits here don't take place until you compile these assets and then upload them.
|
||||||
|
*/
|
||||||
|
|
||||||
const rivets = require('rivets');
|
const rivets = require('rivets');
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
/**
|
||||||
|
* Before you edit these, read the documentation on how these files are compiled:
|
||||||
|
* https://docs.phpvms.net/customize/building-assets
|
||||||
|
*
|
||||||
|
* Edits here don't take place until you compile these assets and then upload them.
|
||||||
|
*/
|
||||||
|
|
||||||
const base_url = document.head.querySelector('meta[name="base-url"]');
|
const base_url = document.head.querySelector('meta[name="base-url"]');
|
||||||
const token = document.head.querySelector('meta[name="csrf-token"]');
|
const token = document.head.querySelector('meta[name="csrf-token"]');
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
/**
|
||||||
|
* Before you edit these, read the documentation on how these files are compiled:
|
||||||
|
* https://docs.phpvms.net/customize/building-assets
|
||||||
|
*
|
||||||
|
* Edits here don't take place until you compile these assets and then upload them.
|
||||||
|
*/
|
||||||
|
|
||||||
// Import the bids functionality
|
// Import the bids functionality
|
||||||
import { addBid, removeBid } from './bids';
|
import { addBid, removeBid } from './bids';
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
/**
|
||||||
|
* Before you edit these, read the documentation on how these files are compiled:
|
||||||
|
* https://docs.phpvms.net/customize/building-assets
|
||||||
|
*
|
||||||
|
* Edits here don't take place until you compile these assets and then upload them.
|
||||||
|
*/
|
||||||
|
|
||||||
import request from '../request';
|
import request from '../request';
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/**
|
||||||
|
* Before you edit these, read the documentation on how these files are compiled:
|
||||||
|
* https://docs.phpvms.net/customize/building-assets
|
||||||
|
*
|
||||||
|
* Edits here don't take place until you compile these assets and then upload them.
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Admin stuff needed
|
* Admin stuff needed
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
/**
|
||||||
|
* Before you edit these, read the documentation on how these files are compiled:
|
||||||
|
* https://docs.phpvms.net/customize/building-assets
|
||||||
|
*
|
||||||
|
* Edits here don't take place until you compile these assets and then upload them.
|
||||||
|
*/
|
||||||
|
|
||||||
import draw_base_map from './base_map';
|
import draw_base_map from './base_map';
|
||||||
import { addWMSLayer } from './helpers';
|
import { addWMSLayer } from './helpers';
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
/**
|
||||||
|
* Before you edit these, read the documentation on how these files are compiled:
|
||||||
|
* https://docs.phpvms.net/customize/building-assets
|
||||||
|
*
|
||||||
|
* Edits here don't take place until you compile these assets and then upload them.
|
||||||
|
*/
|
||||||
|
|
||||||
const leaflet = require('leaflet');
|
const leaflet = require('leaflet');
|
||||||
require('leaflet-providers');
|
require('leaflet-providers');
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/**
|
||||||
|
* Before you edit these, read the documentation on how these files are compiled:
|
||||||
|
* https://docs.phpvms.net/customize/building-assets
|
||||||
|
*
|
||||||
|
* Edits here don't take place until you compile these assets and then upload them.
|
||||||
|
*/
|
||||||
|
|
||||||
export const PLAN_ROUTE_COLOR = '#8B008B';
|
export const PLAN_ROUTE_COLOR = '#8B008B';
|
||||||
export const ACTUAL_ROUTE_COLOR = '#067ec1';
|
export const ACTUAL_ROUTE_COLOR = '#067ec1';
|
||||||
export const CIRCLE_COLOR = '#056093';
|
export const CIRCLE_COLOR = '#056093';
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
/**
|
||||||
|
* Before you edit these, read the documentation on how these files are compiled:
|
||||||
|
* https://docs.phpvms.net/customize/building-assets
|
||||||
|
*
|
||||||
|
* Edits here don't take place until you compile these assets and then upload them.
|
||||||
|
*/
|
||||||
|
|
||||||
const leaflet = require('leaflet');
|
const leaflet = require('leaflet');
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
/**
|
/**
|
||||||
* All of the functionality required for maps
|
* Before you edit these, read the documentation on how these files are compiled:
|
||||||
|
* https://docs.phpvms.net/customize/building-assets
|
||||||
|
*
|
||||||
|
* Edits here don't take place until you compile these assets and then upload them.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import render_airspace_map from './airspace_map';
|
import render_airspace_map from './airspace_map';
|
||||||
import render_live_map from './live_map';
|
import render_live_map from './live_map';
|
||||||
import render_route_map from './route_map';
|
import render_route_map from './route_map';
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
/**
|
||||||
|
* Before you edit these, read the documentation on how these files are compiled:
|
||||||
|
* https://docs.phpvms.net/customize/building-assets
|
||||||
|
*
|
||||||
|
* Edits here don't take place until you compile these assets and then upload them.
|
||||||
|
*/
|
||||||
|
|
||||||
import draw_base_map from './base_map';
|
import draw_base_map from './base_map';
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
/**
|
||||||
|
* Before you edit these, read the documentation on how these files are compiled:
|
||||||
|
* https://docs.phpvms.net/customize/building-assets
|
||||||
|
*
|
||||||
|
* Edits here don't take place until you compile these assets and then upload them.
|
||||||
|
*/
|
||||||
|
|
||||||
import draw_base_map from './base_map';
|
import draw_base_map from './base_map';
|
||||||
import { addWMSLayer } from './helpers';
|
import { addWMSLayer } from './helpers';
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
/**
|
||||||
|
* Before you edit these, read the documentation on how these files are compiled:
|
||||||
|
* https://docs.phpvms.net/customize/building-assets
|
||||||
|
*
|
||||||
|
* Edits here don't take place until you compile these assets and then upload them.
|
||||||
|
*/
|
||||||
|
|
||||||
import config from './config';
|
import config from './config';
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
/**
|
||||||
|
* Before you edit these, read the documentation on how these files are compiled:
|
||||||
|
* https://docs.phpvms.net/customize/building-assets
|
||||||
|
*
|
||||||
|
* Edits here don't take place until you compile these assets and then upload them.
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Simple browser storage interface
|
* Simple browser storage interface
|
||||||
|
|||||||
Reference in New Issue
Block a user