-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from lukashornych/dev
Release loading support and refactor
- Loading branch information
Showing
42 changed files
with
168 additions
and
46 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<script setup lang="ts"> | ||
/** | ||
* Loading spinner icon made by Fran Pérez https://codepen.io/mrrocks/pen/ExLovj | ||
*/ | ||
</script> | ||
|
||
<template> | ||
<svg class="spinner" width="1.5rem" height="1.5rem" viewBox="0 0 66 66" xmlns="http://www.w3.org/2000/svg"> | ||
<circle class="path" fill="none" stroke-width="6" stroke-linecap="round" cx="33" cy="33" r="30"></circle> | ||
</svg> | ||
</template> | ||
|
||
<style lang="scss" scoped> | ||
// This is just to center the spinner | ||
html, body { height: 100%; } | ||
body { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
// Here is where the magic happens | ||
$offset: 187; | ||
$duration: 1.4s; | ||
.spinner { | ||
animation: rotator $duration linear infinite; | ||
} | ||
@keyframes rotator { | ||
0% { transform: rotate(0deg); } | ||
100% { transform: rotate(270deg); } | ||
} | ||
.path { | ||
stroke-dasharray: $offset; | ||
stroke-dashoffset: 0; | ||
transform-origin: center; | ||
animation: | ||
dash $duration ease-in-out infinite, | ||
colors ($duration*4) ease-in-out infinite; | ||
} | ||
@keyframes colors { | ||
0% { stroke: rgba(var(--v-theme-on-surface), var(--v-high-emphasis-opacity)); } | ||
25% { stroke: rgba(var(--v-theme-on-surface), var(--v-high-emphasis-opacity)); } | ||
50% { stroke: rgba(var(--v-theme-on-surface), var(--v-high-emphasis-opacity)); } | ||
75% { stroke: rgba(var(--v-theme-on-surface), var(--v-high-emphasis-opacity)); } | ||
100% { stroke: rgba(var(--v-theme-on-surface), var(--v-high-emphasis-opacity)); } | ||
} | ||
@keyframes dash { | ||
0% { stroke-dashoffset: $offset; } | ||
50% { | ||
stroke-dashoffset: $offset/4; | ||
transform:rotate(135deg); | ||
} | ||
100% { | ||
stroke-dashoffset: $offset; | ||
transform:rotate(450deg); | ||
} | ||
} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<script setup lang="ts"> | ||
/** | ||
* Generic loading screen to display while a tab component is being initialized. | ||
*/ | ||
import VLoadingIcon from '@/components/base/VLoadingIcon.vue' | ||
</script> | ||
|
||
<template> | ||
<div class="loading-screen"> | ||
<div class="loading-screen-info"> | ||
<VLoadingIcon width="3rem" height="3rem"/> | ||
<span>Loading, please wait ...</span> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style lang="scss" scoped> | ||
.loading-screen { | ||
display: grid; | ||
align-items: center; | ||
justify-items: center; | ||
} | ||
.loading-screen-info { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 1rem; | ||
align-items: center; | ||
} | ||
</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 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 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 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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ditorSchemaViewerContainerSectionList.vue → ...ditorSchemaViewerContainerSectionList.vue
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 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
File renamed without changes.
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
Oops, something went wrong.