From ec9ef9c1c2310da8d88d43c5e048aae2126ae0be Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Fri, 4 Sep 2020 11:50:05 -0400 Subject: [PATCH] Add notes to refer to docs when modifying the JS files --- resources/js/admin/airport_lookup.js | 6 ++++++ resources/js/admin/app.js | 8 +++++++- resources/js/admin/calculate_distance.js | 7 ++++++- resources/js/bootstrap.js | 7 +++++++ resources/js/common.js | 6 ++++++ resources/js/config.js | 6 ++++++ resources/js/frontend/app.js | 6 ++++++ resources/js/frontend/bids.js | 6 ++++++ resources/js/installer/app.js | 7 +++++++ resources/js/maps/airspace_map.js | 6 ++++++ resources/js/maps/base_map.js | 6 ++++++ resources/js/maps/config.js | 7 +++++++ resources/js/maps/helpers.js | 6 ++++++ resources/js/maps/index.js | 6 +++++- resources/js/maps/live_map.js | 6 ++++++ resources/js/maps/route_map.js | 6 ++++++ resources/js/request.js | 6 ++++++ resources/js/storage.js | 6 ++++++ 18 files changed, 111 insertions(+), 3 deletions(-) diff --git a/resources/js/admin/airport_lookup.js b/resources/js/admin/airport_lookup.js index 2deca124..4d51100b 100644 --- a/resources/js/admin/airport_lookup.js +++ b/resources/js/admin/airport_lookup.js @@ -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'; diff --git a/resources/js/admin/app.js b/resources/js/admin/app.js index 9c032114..0af8db81 100644 --- a/resources/js/admin/app.js +++ b/resources/js/admin/app.js @@ -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 */ - import airport_lookup from './airport_lookup'; import calculate_distance from './calculate_distance'; diff --git a/resources/js/admin/calculate_distance.js b/resources/js/admin/calculate_distance.js index ff3c0c65..5325a397 100644 --- a/resources/js/admin/calculate_distance.js +++ b/resources/js/admin/calculate_distance.js @@ -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'; @@ -14,6 +20,5 @@ export default async (fromICAO, toICAO) => { }; const response = await request(params); - console.log('distance raw response: ', response); return response.data; }; diff --git a/resources/js/bootstrap.js b/resources/js/bootstrap.js index 3b29becc..70aacb2a 100644 --- a/resources/js/bootstrap.js +++ b/resources/js/bootstrap.js @@ -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 */ diff --git a/resources/js/common.js b/resources/js/common.js index a795135f..6d1698c3 100644 --- a/resources/js/common.js +++ b/resources/js/common.js @@ -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'); diff --git a/resources/js/config.js b/resources/js/config.js index 74e6f3fb..f6cb66a6 100644 --- a/resources/js/config.js +++ b/resources/js/config.js @@ -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 token = document.head.querySelector('meta[name="csrf-token"]'); diff --git a/resources/js/frontend/app.js b/resources/js/frontend/app.js index f46b30d7..4490bc0c 100644 --- a/resources/js/frontend/app.js +++ b/resources/js/frontend/app.js @@ -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 { addBid, removeBid } from './bids'; diff --git a/resources/js/frontend/bids.js b/resources/js/frontend/bids.js index 13d85b57..88e510e8 100644 --- a/resources/js/frontend/bids.js +++ b/resources/js/frontend/bids.js @@ -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'; diff --git a/resources/js/installer/app.js b/resources/js/installer/app.js index e81c9345..24c4992e 100644 --- a/resources/js/installer/app.js +++ b/resources/js/installer/app.js @@ -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 */ diff --git a/resources/js/maps/airspace_map.js b/resources/js/maps/airspace_map.js index cbff1773..7b7e0b32 100644 --- a/resources/js/maps/airspace_map.js +++ b/resources/js/maps/airspace_map.js @@ -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 { addWMSLayer } from './helpers'; diff --git a/resources/js/maps/base_map.js b/resources/js/maps/base_map.js index 9348d09a..2da57aa4 100644 --- a/resources/js/maps/base_map.js +++ b/resources/js/maps/base_map.js @@ -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'); require('leaflet-providers'); diff --git a/resources/js/maps/config.js b/resources/js/maps/config.js index fc4c7cad..744d984a 100644 --- a/resources/js/maps/config.js +++ b/resources/js/maps/config.js @@ -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 ACTUAL_ROUTE_COLOR = '#067ec1'; export const CIRCLE_COLOR = '#056093'; diff --git a/resources/js/maps/helpers.js b/resources/js/maps/helpers.js index b48a2bf5..8ed30df3 100644 --- a/resources/js/maps/helpers.js +++ b/resources/js/maps/helpers.js @@ -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'); diff --git a/resources/js/maps/index.js b/resources/js/maps/index.js index 61f833ff..60e6dff8 100644 --- a/resources/js/maps/index.js +++ b/resources/js/maps/index.js @@ -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_live_map from './live_map'; import render_route_map from './route_map'; diff --git a/resources/js/maps/live_map.js b/resources/js/maps/live_map.js index f39fe1e5..3a877c66 100644 --- a/resources/js/maps/live_map.js +++ b/resources/js/maps/live_map.js @@ -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'; diff --git a/resources/js/maps/route_map.js b/resources/js/maps/route_map.js index 76465beb..f7fa1c1e 100644 --- a/resources/js/maps/route_map.js +++ b/resources/js/maps/route_map.js @@ -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 { addWMSLayer } from './helpers'; diff --git a/resources/js/request.js b/resources/js/request.js index 03852d75..f8a2ffaf 100644 --- a/resources/js/request.js +++ b/resources/js/request.js @@ -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'; diff --git a/resources/js/storage.js b/resources/js/storage.js index 942e343f..cf366386 100644 --- a/resources/js/storage.js +++ b/resources/js/storage.js @@ -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