130 |
134 | {/* NOTE: Baseline Card Area */}
135 | {annotData.baseline_text && (
136 |
146 | )}
147 | {/* NOTE: Main Card Area */}
148 |
149 |
155 |
156 |
157 |
158 | {choices.map((choice, i) => {
159 | const isChoiced = userChoices.includes(choice);
160 | return (
161 |
169 | );
170 | })}
171 |
172 |
173 |
174 |
}
177 | description="一つ前へ"
178 | onClick={goBack}
179 | buttonRef={refBackButton}
180 | buttonKey={"backButton"}
181 | isDummy={currentOrderIndex == 1}
182 | />
183 |
191 | 次へ
192 |
193 |
194 |
195 |
196 |
197 |
198 | );
199 | });
200 |
201 | export default MultiLabelAnnotation;
202 |
--------------------------------------------------------------------------------
/frontend/app/src/pages/Auth/LoginSignupPage.tsx:
--------------------------------------------------------------------------------
1 | import React, { useState, useEffect } from "react";
2 | import Avatar from "@material-ui/core/Avatar";
3 | import Button from "@material-ui/core/Button";
4 | import CssBaseline from "@material-ui/core/CssBaseline";
5 | import TextField from "@material-ui/core/TextField";
6 | import FormControlLabel from "@material-ui/core/FormControlLabel";
7 | import Checkbox from "@material-ui/core/Checkbox";
8 | import Link from "@material-ui/core/Link";
9 | import Grid from "@material-ui/core/Grid";
10 | import LockOutlinedIcon from "@material-ui/icons/LockOutlined";
11 | import Typography from "@material-ui/core/Typography";
12 | import { makeStyles } from "@material-ui/core/styles";
13 | import Container from "@material-ui/core/Container";
14 | import { Link as RouterLink } from "react-router-dom";
15 | import { Box, Paper, LinearProgress } from "@material-ui/core";
16 | import { useHistory, useLocation } from "react-router-dom";
17 | import { googleLogin } from "../../plugins/Auth";
18 | import firebase, { analytics } from "../../plugins/firebase";
19 | import querystring from "querystring";
20 | import dataController from "../../plugins/DataController";
21 | import { setTitle } from "../../plugins/Utils";
22 |
23 | const useStyles = makeStyles((theme) => ({
24 | paper: {
25 | display: "flex",
26 | flexDirection: "column",
27 | alignItems: "center",
28 | padding: theme.spacing(6),
29 | width: "80vw",
30 | maxWidth: "500px",
31 | },
32 | avatar: {
33 | margin: theme.spacing(1),
34 | backgroundColor: theme.palette.secondary.main,
35 | },
36 | submit: {
37 | margin: theme.spacing(3, 0, 2),
38 | // width: "40vw",
39 | padding: theme.spacing(1),
40 | textTransform: "none",
41 | },
42 | progress: {
43 | width: "100%",
44 | },
45 | }));
46 |
47 | const LoginSignupPage: React.FC = () => {
48 | const classes = useStyles();
49 | const history = useHistory();
50 | const location = useLocation();
51 | const [loading, setLoading] = useState(false);
52 | const [isSignUp, setIsSignUp] = useState(false);
53 |
54 | const updateSignUpState = async (): Promise