{!!window.LATEST_POST_ID &&
parseInt(info.pid, 10) > window.LATEST_POST_ID && (
@@ -292,8 +294,11 @@ class FlowItem extends PureComponent {
{info.author_title && (
{`"${info.author_title}"`}
)}
+ {info.is_tmp && (
+
临时账号
+ )}
{info.is_reported &&
R }
- {!!do_delete && !!info.can_del && (
+ {!!do_delete && !!can_del && (
{
@@ -316,10 +321,10 @@ class FlowItem extends PureComponent {
{info.blocked_count && (
{info.blocked_count}
)}
- {info.cw !== null && (!do_edit_cw || !info.can_del) && (
+ {info.cw !== null && (!do_edit_cw || !can_del) && (
{info.cw}
)}
- {!!do_edit_cw && !!info.can_del && (
+ {!!do_edit_cw && !!can_del && (
)}
{info.allow_search && 📢 }
-
+
{!!info.hot_score && (
hot score: {info.hot_score}
@@ -1081,6 +1086,9 @@ class FlowItemRow extends PureComponent {
{this.props.info.author_title && (
{`"${this.props.info.author_title}"`}
)}
+ {this.props.info.is_tmp && (
+ 临时账号
+ )}
{this.props.info.cw !== null && (
{this.props.info.cw}
)}
diff --git a/src/color_picker.js b/src/color_picker.js
index afcf240..691b325 100644
--- a/src/color_picker.js
+++ b/src/color_picker.js
@@ -8,9 +8,10 @@ export class ColorPicker {
this.current_h = Math.random();
}
- get(name) {
+ get(name, is_tmp = false) {
name = name.toLowerCase();
- if (name === '洞主') return ['hsl(0,0%,97%)', 'hsl(0,0%,16%)'];
+ if (is_tmp) return ['hsl(0, 0%, 80%)', 'hsl(0, 0%, 30%)'];
+ if (name === '洞主') return ['hsl(0, 0%, 97%)', 'hsl(0, 0%, 16%)'];
if (!this.names[name]) {
this.current_h += golden_ratio_conjugate;
diff --git a/src/flows_api.js b/src/flows_api.js
index c7b0781..adb80ab 100644
--- a/src/flows_api.js
+++ b/src/flows_api.js
@@ -27,7 +27,7 @@ export const parse_replies = (replies, color_picker) =>
.sort((a, b) => parseInt(a.cid, 10) - parseInt(b.cid, 10))
.map((info) => {
info.name = gen_name(info.name_id);
- info._display_color = color_picker.get(info.name);
+ info._display_color = color_picker.get(info.name, info.is_tmp);
info.variant = {};
return info;
});