diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml deleted file mode 100644 index c88393d..0000000 --- a/.gitea/workflows/main.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: 'deploy' -on: [push] - -jobs: - deploy: - runs-on: ubuntu-latest - steps: - - name: Cloning repo - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: Get Repo Name - id: repo_name - run: echo "::set-output name=repo::$(echo ${GITHUB_REPOSITORY##*/})" - - - name: Push to dokku - uses: dokku/github-action@master - with: - branch: 'main' - git_remote_url: 'ssh://dokku@staging.discours.io:22/${{ steps.repo_name.outputs.repo }}' - ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} \ No newline at end of file diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index bd63e85..1d5a2f0 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -229,21 +229,6 @@ mutation Logout { } } -mutation CreateUser { - _create_user( - params: { - email: "test@domain.com", - password: "", - nickname: "test", - } - ) { - id - email - roles - } -} - - mutation UpdateUser { _update_user( params: { diff --git a/README.md b/README.md index 7432f37..587ca5d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,3 @@ -This repo is with CI/CD Gitea needs and fetch.conf for fetch-daemon service - -

Logo diff --git a/dashboard/src/components/EditUserModal.tsx b/dashboard/src/components/EditUserModal.tsx index 5c4aa79..8184786 100644 --- a/dashboard/src/components/EditUserModal.tsx +++ b/dashboard/src/components/EditUserModal.tsx @@ -113,13 +113,6 @@ const EditUserModal = ({ status: 'success', position: 'top-right', }); - } else if (res.data?._create_user?.id) { - toast({ - title: 'User created successfully', - isClosable: true, - status: 'success', - position: 'top-right', - }); } onClose(); updateUserList(); diff --git a/dashboard/src/graphql/mutation/index.ts b/dashboard/src/graphql/mutation/index.ts index 2933534..47e9acf 100644 --- a/dashboard/src/graphql/mutation/index.ts +++ b/dashboard/src/graphql/mutation/index.ts @@ -38,14 +38,6 @@ export const UpdateUser = ` } `; -export const CreateUser = ` - mutation createUser($params: CreateUserInput!) { - _create_user(params: $params) { - id - } - } -`; - export const DeleteUser = ` mutation deleteUser($params: DeleteUserInput!) { _delete_user(params: $params) { diff --git a/dashboard/src/pages/Users.tsx b/dashboard/src/pages/Users.tsx index b9e042d..3a0cc0a 100644 --- a/dashboard/src/pages/Users.tsx +++ b/dashboard/src/pages/Users.tsx @@ -189,13 +189,6 @@ export default function Users() { status: 'success', position: 'top-right', }); - } else if (res.data?._create_user?.id) { - toast({ - title: 'User verification successful', - isClosable: true, - status: 'success', - position: 'top-right', - }); } updateUserList(); }; @@ -279,17 +272,6 @@ export default function Users() { }); updateUserList(); return; - } else if (res.data?._create_user?.id) { - toast({ - title: `Multi factor authentication ${ - user.is_multi_factor_auth_enabled ? 'disabled' : 'enabled' - } for user`, - isClosable: true, - status: 'success', - position: 'top-right', - }); - updateUserList(); - return; } toast({ title: 'Multi factor authentication update failed for user', diff --git a/fetch.conf b/fetch.conf deleted file mode 100644 index 71efcca..0000000 --- a/fetch.conf +++ /dev/null @@ -1 +0,0 @@ -https://github.com/authorizerdev/authorizer \ No newline at end of file diff --git a/server/graph/mod.go b/server/graph/mod.go deleted file mode 100644 index 8566596..0000000 --- a/server/graph/mod.go +++ /dev/null @@ -1 +0,0 @@ -package graph \ No newline at end of file diff --git a/server/graph/model/mod.go b/server/graph/model/mod.go deleted file mode 100644 index 0c3b4f2..0000000 --- a/server/graph/model/mod.go +++ /dev/null @@ -1 +0,0 @@ -package model \ No newline at end of file