feat(ui): rename app to src

This commit is contained in:
dancingCycle 2024-02-13 23:07:40 +01:00
parent 0a9627ae4e
commit 6688eff297
27 changed files with 13 additions and 9 deletions

View File

@ -4,7 +4,7 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
const path = require('path');
module.exports = {
//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
output: {
filename: '[name].bundle.js',
@ -18,7 +18,7 @@ module.exports = {
//test all *.jsx (e.g. React.js) using babel-loader
test: /\.(js|jsx)$/,
exclude: /node_modules/,
include: path.resolve(__dirname, '../app'),
include: path.resolve(__dirname, '../src'),
use: ['babel-loader'],
},
{

3
ui/package-lock.json generated
View File

@ -32,6 +32,9 @@
"webpack-cli": "5.1.4",
"webpack-dev-server": "4.15.1",
"webpack-merge": "5.9.0"
},
"engines": {
"node": ">=18.19.0"
}
},
"node_modules/@ampproject/remapping": {

View File

@ -9,11 +9,13 @@
"transport",
"mobility",
"delfi",
"react",
"webpack"
"react"
],
"author": "Software Ingenieur Begerad <dialog@SwIngBe.de>",
"license": "GPL-3.0-or-later",
"engines": {
"node": ">=18.19.0"
},
"scripts": {
"start": "webpack serve --config config/webpack.dev.js",
"build": "webpack --config config/webpack.prod.js",

View File

@ -1,6 +1,6 @@
import React from 'react';
import ReactDOM from 'react-dom';
import App from './app';
import App from './main';
//TODO remove debugging
if (process.env.NODE_ENV !== 'production') {

View File

@ -11,6 +11,7 @@ import {
getGtfsStopsLastVacuum
} from './utils/api';
import packageInfo from '../package.json'
const VERSION = packageInfo.version;

View File

@ -2,13 +2,11 @@ import React from 'react';
import Entities from '../components/entities';
const StopsRefined = () => {
export default function StopsRefined() {
return (
<>
<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'/>
</>
);
}
export default StopsRefined
};