-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#2490: added dashboard skills (inception) views and all the associate…
…d cypress tests
- Loading branch information
Showing
16 changed files
with
252 additions
and
264 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
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
37 changes: 37 additions & 0 deletions
37
dashboard-prime/src/components/inception /InceptionButton.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<script setup> | ||
import { onMounted, ref } from 'vue' | ||
import { SkillsLevelJS, SkillsConfiguration } from '@skilltree/skills-client-js' | ||
const isConfigurationInitialized = ref(false) | ||
onMounted(() => { | ||
SkillsConfiguration.afterConfigure() | ||
.then(() => { | ||
const skillsLevel = new SkillsLevelJS('Inception') | ||
if (document.querySelector('#skills-level-container')) { | ||
skillsLevel.attachTo(document.querySelector('#skills-level-container')) | ||
} | ||
}).finally(() => { | ||
isConfigurationInitialized.value = true | ||
}) | ||
}) | ||
</script> | ||
|
||
<template> | ||
<router-link to="/administrator/skills/Inception" aria-label="Dashboard Skills"> | ||
<Button v-show="isConfigurationInitialized" | ||
outlined | ||
icon="fas fa-trophy" | ||
label="Level 1" | ||
severity="info"> | ||
<i class="fas fa-trophy mr-1" aria-hidden="true"></i> | ||
<span id="skills-level-container" /> | ||
</Button> | ||
</router-link> | ||
</template> | ||
|
||
<style scoped> | ||
</style> |
32 changes: 32 additions & 0 deletions
32
dashboard-prime/src/components/inception /InceptionSkills.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<script setup> | ||
import { onMounted, watch } from 'vue' | ||
import { useSkillsDisplayAttributesState } from '@/skills-display/stores/UseSkillsDisplayAttributesState.js' | ||
import SkillsDisplayHome from '@/skills-display/components/SkillsDisplayHome.vue' | ||
import { useSkillsDisplayThemeState } from '@/skills-display/stores/UseSkillsDisplayThemeState.js' | ||
import { useRoute } from 'vue-router' | ||
const skillsDisplayAttributes = useSkillsDisplayAttributesState() | ||
const themeState = useSkillsDisplayThemeState() | ||
skillsDisplayAttributes.projectId = 'Inception' | ||
skillsDisplayAttributes.serviceUrl = '' | ||
skillsDisplayAttributes.loadingConfig = false | ||
skillsDisplayAttributes.internalBackButton = false | ||
themeState.theme.landingPageTitle = 'Dashboard Skills' | ||
themeState.theme.disableSkillTreeBrand = true | ||
themeState.theme.disableBreadcrumb = true | ||
skillsDisplayAttributes.loadConfigStateIfNeeded() | ||
</script> | ||
|
||
<template> | ||
<div> | ||
<skills-display-home id="inception" class="my-3" /> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
export default { | ||
Local: 'Local', | ||
SkillsClient: 'SkillsClient', | ||
LocalTest: 'LocalTest' | ||
LocalTest: 'LocalTest', | ||
Inception: 'Inception', | ||
}; |
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
Oops, something went wrong.