-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
61 changed files
with
3,010 additions
and
5,315 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,3 +104,6 @@ dist | |
|
||
# TernJS port file | ||
.tern-port | ||
|
||
# React Component Preview | ||
previewConfig.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -140,4 +140,4 @@ export default React.memo(styled(AlertMessage)` | |
color: #333333; | ||
} | ||
} | ||
`) | ||
` as any) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,4 +91,4 @@ export const BtnUpload = React.memo<Props>(styled(btnUpload)` | |
} | ||
} | ||
} | ||
`) | ||
` as any) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -376,4 +376,4 @@ export default React.memo<Props>(styled(FileItem)` | |
border-radius: 8px !important; | ||
} | ||
`) | ||
` as any) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -171,6 +171,6 @@ export const FilesTable = React.memo<Props>(styled(filesTable)` | |
} | ||
} | ||
} | ||
`) | ||
` as any) | ||
|
||
export default FilesTable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,5 +30,5 @@ export default React.memo<Props>(styled(Logo)` | |
color: white; | ||
display: inline-block; | ||
} | ||
`) | ||
` as any) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,4 +54,4 @@ export const MCard = React.memo<BasePropsWithChildren>(styled(_MCard)` | |
margin-right: 1rem; | ||
} | ||
} | ||
`) | ||
` as any) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -199,4 +199,4 @@ export default React.memo<Props>(styled(MDropdown)` | |
} | ||
} | ||
} | ||
`) | ||
` as any) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,47 @@ | ||
import Head from 'next/head' | ||
import React from "react"; | ||
import Head from "next/head"; | ||
import React, { ReactNode } from "react"; | ||
import styled from "styled-components"; | ||
|
||
import { BasePropsWithChildren } from "./types"; | ||
|
||
export function CenterFlex(p: React.HTMLProps<HTMLDivElement> = {}) { | ||
const { className, children, style = {}, ...other } = p | ||
return <div | ||
className={className} | ||
style={{ display: 'flex', ...style }} | ||
{...other}> | ||
<div style={{ flex: 1, height: 1, width: 1 }} /> | ||
{children} | ||
<div style={{ flex: 1, height: 1, width: 1 }} /> | ||
</div> | ||
const { className, children, style = {}, ...other } = p; | ||
return ( | ||
<div className={className} style={{ display: "flex", ...style }} {...other}> | ||
<div style={{ flex: 1, height: 1, width: 1 }} /> | ||
{children as ReactNode} | ||
<div style={{ flex: 1, height: 1, width: 1 }} /> | ||
</div> | ||
); | ||
} | ||
|
||
export const RowFlex = styled.div` | ||
display: flex; | ||
flex-direction: row; | ||
` | ||
`; | ||
|
||
export const ColFlex = styled.div` | ||
display: flex; | ||
display: flex; | ||
flex-direction: column; | ||
` | ||
`; | ||
|
||
export const siteTitle = 'Crust Files' | ||
export const siteTitle = "Crust Files"; | ||
|
||
function Layout({ | ||
children, | ||
className, | ||
}: { | ||
children: React.ReactNode, | ||
className?: string, | ||
}) { | ||
function Layout({ children, className }: BasePropsWithChildren) { | ||
return ( | ||
<div className={className}> | ||
<Head> | ||
<link rel="icon" href="/favicon.ico" /> | ||
<meta | ||
name="description" | ||
content="Crust Files, the Web3.0 file storage application" | ||
/> | ||
<meta name="description" content="Crust Files, the Web3.0 file storage application" /> | ||
<meta name="og:title" content={siteTitle} /> | ||
</Head> | ||
{children} | ||
</div> | ||
) | ||
); | ||
} | ||
|
||
export default React.memo(styled(Layout)` | ||
export default styled(Layout)` | ||
width: 100%; | ||
height: 100%; | ||
max-height: 100%; | ||
overflow: auto; | ||
`) | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,4 +88,4 @@ export default React.memo<Props>(styled(ModalNewKey)` | |
} | ||
} | ||
} | ||
`) | ||
` as any) |
Oops, something went wrong.