1.3.9 • Published 3 months ago

@team-lodestone/lodestone-ui v1.3.9

Weekly downloads
-
License
LGPL-2.1-or-later
Repository
-
Last release
3 months ago

UI

Library of UI components used by Project Lodestone.

!NOTE Some parts of this package may rely on styles and/or other components that are only present in official Project Lodestone packages.

Don't worry, external support will be worked on, but is not the main focus at the moment.

To install: npm install @team-lodestone/lodestone-ui

Then, before the page is rendered, initialize svelte-i18n. ex:

import { initLUILanguages } from "@team-lodestone/lodestone-ui";
import { getLocaleFromNavigator } from 'svelte-i18n';

let app: { $set?: any, $on?: any } | undefined = undefined;

async function initApp() {
	// wish this would get inited just by `init` being called from the dependent instead of a seperate function.
	await initLUILanguages({
		fallbackLocale: 'en-US',
		initialLocale: getLocaleFromNavigator(),
		warnOnMissingMessages: true
	});

	// it's loaded, now we can mount.
	return mount(App, {
		target: document.getElementById('app')!,
	})
}

initApp().then((mounted) => {
	app = mounted;
});

export default app;

!IMPORTANT If you see missing icons, you'll need to include the CSS for FontAwesome and Bootstrap Icons

Translating

See CONTRIBUTING.md

Translations can be overridden, just override the exact key(s) that you want to use a different translation for.
This is why all translations are under the LodestoneUI namespace

Credits

Some icons come from Bootstrap Icons and FontAwesome

Legal

Project Lodestone is not an official Minecraft product.

1.3.9

3 months ago

1.3.8

3 months ago

1.3.7

3 months ago

1.3.6

3 months ago

1.3.5

3 months ago

1.3.4

4 months ago

1.3.2

4 months ago

1.3.1

4 months ago

1.3.0

4 months ago

1.2.0

4 months ago

1.1.0

4 months ago

1.0.0

4 months ago