mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
Minor fixes
This commit is contained in:
parent
6d2b682117
commit
b9248f2699
5 changed files with 14 additions and 16 deletions
|
@ -72,7 +72,7 @@ export default function Todos() {
|
||||||
}
|
}
|
||||||
|
|
||||||
const onCardClick = (id) => {
|
const onCardClick = (id) => {
|
||||||
fetch(`${constants.apiUrl}todos?id=${id}`, {
|
fetch(`${constants.apiUrl}voteTodo?id=${id}`, {
|
||||||
credentials: 'include',
|
credentials: 'include',
|
||||||
})
|
})
|
||||||
.then((resp) => {
|
.then((resp) => {
|
||||||
|
|
|
@ -291,7 +291,7 @@ export default function AddQuestion() {
|
||||||
kérdés-válaszok, szóval pl nincs benne kép. Ez később bővül majd
|
kérdés-válaszok, szóval pl nincs benne kép. Ez később bővül majd
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
Ha sok új kérdést küldsze be, akkor akár több percig is eltarthat a
|
Ha sok új kérdést küldesz be, akkor akár több percig is eltarthat a
|
||||||
dolog. Akárhány kérdést be lehet egyszerre küldeni, de max 10-15 az
|
dolog. Akárhány kérdést be lehet egyszerre küldeni, de max 10-15 az
|
||||||
ajánlott
|
ajánlott
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
import React, { useState, useEffect } from 'react'
|
import React, { useState, useEffect } from 'react'
|
||||||
import fetch from 'unfetch'
|
import fetch from 'unfetch'
|
||||||
import Head from 'next/head'
|
import Head from 'next/head'
|
||||||
|
import Link from 'next/link'
|
||||||
|
|
||||||
import LoadingIndicator from '../components/LoadingIndicator'
|
import LoadingIndicator from '../components/LoadingIndicator'
|
||||||
import Sleep from '../components/sleep'
|
import Sleep from '../components/sleep'
|
||||||
|
@ -12,7 +13,7 @@ import styles from './index.module.css'
|
||||||
import links from '../data/links.json'
|
import links from '../data/links.json'
|
||||||
import constants from '../constants.json'
|
import constants from '../constants.json'
|
||||||
|
|
||||||
export default function Index({ router }) {
|
export default function Index() {
|
||||||
const [motd, setMotd] = useState('loading...')
|
const [motd, setMotd] = useState('loading...')
|
||||||
const [userSpecificMotd, setUserSpecificMotd] = useState('loading...')
|
const [userSpecificMotd, setUserSpecificMotd] = useState('loading...')
|
||||||
const [news, setNews] = useState(null)
|
const [news, setNews] = useState(null)
|
||||||
|
@ -151,15 +152,11 @@ export default function Index({ router }) {
|
||||||
{Object.keys(links).map((key) => {
|
{Object.keys(links).map((key) => {
|
||||||
let link = links[key]
|
let link = links[key]
|
||||||
return (
|
return (
|
||||||
<div
|
<Link key={key} href={link.href}>
|
||||||
className={styles.button}
|
<a className={styles.button} target="_blank">
|
||||||
key={key}
|
{link.text}
|
||||||
onClick={() => {
|
</a>
|
||||||
router.push(link.href)
|
</Link>
|
||||||
}}
|
|
||||||
>
|
|
||||||
{link.text}
|
|
||||||
</div>
|
|
||||||
)
|
)
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
flex: 1;
|
|
||||||
color: white;
|
color: white;
|
||||||
background-color: #303030;
|
background-color: #303030;
|
||||||
margin: 2px;
|
margin: 2px;
|
||||||
|
@ -12,7 +11,9 @@
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
|
flex: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
|
@ -7,9 +7,9 @@ import constants from '../constants.json'
|
||||||
|
|
||||||
export default function PwRequest(props) {
|
export default function PwRequest(props) {
|
||||||
const [result, setResult] = useState([])
|
const [result, setResult] = useState([])
|
||||||
const [remaining, setRemaining] = useState()
|
const [remaining, setRemaining] = useState('...')
|
||||||
const [requestedPWS, setRequestedPWS] = useState()
|
const [requestedPWS, setRequestedPWS] = useState('...')
|
||||||
const [createDate, setCreateDate] = useState()
|
const [createDate, setCreateDate] = useState('...')
|
||||||
|
|
||||||
const [addPwPerDay, setAddPwPerDay] = useState('...')
|
const [addPwPerDay, setAddPwPerDay] = useState('...')
|
||||||
const [daysAfterUserGetsPWs, setDaysAfterUserGetsPWs] = useState('...')
|
const [daysAfterUserGetsPWs, setDaysAfterUserGetsPWs] = useState('...')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue