diff --git a/frontend/src/components/header/HelpButton.vue b/dashboard/src/components/header/HelpButton.vue
similarity index 100%
rename from frontend/src/components/header/HelpButton.vue
rename to dashboard/src/components/header/HelpButton.vue
diff --git a/frontend/src/components/header/NewSoftwareVersion.vue b/dashboard/src/components/header/NewSoftwareVersion.vue
similarity index 93%
rename from frontend/src/components/header/NewSoftwareVersion.vue
rename to dashboard/src/components/header/NewSoftwareVersion.vue
index f13420ca..65fcef33 100644
--- a/frontend/src/components/header/NewSoftwareVersion.vue
+++ b/dashboard/src/components/header/NewSoftwareVersion.vue
@@ -45,7 +45,9 @@ limitations under the License.
},
watch: {
libVersion() {
- if (localStorage.skillsDashboardLibVersion !== undefined && this.libVersion.localeCompare(localStorage.skillsDashboardLibVersion) > 0) {
+ if (localStorage.skillsDashboardLibVersion !== undefined
+ && this.libVersion !== undefined
+ && this.libVersion.localeCompare(localStorage.skillsDashboardLibVersion) > 0) {
this.showNewVersionAlert = true;
}
this.updateStorageIfNeeded();
diff --git a/frontend/src/components/header/SettingsButton.vue b/dashboard/src/components/header/SettingsButton.vue
similarity index 84%
rename from frontend/src/components/header/SettingsButton.vue
rename to dashboard/src/components/header/SettingsButton.vue
index 2c70af3d..6a384714 100644
--- a/frontend/src/components/header/SettingsButton.vue
+++ b/dashboard/src/components/header/SettingsButton.vue
@@ -16,8 +16,8 @@ limitations under the License.
-
- {{ displayName }}
+
+ {{ displayName }}
Settings
@@ -67,6 +67,21 @@ limitations under the License.
diff --git a/frontend/src/components/icons/CustomIconService.js b/dashboard/src/components/icons/CustomIconService.js
similarity index 100%
rename from frontend/src/components/icons/CustomIconService.js
rename to dashboard/src/components/icons/CustomIconService.js
diff --git a/frontend/src/components/inception/InceptionButton.vue b/dashboard/src/components/inception/InceptionButton.vue
similarity index 93%
rename from frontend/src/components/inception/InceptionButton.vue
rename to dashboard/src/components/inception/InceptionButton.vue
index 0f5d93b9..245d3f8e 100644
--- a/frontend/src/components/inception/InceptionButton.vue
+++ b/dashboard/src/components/inception/InceptionButton.vue
@@ -20,7 +20,7 @@ limitations under the License.
+
+
diff --git a/frontend/src/components/skills/AddSkillEvent.vue b/dashboard/src/components/skills/AddSkillEvent.vue
similarity index 100%
rename from frontend/src/components/skills/AddSkillEvent.vue
rename to dashboard/src/components/skills/AddSkillEvent.vue
diff --git a/frontend/src/components/skills/ChildRowSkillsDisplay.vue b/dashboard/src/components/skills/ChildRowSkillsDisplay.vue
similarity index 91%
rename from frontend/src/components/skills/ChildRowSkillsDisplay.vue
rename to dashboard/src/components/skills/ChildRowSkillsDisplay.vue
index 90eb09cd..004aa6e9 100644
--- a/frontend/src/components/skills/ChildRowSkillsDisplay.vue
+++ b/dashboard/src/components/skills/ChildRowSkillsDisplay.vue
@@ -41,7 +41,7 @@ limitations under the License.
Description
-
+
Not Specified
@@ -68,10 +68,11 @@ limitations under the License.
import SkillsService from './SkillsService';
import MediaInfoCard from '../utils/cards/MediaInfoCard';
import NumberFilter from '../../filters/NumberFilter';
+ import MarkdownText from '../utils/MarkdownText';
export default {
name: 'ChildRowSkillsDisplay',
- components: { MediaInfoCard, LoadingContainer },
+ components: { MarkdownText, MediaInfoCard, LoadingContainer },
props: {
projectId: {
type: String,
@@ -180,4 +181,23 @@ limitations under the License.
padding: 0 1rem 0 0.5rem;
}
+ .markdown blockquote {
+ padding: 10px 20px;
+ margin: 0 0 20px;
+ font-size: 1rem;
+ border-left: 5px solid #eeeeee;
+ color: #888;
+ line-height: 1.5;
+ }
+
+ .markdown pre {
+ border: 1px solid #dddddd !important;
+ margin: 1rem;
+ padding: 1rem;
+ overflow: auto;
+ font-size: 85%;
+ border-radius: 6px;
+ background-color: #f6f8fa;
+ }
+
diff --git a/frontend/src/components/skills/EditSkill.vue b/dashboard/src/components/skills/EditSkill.vue
similarity index 100%
rename from frontend/src/components/skills/EditSkill.vue
rename to dashboard/src/components/skills/EditSkill.vue
diff --git a/frontend/src/components/skills/SearchAllSkillsCheckbox.vue b/dashboard/src/components/skills/SearchAllSkillsCheckbox.vue
similarity index 100%
rename from frontend/src/components/skills/SearchAllSkillsCheckbox.vue
rename to dashboard/src/components/skills/SearchAllSkillsCheckbox.vue
diff --git a/frontend/src/components/skills/SimpleSkillsTable.vue b/dashboard/src/components/skills/SimpleSkillsTable.vue
similarity index 100%
rename from frontend/src/components/skills/SimpleSkillsTable.vue
rename to dashboard/src/components/skills/SimpleSkillsTable.vue
diff --git a/frontend/src/components/skills/SkillOverview.vue b/dashboard/src/components/skills/SkillOverview.vue
similarity index 100%
rename from frontend/src/components/skills/SkillOverview.vue
rename to dashboard/src/components/skills/SkillOverview.vue
diff --git a/frontend/src/components/skills/SkillPage.vue b/dashboard/src/components/skills/SkillPage.vue
similarity index 94%
rename from frontend/src/components/skills/SkillPage.vue
rename to dashboard/src/components/skills/SkillPage.vue
index 14b41156..9f0ee5e6 100644
--- a/frontend/src/components/skills/SkillPage.vue
+++ b/dashboard/src/components/skills/SkillPage.vue
@@ -85,16 +85,17 @@ limitations under the License.
]),
loadData() {
this.isLoading = true;
+ const { projectId, subjectId } = this.$route.params;
SkillsService.getSkillDetails(this.$route.params.projectId, this.$route.params.subjectId, this.$route.params.skillId)
.then((response) => {
- this.skill = Object.assign(response, { subjectId: this.$route.params.subjectId });
+ this.skill = Object.assign(response, { subjectId });
this.headerOptions = this.buildHeaderOptions(this.skill);
if (this.subject) {
this.isLoading = false;
} else {
this.loadSubjectDetailsState({
- projectId: this.$route.params.projectId,
- subjectId: this.$route.params.subjectId,
+ projectId,
+ subjectId,
}).then(() => {
this.isLoading = false;
});
diff --git a/frontend/src/components/skills/Skills.vue b/dashboard/src/components/skills/Skills.vue
similarity index 100%
rename from frontend/src/components/skills/Skills.vue
rename to dashboard/src/components/skills/Skills.vue
diff --git a/frontend/src/components/skills/SkillsSelector2.vue b/dashboard/src/components/skills/SkillsSelector2.vue
similarity index 100%
rename from frontend/src/components/skills/SkillsSelector2.vue
rename to dashboard/src/components/skills/SkillsSelector2.vue
diff --git a/frontend/src/components/skills/SkillsService.js b/dashboard/src/components/skills/SkillsService.js
similarity index 94%
rename from frontend/src/components/skills/SkillsService.js
rename to dashboard/src/components/skills/SkillsService.js
index 28764726..f8814c7d 100644
--- a/frontend/src/components/skills/SkillsService.js
+++ b/dashboard/src/components/skills/SkillsService.js
@@ -97,10 +97,10 @@ export default {
},
assignDependency(projectId, skillId, dependentSkillId, dependentProjectId) {
if (dependentProjectId) {
- return axios.post(`/admin/projects/${projectId}/skills/${skillId}/dependency/projects/${dependentProjectId}/skills/${dependentSkillId}`, null, { headers: { 'x-handleError': false } })
+ return axios.post(`/admin/projects/${projectId}/skills/${skillId}/dependency/projects/${dependentProjectId}/skills/${dependentSkillId}`, null, { handleError: false })
.then(createdRuleResult => createdRuleResult.data);
}
- return axios.post(`/admin/projects/${projectId}/skills/${skillId}/dependency/${dependentSkillId}`, null, { headers: { 'x-handleError': false } })
+ return axios.post(`/admin/projects/${projectId}/skills/${skillId}/dependency/${dependentSkillId}`, null, { handleError: false })
.then(createdRuleResult => createdRuleResult.data);
},
removeDependency(projectId, skillId, dependentSkillId, dependentProjectId) {
@@ -112,7 +112,7 @@ export default {
.then(createdRuleResult => createdRuleResult.data);
},
skillWithNameExists(projectId, skillName) {
- return axios.get(`/admin/projects/${projectId}/skillNameExists?skillName=${encodeURIComponent(skillName)}`)
+ return axios.post(`/admin/projects/${projectId}/skillNameExists`, { name: skillName })
.then(remoteRes => !remoteRes.data);
},
skillWithIdExists(projectId, skillId) {
@@ -125,7 +125,7 @@ export default {
},
saveSkillEvent(projectId, skillId, user, timestamp) {
const userId = user.dn ? user.dn : user.userId;
- return axios.put(`/api/projects/${projectId}/skills/${skillId}`, { userId, timestamp }, { headers: { 'x-handleError': false } })
+ return axios.put(`/api/projects/${projectId}/skills/${skillId}`, { userId, timestamp }, { handleError: false })
.then(remoteRes => remoteRes.data);
},
checkIfSkillBelongsToGlobalBadge(projectId, skillId) {
diff --git a/frontend/src/components/skills/SkillsTable.vue b/dashboard/src/components/skills/SkillsTable.vue
similarity index 97%
rename from frontend/src/components/skills/SkillsTable.vue
rename to dashboard/src/components/skills/SkillsTable.vue
index 8bf7542d..00e470f4 100644
--- a/frontend/src/components/skills/SkillsTable.vue
+++ b/dashboard/src/components/skills/SkillsTable.vue
@@ -48,14 +48,14 @@ limitations under the License.
+
{{ props.row.created | date }}
-
-
+
+
+
+
diff --git a/dashboard/src/components/utils/MarkdownText.vue b/dashboard/src/components/utils/MarkdownText.vue
new file mode 100644
index 00000000..51675981
--- /dev/null
+++ b/dashboard/src/components/utils/MarkdownText.vue
@@ -0,0 +1,63 @@
+/*
+Copyright 2020 SkillTree
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+
+
+
+
+
+
+
+
diff --git a/frontend/src/components/utils/Navigation.vue b/dashboard/src/components/utils/Navigation.vue
similarity index 98%
rename from frontend/src/components/utils/Navigation.vue
rename to dashboard/src/components/utils/Navigation.vue
index ccde9f05..39bd078b 100644
--- a/frontend/src/components/utils/Navigation.vue
+++ b/dashboard/src/components/utils/Navigation.vue
@@ -28,6 +28,7 @@ limitations under the License.