Skip to content

Commit

Permalink
Add Prettier autofixes
Browse files Browse the repository at this point in the history
  • Loading branch information
backspace committed Dec 15, 2023
1 parent f2edcf1 commit f0b0eab
Show file tree
Hide file tree
Showing 6 changed files with 230 additions and 222 deletions.
4 changes: 2 additions & 2 deletions gathering/app/templates/destinations/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<th class='p-2 text-left'>
Answer
</th>
<th class='p-2 text-left hidden md:table-cell'>
<th class='hidden p-2 text-left md:table-cell'>
Mask
</th>
<th class='p-2 text-left'>
Expand Down Expand Up @@ -68,4 +68,4 @@

<LinkTo @route='destinations.new' class='new'>
New
</LinkTo>
</LinkTo>
2 changes: 1 addition & 1 deletion gathering/app/templates/region.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@
</section>

</div>
</div>
</div>
2 changes: 1 addition & 1 deletion gathering/app/templates/regions/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@
</LinkTo>
<br />
<br />
<br />
<br />
2 changes: 1 addition & 1 deletion gathering/app/templates/scheduler.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
{{/each}}
</ul>

<div class='meeting-form {{if this.meeting.isForbidden 'forbidden'}}'>
<div class='meeting-form {{if this.meeting.isForbidden "forbidden"}}'>
{{#if this.puzzles.implementation.hasWaypoints}}
<div class='row'>
<label for='waypoint-select'>W</label>
Expand Down
210 changes: 105 additions & 105 deletions gathering/app/templates/sync.hbs
Original file line number Diff line number Diff line change
@@ -1,115 +1,115 @@
<div class='w-full'>
<div class='mx-auto md:container'>
{{outlet}}
<div class='w-full flex border-2 border-black'>
<label for='url' class='border-r-2 border-black p-2'>
DB
</label>
<Input
id='url'
@type='url'
@value={{or this.destination (get this.sortedDatabases '0')}}
{{on 'change' this.handleDestinationInput}}
class='destination flex-1 p-2'
/>
<div class='input-group-button'>
<div class='flex w-full border-2 border-black'>
<label for='url' class='border-r-2 border-black p-2'>
DB
</label>
<Input
id='url'
@type='url'
@value={{or this.destination (get this.sortedDatabases '0')}}
{{on 'change' this.handleDestinationInput}}
class='destination flex-1 p-2'
/>
<div class='input-group-button'>
<button
type='button'
onclick={{perform this.sync}}
class='sync bg-black p-2 text-white'
>
{{#if this.syncTask.isRunning}}
<Loading />
{{else}}
Sync
{{/if}}
</button>
</div>
</div>

<ul class='databases pl-10 pt-2'>
{{#each this.sortedDatabases as |database|}}
<li class='database flex gap-2 p-2'>
<button
class='border-2 border-black p-2'
type='button'
onclick={{perform this.sync}}
class='sync bg-black text-white p-2'
{{on 'click' (fn this.setDestination database)}}
data-test-database-name
>
{{#if this.syncTask.isRunning}}
<Loading />
{{else}}
Sync
{{/if}}
{{database}}
</button>
</div>
</div>

<ul class='databases pl-10 pt-2'>
{{#each this.sortedDatabases as |database|}}
<li class='database flex p-2 gap-2'>
<button
class='border-2 border-black p-2'
type='button'
{{on 'click' (fn this.setDestination database)}}
data-test-database-name
>
{{database}}
</button>
<button
class='border-2 border-red-500 p-2'
type='button'
{{on 'click' (fn this.removeDestination database)}}
data-test-remove
>Delete</button>
</li>
{{/each}}
</ul>
<button
class='border-2 border-red-500 p-2'
type='button'
{{on 'click' (fn this.removeDestination database)}}
data-test-remove
>Delete</button>
</li>
{{/each}}
</ul>

{{#if this.result}}
<table>
<thead>
<th></th>
<th>
read
</th>
<th>
written
</th>
<th>
write failures
</th>
<th>
errors
</th>
</thead>
<tbody>
<tr class='push'>
<td>
push
</td>
<td class='read'>
{{this.result.push.docs_read}}
</td>
<td class='written'>
{{this.result.push.docs_written}}
</td>
<td class='write-failures'>
{{this.result.push.doc_write_failures}}
</td>
<td data-test-errors>
{{this.result.push.errors}}
</td>
</tr>
<tr class='pull'>
<td>
pull
</td>
<td class='read'>
{{this.result.pull.docs_read}}
</td>
<td class='written'>
{{this.result.pull.docs_written}}
</td>
<td class='write-failures'>
{{this.result.pull.doc_write_failures}}
</td>
<td data-test-errors>
{{this.result.pull.errors}}
</td>
</tr>
</tbody>
</table>
{{else if this.error}}
Error:
<code>
{{this.error}}
</code>
{{/if}}
{{#if this.result}}
<table>
<thead>
<th></th>
<th>
read
</th>
<th>
written
</th>
<th>
write failures
</th>
<th>
errors
</th>
</thead>
<tbody>
<tr class='push'>
<td>
push
</td>
<td class='read'>
{{this.result.push.docs_read}}
</td>
<td class='written'>
{{this.result.push.docs_written}}
</td>
<td class='write-failures'>
{{this.result.push.doc_write_failures}}
</td>
<td data-test-errors>
{{this.result.push.errors}}
</td>
</tr>
<tr class='pull'>
<td>
pull
</td>
<td class='read'>
{{this.result.pull.docs_read}}
</td>
<td class='written'>
{{this.result.pull.docs_written}}
</td>
<td class='write-failures'>
{{this.result.pull.doc_write_failures}}
</td>
<td data-test-errors>
{{this.result.pull.errors}}
</td>
</tr>
</tbody>
</table>
{{else if this.error}}
Error:
<code>
{{this.error}}
</code>
{{/if}}

Version:
{{this.version}}
</div>
Version:
{{this.version}}
</div>
</div>
Loading

0 comments on commit f0b0eab

Please sign in to comment.