run formatter

Signed-off-by: alok8bb <alok8bb@gmail.com>
This commit is contained in:
alok8bb 2023-07-29 16:38:16 +05:30
parent cc56e17bd4
commit ae4986c091
No known key found for this signature in database
10 changed files with 842 additions and 438 deletions

View File

@ -6,7 +6,6 @@
"quoteProps": "consistent",
"jsxSingleQuote": false,
"bracketSpacing": true,
"jsxBracketSameLine": true,
"arrowParens": "avoid",
"printWidth": 80
}

View File

@ -1,13 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg" href="favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Okiba</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg" href="favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Okiba</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>

1156
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -12,7 +12,8 @@ function App() {
display: "flex",
flexDirection: "column",
height: "100%",
}}>
}}
>
<Routes>
<Route path="/" element={<Home />} />
<Route path="/:id" element={<Paste />} />

View File

@ -13,14 +13,16 @@ const BottomBar: FunctionComponent<propTypes> = props => {
justifyContent: "space-between",
paddingInline: "15px",
}}
className="BottomBar">
className="BottomBar"
>
<a
style={{
color: "#D9F8C4",
cursor: "pointer",
textDecoration: "none",
}}
href="/">
href="/"
>
<b>Okiba</b> v1.0
</a>
<ul
@ -29,7 +31,8 @@ const BottomBar: FunctionComponent<propTypes> = props => {
display: "flex",
marginBottom: "2px",
alignItems: "center",
}}>
}}
>
{/* make component of these links some day */}
{props.isNewPaste ? (
@ -40,7 +43,8 @@ const BottomBar: FunctionComponent<propTypes> = props => {
await props.postCallback();
}
}}
style={linkStyle}>
style={linkStyle}
>
<li style={listStyle}>save</li>
</a>
) : (
@ -56,7 +60,8 @@ const BottomBar: FunctionComponent<propTypes> = props => {
<a
href={"https://github.com/okiba-org/"}
target="_blank"
style={linkStyle}>
style={linkStyle}
>
<li style={listStyle}>source</li>
</a>
</ul>
@ -79,7 +84,8 @@ const Separator = () => (
style={{
fontSize: "1rem",
color: "#839496",
}}>
}}
>
</div>
);

View File

@ -1,21 +1,21 @@
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;700&display=swap');
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;700&display=swap");
* {
margin: 0;
font-family: "IBM Plex Mono", monospace;
margin: 0;
font-family: "IBM Plex Mono", monospace;
}
body {
background: black;
color: white;
background: black;
color: white;
}
#root {
height: 100vh;
height: 100vh;
}
@media screen and (max-width: 600px) {
#root {
height: 93vh;
}
#root {
height: 93vh;
}
}

View File

@ -1 +1 @@
export const SERVER_URL = import.meta.env.VITE_SERVER_URL
export const SERVER_URL = import.meta.env.VITE_SERVER_URL;

View File

@ -1,21 +1,21 @@
{
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"allowJs": false,
"skipLibCheck": true,
"esModuleInterop": false,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "ESNext",
"moduleResolution": "Node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx"
},
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"allowJs": false,
"skipLibCheck": true,
"esModuleInterop": false,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "ESNext",
"moduleResolution": "Node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx"
},
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
}

View File

@ -1,8 +1,8 @@
{
"compilerOptions": {
"composite": true,
"module": "esnext",
"moduleResolution": "node"
},
"include": ["vite.config.ts"]
"compilerOptions": {
"composite": true,
"module": "esnext",
"moduleResolution": "node"
},
"include": ["vite.config.ts"]
}

View File

@ -1,7 +1,7 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()]
})
plugins: [react()],
});