tweaks
This commit is contained in:
parent
d5cc07c259
commit
33fa2b5b38
@ -7,5 +7,7 @@ Supports EAuth and Metamask login with Urbit ID.
|
||||
|
||||
### Installation
|
||||
Two options:
|
||||
1.- On dojo run `|install ~dister-dozzod-sortug %ucm`
|
||||
2.- Symlink the `desk` folder to a folder inside your pier, then commit and `|install our <name>`.
|
||||
1.- On dojo run `|install ~dister-dozzod-sortug %ucm`.
|
||||
2.- Build the site frontend, `cd site && bun run build`.
|
||||
3.- Rename and replace the built files because Urbit can't read capital letters! Just lovely. Inside the `site` folder do `bun rename-files.js`
|
||||
4.- Symlink the `desk` folder to a folder inside your pier, then commit and `|install our <name>`.
|
||||
|
@ -30,7 +30,7 @@
|
||||
++ on-init
|
||||
^- (quip card _this)
|
||||
:_ this
|
||||
:_ ~ (add-eyre-binding [dap.bowl ~])
|
||||
:_ ~ (add-eyre-binding:hd [dap.bowl ~])
|
||||
::
|
||||
++ on-save
|
||||
!>(state)
|
||||
@ -278,6 +278,7 @@
|
||||
:: cards
|
||||
++ add-eyre-binding
|
||||
|= =path ^- card
|
||||
~& > adding-binding=[path dap.bowl]
|
||||
[%pass /eyre/connect %arvo %e %connect [~ path] dap.bowl]
|
||||
|
||||
++ wipe-eyre-bindings
|
||||
|
@ -7,5 +7,5 @@
|
||||
license+'MIT'
|
||||
image+'https://s3.sortug.com/img/icons/ucm-logo.png'
|
||||
base+'ucm'
|
||||
glob-http+['https://s3.sortug.com/globs/glob-0v1.fiva2.d83ct.k90tn.n7tjl.58mjq.glob' 0v1.fiva2.d83ct.k90tn.n7tjl.58mjq]
|
||||
glob-http+['https://s3.sortug.com/globs/glob-0v2.4bhli.vifom.mfvn7.4l08q.f8mnp.glob' 0v2.4bhli.vifom.mfvn7.4l08q.f8mnp]
|
||||
==
|
||||
|
@ -126,6 +126,7 @@ export function SiteDash({ site, group }: { site: Site; group: Group }) {
|
||||
}
|
||||
|
||||
async function save() {
|
||||
setSaving(true);
|
||||
const ns: Site = {
|
||||
description: siteDesc,
|
||||
icon: siteIcon,
|
||||
@ -139,8 +140,17 @@ export function SiteDash({ site, group }: { site: Site; group: Group }) {
|
||||
hidden,
|
||||
};
|
||||
const res = await dashIO().createSite(ns);
|
||||
if (res) {
|
||||
sync();
|
||||
setSaved(true);
|
||||
setTimeout(() => {
|
||||
setSaved(false);
|
||||
}, 2000);
|
||||
}
|
||||
setSaving(false);
|
||||
}
|
||||
const [saving, setSaving] = useState(false);
|
||||
const [saved, setSaved] = useState(false);
|
||||
|
||||
// drag
|
||||
function reorder(result: DropResult<string>) {
|
||||
@ -296,12 +306,23 @@ export function SiteDash({ site, group }: { site: Site; group: Group }) {
|
||||
/>
|
||||
</AccordionDetails>
|
||||
</Accordion>*/}
|
||||
|
||||
{saved && (
|
||||
<Typography align="center" color="green">
|
||||
Changes saved
|
||||
</Typography>
|
||||
)}
|
||||
{saving ? (
|
||||
<Centered>
|
||||
{" "}
|
||||
<CircularProgress />
|
||||
</Centered>
|
||||
) : (
|
||||
<Centered>
|
||||
<Button sx={{ my: 4 }} variant="contained" onClick={save}>
|
||||
Save Changes
|
||||
</Button>
|
||||
</Centered>
|
||||
)}
|
||||
</Container>
|
||||
</Box>
|
||||
);
|
||||
|
@ -1,9 +1,8 @@
|
||||
import { defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react";
|
||||
// import { createHash } from "crypto";
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
base: "/ublog",
|
||||
base: "/ucm",
|
||||
plugins: [react()],
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user