Skip to content
Snippets Groups Projects
Commit 5a412de5 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

update to 5.7

parent 28609050
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,6 @@ IMAGE_TAG=dev ...@@ -7,6 +7,6 @@ IMAGE_TAG=dev
USER_ID=1000 # User ID used in the Docker containers USER_ID=1000 # User ID used in the Docker containers
GROUP_ID=1000 # Group ID used in the Docker containers GROUP_ID=1000 # Group ID used in the Docker containers
NODE_TAG=10 NODE_TAG=15
COMPOSER_VERSION=2.6.5 COMPOSER_VERSION=2.6.5
FPM_HOST="fpm:9000" FPM_HOST="fpm:9000"
\ No newline at end of file
...@@ -30,10 +30,10 @@ class Kernel extends HttpKernel ...@@ -30,10 +30,10 @@ class Kernel extends HttpKernel
'web' => [ 'web' => [
\App\Http\Middleware\EncryptCookies::class, \App\Http\Middleware\EncryptCookies::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
\Illuminate\Session\Middleware\StartSession::class, // \Illuminate\Session\Middleware\StartSession::class,
// \Illuminate\Session\Middleware\AuthenticateSession::class, // \Illuminate\Session\Middleware\AuthenticateSession::class,
\Illuminate\View\Middleware\ShareErrorsFromSession::class, // \Illuminate\View\Middleware\ShareErrorsFromSession::class,
\App\Http\Middleware\VerifyCsrfToken::class, // \App\Http\Middleware\VerifyCsrfToken::class,
\Illuminate\Routing\Middleware\SubstituteBindings::class, \Illuminate\Routing\Middleware\SubstituteBindings::class,
], ],
......
This diff is collapsed.
...@@ -22,5 +22,8 @@ ...@@ -22,5 +22,8 @@
"sass-loader": "^7.1.0", "sass-loader": "^7.1.0",
"vue": "^2.5.17", "vue": "^2.5.17",
"vue-template-compiler": "^2.7.15" "vue-template-compiler": "^2.7.15"
},
"dependencies": {
"osrm-text-instructions": "^0.13.3"
} }
} }
{ {
"/js/modules.js": "/js/modules.js?id=c214da964ab4e8d87901", "/js/modules.js": "/js/modules.js?id=d46f830c2a36b9d0ce70",
"/../resources/assets/css/offline-module.css": "/../resources/assets/css/offline-module.css?id=b625751a39e93d3132b3", "/../resources/css/offline-module.css": "/../resources/css/offline-module.css?id=2e59f1c53d8b5bc08353",
"/js/lib.js": "/js/lib.js?id=68b329da9893e34099c7", "/js/lib.js": "/js/lib.js?id=5e13e04914a8734ddea7",
"/js/map-normal.js": "/js/map-normal.js?id=d41d8cd98f00b204e980", "/js/map-normal.js": "/js/map-normal.js?id=66c668920230437ad8cf",
"/js/map.js": "/js/map.js?id=68b329da9893e34099c7", "/js/map.js": "/js/map.js?id=43049f3d0d0441f15246",
"/js/turf.min.js": "/js/turf.min.js?id=d41d8cd98f00b204e980", "/js/turf.min.js": "/js/turf.min.js?id=859561c2951cc6bd635a",
"/css/staticPages.css": "/css/staticPages.css?id=d41d8cd98f00b204e980", "/css/staticPages.css": "/css/staticPages.css?id=74737c858d58797108ca",
"/css/general.css": "/css/general.css?id=b625751a39e93d3132b3", "/css/general.css": "/css/general.css?id=787dbb34eea9bbfaa241",
"/css/mapSearch.css": "/css/mapSearch.css?id=d41d8cd98f00b204e980", "/css/mapSearch.css": "/css/mapSearch.css?id=ae0023b9d1214e22f2f2",
"/css/iframeSearch.css": "/css/iframeSearch.css?id=d41d8cd98f00b204e980", "/css/iframeSearch.css": "/css/iframeSearch.css?id=2ae301fe29e809c1cf6b",
"/css/routing.css": "/css/routing.css?id=d41d8cd98f00b204e980" "/css/routing.css": "/css/routing.css?id=014b091b4366ad8570c8"
} }
/** var map = null;
* First we will load all of this project's JavaScript dependencies which var mapTmp = null;
* includes Vue and other libraries. It is a great starting point when $(document).ready(function () {
* building robust, powerful web applications using Vue and Laravel. $(".inactive").hide();
*/
// Check if the user called a URL with a location specified
require("./bootstrap"); var regexp = /\/map\/([^\/]+\/){0,1}([-|\d|\.|e]+),([-|\d|\.|e]+),([-|\d|\.|e]+)$/;
var url = document.location.href;
window.Vue = require("vue"); var result = url.match(regexp);
var query = undefined;
/** var waypoints = undefined;
* The following block of code may be used to automatically register your var vehicle = undefined;
* Vue components. It will recursively scan this directory for the Vue if (result != null) {
* components and automatically register them with their "basename". // Check if the current url points to a search, or a position to show on the map
* query = result[1];
* Eg. ./components/ExampleComponent.vue -> <example-component></example-component> if (typeof query != "undefined" && query.length > 0) {
*/ query = decodeURIComponent(query.replace(/\+/g, ' '));
}
// const files = require.context('./', true, /\.vue$/i)
// files.keys().map(key => Vue.component(key.split('/').pop().split('.')[0], files(key).default)) var initPos = [parseFloat(result[2]), parseFloat(result[3])];
var initZoom = parseFloat(result[4]);
Vue.component(
"example-component", map = new InteractiveMap(initPos[0], initPos[1], initZoom, false);
require("./components/ExampleComponent.vue").default } else {
); // Check if the current url points to a route calculation
regexp = /\/route\/start\/(car|bicycle|foot)\/([^\/]+)$/;
/** result = url.match(regexp);
* Next, we will create a fresh Vue application instance and attach it to if (result != null) {
* the page. Then, you may begin adding components to this application vehicle = result[1];
* or customize the JavaScript scaffolding to fit your unique needs. waypoints = [];
*/ var points = result[2];
// Validate the Waypoints
const app = new Vue({ regexp = /(gps|[-]{0,1}\d+\.\d+,[-]{0,1}\d+\.\d+)/gi;
el: "#app", result = points.match(regexp);
if (result) {
result.forEach(value => {
var waypoint;
if (value == "gps") {
waypoints.push(["gps"]);
} else {
var newWaypoint = value.split(",");
newWaypoint = [
parseFloat(newWaypoint[0]),
parseFloat(newWaypoint[1])
];
// Check if the new Waypoint is within valid bounds
waypoints.push(newWaypoint);
}
});
if (waypoints.length == 0) {
// Fallback if no valid waypoints given
vehicle = undefined;
waypoints = undefined;
map = new InteractiveMap();
} else {
// Valid Route given as argument
var minPoint = undefined;
var maxPoint = undefined;
$.each(waypoints, (index, value) => {
if (value[0] != "gps") {
if (minPoint == undefined) {
minPoint = [value[0], value[1]];
}
if (maxPoint == undefined) {
maxPoint = [value[0], value[1]];
}
minPoint[0] = minPoint[0] > value[0] ? value[0] : minPoint[0];
minPoint[1] = minPoint[1] > value[1] ? value[1] : minPoint[1];
maxPoint[0] = maxPoint[0] < value[0] ? value[0] : maxPoint[0];
maxPoint[1] = maxPoint[1] < value[1] ? value[1] : maxPoint[1];
}
});
if (minPoint == undefined || maxPoint == undefined) {
map = new InteractiveMap(undefined, undefined, 6, true);
} else {
var medianPoint = [
minPoint[0] + (maxPoint[0] - minPoint[0]) / 2.0,
minPoint[1] + (maxPoint[1] - minPoint[1]) / 2.0
];
map = new InteractiveMap(medianPoint[0], medianPoint[1], 6, false);
}
}
}
} else {
map = new InteractiveMap();
}
}
var height =
typeof window.outerHeight != "undefined"
? Math.max(window.outerHeight, $(window).height())
: $(window).height();
$("div.map").css("max-height", height);
$("body").css("max-height", height);
$("body").css("overflow", "hidden");
// Start the correct module now:
if (query != undefined) {
query = query.replace(/\/+$/, "");
map.switchModule("search", query);
query = undefined;
} else if (waypoints != undefined && vehicle != undefined) {
map.switchModule("route-finding", {
waypoints: waypoints,
vehicle: vehicle
});
} else map.switchModule("search");
if (
typeof android != "undefined" &&
typeof android.pageFinished == "function"
)
android.pageFinished();
}); });
This diff is collapsed.
ARG NODE_TAG=10 ARG NODE_TAG
FROM node:${NODE_TAG} FROM node:${NODE_TAG}
ARG USER_ID=1000 ARG USER_ID=1000
......
...@@ -40,6 +40,7 @@ services: ...@@ -40,6 +40,7 @@ services:
args: args:
USER: ${USER_ID} USER: ${USER_ID}
GROUP: ${GROUP_ID} GROUP: ${GROUP_ID}
NODE_TAG: ${NODE_TAG}
volumes: volumes:
- ./app:/app - ./app:/app
- npm-cache:/home/mgmaps/.npm - npm-cache:/home/mgmaps/.npm
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment