From d951c00ca2d3f799b178b9f08663f037a6c3da32 Mon Sep 17 00:00:00 2001 From: barshathakuri Date: Tue, 19 Mar 2024 11:39:57 +0545 Subject: [PATCH] Add graphql --- .unimportedrc.json | 21 ++++++++++++++++----- package.json | 2 ++ src/index.tsx | 2 +- 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/.unimportedrc.json b/.unimportedrc.json index 84b413d8..70017970 100644 --- a/.unimportedrc.json +++ b/.unimportedrc.json @@ -1,8 +1,19 @@ { - "entry": ["./src/main.tsx"], - "ignorePatterns": ["**/node_modules/**", "build/**"], - "ignoreUnimported": ["**/*.d.ts"], - "ignoreUnused": [], + "entry": ["./src/index.tsx"], + "ignorePatterns": ["**/node_modules/**", "build/**", "**/parked/**"], + "ignoreUnimported": ["**/*.d.ts", "**/*.test.*"], + "ignoreUnresolved": [ + "#assets/content/operational_timeline_title.svg?react", + "#assets/content/operational_timeline_body.svg?react" + ], + "ignoreUnused": ["@tinymce/tinymce-react", "@mapbox/mapbox-gl-draw"], "extensions": [".ts", ".js", ".tsx", ".jsx"], - "aliases": {} + "aliases": { + "#assets/*": ["./src/assets/*"], + "#components/*": ["./src/components/*"], + "#config": ["./src/config"], + "#strings/*": ["./src/strings/*"], + "#utils/*": ["./src/utils/*"], + "#views/*": ["./src/views/*"] + } } diff --git a/package.json b/package.json index d3d59c9e..de1c35f1 100644 --- a/package.json +++ b/package.json @@ -14,12 +14,14 @@ "postinstall": "patch-package" }, "dependencies": { + "@apollo/client": "^3.9.7", "@ifrc-go/icons": "^1.3.1", "@mapbox/mapbox-gl-draw": "^1.2.0", "@togglecorp/fujs": "^2.1.1", "@togglecorp/re-map": "^0.2.0-beta-6", "@turf/bbox": "^6.5.0", "@turf/buffer": "^6.5.0", + "graphql": "^16.8.1", "mapbox-gl": "^1.13.0", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/src/index.tsx b/src/index.tsx index c0a09b89..d974f07e 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -3,7 +3,7 @@ import './index.css'; import React from 'react'; import ReactDOM from 'react-dom/client'; -import App from './App/index.tsx'; +import App from './App'; const webappRootId = 'webapp-root';