diff --git a/src/components/feedbackArea.js b/src/components/feedbackArea.js index 0dcd6e8..5bd9d6b 100644 --- a/src/components/feedbackArea.js +++ b/src/components/feedbackArea.js @@ -6,7 +6,7 @@ import constants from '../constants.json' function FileUploader({ onChange }) { return (
-
Fájl csatolása
+
Fájl csatolása (Több fájlt ZIP-be tömörítve lehet egyszerre)
* { + padding: 5px 0px; } .fileContainer { diff --git a/src/components/reactButton.js b/src/components/reactButton.js index c16cddb..fb0219b 100644 --- a/src/components/reactButton.js +++ b/src/components/reactButton.js @@ -25,26 +25,32 @@ function ExistingReacts({ existingReacts, onClick, uid }) {
Reakció
{existingReacts && - Object.keys(existingReacts).map((key) => { - const currReact = existingReacts[key] - const react = reactions[key] - if (!react) { - return null - } - return ( -
{ - e.stopPropagation() - onClick(key, currReact.includes(uid)) - }} - > - {react.emoji} {currReact.length} -
- ) - })} + Object.keys(existingReacts) + .sort((akey, bkey) => { + const a = existingReacts[akey] + const b = existingReacts[bkey] + return a.length < b.length + }) + .map((key) => { + const currReact = existingReacts[key] + const react = reactions[key] + if (!react) { + return null + } + return ( +
{ + e.stopPropagation() + onClick(key, currReact.includes(uid)) + }} + > + {react.emoji} {currReact.length} +
+ ) + })}
) } diff --git a/src/components/sleep.js b/src/components/sleep.js index 276d783..effa908 100644 --- a/src/components/sleep.js +++ b/src/components/sleep.js @@ -1,6 +1,7 @@ +import React from 'react' import constants from '../constants.json' -export default function Sleep(props) { +export default function Sleep() { const hours = new Date().getHours() if (hours < 4 || hours > 23) { return ( diff --git a/src/defaultStyles.css b/src/defaultStyles.css index ef9ee94..4c6a1d8 100644 --- a/src/defaultStyles.css +++ b/src/defaultStyles.css @@ -43,7 +43,7 @@ textarea { border-radius: 3px; } -input { +input[type='text'] { color: var(--text-color); background-color: var(--background-color); border: 0px solid #444; diff --git a/src/pages/allQuestions.js b/src/pages/allQuestions.js index a43edc1..628e679 100644 --- a/src/pages/allQuestions.js +++ b/src/pages/allQuestions.js @@ -5,7 +5,6 @@ import LoadingIndicator from '../components/LoadingIndicator.js' import QuestionSearchResult from '../components/QuestionSearchResult.js' import Subject from '../components/Subject.js' import SubjectSelector from '../components/SubjectSelector.js' -import Sleep from '../components/sleep' import ExternalLinkIcon from '../components/externalLinkIcon' import SearchBar from '../components/searchBar' @@ -133,7 +132,6 @@ export default function AllQuestions({ router }) {

Kérdések és 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- diff --git a/src/pages/contact.js b/src/pages/contact.js index 8754db2..b01fc90 100644 --- a/src/pages/contact.js +++ b/src/pages/contact.js @@ -5,8 +5,6 @@ import FeedbackArea from '../components/feedbackArea' import constants from '../constants.json' import LoadingIndicator from '../components/LoadingIndicator' -import Sleep from '../components/sleep' - import styles from './contact.module.css' export default function Contact() { @@ -37,9 +35,6 @@ export default function Contact() {

Kapcsolat

-
- -
Üzenet küldése
diff --git a/src/pages/contribute.js b/src/pages/contribute.js index 2147a58..1d4fb7e 100644 --- a/src/pages/contribute.js +++ b/src/pages/contribute.js @@ -1,7 +1,6 @@ import React, { useState } from 'react' import Head from 'next/head' -import Sleep from '../components/sleep' import Todos from '../components/todoStuff/todos' import FeedbackArea from '../components/feedbackArea' import Modal from '../components/modal' @@ -21,7 +20,6 @@ export default function contribute() {

Teendők

-

Ezen az oldalon új ötleteket adhatsz hozzá megvalósításra a teendők diff --git a/src/pages/faq.js b/src/pages/faq.js index 619bafe..13893e0 100644 --- a/src/pages/faq.js +++ b/src/pages/faq.js @@ -1,7 +1,6 @@ import React, { useState, useEffect } from 'react' import Link from 'next/link' -import Sleep from '../components/sleep' import Head from 'next/head' function PasswordSection() { @@ -56,7 +55,6 @@ function PasswordSection() {

-
) } @@ -99,7 +97,6 @@ function FAQSection() {
-
) } @@ -144,7 +141,6 @@ function RiskSection() { Pl.: ha a script rosszul menti le, vagy rossz kérdésre ad választ -
) } @@ -175,7 +171,6 @@ function WebsiteSaveSection() { hatékonyan tesztelni a scriptet. Ezért hatalmas segítség ha feltöltöd azt az oldalt amin hibával találkozol.

-
) } @@ -185,8 +180,8 @@ function ScriptReinstallSection() { <>

Jelenleg két helyről lehet telepíteni a scriptet: greasyforkról és a - weboldalról. A greasyforkos telepítési lehetőség meg fog szűnni, így ha - onnan telepítetted, akkor nem lesznek frissítések elérhetők (amik nagyon + weboldalról. A greasyforkos telepítési lehetőség megszűnt, így ha onnan + telepítetted, akkor nem lesznek frissítések elérhetők (amik nagyon fontosak (de tényleg)). Ezért a következő rövid manővert kellene végrehajtani, hogy minden zökkenőmentesen menjen:

@@ -218,7 +213,6 @@ function ScriptReinstallSection() { Ezzel semmi adat nem vész el, régi jelszó ugyanolyan jó marad (csak ne felejtsd azt el) -
) } @@ -299,7 +293,10 @@ const pages = { faq: { name: 'GYIK', component: FAQSection }, pw: { name: 'Jelszavak', component: PasswordSection }, risk: { name: 'Kockázatok', component: RiskSection }, - websitedl: { name: 'Weboldal letöltése', component: WebsiteSaveSection }, + websitedl: { + name: 'Teszt közbeni hiba jelentése', + component: WebsiteSaveSection, + }, reinstall: { name: 'Script újratelepítése', component: ScriptReinstallSection, @@ -335,9 +332,6 @@ export default function FAQ({ router }) {

Gyakran Ismételt Kérdések

-
- -
{Object.keys(pages).map((key) => { const page = pages[key] @@ -354,9 +348,9 @@ export default function FAQ({ router }) { ) })}
+
{renderCurrPage(currPage)} - -

+


) } diff --git a/src/pages/pwRequest.js b/src/pages/pwRequest.js index 58a3800..6977da3 100644 --- a/src/pages/pwRequest.js +++ b/src/pages/pwRequest.js @@ -2,7 +2,6 @@ import React, { useState, useEffect } from 'react' import fetch from 'unfetch' import Head from 'next/head' import Link from 'next/link' -import Sleep from '../components/sleep' import styles from './pwRequest.module.css' import constants from '../constants.json' @@ -90,7 +89,6 @@ export default function PwRequest({ globalData }) {

Jelszó generálás

-

diff --git a/src/pages/ranklist.js b/src/pages/ranklist.js index 4c4e454..9aef1a5 100644 --- a/src/pages/ranklist.js +++ b/src/pages/ranklist.js @@ -3,7 +3,6 @@ import fetch from 'unfetch' import Head from 'next/head' import LoadingIndicator from '../components/LoadingIndicator' -import Sleep from '../components/sleep' import styles from './ranklist.module.css' import constants from '../constants.json' @@ -114,12 +113,9 @@ export default function RankList({ globalData }) { getList() }, []) - useEffect( - () => { - getList() - }, - [since] - ) + useEffect(() => { + getList() + }, [since]) const list = ranklist && @@ -156,7 +152,6 @@ export default function RankList({ globalData }) { frissülnek.

-
Megjelenítés: