-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace Gatsby with Vite and Emotion with Tailwind CSS. BREAKING CHANGE: Password Lense no longer supports IE 11. You must use a modern browser instead.
- Loading branch information
Showing
66 changed files
with
2,999 additions
and
11,247 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
This file was deleted.
Oops, something went wrong.
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,2 +1,3 @@ | ||
.cache/ | ||
/public | ||
/dist | ||
/dist-ssr | ||
index.html |
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,3 +1,3 @@ | ||
.cache/ | ||
/public | ||
/dist | ||
/dist-ssr | ||
package.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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,68 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1, shrink-to-fit=no" | ||
/> | ||
<title>Password Lense</title> | ||
<meta name="application-name" content="Password Lense" /> | ||
<meta name="apple-mobile-web-app-title" content="Password Lense" /> | ||
<meta name="description" content="Reveal character types in a password" /> | ||
<meta property="og:type" content="website" /> | ||
<meta property="og:title" content="Password Lense" /> | ||
<meta | ||
property="og:description" | ||
content="Reveal character types in a password" | ||
/> | ||
<meta | ||
property="og:image" | ||
content="https://res.cloudinary.com/dfcj3xczu/image/upload/v1538582926/pwl-social-banner.png" | ||
/> | ||
<meta property="og:image:alt" content="Password Lense" /> | ||
<meta name="twitter:card" content="summary_large_image" /> | ||
<meta name="twitter:title" content="Password Lense" /> | ||
<meta | ||
name="twitter:description" | ||
content="Reveal character types in a password" | ||
/> | ||
<meta | ||
name="twitter:image" | ||
content="https://res.cloudinary.com/dfcj3xczu/image/upload/v1538582926/pwl-social-banner.png" | ||
/> | ||
<meta name="twitter:image:alt" content="Password Lense" /> | ||
<link rel="icon" sizes="any" href="/favicon.ico" /> | ||
<link rel="icon" type="image/png" sizes="32x32" href="/icon-32x32.png" /> | ||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" /> | ||
<meta name="msapplication-TileColor" content="#1c304a" /> | ||
<meta name="theme-color" content="#1c304a" /> | ||
</head> | ||
<body | ||
class="font-body text-gray-900 dark:text-gray-100 bg-white dark:bg-dark" | ||
> | ||
<script type="text/javascript"> | ||
function prefersDark() { | ||
const storedPreference = window.localStorage.getItem('darkMode'); | ||
const hasStoredPreference = typeof storedPreference === 'string'; | ||
if (hasStoredPreference) return storedPreference === 'true'; | ||
|
||
const mediaQuery = '(prefers-color-scheme: dark)'; | ||
const mql = window.matchMedia(mediaQuery); | ||
const hasSystemPreference = typeof mql.matches === 'boolean'; | ||
if (hasSystemPreference) return mql.matches ? true : false; | ||
|
||
return false; | ||
} | ||
|
||
if (prefersDark()) { | ||
document.documentElement.classList.add('dark'); | ||
} | ||
</script> | ||
<noscript> | ||
<p class="p-4">This application requires JavaScript.</p> | ||
</noscript> | ||
<div id="root"></div> | ||
<script type="module" src="/src/main.tsx"></script> | ||
</body> | ||
</html> |
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,3 +1,19 @@ | ||
[build] | ||
command = "npm run build" | ||
publish = "public" | ||
publish = "dist" | ||
|
||
[[headers]] | ||
for = "/*" | ||
[headers.values] | ||
X-Content-Type-Options = "nosniff" | ||
X-Frame-Options = "DENY" | ||
X-XSS-Protection = "1; mode=block" | ||
Content-Security-Policy = "default-src 'self'; connect-src 'self' https://api.pwnedpasswords.com; img-src data: https:; script-src 'self' 'unsafe-inline'; style-src 'self'; worker-src 'self'; object-src 'none'" | ||
Permissions-Policy = "geolocation=(), camera=(), microphone=(), payment=(), usb=()" | ||
Referrer-Policy = "no-referrer-when-downgrade" | ||
Expect-CT = "enforce, max-age=3600" | ||
|
||
[[headers]] | ||
for = "/manifest.webmanifest" | ||
[headers.values] | ||
Content-Type = "application/manifest+json" |
Oops, something went wrong.