feat(ui): rename app to src
This commit is contained in:
parent
0a9627ae4e
commit
6688eff297
|
@ -4,7 +4,7 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
module.exports = {
|
module.exports = {
|
||||||
//bundle *.js from this entry point
|
//bundle *.js from this entry point
|
||||||
entry: path.resolve(__dirname, '../app/index.jsx'),
|
entry: path.resolve(__dirname, '../src/index.jsx'),
|
||||||
//create output file to be linked to index.html
|
//create output file to be linked to index.html
|
||||||
output: {
|
output: {
|
||||||
filename: '[name].bundle.js',
|
filename: '[name].bundle.js',
|
||||||
|
@ -18,7 +18,7 @@ module.exports = {
|
||||||
//test all *.jsx (e.g. React.js) using babel-loader
|
//test all *.jsx (e.g. React.js) using babel-loader
|
||||||
test: /\.(js|jsx)$/,
|
test: /\.(js|jsx)$/,
|
||||||
exclude: /node_modules/,
|
exclude: /node_modules/,
|
||||||
include: path.resolve(__dirname, '../app'),
|
include: path.resolve(__dirname, '../src'),
|
||||||
use: ['babel-loader'],
|
use: ['babel-loader'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -32,6 +32,9 @@
|
||||||
"webpack-cli": "5.1.4",
|
"webpack-cli": "5.1.4",
|
||||||
"webpack-dev-server": "4.15.1",
|
"webpack-dev-server": "4.15.1",
|
||||||
"webpack-merge": "5.9.0"
|
"webpack-merge": "5.9.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=18.19.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@ampproject/remapping": {
|
"node_modules/@ampproject/remapping": {
|
||||||
|
|
|
@ -9,11 +9,13 @@
|
||||||
"transport",
|
"transport",
|
||||||
"mobility",
|
"mobility",
|
||||||
"delfi",
|
"delfi",
|
||||||
"react",
|
"react"
|
||||||
"webpack"
|
|
||||||
],
|
],
|
||||||
"author": "Software Ingenieur Begerad <dialog@SwIngBe.de>",
|
"author": "Software Ingenieur Begerad <dialog@SwIngBe.de>",
|
||||||
"license": "GPL-3.0-or-later",
|
"license": "GPL-3.0-or-later",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=18.19.0"
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "webpack serve --config config/webpack.dev.js",
|
"start": "webpack serve --config config/webpack.dev.js",
|
||||||
"build": "webpack --config config/webpack.prod.js",
|
"build": "webpack --config config/webpack.prod.js",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ReactDOM from 'react-dom';
|
import ReactDOM from 'react-dom';
|
||||||
import App from './app';
|
import App from './main';
|
||||||
|
|
||||||
//TODO remove debugging
|
//TODO remove debugging
|
||||||
if (process.env.NODE_ENV !== 'production') {
|
if (process.env.NODE_ENV !== 'production') {
|
|
@ -11,6 +11,7 @@ import {
|
||||||
getGtfsStopsLastVacuum
|
getGtfsStopsLastVacuum
|
||||||
} from './utils/api';
|
} from './utils/api';
|
||||||
|
|
||||||
|
|
||||||
import packageInfo from '../package.json'
|
import packageInfo from '../package.json'
|
||||||
const VERSION = packageInfo.version;
|
const VERSION = packageInfo.version;
|
||||||
|
|
|
@ -2,13 +2,11 @@ import React from 'react';
|
||||||
|
|
||||||
import Entities from '../components/entities';
|
import Entities from '../components/entities';
|
||||||
|
|
||||||
const StopsRefined = () => {
|
export default function StopsRefined() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<p>Please feel free to browse through stops inside DE refined to be compliant with the Global ID.</p>
|
<p>Please feel free to browse through stops inside DE refined to be compliant with the Global ID.</p>
|
||||||
<Entities route = 'gtfs-stops-de-not-dhid-refine'/>
|
<Entities route = 'gtfs-stops-de-not-dhid-refine'/>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
};
|
||||||
|
|
||||||
export default StopsRefined
|
|
Loading…
Reference in New Issue