From a6e9985351fe5460a992fcc07957c374bde57c13 Mon Sep 17 00:00:00 2001 From: Robin Huang Date: Tue, 3 Sep 2024 14:12:31 -0700 Subject: [PATCH] Prettier. --- .github/workflows/secret-scanning.yml | 30 ++++++++++++------------- README.md | 2 -- components/publisher/PublisherNodes.tsx | 2 +- cors.json | 8 +++---- next.config.js | 3 +-- src/api/mutator/axios-instance.ts | 5 +++-- styles/globals.css | 2 +- 7 files changed, 25 insertions(+), 27 deletions(-) diff --git a/.github/workflows/secret-scanning.yml b/.github/workflows/secret-scanning.yml index d0c9ff1..691082b 100644 --- a/.github/workflows/secret-scanning.yml +++ b/.github/workflows/secret-scanning.yml @@ -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 \ No newline at end of file + 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 diff --git a/README.md b/README.md index cc02f30..f4e2221 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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). diff --git a/components/publisher/PublisherNodes.tsx b/components/publisher/PublisherNodes.tsx index 79690a0..48ff9b2 100644 --- a/components/publisher/PublisherNodes.tsx +++ b/components/publisher/PublisherNodes.tsx @@ -27,7 +27,7 @@ const PublisherNodes: React.FC = ({

- {publisher.name !== "" ? publisher.name : publisher.id} + {publisher.name !== '' ? publisher.name : publisher.id}

diff --git a/cors.json b/cors.json index 8c83fc1..987669f 100644 --- a/cors.json +++ b/cors.json @@ -1,8 +1,8 @@ [ { - "origin": ["*"], - "method": ["GET", "HEAD"], - "responseHeader": ["*"], - "maxAgeSeconds": 3000 + "origin": ["*"], + "method": ["GET", "HEAD"], + "responseHeader": ["*"], + "maxAgeSeconds": 3000 } ] diff --git a/next.config.js b/next.config.js index 7da27b5..75d8784 100644 --- a/next.config.js +++ b/next.config.js @@ -37,9 +37,8 @@ const conf = { destination: 'https://discord.gg/comfyorg', permanent: false, }, - ]; + ] }, - } // export default withMDX(conf); module.exports = withMDX(conf) diff --git a/src/api/mutator/axios-instance.ts b/src/api/mutator/axios-instance.ts index da66686..aecdeaf 100644 --- a/src/api/mutator/axios-instance.ts +++ b/src/api/mutator/axios-instance.ts @@ -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) => { diff --git a/styles/globals.css b/styles/globals.css index 1bb2f6b..93ab152 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -8,4 +8,4 @@ body { color: white !important; } -@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap"); \ No newline at end of file +@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');