Add dimension schemas

This commit is contained in:
Misode
2020-06-07 21:55:33 +02:00
parent ad25676276
commit d1bf51409a
6 changed files with 26 additions and 3 deletions

View File

@@ -6,6 +6,8 @@ import {
ConditionSchema,
LootTableSchema,
AdvancementSchema,
DimensionSchema,
DimensionTypeSchema,
LOCALES,
locale
} from 'minecraft-schemas'
@@ -60,6 +62,8 @@ Promise.all([
'loot-table': new DataModel(LootTableSchema),
'predicate': new DataModel(ConditionSchema),
'advancement': new DataModel(AdvancementSchema),
'dimension': new DataModel(DimensionSchema),
'dimension-type': new DataModel(DimensionTypeSchema),
'sandbox': new DataModel(SandboxSchema)
}

View File

@@ -2,10 +2,14 @@
"title.loot-table": "Loot Table Generator",
"title.predicate": "Predicate Generator",
"title.advancement": "Advancement Generator",
"title.dimension": "Dimension Generator",
"title.dimension-type": "Dimension Type Generator",
"title.sandbox": "Sandbox Generator",
"loot-table": "Loot Table",
"predicate": "Predicate",
"advancement": "Advancement",
"dimension": "Dimension",
"dimension-type": "Dimension Type",
"sandbox": "Sandbox",
"language": "Language",
"copy": "Copy",

View File

@@ -82,6 +82,10 @@ body {
border-radius: 3px;
}
.nav-selector-menu .btn {
white-space: nowrap;
}
.content {
display: flex;
height: calc(100vh - 56px);
@@ -91,6 +95,7 @@ body {
.tree {
padding: 1rem;
overflow-y: auto;
padding-bottom: 50vh;
}
.source textarea {

View File

@@ -223,8 +223,8 @@ body[data-style=dark] .node-header > button {
}
body[data-style=dark] button.selected {
background-color: #726d28;
border-color: #867e0e
background-color: #9e9843;
border-color: #a59c18
}
body[data-style=dark] .node-header > label.collapse.closed,