-
+
Not Specified
@@ -68,10 +67,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 +180,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 96%
rename from frontend/src/components/skills/EditSkill.vue
rename to dashboard/src/components/skills/EditSkill.vue
index 5866faf9..891d3cd3 100644
--- a/frontend/src/components/skills/EditSkill.vue
+++ b/dashboard/src/components/skills/EditSkill.vue
@@ -258,7 +258,7 @@ limitations under the License.
if (this.isEdit) {
this.loadSkillDetails();
} else {
- this.skillInternal = Object.assign({ version: 0 }, this.skillInternal);
+ this.skillInternal = { version: 0, ...this.skillInternal };
this.findLatestSkillVersion();
}
this.setupValidation();
@@ -310,7 +310,7 @@ limitations under the License.
const self = this;
Validator.extend('uniqueName', {
- getMessage: field => `The value for the ${field} is already taken.`,
+ getMessage: (field) => `The value for the ${field} is already taken.`,
validate(value) {
if (self.isEdit && (value === self.initial.skillName || self.initial.skillName.localeCompare(value, 'en', { sensitivity: 'base' }) === 0)) {
return true;
@@ -322,7 +322,7 @@ limitations under the License.
});
Validator.extend('uniqueId', {
- getMessage: field => `The value for the ${field} is already taken.`,
+ getMessage: (field) => `The value for the ${field} is already taken.`,
validate(value) {
if (self.isEdit && self.initial.skillId === value) {
return true;
@@ -350,7 +350,7 @@ limitations under the License.
immediate: false,
});
Validator.extend('cantBe0IfHours0', {
- getMessage: field => `${field} must be > 0 if Hours = 0`,
+ getMessage: (field) => `${field} must be > 0 if Hours = 0`,
validate(value) {
if (parseInt(value, 10) > 0 || parseInt(self.skillInternal.pointIncrementIntervalHrs, 10) > 0) {
return true;
@@ -361,7 +361,7 @@ limitations under the License.
immediate: false,
});
Validator.extend('cantBe0IfMins0', {
- getMessage: field => `${field} must be > 0 if Minutes = 0`,
+ getMessage: (field) => `${field} must be > 0 if Minutes = 0`,
validate(value) {
if (parseInt(value, 10) > 0 || parseInt(self.skillInternal.pointIncrementIntervalMins, 10) > 0) {
return true;
@@ -426,7 +426,7 @@ limitations under the License.
this.skillInternal.name = InputSanitizer.sanitize(this.skillInternal.name);
this.skillInternal.skillId = InputSanitizer.sanitize(this.skillInternal.skillId);
this.skillInternal.helpUrl = InputSanitizer.sanitize(this.skillInternal.helpUrl);
- this.skillInternal = Object.assign({ subjectId: this.subjectId }, this.skillInternal);
+ this.skillInternal = { subjectId: this.subjectId, ...this.skillInternal };
this.$emit('skill-saved', this.skillInternal);
this.close();
}
@@ -435,7 +435,7 @@ limitations under the License.
loadSkillDetails() {
SkillsService.getSkillDetails(this.projectId, this.subjectId, this.skillId)
.then((loadedSkill) => {
- this.skillInternal = Object.assign({ originalSkillId: loadedSkill.skillId, isEdit: this.isEdit }, loadedSkill);
+ this.skillInternal = { originalSkillId: loadedSkill.skillId, isEdit: this.isEdit, ...loadedSkill };
this.initial.skillId = this.skillInternal.skillId;
this.initial.skillName = this.skillInternal.name;
})
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 99%
rename from frontend/src/components/skills/SimpleSkillsTable.vue
rename to dashboard/src/components/skills/SimpleSkillsTable.vue
index 8a02ff8e..6832076c 100644
--- a/frontend/src/components/skills/SimpleSkillsTable.vue
+++ b/dashboard/src/components/skills/SimpleSkillsTable.vue
@@ -31,7 +31,6 @@ limitations under the License.