Skip to content

Commit

Permalink
Prettier.
Browse files Browse the repository at this point in the history
  • Loading branch information
robinjhuang committed Sep 3, 2024
1 parent 4379f0f commit a6e9985
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 27 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/secret-scanning.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
name: Secret Scanning
on:
push:
branches:
- main
pull_request:
push:
branches:
- main
pull_request:

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Secret Scanning
uses: trufflesecurity/trufflehog@main
with:
extra_args: --only-verified
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Secret Scanning
uses: trufflesecurity/trufflehog@main
with:
extra_args: --only-verified
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ Registry React Frontend [Github](https://github.com/Comfy-Org/registry-web)

Registry CLI [Github](https://github.com/yoland68/comfy-cli)


## Getting Started

### Set up IDE
Expand Down Expand Up @@ -46,7 +45,6 @@ This generates react queries that you can use in your Components.

Make a PR to the `main` branch. Once merged, Vercel will deploy to https://comfyregistry.org


### CORS

To enable CORS on the google cloud storage bucket, reference the `cors.json` file. More info [here](https://cloud.google.com/storage/docs/cross-origin#cors-components).
Expand Down
2 changes: 1 addition & 1 deletion components/publisher/PublisherNodes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const PublisherNodes: React.FC<PublisherNodesProps> = ({
<div className="flex items-center gap-2">
<h1 className="text-lg font-bold leading-tight tracking-tight text-white sm:text-2xl">
<Link href={`publishers/${publisher.id}`}>
{publisher.name !== "" ? publisher.name : publisher.id}
{publisher.name !== '' ? publisher.name : publisher.id}
</Link>
</h1>

Expand Down
8 changes: 4 additions & 4 deletions cors.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[
{
"origin": ["*"],
"method": ["GET", "HEAD"],
"responseHeader": ["*"],
"maxAgeSeconds": 3000
"origin": ["*"],
"method": ["GET", "HEAD"],
"responseHeader": ["*"],
"maxAgeSeconds": 3000
}
]
3 changes: 1 addition & 2 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ const conf = {
destination: 'https://discord.gg/comfyorg',
permanent: false,
},
];
]
},

}
// export default withMDX(conf);
module.exports = withMDX(conf)
5 changes: 3 additions & 2 deletions src/api/mutator/axios-instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import qs from 'qs'

const BACKEND_URL = process.env.NEXT_PUBLIC_BACKEND_URL

export const AXIOS_INSTANCE = Axios.create({
export const AXIOS_INSTANCE = Axios.create({
baseURL: BACKEND_URL,
paramsSerializer: params => qs.stringify(params, { arrayFormat: 'repeat' })
paramsSerializer: (params) =>
qs.stringify(params, { arrayFormat: 'repeat' }),
}) // use your own URL here or environment variable
// Add an interceptor to attach the Firebase JWT token to every request
AXIOS_INSTANCE.interceptors.request.use(async (config) => {
Expand Down
2 changes: 1 addition & 1 deletion styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ body {
color: white !important;
}

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

0 comments on commit a6e9985

Please sign in to comment.