Skip to content

Commit

Permalink
change hone page short :release
Browse files Browse the repository at this point in the history
  • Loading branch information
foxundermoon committed Feb 2, 2020
1 parent c7099a8 commit 4624885
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 34 deletions.
2 changes: 1 addition & 1 deletion packages/transparent-info-app/components/BottomNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function BottomNav() {
<BottomNavigationAction label="经过" value="/event" icon={<RestoreIcon />} />
<BottomNavigationAction label="文章" value="/postlist" icon={<ListIcon />} />
<BottomNavigationAction label="捐赠" value="/donation" icon={<EmojiPeopleIcon />} />
<BottomNavigationAction label="关于" value="/about" icon={<InfoIcon />} />
{/* <BottomNavigationAction label="关于" value="/about" icon={<InfoIcon />} /> */}
</BottomNavigation>
</Container>
);
Expand Down
14 changes: 7 additions & 7 deletions packages/transparent-info-app/components/Copyright.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { FunctionComponent } from "react";
import { Typography, Theme, Tooltip, Container } from "@material-ui/core";
import Link from "../src/Link";
import { makeStyles, createStyles } from "@material-ui/core/styles";
import { FunctionComponent } from 'react';
import { Typography, Theme, Tooltip, Container } from '@material-ui/core';
import Link from '../src/Link';
import { makeStyles, createStyles } from '@material-ui/core/styles';

const useStyles = makeStyles((theme: Theme) =>
createStyles({
root: {
textAlign: "center"
textAlign: 'center',
},
link: {
paddingLeft: theme.spacing(1)
}
paddingLeft: theme.spacing(1),
},
})
);

Expand Down
2 changes: 1 addition & 1 deletion packages/transparent-info-app/components/PostList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const PostList: FunctionComponent<Props> = ({ posts }) => {
return (
<List>
{posts.map((e, i) => (
<ListItem>
<ListItem key={i}>
<Link
passHref={false}
onClick={(evt: React.MouseEvent) => handleLinkClick(evt, e.href)}
Expand Down
20 changes: 14 additions & 6 deletions packages/transparent-info-app/components/Version.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,23 @@ interface VlinkProps {

const Vlink: FunctionComponent<VlinkProps> = ({ full, display = full }) => {
const href = `${projectUrl}/releases/tag/${full}`;
return <Link href={href}>{full} </Link>;
return (
<Link href={href} prefetch={false}>
{full}{' '}
</Link>
);
};

const Slink: FunctionComponent<{ sha: string; display?: string }> = ({
sha,
display = sha.substring(0, 7),
}) => {
const href = `${projectUrl}/commit/${sha}`;
return <Link href={href}>{display} </Link>;
return (
<Link href={href} prefetch={false}>
{display}{' '}
</Link>
);
};

const useStyles = makeStyles((theme: Theme) =>
Expand Down Expand Up @@ -52,7 +60,7 @@ export const Version = () => {
const buildNumber = '1' || process.env.BUILDNUMBER;
const fullVersion = `${version}.${buildNumber}`;
const sha = process.env.SHA;
const isOnIpfs = process.env.ON_IPFS === 'yes';
const showIpfsVersion = process.env.ON_IPFS === 'no';
const ipfsCid = process.env.IPFS_CID;

const classes = useStyles();
Expand All @@ -72,12 +80,12 @@ export const Version = () => {
</Typography>
</Tooltip>
)}
{isOnIpfs && (
{showIpfsVersion && (
<>
<Splitr />
<Tooltip title={`ipfs mirror: ${ipfsCid}`}>
<Tooltip title={`published on ipfs: ${ipfsCid}`}>
<Typography component="span">
<Link href={`https://ipfs.io/ipfs/${ipfsCid}`} />
<Link href={`https://ipfs.io/ipfs/${ipfsCid}`}>{ipfsCid}</Link>
</Typography>
</Tooltip>
</>
Expand Down
15 changes: 15 additions & 0 deletions packages/transparent-info-app/pages/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import Layout from '../components/Layout';

TL;DR

# 本项目旨在技术上提供一种无法删帖、杜绝 404 的可能性。

## 保障宪法第二章第三十五条部分条款

- transparent infomation on 2019-nCoV by decentralized technology.
- 项目源码 [https://git.io/nCov](https://github.com/DnCov/transparent-info)
- 协议 Gplv3

export default ({ children }) => <Layout title="2019 DnCov info"> {children} </Layout>;

;
19 changes: 0 additions & 19 deletions packages/transparent-info-app/pages/index.tsx

This file was deleted.

0 comments on commit 4624885

Please sign in to comment.