Commit 94e38c85 authored by dagal's avatar dagal
Browse files

ES5 imports

parent 840980b0
......@@ -45,3 +45,4 @@ data/*
/view/src/node_modules/
/view/bundle.js
!/data/stops.txt
/.idea/workspace.xml
......@@ -8,10 +8,10 @@
</template>
<script>
let Datepicker = require("vuejs-datepicker").default;
let VueTimepicker = require("vuejs-timepicker");
import Datepicker from "vuejs-datepicker";
import VueTimepicker from "vuejs-timepicker";
module.exports = {
export default {
name: "DateTimePicker",
components: {Datepicker, VueTimepicker},
props: {
......
......@@ -3,7 +3,7 @@
</template>
<script>
module.exports = {
export default {
name: "Hello",
data: function() {
return {
......
......@@ -12,10 +12,10 @@
</template>
<script>
let getty = require("../getty");
let PulseLoader = require("vue-spinner/dist/vue-spinner.min").PulseLoader;
import { PulseLoader } from "vue-spinner/dist/vue-spinner";
import getty from "../getty";
module.exports = {
export default {
name: "StopPopup",
components: {PulseLoader},
props: {
......
......@@ -5,9 +5,9 @@
</template>
<script>
let Autocomplete = require("vue-single-select").default;
import Autocomplete from "vue-single-select";
module.exports = {
export default {
name: "StopSearch",
components: {Autocomplete},
props: {
......
......@@ -8,9 +8,9 @@
</template>
<script>
let DateTimePicker = require("./DateTimePicker.vue").default;
import DateTimePicker from "./DateTimePicker.vue";
module.exports = {
export default {
name: "TimeFilter",
components: {DateTimePicker},
props: {
......
......@@ -11,10 +11,10 @@
</template>
<script>
let getty = require("../getty");
let PulseLoader = require("vue-spinner/dist/vue-spinner.min").PulseLoader;
import { PulseLoader } from "vue-spinner/dist/vue-spinner";
import getty from "../getty";
module.exports = {
export default {
name: "XYPopup",
components: {PulseLoader},
props: {
......
require ("./index.css");
let L = require("leaflet");
let LContextMenu = require("leaflet-contextmenu");
let Vue = require("vue");
let Hello = require("./components/Hello.vue").default;
let StopPopup = require("./components/StopPopup.vue").default;
let XYPopup = require("./components/XYPopup.vue").default;
let DateTimePicker = require("./components/DateTimePicker.vue").default;
let TimeFilter = require("./components/TimeFilter.vue").default;
let StopSearch = require("./components/StopSearch.vue").default;
let Datepicker = require("vuejs-datepicker").default;
let VueTimepicker = require("vuejs-timepicker");
let PulseLoader = require("vue-spinner/dist/vue-spinner.min").PulseLoader;
let VueRouter = require("vue-router").default;
//let Autocomplete = require("./node_modules/vue-single-select/dist/VueSingleSelect.vue");
let Autocomplete = require("vue-single-select").default;
let getty = require("./getty");
import "./index.css";
import L from "leaflet";
import LContextMenu from "leaflet-contextmenu";
import Vue from "vue";
import Hello from "./components/Hello.vue";
import StopPopup from "./components/StopPopup.vue";
import XYPopup from "./components/XYPopup.vue";
import DateTimePicker from "./components/DateTimePicker.vue";
import TimeFilter from "./components/TimeFilter.vue";
import StopSearch from "./components/StopSearch.vue";
import Datepicker from "vuejs-datepicker";
import VueTimepicker from "vuejs-timepicker";
import { PulseLoader } from "vue-spinner/dist/vue-spinner";
import VueRouter from "vue-router";
import Autocomplete from "vue-single-select";
import getty from "./getty";
const router = new VueRouter({mode: "history"});
......
......@@ -14,12 +14,14 @@
"vuejs-timepicker": "git+https://github.com/dgalaktionov/vuejs-timepicker.git"
},
"scripts": {
"build": "webpack --config webpack.config.js"
"build": "webpack",
"watch": "webpack --watch"
},
"devDependencies": {
"css-loader": "^2.1.1",
"file-loader": "^3.0.1",
"ignore-loader": "^0.1.2",
"source-map-loader": "^0.2.4",
"style-loader": "^0.23.1",
"url-loader": "^1.1.2",
"vue-loader": "^15.7.0",
......
......@@ -3,6 +3,7 @@ let VueLoaderPlugin = require("vue-loader/lib/plugin");
module.exports = {
mode: "development",
devtool: "inline-source-map",
entry: "./index.js",
output: {
path: path.resolve(__dirname, "."),
......@@ -25,6 +26,11 @@ module.exports = {
test: /\.(png|jpg|gif|svg)$/,
loader: "ignore-loader"
},
{
test: /\.js$/,
loader: "source-map-loader",
enforce: "pre"
}
]
},
resolve: {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment