mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 01:52:42 +03:00
interface: moved from ~groups url to ~landscape url
This commit is contained in:
parent
bf96c50d4c
commit
fb261dc93c
@ -65,7 +65,7 @@ export default class TextContent extends Component {
|
||||
return (
|
||||
<Link
|
||||
className="bb b--black b--white-d f8 mono lh-copy v-top"
|
||||
to={'/~groups/join/' + group.input}>
|
||||
to={'/~landscape/join/' + group.input}>
|
||||
{content.text}
|
||||
</Link>
|
||||
);
|
||||
|
@ -32,12 +32,12 @@ export class ProfileOverlay extends PureComponent {
|
||||
const theirStation = `/~${ship}/dm--${window.ship}`;
|
||||
|
||||
if (allStations.indexOf(station) !== -1) {
|
||||
history.push(`/~groups/home/resource/chat${station}`);
|
||||
history.push(`/~landscape/home/resource/chat${station}`);
|
||||
return;
|
||||
}
|
||||
|
||||
if (allStations.indexOf(theirStation) !== -1) {
|
||||
history.push(`/~groups/home/resource/chat${theirStation}`);
|
||||
history.push(`/~landscape/home/resource/chat${theirStation}`);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -58,7 +58,7 @@ export class ProfileOverlay extends PureComponent {
|
||||
|
||||
// TODO: make a pretty loading state
|
||||
setTimeout(() => {
|
||||
history.push(`/~groups/home/resource/chat${station}`);
|
||||
history.push(`/~landscape/home/resource/chat${station}`);
|
||||
}, 5000);
|
||||
}
|
||||
|
||||
|
@ -62,7 +62,7 @@ export default class LaunchApp extends React.Component {
|
||||
border={1}
|
||||
bg="washedGreen"
|
||||
borderColor="green"
|
||||
to="/~groups/home"
|
||||
to="/~landscape/home"
|
||||
>
|
||||
<Row alignItems="center">
|
||||
<Icon
|
||||
|
@ -56,7 +56,7 @@ export default function Groups(props: GroupsProps & Parameters<typeof Box>[0]) {
|
||||
p={2}
|
||||
>
|
||||
{groups.map((group) => (
|
||||
<Link to={`/~groups${group["group-path"]}`}>
|
||||
<Link to={`/~landscape${group["group-path"]}`}>
|
||||
<Box
|
||||
height="100%"
|
||||
width="100%"
|
||||
|
@ -25,7 +25,8 @@ export default class Welcome extends React.Component {
|
||||
<p className="f9 pt2">Since your ID and OS belong to you, it’s up to you to keep them safe. Be sure your ID is somewhere you won’t lose it and you keep your OS on a machine you trust.</p>
|
||||
<p className="f9 pt2">Urbit OS is designed to keep your data secure and hard to lose. But the system is still young — so don’t put anything critical in here just yet.</p>
|
||||
<p className="f9 pt2">To begin exploring, you should probably pop into a chat and verify there are signs of life in this new place. If you were invited by a friend, you probably already have access to a few groups.</p>
|
||||
<p className="f9 pt2">If you don't know where to go, feel free to <Link className="no-underline bb b--black b--gray1-d dib" to="/~groups/join/~bitbet-bolbel/urbit-community">join the Urbit Community group</Link>.
|
||||
<p className="f9 pt2">If you don't know where to go, feel free to
|
||||
<Link className="no-underline bb b--black b--gray1-d dib" to="/~landscape/join/~bitbet-bolbel/urbit-community">join the Urbit Community group</Link>.
|
||||
</p>
|
||||
<p className="f9 pt2">Have fun!</p>
|
||||
<p className="dib f9 pt2 bb b--black b--gray1-d pointer"
|
||||
|
@ -29,7 +29,7 @@ export class Omnibox extends Component {
|
||||
componentDidUpdate(prevProps, prevState) {
|
||||
if (prevProps !== this.props) {
|
||||
const { pathname } = this.props.location;
|
||||
const selectedGroup = pathname.startsWith('/~groups/ship/') ? '/' + pathname.split('/').slice(2,5).join('/') : null;
|
||||
const selectedGroup = pathname.startsWith('/~landscape/ship/') ? '/' + pathname.split('/').slice(2,5).join('/') : null;
|
||||
|
||||
this.setState({ index: index(this.props.associations, this.props.apps.tiles, selectedGroup) });
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ export function ChannelMenu(props: ChannelMenuProps) {
|
||||
const history = useHistory();
|
||||
const { metadata } = association;
|
||||
const app = metadata.module || association["app-name"];
|
||||
const baseUrl = `/~groups${association?.["group-path"]}/resource/${app}${association["app-path"]}`;
|
||||
const baseUrl = `/~landscape${association?.["group-path"]}/resource/${app}${association["app-path"]}`;
|
||||
const appPath = association["app-path"];
|
||||
|
||||
const [, ship, name] = appPath.startsWith("/ship/")
|
||||
@ -59,7 +59,7 @@ export function ChannelMenu(props: ChannelMenuProps) {
|
||||
default:
|
||||
throw new Error("Invalid app name");
|
||||
}
|
||||
history.push(`/~groups${association?.["group-path"]}`);
|
||||
history.push(`/~landscape${association?.["group-path"]}`);
|
||||
}, [api, association]);
|
||||
|
||||
const onDelete = useCallback(async () => {
|
||||
@ -77,7 +77,7 @@ export function ChannelMenu(props: ChannelMenuProps) {
|
||||
default:
|
||||
throw new Error("Invalid app name");
|
||||
}
|
||||
history.push(`/~groups${association?.["group-path"]}`);
|
||||
history.push(`/~landscape${association?.["group-path"]}`);
|
||||
}, [api, association]);
|
||||
|
||||
return (
|
||||
|
@ -40,7 +40,7 @@ export const Content = (props) => {
|
||||
)}
|
||||
/>
|
||||
<Route
|
||||
path='/~groups'
|
||||
path='/~landscape'
|
||||
render={p => (
|
||||
<Landscape
|
||||
history={p.history}
|
||||
|
@ -59,7 +59,7 @@ function RecentGroups(props: { recent: string[]; associations: Associations }) {
|
||||
display="block"
|
||||
flexShrink='0'
|
||||
/>
|
||||
<Link style={{ minWidth: 0 }} to={`/~groups${g}`}>
|
||||
<Link style={{ minWidth: 0 }} to={`/~landscape${g}`}>
|
||||
<Text verticalAlign='top' maxWidth='100%' overflow='hidden' display='inline-block' style={{ textOverflow: 'ellipsis', whiteSpace: 'pre' }}>{assoc?.metadata?.title}</Text>
|
||||
</Link>
|
||||
</Row>
|
||||
@ -114,11 +114,11 @@ export function GroupSwitcher(props: {
|
||||
recent={props.recentGroups}
|
||||
associations={props.associations}
|
||||
/>
|
||||
<GroupSwitcherItem to="/~groups/new">
|
||||
<GroupSwitcherItem to="/~landscape/new">
|
||||
<Icon mr="2" color="transparent" stroke="gray" icon="Plus" />
|
||||
<Text> New Group</Text>
|
||||
</GroupSwitcherItem>
|
||||
<GroupSwitcherItem to="/~groups/join">
|
||||
<GroupSwitcherItem to="/~landscape/join">
|
||||
<Icon mr="2" color="transparent" stroke="gray" icon="Boot" />
|
||||
<Text> Join Group</Text>
|
||||
</GroupSwitcherItem>
|
||||
|
@ -51,7 +51,7 @@ export function ResourceSkeleton(props: ResourceSkeletonProps) {
|
||||
mr={2}
|
||||
display={["block", "none"]}
|
||||
>
|
||||
<Link to={`/~groups${selectedGroup}`}> {"<- Back"}</Link>
|
||||
<Link to={`/~landscape${selectedGroup}`}> {"<- Back"}</Link>
|
||||
</Box>
|
||||
) : (
|
||||
<Box
|
||||
@ -61,7 +61,7 @@ export function ResourceSkeleton(props: ResourceSkeletonProps) {
|
||||
pr={2}
|
||||
mr={2}
|
||||
>
|
||||
<Link to={`/~groups${selectedGroup}/resource/${app}${appPath}`}>
|
||||
<Link to={`/~landscape${selectedGroup}/resource/${app}${appPath}`}>
|
||||
<Text color="blue">Go back to channel</Text>
|
||||
</Link>
|
||||
</Box>
|
||||
|
@ -132,7 +132,7 @@ export function Sidebar(props: SidebarProps) {
|
||||
my={2}
|
||||
>
|
||||
<Link
|
||||
to={!!groupPath ? `/~groups${groupPath}/new` : `/~groups/home/new`}
|
||||
to={!!groupPath ? `/~landscape${groupPath}/new` : `/~landscape/home/new`}
|
||||
>
|
||||
<Box
|
||||
bg="white"
|
||||
|
@ -71,7 +71,7 @@ export function SidebarItem(props: {
|
||||
|
||||
const isSynced = itemStatus !== "unsubscribed";
|
||||
|
||||
const baseUrl = isUnmanaged ? `/~groups/home` : `/~groups${groupPath}`;
|
||||
const baseUrl = isUnmanaged ? `/~landscape/home` : `/~landscape${groupPath}`;
|
||||
|
||||
const to = isSynced
|
||||
? `${baseUrl}/resource/${module}${appPath}`
|
||||
|
@ -61,26 +61,26 @@ export default class Landscape extends Component<LandscapeProps, {}> {
|
||||
|
||||
return (
|
||||
<Switch>
|
||||
<Route path="/~groups/ship/:host/:name"
|
||||
<Route path="/~landscape/ship/:host/:name"
|
||||
render={routeProps => {
|
||||
const {
|
||||
host,
|
||||
name
|
||||
} = routeProps.match.params as Record<string, string>;
|
||||
const groupPath = `/ship/${host}/${name}`;
|
||||
const baseUrl = `/~groups${groupPath}`;
|
||||
const baseUrl = `/~landscape${groupPath}`;
|
||||
const ws: Workspace = { type: 'group', group: groupPath };
|
||||
|
||||
return (
|
||||
<GroupsPane workspace={ws} baseUrl={baseUrl} {...props} />
|
||||
)
|
||||
}}/>
|
||||
<Route path="/~groups/home"
|
||||
<Route path="/~landscape/home"
|
||||
render={routeProps => {
|
||||
const ws: Workspace = { type: 'home' };
|
||||
|
||||
return (
|
||||
<GroupsPane workspace={ws} baseUrl="/~groups/home" {...props} />
|
||||
<GroupsPane workspace={ws} baseUrl="/~landscape/home" {...props} />
|
||||
);
|
||||
}}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user