2022-06-25 00:17:42 -07:00
2022-06-21 22:47:15 -07:00
2022-06-24 22:26:49 -07:00
2022-06-13 11:34:46 -07:00
2022-06-25 00:17:42 -07:00
2022-03-30 14:05:15 -07:00
2022-06-13 11:34:46 -07:00
2022-06-04 00:46:23 -07:00
2022-06-13 11:46:57 -07:00
2022-06-17 19:58:01 -07:00
2022-06-21 00:38:52 -07:00

Omorphia

The Modrinth component library, in Svelte


Read the documentation at omorphia.modrinth.com.

Developing

The library lives in the src/ folder, and the documentation lives in the docs/ folder.

Getting started

Install Node (16.5+) and PNPM prior to developing.

To start the dev server, install dependencies and run pnpm dev:

pnpm install # Install dependencies
pnpm dev # Run dev server

To use the git hooks in the repo, which will save you waiting for CI to tell you that you forgot to lint, run this:

git config core.hookspath .githooks

Adding new components

Replace ComponentName with your component name in the steps below

  1. Create a ComponentName.svelte file in src/components

  2. Add an export for your component in ./src/index.ts

    export { default as ComponentName } from './components/ComponentName.svelte'
    
  3. Create a ComponentName.md file for documentation in docs/routes/components

  4. Add an example of your component in your ComponentName.md file, like so:

    ```svelte example raised
    <script lang="ts">
    	import { ComponentName } from 'omorphia'
    </script>
    
    <ComponentName />
    ```
    

Building

To build the documentation site, run:

pnpm build
Description
A modern launcher based on Modrinth. No built-in/external advertising or telemetry. Fully compatible with the original Modrinth without broken mechanics.
https://git.astralium.su
Readme 123 MiB
Languages
Rust 44.4%
Vue 37.3%
TypeScript 13.2%
HTML 2.4%
JavaScript 1.2%
Other 1.4%