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

@ -2,6 +2,8 @@
<html>
<head>
<title>Lateinicus</title>
<meta charset="UTF-8">
<meta
name="viewport"
content="minimum-scale=1, initial-scale=1, width=device-width, shrink-to-fit=no"