Last Minute Conf

This commit is contained in:
Jyotirmoy Bandyopadhayaya 2022-01-31 23:04:21 +05:30
parent 653dd08052
commit 1bfaabcccb
10 changed files with 145 additions and 131 deletions

1
frontend/.prettierignore Normal file
View File

@ -0,0 +1 @@
.next

5
frontend/.prettierrc Normal file
View File

@ -0,0 +1,5 @@
{
"tabWidth": 3,
"semi": false,
"singleQuote": true
}

View File

@ -5,7 +5,7 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
"prettier": "prettier --write ."
},
"dependencies": {
"next": "12.0.9",
@ -30,5 +30,8 @@
"bugs": {
"url": "https://github.com/bravo68web/url-minify/issues"
},
"homepage": "https://github.com/bravo68web/url-minify#readme"
"homepage": "https://github.com/bravo68web/url-minify#readme",
"devDependencies": {
"prettier": "2.5.1"
}
}

View File

@ -1,10 +1,10 @@
import { useState } from "react";
import Head from "next/head";
import styles from "../styles/Home.module.css";
import { useState } from 'react'
import Head from 'next/head'
import styles from '../styles/Home.module.css'
export default function Home() {
const [shortUrl, setShortUrl] = useState(null);
const [longURL, setLongURL] = useState("");
const [shortUrl, setShortUrl] = useState(null)
const [longURL, setLongURL] = useState('')
return (
<div className={styles.container}>
<Head>
@ -29,5 +29,5 @@ export default function Home() {
</div>
</main>
</div>
);
)
}

View File

@ -126,6 +126,11 @@ postcss@8.4.5:
picocolors "^1.0.0"
source-map-js "^1.0.1"
prettier@2.5.1:
version "2.5.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.5.1.tgz#fff75fa9d519c54cf0fce328c1017d94546bc56a"
integrity sha512-vBZcPRUR5MZJwoyi3ZoyQlc1rXeEck8KgeC9AwwOn+exuxLxq5toTRDTSaVrXHxelDMHy9zlicw8u66yxoSUFg==
react-dom@17.0.2:
version "17.0.2"
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-17.0.2.tgz#ecffb6845e3ad8dbfcdc498f0d0a939736502c23"