dragoman 0.6.1

Server for scholarly metadata in commonmeta format stored in a SQLite database.
import './app.css'
import { mount } from 'svelte'
import { addCollection } from '@iconify/svelte'
import App from './App.svelte'
import icons from './lib/icons.json'

// The icons the UI uses, bundled (see scripts/icons.mjs): registered before
// the first render, each draws with the page instead of after a request to
// api.iconify.design, which redrew the page a moment later.
for (const collection of icons) addCollection(collection)

const app = mount(App, { target: document.getElementById('app') })

// The pre-JavaScript skeleton has served its purpose. Taken away after the
// mount above, not before it: the real page is already in the document by
// then, so the reader never sees the gap between the two.
document.getElementById('skeleton')?.remove()

export default app