From cd9b802b71df4e2701e2311b2995fe70a9692ae4 Mon Sep 17 00:00:00 2001
From: Renard
Date: Mon, 16 Sep 2019 01:22:56 -0300
Subject: Prettier
---
src/Api.js | 20 ++---
src/App.css | 8 +-
src/App.js | 54 ++++++++-----
src/Board.js | 176 +++++++++++++++++++++++-------------------
src/Home.js | 227 ++++++++++++++++++++++++++++++++-----------------------
src/NotFound.js | 24 +++---
src/Post.js | 159 ++++++++++++++++++++++++--------------
src/Quotes.js | 190 +++++++++++++++++++++++++++++++++++++++++++++-
src/ReplyForm.js | 187 +++++++++++++++++++++++++--------------------
src/Thread.js | 171 +++++++++++++++++++++++------------------
src/index.html | 18 ++---
11 files changed, 801 insertions(+), 433 deletions(-)
(limited to 'src')
diff --git a/src/Api.js b/src/Api.js
index b564aa2..3999b7a 100644
--- a/src/Api.js
+++ b/src/Api.js
@@ -1,13 +1,15 @@
async function getBoards() {
- var ret = await fetch("https://bienvenidoainternet.org/cgi/api/boards")
- .then((response) => {
- return response.json();
- }).then((resource) => {
- //console.log(resource["boards"]);
- return resource["boards"];
- }).catch(console.error)
+ var ret = await fetch("https://bienvenidoainternet.org/cgi/api/boards")
+ .then(response => {
+ return response.json();
+ })
+ .then(resource => {
+ //console.log(resource["boards"]);
+ return resource["boards"];
+ })
+ .catch(console.error);
- return ret;
+ return ret;
}
-export default getBoards;
\ No newline at end of file
+export default getBoards;
diff --git a/src/App.css b/src/App.css
index 16aba4d..3b800da 100644
--- a/src/App.css
+++ b/src/App.css
@@ -19,7 +19,7 @@
}
.vipFont {
- font-family: Mona, Monapo, IPAMonaPGothic, 'MS PGothic', YOzFontAA97;
+ font-family: Mona, Monapo, IPAMonaPGothic, "MS PGothic", YOzFontAA97;
}
.tripcode {
@@ -28,11 +28,11 @@
}
.username {
- color: #B5BD68;
+ color: #b5bd68;
}
.username.sage {
- color: #81A2BE;
+ color: #81a2be;
}
/* a quien estás citando? */
@@ -77,4 +77,4 @@
.deleted {
color: rgba(0, 0, 0, 0.4);
font-style: italic;
-}
\ No newline at end of file
+}
diff --git a/src/App.js b/src/App.js
index 99860cc..7b6bc94 100644
--- a/src/App.js
+++ b/src/App.js
@@ -1,14 +1,14 @@
-import React, { Component } from 'react';
+import React, { Component } from "react";
import { render } from "react-dom";
import { Router, Link } from "@reach/router";
-import 'fomantic-ui-css/semantic.css';
+import "fomantic-ui-css/semantic.css";
import "./App.css";
import { Dropdown, Menu, Icon, Loader, Container } from "semantic-ui-react";
import Home from "./Home";
import Thread from "./Thread";
import Board from "./Board";
-import NotFound from "./NotFound"
+import NotFound from "./NotFound";
class App extends Component {
constructor() {
@@ -16,16 +16,15 @@ class App extends Component {
this.state = {
boardList: [],
isLoaded: false
- }
-
+ };
}
componentDidMount() {
fetch("https://bienvenidoainternet.org/cgi/api/boards")
- .then((response) => {
+ .then(response => {
return response.json();
})
- .then((resource) => {
+ .then(resource => {
this.setState({ boardList: resource["boards"], isLoaded: true });
})
.catch(console.error);
@@ -37,8 +36,8 @@ class App extends Component {
return (
Cargando ...
-
- )
+
+ );
}
}
@@ -49,15 +48,37 @@ class App extends Component {