-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* WIP: testing things out * WIP * Use CodeBlock for frequency in all cases, change layout of schedule view * Consistent classes, remove w classes * Reorder imports * Remove frequency from tests * Add empty line * Use Schedule Spec for title, change to just Delete * Remove top border of frequency table row
- Loading branch information
1 parent
f7cc091
commit a7248ac
Showing
14 changed files
with
94 additions
and
99 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
56 changes: 31 additions & 25 deletions
56
src/lib/components/schedule/schedule-advanced-settings.svelte
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 |
---|---|---|
@@ -1,28 +1,20 @@ | ||
<script lang="ts"> | ||
import CodeBlock from '$lib/holocene/code-block.svelte'; | ||
import type { StructuredCalendar } from '$lib/types/schedule'; | ||
import { intervalToComment } from '$lib/utilities/schedule-comment-formatting'; | ||
import { commentOrCalendarToFrequency } from '$lib/utilities/schedule-frequency-formatting'; | ||
import type { IntervalSpec } from '$types'; | ||
export let calendar: StructuredCalendar | undefined = undefined; | ||
export let interval: IntervalSpec | undefined = undefined; | ||
const intervalSecs = interval?.interval as string; | ||
const phaseSecs = interval?.phase as string; | ||
export let inline = false; | ||
</script> | ||
|
||
<div class="flex flex-col {$$props.class}"> | ||
{#if calendar} | ||
<p data-testid="schedule-calendar-frequency"> | ||
{commentOrCalendarToFrequency(calendar)} | ||
</p> | ||
{:else} | ||
<p data-testid="schedule-interval-frequency"> | ||
{intervalToComment(intervalSecs)} | ||
</p> | ||
<p data-testid="schedule-phase-frequency"> | ||
{intervalToComment(phaseSecs, true)} | ||
</p> | ||
{/if} | ||
<CodeBlock | ||
copyable | ||
{inline} | ||
testId="schedule-calendar" | ||
language="json" | ||
content={JSON.stringify(calendar || interval, null, 2)} | ||
/> | ||
</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
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
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
Oops, something went wrong.
a7248ac
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
holocene – ./
holocene-git-main.preview.thundergun.io
holocene.preview.thundergun.io