# HG changeset patch # User Fadi Abbud # Date 1554461255 -7200 # Node ID a6eea3002e6e15c09f446dbb0c6ef2fd0eff28f1 # Parent 4141a06961bb6e51679daeeeefc2c7955bd67544 client: cleanup import paths diff -r 4141a06961bb -r a6eea3002e6e client/src/components/Pdftool.vue --- a/client/src/components/Pdftool.vue Fri Apr 05 11:27:21 2019 +0200 +++ b/client/src/components/Pdftool.vue Fri Apr 05 12:47:35 2019 +0200 @@ -98,7 +98,7 @@ import "@/lib/font-linbiolinum.js"; import { getPointResolution } from "ol/proj.js"; import locale2 from "locale2"; -import { HTTP } from "../lib/http"; +import { HTTP } from "@/lib/http"; import { displayError } from "@/lib/errors.js"; import { LAYERS } from "@/store/map.js"; diff -r 4141a06961bb -r a6eea3002e6e client/src/lib/errors.js --- a/client/src/lib/errors.js Fri Apr 05 11:27:21 2019 +0200 +++ b/client/src/lib/errors.js Fri Apr 05 12:47:35 2019 +0200 @@ -12,7 +12,7 @@ * Thomas Junk */ -import app from "../main"; +import app from "@/main"; let displayOptions = { timeout: 2500, diff -r 4141a06961bb -r a6eea3002e6e client/src/store/fairway.js --- a/client/src/store/fairway.js Fri Apr 05 11:27:21 2019 +0200 +++ b/client/src/store/fairway.js Fri Apr 05 12:47:35 2019 +0200 @@ -13,13 +13,13 @@ * Markus Kottländer */ import Vue from "vue"; -import { HTTP } from "../lib/http"; -import { prepareProfile } from "../lib/geo"; +import { HTTP } from "@/lib/http"; +import { prepareProfile } from "@/lib/geo"; import LineString from "ol/geom/LineString.js"; -import { generateFeatureRequest } from "../lib/geo.js"; +import { generateFeatureRequest } from "@/lib/geo.js"; import { getLength } from "ol/sphere.js"; -import { displayError } from "../lib/errors.js"; -import { featureToFairwayCoordinates } from "../lib/geo.js"; +import { displayError } from "@/lib/errors.js"; +import { featureToFairwayCoordinates } from "@/lib/geo.js"; import { LAYERS } from "@/store/map.js"; // initial state diff -r 4141a06961bb -r a6eea3002e6e client/src/store/map.js --- a/client/src/store/map.js Fri Apr 05 11:27:21 2019 +0200 +++ b/client/src/store/map.js Fri Apr 05 12:47:35 2019 +0200 @@ -24,14 +24,14 @@ import VectorSource from "ol/source/Vector.js"; import Point from "ol/geom/Point.js"; import { bbox as bboxStrategy } from "ol/loadingstrategy"; -import { HTTP } from "../lib/http"; +import { HTTP } from "@/lib/http"; import { fromLonLat } from "ol/proj"; import { getLength, getArea } from "ol/sphere.js"; import { unByKey } from "ol/Observable"; import { getCenter } from "ol/extent"; import { transformExtent } from "ol/proj.js"; import bbox from "@turf/bbox"; -import app from "../main"; +import app from "@/main"; const LAYERS = { OPENSTREETMAP: "Open Streetmap", @@ -373,7 +373,7 @@ new Style({ geometry: new Point(bnCenter), image: new Icon({ - src: require("../assets/marker-bottleneck-critical.png"), + src: require("@/assets/marker-bottleneck-critical.png"), anchor: [0.5, 0.5], scale: isLegend ? 0.5 : 1 }) @@ -452,7 +452,7 @@ return [ new Style({ image: new Icon({ - src: require("../assets/marker-gauge.png"), + src: require("@/assets/marker-gauge.png"), anchor: [0.5, isLegend ? 0.5 : 1], scale: isLegend ? 0.5 : 1 }), @@ -511,7 +511,7 @@ geometry: new Point(end), image: new Icon({ // we need to make sure the image is loaded by Vue Loader - src: require("../assets/linestring_arrow.png"), + src: require("@/assets/linestring_arrow.png"), // fiddling with the anchor's y value does not help to // position the image more centered on the line ending, as the // default line style seems to be slightly uncentered in the @@ -559,7 +559,7 @@ geometry: new Point(end), image: new Icon({ // we need to make sure the image is loaded by Vue Loader - src: require("../assets/linestring_arrow_grey.png"), + src: require("@/assets/linestring_arrow_grey.png"), // fiddling with the anchor's y value does not help to // position the image more centered on the line ending, as the // default line style seems to be slightly uncentered in the diff -r 4141a06961bb -r a6eea3002e6e client/src/store/user.js --- a/client/src/store/user.js Fri Apr 05 11:27:21 2019 +0200 +++ b/client/src/store/user.js Fri Apr 05 12:47:35 2019 +0200 @@ -13,8 +13,8 @@ * Markus Kottländer */ -import { HTTP } from "../lib/http"; -import { toMillisFromString } from "../lib/session"; +import { HTTP } from "@/lib/http"; +import { toMillisFromString } from "@/lib/session"; const init = () => { return { diff -r 4141a06961bb -r a6eea3002e6e client/src/store/usermanagement.js --- a/client/src/store/usermanagement.js Fri Apr 05 11:27:21 2019 +0200 +++ b/client/src/store/usermanagement.js Fri Apr 05 12:47:35 2019 +0200 @@ -13,7 +13,7 @@ * Markus Kottländer */ -import { HTTP } from "../lib/http"; +import { HTTP } from "@/lib/http"; // initial state const init = () => {