- Weboldalon keresztüli üzenetküldés az adminnak (feedback)
+ Weboldalon keresztüli üzenetküldés az adminnak (feedback). Válasz bal
+ alsó levelesládába (📬) érkezik majd.
diff --git a/src/pages/contribute.js b/src/pages/contribute.js
index 06f9c61..155be01 100644
--- a/src/pages/contribute.js
+++ b/src/pages/contribute.js
@@ -42,17 +42,6 @@ export default function contribute() {
A kurzort az oszlopcímekre mozgatva, további információkat
olvashatsz a kategóriák tulajdonságairól.
- {
- 'Ha olyan teendőt látsz, amiben tudnál és szeretnél is segíteni, akkor írj '
- }
-
- {'IRC'}
-
- -n és megbeszéljük.
diff --git a/src/pages/index.js b/src/pages/index.js
index da93824..f0031b6 100644
--- a/src/pages/index.js
+++ b/src/pages/index.js
@@ -10,7 +10,7 @@ import Composer from '../components/composer'
import styles from './index.module.css'
import constants from '../constants.json'
-const forumPostPerPage = 2
+const forumPostPerPage = 5
const frontpageForumName = 'frontpage'
function fetchForum(from) {
diff --git a/src/pages/userFiles.js b/src/pages/userFiles.js
new file mode 100644
index 0000000..c49c249
--- /dev/null
+++ b/src/pages/userFiles.js
@@ -0,0 +1,330 @@
+import React, { useState, useEffect } from 'react'
+import Head from 'next/head'
+
+import LoadingIndicator from '../components/LoadingIndicator'
+import Modal from '../components/modal'
+
+import styles from './userFiles.module.css'
+import constants from '../constants.json'
+
+function listUserDir(subdir) {
+ return new Promise((resolve) => {
+ fetch(
+ `${constants.apiUrl}listUserDir${subdir ? `?subdir=${subdir}` : ''}`,
+ {
+ credentials: 'include',
+ }
+ )
+ .then((resp) => {
+ return resp.json()
+ })
+ .then((res) => {
+ if (res.success) {
+ resolve(res)
+ } else {
+ alert(res.msg)
+ }
+ })
+ })
+}
+
+function FileUploader({ onChange }) {
+ return (
+
{
+ router.back()
+ // FIXME: consistend going back with browser back button
+ // back button works like broser back button, unless it would result in site leave
+ // history: nothing > opened site/usrFiles?dir=...
+ // history: site > site/userFiles > site/usrFiles?dir=...
+ router.push(`${router.pathname}`, undefined, { shallow: true })
+ }}
+ >
+ Vissza
+