From 87571b3855afc5000c8ef540ea07d6bd4a89a416 Mon Sep 17 00:00:00 2001 From: teodorus-nathaniel Date: Thu, 6 Jun 2024 16:35:41 +0700 Subject: [PATCH 1/4] Add eruda --- package.json | 1 + src/pages/_app.js | 1 + yarn.lock | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/package.json b/package.json index 8b3dc595b..0e79106c2 100644 --- a/package.json +++ b/package.json @@ -123,6 +123,7 @@ "dayjs": "^1.9.6", "dotenv-webpack": "^1.0.2", "easymde": "^2.15.0", + "eruda": "^3.0.1", "eslint-config-next": "13", "graphql": "^15.5.0", "graphql-request": "^5.2.0", diff --git a/src/pages/_app.js b/src/pages/_app.js index 9d5108710..9895a7360 100644 --- a/src/pages/_app.js +++ b/src/pages/_app.js @@ -55,6 +55,7 @@ function MyApp(props) { if (isInitialized.current) return isInitialized.current = true initAllStores() + import('eruda').then(lib => lib.default.init()) }, []) // Debug store diff --git a/yarn.lock b/yarn.lock index 5b25bb460..e9cd4ef62 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6100,6 +6100,11 @@ error-stack-parser@^2.0.6: dependencies: stackframe "^1.3.4" +eruda@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/eruda/-/eruda-3.0.1.tgz#6c07ae2b3ced54151c6e9b21f9b8da11e6ec988a" + integrity sha512-6q1Xdwga4JTr1mKSW4mzuWSSbmXgqpm/8Wa1QGFGfCWRjC0bCQjbS4u06M1te1moucIS3hBLlbSTPWYH2W0qbQ== + es-abstract@^1.19.0, es-abstract@^1.20.4: version "1.21.2" resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.21.2.tgz#a56b9695322c8a185dc25975aa3b8ec31d0e7eff" From 2326e769ef8f993a50a475ddafeac9f34d48b5fd Mon Sep 17 00:00:00 2001 From: teodorus-nathaniel Date: Thu, 6 Jun 2024 17:17:55 +0700 Subject: [PATCH 2/4] Change env to use prod datahub --- .github/workflows/build-deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index a71ca8042..7d8ac0f49 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -85,9 +85,9 @@ jobs: GH_SELLER_CLIENT_ID=5DYm3Wk4aa1BbfhH1ajmY6MNEELXoicmKRnP4tzHYjSKnD9K GH_SELLER_TOKEN_SIGNER=retire strong pole intact cool music high path salt praise stadium spatial GH_SERVER_MNEMONIC=plunge pumpkin penalty segment cattle more print below fat lemon clap uniform - GH_NEXT_PUBLIC_DATAHUB_QUERY_URL=https://ownership-pallet-data-hub-core.subsocial.network/graphql - GH_NEXT_PUBLIC_DATAHUB_SUBSCRIPTION_URL=wss://ownership-pallet-data-hub-core.subsocial.network/graphql-ws - GH_DATAHUB_QUEUE_URL=https://ownership-pallet-data-hub-queue.subsocial.network/graphql + GH_NEXT_PUBLIC_DATAHUB_QUERY_URL=https://sub-data-hub.subsocial.network/graphql + GH_NEXT_PUBLIC_DATAHUB_SUBSCRIPTION_URL=wss://sub-data-hub.subsocial.network/graphql-ws + GH_DATAHUB_QUEUE_URL=https://sub-queue-data-hub.subsocial.network/graphql GH_DATAHUB_QUEUE_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhZG1pbiI6dHJ1ZX0.jpXwkIJ4DpV4IvSI3eWVVXE6x89qr_GIq7IlbBv5YE0 GH_NEXT_PUBLIC_APP_ID=12364 # GH_NEXT_PUBLIC_ENABLE_MAINTENANCE_PAGE=true From 278bacb213d2da30703bae7ad5b4e2b219a30e14 Mon Sep 17 00:00:00 2001 From: teodorus-nathaniel Date: Thu, 6 Jun 2024 18:41:17 +0700 Subject: [PATCH 3/4] Add display none to grill iframe --- src/components/utils/GrillIframe.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/utils/GrillIframe.tsx b/src/components/utils/GrillIframe.tsx index 474d53973..e8b7a3e2a 100644 --- a/src/components/utils/GrillIframe.tsx +++ b/src/components/utils/GrillIframe.tsx @@ -16,6 +16,7 @@ const GrillIframeModal = forwardRef< style={{ opacity: isOpen ? 1 : 0, pointerEvents: isOpen ? 'auto' : 'none', + display: isOpen ? 'block' : 'none', transition: 'opacity 0.3s ease-in-out', border: 'none', colorScheme: 'none', From 93d7f6a6e17d520e7850fc74e0990b1bca8fac42 Mon Sep 17 00:00:00 2001 From: teodorus-nathaniel Date: Thu, 6 Jun 2024 19:04:20 +0700 Subject: [PATCH 4/4] Remove eruda --- package.json | 1 - src/pages/_app.js | 1 - yarn.lock | 5 ----- 3 files changed, 7 deletions(-) diff --git a/package.json b/package.json index 0e79106c2..8b3dc595b 100644 --- a/package.json +++ b/package.json @@ -123,7 +123,6 @@ "dayjs": "^1.9.6", "dotenv-webpack": "^1.0.2", "easymde": "^2.15.0", - "eruda": "^3.0.1", "eslint-config-next": "13", "graphql": "^15.5.0", "graphql-request": "^5.2.0", diff --git a/src/pages/_app.js b/src/pages/_app.js index 9895a7360..9d5108710 100644 --- a/src/pages/_app.js +++ b/src/pages/_app.js @@ -55,7 +55,6 @@ function MyApp(props) { if (isInitialized.current) return isInitialized.current = true initAllStores() - import('eruda').then(lib => lib.default.init()) }, []) // Debug store diff --git a/yarn.lock b/yarn.lock index e9cd4ef62..5b25bb460 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6100,11 +6100,6 @@ error-stack-parser@^2.0.6: dependencies: stackframe "^1.3.4" -eruda@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/eruda/-/eruda-3.0.1.tgz#6c07ae2b3ced54151c6e9b21f9b8da11e6ec988a" - integrity sha512-6q1Xdwga4JTr1mKSW4mzuWSSbmXgqpm/8Wa1QGFGfCWRjC0bCQjbS4u06M1te1moucIS3hBLlbSTPWYH2W0qbQ== - es-abstract@^1.19.0, es-abstract@^1.20.4: version "1.21.2" resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.21.2.tgz#a56b9695322c8a185dc25975aa3b8ec31d0e7eff"