From b5f1caad7cecb4ac1834c979a9c1f8ad412a694c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com>
Date: Mon, 6 Jan 2020 16:36:57 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/react/src/modules/tpm/jupyter/index.js | 2 +-
.../src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/public/react/src/modules/tpm/jupyter/index.js b/public/react/src/modules/tpm/jupyter/index.js
index 6883aa72f..8c07b0bee 100644
--- a/public/react/src/modules/tpm/jupyter/index.js
+++ b/public/react/src/modules/tpm/jupyter/index.js
@@ -367,7 +367,7 @@ function JupyterTPI (props) {
From b30885da7edbdfc2c1b9fc26845eb24fd1559f5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Mon, 6 Jan 2020 16:52:33 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/tpm/TPMBanner.js | 13 +++++++++ public/react/src/modules/tpm/TPMIndex.js | 32 +++++++++++------------ 2 files changed, 29 insertions(+), 16 deletions(-) diff --git a/public/react/src/modules/tpm/TPMBanner.js b/public/react/src/modules/tpm/TPMBanner.js index f79301be0..6c57bcff8 100644 --- a/public/react/src/modules/tpm/TPMBanner.js +++ b/public/react/src/modules/tpm/TPMBanner.js @@ -135,6 +135,13 @@ class TPMBanner extends Component { this.setState({ openknow:true }) + setTimeout(()=>{ + this.openknow() + this.setState({ + openknow:false + }) + }, 10000); + }else{ this.setState({ openknow:false @@ -158,6 +165,12 @@ class TPMBanner extends Component { this.setState({ openshowpublictype: true }) + setTimeout(()=>{ + this.openshowpublic() + this.setState({ + openshowpublictype:false + }) + }, 10000); } else { this.setState({ openshowpublictype: false diff --git a/public/react/src/modules/tpm/TPMIndex.js b/public/react/src/modules/tpm/TPMIndex.js index 86d0e9637..5edea264f 100644 --- a/public/react/src/modules/tpm/TPMIndex.js +++ b/public/react/src/modules/tpm/TPMIndex.js @@ -163,7 +163,7 @@ class TPMIndex extends Component { openknows:false }) let newTPMsettings=this.props.user&&this.props.user.user_id+'newTPMsettings' - storage.setItem(newTPMsettings,true); + storage.setItem(newTPMsettings,false); } @@ -174,7 +174,7 @@ class TPMIndex extends Component { let newTPMsettings=window.localStorage.getItem(getnewTPMsettings) if(newTPMsettings===undefined||newTPMsettings===false||newTPMsettings===null){ this.setState({ - openknows:true + openknows:false }) }else{ this.setState({ @@ -453,20 +453,20 @@ class TPMIndex extends Component { { this.state.is_jupyter===false?