From 4060bbc94da5d4b2fb8d0e18750a11589c778c9e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 2 Aug 2020 10:53:15 +0000 Subject: [PATCH 1/5] Bump semantic-ui-react from 0.88.2 to 1.1.0 Bumps [semantic-ui-react](https://github.com/Semantic-Org/Semantic-UI-React) from 0.88.2 to 1.1.0. - [Release notes](https://github.com/Semantic-Org/Semantic-UI-React/releases) - [Changelog](https://github.com/Semantic-Org/Semantic-UI-React/blob/master/CHANGELOG.md) - [Commits](https://github.com/Semantic-Org/Semantic-UI-React/compare/v0.88.2...v1.1.0) Signed-off-by: dependabot[bot] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9348fc4..3848a98 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "react-syntax-highlighter": "^12.2.1", "react-with-important-style": "^0.2.2", "semantic-ui-css": "^2.4.1", - "semantic-ui-react": "^0.88.2", + "semantic-ui-react": "^1.1.0", "sha.js": "^2.4.11", "typed.js": "^2.0.11" }, From 5dcc7cdf7f49f78b58ccea2f33750aeffb436e39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9B=90=EB=8D=94?= Date: Sun, 2 Aug 2020 19:56:25 +0900 Subject: [PATCH 2/5] Update build.yml --- .github/workflows/build.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b0c7dde..8008c6b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,9 @@ on: - - push - - pull_request + pull_request: + push: + branches: + - master + - beta jobs: build: name: Test Build From a91d1130f0c101af0588c850ed5df2a43eebd14a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 2 Aug 2020 11:08:03 +0000 Subject: [PATCH 3/5] Bump react-git-info from 1.1.0 to 2.0.0 Bumps [react-git-info](https://github.com/AbhyudayaSharma/react-git-info) from 1.1.0 to 2.0.0. - [Release notes](https://github.com/AbhyudayaSharma/react-git-info/releases) - [Commits](https://github.com/AbhyudayaSharma/react-git-info/compare/v1.1.0...v2.0.0) Signed-off-by: dependabot[bot] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9348fc4..2bfdef3 100644 --- a/package.json +++ b/package.json @@ -45,6 +45,6 @@ ] }, "devDependencies": { - "react-git-info": "^1.1.0" + "react-git-info": "^2.0.0" } } From bd5fa6e72a1bec94a717059b7b3b3cb3db18e490 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9B=90=EB=8D=94?= Date: Sun, 2 Aug 2020 21:28:13 +0900 Subject: [PATCH 4/5] Added Delete --- src/routes/ManageBot.js | 37 ++++++++++++++++++++++++++++++++----- 1 file changed, 32 insertions(+), 5 deletions(-) diff --git a/src/routes/ManageBot.js b/src/routes/ManageBot.js index 1a5ba54..f7d962a 100644 --- a/src/routes/ManageBot.js +++ b/src/routes/ManageBot.js @@ -13,7 +13,8 @@ import { Image, Button, Popup, - Table + Table, + Modal } from 'semantic-ui-react' import Redirect from '../components/Redirect' import ReactMarkdown from 'react-markdown/with-html' @@ -36,6 +37,7 @@ class ManageBot extends Component { token: '', owners: '', ownersError: '', + delete: '', info: { code: 0 }, data: { state: 0, data: {} } } @@ -144,6 +146,21 @@ class ManageBot extends Component { else window.location.reload() }) } + + removeBot = async() => { + const token = localStorage.token, + id = localStorage.id, + date = localStorage.date + await fetch(config.api + '/bots/' + this.state.info.data.id, { + method: 'DELETE', + headers: { token, id, time: date } + }) + .then(r => r.json()) + .then(res => { + if (res.code !== 200) alert(res.message) + else window.location.href = '/?message=delete' + }) + } async componentDidMount() { const res = await fetch( config.api + '/bots/completeInfo/' + this.props.match.params.id, @@ -450,10 +467,20 @@ class ManageBot extends Component {

봇을 삭제합니다

봇을 영구적으로 삭제합니다.

- } - /> + } closeIcon> + + {bot.name} 삭제하기 + + + +

봇을 삭제하시려면 {bot.name} 을 입력해주세요.

+ +

+ 봇을 삭제하시게되면 다시는 복구하실 수 없다는 점을 동의합니다.
+