From a150cbcef61a0dc3bba2836a3b47037621ecc848 Mon Sep 17 00:00:00 2001 From: Renard Date: Fri, 27 Sep 2019 15:37:46 -0300 Subject: Añadido: Changelog --- src/App.js | 3 +++ src/Changelog.js | 20 ++++++++++++++++++ src/ChangelogPage.js | 37 ++++++++++++++++++++++++++++++++++ src/Home.js | 57 +++++++++++++++++++++++++++++++++++++++------------- src/Post.js | 2 +- 5 files changed, 104 insertions(+), 15 deletions(-) create mode 100644 src/Changelog.js create mode 100644 src/ChangelogPage.js (limited to 'src') diff --git a/src/App.js b/src/App.js index 413e957..94b3156 100644 --- a/src/App.js +++ b/src/App.js @@ -19,6 +19,7 @@ import Board from "./Board"; import NotFound from "./NotFound"; import ThreadList from "./ThreadList"; import FAQ from "./FAQ"; +import ChangeLogPage from "./ChangelogPage"; class App extends Component { constructor() { @@ -179,7 +180,9 @@ class App extends Component { path="/list/:dir" nightMode={nightMode} /> + + diff --git a/src/Changelog.js b/src/Changelog.js new file mode 100644 index 0000000..62f36f7 --- /dev/null +++ b/src/Changelog.js @@ -0,0 +1,20 @@ +export const Changelog = [ + { + timestamp: 1569607703, + list: [ + { icon: "add", desc: "Implementación de changelog" }, + { icon: "add", desc: "Eliminación de posts e hilos" }, + { icon: "add", desc: "Sonido de notificación" }, + { icon: "bug", desc: "Pequeños arreglos en nightmode" }, + { icon: "bug", desc: "Fix: avatares faltantes" } + ] + }, + { + timestamp: 1569540827, + list: [ + { icon: "add", desc: "Página de FAQ" }, + { icon: "add", desc: "Licencia" }, + { icon: "add", desc: "Embed de audio y video" } + ] + } +]; diff --git a/src/ChangelogPage.js b/src/ChangelogPage.js new file mode 100644 index 0000000..6927ef8 --- /dev/null +++ b/src/ChangelogPage.js @@ -0,0 +1,37 @@ +import React from "react"; +import { Segment, Header, List } from "semantic-ui-react"; +import { Changelog } from "./Changelog"; +import Moment from "react-moment"; +import "moment/locale/es"; + +const ChangeLogPage = ({ nightMode }) => { + return ( + +
Changelog
+ + {Changelog.map(date => { + return ( + + + + + + + + + {date.list.map((change, i) => ( + + + {change.desc} + + ))} + + + ); + })} + +
+ ); +}; + +export default ChangeLogPage; diff --git a/src/Home.js b/src/Home.js index 5685d3b..858ce0f 100644 --- a/src/Home.js +++ b/src/Home.js @@ -1,9 +1,9 @@ import React, { Component } from "react"; -import { List, Header, Icon, Loader, Grid, Image } from "semantic-ui-react"; +import { Link } from "@reach/router"; +import { List, Header, Loader, Grid, Image } from "semantic-ui-react"; import Moment from "react-moment"; import "moment/locale/es"; - -import { Link } from "@reach/router"; +import { Changelog } from "./Changelog"; class Home extends Component { constructor() { @@ -201,22 +201,51 @@ class Home extends Component { - + + +
+ Changelog +
+ + + + + {Changelog[0].list.map((c, e) => ( + + + {c.desc} + + ))} + + + + Ver más +
Blotter
- {latestNews.map(n => ( - - -
- - - - - - ))} + {latestNews.map( + (n, i) => + i < 3 && ( + + +
+ + + + + + ) + )} diff --git a/src/Post.js b/src/Post.js index a4c8a4a..18d81e0 100644 --- a/src/Post.js +++ b/src/Post.js @@ -99,7 +99,7 @@ class Post extends Component { return response.json(); }) .then(resource => { - console.log(resource); + // TODO: Reportar resultado }); } -- cgit v1.2.1-18-gbd029