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 { ILevel } from "../models/level";
import { ILearner, TopTen } from "../models/learner";
import { IVocab, VocabType } from "../models/vocab";
import { TopTen } from "../models/learner";
import { IVocab } from "../models/vocab";
import { IReviewMetadata, ReviewType } from "../models/review";
import { IUser } from "../models/user";
import { IResponse } from "../models/server";

View File

@ -1,4 +1,4 @@
// Maximum distance from the answer to be still considered correct
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>
<html>
<head>
<title>Lateinicus</title>
<meta
name="viewport"
content="minimum-scale=1, initial-scale=1, width=device-width, shrink-to-fit=no"
/>
<head>
<title>Lateinicus</title>
<link rel="stylesheet" href="./index.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500">
<meta charset="UTF-8">
<meta
name="viewport"
content="minimum-scale=1, initial-scale=1, width=device-width, shrink-to-fit=no"
/>
<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>
<link rel="stylesheet" href="./index.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500">
<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>