forked from MapComplete/MapComplete
Chore: formatting
This commit is contained in:
parent
6c3c67af56
commit
286578bfc7
58 changed files with 2199 additions and 1915 deletions
|
|
@ -1,16 +1,17 @@
|
|||
<script lang="ts">
|
||||
import type { ConfigMeta } from "./configMeta";
|
||||
import SchemaBasedField from "./SchemaBasedField.svelte";
|
||||
import EditLayerState from "./EditLayerState";
|
||||
import SchemaBasedArray from "./SchemaBasedArray.svelte";
|
||||
import SchemaBasedMultiType from "./SchemaBasedMultiType.svelte";
|
||||
import ArrayMultiAnswer from "./ArrayMultiAnswer.svelte";
|
||||
import type { ConfigMeta } from "./configMeta"
|
||||
import SchemaBasedField from "./SchemaBasedField.svelte"
|
||||
import EditLayerState from "./EditLayerState"
|
||||
import SchemaBasedArray from "./SchemaBasedArray.svelte"
|
||||
import SchemaBasedMultiType from "./SchemaBasedMultiType.svelte"
|
||||
import ArrayMultiAnswer from "./ArrayMultiAnswer.svelte"
|
||||
|
||||
export let schema: ConfigMeta;
|
||||
export let state: EditLayerState;
|
||||
export let path: (string | number)[] = [];
|
||||
let expertMode = state.expertMode;
|
||||
export let schema: ConfigMeta
|
||||
export let state: EditLayerState
|
||||
export let path: (string | number)[] = []
|
||||
let expertMode = state.expertMode
|
||||
</script>
|
||||
|
||||
{#if (schema.hints?.group !== "expert" || $expertMode) && schema.hints.group !== "hidden"}
|
||||
{#if schema.hints?.typehint?.endsWith("[]")}
|
||||
<!-- We cheat a bit here by matching this 'magical' type... -->
|
||||
|
|
@ -25,5 +26,7 @@
|
|||
<SchemaBasedField {path} {state} {schema} />
|
||||
{/if}
|
||||
{:else if window.location.hostname === "127.0.0.1"}
|
||||
<div class="subtle">Not showing SBI {schema.path.join(".")} due to group {schema.hints.group}</div>
|
||||
<div class="subtle">
|
||||
Not showing SBI {schema.path.join(".")} due to group {schema.hints.group}
|
||||
</div>
|
||||
{/if}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue