Added data editor to repos tab, changed some descriptions

This commit is contained in:
MrFry 2020-03-25 16:55:31 +01:00
parent 4776405aa8
commit b4dc053e1f
7 changed files with 24 additions and 32 deletions

View file

@ -1,15 +0,0 @@
import styles from './ircButton.module.css'
export default function IrcButton (props) {
return (
<div>
<center>
<a href='/irc'>
<div className={styles.ircLink}>
IRC chat
</div>
</a>
</center>
</div>
)
}

View file

@ -10,15 +10,16 @@ class Questions extends PureComponent {
return ( return (
<div> <div>
{subjs.map((subj) => { {subjs.map((subj, i) => {
return ( return (
<div> <div key={i}>
<div className={styles.subjName}> <div className={styles.subjName}>
{subj.Name} {subj.Name}
</div> </div>
{ subj.Questions.map((question) => { { subj.Questions.map((question, i) => {
return ( return (
<Question <Question
key={i}
question={question} question={question}
/> />
) )

View file

@ -1,10 +0,0 @@
.ircLink {
background-color: #9999ff;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
}

View file

@ -22,6 +22,10 @@
"qminingPageRepo": { "qminingPageRepo": {
"description": "Qmining weboldal Next.js felülete", "description": "Qmining weboldal Next.js felülete",
"href": "https://gitlab.com/MrFry/qmining-page" "href": "https://gitlab.com/MrFry/qmining-page"
},
"dataEditor": {
"description": "Kérdés szerkesztő",
"href": "https://gitlab.com/MrFry/qmining-data-editor"
} }
} }
} }

View file

@ -1,7 +1,7 @@
import React, { useState } from 'react' import React, { useState } from 'react'
import fetch from 'unfetch' import fetch from 'unfetch'
import IrcButton from '../components/IrcButton.js' import Button from '../components/Button.js'
import styles from './feedback.module.css' import styles from './feedback.module.css'
import constants from '../constants.json' import constants from '../constants.json'
@ -244,7 +244,7 @@ export default function Feedback (props) {
return ( return (
<div> <div>
<IrcButton /> <Button text='IRC chat' href='/irc' />
<p /> <p />
<hr /> <hr />
<p /> <p />

View file

@ -1,4 +1,4 @@
import IrcButton from '../components/IrcButton.js' import Button from '../components/Button.js'
import styles from './repos.module.css' import styles from './repos.module.css'
import repos from '../data/repos.json' import repos from '../data/repos.json'
@ -51,7 +51,18 @@ export default function Repos (props) {
})} })}
</tbody> </tbody>
</table> </table>
<IrcButton /> <div className={styles.description}>
IRC chat: egy IRC chatszoba van létrehozva egy random szerveren, ahol tuszd azonnal üzenni,
és ha épp fent vagyok akkor azonnal válaszolok
</div>
<Button text='IRC chat' href='/irc' />
<div className={styles.description}>
Kérdés szerkesztő: Ezen az oldalon lehet szerkeszteni az összes kérdést, duplikációkat
eltávolítani vagy helytelen válaszokat kijavítani kézzel. Ha van hozzá jelszavad, akkor ezt
azonnal el tudod menteni, és éles adatbázis frissül ezzel, ha nincs és úgy érzed szeretnél
akkor kattints a fenti 'IRC chat' gombra!
</div>
<Button text='Data Editor' href='/dataeditor' />
</div> </div>
) )
} }

View file

@ -6,6 +6,7 @@
font-size: 17px; font-size: 17px;
color: white; color: white;
text-align: center; text-align: center;
margin: 10px;
} }
.repoTable thead td { .repoTable thead td {