reza added url

master
Reza Ashrafi 4 years ago
parent f15df0a38e
commit c8a5b465d6
  1. 8
      build/asset-manifest.json
  2. 2
      build/index.html
  3. 6
      build/precache-manifest.ea7a226f595db1559f3e1d6f9359efae.js
  4. 2
      build/service-worker.js
  5. 1
      build/static/js/main.874d87e1.chunk.js.map
  6. 4
      build/static/js/main.b8eeb4e1.chunk.js
  7. 1
      build/static/js/main.b8eeb4e1.chunk.js.map
  8. 4
      package.json
  9. 3
      src/InteractiveIranMap/index.js

@ -1,19 +1,19 @@
{ {
"files": { "files": {
"main.js": "/static/js/main.874d87e1.chunk.js", "main.js": "/static/js/main.b8eeb4e1.chunk.js",
"main.js.map": "/static/js/main.874d87e1.chunk.js.map", "main.js.map": "/static/js/main.b8eeb4e1.chunk.js.map",
"runtime-main.js": "/static/js/runtime-main.668a57d5.js", "runtime-main.js": "/static/js/runtime-main.668a57d5.js",
"runtime-main.js.map": "/static/js/runtime-main.668a57d5.js.map", "runtime-main.js.map": "/static/js/runtime-main.668a57d5.js.map",
"static/js/2.3431d9e7.chunk.js": "/static/js/2.3431d9e7.chunk.js", "static/js/2.3431d9e7.chunk.js": "/static/js/2.3431d9e7.chunk.js",
"static/js/2.3431d9e7.chunk.js.map": "/static/js/2.3431d9e7.chunk.js.map", "static/js/2.3431d9e7.chunk.js.map": "/static/js/2.3431d9e7.chunk.js.map",
"index.html": "/index.html", "index.html": "/index.html",
"precache-manifest.8b954aad4c208ee9e00c27984a4677b7.js": "/precache-manifest.8b954aad4c208ee9e00c27984a4677b7.js", "precache-manifest.ea7a226f595db1559f3e1d6f9359efae.js": "/precache-manifest.ea7a226f595db1559f3e1d6f9359efae.js",
"service-worker.js": "/service-worker.js", "service-worker.js": "/service-worker.js",
"static/js/2.3431d9e7.chunk.js.LICENSE.txt": "/static/js/2.3431d9e7.chunk.js.LICENSE.txt" "static/js/2.3431d9e7.chunk.js.LICENSE.txt": "/static/js/2.3431d9e7.chunk.js.LICENSE.txt"
}, },
"entrypoints": [ "entrypoints": [
"static/js/runtime-main.668a57d5.js", "static/js/runtime-main.668a57d5.js",
"static/js/2.3431d9e7.chunk.js", "static/js/2.3431d9e7.chunk.js",
"static/js/main.874d87e1.chunk.js" "static/js/main.b8eeb4e1.chunk.js"
] ]
} }

@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><title>React App</title></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,i,a=r[0],l=r[1],p=r[2],c=0,s=[];c<a.length;c++)i=a[c],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&s.push(o[i][0]),o[i]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);for(f&&f(r);s.length;)s.shift()();return u.push.apply(u,p||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,a=1;a<t.length;a++){var l=t[a];0!==o[l]&&(n=!1)}n&&(u.splice(r--,1),e=i(i.s=t[0]))}return e}var n={},o={1:0},u=[];function i(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.m=e,i.c=n,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)i.d(t,n,function(r){return e[r]}.bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="/";var a=this["webpackJsonpinteractive-iran-map"]=this["webpackJsonpinteractive-iran-map"]||[],l=a.push.bind(a);a.push=r,a=a.slice();for(var p=0;p<a.length;p++)r(a[p]);var f=l;t()}([])</script><script src="/static/js/2.3431d9e7.chunk.js"></script><script src="/static/js/main.874d87e1.chunk.js"></script></body></html> <!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><title>React App</title></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,i,a=r[0],l=r[1],p=r[2],c=0,s=[];c<a.length;c++)i=a[c],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&s.push(o[i][0]),o[i]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);for(f&&f(r);s.length;)s.shift()();return u.push.apply(u,p||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,a=1;a<t.length;a++){var l=t[a];0!==o[l]&&(n=!1)}n&&(u.splice(r--,1),e=i(i.s=t[0]))}return e}var n={},o={1:0},u=[];function i(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.m=e,i.c=n,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)i.d(t,n,function(r){return e[r]}.bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="/";var a=this["webpackJsonpinteractive-iran-map"]=this["webpackJsonpinteractive-iran-map"]||[],l=a.push.bind(a);a.push=r,a=a.slice();for(var p=0;p<a.length;p++)r(a[p]);var f=l;t()}([])</script><script src="/static/js/2.3431d9e7.chunk.js"></script><script src="/static/js/main.b8eeb4e1.chunk.js"></script></body></html>

@ -1,6 +1,6 @@
self.__precacheManifest = (self.__precacheManifest || []).concat([ self.__precacheManifest = (self.__precacheManifest || []).concat([
{ {
"revision": "e1e0e381b54d17f36953eb685fc1990a", "revision": "f9e33c4fa74f46e9dd74ac2cecf90465",
"url": "/index.html" "url": "/index.html"
}, },
{ {
@ -12,8 +12,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/static/js/2.3431d9e7.chunk.js.LICENSE.txt" "url": "/static/js/2.3431d9e7.chunk.js.LICENSE.txt"
}, },
{ {
"revision": "f78b66c150ee5f37cfd5", "revision": "c49b1f75050de1585937",
"url": "/static/js/main.874d87e1.chunk.js" "url": "/static/js/main.b8eeb4e1.chunk.js"
}, },
{ {
"revision": "d9bbd2fdc82100b188ff", "revision": "d9bbd2fdc82100b188ff",

@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js"); importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
importScripts( importScripts(
"/precache-manifest.8b954aad4c208ee9e00c27984a4677b7.js" "/precache-manifest.ea7a226f595db1559f3e1d6f9359efae.js"
); );
self.addEventListener('message', (event) => { self.addEventListener('message', (event) => {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1,11 +1,11 @@
{ {
"name": "interactive-iran-map", "name": "interactive-iran-map",
"version": "0.1.8", "version": "0.1.9",
"private": false, "private": false,
"license": "MIT", "license": "MIT",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/alithecodeguy/interactive-iran-map.git" "url": "https://git.sitenevis.com/Reza_ashrafi/IranMap.git"
}, },
"main": "dist/index.js", "main": "dist/index.js",
"module": "dist/index.js", "module": "dist/index.js",

@ -1,13 +1,12 @@
// InteractiveIranMap.js // InteractiveIranMap.js
import React from "react"; import React from "react";
import IranMap from "./IranMap"; import IranMap from "./IranMap";
const InteractiveIranMap = (props) => { const InteractiveIranMap = () => {
const [state, setState] = React.useState({ selectedArea: "tehran" }); const [state, setState] = React.useState({ selectedArea: "tehran" });
const selectAreaHandler = (area) => { const selectAreaHandler = (area) => {
let id = area.id.slice(1, 3); let id = area.id.slice(1, 3);
if (id < 32) { if (id < 32) {
setState((prevState) => ({ ...prevState, selectedArea: area.name })); setState((prevState) => ({ ...prevState, selectedArea: area.name }));
props.onChange(id);
} else { } else {
return; return;
} }

Loading…
Cancel
Save