From b76396890e8119bb4794765e7f39bfa6fb0c2f12 Mon Sep 17 00:00:00 2001 From: kevin Date: Wed, 31 Jul 2024 18:27:43 -0400 Subject: [PATCH 1/3] feat: added context error --- frontend/replacement.dev.json | 2 +- frontend/src/components/Editor/EditorComponents/Editor.tsx | 2 +- frontend/src/utils/pgSchemaTypeGen.js | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/replacement.dev.json b/frontend/replacement.dev.json index 783dd1a8..56dc9422 100644 --- a/frontend/replacement.dev.json +++ b/frontend/replacement.dev.json @@ -1,7 +1,7 @@ { "REPL_ACCOUNT_ID": "dev-queryapi.dataplatform.near", "REPL_GRAPHQL_ENDPOINT": "https://near-queryapi.dev.api.pagoda.co", - "REPL_EXTERNAL_APP_URL": "https://queryapi-frontend-vcqilefdcq-ew.a.run.app", + "REPL_EXTERNAL_APP_URL": "http://localhost:3000", "REPL_REGISTRY_CONTRACT_ID": "dev-queryapi.dataplatform.near", "REPL_QUERY_API_USAGE_URL": "https://storage.googleapis.com/databricks-near-query-runner/output/query-api-usage/indexers_dev.json" } diff --git a/frontend/src/components/Editor/EditorComponents/Editor.tsx b/frontend/src/components/Editor/EditorComponents/Editor.tsx index 64fec42d..3d914adb 100644 --- a/frontend/src/components/Editor/EditorComponents/Editor.tsx +++ b/frontend/src/components/Editor/EditorComponents/Editor.tsx @@ -339,7 +339,7 @@ const Editor: React.FC = (): ReactElement => { ); monaco.languages.typescript.typescriptDefaults.setCompilerOptions({ - target: monaco.languages.typescript.ScriptTarget.ES2018, + target: monaco.languages.typescript.ScriptTarget.ES2020, allowNonTsExtensions: true, moduleResolution: monaco.languages.typescript.ModuleResolutionKind.NodeJs, }); diff --git a/frontend/src/utils/pgSchemaTypeGen.js b/frontend/src/utils/pgSchemaTypeGen.js index d4e4a4fb..3aa73d2f 100644 --- a/frontend/src/utils/pgSchemaTypeGen.js +++ b/frontend/src/utils/pgSchemaTypeGen.js @@ -187,6 +187,7 @@ export class PgSchemaTypeGen { set: (key, value) => Promise, log: (...log) => Promise, fetchFromSocialApi: (path, options) => Promise, + error: (message: string) => Promise, db: {`; const tableList = new Set(); From 965695d8b7cac0d4d504ce2dc6dc32c46eeff91a Mon Sep 17 00:00:00 2001 From: kevin Date: Wed, 31 Jul 2024 18:27:46 -0400 Subject: [PATCH 2/3] feat: added context error --- frontend/replacement.dev.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/replacement.dev.json b/frontend/replacement.dev.json index 56dc9422..783dd1a8 100644 --- a/frontend/replacement.dev.json +++ b/frontend/replacement.dev.json @@ -1,7 +1,7 @@ { "REPL_ACCOUNT_ID": "dev-queryapi.dataplatform.near", "REPL_GRAPHQL_ENDPOINT": "https://near-queryapi.dev.api.pagoda.co", - "REPL_EXTERNAL_APP_URL": "http://localhost:3000", + "REPL_EXTERNAL_APP_URL": "https://queryapi-frontend-vcqilefdcq-ew.a.run.app", "REPL_REGISTRY_CONTRACT_ID": "dev-queryapi.dataplatform.near", "REPL_QUERY_API_USAGE_URL": "https://storage.googleapis.com/databricks-near-query-runner/output/query-api-usage/indexers_dev.json" } From eec3bf5eb5c5e6890c1d827e1330f4b5153e7d3a Mon Sep 17 00:00:00 2001 From: kevin Date: Wed, 31 Jul 2024 18:48:51 -0400 Subject: [PATCH 3/3] added to formatters --- frontend/src/utils/formatters.js | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/utils/formatters.js b/frontend/src/utils/formatters.js index 2598aeca..3a5ced64 100644 --- a/frontend/src/utils/formatters.js +++ b/frontend/src/utils/formatters.js @@ -81,6 +81,7 @@ declare const context: { set: (key, value) => Promise, log: (...log) => Promise, fetchFromSocialApi: (path, options) => Promise, + error: (message: string) => Promise, db: { IndexerStorage: { insert: (objects: IndexerStorageInput | IndexerStorageInput[]) => Promise;