diff --git a/package.json b/package.json index e5bb59b..99baa98 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,8 @@ "react-dom": "^16.13.0", "react-scripts": "^3.4.1", "react-timeago": "^4.4.0", - "typescript": "^4.0.2" + "typescript": "^4.0.2", + "workbox-sw": "^5.1.3" }, "scripts": { "start": "react-scripts start", diff --git a/src/UserAction.js b/src/UserAction.js index 75b54dc..01a2304 100644 --- a/src/UserAction.js +++ b/src/UserAction.js @@ -175,8 +175,6 @@ export class LoginForm extends Component { 举报记录、管理日志等都是公开的
- {token.value}
-
复制 User Token
diff --git a/src/infrastructure/widgets.css b/src/infrastructure/widgets.css
index 4808015..4edfcc2 100644
--- a/src/infrastructure/widgets.css
+++ b/src/infrastructure/widgets.css
@@ -223,9 +223,18 @@ a.app-switcher-item, .app-switcher-item a {
color: #00c;
}
.thuhole-login-popup p {
- margin: .75em 0;
+ margin: 1.25em 0;
text-align: center;
}
+.thuhole-login-popup-info p {
+ margin: .25em 1em;
+ text-align: left;
+}
+.thuhole-login-popup-info ul {
+ margin: .75em 1em;
+ text-align: left;
+ font-size: 75%;
+}
/* override ant design */
.thuhole-login-popup input, .thuhole-login-popup button {
font-size: .85em;
diff --git a/src/infrastructure/widgets.js b/src/infrastructure/widgets.js
index 0cc1960..ec93977 100644
--- a/src/infrastructure/widgets.js
+++ b/src/infrastructure/widgets.js
@@ -55,8 +55,16 @@ class LoginPopupSelf extends Component {
this.state={
loading_status: 'idle',
}
+
+ this.input_token_ref=React.createRef();
};
-
+
+ setThuhole(tar, ref) {
+ console.log(tar);
+ tar.href = '/_login?p=thuhole&token=' + ref.current.value;
+ console.log(tar);
+ }
+
render() {
return (
@@ -66,27 +74,30 @@ class LoginPopupSelf extends Component {
通过第三方验证登陆T大树洞
-+
闭社 -
-- -
-+ +
+-
-+
++
提醒: +
+