Converted the page editor from vue to component

This commit is contained in:
Dan Brown
2020-07-05 21:18:17 +01:00
parent 9d6f574494
commit 3bfd26bf86
11 changed files with 262 additions and 220 deletions

View File

@ -129,7 +129,7 @@ function parseOpts(name, element) {
function kebabToCamel(kebab) {
const ucFirst = (word) => word.slice(0,1).toUpperCase() + word.slice(1);
const words = kebab.split('-');
return words[0] + words.slice(1).map(ucFirst).join();
return words[0] + words.slice(1).map(ucFirst).join('');
}
/**