Skip to content

Commit

Permalink
clean-up, add note
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-8 committed Jan 30, 2025
1 parent 7af2c0b commit 2794612
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 24 deletions.
3 changes: 1 addition & 2 deletions packages/site/src/lib/components/home/SelectedDict.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import sanitize from 'xss'
import { page } from '$app/stores'
export let lastFieldUpdatedAt: number = undefined
export let dictionary: DictionaryView
let aboutType: IAbout
Expand Down Expand Up @@ -90,7 +89,7 @@
<span class="i-fa6-solid-chevron-right rtl-x-flip -mt-1" />
</Button>
{/if}
{#if lastFieldUpdatedAt}<p class="mt-3 text-xs text-gray-500">This dictionary was last updated on {new Date(lastFieldUpdatedAt).toString()}</p>{/if}
<!-- {#if lastFieldUpdatedAt}<p class="mt-3 text-xs text-gray-500">This dictionary was last updated on {new Date(lastFieldUpdatedAt).toString()}</p>{/if} -->
</div>

<style>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</script>

<div class="{$$props.class} text-gray-500">
<strong>{$page.data.t('history.entry_history')}:</strong>
<strong>{$page.data.t('history.entry_history')} (work in progress):</strong>
{#await get_entry_history(entry_id)}
Loading...
{:then { entry_content_updates }}
Expand All @@ -17,7 +17,7 @@
<p class="m-3">{$page.data.t('history.entry_message')} {supabase_date_to_friendly(record.timestamp, $page.data.locale)}</p>
{/each}
{:else}
<p class="m-3">{$page.data.t('history.edited')} {new Date(entry_content_updates[0].timestamp).toDateString()}</p>
<p class="m-3">{$page.data.t('history.edited')} {supabase_date_to_friendly(entry_content_updates[0].timestamp, $page.data.locale)}</p>
{/if}
{:catch error}
<p class="m-3">Error: {error.message}</p>
Expand Down
19 changes: 0 additions & 19 deletions packages/types/change.interface.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export { type IPrintFields, StandardPrintFields } from './print-entry.interface'
export { type EntryFieldValue, type i18nEntryFieldKey } from './entry-fields.enum'
export type { ContentUpdateRequestBody } from './supabase/content-update.interface'
export type { UnsupportedFields } from './supabase/unsupported.interface'
export type { Change } from './change.interface'
export type { Database, Tables, TablesInsert, TablesUpdate } from './supabase/combined.types'
export type { Orthography } from './supabase/orthography.interface'
export type { IFirestoreMetaData } from 'sveltefirets'
Expand Down

0 comments on commit 2794612

Please sign in to comment.