feat: rename Crosslog to xlog
This commit is contained in:
parent
9ae0653a6e
commit
46448e0683
|
|
@ -3,9 +3,9 @@
|
|||
#### And inline by Next.js during docker build
|
||||
#############################################################
|
||||
|
||||
NEXT_PUBLIC_APP_NAME=Crosslog
|
||||
NEXT_PUBLIC_APP_NAME=xlog
|
||||
NEXT_PUBLIC_OUR_DOMAIN=localhost:3000
|
||||
NEXT_PUBLIC_DISCORD_LINK="https://discord.gg/9XscSqJEq4"
|
||||
NEXT_PUBLIC_GITHUB_LINK="https://github.com/Crossbell-Box/Crosslog"
|
||||
NEXT_PUBLIC_GITHUB_LINK="https://github.com/Crossbell-Box/xlog"
|
||||
|
||||
REDIS_URL=
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
# Crosslog
|
||||
# xlog
|
||||
|
||||
> On-Chain Content Creating for Absolutely Everyone
|
||||
|
||||
Meet Crosslog, the on-chain and open-source blogging platform for everyone. Permanently stored on-chain and signed by you.
|
||||
Meet xlog, the on-chain and open-source blogging platform for everyone. Permanently stored on-chain and signed by you.
|
||||
|
||||
This project is developed based on [proselog](https://github.com/proselog/proselog)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "crosslog",
|
||||
"name": "xlog",
|
||||
"private": true,
|
||||
"description": "A publishing platform",
|
||||
"license": "AGPL-3.0",
|
||||
|
|
|
|||
|
|
@ -85,8 +85,8 @@ export async function createOrUpdatePage(
|
|||
}
|
||||
}),
|
||||
tags: [input.isPost ? "post" : "page"],
|
||||
applications: ["Crosslog"],
|
||||
...(input.slug && {_crosslog_slug: input.slug})
|
||||
applications: ["xlog"],
|
||||
...(input.slug && {_xlog_slug: input.slug})
|
||||
})
|
||||
}
|
||||
|
||||
|
|
@ -162,7 +162,7 @@ export async function getPagesBySite(
|
|||
pages.list = pages.list.filter(page => +new Date(page.date_published) > +new Date() && page.date_published !== new Date('9999-01-01').toISOString())
|
||||
break
|
||||
}
|
||||
pages.list = pages.list.filter(page => page.applications?.includes("Crosslog")).filter(page => page.tags?.includes(input.type))
|
||||
pages.list = pages.list.filter(page => page.applications?.includes("Crosslog") || page.applications?.includes("xlog")).filter(page => page.tags?.includes(input.type))
|
||||
pages.total = pages.list.length
|
||||
|
||||
pages.list = await Promise.all(pages?.list.map(async (page) => {
|
||||
|
|
@ -179,7 +179,7 @@ export async function getPagesBySite(
|
|||
}
|
||||
}
|
||||
}
|
||||
page.slug = page.metadata?.raw?._crosslog_slug || page.id
|
||||
page.slug = page.metadata?.raw?._xlog_slug || page.metadata?.raw?._crosslog_slug || page.id
|
||||
return page
|
||||
}))
|
||||
}
|
||||
|
|
@ -227,7 +227,7 @@ export async function getPage<TRender extends boolean = false>(
|
|||
let page;
|
||||
if (input.page) {
|
||||
page = pages?.list.find((item) => {
|
||||
item.slug = item.metadata?.raw?._crosslog_slug || item.id
|
||||
item.slug = item.metadata?.raw?._xlog_slug || item.metadata?.raw?._crosslog_slug || item.id
|
||||
return item.slug === input.page
|
||||
})
|
||||
} else {
|
||||
|
|
@ -253,7 +253,7 @@ export async function getPage<TRender extends boolean = false>(
|
|||
}
|
||||
}
|
||||
}
|
||||
page.slug = page.metadata?.raw?._crosslog_slug || page.id
|
||||
page.slug = page.metadata?.raw?._xlog_slug || page.metadata?.raw?._crosslog_slug || page.id
|
||||
return page
|
||||
}))
|
||||
}
|
||||
|
|
|
|||
|
|
@ -74,8 +74,8 @@ export const getSite = async (input: string) => {
|
|||
});
|
||||
|
||||
const site: Profile = profiles.list?.sort((a, b) => +new Date(b.date_updated || 0) - +new Date(a.date_updated || 0))?.[0]
|
||||
site.navigation = site.metadata?.raw?.['_crosslog_navigation'] || [{ id: nanoid(), label: "Archives", url: "/archives" }]
|
||||
site.css = site.metadata?.raw?.['_crosslog_css'] || ''
|
||||
site.navigation = site.metadata?.raw?.['_xlog_navigation'] || site.metadata?.raw?.['_crosslog_navigation'] || [{ id: nanoid(), label: "Archives", url: "/archives" }]
|
||||
site.css = site.metadata?.raw?.['_xlog_css'] || site.metadata?.raw?.['_crosslog_css'] || ''
|
||||
site.name = site.name || site.username
|
||||
|
||||
return site
|
||||
|
|
@ -117,8 +117,8 @@ export async function updateSite(
|
|||
...(payload.description && { bio: payload.description }),
|
||||
...(payload.icon && { avatars: [payload.icon] }),
|
||||
...(payload.subdomain && { username: payload.subdomain }),
|
||||
...(payload.navigation && { _crosslog_navigation: payload.navigation }),
|
||||
...(payload.css && { _crosslog_css: payload.css }),
|
||||
...(payload.navigation && { _xlog_navigation: payload.navigation }),
|
||||
...(payload.css && { _xlog_css: payload.css }),
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ export default function Home({
|
|||
for Absolutely Everyone
|
||||
</h2>
|
||||
<h3 className="mt-5 text-zinc-500">
|
||||
Meet Crosslog, the on-chain and open-source blogging platform for everyone.
|
||||
Meet xlog, the on-chain and open-source blogging platform for everyone.
|
||||
<br />
|
||||
Permanently stored on-chain and signed by you.
|
||||
</h3>
|
||||
|
|
|
|||
Loading…
Reference in New Issue