chore: add prettier to format definitions/svelte files

This commit is contained in:
Eric Liu 2020-08-11 06:21:06 -07:00
commit 25e437b746
11 changed files with 38 additions and 23 deletions

View file

@ -9,14 +9,14 @@
indeterminate,
disabled,
hideLabel,
wrapperClassName
wrapperClassName,
} = $$props;
const checkboxProps = {
labelText,
indeterminate,
disabled,
hideLabel,
wrapperClassName
wrapperClassName,
};
let checked = true;

View file

@ -7,6 +7,6 @@
on:click={() => {
console.log('click');
}}
on:animationend={e => {
on:animationend={(e) => {
console.log('animation end', e.animationName);
}} />

View file

@ -18,7 +18,7 @@
port: 3000,
rule: "Round robin",
attached_groups: "Kevins VM Groups",
status: "Disabled"
status: "Disabled",
},
{
id: "b",
@ -27,7 +27,7 @@
port: 443,
rule: "Round robin",
attached_groups: "Maureens VM Groups",
status: "Starting"
status: "Starting",
},
{
id: "c",
@ -36,7 +36,7 @@
port: 80,
rule: "DNS delegation",
attached_groups: "Andrews VM Groups",
status: "Active"
status: "Active",
},
{
id: "d",
@ -45,7 +45,7 @@
port: 3000,
rule: "Round robin",
attached_groups: "Marcs VM Groups",
status: "Disabled"
status: "Disabled",
},
{
id: "e",
@ -54,7 +54,7 @@
port: 443,
rule: "Round robin",
attached_groups: "Mels VM Groups",
status: "Starting"
status: "Starting",
},
{
id: "f",
@ -63,8 +63,8 @@
port: 80,
rule: "DNS delegation",
attached_groups: "Ronjas VM Groups",
status: "Active"
}
status: "Active",
},
];
const headers = [
{ key: "name", value: "Name" },
@ -72,7 +72,7 @@
{ key: "port", value: "Port" },
{ key: "rule", value: "Rule" },
{ key: "attached_groups", value: "Attached Groups" },
{ key: "status", value: "Status" }
{ key: "status", value: "Status" },
];
$: sortable = true;
</script>

View file

@ -9,7 +9,7 @@
{ id: "option-0", text: "Option 1" },
{ id: "option-1", text: "Option 2" },
{ id: "option-2", text: "Option 3" },
{ id: "option-3", text: "Option 4" }
{ id: "option-3", text: "Option 4" },
];
$: selectedIndex = -1;
</script>

View file

@ -15,7 +15,7 @@
</script>
<Form
on:submit={event => {
on:submit={(event) => {
console.log('on:submit', event);
}}>
<FormGroup {...$$props}>

View file

@ -12,8 +12,8 @@
{
id: "option-4",
text:
"An example option that is really long to show what should be done to handle long text"
}
"An example option that is really long to show what should be done to handle long text",
},
];
</script>

View file

@ -25,9 +25,9 @@
setContext("StructuredListWrapper", {
selectedValue,
update: value => {
update: (value) => {
selectedValue.set(value);
}
},
});
$: selected = $selectedValue;

View file

@ -11,7 +11,7 @@
const radioTiles = [
{ value: "standard", id: "tile-1", labelText: "Selectable Tile" },
{ value: "default-selected", id: "tile-2", labelText: "Selectable Tile" },
{ value: "selected", id: "tile-3", labelText: "Selectable Tile" }
{ value: "selected", id: "tile-3", labelText: "Selectable Tile" },
];
$: selected = radioTiles[1].value;