mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
Unknown char fixes, removed unnecesary files, style fixes/changes
This commit is contained in:
parent
9c194277b3
commit
3739153e95
10 changed files with 65 additions and 44 deletions
|
@ -37,7 +37,7 @@ export default function TodoCard(props) {
|
||||||
<div className={`${voted && styles.voted}`}>
|
<div className={`${voted && styles.voted}`}>
|
||||||
<div>{`Szavazatok: ${votes.length}`}</div>
|
<div>{`Szavazatok: ${votes.length}`}</div>
|
||||||
</div>
|
</div>
|
||||||
<div>{`Neh<EFBFBD>zs<EFBFBD>g: ${points}`}</div>
|
<div>{`Nehézség: ${points}`}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
|
@ -6,6 +6,8 @@ export default function TodoRow(props) {
|
||||||
const { categories, userId, onClick } = props
|
const { categories, userId, onClick } = props
|
||||||
const { name, category, votes, id, group } = props.rowData
|
const { name, category, votes, id, group } = props.rowData
|
||||||
const voted = votes.includes(userId)
|
const voted = votes.includes(userId)
|
||||||
|
const borderColor =
|
||||||
|
categories[category].borderColor || categories[category].color
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
|
@ -14,7 +16,8 @@ export default function TodoRow(props) {
|
||||||
}}
|
}}
|
||||||
className={styles.row}
|
className={styles.row}
|
||||||
style={{
|
style={{
|
||||||
border: `2px dashed ${categories[category].color || 'white'}`,
|
border: `2px dashed ${borderColor || 'white'}`,
|
||||||
|
borderRadius: '3px',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div className={styles.id}>{`#${id}`}</div>
|
<div className={styles.id}>{`#${id}`}</div>
|
||||||
|
|
|
@ -20,29 +20,31 @@ export default function TodoBoard(props) {
|
||||||
return (
|
return (
|
||||||
<div className={styles.container} key={key}>
|
<div className={styles.container} key={key}>
|
||||||
<div className={styles.title}>{table.name}</div>
|
<div className={styles.title}>{table.name}</div>
|
||||||
{tableCards.map((card, i) => {
|
<div className={styles.scroll}>
|
||||||
const shouldHide =
|
{tableCards.map((card, i) => {
|
||||||
card.state !== key ||
|
const shouldHide =
|
||||||
(selectedGroup !== null &&
|
card.state !== key ||
|
||||||
selectedGroup !== 'uncat' &&
|
(selectedGroup !== null &&
|
||||||
card.group !== selectedGroup) ||
|
selectedGroup !== 'uncat' &&
|
||||||
(selectedGroup === 'uncat' && card.group !== undefined)
|
card.group !== selectedGroup) ||
|
||||||
|
(selectedGroup === 'uncat' && card.group !== undefined)
|
||||||
|
|
||||||
if (shouldHide) {
|
if (shouldHide) {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<TodoRow
|
<TodoRow
|
||||||
onClick={onClick}
|
onClick={onClick}
|
||||||
key={i}
|
key={i}
|
||||||
type={key}
|
type={key}
|
||||||
rowData={card}
|
rowData={card}
|
||||||
userId={userId}
|
userId={userId}
|
||||||
categories={categories}
|
categories={categories}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
})}
|
})}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
})}
|
})}
|
||||||
|
|
|
@ -20,3 +20,9 @@
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.scroll {
|
||||||
|
max-height: 500px;
|
||||||
|
overflow-y: auto;
|
||||||
|
overflow-x: hidden;
|
||||||
|
}
|
||||||
|
|
|
@ -24,7 +24,6 @@ export default function Todos() {
|
||||||
const [selectedGroup, setSelectedGroup] = useState(null)
|
const [selectedGroup, setSelectedGroup] = useState(null)
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
console.info('Fetching todos')
|
|
||||||
fetch(`${constants.apiUrl}todos`, {
|
fetch(`${constants.apiUrl}todos`, {
|
||||||
credentials: 'include',
|
credentials: 'include',
|
||||||
})
|
})
|
||||||
|
|
|
@ -461,7 +461,7 @@ select:hover {
|
||||||
|
|
||||||
.description {
|
.description {
|
||||||
padding-top: 1px;
|
padding-top: 1px;
|
||||||
padding-bottom: 10px;
|
padding-bottom: 5px;
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
|
@ -107,13 +107,23 @@ export default function AllQuestions({ router }) {
|
||||||
</div>
|
</div>
|
||||||
<Sleep />
|
<Sleep />
|
||||||
<div className={'description'}>
|
<div className={'description'}>
|
||||||
<p>
|
Ezen az oldalon tudsz manuálisan keresni a kérdések és a tárgyak
|
||||||
Ezen az oldalon tudsz manuálisan keresni a kérdések és a tárgyak
|
között, vagy ellenőrizni, hogy egy adott tárgy szerepel-e a kérdés-
|
||||||
között, vagy ellenőrizni, hogy egy adott tárgy szerepel-e a
|
és tárgyadatbázisban. Ezen kívül a kérdéseket le is töltheted
|
||||||
kérdés- és tárgyadatbázisban. Ezen kívül a kérdéseket le is
|
offline használatra. (txt formátumban)
|
||||||
töltheted offline használatra. (txt formátumban)
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
|
<center>
|
||||||
|
<div className={`buttonContainer ${styles.dataEditor}`}>
|
||||||
|
<div
|
||||||
|
onClick={() => {
|
||||||
|
window.open(`${constants.siteUrl}dataeditor`, '_blank')
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Kérdés szerkesztő
|
||||||
|
<ExternalLinkIcon size={15} />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</center>
|
||||||
<div className={'selectContainer'}>
|
<div className={'selectContainer'}>
|
||||||
<select
|
<select
|
||||||
defaultValue={-1}
|
defaultValue={-1}
|
||||||
|
|
|
@ -20,5 +20,10 @@
|
||||||
.info {
|
.info {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
padding-top: 25px;
|
padding-top: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dataEditor {
|
||||||
|
margin-bottom: 25px;
|
||||||
|
width: 25%;
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,7 +65,7 @@ export default function contribute() {
|
||||||
{Object.keys(repos.repos).map((key) => {
|
{Object.keys(repos.repos).map((key) => {
|
||||||
let repo = repos.repos[key]
|
let repo = repos.repos[key]
|
||||||
return (
|
return (
|
||||||
<div>
|
<div key={key}>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a key={key} href={repo.href}>
|
<a key={key} href={repo.href}>
|
||||||
|
@ -78,7 +78,6 @@ export default function contribute() {
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
style={{ float: 'left' }}
|
|
||||||
style={{ textAlign: 'right', marginRight: '100px', marginTop: '25px' }}
|
style={{ textAlign: 'right', marginRight: '100px', marginTop: '25px' }}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
|
|
|
@ -95,7 +95,7 @@ function FAQSection() {
|
||||||
<b>Gombok, %-ok, számok;</b>
|
<b>Gombok, %-ok, számok;</b>
|
||||||
<br />
|
<br />
|
||||||
<img
|
<img
|
||||||
style={{ maxWidth: '100%' }}
|
style={{ maxWidth: '90%' }}
|
||||||
src="img/6.png"
|
src="img/6.png"
|
||||||
alt="img"
|
alt="img"
|
||||||
className={'manual_img'}
|
className={'manual_img'}
|
||||||
|
@ -164,7 +164,7 @@ function WebsiteSaveSection() {
|
||||||
</p>
|
</p>
|
||||||
<center>
|
<center>
|
||||||
<img
|
<img
|
||||||
style={{ maxWidth: '100%' }}
|
style={{ maxWidth: '90%' }}
|
||||||
src="img/websitesave.png"
|
src="img/websitesave.png"
|
||||||
alt="img"
|
alt="img"
|
||||||
className={'manual_img'}
|
className={'manual_img'}
|
||||||
|
@ -249,14 +249,11 @@ export default function FAQ({ router }) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
useEffect(
|
useEffect(() => {
|
||||||
() => {
|
if (router.query.tab) {
|
||||||
if (router.query.tab) {
|
setCurrPage(pages[router.query.tab])
|
||||||
setCurrPage(pages[router.query.tab])
|
}
|
||||||
}
|
}, [router.query.tab])
|
||||||
},
|
|
||||||
[router.query.tab]
|
|
||||||
)
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue