-
Notifications
You must be signed in to change notification settings - Fork 0
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
default
committed
Oct 19, 2022
0 parents
commit a3253dc
Showing
31 changed files
with
5,572 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,110 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
|
||
# Diagnostic reports (https://nodejs.org/api/report.html) | ||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
*.lcov | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# TypeScript v1 declaration files | ||
typings/ | ||
|
||
# TypeScript cache | ||
*.tsbuildinfo | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Microbundle cache | ||
.rpt2_cache/ | ||
.rts2_cache_cjs/ | ||
.rts2_cache_es/ | ||
.rts2_cache_umd/ | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
.env.test | ||
|
||
# parcel-bundler cache (https://parceljs.org/) | ||
.cache | ||
|
||
# Next.js build output | ||
.next | ||
|
||
# Nuxt.js build / generate output | ||
.nuxt | ||
dist | ||
|
||
# Gatsby files | ||
.cache/ | ||
# Comment in the public line in if your project uses Gatsby and *not* Next.js | ||
# https://nextjs.org/blog/next-9-1#public-directory-support | ||
# public | ||
|
||
# vuepress build output | ||
.vuepress/dist | ||
|
||
# Serverless directories | ||
.serverless/ | ||
|
||
# FuseBox cache | ||
.fusebox/ | ||
|
||
# DynamoDB Local files | ||
.dynamodb/ | ||
|
||
# TernJS port file | ||
.tern-port | ||
|
||
.vercel | ||
.now | ||
.env.local | ||
|
||
.DS_Store |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx --no -- commitlint --edit $1 |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
yarn lint |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
ISC License | ||
|
||
Copyright (c) 2018-2021, Iain Collins | ||
|
||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted, provided that the above | ||
copyright notice and this permission notice appear in all copies. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
Empty file.
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm) | ||
// ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs) | ||
// docs: Documentation only changes | ||
// feat: A new feature | ||
// fix: A bug fix | ||
// perf: A code change that improves performance | ||
// refactor: A code change that neither fixes a bug nor adds a feature | ||
// style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc) | ||
// test: Adding missing tests or correcting existing tests | ||
|
||
module.exports = { | ||
extends: ['@commitlint/config-conventional'], | ||
rules: { | ||
'body-leading-blank': [1, 'always'], | ||
'body-max-line-length': [2, 'always', 100], | ||
'footer-leading-blank': [1, 'always'], | ||
'footer-max-line-length': [2, 'always', 100], | ||
'header-max-length': [2, 'always', 100], | ||
'scope-case': [2, 'always', 'lower-case'], | ||
'subject-case': [ | ||
2, | ||
'never', | ||
['sentence-case', 'start-case', 'pascal-case', 'upper-case'], | ||
], | ||
'subject-empty': [2, 'never'], | ||
'subject-full-stop': [2, 'never', '.'], | ||
'type-case': [2, 'always', 'lower-case'], | ||
'type-empty': [2, 'never'], | ||
'type-enum': [ | ||
2, | ||
'always', | ||
[ | ||
'build', | ||
'chore', | ||
'ci', | ||
'docs', | ||
'feat', | ||
'fix', | ||
'perf', | ||
'refactor', | ||
'revert', | ||
'style', | ||
'test', | ||
'translation', | ||
'security', | ||
'changeset', | ||
], | ||
], | ||
}, | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { signIn } from "next-auth/react" | ||
|
||
export default function AccessDenied() { | ||
return ( | ||
<> | ||
<h1>Access Denied</h1> | ||
<p> | ||
<a | ||
href="/api/auth/signin" | ||
onClick={(e) => { | ||
e.preventDefault() | ||
signIn() | ||
}} | ||
> | ||
You must be signed in to view this page | ||
</a> | ||
</p> | ||
</> | ||
) | ||
} |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.footer { | ||
margin-top: 2rem; | ||
} | ||
|
||
.navItems { | ||
margin-bottom: 1rem; | ||
padding: 0; | ||
list-style: none; | ||
} | ||
|
||
.navItem { | ||
display: inline-block; | ||
margin-right: 1rem; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import Link from "next/link" | ||
import styles from "./footer.module.css" | ||
import packageJSON from "../package.json" | ||
|
||
export default function Footer() { | ||
return ( | ||
<footer className={styles.footer}> | ||
<hr /> | ||
<ul className={styles.navItems}> | ||
<li className={styles.navItem}> | ||
<a href="https://next-auth.js.org">Documentation</a> | ||
</li> | ||
<li className={styles.navItem}> | ||
<a href="https://www.npmjs.com/package/next-auth">NPM</a> | ||
</li> | ||
<li className={styles.navItem}> | ||
<a href="https://github.com/nextauthjs/next-auth-example">GitHub</a> | ||
</li> | ||
<li className={styles.navItem}> | ||
<Link href="/policy"> | ||
<a>Policy</a> | ||
</Link> | ||
</li> | ||
<li className={styles.navItem}> | ||
<em>next-auth@{packageJSON.dependencies["next-auth"]}</em> | ||
</li> | ||
</ul> | ||
</footer> | ||
) | ||
} |
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 |
---|---|---|
@@ -0,0 +1,92 @@ | ||
/* Set min-height to avoid page reflow while session loading */ | ||
.signedInStatus { | ||
display: block; | ||
min-height: 4rem; | ||
width: 100%; | ||
} | ||
|
||
.loading, | ||
.loaded { | ||
position: relative; | ||
top: 0; | ||
opacity: 1; | ||
overflow: hidden; | ||
border-radius: 0 0 0.6rem 0.6rem; | ||
padding: 0.6rem 1rem; | ||
margin: 0; | ||
background-color: rgba(0, 0, 0, 0.05); | ||
transition: all 0.2s ease-in; | ||
} | ||
|
||
.loading { | ||
top: -2rem; | ||
opacity: 0; | ||
} | ||
|
||
.signedInText, | ||
.notSignedInText { | ||
position: absolute; | ||
padding-top: 0.8rem; | ||
left: 1rem; | ||
right: 6.5rem; | ||
white-space: nowrap; | ||
text-overflow: ellipsis; | ||
overflow: hidden; | ||
display: inherit; | ||
z-index: 1; | ||
line-height: 1.3rem; | ||
} | ||
|
||
.signedInText { | ||
padding-top: 0rem; | ||
left: 4.6rem; | ||
} | ||
|
||
.avatar { | ||
border-radius: 2rem; | ||
float: left; | ||
height: 2.8rem; | ||
width: 2.8rem; | ||
background-color: white; | ||
background-size: cover; | ||
background-repeat: no-repeat; | ||
} | ||
|
||
.button, | ||
.buttonPrimary { | ||
float: right; | ||
margin-right: -0.4rem; | ||
font-weight: 500; | ||
border-radius: 0.3rem; | ||
cursor: pointer; | ||
font-size: 1rem; | ||
line-height: 1.4rem; | ||
padding: 0.7rem 0.8rem; | ||
position: relative; | ||
z-index: 10; | ||
background-color: transparent; | ||
color: #555; | ||
} | ||
|
||
.buttonPrimary { | ||
background-color: #346df1; | ||
border-color: #346df1; | ||
color: #fff; | ||
text-decoration: none; | ||
padding: 0.7rem 1.4rem; | ||
} | ||
|
||
.buttonPrimary:hover { | ||
box-shadow: inset 0 0 5rem rgba(0, 0, 0, 0.2); | ||
} | ||
|
||
.navItems { | ||
margin-bottom: 2rem; | ||
padding: 0; | ||
list-style: none; | ||
} | ||
|
||
.navItem { | ||
display: inline-block; | ||
margin-right: 1rem; | ||
} |
Oops, something went wrong.