@floatsheep/galactose
v1.0.2
Published
A lightweight front-end for FriendsCircleLite
Downloads
5
Readme
Galactose
A lightweight front-end for FriendsCircleLite
Build with solid.js
Usage
import Galactose from "@floatsheep/galactose";
const galactose = new Galactose();
galactose.init({
rel: "#root",
page_turning_number: 24,
api_url: "https://flink.hesiy.cn",
error_img: "./favicon.ico",
});
We don't mount ourselves on Window because it shouldn't appear.
You need to import using ESM syntax
Dynamic import
const Galactose = (await import("@floatsheep/galactose")).default;
const galactose = new Galactose();
galactose.init({
rel: "#root",
page_turning_number: 24,
api_url: "https://flink.hesiy.cn",
error_img: "./favicon.ico",
});
Style
Default is unstyled
If you need to introduce default styles (qyliu original)
<link
rel="stylesheet"
href="https://registry.npmmirror.com/@floatsheep/galactose/latest/files/dist/style.css"
/>
or
import "@floatsheep/galactose/dist/style.css";
In this version, UMD(Universal Module Definition) is still available.
You just add the suffix .umd.cjs
.
All other uses are the same as FriendsCircleLite.