Skip to content
Snippets Groups Projects
Commit e9f17642 authored by Lucendio's avatar Lucendio
Browse files

[app] Update frontend

* applied latest cra-template
* removed react-specific content
parent 5a4f5566
No related branches found
No related tags found
No related merge requests found
Showing
with 16002 additions and 22 deletions
Source diff could not be displayed: it is too large. Options to address this: view the blob.
{ {
"name": "todo-app-k8s", "name": "todo-app",
"version": "0.1.0", "version": "2.0.0",
"private": true, "private": true,
"dependencies": { "dependencies": {
"axios": "^0.19.0", "@testing-library/jest-dom": "^4.2.4",
"mdbreact": "^4.19.2", "@testing-library/react": "^9.5.0",
"react": "^16.9.0", "@testing-library/user-event": "^7.2.1",
"react-dom": "^16.9.0", "axios": "^0.19.2",
"react-loader-spinner": "^3.1.4", "mdbreact": "^4.25.5",
"react-scripts": "3.1.1", "react": "^16.13.0",
"react-dom": "^16.13.0",
"react-loader-spinner": "^3.1.5",
"react-scripts": "3.4.1",
"validator": "^11.1.0" "validator": "^11.1.0"
}, },
"scripts": { "scripts": {
......
app/client/public/favicon.ico

3.78 KiB

...@@ -2,14 +2,12 @@ ...@@ -2,14 +2,12 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" /> <meta name="theme-color" content="#000000" />
<meta <meta
name="description" name="description"
content="Web site created using create-react-app" content="Example Service"
/> />
<link rel="apple-touch-icon" href="logo192.png" />
<!-- <!--
manifest.json provides metadata used when your web app is installed on a manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/ user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
...@@ -24,7 +22,7 @@ ...@@ -24,7 +22,7 @@
work correctly both with client-side routing and a non-root public URL. work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`. Learn how to configure a non-root public URL by running `npm run build`.
--> -->
<title>React App</title> <title>ToDo App</title>
</head> </head>
<body> <body>
<noscript>You need to enable JavaScript to run this app.</noscript> <noscript>You need to enable JavaScript to run this app.</noscript>
......
app/client/public/logo192.png

5.22 KiB

app/client/public/logo512.png

9.44 KiB

...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
"src": "logo512.png", "src": "logo512.png",
"type": "image/png", "type": "image/png",
"sizes": "512x512" "sizes": "512x512"
} }
], ],
"start_url": ".", "start_url": ".",
"display": "standalone", "display": "standalone",
......
# https://www.robotstxt.org/robotstxt.html # https://www.robotstxt.org/robotstxt.html
User-agent: * User-agent: *
Disallow: /
File moved
import React, { Component, Fragment } from 'react'; import React, { Component, Fragment } from 'react';
import AddTodo from './AddTodo/AddTodo' import AddTodo from './components/AddTodo/AddTodo'
import ListTodo from './ListTodo/ListTodo' import ListTodo from './components/ListTodo/ListTodo'
import PageLoader from './PageLoader/PageLoader' import PageLoader from './components/PageLoader/PageLoader'
import Header from './Header/Header' import Header from './components/Header/Header'
import Login from './Login/Login' import Login from './components/Login/Login'
import { init } from '../utils/APICalls' import { init } from './utils/APICalls'
import Signup from './Signup/Signup' import Signup from './components/Signup/Signup'
import './App.css' import './App.css'
import { updateTodo, deleteTodo, signout } from '../utils/APICalls' import { updateTodo, deleteTodo, signout } from './utils/APICalls'
import { fillTodoRows } from '../utils/Helper' import { fillTodoRows } from './utils/Helper'
class App extends Component { class App extends Component {
state = { state = {
......
import React from 'react';
import { render } from '@testing-library/react';
import App from './App';
test('renders learn react link', () => {
const { getByText } = render(<App />);
const linkElement = getByText(/learn react/i);
expect(linkElement).toBeInTheDocument();
});
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