mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-04-04 14:53:33 -04:00
Rename to Compass (2)
This commit is contained in:
@@ -74,7 +74,7 @@ export const lookupUser = async (creds: Credentials): Promise<AuthedUser> => {
|
||||
switch (creds.kind) {
|
||||
case 'jwt': {
|
||||
if (typeof creds.data.user_id !== 'string') {
|
||||
throw new APIError(401, 'JWT must contain Manifold user ID.')
|
||||
throw new APIError(401, 'JWT must contain user ID.')
|
||||
}
|
||||
return { uid: creds.data.user_id, creds }
|
||||
}
|
||||
|
||||
@@ -269,7 +269,7 @@ import { runScript } from 'run-script'
|
||||
runScript(async ({ pg }) => {
|
||||
const userPrompt = process.argv[2]
|
||||
// E.g.:
|
||||
// I want to create a new page which shows off what's happening on manifold right now. Can you use our websocket api to get recent bets on markets and illustrate what's happening in a compelling and useful way?
|
||||
// I want to create a new page which shows off what's happening right now. Can you use our websocket api to get recent bets on markets and illustrate what's happening in a compelling and useful way?
|
||||
if (!userPrompt) {
|
||||
console.log('Please provide a prompt on what code to change.')
|
||||
return
|
||||
|
||||
@@ -16,11 +16,11 @@ export function SEO<P extends Record<string, string | undefined>>(props: {
|
||||
(ogProps &&
|
||||
buildOgUrl(removeUndefinedProps(ogProps.props) as any, ogProps.endpoint))
|
||||
|
||||
const absUrl = 'https://manifold.love' + url
|
||||
const absUrl = 'https://compassmeet.com' + url
|
||||
|
||||
return (
|
||||
<Head>
|
||||
<title>{`${title} | Manifold`}</title>
|
||||
<title>{`${title} | Compass`}</title>
|
||||
|
||||
<meta
|
||||
property="og:title"
|
||||
|
||||
@@ -55,7 +55,7 @@ export const getLinkTarget = (href: string, newTab?: boolean) => {
|
||||
// TODO: make this more robust against domain changes?
|
||||
if (
|
||||
href.startsWith('http') &&
|
||||
!href.startsWith(`https://manifold`) // covers manifold.markets and manifold.love
|
||||
!href.startsWith(`https://compassmeet`)
|
||||
)
|
||||
return '_blank'
|
||||
return newTab ? '_blank' : '_self'
|
||||
|
||||
@@ -96,11 +96,7 @@ function OgLover(props: LoveOgProps) {
|
||||
height={48}
|
||||
/>
|
||||
<span className="text-2xl font-thin">
|
||||
manifold
|
||||
<span className="mx-[1px]">.</span>
|
||||
<span className="font-semibold text-pink-700 dark:text-pink-300">
|
||||
love/{username}
|
||||
</span>
|
||||
compassmeet.com/{username}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -116,7 +116,7 @@ export const PrivateChat = (props: {
|
||||
.map((message) => message.userId)
|
||||
)
|
||||
|
||||
// Note: we may have messages from users not in the channel, e.g. a system message from manifold
|
||||
// Note: we may have messages from users not in the channel, e.g. a system message
|
||||
const otherUsers = useUsersInStore(
|
||||
uniq(messageUserIds.concat(memberIds)),
|
||||
`${channelId}`,
|
||||
|
||||
@@ -13,8 +13,7 @@ export default function ManifoldLove() {
|
||||
<HeartIcon className="text-scarlet-600 h-8 w-8" />
|
||||
<HeartIcon className="text-scarlet-600 h-8 w-8" />
|
||||
<h1 className="mx-auto text-3xl">
|
||||
Manifold
|
||||
<span className="text-scarlet-600 font-semibold">.love</span>
|
||||
CompassMeet.com
|
||||
</h1>
|
||||
<HeartIcon className="text-scarlet-600 h-8 w-8" />
|
||||
<HeartIcon className="text-scarlet-600 h-8 w-8" />
|
||||
|
||||
Reference in New Issue
Block a user