-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(style): add spinner on OidcCallback view + rearrange css
- Loading branch information
1 parent
3ed218b
commit 0d886a4
Showing
10 changed files
with
31 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#layout { | ||
min-width: 100vw; | ||
min-height: 100vh; | ||
background-color: $color-tertiary-lightest; | ||
font-family: $primary-font; | ||
font-size: $font-size; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,5 @@ export default { | |
} | ||
} | ||
</script> | ||
|
||
<style scoped lang="scss" src="./Layout.scss"></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.oidc-callback-view { | ||
width: 100vw; | ||
height: 100vh; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,31 @@ | ||
<template> | ||
<div class="oidc-callback-view"> | ||
OIDC Callback view | ||
<BIMDataBigSpinner style="transform: translateX(130px);"></BIMDataBigSpinner> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import { onMounted } from 'vue'; | ||
import { useRouter } from 'vue-router'; | ||
import { useGlobalState } from '@/state/globalState'; | ||
// Components | ||
import BIMDataBigSpinner from '@bimdata/design-system/dist/js/BIMDataComponents/vue3/BIMDataBigSpinner.js'; | ||
export default { | ||
components: { | ||
BIMDataBigSpinner | ||
}, | ||
setup() { | ||
const router = useRouter(); | ||
const { signInCallback } = useGlobalState(); | ||
onMounted(() => { | ||
signInCallback().then(result => { | ||
router.push({ path: result.state ? result.state : '/' }); | ||
}); | ||
signInCallback().then( | ||
result => router.push({ path: result.state ? result.state : '/' }) | ||
); | ||
}); | ||
} | ||
} | ||
</script> | ||
|
||
<style scoped lang="scss" src="./OidcCallback.scss"></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters