aboutsummaryrefslogtreecommitdiff
path: root/src/Post.js
diff options
context:
space:
mode:
authorLibravatar Renard 2019-10-02 12:56:52 -0300
committerLibravatar Renard 2019-10-02 12:56:52 -0300
commit839fb61c475ced7b2e946fb16041550a5438e584 (patch)
tree08cb30317fa763dcd4fc604d77c63220602463e0 /src/Post.js
parentae5577ef9cd3dc4f532a0a5645517a8944f2b341 (diff)
downloadbai-client-839fb61c475ced7b2e946fb16041550a5438e584.tar.gz
bai-client-839fb61c475ced7b2e946fb16041550a5438e584.tar.xz
bai-client-839fb61c475ced7b2e946fb16041550a5438e584.zip
Vanidad
Diffstat (limited to 'src/Post.js')
-rw-r--r--src/Post.js32
1 files changed, 25 insertions, 7 deletions
diff --git a/src/Post.js b/src/Post.js
index 68ba36e..5a938bf 100644
--- a/src/Post.js
+++ b/src/Post.js
@@ -146,7 +146,7 @@ class Post extends Component {
const seedrandom = require("seedrandom");
const rng = seedrandom(threadId + index);
const idRng = seedrandom(user_id);
- const idColor =
+ let idColor =
"rgb(" +
Math.round(idRng() * 255) +
", " +
@@ -214,13 +214,31 @@ class Post extends Component {
}
}
- let starColor;
+ let starColor = "grey";
+ let icon = "user";
if (user_id === "CAP_USER*") {
- starColor = "yellow";
- } else if (isMine) {
starColor = "blue";
- } else {
- starColor = "grey";
+ icon = "check circle";
+ } else if (isMine) {
+ starColor = "olive";
+ } else if (user_id === "???T") {
+ icon = "user secret";
+ }
+ if (post.name === "Renard ★") {
+ starColor = "yellow";
+ icon = "chess queen";
+ user_id = "Bai-Client Dev";
+ idColor = "#FBBD08";
+ }
+ if (post.name === "TOW ★") {
+ starColor = "pink";
+ icon = "chess queen";
+ user_id = "Weabot Dev";
+ idColor = "#e03997";
+ }
+ if (post.name === "Staff ★") {
+ user_id = "Staff de BaI";
+ idColor = "rgba(255, 255, 255, 0.7);";
}
let hasVideo = post.file.endsWith(".webm");
@@ -283,7 +301,7 @@ class Post extends Component {
<Moment fromNow unix locale="es" date={post.timestamp} />
</div>
<div>
- <Icon name="star" color={starColor} />
+ <Icon name={icon} color={starColor} />
{user_id === "CAP_USER*" ? (
"Usuario verificado"
) : (