Initial project upload

This commit is contained in:
Mohamed Mathar Irfan
2026-07-28 17:57:02 +05:30
commit ed6610d5d8
23919 changed files with 3003316 additions and 0 deletions

21
frontend/node_modules/react-simple-maps/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2017 Richard Zimerman
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

81
frontend/node_modules/react-simple-maps/README.md generated vendored Normal file
View File

@@ -0,0 +1,81 @@
<img src="https://img.shields.io/bundlephobia/minzip/react-simple-maps?color=%2328cb95&label=gzip" />
# react-simple-maps
Create beautiful SVG maps in react with d3-geo and topojson using a declarative api.
Read the [docs](https://www.react-simple-maps.io/docs/getting-started/), or check out the [examples](https://www.react-simple-maps.io/examples/).
### Why
`React-simple-maps` aims to make working with svg maps in react easier. It handles tasks such as panning, zooming and simple rendering optimization, and takes advantage of parts of [d3-geo](https://github.com/d3/d3-geo) and topojson-client instead of relying on the entire d3 library.
Since `react-simple-maps` leaves DOM work to react, it can also easily be used with other libraries, such as [react-spring](https://github.com/react-spring/react-spring) and [react-annotation](https://github.com/susielu/react-annotation/).
### Install
To install `react-simple-maps`
```bash
$ npm install --save react-simple-maps
```
...or if you use yarn:
```bash
$ yarn add react-simple-maps
```
### Usage
`React-simple-maps` exposes a set of components that can be combined to create svg maps with markers and annotations. In order to render a map you have to provide a reference to a valid topojson file. You can find example topojson files on [here](https://github.com/topojson/world-atlas) or [here](https://github.com/deldersveld/topojson). To learn how to make your own topojson maps from shapefiles, please read ["How to convert and prepare TopoJSON files for interactive mapping with d3"](https://hackernoon.com/how-to-convert-and-prepare-topojson-files-for-interactive-mapping-with-d3-499cf0ced5f) on medium.
```jsx
import React from "react";
import ReactDOM from "react-dom";
import { ComposableMap, Geographies, Geography } from "react-simple-maps";
// url to a valid topojson file
const geoUrl =
"https://raw.githubusercontent.com/deldersveld/topojson/master/world-countries.json";
const App = () => {
return (
<div>
<ComposableMap>
<Geographies geography={geoUrl}>
{({ geographies }) =>
geographies.map((geo) => (
<Geography key={geo.rsmKey} geography={geo} />
))
}
</Geographies>
</ComposableMap>
</div>
);
};
document.addEventListener("DOMContentLoaded", () => {
ReactDOM.render(<App />, document.getElementById("app"));
});
```
Check out the [live example](https://codesandbox.io/s/basic-map-wvlol)
The above will render a world map using the [equal earth projection](https://observablehq.com/@d3/equal-earth). You can read more about this projection on [Shaded Relief](http://shadedrelief.com/ee_proj/) and on [Wikipedia](https://en.wikipedia.org/wiki/Equal_Earth_projection).
For other examples and components, check out the [documentation](https://www.react-simple-maps.io/docs/getting-started).
### Map files
React-simple-maps does not restrict you to one specific map and relies on custom map files that you can modify in any way necessary for the project. This means that you can visualise countries, regions, and continents in various resolutions, as long as they can be represented using geojson/topojson.
In order for this to work properly, you will however need to provide these valid map files to react-simple-maps yourself. Luckily, there are decent sources for map files on github and elsewhere. Here are some you can check out:
* [Natural Earth](https://github.com/nvkelso/natural-earth-vector)
* [Topojson maps by @deldersveld](https://github.com/deldersveld/topojson)
* [Topojson world atlas](https://github.com/topojson/world-atlas)
### License
MIT licensed. Copyright (c) Richard Zimerman 2017. See [LICENSE.md](https://github.com/zcreativelabs/react-simple-maps/blob/master/LICENSE) for more details.

1053
frontend/node_modules/react-simple-maps/dist/index.es.js generated vendored Normal file

File diff suppressed because it is too large Load Diff

1096
frontend/node_modules/react-simple-maps/dist/index.js generated vendored Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

64
frontend/node_modules/react-simple-maps/package.json generated vendored Normal file
View File

@@ -0,0 +1,64 @@
{
"name": "react-simple-maps",
"version": "3.0.0",
"description": "An svg map chart component built with and for React",
"main": "dist/index.js",
"module": "dist/index.es.js",
"browser": "dist/index.umd.js",
"files": [
"dist"
],
"scripts": {
"build": "rollup -c",
"watch": "rollup -cw",
"prepare": "rollup -c",
"test": "mocha './tests/**/*.spec.js' --compilers js:babel-core/register"
},
"repository": {
"type": "git",
"url": "git+https://github.com/zcreativelabs/react-simple-maps.git"
},
"keywords": [
"react",
"maps",
"charts",
"worldmap",
"usa",
"d3-geo"
],
"author": "Richard Zimerman <richard@zcreativelabs.com> (https://github.com/zimrick)",
"license": "MIT",
"bugs": {
"url": "https://github.com/zcreativelabs/react-simple-maps/issues"
},
"homepage": "https://github.com/zcreativelabs/react-simple-maps#readme",
"devDependencies": {
"@babel/core": "^7.18.6",
"@babel/plugin-external-helpers": "^7.18.6",
"@babel/plugin-proposal-object-rest-spread": "^7.18.6",
"@babel/plugin-transform-react-jsx": "^7.18.6",
"@babel/preset-env": "^7.18.6",
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-commonjs": "^22.0.1",
"@rollup/plugin-node-resolve": "^13.3.0",
"expect": "^23.5.0",
"mocha": "^5.2.0",
"prop-types": "^15.7.2",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-test-utils": "^0.0.1",
"rollup": "^2.75.7",
"rollup-plugin-terser": "^7.0.2"
},
"peerDependencies": {
"prop-types": "^15.7.2",
"react": "^16.8.0 || 17.x || 18.x",
"react-dom": "^16.8.0 || 17.x || 18.x"
},
"dependencies": {
"d3-geo": "^2.0.2",
"d3-selection": "^2.0.0",
"d3-zoom": "^2.0.0",
"topojson-client": "^3.1.0"
}
}