Experimenting with tailwind: splitting the index intro into a separate class; adding the logo
This commit is contained in:
parent
6864ba4fd6
commit
923b86b507
6 changed files with 88 additions and 21 deletions
|
@ -18,6 +18,12 @@ function transformTranslation(obj: any, depth = 1) {
|
|||
|
||||
let values = ""
|
||||
for (const key in obj) {
|
||||
if(key === "#"){
|
||||
continue;
|
||||
}
|
||||
if(key.match("^[a-zA-Z0-9_]*$") === null){
|
||||
throw "Invalid character in key: "+key
|
||||
}
|
||||
values += (Utils.Times((_) => " ", depth)) + key + ": " + transformTranslation(obj[key], depth + 1) + ",\n"
|
||||
}
|
||||
return `{${values}}`;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue