-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from antonkorotkov/develop
Develop
- Loading branch information
Showing
8 changed files
with
1,261 additions
and
842 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<script> | ||
import IconButton from '../../../components/buttons/IconButton.svelte' | ||
export let name | ||
export let value | ||
export let onDelete = () => {} | ||
export let onChangeName = () => {} | ||
export let onChangeValue = () => {} | ||
</script> | ||
|
||
<div class="fields"> | ||
<div class="seven wide field"> | ||
<input | ||
type="text" | ||
placeholder="Name" | ||
value={name} | ||
on:change={onChangeName} | ||
/> | ||
</div> | ||
<div class="eight wide field"> | ||
<input type="text" placeholder="Value" {value} on:change={onChangeValue} /> | ||
</div> | ||
<div class="one wide field controls"> | ||
<IconButton className="minus circle" onClick={onDelete} /> | ||
</div> | ||
</div> | ||
|
||
<style> | ||
.controls { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<script> | ||
import IconButton from '../../../components/buttons/IconButton.svelte' | ||
import HeaderItem from './HeaderItem.svelte' | ||
export let onAdd, onDelete, onChange, headers | ||
</script> | ||
|
||
<div class="headers"> | ||
{#each headers as header, index} | ||
<HeaderItem | ||
name={header.name} | ||
value={header.value} | ||
onDelete={() => onDelete(index)} | ||
onChangeName={e => onChange({ index, field: 'name' }, e.target.value)} | ||
onChangeValue={e => onChange({ index, field: 'value' }, e.target.value)} | ||
/> | ||
{/each} | ||
|
||
<IconButton className="plus circle" onClick={onAdd} /> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.