Skip to content

Commit 3a09c34

Browse files
committed
initial minimal working version
1 parent 2a496d3 commit 3a09c34

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+10903
-131
lines changed

.babelrc

-3
This file was deleted.

.eslintignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
*.js
2+
.eslintrc.js
3+
commitlint.config.js
4+
dist
5+
lint-staged.config.js
6+
package.config.ts

.eslintrc

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"root": true,
3+
"env": {
4+
"node": true,
5+
"browser": true
6+
},
7+
"extends": [
8+
"sanity",
9+
"sanity/typescript",
10+
"sanity/react",
11+
"plugin:react-hooks/recommended",
12+
"plugin:prettier/recommended",
13+
"plugin:react/jsx-runtime",
14+
"@sanity/no-v2-imports"
15+
]
16+
}

.gitignore

+11-5
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,19 @@ jspm_packages
4242
# VS Code settings
4343
.vscode
4444

45-
# Lockfiles
46-
yarn.lock
47-
package-lock.json
45+
# IntelliJ
46+
.idea
47+
*.iml
4848

4949
# Cache
5050
.cache
5151

52-
# Compiled plugin
53-
/lib
52+
# Yalc
53+
.yalc
54+
yalc.lock
55+
56+
# npm package zips
57+
*.tgz
5458

59+
# Compiled plugin
60+
dist

.prettierignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
dist
2+
pnpm-lock.yaml
3+
yarn.lock
4+
package-lock.json

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 Dorell James
3+
Copyright (c) 2023 Dorell James
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

_ignored/config.ts

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// import config from "config:netlify-deploy-status-badge";
2+
3+
// export const {
4+
// apiId: siteId,
5+
// auth: { oauthClientId, personalAccessToken } = {},
6+
// } = config;
7+
8+
export const namespace = "netlify-deploy-status-badge";
9+
export const APP_REFRESH_INTERVAL = 10000;
10+
export const BADGE_REFRESH_INTERVAL = 10000;
File renamed without changes.
File renamed without changes.

src/hooks/useNetlifyAuth.js renamed to _ignored/hooks/useNetlifyAuth.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from "react";
2-
import { oauthClientId } from "../config";
3-
import { namespace } from "../config";
2+
import { namespace, oauthClientId } from "../config";
43

54
export default function useNetlifyAuth() {
65
const [authResponse, setAuthResponse] = React.useState(null);
@@ -23,7 +22,7 @@ export default function useNetlifyAuth() {
2322
setAuthResponse(response);
2423
window.localStorage.setItem(
2524
`${namespace}--auth`,
26-
JSON.stringify(response)
25+
JSON.stringify(response),
2726
);
2827
}
2928
}, []);

lib/assets/netlify-rectacle.svg

+1
Loading

lib/assets/preview-full.png

689 KB
Loading

lib/assets/preview.png

82.3 KB
Loading

0 commit comments

Comments
 (0)