refactor: Make the frontend web-ready

This commit is contained in:
Alexander Polynomdivision 2018-09-28 23:29:05 +02:00
parent 24f35be058
commit ded5e4ecfa
3 changed files with 21 additions and 19 deletions

View File

@ -18,8 +18,8 @@ import Drawer from "../containers/Drawer";
import { BACKEND_URL } from "../config"; import { BACKEND_URL } from "../config";
import { ILevel } from "../models/level"; import { ILevel } from "../models/level";
import { ILearner, TopTen } from "../models/learner"; import { TopTen } from "../models/learner";
import { IVocab, VocabType } from "../models/vocab"; import { IVocab } from "../models/vocab";
import { IReviewMetadata, ReviewType } from "../models/review"; import { IReviewMetadata, ReviewType } from "../models/review";
import { IUser } from "../models/user"; import { IUser } from "../models/user";
import { IResponse } from "../models/server"; import { IResponse } from "../models/server";

View File

@ -1,4 +1,4 @@
// Maximum distance from the answer to be still considered correct // Maximum distance from the answer to be still considered correct
export const LEVENSHTEIN_MAX_DISTANCE = 2; export const LEVENSHTEIN_MAX_DISTANCE = 2;
export const BACKEND_URL = "http://127.0.0.1:8080"; export const BACKEND_URL = "http://127.0.0.1";

View File

@ -1,20 +1,22 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>Lateinicus</title> <title>Lateinicus</title>
<meta
name="viewport"
content="minimum-scale=1, initial-scale=1, width=device-width, shrink-to-fit=no"
/>
<link rel="stylesheet" href="./index.css"> <meta charset="UTF-8">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500"> <meta
name="viewport"
<script src="https://unpkg.com/react@16/umd/react.development.js" crossorigin></script> content="minimum-scale=1, initial-scale=1, width=device-width, shrink-to-fit=no"
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js" crossorigin></script> />
</head>
<body> <link rel="stylesheet" href="./index.css">
<div id="app"></div> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500">
<script src="./index.tsx"></script>
</body> <script src="https://unpkg.com/react@16/umd/react.development.js" crossorigin></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js" crossorigin></script>
</head>
<body>
<div id="app"></div>
<script src="./index.tsx"></script>
</body>
</html> </html>