From f4870cd53047defe4a9f16ff04c8b1549190c7c3 Mon Sep 17 00:00:00 2001 From: Riddhi Dave Date: Tue, 22 Dec 2020 09:59:14 -0500 Subject: [PATCH] simulator page updates --- .../000234022385e7b29873235e876c67f8.json | 1 - ... => 00383c47c12d884d8e90cd613e2dc189.json} | 0 ... => 003eaffc04f9ba2713bc4ecfc6c03b67.json} | 0 .../0075836d3369439219fdf7983cd45cef.json | 1 - ... => 00881cb0e300772e83984ef7012d0f55.json} | 0 .../009babc01c7b041cfb4baae47821d8c5.json | 1 - ... => 00c1c15839d56c5f116f0a5fd4b0b493.json} | 0 .../00ca6847069f04db1d6f0b5286b4817b.json | 1 - ... => 00ef51eb15019cab1136b44d5f2483e1.json} | 0 ... => 00f597585d297f73c6ab114c9b7e567b.json} | 0 .../013dffab964d406fd8bcc90b7eb2bffb.json | 1 - ... => 015cc48e07bbb2a200724b325fcdc0e1.json} | 0 ... => 01865d8c57dbf2fefed0f66e7f534125.json} | 0 ... => 01e2b50f0afa2782db694966c79c9002.json} | 0 ... => 022f4b2a86ecb450fafbbbcca2fa7c8d.json} | 0 ... => 023a139938a38dcfd62a823b3ef5e266.json} | 0 ... => 0249d2e3e75644dc02a519b0eee1691f.json} | 0 .../0255ef7dad0ff0bd50dd1f535605d7fd.json | 1 - ... => 027878edcc66767c4766f52dd330bfc5.json} | 0 ... => 0292fc2edf9ace7c01bd29be2e5eeee6.json} | 0 ... => 02a14eb2307c452630dd090907d41474.json} | 0 .../02fe3c75031e91fe1c494f70e695b01a.json | 1 - ... => 033323336476a04ab7f1e72ba0aa0f14.json} | 0 .../03437e3c429d2cfeae007de100af3c44.json | 1 - ... => 03523a8342c11a37a25c1fbc34c8099c.json} | 0 .../03f1b904e4a9149724f6d41a435ef832.json | 1 - ... => 03f6665e357e36079365bed05a0506f4.json} | 0 ... => 04bcbf7b93bb93eaf766bd12d50322be.json} | 0 .../054c04baa6492e8fc1088c04971fef51.json | 1 - ... => 0569b2876425cca2a8552605b411b91c.json} | 0 ... => 056b3225cb1106edc7f59e7c692fb0e0.json} | 0 .../05ff42c6181e63dd5f5ef78274e128f1.json | 1 - ... => 06184e4d0c08c610d2374b8f3e4fa609.json} | 0 ... => 062efc80d36763d0f20234728afa0778.json} | 0 .../063db1552e8b2a3d1b69db0a3140b315.json | 1 - .../064934db6fd90bb5300858a94ff8e7c2.json | 1 - .../069bb03282590f26824c8f352e20a7c9.json | 1 - ... => 06effc8b2670eaae241ec88801b471ec.json} | 0 ... => 073e3c1a365ac53feca0a17d1d9e6bbd.json} | 0 ... => 0831385130912f8b9bfa168cf1460124.json} | 0 ... => 085b02301f78fc4b043e5f0b56727c4a.json} | 0 ... => 087e46cdec2c2ca39212dbd818395dab.json} | 0 ... => 08a65ad231789b0f72531d965818ac24.json} | 0 .../0941f0c39c7edc58eb65a1e4999e4a0f.json | 1 - ... => 09aa5718b5822f110f82facab4ed5de7.json} | 0 ... => 09e1c188aef3516f1952d75e8d36ce90.json} | 0 .../0a0a0e44f36724d76c66824d067cad21.json | 1 - .../0aba0ceed37a5e387e6858f3f0933805.json | 1 - .../0ae726042974145edb4a54f598152737.json | 1 - ... => 0aee86d63b70105b869911c0a87cebb3.json} | 0 ... => 0afb0ee035425b052d0101a3ab5f4581.json} | 0 ... => 0b0746b936b7da0e95c8728d12f51fdc.json} | 0 ... => 0b1932b5c2f4b2232f148640d19b4ecf.json} | 0 .../0b80bfed3e0bc77bfe7b1901cfbeabc8.json | 1 - ... => 0b98e36774ff025dd7c074668f9c9559.json} | 0 .../0bae63999b19db8a1811b3c8aa950209.json | 1 - ... => 0be11ce1a691624ad49e9e64393360bc.json} | 0 .../0c088ef896b7b5361d14cd49517cf8a7.json | 1 - .../0c57dde23723cc486dfd31b84fa81747.json | 1 - .../0c77f9926fc7c8cc1609e9dcb84af16d.json | 1 - .../0c8463d90f521244ca0dbc843f4f16a0.json | 1 - ... => 0d0a9480ce0984ecc37595c1dc9ab5ff.json} | 0 ... => 0d3692ba227c8e48987b24e161b99a43.json} | 0 ... => 0d9c0e627495abc7dd8d73c3812a0327.json} | 0 ... => 0d9f2e443bc16af50bd69ef3c314320c.json} | 0 ... => 0e1e8bea54e36663cb9e520d08a3f8a1.json} | 0 .../0e25fba268cd8f59f96f1c3276670c66.json | 1 - ... => 0e2f739c1dcd6088a6214e4a8023e5e1.json} | 0 .../0e723665341665d50414438d0d990a7d.json | 1 - ... => 0e9190681e0fd83b45be7e751d7f00cf.json} | 0 .../0e96b095f843b7f11171c1a45570d79c.json | 1 - ... => 0ea1acb4ee74a9388800dca99cd9f840.json} | 0 ... => 0eb96e9ddcbc3736030a8d805ddd338d.json} | 0 ... => 0ec63b7b42829d486c2067afca4ce50a.json} | 0 .../0ece30f4fd3d666d0dc5071413458189.json | 1 - ... => 0ef6c6e637b7e14827e679e5d1fea3bc.json} | 0 ... => 0f0a4908ab236cf40a95678100cefa48.json} | 0 .../0f2c377a2902c6c7e871c82e6ac3642d.json | 1 - ... => 0f42ce739c4c9f14c3a3cf8e1dd1c3c2.json} | 0 .../0f472a649d4d479d955a0a5a23cbdbc4.json | 1 - ... => 0f509faa6855a1e17c17b8c0366f7d65.json} | 0 .../0f9516947555bbca57c017cacd165594.json | 1 - ... => 0fd9c6ccb87d21bf8087d2fd267a9a10.json} | 0 .../103c46ca88676c22a9bc71b6a36a0495.json | 1 - ... => 1070a7529c4252371b9a9819dc074f17.json} | 0 ... => 10850450855fc24986da28323246621d.json} | 0 ... => 1092f5a74b2495456726df95dcb83ad3.json} | 0 .../10ac9b52056ceb96e25407ed91275eed.json | 1 - ... => 10b7f87bfdd34b41d7f192a05094b440.json} | 0 .../10fe6b1823021df433784b2e34ce3a19.json | 1 - ... => 11269d0f75ba7bd0a3768d1b94882e93.json} | 0 ... => 11546a6b6f456f5349852efe9d8f534d.json} | 0 ... => 11963a1d9100dc3d74c1d35962c24f27.json} | 0 ... => 11b2919418ef6308b7d7ffed7d69283b.json} | 0 ... => 124e938d6792e02267bfbbad6fb2a619.json} | 0 .../12633e5a335d32db7ac871e168005cd0.json | 1 - ... => 12a215fedc9fe1e878e0b9b62beb36ad.json} | 0 ... => 12fe06c3cef3f0e3544b533c7428fa64.json} | 0 .../134b4ed5820fbe39bc124d139989faa2.json | 1 - .../135a6701f21336f81ac23a350b607280.json | 1 - ... => 13d8b6891bdde0b8d84872daa3e87fa7.json} | 0 ... => 14127e7dd988fa8b178a70ac7b017da5.json} | 0 ... => 1447e09baad8599a6b1f382cb683cdf9.json} | 0 ... => 145c7564c8a5e2616481d6e9703f1463.json} | 0 ... => 147b4ca93857f2c79b647f48d8536d7b.json} | 0 ... => 14ab841b0257e6b3bb587e0213daea24.json} | 0 ... => 14c795151354b3f50d61c65401cc6948.json} | 0 .../14ebf4c1cf5721b9a465304a63006534.json | 1 - ... => 15276881e5b8f6cf8c10a6fbf415661a.json} | 0 ... => 1530e2e3559b957a21e116bc4b241b4a.json} | 0 ... => 154b86730fab49800d64f7d36ea96e3d.json} | 0 ... => 157abb669855c306f93f390a6970218e.json} | 0 .../1590285b9fdf303033d6e8179e6f6557.json | 1 - ... => 159a3b5ee174d7480b6d98dca41574b5.json} | 0 ... => 15aef85f6e2d114198a36cfa1b5a9678.json} | 0 .../15e8f103cd222e7bf849cc373ba08cb3.json | 1 - ... => 16298fcb496cda5bcd9ddda08b301471.json} | 0 .../16d5e1784b5732bda221678ee7f66dcf.json | 1 - .../173b667703aa9c9888f9bfe9fd5c905b.json | 1 - .../175be43bac3ac8b9c29e24f22ec46a45.json | 1 - .../1771135b9b7d2eda7cc9a237c4b3371a.json | 1 - ... => 178f4bd8bddc6e6485a8f1f6592ae6c4.json} | 0 ... => 191ea3eb379fd0c22fc579e5f11c98ad.json} | 0 .../19609dea18a8f76852a79c095787b80e.json | 1 - .../1980f30803b1699f2dc94b4a4b3af3a0.json | 1 - ... => 19d7429b9bbe2037e16248b66f09036a.json} | 0 ... => 1a2e1a791cc7f7b4cabdf1d1aa655ef3.json} | 0 ... => 1a8c12f3597ab4b6178259889d1e0d7b.json} | 0 .../1b4b03193d4d06ffef6d687776d51a40.json | 1 - ... => 1bb39dee8a756421fcfa9a2dbbc17991.json} | 0 .../1bff546a88f9a37129e00adfa0305982.json | 1 - ... => 1cac95cd779b73631f2fdcc5153fe48c.json} | 0 ... => 1cf6e44cd128d231804b9a9388066ad2.json} | 0 ... => 1d51830cbd7f5235c0475cfd177d67c4.json} | 0 ... => 1da1171f13fbc8ee63adaa90a4c28723.json} | 0 .../1dd80ac38444138f59c60574e1a91f4a.json | 1 - ... => 1ded27ff9dce08f5e1df9c01cddafc5b.json} | 0 ... => 1e1d8af1251f285f15725826088ea4eb.json} | 0 .../1e2a170325abc25ef2d93a59492a8c3d.json | 1 - .../1e9865afc0eaeb7b1c92c49df4649f71.json | 1 - .../1eba58510716e5b9c1f17b8778947a23.json | 1 - ... => 1ed13831254ca1c3c3bb98876b7f466b.json} | 0 ... => 1efb2ed4bb770180883add718c80ec3e.json} | 0 ... => 1f23620c13b77b3cde52379b900c0883.json} | 0 .../1f4e31a731457565417b7743876bcd5b.json | 1 - ... => 1f63625e1fddf24d08bc1ce4f8ecbd8a.json} | 0 ... => 1f8157cf7cb0a60a089eba5dff29a7fe.json} | 0 .../1f8794468e8026d190482fd9e6418bfc.json | 1 - .../1ff918b63534fb89983b12e8e7b7044b.json | 1 - ... => 200e647bdf3e9cbac74d19f0e63a7f99.json} | 0 .../200fcdc81f0c8c2a10f7f8594ea09672.json | 1 - ... => 202648daff7290db4fae52094f3fd6fb.json} | 0 .../207d4e8220976cf82180a4d26a9b7dfb.json | 1 - .../2090122cc5ef12184e1ed61ee63d08c8.json | 1 - .../2092d13aa500fafeecc5ecc11856bc97.json | 1 - ... => 2097ef1cc94052c46b647ec656cb32df.json} | 0 ... => 2109a4fb0bc4ead21287f6e4c2b983f2.json} | 0 .../2124158a7e8e81fbd17f5e44060228d3.json | 1 - ... => 21c381f24fb848ca04c6bb1b80ca7c60.json} | 0 ... => 221d652be3993a26bebddd973bde56a7.json} | 0 ... => 2232b3910feb15e3be4381e2113969d4.json} | 0 .../224503b81cb118ffc17e9b97c4744b25.json | 1 - .../225180acd7e32de9d099684eb5f144df.json | 1 - .../22b2e0f49678109029590f6cc8581f57.json | 1 - ... => 22c27825734d61f2569abb2001c350db.json} | 0 ... => 22e0ddf8b3e317d68526036a5bca3abd.json} | 0 ... => 23446da5f0765367ac33bd4f551c16aa.json} | 0 ... => 23bf79bd8cb6620b917579367dad3772.json} | 0 ... => 23ff5a23233618fb4ad4c8ed49dbfb58.json} | 0 ... => 24098bcd0598dce8d11d64cc0368772c.json} | 0 .../240a580b1d8e73da6f9b5fa60b9e01fd.json | 1 - ... => 241871467865a3fe9611c13e26133fd8.json} | 0 .../2430335027c4972bdd6acb4e1f3dc2c2.json | 1 - .../245b1e8ee5ba77dd9fc7361925da0dc7.json | 1 - .../24b7363fb03c727ce9c0b2bbd1ab9f4e.json | 1 - .../25ad8fa7166624dfcc188445f48d1102.json | 1 - ... => 25e348aff1b3ca3fcfd97deb7cef86a8.json} | 0 ... => 2633db245fbbda44f34c9fc44263bdee.json} | 0 ... => 269a72f1094f2c0110166cab8f213246.json} | 0 ... => 26c0cd987cc21e7ddc54cb39e4c0aa80.json} | 0 ... => 278d65d096f1f8756c35c59b6b884930.json} | 0 .../27f1f35662c8ca8dc68b7a096840d5a4.json | 1 - ... => 280d550dc0ea27208d5724246502ac8e.json} | 0 .../287760b7b9b6284151be9331b58d2606.json | 1 - ... => 28907966a43aac3f603312f556c551d0.json} | 0 ... => 28d02980e27d8ecb1b7c1c8fcf9a5f3b.json} | 0 ... => 28f844c46dc7b1af8c43d90900da238b.json} | 0 .../29206e8065d98e36564c84446308cbb0.json | 1 - ... => 2936c0c47f06b4ae2b1b67d359e3f4e7.json} | 0 ... => 297547496c045b1725ea3557c15b3ca1.json} | 0 .../299585b78b47a619f8d91da0f5d8e1d5.json | 1 - ... => 29a0630964561866a0e647ca1b02a537.json} | 0 ... => 29b5fc87400adb72c9faea113d680f60.json} | 0 ... => 29f5c01ed305690a4afed56345894106.json} | 0 .../29fdc65955005a776d00cd8282e42083.json | 1 - ... => 2a14f9b505e5309b20882350d38c74ed.json} | 0 ... => 2a4e8f0ac810a577d265f5071ec66a75.json} | 0 .../2a637f85648ba054ed9893ce678c1879.json | 1 - ... => 2abbb4ff32ceeb1af976d20ed4ff9acb.json} | 0 .../2acaf87b6cf0a907ac75d2aec978ae01.json | 1 - ... => 2ae9390cfb00db617d42fcd8ad17c174.json} | 0 .../2afb85ec84b099c8b0ef381ef72e241c.json | 1 - ... => 2b04f81034bbb6a7ca4318d0cbf2ae1d.json} | 0 .../2ba60e10e30e5df74e7d77c67cff673c.json | 1 - ... => 2bab53ac894c568dbe08dc9802f1d93e.json} | 0 ... => 2bad071f9f1d139d9f127601e53a398d.json} | 0 ... => 2bc606c41964a4bbfd2107f0fd6636ae.json} | 0 ... => 2be51796bc4cf98251849c75c8209838.json} | 0 ... => 2beaf9b60c5b8c9d0607ee55854dcff9.json} | 0 ... => 2c9e5a8a6e72439e0cface1195778202.json} | 0 ... => 2d0bf6eea5611fdb307dd55c560c2102.json} | 0 .../2d252c931457ecdb3c13835d5bd8cbf1.json | 1 - .../2d4a34b6f85228825621808bdd76088a.json | 1 - ... => 2d5a1bdb7b0247705f1ab1a1b31563c5.json} | 0 ... => 2d5bd9860538210d82250103bfb61c04.json} | 0 .../2d8e87fb26f19b58ce99457747859124.json | 1 - ... => 2dd885bd34367a84227977e8ac11e126.json} | 0 .../2e54a7cd2e782a71482c08f116147d38.json | 1 - .../2e7013c7dade5f1249d7d256543fe542.json | 1 - ... => 2e86d3fc937eb87a38c1215a20414fe6.json} | 0 ... => 2eba8077cbb944f10bda52177a6e3df7.json} | 0 ... => 2fa1d1aa3feeb50b264abb427754bbdd.json} | 0 ... => 2fa4e09b850c50bd604494bfd41acece.json} | 0 .../3009420674d7deeeb1f25f82832e3d85.json | 1 - ... => 303359bdb5f6ab345971dbb7298ef256.json} | 0 ... => 30e4abc5e1c758181b1391a4d953f48a.json} | 0 ... => 31a50524d8e9592e9e34f1ea90586d2b.json} | 0 ... => 3233b56f443e494937d6765714c4307a.json} | 0 .../326d2c558165f54efb4ac1cf290e0792.json | 1 - ... => 328547e36411238b8445ae278408cb84.json} | 0 ... => 336d81415156b815da48d5275089606c.json} | 0 ... => 33a39c4e5567422e329e1ae82b4de375.json} | 0 ... => 3427f32e4cb3f7dcc7f3ba446330af85.json} | 0 .../349e84943f811c436fd420a5e81d5ba8.json | 1 - ... => 34af939a0186da6aa95123ec76330520.json} | 0 ... => 34f3e67325159b44de6e8cbe5f31d682.json} | 0 ... => 352331435ad7dcf97ac84912236732dc.json} | 0 .../35abb20c2c80747f21405a79586c4878.json | 1 - ... => 3611af4c5a723edb1130a9b4308a6173.json} | 0 .../364a668cb600c25d23e5482549ac1581.json | 1 - .../3689a75da6d038282c7f048ef5d666e7.json | 1 - .../36ff4149098a1515abb71dd8787eed34.json | 1 - .../3701e17966c86954af9aeed0f8ca99ce.json | 1 - ... => 3716053f637477aa235d14676e3e4ddf.json} | 0 ... => 374121e5ac03afae6eafcdb97e62c2bb.json} | 0 .../37ae2153f6a0a136fd8425edd8e6fa25.json | 1 - .../382355cefd649fb278a8fbdb034add8b.json | 1 - .../3879ba2154c5c356769f2953a2c72d44.json | 1 - ... => 38aa049f22885ed9225d8b0aa7da4175.json} | 0 ... => 38c55a093df9eb3e4d396a0271617958.json} | 0 ... => 38d02949f475b89b5e9c6e931236e575.json} | 0 .../390424a5ed47439796e9d5e7713b61c7.json | 1 - .../39965fd793e1cf9f1d5fbad97db90bba.json | 1 - ... => 39c3b44747c15134d8eee47892715925.json} | 0 ... => 39e00afd5c6c0087cb7898ed556d7ce9.json} | 0 ... => 3a435dc46846c857cb05ca2201120e4c.json} | 0 .../3a4ee0d7e21f5a791f19dd7131cb4272.json | 1 - .../3a51184c2bd86ae8939af6dd4c87bbc2.json | 1 - ... => 3a8010df695136b7a827ef2a9fee9d20.json} | 0 ... => 3aac8bfac41b48fb77de4101ca9b03c6.json} | 0 ... => 3aca63b31f1aa5d56381d2b283b25047.json} | 0 ... => 3af7450126c24f645a863b4546568b90.json} | 0 ... => 3af8c23343f657cbf93c714fd629c631.json} | 0 .../3b120103a9c80bed543450946c362abd.json | 1 - .../3b742efe619951d6ec137959a6756e61.json | 1 - ... => 3b7b27055e8914267dd566b1e381221d.json} | 0 .../3bf7a06a8d2e3ed7bb7bc01b07c2ee60.json | 1 - ... => 3d11613f23d6d8839438900fc8a1315f.json} | 0 .../3d214661728907f9fcb77c5116e9b887.json | 1 - ... => 3d81a17619ae410df172500900c9cbdc.json} | 0 .../3dfeaeb9195ce756c9f551b082110ccf.json | 1 - ... => 3e2aadb53a35c8c10cb816f5c0819850.json} | 0 .../3e94d788cd5ad6384326368e16acbe79.json | 1 - .../3f28dcc44f1ed795f44716744bfbe6a2.json | 1 - .../4006d6559eb6bae483a682fccc6a7361.json | 1 - ... => 4054df095948fce69e01e1184cbd7e97.json} | 0 .../406e904432648154d29aad53a14d8ce2.json | 1 - .../408680022e7c387aaa4d059ad261ff93.json | 1 - ... => 40a162e1a0830d3f143cbf35b72811b0.json} | 0 ... => 40a4447c2b5c0fbef95f843798172cac.json} | 0 ... => 40dab0b8fcfa0794820e7f74b58b1d21.json} | 0 .../40f78ad3b519833d2c0a960a2971e688.json | 1 - .../413dedb3f546c9b97365b3785cad759b.json | 1 - ... => 416d59584cf02f1391690b57866422e3.json} | 0 .../41f42d834e1de5e03c9572f4fd3afb40.json | 1 - .../42377b9dd3fc368e8ae23580336a602e.json | 1 - ... => 42b0648eaf2b58aea5b02bc81725436a.json} | 0 ... => 42dce491ae4aeb7e02b4b3ca78740de6.json} | 0 ... => 42e26f0cae03d428dc522642a98d64b2.json} | 0 ... => 42fd89a02d5b5bbf2334604564551e68.json} | 0 .../43c24af89d9f21e805df42095c5ac059.json | 1 - ... => 43c71d9850a5a0b9aa0dd27efb3f79b7.json} | 0 .../441693fcc7ce29abd3dfad5e991f7bde.json | 1 - ... => 44f74c39cfc9b41d44cd8df2a2f8cd93.json} | 0 ... => 4524754a6702ebf313cc1f390ddacf3d.json} | 0 .../452a49a441f1da38bbbcb68008d0dbf8.json | 1 - ... => 4533ae95db7653ad37011103a49b052a.json} | 0 ... => 4542793fe080bf34d9044209389c01d5.json} | 0 ... => 45472e88a576f26c7cbef1406c2d11cb.json} | 0 .../4558384d4f936db9371a64234ef4476b.json | 1 - .../459020bc0a20c552fcc279e08ada8bc7.json | 1 - ... => 45a63b5312a6e28903feca8189de9a34.json} | 0 ... => 45fcd1d16230472d15c078fb1d9c8646.json} | 0 ... => 45fec8e3382bc959d5d59c8c2228286e.json} | 0 ... => 467b4b99dd183196482e9ffb224fd769.json} | 0 ... => 46cc4805aa0bcbff83676241b7ada79b.json} | 0 .../46f5908518e0362bef3a2acd82546a74.json | 1 - ... => 476106c5c23be1a00ec416ac2041d652.json} | 0 .../47ed7bbc1b9c4df298e3982bdb5946b1.json | 1 - .../4803d3d10c8b2b6004b80bac9fd19a57.json | 1 - ... => 4823a1e5cf07a48cf6940b25c42999ac.json} | 0 ... => 483f9b8ed305a446107eaf64b50a1518.json} | 0 ... => 488316db197416ae6f39e7ce10bd72af.json} | 0 ... => 48c1157afb148a03ddbc6c45759fa5ae.json} | 0 ... => 49fec2d58e533ea691436ca870bc35e9.json} | 0 .../4a00ac1023fad6bbd2b8fd1e85684d75.json | 1 - .../4a07db1ca1eb718849d8f67ded2ccbba.json | 1 - ... => 4a10bad8f647416ac6be973248bb3e1a.json} | 0 .../4a694f9484564d5e729ee56d85b1cda3.json | 1 - ... => 4a8015f26c5417e38b27eac630e1b689.json} | 0 .../4af20070e35e7825bfe3baf59e4aab6c.json | 1 - ... => 4af392b7273a755f56eafe4f08e3e135.json} | 0 ... => 4b34aa98cade6e8a8c629106bdd896f4.json} | 0 ... => 4b375ef2d85f25649e9d6aeca7775fb2.json} | 0 .../4c296325d875c4685e29e462c597e41a.json | 1 - ... => 4c3c87f4432988a89661665d2edf1aa4.json} | 0 ... => 4ca8e13279a60be9da1edaae1b3ca725.json} | 0 .../4d4f5ef71f46e9085a8d05c4cdb96544.json | 1 - ... => 4d762e7e31fd1b99aff27da21a2d8308.json} | 0 .../4dd03961ad094c4d0214838cd229baef.json | 1 - ... => 4de517666af903b60a116900bedb12e1.json} | 0 ... => 4e22cea1d53e96362af08972968676d5.json} | 0 .../4f15afe84e305fa3ca5be9c039520748.json | 1 - ... => 4f2d92e2110254a1690ee81d1f43954a.json} | 0 .../4f51a010adfd551b9861f21b66bb7f68.json | 1 - .../4f635ea83a9f69ba5dbaf7b003a63dd7.json | 1 + ... => 4f8bcf7e0ff3fdf73dab412f3bbe7aaf.json} | 0 ... => 4fe8e3d3e7e3dd702d8991ea7743722d.json} | 0 ... => 506823a5691ea3ccae61eecc4d7a7d37.json} | 0 ... => 5091e852dc976ac70ebd2a553c0a3e96.json} | 0 ... => 50a96322077042abb08335147456fb51.json} | 0 .../50cd5d2cfc4f5509aa9c43281403d109.json | 1 - ... => 50f8cb159b974a5892acac82836f236d.json} | 0 ... => 516d21405f8c77f728698a238b503dd8.json} | 0 .../518ee187d8e7809baa67d7f3d0f4f6b2.json | 1 - .../522205fba99579dafbe0d31993bf86b3.json | 1 - .../5236de83a1248f716f2a3a1ffc2e424b.json | 1 - ... => 52765bb697a5f2e7b53f9bddfdafe9df.json} | 0 .../5289e5f1d7e3fb8acc3ec9bc0605b4d4.json | 1 - ... => 52a831ed1118a905e0a765c531b35e3d.json} | 0 .../52a992d5bfd410524c4476ec7eb6795d.json | 1 - ... => 52b18534628e165da29cc45d1ec9e186.json} | 0 ... => 52cb832a4afa2f22dafb742b21184627.json} | 0 .../5393da8e014925d49024b0cb8de0f191.json | 1 - ... => 53e786c31c76b93c647f6a0a086aec30.json} | 0 .../542e8a67877e7584c51af6159103b400.json | 1 - .../543b865171d25ffcb0947641e58b4690.json | 1 - .../547618da8d8c35d45440d3abd54e952e.json | 1 - ... => 54fd87fe9e3ffd8a7aa838cf7efee96a.json} | 0 ... => 5505a23f7a88469e37d4ed947334525c.json} | 0 ... => 552a282389ade40d53097660af2e743c.json} | 0 .../552ef6cef34efd621ea3691595537905.json | 1 - .../553ee5fdc157e16216aaff55557da08e.json | 1 - .../553f21dbb8f679545aec54c5b51dc1c0.json | 1 - .../5578d51e8accccf60b356aea879fb734.json | 1 - .../55ab18ca155e7649f7ac1939e62fedbb.json | 1 - ... => 55b9943d9caf7397ea10720181abed46.json} | 0 ... => 55cba1336d5cb3c75630d155990fb3cc.json} | 0 .../55f53277b808bddbdc01a17a7e698ae1.json | 1 - .../55f67f58807aec5b886aca73a0bcafd5.json | 1 + ... => 56639ffa58dbb0aaf8075e89664b8bc6.json} | 0 ... => 5699b3d7cf90194b72751abbf50c6eaf.json} | 0 .../56e713205bf93e1b331351441982e62d.json | 1 - ... => 56ecd4d0b0349784dd89aac1c208e8aa.json} | 0 ... => 573effe89ebe5bc858618275d447c0dd.json} | 0 .../575233ecb9302997d111e55dc705a46a.json | 1 - ... => 586631fd1ad5d8ec4f7ba60d15343922.json} | 0 ... => 586d74c397bd50017be61426f456203d.json} | 0 .../58bc1880c4e95781a3a07022d41c7dd3.json | 1 - .../58c076edf43e092dc70dfeb7ef49e32c.json | 1 + ... => 58d5471fbcd60b3a4e3c052bf13d6e01.json} | 0 ... => 592d553129b410ca414e9766cd750812.json} | 0 .../599e8e8259c889e70fa664e38e43c455.json | 1 - .../59d4ccdb3e243127c33a50eb637c75e0.json | 1 - ... => 5a8ad9e99dbb265f5f4515477983ba2a.json} | 0 .../5ad2b634772942e0c9e9dafe988051bb.json | 1 - .../5add4aa0cb72040a5d76f1c9acdb9a79.json | 1 - ... => 5b111a176e3041d2f3de99188918cf53.json} | 0 ... => 5b7a275b674cceba5bf82ccff9938f24.json} | 0 ... => 5b82a31266bee9576b746281d7150625.json} | 0 .../5bb630eba0e49a21df99dd2b70fe7276.json | 1 - ... => 5bcdc83146ba1ba1d6c2aa4b319a9975.json} | 0 .../5be913e75a4507ed54397e7636774c74.json | 1 - ... => 5c5e256614228dc5cb0af271c334e455.json} | 0 .../5c76ffbe76c296fe0af13440aacb8738.json | 1 - .../5ca165f6275cad2c42d410f0de541e6f.json | 1 - ... => 5cb3ea1b2d47d92be30c5219967a1335.json} | 0 .../5ce753fc42a98387f12ea91a8a1a5f65.json | 1 - ... => 5d193b44922eae44b1e92d358ea45006.json} | 0 ... => 5d80ea6c4be9b4538ec6de33b64120a8.json} | 0 .../5d9e74716169118d550362eb96f82853.json | 1 - ... => 5e1f72e5e6a04238cbb0d9d63b32679e.json} | 0 ... => 5e42dad24953204e67eb56b80dae4f1f.json} | 0 ... => 5e88cb992a3cd5a7c41f91aa0d674ecd.json} | 0 ... => 5e9da4e940afb79d23a8119c8b1493d3.json} | 0 .../5ea7719b60c98dbcf0fbf10caff671c4.json | 1 - ... => 5ebf5b6b0a9a46b22f59257a86d9a40a.json} | 0 .../5f207630b88686c5912963fc299d05ef.json | 1 - ... => 5f44d97d2d45680c11cbb3d7f42e75d4.json} | 0 ... => 5f7e474ed01076df14590cf47c0b269b.json} | 0 .../5f850de9340d92b0c8257fdde7dafe03.json | 1 - .../5fd3347f421e6000d4a40bc48bc852dd.json | 1 - ... => 5fef94218fe0a419eb8b6440ebfab499.json} | 0 .../6040c46ecd77630d2d49c47365b3d2dd.json | 1 - ... => 6064b5d5505acb78b2c441cb1f80d1ea.json} | 0 ... => 6085cb313cac119ddfc195e4a878c1b5.json} | 0 ... => 609ba3e1a45d6ed5e9edc70999fde1d6.json} | 0 .../609d4e296621c63e4bbf7f72a565f6b0.json | 1 - ... => 60b36b8917bcbd3c16241270d92c3390.json} | 0 .../60c9ca9f662dc32a5894d7f1dfd153e7.json | 1 - .../61037b77a7a128d55688742dd432066c.json | 1 - ... => 611691062dc3caa9b971da0bd6d8a43f.json} | 0 ... => 61281309ddb302e390465cb6f9cf69df.json} | 0 .../618b0f7de67720f7e16a30ab58456287.json | 1 - ... => 61aaa9d2def9e1b4ad5d6271b4c4275c.json} | 0 .../61c129e79452518058019bb0bfd591b2.json | 1 - ... => 61d5f7c0b2a8d08d5c5f1130106e5ffe.json} | 0 ... => 61e840acd397363b7d869b8f92999d8b.json} | 0 .../62873338c8d45fb2c55cf73d0ad1ee8a.json | 1 + ... => 62ab97894c13818775bc5f7aec790f6b.json} | 0 ... => 62dd13ecde83cac95e500cfb8a6792ff.json} | 0 .../62ef066c1071d556b71879ca376c074c.json | 1 - ... => 6322ad3dbefc2e2ac7deda09b25ab90e.json} | 0 .../63337c9ed90d2cb537f6233294648848.json | 1 - .../63746439e4cd12fce43c7472abb31abe.json | 1 - .../63978bb4adc6942fecdd8f8ff3f6c407.json | 1 - ... => 641304b86f32fecfe7783113867dccf9.json} | 0 .../6428e6328c9f74f76167f5c6c7fb9c43.json | 1 - ... => 6475d4b81aa1714149b7d7f6bfe44040.json} | 0 ... => 64d5f1ca44ac208516099a1e21cf7ba4.json} | 0 ... => 651bce1b41d28131496a35a958eda2d5.json} | 0 ... => 65367d347b28bed14f1ce1107301642f.json} | 0 ... => 658bdd742daf72a3a17e858846e92a2a.json} | 0 ... => 65a0ac3910c661ea1f236c78f1407ab6.json} | 0 ... => 65cd8635de69c7a6d18985ab3ce5384c.json} | 0 ... => 65db7a66516caae7e2d042e497ebdf77.json} | 0 ... => 65dd2e8d571d89d65e06e1206547a851.json} | 0 .../65f4285912c8aeb364fa584028fb7057.json | 1 - ... => 6643973611123243a213e4c5565c83d3.json} | 0 ... => 6689237044b7d88cce0d7575ecbdc909.json} | 0 ... => 6699beb1a33aaa2e43af9b0b94cc8500.json} | 0 ... => 6735930d9b0208263d718b8a0f133091.json} | 0 ... => 6756a177d8ae56b15b5515426b781b85.json} | 0 ... => 6772bda76a2974aebb412dbbc57379f0.json} | 0 .../67767303a11df8148f830d2d071bb91c.json | 1 - .../6776f48dee75bf3fe1e67d0d7ac495a1.json | 1 - ... => 67bc63a4a9ca36e47b3cebdfb42930a2.json} | 0 ... => 67eed3596e482819ab89c80e5a899729.json} | 0 ... => 686a8807590c4b7ac0e728c593b7d36c.json} | 0 ... => 68b141c19cfa43f328ff48ed283fff48.json} | 0 ... => 69414e1c6cb4f0c34bbc7e52887e3a22.json} | 0 ... => 69731bf30983736acef129b0bb92ac0c.json} | 0 ... => 6a10ff1cd9c4c23513e2daa1d62f85f2.json} | 0 ... => 6acbce38d21b9897b17d94a504d21bf8.json} | 0 ... => 6b08c247bda7c3d190bd7f95e3f70979.json} | 0 ... => 6b0d76bf8892c5f4214fadefbf639b67.json} | 0 ... => 6b67d29609dc0d551956b4043ac01327.json} | 0 ... => 6b86150b5bda9c4ea45623b2b1b13e83.json} | 0 ... => 6c072ec7dd7e9c3ff9dd2bd3049267ad.json} | 0 .../6c121ca0f35a59eff73d171a6c41d02c.json | 1 - ... => 6c3a054c07c9a1ca62374d3413ef2a57.json} | 0 .../6cd02039bc6232295b3a13b0ccd66c6f.json | 1 - .../6d41da2b9907589efec6391a173d692b.json | 1 - .../6da9dc74811d4c7fc5c84c8856c01de4.json | 1 - ... => 6ddfd4717494aa97f0da7501177772fc.json} | 0 ... => 6e1969ca4bb332cbb3a9f53a365bfe3d.json} | 0 .../6e1a5457f12ac9007cb5e05e95ffa333.json | 1 - ... => 6e34c05ffc04060b0a70fff6c5fbe50e.json} | 0 ... => 6ec6687a14d33b409425760d8de91c63.json} | 0 ... => 6ef44ec15c304900bddf5a19a31d9876.json} | 0 ... => 6f1102b62b6acef76013f599c13ab28d.json} | 0 ... => 6f31d9575c1a366aa7070cab0edc66be.json} | 0 .../6f3f5a86cc9452e02dc5cafba985bfed.json | 1 - .../6f49dfb38e73f5138be946f5bd2114db.json | 1 - ... => 6f6414e52fae88fe8717b67ddf32bb62.json} | 0 .../6f7bf086b0bbf2a8bc4688bd248841f0.json | 1 - ... => 6f9a2a8b89ff3ed650c0da891959f20d.json} | 0 ... => 6fbe7a9968904b6c73c2b859761327af.json} | 0 ... => 6fd9ad97f696f441b5d3bde4448ea3c2.json} | 0 ... => 6fd9f7b01f1da05969364c89fac60504.json} | 0 ... => 6fe08d4254ea3b7bf393d3358b1bc8a3.json} | 0 ... => 70048404ae3a32842a5a5a8349426e43.json} | 0 ... => 702392a65fab33a391a037937a7ec9ae.json} | 0 .../702a92a3edf1981ef5741b0660534dd6.json | 1 - .../7048f1867aa3e7857de8d8573b631d43.json | 1 - ... => 708e408417c504706c3fc83a2d6ba279.json} | 0 ... => 70a43bb758b44d150f0e9814be7152a6.json} | 0 ... => 70c1b56b1444b160aacc854bbd9bc68c.json} | 0 ... => 7103cf4361b7c96db38af647604c3c2c.json} | 0 ... => 71724b89bcf20a8f33c504ff0593dbd6.json} | 0 ... => 71c18f67883ab68ed48003da6e3bb34a.json} | 0 ... => 721ad4b062a9507791148b75066f9ea0.json} | 0 ... => 724e3d5174a723a29cbd5648f1f3aef6.json} | 0 ... => 727f9d8d332553caa918104e01d4265a.json} | 0 .../72ea23e5c72a7709140fffef7fed021b.json | 1 - .../7329c30b608eeef675d5d9a68c892026.json | 1 - .../741396d4a29a86c7f09b5157b89ba3b9.json | 1 - ... => 7427a26f7ad731bd48097e5caf23e662.json} | 0 ... => 74399fa1d83e6b02ccd51e9f652cba31.json} | 0 ... => 744abef1d6820540f09d6bf7a636a201.json} | 0 ... => 74650885ca68923d10a8f5fc73dc9008.json} | 0 ... => 746c65a6b2b0777a896034251f23951d.json} | 0 ... => 7489eb5d514add341849a90b33dacb89.json} | 0 .../74a600d6af9cd3a00a6321d47f25c9f9.json | 1 - .../750f1b1dd7afea7f9a893f9c605402d8.json | 1 - ... => 75625d99c2294e6557359e37387dfd85.json} | 0 ... => 75640e465b030cf51dc8ffaf9f81b2b9.json} | 0 .../7587fd6621f05f74681b3ed9f9464a14.json | 1 - .../75c054b2d0b1c7efb3ca8031a87e588a.json | 1 - ... => 75cc6fab08261b227769ba878b568be7.json} | 0 .../75df9c3376fe66528d333f3137f83894.json | 1 + ... => 76637cd54942dd9abdc7a96e994ab69d.json} | 0 .../76c6ead106e49dc2f4d9dc6ad97a964a.json | 1 - .../76c70f15f68edaa2072c4cc3de31e893.json | 1 - ... => 76df694e9486e58fe991e43c547990e7.json} | 0 ... => 770d06f8b350318e4d068d94a8f1e11f.json} | 0 ... => 7722519ebfa18e4ddecd743229be66d9.json} | 0 ... => 773c3d27ffc35d7767d6f0f973e0dd85.json} | 0 ... => 77c752daef04e091cf1ca0d25fa5c59b.json} | 0 ... => 782218a9477f0a5d784b9f2ca25174af.json} | 0 .../78571a0314870ab0ee4ffc7816f9696a.json | 1 - .../78baf5190c3dbb9cb2bddd371543a3b2.json | 1 - ... => 78f4f780434ffd156892cc1c173dacbe.json} | 0 ... => 7925dd2b3c3d1b3c02c076383abdb91c.json} | 0 .../795271493cee73052a99f1e021b92897.json | 1 - ... => 798bafcf39ff54acc02fbb213794d24c.json} | 0 ... => 79c876ee42fd189de2fb456c13f2a06f.json} | 0 ... => 79e6fdf635d6dc20489d49267c3bc31c.json} | 0 ... => 7a599e531edb93cdb281fc6c836db34d.json} | 0 ... => 7a6a5d50d23ad34ac6676f5d58537e37.json} | 0 .../7aca7b5e509845dd879e52a2e20b90c8.json | 1 - .../7b13473088255e76ed4fad7d0ea92a58.json | 1 - ... => 7b22301206b24bb30bfad95f5a299ceb.json} | 0 ... => 7c1c0884ca5ec4a519a081a7beb3e59c.json} | 0 ... => 7d7e857d8e351234d59386a3d933783a.json} | 0 .../7dae829cab43eeeb247c64434d1309e6.json | 1 - ... => 7db68019db5bfe97292d91800221c745.json} | 0 ... => 7de46306b11f28babab308f06106a682.json} | 0 ... => 7dfb497bf3b79fcc70c6e23dfe4e61f7.json} | 0 ... => 7e486f698cf2811678153f2a0648816d.json} | 0 ... => 7e60119acc8e8ed5ecf4a864d1b7fa8d.json} | 0 ... => 7eab868ea3166df98d18646669913c2c.json} | 0 .../7eb68a87c9153084b47a2542ac41d638.json | 1 - ... => 7ebef68d3ae55fbde5103dce47bab997.json} | 0 .../7eec6c989ab72658a981f53f753206f6.json | 1 - .../7eed87b3dc8295459f6a23bbe76aa4e2.json | 1 - .../7f066dbcfcde88004ff2ece05ca42e66.json | 1 - .../7f601d5f619a83fc0db7e4c9e69b1ce6.json | 1 - ... => 7f69dde7c30c8554ab78ead1515d5460.json} | 0 ... => 7ff63336624a1a035698671055be6cff.json} | 0 ... => 7ffe88fd08ac05efe2bac59c4f62e73e.json} | 0 ... => 800a86d80897b1d0918d1679b594487f.json} | 0 ... => 800e392166846596be0de64499343259.json} | 0 ... => 8045455e0bb9db47687233d8be3fd147.json} | 0 .../807ba43dd8a0e3c7af78bcf731f46475.json | 1 - ... => 8089d6b01966929f2a72e69de259a91e.json} | 0 ... => 80dbb09d5ae8072b72a5e2cadbe7f860.json} | 0 ... => 80e5f5cf3fdc18bfde9de5e8e3425311.json} | 0 .../811ec0959785e5a0f5df5c48fd3e828b.json | 1 - ... => 8271084cd63381c7b7f47baaeb70cf44.json} | 0 ... => 82874e413156e6ecf52c6b33892af8da.json} | 0 ... => 82e2001252440cf4e5e22d0275508ebd.json} | 0 .../8366daf4f8cc9d6f2914d8f63c9b8d10.json | 1 - .../836c4e03c9cd831839cc106d81c77707.json | 1 - ... => 8374739fce69672f8c9f5209d58c13af.json} | 0 ... => 83ca6908c4304b1acd46dac9521b0b04.json} | 0 ... => 84559befd6b40a0410ceae520c77a774.json} | 0 ... => 84995317f480cefb48f11867ce4818a0.json} | 0 ... => 84d6e54b79f31afa1cb012103f131f2d.json} | 0 ... => 851a73d8fd43509886eda676ee54fdff.json} | 0 ... => 85636bd8a5bd98f1f2dc29faa0c14da2.json} | 0 .../85a97aa65a0965aafdc4bc3f68e1eddf.json | 1 - ... => 85b2a98b108c1d857b66005d95ef6cdb.json} | 0 .../861badcf0c9e163c588aa22b00965f2a.json | 1 - .../861d5281295d1c8ae0eb5bcf39301a6d.json | 1 - ... => 86612184f3cedd068a1d1413cea7abb9.json} | 0 .../86840bd404e933bf8e03d2ece54f8839.json | 1 - .../86adad3eb0218f740411d2bf890dcafc.json | 1 - ... => 86c870b2c4bc81fc1a1dfc37d54cb47b.json} | 0 .../86e8e5568f3e16f77b14b107d536e7e7.json | 1 + .../87045604c9711b0ec332ef9f4989763b.json | 1 - .../8723345a7866626aa1862aed19840dc7.json | 1 - ... => 872a75a9635892191dd5770a144c14e5.json} | 0 ... => 883708114260a43171fe71e5517408a4.json} | 0 ... => 88b133e2e313cd30a8e745c27ac6c36d.json} | 0 ... => 88dda885aa3818ae80f7dd5a4d75b882.json} | 0 ... => 89056729a4d807652656593e53490c86.json} | 0 ... => 893a5bd6fcf9186daff6a638013eed52.json} | 0 ... => 89d3a545de44cdb3a452d1f491aed6bc.json} | 0 .../89d7703e660a99fe7bfa3b011ce00ccd.json | 1 - ... => 8a706d1217e538bee873aa4dfd8434bd.json} | 0 ... => 8a8b8b24d47141a1d5fe3c30b2c6590f.json} | 0 .../8a94a73712acd778bd4e113561aa0567.json | 1 - ... => 8aa22f9a5b0fa7115752e9862bb11fd1.json} | 0 ... => 8aca209ddb1b12b1167a2a1c30edd917.json} | 0 ... => 8b03a72a6a2336677671a679d3cc95df.json} | 0 ... => 8b04614bd0aaa4eee64ed405fae437f4.json} | 0 .../8b78964f26b881ec4730bf4c1b5dd1e0.json | 1 - .../8b8a303e07a06cf5efb2dc0923c485ff.json | 1 - ... => 8bd6bcf74c1b3ed2baf64214be382749.json} | 0 ... => 8befcf7c5fb5a516af5e387573c59f80.json} | 0 ... => 8c193a4068b7187b735fc7afe915d7d7.json} | 0 .../8c23073b703f52891b8738959add1e6d.json | 1 - .../8c50e9f3bc991eac7eddc02e8999eca4.json | 1 - ... => 8c7712fe12e06916518b0f0f73d7012b.json} | 0 .../8ca07280cea3aaf538152894d2440b36.json | 1 - ... => 8cdb57472aa29b0a4991988d38d8d65d.json} | 0 ... => 8d1a9c30d867b052ce2b4e16d8eb1218.json} | 0 ... => 8df4ab1d5653d37872fd406a3a921cda.json} | 0 .../8e8727bd1c09428f7d4a52822a1b542e.json | 1 - ... => 8e9fe750bcf96c4c856edbd3105f829b.json} | 0 ... => 8ece08ed3f97bd98b4b4e6e7f6cdffec.json} | 0 ... => 8eeabad8c4cc47ab2a823fd8b4b90d19.json} | 0 .../8f1b1c04c401ea1e26e41996499c49f4.json | 1 - ... => 8f6c052f3bd472adf06992b0ba5b5cf1.json} | 0 ... => 8f7b2e495d1c2ff1adb2471283e3b6c8.json} | 0 ... => 8fb07042beaec94b518bb6b80fa60a01.json} | 0 ... => 8fffa7f5a624ffa2e54ddb8dc9b8c8ab.json} | 0 .../901d4977df223c9b70f5cf05aa9946d9.json | 1 - ... => 90dd2dd421d1301d6b075fd40718ad75.json} | 0 ... => 90eff54ea380f34d76229cb559a7539a.json} | 0 ... => 9105aa22867e6f2284a6b7c3ef7f0173.json} | 0 ... => 91ab1d81e65b81abc5cd831422239a24.json} | 0 .../921c1418ba6f4d2103fa2b639807cf4e.json | 1 - ... => 922d0f9462aa924603eec1ada65a44ce.json} | 0 ... => 923eff222436826ff01c252139bb86ae.json} | 0 .../92741dc8b4a9b42e1dc230844bccaad7.json | 1 - ... => 92a37834545d879bcb074056195bc724.json} | 0 ... => 92db46674ed54e4be6cb305fea0f8211.json} | 0 .../93036b11f95cb1833d294629b166d875.json | 1 - ... => 938c6e1c07e0119c5ea4dcde4330272b.json} | 0 ... => 93c30f6b210213682d28645bc98d8a76.json} | 0 ... => 93d8f5d036e7025d7dc305c23c26bfb1.json} | 0 .../93de526e1381026b87a3058e91a7a223.json | 1 - ... => 93feec2dd36122ec1af0df779d175e8b.json} | 0 ... => 94494c578d33eed4d2856cbe7ae758a4.json} | 0 ... => 94d70339ff53e50a34ba78f91d334424.json} | 0 ... => 96235097b3f4b68138115526d105e7d8.json} | 0 .../9631ad19d9c330c5d5a3692c34949152.json | 1 - ... => 967559056c476ebdd48cf621251853da.json} | 0 ... => 968ef509daca7c5e972e5eec9ec2dca2.json} | 0 ... => 96b4c3e050f44669cefa7390b975eead.json} | 0 .../9723db98d6bfeabece96cca3dda27458.json | 1 - ... => 97873d89ceed5e40eae5b174690cbb9b.json} | 0 .../97b7a10d58a03f36af4baeaf26790c7e.json | 1 - ... => 97fcfc6fd0872f1bb6e610335dcfc6d3.json} | 0 ... => 981c4dda8db05d9bd56109f4a4e6e3cf.json} | 0 ... => 981e2ed5155d655a76c8cbf54090f5dc.json} | 0 .../985efec65f56d52e7bfbe3a110b60dd8.json | 1 - ... => 986a502239f1260a15a83a2f6e88de9a.json} | 0 ... => 987e22980f885e0451aab0a512d9f218.json} | 0 .../98824d0ea60939d7212edfec7058e1f4.json | 1 - ... => 98bcf27385134c7c214f14bd3a72264e.json} | 0 .../98cbeb76b26b2eade86ca437fc8161e1.json | 1 - ... => 99b49515423645d53ed2e2952e7decd1.json} | 0 ... => 99ee30bc9a18975f55898193ccbc1177.json} | 0 ... => 9a3c4d97d96ce32e693d022972495218.json} | 0 ... => 9a3e4134052b255ae670771982f96111.json} | 0 .../9a5b95eda927958b7ba129a940ecbd28.json | 1 - ... => 9a5e4c5ad4e818650c1c18dd3af01545.json} | 0 .../9a8a835d4cdf154ddd7e48859f266d4f.json | 1 - ... => 9aa401e5e2d11032900770b85747fd16.json} | 0 ... => 9b3b436142d95d0be0460e14dcaa1d7c.json} | 0 ... => 9b762b9a3a536efe6a2a17984a29f2de.json} | 0 .../9b87c5dd1b4beefd23474627f3e03c8b.json | 1 - ... => 9bcc5da66af274c1ef5718d00c1288c2.json} | 0 .../9c2b62382190b90f94790668bca8bd15.json | 1 + .../9c5947d5949113f4846425d5256381d7.json | 1 - .../9c7088ed89abbae1817129863dc03aef.json | 1 - ... => 9c823f5c0be6a37cef26e543b3a4c4f6.json} | 0 ... => 9cfccc89c51ba02c00fef7173618425e.json} | 0 ... => 9d4c03c57cd9632b08e5ff530d15c0e0.json} | 0 .../9d5e5ad5dcc6c5e9073785854f40f143.json | 1 - ... => 9d7d98ca6915ed14ee3df932734af7c3.json} | 0 ... => 9daeea6740a1e0a3a9a2d1a440ec0754.json} | 0 .../9dd6c45ad0a74a37c58561cda565008c.json | 1 - .../9e5363486292cfc9fade6e4da3c84a3f.json | 1 - ... => 9eb8ca0cdeaedf068d86b3716fd5ce8f.json} | 0 ... => 9eba1dff90db981fc33cbb9cb22e0c27.json} | 0 ... => 9ef05b5c636cb5bf7c04cdee5bd3ae7f.json} | 0 ... => 9ef4d5181b284207f6e768687db12d93.json} | 0 ... => 9fb918cd4c102e8ba22b17161805eb9f.json} | 0 .../9fe0892d579077c05b0782158538aaa0.json | 1 - .../9fedb43c0b83baf826e3fbae5acbb992.json | 1 - ... => a01a3daed7cd3d0bc907bd8e7afe2eab.json} | 0 ... => a06cd781becaaa0b0ced3196dbdf9b4d.json} | 0 .../a165732c2ab11f66f34abedba69092f2.json | 1 - .../a181070d6100b23c7cf01ecf5465ae81.json | 1 - ... => a1d868db37df015c03759b2c7518ce15.json} | 0 ... => a20607f74f0b03d9ccda89904745e5f7.json} | 0 .../a2691acd2e9ccf9e1328f7849e360403.json | 1 - ... => a2a1d5c2247d1d314686615ea66af73a.json} | 0 ... => a2cdd8552f2ae158a6a5925b98d9d51b.json} | 0 ... => a309e7dc9b7db79b838e55381864d401.json} | 0 .../a36842fde239b1679bf3889c18d11a6d.json | 1 - ... => a36e4e9faee2af578dd2ca73b2535a02.json} | 0 .../a3ac8013d87eca0c12a11efe4dfa7e34.json | 1 - .../a3d2dd1be4b6a95acd8b35e6dfb5cc65.json | 1 - ... => a4293b56da78f8280769c39aa886cabe.json} | 0 ... => a4cc497c9618658de5daee928025ada9.json} | 0 .../a5c30083170f42269b348249977affe4.json | 1 - ... => a5f39fbe23e6433d60c33fc0383526e7.json} | 0 ... => a5f4859b5e2ee18e2989119926534c44.json} | 0 .../a633327205d859189795f6b8b06ee210.json | 1 - .../a646081dd3671447af932da2f26d12a2.json | 1 - ... => a66c01c3384638f350c7346d01fb95c0.json} | 0 ... => a69ab601ca24aa44fee87e0b1b7da2ad.json} | 0 ... => a7103f14963b39c15264d86e9bc75b1e.json} | 0 .../a714c6419eadde1cb53dd8dd33c60ad7.json | 1 - .../a757fcdf1e11980b8a712d108277e841.json | 1 - .../a77a684570f597cec4f7b9ceedff17ca.json | 1 - ... => a780c99cbf156b03acce4c69cfc1d0fe.json} | 0 ... => a7844b85ea8c0556070b4b97e36f043a.json} | 0 ... => a7a46e6d2d573ea866e8989e783f0eee.json} | 0 .../a7acecc3ffdf9c20149e6202cf808fa4.json | 1 - ... => a822a49a0c5ef9025be95bba3b4ff332.json} | 0 ... => a83e54638cbe0153868a633e9b4590c8.json} | 0 ... => a899aa68af003b14390c4df02e63bdb7.json} | 0 ... => a8b55dcaec2515a4b676fd664d96b59f.json} | 0 ... => a8be2807027ff34b314103238f9b1600.json} | 0 ... => a8dfe0ea9d8247378ee9a961241c05ff.json} | 0 ... => a8ef373cfcbf62a5c65ec6c11b4744ff.json} | 0 .../a9204ef77f8e3ddcea1947d7dd6a8f2a.json | 1 - .../a92f2eab474c93f14c7fb433e5c2c0b4.json | 1 - ... => a99c5f53f8ae5469f8385573e50db969.json} | 0 ... => a9b1ce521eda6d8d13205a2914aff9a0.json} | 0 ... => a9ca066a1340330d9ba59c2b251716a2.json} | 0 .../a9e58a7648121719c19e4a3335811031.json | 1 - ... => aa0c4e545b012f592d36511a5d445807.json} | 0 ... => aa6d36906cc7b4ada8ae9fead03f8bc1.json} | 0 ... => aa7f05f18be8021b3193cda7ad203855.json} | 0 ... => aa993ed3625f75c11ae3daa0a6fca544.json} | 0 ... => aaa2760eec5ff6c3646fe14dbf327ef3.json} | 0 ... => aade7ceb953445fd49b5cf03a9525cdf.json} | 0 ... => aafe60cb1c54fcd3e33941de5d8d72fd.json} | 0 .../ab22d9501ac18e2804fec099a80e693c.json | 1 - .../aba4999c9b40cbfc025c4c5b598a2934.json | 1 - ... => aba851e63035f702f61d0483885ac272.json} | 0 ... => abcc6654e9183f10ea927759918de860.json} | 0 .../abf93438aa71d79e66383e42c6aa1a15.json | 1 - ... => ad197c4397f547b3ecae2f1e79871503.json} | 0 .../ad2f7d6c8f8aad2fa77b854833efaa27.json | 1 - ... => ad632ec23cadc0c65c5cf7e753445f35.json} | 0 ... => ad76c6c9524818645665160ff98650f5.json} | 0 .../adfbabfb969eacbffc590d64d75d2b27.json | 1 - .../ae21bd574e13d8f031efd1770b5b723f.json | 1 - ... => ae8fbc4e889d7a06245875db48a72fd3.json} | 0 ... => ae91a03516d3bbbed21c4f9dc9f7be01.json} | 0 ... => af42bc9de853f4104098fe08dd6a7197.json} | 0 ... => af58f7644b11f6556e05e11fc5bb6b15.json} | 0 .../aff398d9dfe2f4a4a19ce2ec96ab261a.json | 1 - ... => b011413e06ae52261c9bec2c7c27a173.json} | 0 ... => b0647292b44ce725e60479859012b1fd.json} | 0 .../b0f3a38866b555845acac4985eae86b8.json | 1 - ... => b0f53c5a3f7ea72ae2df2d4b79a1addb.json} | 0 ... => b1397d67b7b1e20843c653b4755ae8cf.json} | 0 .../b18739246362fca639fea170b5de4b3a.json | 1 - ... => b19f27e762f459ce94299ef7dff93a51.json} | 0 ... => b1c46ab524b699197e0d64f3df94b66d.json} | 0 ... => b29b3a7e1066dbc279b0d7e2a9c34d92.json} | 0 ... => b31bc952612d651f0a82d70a1a50452a.json} | 0 .../b345e6a4c24ebc265eebceb439e3528b.json | 1 - ... => b351762e62372a83e96c819df6aee2b3.json} | 0 ... => b35db6d1f8c3670dcd6ad8e083023868.json} | 0 ... => b35e75c7296278d0fdb6396ab31189e9.json} | 0 .../b36bf24fc6426044eac709ae0479e018.json | 1 - ... => b3b1d8eb71ce1ec7e32e3f3808365260.json} | 0 .../b4810ba9d582029ddfb472bf5a8f01f6.json | 1 - ... => b4ce09c8d7ff6e78d249b07a0c96e8a5.json} | 0 ... => b535c7bd1f04cd481e8179a647e49805.json} | 0 ... => b5768d6c7a85d8861444c161cabfd690.json} | 0 ... => b589a029dc341cbf9abd540f977e2c63.json} | 0 .../b5d04d52709d248982494e47c21d7375.json | 1 - .../b65746610d92f8a49bac1d580c510d0f.json | 1 - ... => b740e7877110e2df446c53dca977ec0b.json} | 0 .../b76b24ff2a6697ef0874dc41dba3dd41.json | 1 - .../b77171f029f0044132a389904c10d663.json | 1 - ... => b77f17daab03c169759b878dcc1e2c1d.json} | 0 ... => b7acd2f2fc0eaa946eb68cd082c4ddfd.json} | 0 ... => b875c3a66d4eda71a6b57fd8fceef9d2.json} | 0 .../b8f451b53d3023d1fa5cce6a793f373c.json | 1 - .../b945d1cb6cd3ae78ddf826b6b6c0062a.json | 1 - .../b9b4896158a2af7aa0c9949b0d1a69da.json | 1 - ... => b9f72249cb4b45527605703bb09d3777.json} | 0 .../ba4345489ab48dec4087bddc46e3309d.json | 1 - .../bac043842d3d5d3747b95d107ee97102.json | 1 - ... => bb352023d763df5d3f9f71ca78bbcbea.json} | 0 ... => bb5bae71c941fa5474e5effa4d4e9145.json} | 0 .../bb86ea9260a1a373583fbe05a629f92a.json | 1 - ... => bba73ec9900a9fc0a2bfe1c848eab0f1.json} | 0 ... => bbf9800ec9f305d21a2c64f873c6a1e6.json} | 0 .../bd6c873465050502bd5ec071a280cd9c.json | 1 + .../bd6d698097cbd9e5f0a1eef1f2f9588c.json | 1 + ... => bd9633538c7274a0717cb1ba99826289.json} | 0 .../bdb7b406e8819fd285be08127f72c61c.json | 1 - ... => bdcc381f881d4fb82ca7f76f8853b312.json} | 0 ... => bdfa466c9b82e1a56b6d5016205b8c3a.json} | 0 ... => be0d5ca7bdccff12ff7afb609624979b.json} | 0 ... => bf3bb3cddbb1ea3d8ea3712dfada894d.json} | 0 .../bf4e7832a3712ae9024c989c90ae5e43.json | 1 + ... => bf59a6bf0bfb99a7fafe375c905037ba.json} | 0 .../bf9f562b9d3ef1a14a6561b935ff771f.json | 1 - ... => bfd9b265a3bad604979f9b4229ca5a82.json} | 0 ... => c0134387f136e7cfe93b7ee4d1664006.json} | 0 ... => c028cb857c5b7774c008f42fa82498b6.json} | 0 ... => c05d16d8b9e0f3dbd8965851661f2179.json} | 0 ... => c0754d1320143213877164c29fd9acd6.json} | 0 ... => c13b30f470539bee1f38069a4cf628d6.json} | 0 ... => c1edbf9df7d4d63ff9fb99ba32d079c6.json} | 0 .../c25d7d2453614635875db6d59a87b655.json | 1 - .../c2c1ff2cd7f886a85e07a077893860da.json | 1 - ... => c30bbe2f1c823b55b7c8f6eda0ec3172.json} | 0 ... => c32dfe1d9930de1d117c117dd06d2d11.json} | 0 ... => c3a32e7ec0db8351bc7469bc1b1ad99c.json} | 0 ... => c42d28f69ae462d52a6922cda9a13319.json} | 0 ... => c44688f1f3787ffcddcb11e3e8b56b36.json} | 0 .../c46a72cc9c10f13615e662042cb26128.json | 1 + ... => c473d39d7af3e04c106cb612e40a68ec.json} | 0 ... => c5218f7581bcc7968822e8f20c46cf3b.json} | 0 .../c527dddc775b927bc00d84ea2d37cb05.json | 1 - ... => c5547cbfdaf2101c8c22cf46a6aba38b.json} | 0 ... => c5bb95c29291276d5e100d70f09524c0.json} | 0 ... => c7087ac0f117cfa23cffa3b0707514ad.json} | 0 ... => c72dea7ae954f5dbfafc628ec0f6243b.json} | 0 ... => c74a4fa6de58413d28b7017427e7e5bd.json} | 0 ... => c76dc0f07eb8455949600a18f83c43bb.json} | 0 ... => c7c4e203339669ae3da05e59f22120f4.json} | 0 ... => c7c5a5584963cffa8eb2e4fc64a4514b.json} | 0 .../c7de52afd676f7db754614bff55fea73.json | 1 - ... => c82aa80867e4b4b4d0a04a9f38dfdf15.json} | 0 .../c82f20f288c955c6962af592d368b61b.json | 1 - ... => c844636ca05d4e5cfbe37e9e62d4b9b2.json} | 0 ... => c853b6e83e9c609548923dc25ba1ecbf.json} | 0 ... => c88100f7f0dcf0379c3d805e88616ed7.json} | 0 .../c8d383269d791e515757fde2b711a5ea.json | 1 - .../c90482eeb856084a17ad0153ee626bf5.json | 1 - ... => c92643022c970ff5e1e9445322fe0bd1.json} | 0 ... => c9319a2b12a2808e0e0975c37df709ab.json} | 0 .../c94672232b0e8ce1c34c41aaf3b069e0.json | 1 + ... => c94f165553643e731af1d5355131dc26.json} | 0 .../c96495966ec958bfc2d471e33ede7c46.json | 1 - .../c9c7afc501814f91837b7b81ab1cd6be.json | 1 - ... => ca28f97ebf9ebdddae0d45afd42df098.json} | 0 ... => ca823233e18055b61181d31c73f47c3f.json} | 0 .../caec989a8717451658033d86bdccf1be.json | 1 - ... => caff18ce85f36c9274e6c0a58643bb76.json} | 0 ... => cb04f58267ade693f9e4a30e893221a2.json} | 0 .../cbcd5995b98accf2d9fb689e999888dc.json | 1 - .../cc16250075ca481be812be61eeb6ebbf.json | 1 - ... => cc23d6734e1150ce7fb1ad85c782435d.json} | 0 .../cc78148ebee4fbf2edcd46499d2ded29.json | 1 - ... => ccd3a4ebd7081b026bf2a64cf7547e2a.json} | 0 .../cd0aa9f87e32b688a8cd83989bb03092.json | 1 - ... => cd76ae95994bb806c9f078028c99c894.json} | 0 .../ce46a7c10f1a54e2d6304b08817a2340.json | 1 - .../ce560f6e5e3bd7cbad920d139a91a9f3.json | 1 - .../ce60fa2c8abd560516e7ccc277e98bdb.json | 1 - .../ce7031a7877ed0b702a3a354b4812504.json | 1 - ... => ceffda915158adaf9561a160d755cd8f.json} | 0 ... => cf861bf8d64b46dec57b301169bc811c.json} | 0 ... => cf992360b8ace03cc4ff70f32bfda4da.json} | 0 .../cfb39a0355044235646f82d4eba4b8d2.json | 1 - .../cfcfca31dc06f38f1a210f6652f18f20.json | 1 - .../d036efa43c395a62e2e9f2c89263bcea.json | 1 - ... => d0586a242cf9d08ca63932245bf187d8.json} | 0 .../d08004137435313f7addc2072c078d04.json | 1 - ... => d11da18bc794df898783d8b1389da999.json} | 0 ... => d1212b3b5d5133cd995abb13dbd67307.json} | 0 .../d163748892b6d145f6a75c83dc1c4165.json | 1 - ... => d17ae8aa5d26b93e864f7a6afde1e71a.json} | 0 ... => d1f526a88e6c4e1adcd1178b87210fd2.json} | 0 ... => d203ee67b637d8e77b7cd9e5a5b432be.json} | 0 .../d293b787163fa3769735f960d305f55a.json | 1 - ... => d30a506548b70ef3afcc13d4be8704e7.json} | 0 ... => d318658714afc277e4a288c3b574f136.json} | 0 ... => d3289bba5dded94fbaace46efd6df3fe.json} | 0 ... => d39069a6878fea632c1c82106f24b956.json} | 0 ... => d3f5ce233f5321acc22913f93d27fe75.json} | 0 ... => d3f67664fbd71d903aa50abb3c3b8973.json} | 0 ... => d3f7017fa928d888f42163a2200dee7c.json} | 0 .../d473cba7de8766d184c59403367f11d7.json | 1 - .../d4df31d1122bd4cc2562f74379b1744b.json | 1 - ... => d551f6542bfe114574aa7b0dcc0afb67.json} | 0 ... => d5891841fe76d73bf753befc7747967f.json} | 0 ... => d59f5e6ca9899b9de8038ca7cfaad76f.json} | 0 .../d60503010797ec3f3ecfbe507a475331.json | 1 - ... => d61478b2ace3f5e9febb4aa8739d8385.json} | 0 ... => d66a72ca13d1d8ab290cccb2fbe520b3.json} | 0 .../d6ff2bb0de43620ada91f1d6d8c8132b.json | 1 - ... => d7c81858eb66e78b1dfbcd011547c012.json} | 0 .../d81fa7dfce3c83a08a8c8b93c505813a.json | 1 - .../d870341812bf6f4ba9687993726563f3.json | 1 - ... => d913331097a7f7982d179a65247bd43e.json} | 0 .../d914005373ced778af30de64cd22fdf2.json | 1 - .../da1726a641760823306581746c2dd2c6.json | 1 - ... => da9aee5df81583bafce70b1aa7427801.json} | 0 ... => db01e0f86a634dc6bded791bd9ac06ba.json} | 0 ... => db2bcea6abd488194e733c5c8b8234f6.json} | 0 ... => db5a719a44b83245f538b2543de11812.json} | 0 ... => db5ff83c237ec524308a625b6b62bbbc.json} | 0 ... => db62f44a68e5e4b4a6f27f4813af68a5.json} | 0 ... => db763a8471bd44caefc31f1dff92969f.json} | 0 .../dbc0e8da77b0c0bcff2ff0762c6001d0.json | 1 + .../dbdcdd3847a191fff9c9f26b808fcef3.json | 1 - ... => dbe1b4c7104208c9d84ffee65b275e3e.json} | 0 .../dbf788bb1ac4025bdf430e2f61641041.json | 1 - .../dc38bf284b31d01a9a5c2edbf1f6cd17.json | 1 - .../dc5ce533c2fd1f818637a9eb78a0895b.json | 1 + ... => dc900f5fc33e46ed5e8ca10b4fb6c2fd.json} | 0 ... => dcad70e590f7fb9cc97bb32f96af8a7b.json} | 0 .../dcca40655717ab6089f90cbd5ab74b20.json | 1 - ... => dcf4b4e5085dad4a3200c6be207c33dc.json} | 0 ... => dd6cdd4e80b909cc3db48e0ea31ae250.json} | 0 .../dd9b5e78bfaa4717869a71f574223dfa.json | 1 - ... => ddb1907f063b8fee798fac8fab686ffa.json} | 0 ... => de3ed95b674ad0ff673e0952b270ecb1.json} | 0 ... => de673dcb5598d50e0c150caf8f2cd20d.json} | 0 .../de86928823a70870890fa570356e24d5.json | 1 - .../debab50def026ce79cae5bb39afaea3b.json | 1 - .../dec5a9f21942ae51b833b4c3bf38eaa3.json | 1 - ... => def963cfcd58011181c80e7e2873289b.json} | 0 ... => df08dc8a23c111e325dd234fea34a0d6.json} | 0 ... => dfbe5719fbbeee6a5940e34bdf11d83a.json} | 0 ... => e00d16df5b587d72d472ce3c44937e04.json} | 0 .../e011e7481784735a629cd5933f746655.json | 1 - ... => e077198c964409bc8bbb135532b5fc53.json} | 0 .../e0eb49bcc6be1d8bf70939ea08b7c7c4.json | 1 - ... => e151f766b359b1279e277c214adadd50.json} | 0 ... => e187f10c543094cf017f41028f56d05c.json} | 0 .../e18d3e3d1ffa4fb933da6822061715cf.json | 1 - ... => e1ee3cb4f77781b4ab53a1929da7d751.json} | 0 ... => e20a1903c87fc0e17b55b93faa75647a.json} | 0 .../e2aacdc85eed2c02392d6a6a250edfd2.json | 1 - ... => e2bfcbfdd020fd5234f7ae81ae1f8e39.json} | 0 ... => e2d1986e02ef791bb8941ad80de20f6a.json} | 0 ... => e34b32106e5997c6224e6274e18fe5e5.json} | 0 .../e36926a587e6e11b68bf4a7a334ebd6b.json | 1 - ... => e3de9553ebe4d298df4345ac44e91ab2.json} | 0 .../e3e2e580b6e9a68d2a464c2f82d0acf7.json | 1 - ... => e3ec98c32d39d95feb1846871e7c24f6.json} | 0 ... => e435ac43746f5d33f6232fa156650438.json} | 0 ... => e43a89637b3bbaf369ceb00f3f1e262e.json} | 0 ... => e46f04a257fdebb8afe18c3880700d7e.json} | 0 .../e49a084f03db129940d4190db8738b4a.json | 1 + .../e4a3ec15668fb11c2059a9a04a7ab1ae.json | 1 - .../e4e6595e8e57fc893d97a8261acb05fa.json | 1 - ... => e50d2ed59dd2966cecfccc13f51b627c.json} | 0 ... => e5127edd469a5410d8b7d5bc064696ab.json} | 0 ... => e53b2e3303ce37f3dfdde1924761b0a1.json} | 0 ... => e5540e5877299a1491a0e55f1fecb359.json} | 0 ... => e55ea3b9ba8fa4fcc040d043e4043368.json} | 0 ... => e5815e670e38b937ee08c5a9733df2b5.json} | 0 ... => e5adf38ad52ac7c36a25d7a2132e9140.json} | 0 .../e60eed194e5dc35ac067da970ce83a5d.json | 1 - ... => e67af508925305629c4156b245aa2244.json} | 0 ... => e67cd3395173ba4f943bf6f17ea761d0.json} | 0 ... => e697de1b3cd6181ca3c7e7d93dd6c353.json} | 0 .../e6d9aea75368fdc548dd959fbe5ba84a.json | 1 - ... => e7307d0b29b6493ef73268ffd84433d4.json} | 0 ... => e734bad198be0240d7739570a4ab88a0.json} | 0 .../e7750eae7820777e8d8cfa71a592cdc1.json | 1 - ... => e786f4df37667b34fa2c040a9b7ddd23.json} | 0 ... => e7937e657e7fd841c08f047b167f0224.json} | 0 .../e7adba541778ee72922c19e5e636ac42.json | 1 - ... => e7f1f186c7fb7a0a73086dfc3249aa7b.json} | 0 ... => e825e4f168b39d8405a0b5dad5f66d06.json} | 0 .../e85d034f7d0a65f71db0f3197ccee23c.json | 1 - ... => e85d27fc81ea0978212d62ae5c0a5187.json} | 0 ... => e885fd2b73f5ba863c0242b21a612ffc.json} | 0 .../e8d8604f419e6c29263abb44ebe29743.json | 1 - ... => e91bc26a428334fae848c61082a71eec.json} | 0 .../e9a0d6250ba028c9eb74a6f54b1d6f37.json | 1 - .../e9a2b1a4ecfa9973b53dfa4b4eb0b8c5.json | 1 - ... => e9b6be8d90ace42ab7b99809fc97a6e6.json} | 0 .../e9ef3d832fcd9bb29badf589dab8da05.json | 1 - .../ea50606e439cb049296ef379368c0ea5.json | 1 - ... => ea5f87492ecb74ee1df738ac6513dbba.json} | 0 ... => ea7149b394578e3132c1370cb6a1a524.json} | 0 .../ea8992bd5295863794841bc14189d25a.json | 1 - ... => ea9fec68e1ce7141520e2990d6ad0371.json} | 0 .../eaf4e8c10d7b7f5bf34ec32e31dfeb2a.json | 1 - ... => eb6df799c3db2f86884daa0dc81db8b2.json} | 0 ... => ec04237745525ca1b2d28cd82c9855de.json} | 0 .../ec92422442e6f74352ba323ee37e0b92.json | 1 - ... => ecb50f3fb4a783cbb1f5045f93ed9c84.json} | 0 .../ecc2306778d6822d40bb7eab621fa902.json | 1 - .../ed208daac1b1313ad2eea7c33ea28f63.json | 1 - ... => ee1f5c8e6aaaa5030634cd37ae2186c1.json} | 0 ... => ee7104c8b1df5ca36ff55f477e66ebee.json} | 0 ... => ee76a8efa9a1ed7f2e14dfff729e88a7.json} | 0 ... => ee7c93c479d0845023c35645d6bb984f.json} | 0 .../eeeddb108cf0c382f46628d92f68c468.json | 1 - ... => ef3cd8a3d711875bfebb03e815315067.json} | 0 ... => ef9593558024aaf73cdd1b23628e50c0.json} | 0 ... => ef97310ecea047501f2379504674a966.json} | 0 .../efdffdeb4cf73ba30d4116f5f1eec5a5.json | 1 - .../efe59d78fd92c1332fe5c62b6c4745f8.json | 1 - .../f00337aa69d32e0870ed938c2049c776.json | 1 - ... => f0066e9bbf11597d1c71489a16ce6ec1.json} | 0 ... => f00c8efdd514bbc42ad6f6610fc916fb.json} | 0 .../f12d7db790af886b862e09b860fa59a1.json | 1 - ... => f1fbfddcdf6514b9196c41b5b7eed578.json} | 0 .../f21a3e05083cb651512fe407d51648b1.json | 1 - .../f2748244a2de6094e02f1a7e388bcc7d.json | 1 - ... => f29da27172b5a79bfe1c3799c9775943.json} | 0 ... => f2fb50f81b869b20ba45ab1e54d7f4e9.json} | 0 .../f323f061825d228073aff6ebd091d699.json | 1 + .../f3420c02adbdb2d2f5266719bcce26f1.json | 1 + ... => f3d1edc271e0e9855ec7d5d19ae3cbd1.json} | 0 ... => f3eb5020dab909a7f4df445e1a872250.json} | 0 ... => f40b06a1cc95d512070e1493fad1cffe.json} | 0 .../f40fc9cefabb90be1460526fce7e36b1.json | 1 - ... => f4130eb25f600d9dc688964b4a68be2b.json} | 0 .../f45a61820264cc7f3217508a5272e22a.json | 1 - .../f46f9e96e2f423a9e7174921225bdbd7.json | 1 - .../f47b7174504ae654a29390c024ddf51b.json | 1 - ... => f517df0f833803d4744f8beed0683ab5.json} | 0 .../f54b128d4ea092ead40e28499dd71e3c.json | 1 - ... => f5555e4bdf32c718a5e3e46714442872.json} | 0 .../f5d4a609c573bc2937b43af094d9d7d4.json | 1 - ... => f60bc89ca207637620964b00a63af500.json} | 0 ... => f6200dfff70dd438f79fef871df32866.json} | 0 ... => f6271067e8dfacb32150ca79140dc37d.json} | 0 .../f62c3d4aea89a73fd78b850453af2ea2.json | 1 - .../f6512e0f69326d7223e6101d18c09ad0.json | 1 - .../f656167833b954566ac06dc4ba859980.json | 1 - ... => f6a7a7614d051918b63cf26fa2cd4f6d.json} | 0 .../f6c03e160d45016203e771ee194a19b2.json | 1 - ... => f70ac69314458971551b2319666487a8.json} | 0 ... => f7508f601622e6823fae91ebbb834077.json} | 0 .../f7adfde3db23132fa8c6ddaf315d4dac.json | 1 - ... => f7d5c6e8591ec8321c77b18edd685bce.json} | 0 ... => f7f2f9719af494ab84b5fb65861a9f0d.json} | 0 ... => f8082ac0f38ed91b82f5bc4e24fcda06.json} | 0 ... => f81d948e5224cc31f6b12b2977dbabb5.json} | 0 .../f862dae617d8a3624a4bb9f705b55b6b.json | 1 - .../f8659222979a9712dcc2e5ff1319345f.json | 1 + .../f87dc29d2f1de1ac34a4917b8327a94a.json | 1 - ... => f89073dc7afd7c62869318bb84679352.json} | 0 ... => f8b2c61ff2c3584bfc91bfbe99625799.json} | 0 ... => f8e5c62f60af99a5f44347fdacaca3d5.json} | 0 ... => f9494db94d87595dc4d9b59a70a0a93f.json} | 0 .../f98f0c46f1e28e5f93116fff8dff9774.json | 1 - .../f9c4f1476bf8dad7e782886ac12bface.json | 1 - ... => fa3db94376cc02807e6af7c0f2fa6327.json} | 0 ... => fba574cbebf0d5a3c9d32db08f9e6148.json} | 0 .../fc4ee7eb52080e758138f7393399af5d.json | 1 - .../fc57a595a80d46cb062c4b22a406dde8.json | 1 - .../fc5a245986a0949142bf2032c6962290.json | 1 - ... => fc9693ce3d9222ccf338221ab75af1bf.json} | 0 .../fd3a74c757ea2db3ac675907d0c9351e.json | 1 - ... => fd4ac82a91403f4fa86e1e720378ded4.json} | 0 ... => fd839f77aadb6b02ec4e0a60dae3b296.json} | 0 .../fd92bd590a0e2408a5d8bb1480dbdc1f.json | 1 - ... => fdad716af3da0caf783ba46fc183b398.json} | 0 ... => fdd983d7655cd6ce5f01bc61a3a3243e.json} | 0 ... => fdda7f4f68fb2854c8c3c317fef0c65e.json} | 0 ... => fe3d603b2d3d7b1817b0126012e7c82b.json} | 0 ... => fea7517573a00e153c9cc118f5b83ea0.json} | 0 ... => fec4df308bff49dcb02781f010320f1a.json} | 0 .../fedf4234e1c1f72fcacb3bc400bd6549.json | 1 - ... => ff047e99d280f7af5d5818d54645b9e8.json} | 0 .../ff31d79298153d49ae720cbd0f7b3d51.json | 1 - ... => ff41ee82e4ca7064de4bda22284a9e60.json} | 0 .../ffe97983437c8241b26c7b3faa54e3c6.json | 1 - .../ffffd0af385ef02d678b617f51557b5f.json | 1 - node_modules/@babel/code-frame/package.json | 4 +- node_modules/@babel/compat-data/package.json | 4 +- node_modules/@babel/core/package.json | 4 +- .../node_modules/@babel/types/package.json | 4 +- node_modules/@babel/generator/package.json | 4 +- .../node_modules/@babel/types/package.json | 4 +- .../helper-annotate-as-pure/package.json | 4 +- .../node_modules/@babel/types/package.json | 4 +- .../package.json | 4 +- .../@babel/helper-module-imports/package.json | 4 +- .../node_modules/@babel/types/package.json | 4 +- .../package.json | 4 +- .../node_modules/@babel/types/package.json | 4 +- .../helper-builder-react-jsx/package.json | 4 +- .../helper-compilation-targets/package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../node_modules/@babel/types/package.json | 4 +- .../@babel/helper-define-map/package.json | 4 +- .../node_modules/@babel/types/package.json | 4 +- .../package.json | 4 +- .../node_modules/@babel/types/package.json | 4 +- .../@babel/helper-function-name/package.json | 4 +- .../node_modules/@babel/types/package.json | 4 +- .../helper-get-function-arity/package.json | 4 +- .../node_modules/@babel/types/package.json | 4 +- .../helper-hoist-variables/package.json | 4 +- .../node_modules/@babel/types/package.json | 4 +- .../package.json | 4 +- .../@babel/helper-module-imports/package.json | 4 +- .../@babel/helper-module-imports/package.json | 4 +- .../node_modules/@babel/types/package.json | 4 +- .../helper-module-transforms/package.json | 4 +- .../node_modules/@babel/types/package.json | 4 +- .../package.json | 4 +- .../@babel/helper-plugin-utils/package.json | 4 +- node_modules/@babel/helper-regex/package.json | 4 +- .../node_modules/@babel/types/package.json | 4 +- .../package.json | 4 +- .../node_modules/@babel/types/package.json | 4 +- .../@babel/helper-replace-supers/package.json | 4 +- .../node_modules/@babel/types/package.json | 4 +- .../@babel/helper-simple-access/package.json | 4 +- .../node_modules/@babel/types/package.json | 4 +- .../package.json | 4 +- .../helper-validator-identifier/package.json | 4 +- .../node_modules/@babel/types/package.json | 4 +- .../@babel/helper-wrap-function/package.json | 4 +- .../node_modules/@babel/types/package.json | 4 +- node_modules/@babel/helpers/package.json | 4 +- node_modules/@babel/highlight/package.json | 4 +- node_modules/@babel/parser/package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../plugin-proposal-decorators/package.json | 4 +- .../package.json | 4 +- .../plugin-proposal-json-strings/package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../plugin-syntax-decorators/package.json | 4 +- .../plugin-syntax-dynamic-import/package.json | 4 +- .../@babel/plugin-syntax-flow/package.json | 4 +- .../plugin-syntax-json-strings/package.json | 4 +- .../@babel/plugin-syntax-jsx/package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../plugin-syntax-typescript/package.json | 4 +- .../package.json | 4 +- .../@babel/helper-module-imports/package.json | 4 +- .../node_modules/@babel/types/package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../plugin-transform-classes/package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../plugin-transform-for-of/package.json | 4 +- .../package.json | 4 +- .../plugin-transform-literals/package.json | 4 +- .../package.json | 4 +- .../plugin-transform-modules-amd/package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../plugin-transform-modules-umd/package.json | 4 +- .../package.json | 4 +- .../plugin-transform-new-target/package.json | 4 +- .../package.json | 4 +- .../plugin-transform-parameters/package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../plugin-transform-react-jsx/package.json | 4 +- .../plugin-transform-regenerator/package.json | 4 +- .../package.json | 4 +- .../plugin-transform-runtime/package.json | 4 +- .../package.json | 4 +- .../plugin-transform-spread/package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../plugin-transform-typescript/package.json | 4 +- .../package.json | 4 +- .../@babel/helper-module-imports/package.json | 4 +- .../node_modules/@babel/types/package.json | 4 +- node_modules/@babel/preset-env/package.json | 4 +- .../@babel/preset-modules/package.json | 4 +- node_modules/@babel/preset-react/package.json | 4 +- .../@babel/preset-typescript/package.json | 4 +- node_modules/@babel/runtime/package.json | 4 +- .../@babel/code-frame/package.json | 4 +- .../@babel/highlight/package.json | 4 +- .../node_modules/@babel/types/package.json | 4 +- node_modules/@babel/template/package.json | 4 +- .../@babel/code-frame/package.json | 4 +- .../@babel/highlight/package.json | 4 +- .../node_modules/@babel/types/package.json | 4 +- node_modules/@babel/traverse/package.json | 4 +- node_modules/@babel/types/package.json | 4 +- .../@csstools/convert-colors/package.json | 4 +- node_modules/@emotion/cache/package.json | 4 +- node_modules/@emotion/hash/package.json | 4 +- .../@emotion/is-prop-valid/CHANGELOG.md | 56 - node_modules/@emotion/is-prop-valid/LICENSE | 21 - node_modules/@emotion/is-prop-valid/README.md | 15 - .../dist/is-prop-valid.browser.cjs.js | 21 - .../dist/is-prop-valid.browser.esm.js | 15 - .../dist/is-prop-valid.cjs.dev.js | 21 - .../is-prop-valid/dist/is-prop-valid.cjs.js | 7 - .../dist/is-prop-valid.cjs.js.flow | 3 - .../dist/is-prop-valid.cjs.prod.js | 15 - .../is-prop-valid/dist/is-prop-valid.esm.js | 15 - .../@emotion/is-prop-valid/package.json | 60 - .../@emotion/is-prop-valid/src/index.js | 15 - .../@emotion/is-prop-valid/src/props.js | 480 - .../@emotion/is-prop-valid/types/index.d.ts | 5 - .../@emotion/is-prop-valid/types/tests.ts | 12 - .../is-prop-valid/types/tsconfig.json | 26 - .../@emotion/is-prop-valid/types/tslint.json | 25 - node_modules/@emotion/memoize/package.json | 4 +- .../node_modules/@emotion/hash/package.json | 4 +- node_modules/@emotion/serialize/package.json | 4 +- node_modules/@emotion/sheet/package.json | 4 +- node_modules/@emotion/stylis/package.json | 4 +- node_modules/@emotion/unitless/package.json | 4 +- node_modules/@emotion/utils/package.json | 4 +- .../@emotion/weak-memoize/package.json | 4 +- node_modules/@jest/types/package.json | 4 +- .../hoist-non-react-statics/package.json | 4 +- node_modules/@material-ui/core/package.json | 4 +- node_modules/@material-ui/icons/package.json | 4 +- .../hoist-non-react-statics/package.json | 4 +- node_modules/@material-ui/styles/package.json | 4 +- node_modules/@material-ui/system/package.json | 4 +- node_modules/@material-ui/types/package.json | 4 +- node_modules/@material-ui/utils/package.json | 4 +- .../@mrmlnc/readdir-enhanced/package.json | 4 +- node_modules/@nodelib/fs.stat/package.json | 4 +- .../configuration-validation/package.json | 4 +- .../@okta/okta-react-native/package.json | 4 +- node_modules/@redux-saga/core/package.json | 4 +- .../@redux-saga/deferred/package.json | 4 +- node_modules/@redux-saga/delay-p/package.json | 4 +- node_modules/@redux-saga/is/package.json | 4 +- node_modules/@redux-saga/symbols/package.json | 4 +- node_modules/@redux-saga/types/package.json | 4 +- node_modules/@restart/context/package.json | 4 +- node_modules/@restart/hooks/package.json | 4 +- .../mutationobserver-shim/package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- node_modules/@svgr/babel-preset/package.json | 4 +- node_modules/@svgr/core/package.json | 4 +- .../@svgr/hast-util-to-babel-ast/package.json | 4 +- .../@babel/code-frame/package.json | 4 +- .../node_modules/@babel/core/package.json | 4 +- .../@babel/highlight/package.json | 4 +- .../node_modules/@babel/types/package.json | 4 +- node_modules/@svgr/plugin-jsx/package.json | 4 +- node_modules/@svgr/plugin-svgo/package.json | 4 +- node_modules/@svgr/webpack/package.json | 4 +- .../@testing-library/dom/package.json | 4 +- .../@testing-library/jest-dom/package.json | 4 +- .../@testing-library/react/package.json | 4 +- .../@testing-library/user-event/package.json | 4 +- .../keyto/node_modules/asn1.js/package.json | 4 +- node_modules/@trust/keyto/package.json | 4 +- node_modules/@trust/webcrypto/package.json | 4 +- node_modules/@types/cookie/package.json | 4 +- .../hoist-non-react-statics/package.json | 4 +- .../hoist-non-react-statics/package.json | 4 +- .../@types/istanbul-lib-coverage/package.json | 4 +- .../@types/istanbul-lib-report/package.json | 4 +- .../@types/istanbul-reports/package.json | 4 +- .../@types/object-assign/package.json | 4 +- node_modules/@types/parse-json/package.json | 4 +- node_modules/@types/prop-types/package.json | 4 +- node_modules/@types/q/package.json | 4 +- node_modules/@types/react-dom/package.json | 4 +- .../react-transition-group/package.json | 4 +- node_modules/@types/react/package.json | 4 +- node_modules/@types/tapable/package.json | 4 +- .../@types/testing-library__dom/package.json | 4 +- .../testing-library__react/package.json | 4 +- node_modules/@types/yargs-parser/package.json | 4 +- node_modules/@types/yargs/package.json | 4 +- node_modules/@webassemblyjs/ast/package.json | 4 +- .../floating-point-hex-parser/package.json | 4 +- .../helper-api-error/package.json | 4 +- .../@webassemblyjs/helper-buffer/package.json | 4 +- .../helper-code-frame/package.json | 4 +- .../@webassemblyjs/helper-fsm/package.json | 4 +- .../helper-module-context/package.json | 4 +- .../helper-wasm-bytecode/package.json | 4 +- .../helper-wasm-section/package.json | 4 +- .../@webassemblyjs/ieee754/package.json | 4 +- .../@webassemblyjs/leb128/package.json | 4 +- node_modules/@webassemblyjs/utf8/package.json | 4 +- .../@webassemblyjs/wasm-edit/package.json | 4 +- .../@webassemblyjs/wasm-gen/package.json | 4 +- .../@webassemblyjs/wasm-opt/package.json | 4 +- .../@webassemblyjs/wasm-parser/package.json | 4 +- .../@webassemblyjs/wast-parser/package.json | 4 +- .../@webassemblyjs/wast-printer/package.json | 4 +- node_modules/@xtuc/ieee754/package.json | 4 +- node_modules/@xtuc/long/package.json | 4 +- node_modules/abab/package.json | 4 +- node_modules/accepts/package.json | 4 +- .../node_modules/acorn/package.json | 4 +- .../acorn-dynamic-import/package.json | 4 +- node_modules/acorn-globals/package.json | 4 +- node_modules/acorn-jsx/package.json | 4 +- node_modules/acorn-walk/package.json | 4 +- node_modules/acorn/package.json | 4 +- node_modules/address/package.json | 4 +- node_modules/ajv-errors/package.json | 4 +- node_modules/ajv-keywords/package.json | 4 +- node_modules/ajv/package.json | 4 +- node_modules/alphanum-sort/package.json | 4 +- node_modules/ansi-colors/package.json | 4 +- node_modules/ansi-escapes/package.json | 4 +- node_modules/ansi-html/package.json | 4 +- node_modules/ansi-regex/package.json | 4 +- node_modules/ansi-styles/package.json | 4 +- .../node_modules/arr-diff/package.json | 4 +- .../node_modules/array-unique/package.json | 4 +- .../node_modules/extend-shallow/package.json | 4 +- .../anymatch/node_modules/braces/package.json | 4 +- .../anymatch/node_modules/debug/package.json | 4 +- .../node_modules/define-property/package.json | 4 +- .../node_modules/extend-shallow/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../is-accessor-descriptor/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../is-data-descriptor/package.json | 4 +- .../node_modules/is-descriptor/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../node_modules/expand-brackets/package.json | 4 +- .../node_modules/define-property/package.json | 4 +- .../node_modules/extend-shallow/package.json | 4 +- .../node_modules/extglob/package.json | 4 +- .../node_modules/extend-shallow/package.json | 4 +- .../node_modules/fill-range/package.json | 4 +- .../is-accessor-descriptor/package.json | 4 +- .../is-data-descriptor/package.json | 4 +- .../node_modules/is-descriptor/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../node_modules/is-number/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../node_modules/micromatch/package.json | 4 +- .../anymatch/node_modules/ms/package.json | 4 +- node_modules/anymatch/package.json | 4 +- node_modules/append-transform/package.json | 4 +- node_modules/aproba/package.json | 4 +- node_modules/argparse/package.json | 4 +- node_modules/aria-query/package.json | 4 +- node_modules/arr-diff/package.json | 4 +- node_modules/arr-flatten/package.json | 4 +- node_modules/arr-union/package.json | 4 +- node_modules/array-equal/package.json | 4 +- node_modules/array-filter/package.json | 4 +- node_modules/array-flatten/package.json | 4 +- .../node_modules/es-abstract/package.json | 4 +- .../node_modules/is-callable/package.json | 4 +- .../node_modules/is-regex/package.json | 4 +- .../string.prototype.trimleft/package.json | 4 +- .../string.prototype.trimright/package.json | 4 +- node_modules/array-includes/package.json | 4 +- node_modules/array-map/package.json | 4 +- node_modules/array-reduce/package.json | 4 +- node_modules/array-union/package.json | 4 +- node_modules/array-uniq/package.json | 4 +- node_modules/array-unique/package.json | 4 +- node_modules/arrify/package.json | 4 +- node_modules/asap/package.json | 4 +- node_modules/asn1.js/package.json | 4 +- node_modules/asn1/package.json | 4 +- node_modules/assert-plus/package.json | 4 +- .../assert/node_modules/inherits/package.json | 4 +- .../assert/node_modules/util/package.json | 4 +- node_modules/assert/package.json | 4 +- node_modules/assign-symbols/package.json | 4 +- node_modules/ast-types-flow/package.json | 4 +- node_modules/astral-regex/package.json | 4 +- node_modules/async-each/package.json | 4 +- node_modules/async-limiter/package.json | 4 +- node_modules/async/package.json | 4 +- node_modules/asynckit/package.json | 4 +- node_modules/atob/package.json | 4 +- node_modules/attr-accept/package.json | 4 +- .../postcss-value-parser/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- node_modules/autoprefixer/package.json | 4 +- .../autosuggest-highlight/package.json | 4 +- node_modules/aws-sign2/package.json | 4 +- node_modules/aws4/package.json | 4 +- .../axios/node_modules/debug/package.json | 4 +- .../follow-redirects/package.json | 4 +- .../axios/node_modules/ms/package.json | 4 +- node_modules/axios/package.json | 4 +- node_modules/axobject-query/package.json | 4 +- node_modules/b64-lite/package.json | 4 +- node_modules/b64u-lite/package.json | 4 +- .../node_modules/ansi-styles/package.json | 4 +- .../node_modules/chalk/package.json | 4 +- .../node_modules/js-tokens/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- node_modules/babel-code-frame/package.json | 4 +- node_modules/babel-core/package.json | 4 +- node_modules/babel-eslint/package.json | 4 +- .../babel-extract-comments/package.json | 4 +- .../node_modules/jsesc/package.json | 4 +- node_modules/babel-generator/package.json | 4 +- node_modules/babel-helpers/package.json | 4 +- node_modules/babel-jest/package.json | 4 +- node_modules/babel-loader/package.json | 4 +- node_modules/babel-messages/package.json | 4 +- .../package.json | 4 +- .../node_modules/@emotion/hash/package.json | 4 +- .../babel-plugin-emotion/package.json | 4 +- .../babel-plugin-istanbul/package.json | 4 +- .../babel-plugin-jest-hoist/package.json | 4 +- .../node_modules/cosmiconfig/package.json | 4 +- .../node_modules/import-fresh/package.json | 4 +- .../node_modules/parse-json/package.json | 4 +- .../node_modules/path-type/package.json | 4 +- .../node_modules/resolve-from/package.json | 4 +- node_modules/babel-plugin-macros/package.json | 4 +- .../package.json | 4 +- .../babel-plugin-styled-components/LICENSE.md | 21 - .../babel-plugin-styled-components/README.md | 37 - .../lib/css/placeholderUtils.js | 48 - .../lib/index.js | 56 - .../lib/minify/index.js | 121 - .../lib/utils/detectors.js | 164 - .../lib/utils/getName.js | 46 - .../lib/utils/hash.js | 59 - .../lib/utils/options.js | 72 - .../lib/utils/prefixDigit.js | 10 - .../lib/visitors/assignStyledRequired.js | 18 - .../lib/visitors/displayNameAndId.js | 146 - .../lib/visitors/minify.js | 58 - .../lib/visitors/pure.js | 28 - .../lib/visitors/templateLiterals/index.js | 22 - .../visitors/templateLiterals/transpile.js | 40 - .../lib/visitors/transpileCssProp.js | 190 - .../package.json | 113 - .../babel-plugin-syntax-jsx/package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- node_modules/babel-preset-jest/package.json | 4 +- .../package.json | 4 +- .../plugin-syntax-dynamic-import/package.json | 4 +- .../plugin-transform-classes/package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../@babel/preset-env/package.json | 4 +- .../@babel/preset-react/package.json | 4 +- .../node_modules/@babel/runtime/package.json | 4 +- .../package.json | 4 +- .../babel-plugin-macros/package.json | 4 +- .../regenerator-runtime/package.json | 4 +- .../babel-preset-react-app/package.json | 4 +- .../node_modules/babel-core/package.json | 4 +- .../node_modules/debug/package.json | 4 +- .../node_modules/json5/package.json | 4 +- .../node_modules/ms/package.json | 4 +- node_modules/babel-register/package.json | 4 +- .../regenerator-runtime/package.json | 4 +- node_modules/babel-runtime/package.json | 4 +- node_modules/babel-template/package.json | 4 +- .../node_modules/debug/package.json | 4 +- .../node_modules/globals/package.json | 4 +- .../node_modules/ms/package.json | 4 +- node_modules/babel-traverse/package.json | 4 +- .../to-fast-properties/package.json | 4 +- node_modules/babel-types/package.json | 4 +- node_modules/babylon/package.json | 4 +- node_modules/balanced-match/package.json | 4 +- node_modules/base-64/package.json | 4 +- .../node_modules/define-property/package.json | 4 +- .../is-accessor-descriptor/package.json | 4 +- .../is-data-descriptor/package.json | 4 +- .../node_modules/is-descriptor/package.json | 4 +- .../base/node_modules/kind-of/package.json | 4 +- node_modules/base/package.json | 4 +- node_modules/base64-js/package.json | 4 +- node_modules/base64url/package.json | 4 +- node_modules/batch/package.json | 4 +- node_modules/bcrypt-pbkdf/package.json | 4 +- node_modules/bfj/package.json | 4 +- node_modules/big.js/package.json | 4 +- node_modules/binary-extensions/package.json | 4 +- node_modules/bluebird/package.json | 4 +- node_modules/bn.js/package.json | 4 +- .../node_modules/bytes/package.json | 4 +- .../node_modules/debug/package.json | 4 +- .../body-parser/node_modules/ms/package.json | 4 +- .../body-parser/node_modules/qs/package.json | 4 +- node_modules/body-parser/package.json | 4 +- node_modules/bonjour/package.json | 4 +- node_modules/boolbase/package.json | 4 +- node_modules/bootstrap/LICENSE | 22 - node_modules/bootstrap/README.md | 209 - .../bootstrap/dist/css/bootstrap-grid.css | 3872 ------ .../bootstrap/dist/css/bootstrap-grid.css.map | 1 - .../bootstrap/dist/css/bootstrap-grid.min.css | 7 - .../dist/css/bootstrap-grid.min.css.map | 1 - .../bootstrap/dist/css/bootstrap-reboot.css | 326 - .../dist/css/bootstrap-reboot.css.map | 1 - .../dist/css/bootstrap-reboot.min.css | 8 - .../dist/css/bootstrap-reboot.min.css.map | 1 - node_modules/bootstrap/dist/css/bootstrap.css | 10263 ---------------- .../bootstrap/dist/css/bootstrap.css.map | 1 - .../bootstrap/dist/css/bootstrap.min.css | 7 - .../bootstrap/dist/css/bootstrap.min.css.map | 1 - .../bootstrap/dist/js/bootstrap.bundle.js | 7031 ----------- .../bootstrap/dist/js/bootstrap.bundle.js.map | 1 - .../bootstrap/dist/js/bootstrap.bundle.min.js | 7 - .../dist/js/bootstrap.bundle.min.js.map | 1 - node_modules/bootstrap/dist/js/bootstrap.js | 4418 ------- .../bootstrap/dist/js/bootstrap.js.map | 1 - .../bootstrap/dist/js/bootstrap.min.js | 7 - .../bootstrap/dist/js/bootstrap.min.js.map | 1 - node_modules/bootstrap/js/dist/alert.js | 179 - node_modules/bootstrap/js/dist/alert.js.map | 1 - node_modules/bootstrap/js/dist/button.js | 221 - node_modules/bootstrap/js/dist/button.js.map | 1 - node_modules/bootstrap/js/dist/carousel.js | 613 - .../bootstrap/js/dist/carousel.js.map | 1 - node_modules/bootstrap/js/dist/collapse.js | 374 - .../bootstrap/js/dist/collapse.js.map | 1 - node_modules/bootstrap/js/dist/dropdown.js | 540 - .../bootstrap/js/dist/dropdown.js.map | 1 - node_modules/bootstrap/js/dist/index.js | 22 - node_modules/bootstrap/js/dist/modal.js | 640 - node_modules/bootstrap/js/dist/modal.js.map | 1 - node_modules/bootstrap/js/dist/popover.js | 207 - node_modules/bootstrap/js/dist/popover.js.map | 1 - node_modules/bootstrap/js/dist/scrollspy.js | 317 - .../bootstrap/js/dist/scrollspy.js.map | 1 - node_modules/bootstrap/js/dist/tab.js | 249 - node_modules/bootstrap/js/dist/tab.js.map | 1 - node_modules/bootstrap/js/dist/toast.js | 243 - node_modules/bootstrap/js/dist/toast.js.map | 1 - node_modules/bootstrap/js/dist/tooltip.js | 860 -- node_modules/bootstrap/js/dist/tooltip.js.map | 1 - node_modules/bootstrap/js/dist/util.js | 193 - node_modules/bootstrap/js/dist/util.js.map | 1 - node_modules/bootstrap/js/src/alert.js | 173 - node_modules/bootstrap/js/src/button.js | 209 - node_modules/bootstrap/js/src/carousel.js | 601 - node_modules/bootstrap/js/src/collapse.js | 392 - node_modules/bootstrap/js/src/dropdown.js | 538 - node_modules/bootstrap/js/src/index.js | 34 - node_modules/bootstrap/js/src/modal.js | 629 - node_modules/bootstrap/js/src/popover.js | 182 - node_modules/bootstrap/js/src/scrollspy.js | 324 - node_modules/bootstrap/js/src/tab.js | 255 - node_modules/bootstrap/js/src/toast.js | 230 - .../bootstrap/js/src/tools/sanitizer.js | 127 - node_modules/bootstrap/js/src/tooltip.js | 775 -- node_modules/bootstrap/js/src/util.js | 198 - node_modules/bootstrap/package.json | 213 - node_modules/bootstrap/scss/_alert.scss | 52 - node_modules/bootstrap/scss/_badge.scss | 54 - node_modules/bootstrap/scss/_breadcrumb.scss | 44 - .../bootstrap/scss/_button-group.scss | 163 - node_modules/bootstrap/scss/_buttons.scss | 142 - node_modules/bootstrap/scss/_card.scss | 286 - node_modules/bootstrap/scss/_carousel.scss | 197 - node_modules/bootstrap/scss/_close.scss | 40 - node_modules/bootstrap/scss/_code.scss | 48 - .../bootstrap/scss/_custom-forms.scss | 524 - node_modules/bootstrap/scss/_dropdown.scss | 192 - node_modules/bootstrap/scss/_forms.scss | 347 - node_modules/bootstrap/scss/_functions.scss | 144 - node_modules/bootstrap/scss/_grid.scss | 73 - node_modules/bootstrap/scss/_images.scss | 42 - node_modules/bootstrap/scss/_input-group.scss | 192 - node_modules/bootstrap/scss/_jumbotron.scss | 17 - node_modules/bootstrap/scss/_list-group.scss | 154 - node_modules/bootstrap/scss/_media.scss | 8 - node_modules/bootstrap/scss/_mixins.scss | 47 - node_modules/bootstrap/scss/_modal.scss | 240 - node_modules/bootstrap/scss/_nav.scss | 123 - node_modules/bootstrap/scss/_navbar.scss | 324 - node_modules/bootstrap/scss/_pagination.scss | 74 - node_modules/bootstrap/scss/_popover.scss | 170 - node_modules/bootstrap/scss/_print.scss | 141 - node_modules/bootstrap/scss/_progress.scss | 47 - node_modules/bootstrap/scss/_reboot.scss | 484 - node_modules/bootstrap/scss/_root.scss | 20 - node_modules/bootstrap/scss/_spinners.scss | 56 - node_modules/bootstrap/scss/_tables.scss | 185 - node_modules/bootstrap/scss/_toasts.scss | 46 - node_modules/bootstrap/scss/_tooltip.scss | 115 - node_modules/bootstrap/scss/_transitions.scss | 20 - node_modules/bootstrap/scss/_type.scss | 125 - node_modules/bootstrap/scss/_utilities.scss | 18 - node_modules/bootstrap/scss/_variables.scss | 1142 -- .../bootstrap/scss/bootstrap-grid.scss | 29 - .../bootstrap/scss/bootstrap-reboot.scss | 12 - node_modules/bootstrap/scss/bootstrap.scss | 44 - .../bootstrap/scss/mixins/_alert.scss | 13 - .../scss/mixins/_background-variant.scss | 23 - .../bootstrap/scss/mixins/_badge.scss | 17 - .../bootstrap/scss/mixins/_border-radius.scss | 76 - .../bootstrap/scss/mixins/_box-shadow.scss | 20 - .../bootstrap/scss/mixins/_breakpoints.scss | 123 - .../bootstrap/scss/mixins/_buttons.scss | 110 - .../bootstrap/scss/mixins/_caret.scss | 62 - .../bootstrap/scss/mixins/_clearfix.scss | 7 - .../bootstrap/scss/mixins/_deprecate.scss | 10 - .../bootstrap/scss/mixins/_float.scss | 14 - .../bootstrap/scss/mixins/_forms.scss | 178 - .../bootstrap/scss/mixins/_gradients.scss | 45 - .../scss/mixins/_grid-framework.scss | 80 - node_modules/bootstrap/scss/mixins/_grid.scss | 69 - .../bootstrap/scss/mixins/_hover.scss | 37 - .../bootstrap/scss/mixins/_image.scss | 36 - .../bootstrap/scss/mixins/_list-group.scss | 21 - .../bootstrap/scss/mixins/_lists.scss | 7 - .../bootstrap/scss/mixins/_nav-divider.scss | 11 - .../bootstrap/scss/mixins/_pagination.scss | 22 - .../bootstrap/scss/mixins/_reset-text.scss | 17 - .../bootstrap/scss/mixins/_resize.scss | 6 - .../bootstrap/scss/mixins/_screen-reader.scss | 34 - node_modules/bootstrap/scss/mixins/_size.scss | 7 - .../bootstrap/scss/mixins/_table-row.scss | 39 - .../bootstrap/scss/mixins/_text-emphasis.scss | 17 - .../bootstrap/scss/mixins/_text-hide.scss | 11 - .../bootstrap/scss/mixins/_text-truncate.scss | 8 - .../bootstrap/scss/mixins/_transition.scss | 26 - .../bootstrap/scss/mixins/_visibility.scss | 8 - .../bootstrap/scss/utilities/_align.scss | 8 - .../bootstrap/scss/utilities/_background.scss | 19 - .../bootstrap/scss/utilities/_borders.scss | 75 - .../bootstrap/scss/utilities/_clearfix.scss | 3 - .../bootstrap/scss/utilities/_display.scss | 26 - .../bootstrap/scss/utilities/_embed.scss | 39 - .../bootstrap/scss/utilities/_flex.scss | 51 - .../bootstrap/scss/utilities/_float.scss | 11 - .../scss/utilities/_interactions.scss | 5 - .../bootstrap/scss/utilities/_overflow.scss | 5 - .../bootstrap/scss/utilities/_position.scss | 32 - .../scss/utilities/_screenreaders.scss | 11 - .../bootstrap/scss/utilities/_shadows.scss | 6 - .../bootstrap/scss/utilities/_sizing.scss | 20 - .../bootstrap/scss/utilities/_spacing.scss | 73 - .../scss/utilities/_stretched-link.scss | 19 - .../bootstrap/scss/utilities/_text.scss | 72 - .../bootstrap/scss/utilities/_visibility.scss | 13 - node_modules/bootstrap/scss/vendor/_rfs.scss | 204 - node_modules/brace-expansion/package.json | 4 +- node_modules/braces/package.json | 4 +- node_modules/brorand/package.json | 4 +- .../browser-process-hrtime/package.json | 4 +- .../node_modules/resolve/package.json | 4 +- node_modules/browser-resolve/package.json | 4 +- node_modules/browserify-aes/package.json | 4 +- node_modules/browserify-cipher/package.json | 4 +- node_modules/browserify-des/package.json | 4 +- node_modules/browserify-rsa/package.json | 4 +- .../node_modules/bn.js/package.json | 4 +- node_modules/browserify-sign/package.json | 4 +- node_modules/browserify-zlib/package.json | 4 +- node_modules/browserslist/package.json | 4 +- node_modules/bser/package.json | 4 +- node_modules/buffer-from/package.json | 4 +- node_modules/buffer-indexof/package.json | 4 +- node_modules/buffer-xor/package.json | 4 +- node_modules/buffer/package.json | 4 +- .../builtin-status-codes/package.json | 4 +- node_modules/bytes/package.json | 4 +- .../cacache/node_modules/y18n/package.json | 4 +- node_modules/cacache/package.json | 4 +- node_modules/cache-base/package.json | 4 +- node_modules/call-me-maybe/package.json | 4 +- node_modules/caller-callsite/package.json | 4 +- node_modules/caller-path/package.json | 4 +- node_modules/callsites/package.json | 4 +- node_modules/camel-case/package.json | 4 +- node_modules/camelcase/package.json | 4 +- node_modules/camelize/.travis.yml | 4 - node_modules/camelize/LICENSE | 18 - node_modules/camelize/example/camel.js | 10 - node_modules/camelize/index.js | 59 - node_modules/camelize/package.json | 80 - node_modules/camelize/readme.markdown | 62 - node_modules/camelize/test/camel.js | 46 - node_modules/caniuse-api/package.json | 4 +- node_modules/caniuse-lite/package.json | 4 +- node_modules/capture-exit/package.json | 4 +- .../package.json | 4 +- node_modules/caseless/package.json | 4 +- node_modules/chalk/package.json | 4 +- node_modules/change-emitter/package.json | 4 +- node_modules/chardet/package.json | 4 +- node_modules/check-types/package.json | 4 +- .../node_modules/array-unique/package.json | 4 +- .../chokidar/node_modules/braces/package.json | 4 +- .../node_modules/extend-shallow/package.json | 4 +- .../node_modules/fill-range/package.json | 4 +- .../node_modules/is-glob/package.json | 4 +- .../node_modules/glob-parent/package.json | 4 +- .../node_modules/is-number/package.json | 4 +- .../node_modules/normalize-path/package.json | 4 +- node_modules/chokidar/package.json | 4 +- node_modules/chownr/package.json | 4 +- node_modules/chrome-trace-event/package.json | 4 +- node_modules/ci-info/package.json | 4 +- node_modules/cipher-base/package.json | 4 +- node_modules/circular-json/package.json | 4 +- .../node_modules/define-property/package.json | 4 +- node_modules/class-utils/package.json | 4 +- node_modules/classnames/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- node_modules/clean-css/package.json | 4 +- .../clean/node_modules/async/package.json | 4 +- node_modules/clean/package.json | 24 +- node_modules/cli-cursor/package.json | 4 +- node_modules/cli-width/package.json | 4 +- .../node_modules/ansi-regex/package.json | 4 +- .../node_modules/strip-ansi/package.json | 4 +- node_modules/cliui/package.json | 4 +- node_modules/clone-deep/package.json | 4 +- node_modules/clsx/package.json | 4 +- node_modules/co/package.json | 4 +- node_modules/coa/package.json | 4 +- node_modules/code-point-at/package.json | 4 +- node_modules/collection-visit/package.json | 4 +- node_modules/color-convert/package.json | 4 +- node_modules/color-name/package.json | 4 +- node_modules/color-string/package.json | 4 +- node_modules/color/package.json | 4 +- node_modules/combined-stream/package.json | 4 +- node_modules/commander/package.json | 4 +- node_modules/common-tags/package.json | 4 +- node_modules/commondir/package.json | 4 +- node_modules/component-emitter/package.json | 4 +- node_modules/compressible/package.json | 4 +- .../node_modules/debug/package.json | 4 +- .../compression/node_modules/ms/package.json | 4 +- node_modules/compression/package.json | 4 +- .../compute-scroll-into-view/package.json | 4 +- node_modules/concat-map/package.json | 4 +- .../node_modules/readable-stream/package.json | 4 +- .../node_modules/string_decoder/package.json | 4 +- node_modules/concat-stream/package.json | 4 +- .../confusing-browser-globals/package.json | 4 +- .../connect-history-api-fallback/package.json | 4 +- .../connected-react-router/package.json | 4 +- node_modules/console-browserify/package.json | 4 +- .../constants-browserify/package.json | 4 +- node_modules/contains-path/package.json | 4 +- node_modules/content-disposition/package.json | 4 +- node_modules/content-type/package.json | 4 +- node_modules/convert-css-length/package.json | 4 +- node_modules/convert-source-map/package.json | 4 +- node_modules/cookie-signature/package.json | 4 +- node_modules/cookie/package.json | 4 +- node_modules/copy-concurrently/package.json | 4 +- node_modules/copy-descriptor/package.json | 4 +- .../node_modules/semver/package.json | 4 +- node_modules/core-js-compat/package.json | 4 +- node_modules/core-js/package.json | 4 +- node_modules/core-util-is/package.json | 4 +- node_modules/cosmiconfig/package.json | 4 +- node_modules/create-ecdh/package.json | 4 +- node_modules/create-emotion/package.json | 4 +- node_modules/create-hash/package.json | 4 +- node_modules/create-hmac/package.json | 4 +- .../create-react-context/package.json | 4 +- node_modules/cross-spawn/package.json | 4 +- node_modules/crypto-browserify/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- node_modules/css-blank-pseudo/package.json | 4 +- node_modules/css-color-keywords/LICENSE | 15 - node_modules/css-color-keywords/README.md | 47 - node_modules/css-color-keywords/colors.json | 148 - node_modules/css-color-keywords/index.js | 3 - node_modules/css-color-keywords/package.json | 62 - node_modules/css-color-names/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../css-declaration-sorter/package.json | 4 +- .../node_modules/cssesc/package.json | 4 +- .../postcss-selector-parser/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- node_modules/css-has-pseudo/package.json | 4 +- node_modules/css-loader/package.json | 4 +- node_modules/css-mediaquery/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../css-prefers-color-scheme/package.json | 4 +- .../css-select-base-adapter/package.json | 4 +- node_modules/css-select/package.json | 4 +- .../css-selector-tokenizer/package.json | 4 +- node_modules/css-to-react-native/LICENSE.md | 21 - node_modules/css-to-react-native/README.md | 113 - node_modules/css-to-react-native/index.js | 861 -- node_modules/css-to-react-native/package.json | 90 - .../css-to-react-native/src/TokenStream.js | 74 - .../src/__tests__/border.js | 73 - .../src/__tests__/borderColor.js | 37 - .../src/__tests__/boxModel.js | 136 - .../src/__tests__/boxShadow.js | 83 - .../src/__tests__/colors.js | 31 - .../css-to-react-native/src/__tests__/flex.js | 106 - .../src/__tests__/flexFlow.js | 22 - .../css-to-react-native/src/__tests__/font.js | 122 - .../src/__tests__/fontFamily.js | 43 - .../src/__tests__/fontVariant.js | 7 - .../src/__tests__/fontWeight.js | 8 - .../src/__tests__/index.js | 156 - .../src/__tests__/shadowOffsets.js | 13 - .../src/__tests__/textDecoration.js | 103 - .../src/__tests__/textDecorationLine.js | 23 - .../src/__tests__/textShadow.js | 30 - .../src/__tests__/transform.js | 55 - .../src/__tests__/units.js | 132 - node_modules/css-to-react-native/src/index.js | 77 - .../css-to-react-native/src/tokenTypes.js | 73 - .../src/transforms/border.js | 48 - .../src/transforms/boxShadow.js | 11 - .../src/transforms/flex.js | 56 - .../src/transforms/flexFlow.js | 39 - .../src/transforms/font.js | 62 - .../src/transforms/fontFamily.js | 22 - .../src/transforms/index.js | 77 - .../src/transforms/textDecoration.js | 55 - .../src/transforms/textDecorationLine.js | 20 - .../src/transforms/textShadow.js | 10 - .../src/transforms/transform.js | 76 - .../src/transforms/util.js | 94 - .../node_modules/source-map/package.json | 4 +- node_modules/css-tree/package.json | 4 +- node_modules/css-vendor/package.json | 4 +- node_modules/css-what/package.json | 4 +- node_modules/css.escape/package.json | 4 +- .../css/node_modules/source-map/package.json | 4 +- node_modules/css/package.json | 4 +- node_modules/cssdb/package.json | 4 +- node_modules/cssesc/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../cssnano-preset-default/package.json | 4 +- .../cssnano-util-get-arguments/package.json | 4 +- .../cssnano-util-get-match/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../cssnano-util-raw-cache/package.json | 4 +- .../cssnano-util-same-parent/package.json | 4 +- .../cssnano/node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- node_modules/cssnano/package.json | 4 +- .../csso/node_modules/css-tree/package.json | 4 +- .../csso/node_modules/mdn-data/package.json | 4 +- .../csso/node_modules/source-map/package.json | 4 +- node_modules/csso/package.json | 4 +- node_modules/cssom/package.json | 4 +- node_modules/cssstyle/package.json | 4 +- node_modules/csstype/package.json | 4 +- node_modules/cyclist/package.json | 4 +- node_modules/damerau-levenshtein/package.json | 4 +- node_modules/dashdash/package.json | 4 +- .../node_modules/whatwg-url/package.json | 4 +- node_modules/data-urls/package.json | 4 +- node_modules/date-fns/package.json | 4 +- node_modules/debug/package.json | 4 +- node_modules/decamelize/package.json | 4 +- .../decode-uri-component/package.json | 4 +- node_modules/deep-equal/package.json | 4 +- node_modules/deep-is/package.json | 4 +- .../node_modules/execa/package.json | 4 +- .../node_modules/get-stream/package.json | 4 +- node_modules/default-gateway/package.json | 4 +- .../default-require-extensions/package.json | 4 +- node_modules/define-properties/package.json | 4 +- .../is-accessor-descriptor/package.json | 4 +- .../is-data-descriptor/package.json | 4 +- .../node_modules/is-descriptor/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- node_modules/define-property/package.json | 4 +- .../globby/node_modules/pify/package.json | 4 +- .../del/node_modules/globby/package.json | 4 +- .../del/node_modules/pify/package.json | 4 +- node_modules/del/package.json | 4 +- node_modules/delayed-stream/package.json | 4 +- node_modules/depd/package.json | 4 +- node_modules/des.js/package.json | 4 +- node_modules/destroy/package.json | 4 +- node_modules/detect-indent/package.json | 4 +- node_modules/detect-newline/package.json | 4 +- node_modules/detect-node/package.json | 4 +- .../node_modules/debug/package.json | 4 +- .../node_modules/ms/package.json | 4 +- node_modules/detect-port-alt/package.json | 4 +- node_modules/diacritic/package.json | 4 +- node_modules/diff-sequences/package.json | 4 +- node_modules/diff/package.json | 4 +- node_modules/diffie-hellman/package.json | 4 +- .../node_modules/path-type/package.json | 4 +- .../dir-glob/node_modules/pify/package.json | 4 +- node_modules/dir-glob/package.json | 4 +- node_modules/dns-equal/package.json | 4 +- node_modules/dns-packet/package.json | 4 +- node_modules/dns-txt/package.json | 4 +- node_modules/doctrine/package.json | 4 +- node_modules/dom-converter/package.json | 4 +- node_modules/dom-helpers/package.json | 4 +- .../node_modules/domelementtype/package.json | 4 +- node_modules/dom-serializer/package.json | 4 +- node_modules/domain-browser/package.json | 4 +- node_modules/domelementtype/package.json | 4 +- node_modules/domexception/package.json | 4 +- node_modules/domhandler/package.json | 4 +- node_modules/domutils/package.json | 4 +- node_modules/dot-prop/package.json | 4 +- node_modules/dotenv-expand/package.json | 4 +- node_modules/dotenv/package.json | 4 +- node_modules/downshift/package.json | 4 +- node_modules/duplexer/package.json | 4 +- .../node_modules/readable-stream/package.json | 4 +- .../node_modules/string_decoder/package.json | 4 +- node_modules/duplexify/package.json | 4 +- node_modules/ecc-jsbn/package.json | 4 +- node_modules/ee-first/package.json | 4 +- .../electron-to-chromium/package.json | 4 +- node_modules/elliptic/package.json | 4 +- node_modules/emoji-regex/package.json | 4 +- node_modules/emojis-list/package.json | 4 +- node_modules/emotion/package.json | 4 +- node_modules/encodeurl/package.json | 4 +- node_modules/encoding/package.json | 4 +- node_modules/end-of-stream/package.json | 4 +- .../node_modules/memory-fs/package.json | 4 +- .../node_modules/readable-stream/package.json | 4 +- .../node_modules/string_decoder/package.json | 4 +- node_modules/enhanced-resolve/package.json | 4 +- node_modules/entities/package.json | 4 +- node_modules/errno/package.json | 4 +- node_modules/error-ex/package.json | 4 +- node_modules/es-abstract/package.json | 4 +- node_modules/es-to-primitive/package.json | 4 +- node_modules/escape-html/package.json | 4 +- .../escape-string-regexp/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- node_modules/escodegen/package.json | 4 +- .../eslint-config-react-app/package.json | 4 +- .../node_modules/debug/package.json | 4 +- .../node_modules/ms/package.json | 4 +- .../node_modules/resolve/package.json | 4 +- .../eslint-import-resolver-node/package.json | 4 +- node_modules/eslint-loader/package.json | 4 +- .../node_modules/debug/package.json | 4 +- .../node_modules/ms/package.json | 4 +- .../node_modules/pkg-dir/package.json | 4 +- node_modules/eslint-module-utils/package.json | 4 +- .../eslint-plugin-flowtype/package.json | 4 +- .../node_modules/debug/package.json | 4 +- .../node_modules/doctrine/package.json | 4 +- .../node_modules/load-json-file/package.json | 4 +- .../node_modules/ms/package.json | 4 +- .../node_modules/parse-json/package.json | 4 +- .../node_modules/path-type/package.json | 4 +- .../node_modules/read-pkg-up/package.json | 4 +- .../node_modules/read-pkg/package.json | 4 +- .../node_modules/strip-bom/package.json | 4 +- .../eslint-plugin-import/package.json | 4 +- .../node_modules/emoji-regex/package.json | 4 +- .../eslint-plugin-jsx-a11y/package.json | 4 +- node_modules/eslint-plugin-react/package.json | 4 +- node_modules/eslint-scope/package.json | 4 +- node_modules/eslint-utils/package.json | 4 +- node_modules/eslint-visitor-keys/package.json | 4 +- .../node_modules/ansi-regex/package.json | 4 +- .../node_modules/eslint-scope/package.json | 4 +- .../node_modules/import-fresh/package.json | 4 +- .../node_modules/resolve-from/package.json | 4 +- .../node_modules/strip-ansi/package.json | 4 +- node_modules/eslint/package.json | 4 +- node_modules/espree/package.json | 4 +- node_modules/esprima/package.json | 4 +- .../node_modules/estraverse/package.json | 4 +- node_modules/esquery/package.json | 4 +- node_modules/esrecurse/package.json | 4 +- node_modules/estraverse/package.json | 4 +- node_modules/esutils/package.json | 4 +- node_modules/etag/package.json | 4 +- node_modules/eventemitter3/package.json | 4 +- node_modules/events/package.json | 4 +- node_modules/eventsource/package.json | 4 +- node_modules/evp_bytestokey/package.json | 4 +- node_modules/exec-sh/package.json | 4 +- node_modules/execa/package.json | 4 +- node_modules/exit/package.json | 4 +- node_modules/expand-brackets/package.json | 4 +- node_modules/expand-range/package.json | 4 +- .../node_modules/ansi-regex/package.json | 4 +- .../node_modules/jest-diff/package.json | 4 +- .../node_modules/jest-get-type/package.json | 4 +- .../jest-matcher-utils/package.json | 4 +- .../node_modules/pretty-format/package.json | 4 +- node_modules/expect/package.json | 4 +- .../node_modules/array-flatten/package.json | 4 +- .../express/node_modules/debug/package.json | 4 +- .../express/node_modules/ms/package.json | 4 +- .../express/node_modules/qs/package.json | 4 +- node_modules/express/package.json | 4 +- .../node_modules/is-extendable/package.json | 4 +- node_modules/extend-shallow/package.json | 4 +- node_modules/extend/package.json | 4 +- node_modules/external-editor/package.json | 4 +- .../node_modules/is-extglob/package.json | 4 +- node_modules/extglob/package.json | 4 +- node_modules/extsprintf/package.json | 4 +- node_modules/fast-deep-equal/package.json | 4 +- .../node_modules/arr-diff/package.json | 4 +- .../node_modules/array-unique/package.json | 4 +- .../node_modules/extend-shallow/package.json | 4 +- .../node_modules/braces/package.json | 4 +- .../fast-glob/node_modules/debug/package.json | 4 +- .../node_modules/define-property/package.json | 4 +- .../node_modules/extend-shallow/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../is-accessor-descriptor/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../is-data-descriptor/package.json | 4 +- .../node_modules/is-descriptor/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../node_modules/expand-brackets/package.json | 4 +- .../node_modules/define-property/package.json | 4 +- .../node_modules/extend-shallow/package.json | 4 +- .../node_modules/extglob/package.json | 4 +- .../node_modules/extend-shallow/package.json | 4 +- .../node_modules/fill-range/package.json | 4 +- .../node_modules/is-glob/package.json | 4 +- .../node_modules/glob-parent/package.json | 4 +- .../is-accessor-descriptor/package.json | 4 +- .../is-data-descriptor/package.json | 4 +- .../node_modules/is-descriptor/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../node_modules/is-number/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../node_modules/micromatch/package.json | 4 +- .../fast-glob/node_modules/ms/package.json | 4 +- node_modules/fast-glob/package.json | 4 +- .../fast-json-stable-stringify/package.json | 4 +- node_modules/fast-levenshtein/package.json | 4 +- node_modules/fastparse/package.json | 4 +- node_modules/faye-websocket/package.json | 4 +- node_modules/fb-watchman/package.json | 4 +- .../fbjs/node_modules/core-js/package.json | 4 +- .../fbjs/node_modules/promise/package.json | 4 +- node_modules/fbjs/package.json | 4 +- node_modules/figgy-pudding/package.json | 4 +- node_modules/figures/package.json | 4 +- node_modules/file-entry-cache/package.json | 4 +- node_modules/file-loader/package.json | 4 +- node_modules/file-selector/package.json | 4 +- node_modules/filename-regex/package.json | 4 +- node_modules/fileset/package.json | 4 +- node_modules/filesize/package.json | 4 +- .../node_modules/isobject/package.json | 4 +- node_modules/fill-range/package.json | 4 +- node_modules/final-form-arrays/package.json | 4 +- node_modules/final-form/package.json | 4 +- .../node_modules/debug/package.json | 4 +- .../finalhandler/node_modules/ms/package.json | 4 +- node_modules/finalhandler/package.json | 4 +- node_modules/find-cache-dir/package.json | 4 +- node_modules/find-root/package.json | 4 +- node_modules/find-up/package.json | 4 +- node_modules/flat-cache/package.json | 4 +- node_modules/flatten/package.json | 4 +- .../node_modules/readable-stream/package.json | 4 +- .../node_modules/string_decoder/package.json | 4 +- node_modules/flush-write-stream/package.json | 4 +- .../node_modules/debug/package.json | 4 +- node_modules/follow-redirects/package.json | 4 +- node_modules/for-each/package.json | 4 +- node_modules/for-in/package.json | 4 +- node_modules/for-own/package.json | 4 +- node_modules/forever-agent/package.json | 4 +- .../node_modules/arr-diff/package.json | 4 +- .../node_modules/array-unique/package.json | 4 +- .../node_modules/extend-shallow/package.json | 4 +- .../node_modules/braces/package.json | 4 +- .../node_modules/debug/package.json | 4 +- .../node_modules/define-property/package.json | 4 +- .../node_modules/extend-shallow/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../is-accessor-descriptor/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../is-data-descriptor/package.json | 4 +- .../node_modules/is-descriptor/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../node_modules/expand-brackets/package.json | 4 +- .../node_modules/define-property/package.json | 4 +- .../node_modules/extend-shallow/package.json | 4 +- .../node_modules/extglob/package.json | 4 +- .../node_modules/extend-shallow/package.json | 4 +- .../node_modules/fill-range/package.json | 4 +- .../is-accessor-descriptor/package.json | 4 +- .../is-data-descriptor/package.json | 4 +- .../node_modules/is-descriptor/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../node_modules/is-number/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../node_modules/micromatch/package.json | 4 +- .../node_modules/ms/package.json | 4 +- .../package.json | 4 +- node_modules/form-data/package.json | 4 +- node_modules/forwarded/package.json | 4 +- node_modules/fragment-cache/package.json | 4 +- node_modules/fresh/package.json | 4 +- .../node_modules/readable-stream/package.json | 4 +- .../node_modules/string_decoder/package.json | 4 +- node_modules/from2/package.json | 4 +- node_modules/fs-extra/package.json | 4 +- .../node_modules/readable-stream/package.json | 4 +- .../node_modules/string_decoder/package.json | 4 +- .../fs-write-stream-atomic/package.json | 4 +- node_modules/fs.realpath/package.json | 4 +- node_modules/function-bind/package.json | 4 +- .../functional-red-black-tree/package.json | 4 +- node_modules/gensync/package.json | 4 +- node_modules/get-caller-file/package.json | 4 +- .../package.json | 4 +- node_modules/get-stream/package.json | 4 +- node_modules/get-value/package.json | 4 +- node_modules/getpass/package.json | 4 +- .../node_modules/is-extglob/package.json | 4 +- .../node_modules/is-glob/package.json | 4 +- node_modules/glob-base/package.json | 4 +- .../node_modules/is-extglob/package.json | 4 +- .../node_modules/is-glob/package.json | 4 +- node_modules/glob-parent/package.json | 4 +- node_modules/glob-to-regexp/package.json | 4 +- node_modules/glob/package.json | 4 +- node_modules/global-modules/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- node_modules/global-prefix/package.json | 4 +- node_modules/globals/package.json | 4 +- .../globby/node_modules/ignore/package.json | 4 +- .../globby/node_modules/pify/package.json | 4 +- node_modules/globby/package.json | 4 +- node_modules/graceful-fs/package.json | 4 +- node_modules/growly/package.json | 4 +- node_modules/gud/package.json | 4 +- .../gzip-size/node_modules/pify/package.json | 4 +- node_modules/gzip-size/package.json | 4 +- node_modules/handle-thing/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- node_modules/handlebars/package.json | 4 +- node_modules/har-schema/package.json | 4 +- node_modules/har-validator/package.json | 4 +- node_modules/harmony-reflect/package.json | 4 +- node_modules/has-ansi/package.json | 4 +- node_modules/has-flag/package.json | 4 +- node_modules/has-symbols/package.json | 4 +- node_modules/has-value/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../node_modules/is-number/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- node_modules/has-values/package.json | 4 +- node_modules/has/package.json | 4 +- .../node_modules/safe-buffer/package.json | 4 +- node_modules/hash-base/package.json | 4 +- node_modules/hash.js/package.json | 4 +- node_modules/he/package.json | 6 +- node_modules/hex-color-regex/package.json | 4 +- node_modules/history/package.json | 4 +- node_modules/hmac-drbg/package.json | 4 +- node_modules/hoek/package.json | 4 +- .../hoist-non-react-statics/package.json | 4 +- node_modules/home-or-tmp/package.json | 4 +- node_modules/hoopy/package.json | 4 +- node_modules/hosted-git-info/package.json | 4 +- .../node_modules/readable-stream/package.json | 4 +- .../node_modules/string_decoder/package.json | 4 +- node_modules/hpack.js/package.json | 4 +- node_modules/hsl-regex/package.json | 4 +- node_modules/hsla-regex/package.json | 4 +- node_modules/html-comment-regex/package.json | 4 +- .../html-encoding-sniffer/package.json | 4 +- node_modules/html-entities/package.json | 4 +- .../node_modules/commander/package.json | 4 +- node_modules/html-minifier/package.json | 4 +- .../node_modules/util.promisify/package.json | 4 +- node_modules/html-webpack-plugin/package.json | 4 +- .../node_modules/entities/package.json | 4 +- node_modules/htmlparser2/package.json | 4 +- node_modules/http-deceiver/package.json | 4 +- .../node_modules/inherits/package.json | 4 +- node_modules/http-errors/package.json | 4 +- node_modules/http-parser-js/package.json | 4 +- node_modules/http-proxy/package.json | 4 +- node_modules/http-signature/package.json | 4 +- node_modules/https-browserify/package.json | 4 +- .../hyphenate-style-name/package.json | 4 +- node_modules/iconv-lite/package.json | 4 +- .../icss-replace-symbols/package.json | 4 +- node_modules/icss-utils/package.json | 4 +- node_modules/identity-obj-proxy/package.json | 4 +- node_modules/ieee754/package.json | 4 +- node_modules/iferr/package.json | 4 +- node_modules/ignore/package.json | 4 +- node_modules/immer/package.json | 4 +- node_modules/immutable/package.json | 4 +- node_modules/import-cwd/package.json | 4 +- node_modules/import-fresh/package.json | 4 +- node_modules/import-from/package.json | 4 +- .../node_modules/pkg-dir/package.json | 4 +- node_modules/import-local/package.json | 4 +- node_modules/imurmurhash/package.json | 4 +- node_modules/indent-string/package.json | 4 +- node_modules/indexes-of/package.json | 4 +- node_modules/infer-owner/package.json | 4 +- node_modules/inflection/package.json | 4 +- node_modules/inflight/package.json | 4 +- node_modules/inherits/package.json | 4 +- node_modules/ini/package.json | 4 +- .../node_modules/ansi-regex/package.json | 4 +- .../node_modules/strip-ansi/package.json | 4 +- node_modules/inquirer/package.json | 4 +- node_modules/internal-ip/package.json | 4 +- node_modules/invariant/package.json | 4 +- node_modules/invert-kv/package.json | 4 +- node_modules/ip-regex/package.json | 4 +- node_modules/ip/package.json | 4 +- node_modules/ipaddr.js/package.json | 4 +- node_modules/is-absolute-url/package.json | 4 +- .../is-accessor-descriptor/package.json | 4 +- node_modules/is-arguments/package.json | 4 +- node_modules/is-arrayish/package.json | 4 +- node_modules/is-binary-path/package.json | 4 +- node_modules/is-buffer/package.json | 4 +- node_modules/is-callable/package.json | 4 +- node_modules/is-ci/package.json | 4 +- node_modules/is-color-stop/package.json | 4 +- node_modules/is-data-descriptor/package.json | 4 +- node_modules/is-date-object/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- node_modules/is-descriptor/package.json | 4 +- node_modules/is-directory/package.json | 4 +- node_modules/is-dotfile/package.json | 4 +- node_modules/is-equal-shallow/package.json | 4 +- node_modules/is-extendable/package.json | 4 +- node_modules/is-extglob/package.json | 4 +- node_modules/is-finite/package.json | 4 +- .../is-fullwidth-code-point/package.json | 4 +- node_modules/is-generator-fn/package.json | 4 +- node_modules/is-glob/package.json | 4 +- node_modules/is-in-browser/package.json | 4 +- node_modules/is-number/package.json | 4 +- node_modules/is-obj/package.json | 4 +- node_modules/is-path-cwd/package.json | 4 +- node_modules/is-path-in-cwd/package.json | 4 +- node_modules/is-path-inside/package.json | 4 +- node_modules/is-plain-object/package.json | 4 +- node_modules/is-posix-bracket/package.json | 4 +- node_modules/is-primitive/package.json | 4 +- node_modules/is-regex/package.json | 4 +- node_modules/is-regexp/package.json | 4 +- node_modules/is-resolvable/package.json | 4 +- node_modules/is-root/package.json | 4 +- node_modules/is-stream/package.json | 4 +- node_modules/is-string/package.json | 4 +- node_modules/is-svg/package.json | 4 +- node_modules/is-symbol/package.json | 4 +- node_modules/is-typedarray/package.json | 4 +- node_modules/is-utf8/package.json | 4 +- node_modules/is-what/.babelrc | 3 - node_modules/is-what/.eslintignore | 9 - node_modules/is-what/.eslintrc.js | 18 - node_modules/is-what/.github/FUNDING.yml | 12 - node_modules/is-what/.prettierrc | 9 - node_modules/is-what/LICENSE | 21 - node_modules/is-what/README.md | 190 - node_modules/is-what/build.js | 60 - node_modules/is-what/dist/index.cjs.js | 350 - node_modules/is-what/dist/index.esm.js | 315 - node_modules/is-what/package.json | 106 - node_modules/is-what/src/index.ts | 351 - node_modules/is-what/test/ava.ts | 345 - node_modules/is-what/test/index.test.js | 15 - node_modules/is-what/tsconfig.json | 12 - node_modules/is-what/types/index.d.ts | 239 - node_modules/is-windows/package.json | 4 +- node_modules/is-wsl/package.json | 4 +- node_modules/isarray/package.json | 4 +- node_modules/isemail/package.json | 4 +- node_modules/isexe/package.json | 4 +- node_modules/isobject/package.json | 4 +- node_modules/isomorphic-fetch/package.json | 4 +- .../isomorphic-webcrypto/package.json | 4 +- node_modules/isstream/package.json | 4 +- node_modules/istanbul-api/package.json | 4 +- .../istanbul-lib-coverage/package.json | 4 +- node_modules/istanbul-lib-hook/package.json | 4 +- .../istanbul-lib-instrument/package.json | 4 +- .../node_modules/has-flag/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- node_modules/istanbul-lib-report/package.json | 4 +- .../node_modules/debug/package.json | 4 +- .../istanbul-lib-source-maps/package.json | 4 +- node_modules/istanbul-reports/package.json | 4 +- node_modules/jest-changed-files/package.json | 4 +- .../node_modules/ansi-regex/package.json | 4 +- .../node_modules/babel-core/package.json | 4 +- .../node_modules/debug/package.json | 4 +- .../node_modules/jest-get-type/package.json | 4 +- .../node_modules/json5/package.json | 4 +- .../jest-config/node_modules/ms/package.json | 4 +- .../node_modules/pretty-format/package.json | 4 +- node_modules/jest-config/package.json | 4 +- node_modules/jest-diff/package.json | 4 +- node_modules/jest-docblock/package.json | 4 +- .../node_modules/ansi-regex/package.json | 4 +- .../node_modules/pretty-format/package.json | 4 +- node_modules/jest-each/package.json | 4 +- .../jest-environment-jsdom/package.json | 4 +- .../jest-environment-node/package.json | 4 +- node_modules/jest-get-type/package.json | 4 +- node_modules/jest-haste-map/package.json | 4 +- .../node_modules/ansi-regex/package.json | 4 +- .../node_modules/jest-diff/package.json | 4 +- .../node_modules/jest-get-type/package.json | 4 +- .../jest-matcher-utils/package.json | 4 +- .../node_modules/pretty-format/package.json | 4 +- node_modules/jest-jasmine2/package.json | 4 +- .../node_modules/ansi-regex/package.json | 4 +- .../node_modules/pretty-format/package.json | 4 +- node_modules/jest-leak-detector/package.json | 4 +- node_modules/jest-matcher-utils/package.json | 4 +- node_modules/jest-message-util/package.json | 4 +- node_modules/jest-mock/package.json | 4 +- node_modules/jest-pnp-resolver/package.json | 4 +- node_modules/jest-regex-util/package.json | 4 +- .../jest-resolve-dependencies/package.json | 4 +- node_modules/jest-resolve/package.json | 4 +- .../source-map-support/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- node_modules/jest-runner/package.json | 4 +- .../node_modules/babel-core/package.json | 4 +- .../node_modules/debug/package.json | 4 +- .../node_modules/json5/package.json | 4 +- .../jest-runtime/node_modules/ms/package.json | 4 +- .../node_modules/strip-bom/package.json | 4 +- node_modules/jest-runtime/package.json | 4 +- node_modules/jest-serializer/package.json | 4 +- .../node_modules/ansi-regex/package.json | 4 +- .../node_modules/jest-diff/package.json | 4 +- .../node_modules/jest-get-type/package.json | 4 +- .../jest-matcher-utils/package.json | 4 +- .../node_modules/pretty-format/package.json | 4 +- node_modules/jest-snapshot/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- node_modules/jest-util/package.json | 4 +- .../node_modules/ansi-regex/package.json | 4 +- .../node_modules/jest-get-type/package.json | 4 +- .../node_modules/leven/package.json | 4 +- .../node_modules/pretty-format/package.json | 4 +- node_modules/jest-validate/package.json | 4 +- .../node_modules/ansi-regex/package.json | 4 +- .../node_modules/slash/package.json | 4 +- .../node_modules/strip-ansi/package.json | 4 +- .../jest-watch-typeahead/package.json | 4 +- node_modules/jest-watcher/package.json | 4 +- node_modules/jest-worker/package.json | 4 +- .../jest/node_modules/ansi-regex/package.json | 4 +- .../jest/node_modules/jest-cli/package.json | 4 +- .../node_modules/jest-get-type/package.json | 4 +- .../jest/node_modules/strip-ansi/package.json | 4 +- node_modules/jest/package.json | 4 +- node_modules/joi/package.json | 4 +- node_modules/jose-algorithms/package.json | 4 +- node_modules/js-levenshtein/package.json | 4 +- node_modules/js-tokens/package.json | 4 +- node_modules/js-yaml/package.json | 4 +- node_modules/jsbn/package.json | 4 +- .../jsdom/node_modules/acorn/package.json | 4 +- node_modules/jsdom/package.json | 4 +- node_modules/jsesc/package.json | 4 +- .../json-parse-better-errors/package.json | 4 +- .../json-schema-traverse/package.json | 4 +- node_modules/json-schema/package.json | 4 +- .../package.json | 4 +- .../json-stable-stringify/package.json | 4 +- node_modules/json-stringify-safe/package.json | 4 +- node_modules/json3/package.json | 4 +- node_modules/json5/package.json | 4 +- node_modules/jsonexport/package.json | 4 +- node_modules/jsonfile/package.json | 4 +- node_modules/jsonify/package.json | 4 +- node_modules/jsprim/package.json | 4 +- .../jss-plugin-camel-case/package.json | 4 +- .../jss-plugin-default-unit/package.json | 4 +- node_modules/jss-plugin-global/package.json | 4 +- node_modules/jss-plugin-nested/package.json | 4 +- .../jss-plugin-props-sort/package.json | 4 +- .../package.json | 4 +- .../jss-plugin-vendor-prefixer/package.json | 4 +- node_modules/jss/package.json | 4 +- node_modules/jsx-ast-utils/package.json | 4 +- node_modules/jwk-lite/package.json | 4 +- node_modules/jws-lite/package.json | 4 +- node_modules/jwt-lite/package.json | 4 +- node_modules/keycode/package.json | 4 +- node_modules/killable/package.json | 4 +- node_modules/kind-of/package.json | 4 +- node_modules/kleur/package.json | 4 +- .../last-call-webpack-plugin/package.json | 4 +- node_modules/lazy-cache/package.json | 4 +- node_modules/lcid/package.json | 4 +- node_modules/left-pad/package.json | 4 +- node_modules/leven/package.json | 4 +- node_modules/levenary/package.json | 4 +- node_modules/levn/package.json | 4 +- node_modules/lines-and-columns/package.json | 4 +- .../node_modules/parse-json/package.json | 4 +- node_modules/load-json-file/package.json | 4 +- .../node_modules/find-cache-dir/package.json | 4 +- .../node_modules/find-up/package.json | 4 +- .../node_modules/path-exists/package.json | 4 +- .../node_modules/pkg-dir/package.json | 4 +- node_modules/loader-fs-cache/package.json | 4 +- node_modules/loader-runner/package.json | 4 +- .../node_modules/json5/package.json | 4 +- node_modules/loader-utils/package.json | 4 +- node_modules/locate-path/package.json | 4 +- .../lodash._reinterpolate/package.json | 4 +- node_modules/lodash.camelcase/package.json | 4 +- node_modules/lodash.memoize/package.json | 4 +- node_modules/lodash.sortby/package.json | 4 +- node_modules/lodash.tail/package.json | 4 +- node_modules/lodash.template/package.json | 4 +- .../lodash.templatesettings/package.json | 4 +- node_modules/lodash.uniq/package.json | 4 +- node_modules/lodash/package.json | 4 +- node_modules/loglevel/package.json | 4 +- node_modules/loose-envify/package.json | 4 +- node_modules/lower-case/package.json | 4 +- node_modules/lru-cache/package.json | 4 +- node_modules/make-array/package.json | 4 +- .../make-dir/node_modules/pify/package.json | 4 +- node_modules/make-dir/package.json | 4 +- node_modules/makeerror/package.json | 4 +- node_modules/map-age-cleaner/package.json | 4 +- node_modules/map-cache/package.json | 4 +- node_modules/map-visit/package.json | 4 +- node_modules/math-random/package.json | 4 +- node_modules/md5.js/package.json | 4 +- node_modules/mdn-data/package.json | 4 +- node_modules/media-typer/package.json | 4 +- .../mem/node_modules/mimic-fn/package.json | 4 +- node_modules/mem/package.json | 4 +- node_modules/memoize-one/LICENSE | 21 - node_modules/memoize-one/README.md | 215 - .../memoize-one/dist/are-inputs-equal.d.ts | 1 - .../memoize-one/dist/memoize-one.cjs.js | 38 - .../memoize-one/dist/memoize-one.cjs.js.flow | 7 - .../memoize-one/dist/memoize-one.d.ts | 2 - .../memoize-one/dist/memoize-one.esm.js | 36 - node_modules/memoize-one/dist/memoize-one.js | 44 - .../memoize-one/dist/memoize-one.min.js | 1 - node_modules/memoize-one/package.json | 101 - .../memoize-one/src/are-inputs-equal.ts | 19 - .../memoize-one/src/memoize-one.js.flow | 7 - node_modules/memoize-one/src/memoize-one.ts | 33 - .../node_modules/readable-stream/package.json | 4 +- .../node_modules/string_decoder/package.json | 4 +- node_modules/memory-fs/package.json | 4 +- .../merge-anything/.github/FUNDING.yml | 12 - node_modules/merge-anything/LICENSE | 21 - node_modules/merge-anything/README.md | 235 - node_modules/merge-anything/build/rollup.js | 56 - node_modules/merge-anything/dist/index.cjs.js | 130 - node_modules/merge-anything/dist/index.esm.js | 125 - node_modules/merge-anything/package.json | 85 - node_modules/merge-anything/src/extensions.ts | 9 - node_modules/merge-anything/src/index.ts | 5 - node_modules/merge-anything/src/merge.ts | 98 - node_modules/merge-anything/test/index.js | 429 - node_modules/merge-anything/tsconfig.json | 9 - .../merge-anything/types/extensions.d.ts | 1 - node_modules/merge-anything/types/index.d.ts | 4 - node_modules/merge-anything/types/merge.d.ts | 15 - node_modules/merge-anything/wallaby.conf.js | 23 - node_modules/merge-deep/package.json | 4 +- node_modules/merge-descriptors/package.json | 4 +- .../node_modules/readable-stream/package.json | 4 +- .../node_modules/string_decoder/package.json | 4 +- node_modules/merge-stream/package.json | 4 +- node_modules/merge/package.json | 4 +- node_modules/merge2/package.json | 4 +- node_modules/methods/package.json | 4 +- .../node_modules/is-extglob/package.json | 4 +- .../node_modules/is-glob/package.json | 4 +- node_modules/micromatch/package.json | 4 +- node_modules/miller-rabin/package.json | 4 +- node_modules/mime-db/package.json | 4 +- node_modules/mime-types/package.json | 4 +- node_modules/mime/package.json | 4 +- node_modules/mimic-fn/package.json | 4 +- node_modules/min-indent/package.json | 4 +- .../mini-create-react-context/package.json | 4 +- .../mini-css-extract-plugin/package.json | 4 +- node_modules/minimalistic-assert/package.json | 4 +- .../minimalistic-crypto-utils/package.json | 4 +- node_modules/minimatch/package.json | 4 +- node_modules/minimist/package.json | 4 +- node_modules/mississippi/package.json | 4 +- node_modules/mitt/package.json | 4 +- node_modules/mix2/package.json | 4 +- .../node_modules/is-extendable/package.json | 4 +- node_modules/mixin-deep/package.json | 4 +- .../node_modules/for-in/package.json | 4 +- node_modules/mixin-object/package.json | 4 +- node_modules/mkdirp/package.json | 4 +- node_modules/move-concurrently/package.json | 4 +- node_modules/ms/package.json | 4 +- node_modules/msrcrypto/package.json | 4 +- .../multicast-dns-service-types/package.json | 4 +- node_modules/multicast-dns/package.json | 4 +- node_modules/mute-stream/package.json | 4 +- .../node_modules/arr-diff/package.json | 4 +- .../node_modules/array-unique/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- node_modules/nanomatch/package.json | 4 +- node_modules/natural-compare/package.json | 4 +- node_modules/negotiator/package.json | 4 +- node_modules/neo-async/package.json | 4 +- node_modules/nice-try/package.json | 4 +- node_modules/no-case/package.json | 4 +- node_modules/node-fetch/package.json | 4 +- node_modules/node-forge/package.json | 4 +- node_modules/node-int64/package.json | 4 +- .../node_modules/punycode/package.json | 4 +- .../node_modules/string_decoder/package.json | 4 +- .../node_modules/readable-stream/package.json | 4 +- node_modules/node-libs-browser/package.json | 4 +- node_modules/node-notifier/package.json | 4 +- node_modules/node-polyglot/package.json | 4 +- node_modules/node-releases/package.json | 4 +- .../node-rsa/node_modules/asn1/package.json | 4 +- node_modules/node-rsa/package.json | 4 +- .../normalize-package-data/package.json | 4 +- node_modules/normalize-path/package.json | 4 +- node_modules/normalize-range/package.json | 4 +- .../normalize-scroll-left/package.json | 4 +- node_modules/normalize-url/package.json | 4 +- node_modules/npm-run-path/package.json | 4 +- node_modules/nth-check/package.json | 4 +- node_modules/num2fraction/package.json | 4 +- node_modules/number-is-nan/package.json | 4 +- node_modules/nwsapi/package.json | 4 +- node_modules/oauth-sign/package.json | 4 +- node_modules/object-assign/package.json | 4 +- .../node_modules/define-property/package.json | 4 +- node_modules/object-copy/package.json | 4 +- node_modules/object-hash/package.json | 4 +- node_modules/object-inspect/package.json | 4 +- node_modules/object-is/package.json | 4 +- node_modules/object-keys/package.json | 4 +- node_modules/object-visit/package.json | 4 +- node_modules/object.assign/package.json | 4 +- .../node_modules/es-abstract/package.json | 4 +- .../node_modules/is-callable/package.json | 4 +- .../node_modules/is-regex/package.json | 4 +- .../string.prototype.trimleft/package.json | 4 +- .../string.prototype.trimright/package.json | 4 +- node_modules/object.fromentries/package.json | 4 +- .../node_modules/es-abstract/package.json | 4 +- .../node_modules/is-callable/package.json | 4 +- .../node_modules/is-regex/package.json | 4 +- .../string.prototype.trimleft/package.json | 4 +- .../string.prototype.trimright/package.json | 4 +- .../package.json | 4 +- node_modules/object.omit/package.json | 4 +- node_modules/object.pick/package.json | 4 +- .../node_modules/es-abstract/package.json | 4 +- .../node_modules/is-callable/package.json | 4 +- .../node_modules/is-regex/package.json | 4 +- .../string.prototype.trimleft/package.json | 4 +- .../string.prototype.trimright/package.json | 4 +- node_modules/object.values/package.json | 4 +- node_modules/obuf/package.json | 4 +- node_modules/on-finished/package.json | 4 +- node_modules/on-headers/package.json | 4 +- node_modules/once/package.json | 4 +- node_modules/onetime/package.json | 4 +- node_modules/opn/package.json | 4 +- .../package.json | 4 +- node_modules/optionator/package.json | 4 +- node_modules/original/package.json | 4 +- node_modules/os-browserify/package.json | 4 +- node_modules/os-homedir/package.json | 4 +- node_modules/os-locale/package.json | 4 +- node_modules/os-tmpdir/package.json | 4 +- node_modules/p-defer/package.json | 4 +- node_modules/p-finally/package.json | 4 +- node_modules/p-is-promise/package.json | 4 +- node_modules/p-limit/package.json | 4 +- node_modules/p-locate/package.json | 4 +- node_modules/p-map/package.json | 4 +- node_modules/p-try/package.json | 4 +- node_modules/pako/package.json | 4 +- .../node_modules/readable-stream/package.json | 4 +- .../node_modules/string_decoder/package.json | 4 +- node_modules/parallel-transform/package.json | 4 +- node_modules/param-case/package.json | 4 +- .../node_modules/callsites/package.json | 4 +- node_modules/parent-module/package.json | 4 +- node_modules/parse-asn1/package.json | 4 +- .../node_modules/is-extglob/package.json | 4 +- .../node_modules/is-glob/package.json | 4 +- node_modules/parse-glob/package.json | 4 +- node_modules/parse-json/package.json | 4 +- node_modules/parse5/package.json | 4 +- node_modules/parseurl/package.json | 4 +- node_modules/pascalcase/package.json | 4 +- node_modules/path-browserify/package.json | 4 +- node_modules/path-dirname/package.json | 4 +- node_modules/path-exists/package.json | 4 +- node_modules/path-is-absolute/package.json | 4 +- node_modules/path-is-inside/package.json | 4 +- node_modules/path-key/package.json | 4 +- node_modules/path-parse/package.json | 4 +- node_modules/path-to-regexp/package.json | 4 +- node_modules/path-type/package.json | 4 +- node_modules/pbkdf2/package.json | 4 +- node_modules/performance-now/package.json | 4 +- node_modules/pify/package.json | 4 +- node_modules/pinkie-promise/package.json | 4 +- node_modules/pinkie/package.json | 4 +- .../pkg-dir/node_modules/find-up/package.json | 4 +- .../node_modules/locate-path/package.json | 4 +- .../pkg-dir/node_modules/p-limit/package.json | 4 +- .../node_modules/p-locate/package.json | 4 +- .../pkg-dir/node_modules/p-try/package.json | 4 +- node_modules/pkg-dir/package.json | 4 +- node_modules/pkg-up/package.json | 4 +- node_modules/pluralize/package.json | 4 +- node_modules/pn/package.json | 4 +- node_modules/pnp-webpack-plugin/package.json | 4 +- node_modules/popper.js/package.json | 4 +- .../node_modules/debug/package.json | 4 +- node_modules/portfinder/package.json | 4 +- .../posix-character-classes/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../package.json | 4 +- .../postcss-value-parser/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- node_modules/postcss-calc/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- node_modules/postcss-color-gray/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-color-hex-alpha/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-color-mod-function/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-color-rebeccapurple/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- node_modules/postcss-colormin/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-convert-values/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-custom-media/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-custom-properties/package.json | 4 +- .../node_modules/cssesc/package.json | 4 +- .../postcss-selector-parser/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-custom-selectors/package.json | 4 +- .../node_modules/cssesc/package.json | 4 +- .../postcss-selector-parser/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-dir-pseudo-class/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-discard-comments/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-discard-duplicates/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-discard-empty/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-discard-overridden/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-env-function/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-flexbugs-fixes/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-focus-visible/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-focus-within/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-font-variant/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-gap-properties/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-image-set-function/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- node_modules/postcss-initial/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-lab-function/package.json | 4 +- node_modules/postcss-load-config/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- node_modules/postcss-loader/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- node_modules/postcss-logical/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-media-minmax/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-merge-longhand/package.json | 4 +- .../postcss-selector-parser/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- node_modules/postcss-merge-rules/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-minify-font-values/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-minify-gradients/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-minify-params/package.json | 4 +- .../postcss-selector-parser/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-minify-selectors/package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../postcss-modules-scope/package.json | 4 +- .../postcss-modules-values/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- node_modules/postcss-nesting/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-normalize-charset/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-normalize-positions/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-normalize-string/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-normalize-unicode/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-normalize-url/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-normalize-whitespace/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-ordered-values/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-overflow-shorthand/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- node_modules/postcss-page-break/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- node_modules/postcss-place/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- node_modules/postcss-preset-env/package.json | 4 +- .../node_modules/cssesc/package.json | 4 +- .../postcss-selector-parser/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-reduce-initial/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-reduce-transforms/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- node_modules/postcss-safe-parser/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-selector-matches/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-selector-not/package.json | 4 +- .../postcss-selector-parser/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- node_modules/postcss-svgo/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- .../postcss-unique-selectors/package.json | 4 +- .../postcss-value-parser/package.json | 4 +- .../postcss-values-parser/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- node_modules/postcss/package.json | 4 +- node_modules/prelude-ls/package.json | 4 +- node_modules/preserve/package.json | 4 +- node_modules/pretty-bytes/package.json | 4 +- node_modules/pretty-error/package.json | 4 +- .../node_modules/ansi-regex/package.json | 4 +- node_modules/pretty-format/package.json | 4 +- node_modules/private/package.json | 4 +- .../process-nextick-args/package.json | 4 +- node_modules/process/package.json | 4 +- node_modules/progress/package.json | 4 +- node_modules/promise-inflight/package.json | 4 +- node_modules/promise/package.json | 4 +- node_modules/prompts/package.json | 4 +- .../node_modules/warning/package.json | 4 +- node_modules/prop-types-extra/package.json | 4 +- node_modules/prop-types/package.json | 4 +- node_modules/proxy-addr/package.json | 4 +- node_modules/prr/package.json | 4 +- node_modules/psl/package.json | 4 +- node_modules/public-encrypt/package.json | 4 +- node_modules/pump/package.json | 4 +- .../pumpify/node_modules/pump/package.json | 4 +- node_modules/pumpify/package.json | 4 +- node_modules/punycode/package.json | 4 +- node_modules/q/package.json | 4 +- node_modules/qs/package.json | 4 +- node_modules/querystring-es3/package.json | 4 +- node_modules/querystring/package.json | 4 +- node_modules/querystringify/package.json | 4 +- .../@testing-library/dom/package.json | 4 +- .../@testing-library/react/package.json | 4 +- .../node_modules/eventemitter3/package.json | 4 +- .../node_modules/query-string/package.json | 4 +- .../strict-uri-encode/package.json | 4 +- .../node_modules/wait-for-expect/package.json | 4 +- node_modules/ra-core/package.json | 4 +- .../node_modules/query-string/package.json | 4 +- .../strict-uri-encode/package.json | 4 +- node_modules/ra-data-json-server/package.json | 4 +- node_modules/ra-i18n-polyglot/package.json | 4 +- node_modules/ra-language-english/package.json | 4 +- .../node_modules/dom-helpers/package.json | 4 +- .../node_modules/query-string/package.json | 4 +- .../react-transition-group/package.json | 4 +- node_modules/ra-ui-materialui/package.json | 4 +- node_modules/raf/package.json | 4 +- .../node_modules/is-number/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- node_modules/randomatic/package.json | 4 +- node_modules/randombytes/package.json | 4 +- node_modules/randomfill/package.json | 4 +- node_modules/range-parser/package.json | 4 +- .../raw-body/node_modules/bytes/package.json | 4 +- node_modules/raw-body/package.json | 4 +- node_modules/react-admin/package.json | 4 +- .../node_modules/core-js/package.json | 4 +- node_modules/react-app-polyfill/package.json | 4 +- node_modules/react-bootstrap/package.json | 4 +- node_modules/react-confirm-alert/package.json | 4 +- .../hoist-non-react-statics/package.json | 4 +- node_modules/react-cookie/package.json | 4 +- .../@babel/code-frame/package.json | 4 +- .../node_modules/ansi-regex/package.json | 4 +- .../node_modules/browserslist/package.json | 4 +- .../node_modules/emojis-list/package.json | 4 +- .../node_modules/find-up/package.json | 4 +- .../node_modules/inquirer/package.json | 4 +- .../node_modules/json5/package.json | 4 +- .../node_modules/loader-utils/package.json | 4 +- .../node_modules/locate-path/package.json | 4 +- .../node_modules/p-limit/package.json | 4 +- .../node_modules/p-locate/package.json | 4 +- .../node_modules/p-try/package.json | 4 +- .../node_modules/strip-ansi/package.json | 4 +- node_modules/react-dev-utils/package.json | 4 +- node_modules/react-dom/package.json | 4 +- node_modules/react-dropzone/package.json | 4 +- node_modules/react-error-overlay/package.json | 4 +- .../react-final-form-arrays/package.json | 4 +- node_modules/react-final-form/package.json | 4 +- node_modules/react-is/package.json | 4 +- .../react-lifecycles-compat/package.json | 4 +- .../node_modules/dom-helpers/package.json | 4 +- .../react-transition-group/package.json | 4 +- .../react-loading-overlay/package.json | 4 +- .../react-native-securerandom/package.json | 4 +- node_modules/react-overlays/package.json | 4 +- node_modules/react-popper/package.json | 4 +- .../hoist-non-react-statics/package.json | 4 +- node_modules/react-redux/package.json | 4 +- node_modules/react-router-dom/package.json | 4 +- .../hoist-non-react-statics/package.json | 4 +- .../node_modules/isarray/package.json | 4 +- .../node_modules/path-to-regexp/package.json | 4 +- node_modules/react-router/package.json | 4 +- .../node_modules/resolve/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../terser-webpack-plugin/package.json | 4 +- node_modules/react-scripts/package.json | 4 +- .../react-transition-group/package.json | 4 +- node_modules/react/package.json | 4 +- .../node_modules/dom-helpers/package.json | 4 +- .../react-transition-group/package.json | 4 +- node_modules/reactstrap/package.json | 4 +- .../node_modules/find-up/package.json | 4 +- .../node_modules/path-exists/package.json | 4 +- node_modules/read-pkg-up/package.json | 4 +- node_modules/read-pkg/package.json | 4 +- node_modules/readable-stream/package.json | 4 +- .../node_modules/arr-diff/package.json | 4 +- .../node_modules/array-unique/package.json | 4 +- .../node_modules/extend-shallow/package.json | 4 +- .../readdirp/node_modules/braces/package.json | 4 +- .../readdirp/node_modules/debug/package.json | 4 +- .../node_modules/define-property/package.json | 4 +- .../node_modules/extend-shallow/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../is-accessor-descriptor/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../is-data-descriptor/package.json | 4 +- .../node_modules/is-descriptor/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../node_modules/expand-brackets/package.json | 4 +- .../node_modules/define-property/package.json | 4 +- .../node_modules/extend-shallow/package.json | 4 +- .../node_modules/extglob/package.json | 4 +- .../node_modules/extend-shallow/package.json | 4 +- .../node_modules/fill-range/package.json | 4 +- .../is-accessor-descriptor/package.json | 4 +- .../is-data-descriptor/package.json | 4 +- .../node_modules/is-descriptor/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../node_modules/is-number/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../node_modules/micromatch/package.json | 4 +- .../readdirp/node_modules/ms/package.json | 4 +- .../node_modules/readable-stream/package.json | 4 +- .../node_modules/string_decoder/package.json | 4 +- node_modules/readdirp/package.json | 4 +- node_modules/realpath-native/package.json | 4 +- node_modules/recompose/package.json | 4 +- node_modules/recursive-readdir/package.json | 4 +- node_modules/redent/package.json | 4 +- node_modules/redux-saga/package.json | 4 +- node_modules/redux/package.json | 4 +- .../package.json | 4 +- node_modules/regenerate/package.json | 4 +- node_modules/regenerator-runtime/package.json | 4 +- .../node_modules/@babel/runtime/package.json | 4 +- .../regenerator-runtime/package.json | 4 +- .../regenerator-transform/package.json | 4 +- node_modules/regex-cache/package.json | 4 +- node_modules/regex-not/package.json | 4 +- .../regexp.prototype.flags/package.json | 4 +- node_modules/regexpp/package.json | 4 +- node_modules/regexpu-core/package.json | 4 +- node_modules/regjsgen/package.json | 4 +- .../node_modules/jsesc/package.json | 4 +- node_modules/regjsparser/package.json | 4 +- node_modules/relateurl/package.json | 4 +- .../remove-trailing-separator/package.json | 4 +- .../node_modules/css-select/package.json | 4 +- .../node_modules/css-what/package.json | 4 +- .../node_modules/domutils/package.json | 4 +- node_modules/renderkid/package.json | 4 +- node_modules/repeat-element/package.json | 4 +- node_modules/repeat-string/package.json | 4 +- node_modules/repeating/package.json | 4 +- .../request-promise-core/package.json | 4 +- .../request-promise-native/package.json | 4 +- node_modules/request/package.json | 4 +- node_modules/require-directory/package.json | 4 +- .../require-main-filename/package.json | 4 +- node_modules/requires-port/package.json | 4 +- node_modules/reselect/package.json | 4 +- node_modules/resolve-cwd/package.json | 4 +- node_modules/resolve-from/package.json | 4 +- node_modules/resolve-pathname/package.json | 4 +- node_modules/resolve-url/package.json | 4 +- node_modules/resolve/package.json | 4 +- node_modules/restore-cursor/package.json | 4 +- node_modules/ret/package.json | 4 +- node_modules/rgb-regex/package.json | 4 +- node_modules/rgba-regex/package.json | 4 +- node_modules/rimraf/package.json | 4 +- node_modules/ripemd160/package.json | 4 +- node_modules/rsvp/package.json | 4 +- node_modules/run-async/package.json | 4 +- node_modules/run-queue/package.json | 4 +- node_modules/rxjs/package.json | 4 +- node_modules/safe-buffer/package.json | 4 +- node_modules/safe-regex/package.json | 4 +- node_modules/safer-buffer/package.json | 4 +- .../sane/node_modules/arr-diff/package.json | 4 +- .../node_modules/array-unique/package.json | 4 +- .../node_modules/extend-shallow/package.json | 4 +- .../sane/node_modules/braces/package.json | 4 +- .../sane/node_modules/debug/package.json | 4 +- .../node_modules/define-property/package.json | 4 +- .../node_modules/extend-shallow/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../is-accessor-descriptor/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../is-data-descriptor/package.json | 4 +- .../node_modules/is-descriptor/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../node_modules/expand-brackets/package.json | 4 +- .../node_modules/define-property/package.json | 4 +- .../node_modules/extend-shallow/package.json | 4 +- .../sane/node_modules/extglob/package.json | 4 +- .../node_modules/extend-shallow/package.json | 4 +- .../sane/node_modules/fill-range/package.json | 4 +- .../is-accessor-descriptor/package.json | 4 +- .../is-data-descriptor/package.json | 4 +- .../node_modules/is-descriptor/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../sane/node_modules/is-number/package.json | 4 +- .../sane/node_modules/kind-of/package.json | 4 +- .../sane/node_modules/micromatch/package.json | 4 +- .../sane/node_modules/ms/package.json | 4 +- node_modules/sane/package.json | 4 +- .../node_modules/clone-deep/package.json | 4 +- .../node_modules/for-own/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../node_modules/pify/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../node_modules/shallow-clone/package.json | 4 +- node_modules/sass-loader/package.json | 4 +- node_modules/sax/package.json | 4 +- node_modules/scheduler/package.json | 4 +- node_modules/schema-utils/package.json | 4 +- node_modules/seamless-immutable/package.json | 4 +- node_modules/select-hose/package.json | 4 +- node_modules/selfsigned/package.json | 4 +- node_modules/semver/package.json | 4 +- .../debug/node_modules/ms/package.json | 4 +- .../send/node_modules/debug/package.json | 4 +- .../send/node_modules/mime/package.json | 4 +- .../send/node_modules/ms/package.json | 4 +- node_modules/send/package.json | 4 +- .../serialize-javascript/package.json | 4 +- .../node_modules/debug/package.json | 4 +- .../node_modules/http-errors/package.json | 4 +- .../node_modules/inherits/package.json | 4 +- .../serve-index/node_modules/ms/package.json | 4 +- .../node_modules/setprototypeof/package.json | 4 +- node_modules/serve-index/package.json | 4 +- node_modules/serve-static/package.json | 4 +- node_modules/set-blocking/package.json | 4 +- .../node_modules/extend-shallow/package.json | 4 +- node_modules/set-value/package.json | 4 +- node_modules/setimmediate/package.json | 4 +- node_modules/setprototypeof/package.json | 4 +- node_modules/sha.js/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../node_modules/lazy-cache/package.json | 4 +- node_modules/shallow-clone/package.json | 4 +- node_modules/shebang-command/package.json | 4 +- node_modules/shebang-regex/package.json | 4 +- node_modules/shell-quote/package.json | 4 +- node_modules/shellwords/package.json | 4 +- node_modules/signal-exit/package.json | 4 +- .../node_modules/is-arrayish/package.json | 4 +- node_modules/simple-swizzle/package.json | 4 +- node_modules/sisteransi/package.json | 4 +- .../skema/node_modules/async/package.json | 4 +- node_modules/skema/package.json | 4 +- node_modules/slash/package.json | 4 +- node_modules/slice-ansi/package.json | 4 +- .../node_modules/define-property/package.json | 4 +- .../is-accessor-descriptor/package.json | 4 +- .../is-data-descriptor/package.json | 4 +- .../node_modules/is-descriptor/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- node_modules/snapdragon-node/package.json | 4 +- node_modules/snapdragon-util/package.json | 4 +- .../node_modules/debug/package.json | 4 +- .../node_modules/define-property/package.json | 4 +- .../node_modules/extend-shallow/package.json | 4 +- .../snapdragon/node_modules/ms/package.json | 4 +- node_modules/snapdragon/package.json | 4 +- .../node_modules/debug/package.json | 4 +- node_modules/sockjs-client/package.json | 4 +- .../node_modules/faye-websocket/package.json | 4 +- node_modules/sockjs/package.json | 4 +- node_modules/source-list-map/package.json | 4 +- node_modules/source-map-resolve/package.json | 4 +- node_modules/source-map-support/package.json | 4 +- node_modules/source-map-url/package.json | 4 +- node_modules/source-map/package.json | 4 +- node_modules/spdx-correct/package.json | 4 +- node_modules/spdx-exceptions/package.json | 4 +- .../spdx-expression-parse/package.json | 4 +- node_modules/spdx-license-ids/package.json | 4 +- node_modules/spdy-transport/package.json | 4 +- node_modules/spdy/package.json | 4 +- node_modules/split-on-first/package.json | 4 +- node_modules/split-string/package.json | 4 +- node_modules/sprintf-js/package.json | 4 +- node_modules/sshpk/package.json | 10 +- node_modules/ssri/package.json | 4 +- node_modules/stable/package.json | 4 +- node_modules/stack-utils/package.json | 4 +- .../node_modules/define-property/package.json | 4 +- node_modules/static-extend/package.json | 4 +- node_modules/statuses/package.json | 4 +- node_modules/stealthy-require/package.json | 4 +- node_modules/str2buf/package.json | 4 +- .../node_modules/readable-stream/package.json | 4 +- .../node_modules/string_decoder/package.json | 4 +- node_modules/stream-browserify/package.json | 4 +- node_modules/stream-each/package.json | 4 +- .../node_modules/readable-stream/package.json | 4 +- .../node_modules/string_decoder/package.json | 4 +- node_modules/stream-http/package.json | 4 +- node_modules/stream-shift/package.json | 4 +- node_modules/strict-uri-encode/package.json | 4 +- .../node_modules/ansi-regex/package.json | 4 +- .../node_modules/strip-ansi/package.json | 4 +- node_modules/string-length/package.json | 4 +- .../node_modules/ansi-regex/package.json | 4 +- .../node_modules/strip-ansi/package.json | 4 +- node_modules/string-width/package.json | 4 +- .../string.prototype.trim/package.json | 4 +- .../node_modules/es-abstract/package.json | 4 +- .../node_modules/is-callable/package.json | 4 +- .../node_modules/is-regex/package.json | 4 +- .../string.prototype.trimleft/package.json | 4 +- .../string.prototype.trimright/package.json | 4 +- .../string.prototype.trimend/package.json | 4 +- .../string.prototype.trimleft/package.json | 4 +- .../string.prototype.trimright/package.json | 4 +- .../node_modules/es-abstract/package.json | 4 +- .../node_modules/is-callable/package.json | 4 +- .../node_modules/is-regex/package.json | 4 +- .../string.prototype.trimleft/package.json | 4 +- .../string.prototype.trimright/package.json | 4 +- .../string.prototype.trimstart/package.json | 4 +- .../node_modules/safe-buffer/package.json | 4 +- node_modules/string_decoder/package.json | 4 +- .../node_modules/is-obj/package.json | 4 +- node_modules/stringify-object/package.json | 4 +- node_modules/strip-ansi/package.json | 4 +- node_modules/strip-bom/package.json | 4 +- node_modules/strip-comments/package.json | 4 +- node_modules/strip-eof/package.json | 4 +- node_modules/strip-indent/package.json | 4 +- node_modules/strip-json-comments/package.json | 4 +- node_modules/style-loader/package.json | 4 +- node_modules/styled-components/README.md | 183 - .../dist/styled-components-macro.cjs.js | 68 - .../dist/styled-components-macro.cjs.js.map | 1 - .../dist/styled-components-macro.esm.js | 62 - .../dist/styled-components-macro.esm.js.map | 1 - .../dist/styled-components.browser.cjs.js | 2504 ---- .../dist/styled-components.browser.cjs.js.map | 1 - .../dist/styled-components.browser.esm.js | 2485 ---- .../dist/styled-components.browser.esm.js.map | 1 - .../dist/styled-components.cjs.js | 2505 ---- .../dist/styled-components.cjs.js.map | 1 - .../dist/styled-components.esm.js | 2486 ---- .../dist/styled-components.esm.js.map | 1 - .../dist/styled-components.js | 3832 ------ .../dist/styled-components.js.map | 1 - .../dist/styled-components.min.js | 2 - .../dist/styled-components.min.js.map | 1 - .../styled-components/macro/package.json | 7 - .../dist/styled-components.native.cjs.js | 6532 ---------- .../dist/styled-components.native.cjs.js.map | 1 - .../dist/styled-components.native.esm.js | 6520 ---------- .../dist/styled-components.native.esm.js.map | 1 - .../styled-components/native/package.json | 7 - node_modules/styled-components/package.json | 139 - .../dist/styled-components-primitives.cjs.js | 6528 ---------- .../styled-components-primitives.cjs.js.map | 1 - .../dist/styled-components-primitives.esm.js | 6516 ---------- .../styled-components-primitives.esm.js.map | 1 - .../styled-components/primitives/package.json | 7 - .../styled-components/scripts/postinstall.js | 8 - .../styled-components/test-utils/index.js | 41 - .../test-utils/setupTestFramework.js | 23 - .../postcss-selector-parser/package.json | 4 +- .../node_modules/postcss/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/supports-color/package.json | 4 +- node_modules/stylehacks/package.json | 4 +- node_modules/stylis-rule-sheet/README.md | 14 - node_modules/stylis-rule-sheet/index.js | 48 - node_modules/stylis-rule-sheet/package.json | 57 - node_modules/stylis/CHANGELOG.md | 687 -- node_modules/stylis/LICENSE.md | 21 - node_modules/stylis/README.md | 372 - node_modules/stylis/package.json | 65 - node_modules/stylis/stylis.d.ts | 55 - node_modules/stylis/stylis.js | 1696 --- node_modules/stylis/stylis.min.js | 2 - node_modules/stylis/stylis.min.js.map | 1 - node_modules/supports-color/package.json | 4 +- node_modules/svg-parser/package.json | 4 +- node_modules/svgo/package.json | 4 +- node_modules/symbol-observable/package.json | 4 +- node_modules/symbol-tree/package.json | 4 +- .../node_modules/ansi-regex/package.json | 4 +- .../node_modules/string-width/package.json | 4 +- .../node_modules/strip-ansi/package.json | 4 +- node_modules/table/package.json | 4 +- node_modules/tapable/package.json | 4 +- .../node_modules/cacache/package.json | 4 +- .../serialize-javascript/package.json | 4 +- .../source-map-support/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- .../node_modules/terser/package.json | 4 +- .../node_modules/y18n/package.json | 4 +- .../terser-webpack-plugin/package.json | 4 +- .../source-map-support/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- node_modules/terser/package.json | 4 +- node_modules/test-exclude/package.json | 4 +- node_modules/text-encoding/package.json | 4 +- node_modules/text-table/package.json | 4 +- node_modules/throat/package.json | 4 +- node_modules/through/package.json | 4 +- .../node_modules/readable-stream/package.json | 4 +- .../node_modules/string_decoder/package.json | 4 +- node_modules/through2/package.json | 4 +- node_modules/thunky/package.json | 4 +- node_modules/timers-browserify/package.json | 4 +- node_modules/timsort/package.json | 4 +- node_modules/tiny-invariant/package.json | 4 +- node_modules/tiny-warning/package.json | 4 +- node_modules/tmp/package.json | 4 +- node_modules/tmpl/package.json | 4 +- node_modules/to-arraybuffer/package.json | 4 +- node_modules/to-fast-properties/package.json | 4 +- node_modules/to-object-path/package.json | 4 +- .../node_modules/is-number/package.json | 4 +- node_modules/to-regex-range/package.json | 4 +- node_modules/to-regex/package.json | 4 +- node_modules/toidentifier/package.json | 4 +- node_modules/topo/package.json | 4 +- node_modules/tough-cookie/package.json | 4 +- node_modules/tr46/package.json | 4 +- node_modules/trim-right/package.json | 4 +- node_modules/tryer/package.json | 4 +- node_modules/ts-essentials/package.json | 4 +- node_modules/ts-pnp/package.json | 4 +- node_modules/tslib/package.json | 4 +- node_modules/tty-browserify/package.json | 4 +- node_modules/tunnel-agent/package.json | 4 +- node_modules/tweetnacl/package.json | 4 +- node_modules/type-check/package.json | 4 +- node_modules/type-is/package.json | 4 +- node_modules/typed-styles/package.json | 4 +- node_modules/typedarray/package.json | 4 +- node_modules/typescript-compare/package.json | 4 +- node_modules/typescript-logic/package.json | 4 +- node_modules/typescript-tuple/package.json | 4 +- node_modules/ua-parser-js/package.json | 4 +- .../node_modules/commander/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- node_modules/uglify-js/package.json | 4 +- node_modules/uncontrollable/package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- node_modules/union-value/package.json | 4 +- node_modules/uniq/package.json | 4 +- node_modules/uniqs/package.json | 4 +- node_modules/unique-filename/package.json | 4 +- node_modules/unique-slug/package.json | 4 +- node_modules/universal-cookie/package.json | 4 +- node_modules/universalify/package.json | 4 +- node_modules/unpipe/package.json | 4 +- node_modules/unquote/package.json | 4 +- .../node_modules/isobject/package.json | 4 +- .../node_modules/has-value/package.json | 4 +- .../node_modules/has-values/package.json | 4 +- node_modules/unset-value/package.json | 4 +- node_modules/upath/package.json | 4 +- node_modules/upper-case/package.json | 4 +- node_modules/uri-js/package.json | 4 +- node_modules/urix/package.json | 4 +- node_modules/url-loader/package.json | 4 +- node_modules/url-parse/package.json | 4 +- .../url/node_modules/punycode/package.json | 4 +- node_modules/url/package.json | 4 +- node_modules/use/package.json | 4 +- node_modules/util-deprecate/package.json | 4 +- .../node_modules/es-abstract/package.json | 4 +- .../node_modules/is-callable/package.json | 4 +- .../node_modules/is-regex/package.json | 4 +- .../string.prototype.trimleft/package.json | 4 +- .../string.prototype.trimright/package.json | 4 +- node_modules/util.promisify/package.json | 4 +- .../util/node_modules/inherits/package.json | 4 +- node_modules/util/package.json | 4 +- node_modules/utila/package.json | 4 +- node_modules/utils-merge/package.json | 4 +- node_modules/uuid/package.json | 4 +- .../validate-npm-package-license/package.json | 4 +- node_modules/value-equal/package.json | 4 +- node_modules/vary/package.json | 4 +- node_modules/vendors/package.json | 4 +- node_modules/verror/package.json | 4 +- node_modules/vm-browserify/package.json | 4 +- node_modules/w3c-hr-time/package.json | 4 +- node_modules/wait-for-expect/package.json | 4 +- node_modules/walker/package.json | 4 +- node_modules/warning/package.json | 4 +- node_modules/watch/package.json | 4 +- node_modules/watchpack/package.json | 4 +- node_modules/wbuf/package.json | 4 +- node_modules/webcrypto-shim/package.json | 4 +- node_modules/webidl-conversions/package.json | 4 +- .../webpack-dev-middleware/package.json | 4 +- .../node_modules/arr-diff/package.json | 4 +- .../node_modules/array-unique/package.json | 4 +- .../node_modules/extend-shallow/package.json | 4 +- .../node_modules/braces/package.json | 4 +- .../node_modules/camelcase/package.json | 4 +- .../node_modules/debug/package.json | 4 +- .../node_modules/decamelize/package.json | 4 +- .../node_modules/debug/package.json | 4 +- .../node_modules/define-property/package.json | 4 +- .../node_modules/extend-shallow/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../is-accessor-descriptor/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../is-data-descriptor/package.json | 4 +- .../node_modules/is-descriptor/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../node_modules/ms/package.json | 4 +- .../node_modules/expand-brackets/package.json | 4 +- .../node_modules/define-property/package.json | 4 +- .../node_modules/extend-shallow/package.json | 4 +- .../node_modules/extglob/package.json | 4 +- .../node_modules/extend-shallow/package.json | 4 +- .../node_modules/fill-range/package.json | 4 +- .../node_modules/find-up/package.json | 4 +- .../http-proxy-middleware/package.json | 4 +- .../node_modules/import-local/package.json | 4 +- .../is-accessor-descriptor/package.json | 4 +- .../is-data-descriptor/package.json | 4 +- .../node_modules/is-descriptor/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../node_modules/is-number/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../node_modules/locate-path/package.json | 4 +- .../node_modules/micromatch/package.json | 4 +- .../node_modules/p-limit/package.json | 4 +- .../node_modules/p-locate/package.json | 4 +- .../node_modules/p-try/package.json | 4 +- .../node_modules/yargs-parser/package.json | 4 +- .../node_modules/yargs/package.json | 4 +- node_modules/webpack-dev-server/package.json | 4 +- node_modules/webpack-log/package.json | 4 +- .../webpack-manifest-plugin/package.json | 4 +- .../node_modules/source-map/package.json | 4 +- node_modules/webpack-sources/package.json | 4 +- .../webpack/node_modules/acorn/package.json | 4 +- .../node_modules/arr-diff/package.json | 4 +- .../node_modules/array-unique/package.json | 4 +- .../node_modules/extend-shallow/package.json | 4 +- .../webpack/node_modules/braces/package.json | 4 +- .../webpack/node_modules/debug/package.json | 4 +- .../node_modules/eslint-scope/package.json | 4 +- .../node_modules/define-property/package.json | 4 +- .../node_modules/extend-shallow/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../is-accessor-descriptor/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../is-data-descriptor/package.json | 4 +- .../node_modules/is-descriptor/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../node_modules/expand-brackets/package.json | 4 +- .../node_modules/define-property/package.json | 4 +- .../node_modules/extend-shallow/package.json | 4 +- .../webpack/node_modules/extglob/package.json | 4 +- .../node_modules/extend-shallow/package.json | 4 +- .../node_modules/fill-range/package.json | 4 +- .../is-accessor-descriptor/package.json | 4 +- .../is-data-descriptor/package.json | 4 +- .../node_modules/is-descriptor/package.json | 4 +- .../node_modules/kind-of/package.json | 4 +- .../node_modules/is-number/package.json | 4 +- .../webpack/node_modules/kind-of/package.json | 4 +- .../node_modules/micromatch/package.json | 4 +- .../webpack/node_modules/ms/package.json | 4 +- .../node_modules/schema-utils/package.json | 4 +- node_modules/webpack/package.json | 4 +- node_modules/websocket-driver/package.json | 4 +- .../websocket-extensions/package.json | 4 +- node_modules/whatwg-encoding/package.json | 4 +- node_modules/whatwg-fetch/package.json | 4 +- node_modules/whatwg-mimetype/package.json | 4 +- node_modules/whatwg-url/package.json | 4 +- node_modules/which-module/package.json | 4 +- node_modules/which/package.json | 4 +- node_modules/word-wrap/package.json | 4 +- node_modules/wordwrap/package.json | 4 +- .../workbox-background-sync/package.json | 4 +- .../package.json | 4 +- .../node_modules/fs-extra/package.json | 4 +- node_modules/workbox-build/package.json | 4 +- .../workbox-cache-expiration/package.json | 4 +- .../workbox-cacheable-response/package.json | 4 +- node_modules/workbox-core/package.json | 4 +- .../workbox-google-analytics/package.json | 4 +- .../workbox-navigation-preload/package.json | 4 +- node_modules/workbox-precaching/package.json | 4 +- .../workbox-range-requests/package.json | 4 +- node_modules/workbox-routing/package.json | 4 +- node_modules/workbox-strategies/package.json | 4 +- node_modules/workbox-streams/package.json | 4 +- node_modules/workbox-sw/package.json | 4 +- .../workbox-webpack-plugin/package.json | 4 +- node_modules/worker-farm/package.json | 4 +- .../is-fullwidth-code-point/package.json | 4 +- .../node_modules/string-width/package.json | 4 +- node_modules/wrap-ansi/package.json | 4 +- node_modules/wrappy/package.json | 4 +- node_modules/write-file-atomic/package.json | 4 +- node_modules/write/package.json | 4 +- node_modules/ws/package.json | 4 +- node_modules/xml-name-validator/package.json | 4 +- node_modules/xregexp/package.json | 4 +- node_modules/xtend/package.json | 4 +- node_modules/y18n/package.json | 4 +- node_modules/yallist/package.json | 4 +- node_modules/yaml/package.json | 4 +- .../node_modules/camelcase/package.json | 4 +- node_modules/yargs-parser/package.json | 4 +- node_modules/yargs/package.json | 4 +- package-lock.json | 92 - src/components/App.js | 12 +- src/components/Navigationbar.js | 4 +- src/components/Simulator.js | 12 +- 3580 files changed, 4398 insertions(+), 101612 deletions(-) delete mode 100644 node_modules/.cache/babel-loader/000234022385e7b29873235e876c67f8.json rename node_modules/.cache/babel-loader/{692d236f2b8987eef3de100ce0f770e8.json => 00383c47c12d884d8e90cd613e2dc189.json} (100%) rename node_modules/.cache/babel-loader/{0e642a9ef6091e914451a2f0bbb461f3.json => 003eaffc04f9ba2713bc4ecfc6c03b67.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/0075836d3369439219fdf7983cd45cef.json rename node_modules/.cache/babel-loader/{6dd203b6b802773c71169b9cc2a4f601.json => 00881cb0e300772e83984ef7012d0f55.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/009babc01c7b041cfb4baae47821d8c5.json rename node_modules/.cache/babel-loader/{745a70818845030a03344fcb083857c9.json => 00c1c15839d56c5f116f0a5fd4b0b493.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/00ca6847069f04db1d6f0b5286b4817b.json rename node_modules/.cache/babel-loader/{ff377d0fbc95c6643a3ae2cb7b00274e.json => 00ef51eb15019cab1136b44d5f2483e1.json} (100%) rename node_modules/.cache/babel-loader/{2f49c54b1ecbed754944675191f3ff22.json => 00f597585d297f73c6ab114c9b7e567b.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/013dffab964d406fd8bcc90b7eb2bffb.json rename node_modules/.cache/babel-loader/{02ef1e06ff022d6e4c9f5ead9ebee0c3.json => 015cc48e07bbb2a200724b325fcdc0e1.json} (100%) rename node_modules/.cache/babel-loader/{edafcd606acde6193b22e160b5734716.json => 01865d8c57dbf2fefed0f66e7f534125.json} (100%) rename node_modules/.cache/babel-loader/{e251333650a5cab69113680f9c7f1ee5.json => 01e2b50f0afa2782db694966c79c9002.json} (100%) rename node_modules/.cache/babel-loader/{f355768abd34fc461b68f25cff1b6791.json => 022f4b2a86ecb450fafbbbcca2fa7c8d.json} (100%) rename node_modules/.cache/babel-loader/{5be0950d78870962c199dc11e33e6aca.json => 023a139938a38dcfd62a823b3ef5e266.json} (100%) rename node_modules/.cache/babel-loader/{8a1155cf467b1eda74acc4ec4abd10ae.json => 0249d2e3e75644dc02a519b0eee1691f.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/0255ef7dad0ff0bd50dd1f535605d7fd.json rename node_modules/.cache/babel-loader/{99bd7cecb6d8905fb468ac7d5018cab8.json => 027878edcc66767c4766f52dd330bfc5.json} (100%) rename node_modules/.cache/babel-loader/{5d1d409640a12e515179709db55087d7.json => 0292fc2edf9ace7c01bd29be2e5eeee6.json} (100%) rename node_modules/.cache/babel-loader/{c9587341616200b7048646387c9d2aff.json => 02a14eb2307c452630dd090907d41474.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/02fe3c75031e91fe1c494f70e695b01a.json rename node_modules/.cache/babel-loader/{c8efc21512af56740166eacc13deb3a9.json => 033323336476a04ab7f1e72ba0aa0f14.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/03437e3c429d2cfeae007de100af3c44.json rename node_modules/.cache/babel-loader/{e4477a144d3eaca3ed03c343067ccb61.json => 03523a8342c11a37a25c1fbc34c8099c.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/03f1b904e4a9149724f6d41a435ef832.json rename node_modules/.cache/babel-loader/{3129459a883570b671da282c103ba4ed.json => 03f6665e357e36079365bed05a0506f4.json} (100%) rename node_modules/.cache/babel-loader/{0f95fe8d8dbc3fa1f35bc10ed197f88b.json => 04bcbf7b93bb93eaf766bd12d50322be.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/054c04baa6492e8fc1088c04971fef51.json rename node_modules/.cache/babel-loader/{fd958486911f620c33e46a5ff18d302e.json => 0569b2876425cca2a8552605b411b91c.json} (100%) rename node_modules/.cache/babel-loader/{cd0f19ac6ee734434cff474b954660be.json => 056b3225cb1106edc7f59e7c692fb0e0.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/05ff42c6181e63dd5f5ef78274e128f1.json rename node_modules/.cache/babel-loader/{416ec977b6d15f220d5d47e978586950.json => 06184e4d0c08c610d2374b8f3e4fa609.json} (100%) rename node_modules/.cache/babel-loader/{f9686b099055661d1c28ac4e5e8293a2.json => 062efc80d36763d0f20234728afa0778.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/063db1552e8b2a3d1b69db0a3140b315.json delete mode 100644 node_modules/.cache/babel-loader/064934db6fd90bb5300858a94ff8e7c2.json delete mode 100644 node_modules/.cache/babel-loader/069bb03282590f26824c8f352e20a7c9.json rename node_modules/.cache/babel-loader/{d888623dc1ff2f0d059b1489ad8c27b2.json => 06effc8b2670eaae241ec88801b471ec.json} (100%) rename node_modules/.cache/babel-loader/{1280c50e92fbcc349ee8d09074d74b23.json => 073e3c1a365ac53feca0a17d1d9e6bbd.json} (100%) rename node_modules/.cache/babel-loader/{2d42b0a323d770f6b4e8e53f14877b4c.json => 0831385130912f8b9bfa168cf1460124.json} (100%) rename node_modules/.cache/babel-loader/{227b4a59051a8bfbc36944aaecab6da7.json => 085b02301f78fc4b043e5f0b56727c4a.json} (100%) rename node_modules/.cache/babel-loader/{2277cf313a3412cbaf2fed73729d351b.json => 087e46cdec2c2ca39212dbd818395dab.json} (100%) rename node_modules/.cache/babel-loader/{7771d58db70ffdb5dd50bcbddfedd677.json => 08a65ad231789b0f72531d965818ac24.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/0941f0c39c7edc58eb65a1e4999e4a0f.json rename node_modules/.cache/babel-loader/{b4ccfea2f9bccf98f9c5c1ef38c3863e.json => 09aa5718b5822f110f82facab4ed5de7.json} (100%) rename node_modules/.cache/babel-loader/{5d323392b3e943ad0f6b96a89dd28fcb.json => 09e1c188aef3516f1952d75e8d36ce90.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/0a0a0e44f36724d76c66824d067cad21.json delete mode 100644 node_modules/.cache/babel-loader/0aba0ceed37a5e387e6858f3f0933805.json delete mode 100644 node_modules/.cache/babel-loader/0ae726042974145edb4a54f598152737.json rename node_modules/.cache/babel-loader/{119a5e905059b8aae91f3b4ffddbfa3f.json => 0aee86d63b70105b869911c0a87cebb3.json} (100%) rename node_modules/.cache/babel-loader/{b017176dc98ef4efcedd17a8e0c7037a.json => 0afb0ee035425b052d0101a3ab5f4581.json} (100%) rename node_modules/.cache/babel-loader/{edf57e1cc328ca59dc06d3a8372e7f27.json => 0b0746b936b7da0e95c8728d12f51fdc.json} (100%) rename node_modules/.cache/babel-loader/{8c0255939477078e1704b4f245171ee0.json => 0b1932b5c2f4b2232f148640d19b4ecf.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/0b80bfed3e0bc77bfe7b1901cfbeabc8.json rename node_modules/.cache/babel-loader/{53eb029425beb33a752c0d52fc39eef9.json => 0b98e36774ff025dd7c074668f9c9559.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/0bae63999b19db8a1811b3c8aa950209.json rename node_modules/.cache/babel-loader/{4218eed8b0241f447a105c5ca1780c8d.json => 0be11ce1a691624ad49e9e64393360bc.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/0c088ef896b7b5361d14cd49517cf8a7.json delete mode 100644 node_modules/.cache/babel-loader/0c57dde23723cc486dfd31b84fa81747.json delete mode 100644 node_modules/.cache/babel-loader/0c77f9926fc7c8cc1609e9dcb84af16d.json delete mode 100644 node_modules/.cache/babel-loader/0c8463d90f521244ca0dbc843f4f16a0.json rename node_modules/.cache/babel-loader/{8335528d3490bf22dc2b0cf46383abb0.json => 0d0a9480ce0984ecc37595c1dc9ab5ff.json} (100%) rename node_modules/.cache/babel-loader/{bf9fc20ded417b0d779c6e6801e2ab0a.json => 0d3692ba227c8e48987b24e161b99a43.json} (100%) rename node_modules/.cache/babel-loader/{9a23fa7609980ced50445a54dd2936b4.json => 0d9c0e627495abc7dd8d73c3812a0327.json} (100%) rename node_modules/.cache/babel-loader/{537294c6b4dc0d53e9b09b71244a1223.json => 0d9f2e443bc16af50bd69ef3c314320c.json} (100%) rename node_modules/.cache/babel-loader/{8252beb3115908d7b8215832c35f8210.json => 0e1e8bea54e36663cb9e520d08a3f8a1.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/0e25fba268cd8f59f96f1c3276670c66.json rename node_modules/.cache/babel-loader/{ee69df0e22779b410c011346f92c4877.json => 0e2f739c1dcd6088a6214e4a8023e5e1.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/0e723665341665d50414438d0d990a7d.json rename node_modules/.cache/babel-loader/{6c7c9cb3349b23bdae26e127c87100a5.json => 0e9190681e0fd83b45be7e751d7f00cf.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/0e96b095f843b7f11171c1a45570d79c.json rename node_modules/.cache/babel-loader/{3b2e14dcdfd3cb91d0b33cc5cdd02c2b.json => 0ea1acb4ee74a9388800dca99cd9f840.json} (100%) rename node_modules/.cache/babel-loader/{7ed889674659645f4706b9a3c8fef04a.json => 0eb96e9ddcbc3736030a8d805ddd338d.json} (100%) rename node_modules/.cache/babel-loader/{246061d9b0fbd72a1f44cd5e9c6f28fa.json => 0ec63b7b42829d486c2067afca4ce50a.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/0ece30f4fd3d666d0dc5071413458189.json rename node_modules/.cache/babel-loader/{77625acfb0b29dd20a3289df0f8b39c7.json => 0ef6c6e637b7e14827e679e5d1fea3bc.json} (100%) rename node_modules/.cache/babel-loader/{b193e3191d5d412cdc981cd74705d03a.json => 0f0a4908ab236cf40a95678100cefa48.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/0f2c377a2902c6c7e871c82e6ac3642d.json rename node_modules/.cache/babel-loader/{7ceec053ada2b43b27f8bfb8c5d701df.json => 0f42ce739c4c9f14c3a3cf8e1dd1c3c2.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/0f472a649d4d479d955a0a5a23cbdbc4.json rename node_modules/.cache/babel-loader/{5a78472a72616ec80c2a524597c4362a.json => 0f509faa6855a1e17c17b8c0366f7d65.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/0f9516947555bbca57c017cacd165594.json rename node_modules/.cache/babel-loader/{eaca7ff96f4e1deca7830d61245b2b35.json => 0fd9c6ccb87d21bf8087d2fd267a9a10.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/103c46ca88676c22a9bc71b6a36a0495.json rename node_modules/.cache/babel-loader/{5d8f96484126b9f14da4d11f62ed3c93.json => 1070a7529c4252371b9a9819dc074f17.json} (100%) rename node_modules/.cache/babel-loader/{ae12ce84148a6ec786a8b26e0d1ea537.json => 10850450855fc24986da28323246621d.json} (100%) rename node_modules/.cache/babel-loader/{ab1603ec4258a1a1070da35284a1aae3.json => 1092f5a74b2495456726df95dcb83ad3.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/10ac9b52056ceb96e25407ed91275eed.json rename node_modules/.cache/babel-loader/{547ee92694e3428a7e76bd8b7ff7b638.json => 10b7f87bfdd34b41d7f192a05094b440.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/10fe6b1823021df433784b2e34ce3a19.json rename node_modules/.cache/babel-loader/{4730c5c081b06e434db8242ff405c7fa.json => 11269d0f75ba7bd0a3768d1b94882e93.json} (100%) rename node_modules/.cache/babel-loader/{b47a88e92add53d552aa6f22860e95fa.json => 11546a6b6f456f5349852efe9d8f534d.json} (100%) rename node_modules/.cache/babel-loader/{cb4aa26ce9e02002282c0326724bd0af.json => 11963a1d9100dc3d74c1d35962c24f27.json} (100%) rename node_modules/.cache/babel-loader/{8888b7dae4b83a63039e4731a29d1495.json => 11b2919418ef6308b7d7ffed7d69283b.json} (100%) rename node_modules/.cache/babel-loader/{a745b5477ab7bf34ae90451324bec15c.json => 124e938d6792e02267bfbbad6fb2a619.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/12633e5a335d32db7ac871e168005cd0.json rename node_modules/.cache/babel-loader/{68b6fa2e2bd044f3b9bcec383b6ba2bc.json => 12a215fedc9fe1e878e0b9b62beb36ad.json} (100%) rename node_modules/.cache/babel-loader/{f1ef040d59ef8d55b7ac7a29128c3050.json => 12fe06c3cef3f0e3544b533c7428fa64.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/134b4ed5820fbe39bc124d139989faa2.json delete mode 100644 node_modules/.cache/babel-loader/135a6701f21336f81ac23a350b607280.json rename node_modules/.cache/babel-loader/{db302183494069ce28aaafd7ca80c11d.json => 13d8b6891bdde0b8d84872daa3e87fa7.json} (100%) rename node_modules/.cache/babel-loader/{72b3e43df44ec342b95784d070a164fc.json => 14127e7dd988fa8b178a70ac7b017da5.json} (100%) rename node_modules/.cache/babel-loader/{3bd374a971aec3a083705f5290b11743.json => 1447e09baad8599a6b1f382cb683cdf9.json} (100%) rename node_modules/.cache/babel-loader/{c8668ee60cbec6d49ebc5c066852a38f.json => 145c7564c8a5e2616481d6e9703f1463.json} (100%) rename node_modules/.cache/babel-loader/{b927fcd57e4c5a6eedc569c58c120da9.json => 147b4ca93857f2c79b647f48d8536d7b.json} (100%) rename node_modules/.cache/babel-loader/{08a5b814f519abcdd396fe974558f259.json => 14ab841b0257e6b3bb587e0213daea24.json} (100%) rename node_modules/.cache/babel-loader/{edb9a4416ab4942903bb0c82c72f504e.json => 14c795151354b3f50d61c65401cc6948.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/14ebf4c1cf5721b9a465304a63006534.json rename node_modules/.cache/babel-loader/{1a3de3bc0a710cc466b6ebf0114be79d.json => 15276881e5b8f6cf8c10a6fbf415661a.json} (100%) rename node_modules/.cache/babel-loader/{3ca9f3b1747b7366ab69a3a75c34db05.json => 1530e2e3559b957a21e116bc4b241b4a.json} (100%) rename node_modules/.cache/babel-loader/{59b15f372f068c92d0740deaa1bbfb76.json => 154b86730fab49800d64f7d36ea96e3d.json} (100%) rename node_modules/.cache/babel-loader/{3189be56210dee99dc810ecc59c9ce59.json => 157abb669855c306f93f390a6970218e.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/1590285b9fdf303033d6e8179e6f6557.json rename node_modules/.cache/babel-loader/{58795b1d83e8b2638ac73ea5f23fb92a.json => 159a3b5ee174d7480b6d98dca41574b5.json} (100%) rename node_modules/.cache/babel-loader/{d31da5b8abdda8e7be11c5159d7ea074.json => 15aef85f6e2d114198a36cfa1b5a9678.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/15e8f103cd222e7bf849cc373ba08cb3.json rename node_modules/.cache/babel-loader/{63f4162f2931f4b58fe284f0a6324df6.json => 16298fcb496cda5bcd9ddda08b301471.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/16d5e1784b5732bda221678ee7f66dcf.json delete mode 100644 node_modules/.cache/babel-loader/173b667703aa9c9888f9bfe9fd5c905b.json delete mode 100644 node_modules/.cache/babel-loader/175be43bac3ac8b9c29e24f22ec46a45.json delete mode 100644 node_modules/.cache/babel-loader/1771135b9b7d2eda7cc9a237c4b3371a.json rename node_modules/.cache/babel-loader/{9ac00dc136ab2ea59727ef1bd0095c0d.json => 178f4bd8bddc6e6485a8f1f6592ae6c4.json} (100%) rename node_modules/.cache/babel-loader/{d77f98752ac8ee67da4beb137ccaec9f.json => 191ea3eb379fd0c22fc579e5f11c98ad.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/19609dea18a8f76852a79c095787b80e.json delete mode 100644 node_modules/.cache/babel-loader/1980f30803b1699f2dc94b4a4b3af3a0.json rename node_modules/.cache/babel-loader/{00783cc7b9b5d27203e218f7d63f14f1.json => 19d7429b9bbe2037e16248b66f09036a.json} (100%) rename node_modules/.cache/babel-loader/{61f755ac4547c5f58632f81ea3c58ec1.json => 1a2e1a791cc7f7b4cabdf1d1aa655ef3.json} (100%) rename node_modules/.cache/babel-loader/{31d39b6e18afc3a5105c5430c1c52047.json => 1a8c12f3597ab4b6178259889d1e0d7b.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/1b4b03193d4d06ffef6d687776d51a40.json rename node_modules/.cache/babel-loader/{9b8f66ceca0e66a002b58392001c2f74.json => 1bb39dee8a756421fcfa9a2dbbc17991.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/1bff546a88f9a37129e00adfa0305982.json rename node_modules/.cache/babel-loader/{959f253ac62ae7b43a8b043c8de524e4.json => 1cac95cd779b73631f2fdcc5153fe48c.json} (100%) rename node_modules/.cache/babel-loader/{c646b17a6d662e897772f425420d3e02.json => 1cf6e44cd128d231804b9a9388066ad2.json} (100%) rename node_modules/.cache/babel-loader/{fe727d81eaf78f91a139768a709a0332.json => 1d51830cbd7f5235c0475cfd177d67c4.json} (100%) rename node_modules/.cache/babel-loader/{a52ad99bfc6339443f4e352d7539fd0b.json => 1da1171f13fbc8ee63adaa90a4c28723.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/1dd80ac38444138f59c60574e1a91f4a.json rename node_modules/.cache/babel-loader/{faaf40f93c362ac38944089223b72c3a.json => 1ded27ff9dce08f5e1df9c01cddafc5b.json} (100%) rename node_modules/.cache/babel-loader/{c852789f129de2e1073fcb1fd1251ea5.json => 1e1d8af1251f285f15725826088ea4eb.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/1e2a170325abc25ef2d93a59492a8c3d.json delete mode 100644 node_modules/.cache/babel-loader/1e9865afc0eaeb7b1c92c49df4649f71.json delete mode 100644 node_modules/.cache/babel-loader/1eba58510716e5b9c1f17b8778947a23.json rename node_modules/.cache/babel-loader/{0cd9f8d2c0223159b1764824e362c5f3.json => 1ed13831254ca1c3c3bb98876b7f466b.json} (100%) rename node_modules/.cache/babel-loader/{a09c69c5a6a7eb06d54bca40eae66aca.json => 1efb2ed4bb770180883add718c80ec3e.json} (100%) rename node_modules/.cache/babel-loader/{622f5391a82978284559febe051b6aae.json => 1f23620c13b77b3cde52379b900c0883.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/1f4e31a731457565417b7743876bcd5b.json rename node_modules/.cache/babel-loader/{884b289b006cd8f42ca3c9a383494cce.json => 1f63625e1fddf24d08bc1ce4f8ecbd8a.json} (100%) rename node_modules/.cache/babel-loader/{376b206568c389c29b606e978fe84291.json => 1f8157cf7cb0a60a089eba5dff29a7fe.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/1f8794468e8026d190482fd9e6418bfc.json delete mode 100644 node_modules/.cache/babel-loader/1ff918b63534fb89983b12e8e7b7044b.json rename node_modules/.cache/babel-loader/{f1c3fa63e693d6ffee8d3ac6a145a4b4.json => 200e647bdf3e9cbac74d19f0e63a7f99.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/200fcdc81f0c8c2a10f7f8594ea09672.json rename node_modules/.cache/babel-loader/{209aa7ebbf178c8ef47349c0329e4784.json => 202648daff7290db4fae52094f3fd6fb.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/207d4e8220976cf82180a4d26a9b7dfb.json delete mode 100644 node_modules/.cache/babel-loader/2090122cc5ef12184e1ed61ee63d08c8.json delete mode 100644 node_modules/.cache/babel-loader/2092d13aa500fafeecc5ecc11856bc97.json rename node_modules/.cache/babel-loader/{7fbc7144af51456935875c642956ee9f.json => 2097ef1cc94052c46b647ec656cb32df.json} (100%) rename node_modules/.cache/babel-loader/{e0154ac0223d3100fdb6506d313ea05c.json => 2109a4fb0bc4ead21287f6e4c2b983f2.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/2124158a7e8e81fbd17f5e44060228d3.json rename node_modules/.cache/babel-loader/{cec864dc633a46c42e0adcbfbc7d2bae.json => 21c381f24fb848ca04c6bb1b80ca7c60.json} (100%) rename node_modules/.cache/babel-loader/{3db402ff8d95b335993b27d0d5832220.json => 221d652be3993a26bebddd973bde56a7.json} (100%) rename node_modules/.cache/babel-loader/{4aa3726af8149704f54e73c2f8901e09.json => 2232b3910feb15e3be4381e2113969d4.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/224503b81cb118ffc17e9b97c4744b25.json delete mode 100644 node_modules/.cache/babel-loader/225180acd7e32de9d099684eb5f144df.json delete mode 100644 node_modules/.cache/babel-loader/22b2e0f49678109029590f6cc8581f57.json rename node_modules/.cache/babel-loader/{87e28e97d6f5ce4276ebdda27f2b0a68.json => 22c27825734d61f2569abb2001c350db.json} (100%) rename node_modules/.cache/babel-loader/{f3e3f09dcb5e3c0b400681bb2c5193db.json => 22e0ddf8b3e317d68526036a5bca3abd.json} (100%) rename node_modules/.cache/babel-loader/{2da434c407fd7ce0693ae25df20b61a5.json => 23446da5f0765367ac33bd4f551c16aa.json} (100%) rename node_modules/.cache/babel-loader/{4baad76ae0af8f27733de3b73ced5a02.json => 23bf79bd8cb6620b917579367dad3772.json} (100%) rename node_modules/.cache/babel-loader/{7cf11da6d05d494badeb9ed5f34bd54b.json => 23ff5a23233618fb4ad4c8ed49dbfb58.json} (100%) rename node_modules/.cache/babel-loader/{ef27d0d80d58e31cd5b3f98c16113ccc.json => 24098bcd0598dce8d11d64cc0368772c.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/240a580b1d8e73da6f9b5fa60b9e01fd.json rename node_modules/.cache/babel-loader/{4101c9fda3d9bcba346cfd8e816cd087.json => 241871467865a3fe9611c13e26133fd8.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/2430335027c4972bdd6acb4e1f3dc2c2.json delete mode 100644 node_modules/.cache/babel-loader/245b1e8ee5ba77dd9fc7361925da0dc7.json delete mode 100644 node_modules/.cache/babel-loader/24b7363fb03c727ce9c0b2bbd1ab9f4e.json delete mode 100644 node_modules/.cache/babel-loader/25ad8fa7166624dfcc188445f48d1102.json rename node_modules/.cache/babel-loader/{e26588f1d0a407676db2c2f5937e431e.json => 25e348aff1b3ca3fcfd97deb7cef86a8.json} (100%) rename node_modules/.cache/babel-loader/{bdf7ff0bcec163d363635013f92a9b1e.json => 2633db245fbbda44f34c9fc44263bdee.json} (100%) rename node_modules/.cache/babel-loader/{cc9e1d10655d7a66fd787fbeb8c1c11c.json => 269a72f1094f2c0110166cab8f213246.json} (100%) rename node_modules/.cache/babel-loader/{a5cf0c44436319c616db47b3d18d12db.json => 26c0cd987cc21e7ddc54cb39e4c0aa80.json} (100%) rename node_modules/.cache/babel-loader/{08bd07d682b335a2e1bb7ec02771e7ff.json => 278d65d096f1f8756c35c59b6b884930.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/27f1f35662c8ca8dc68b7a096840d5a4.json rename node_modules/.cache/babel-loader/{afe2638e63f28c6f481c7aaed03ae237.json => 280d550dc0ea27208d5724246502ac8e.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/287760b7b9b6284151be9331b58d2606.json rename node_modules/.cache/babel-loader/{e1610f4ae4d2ddd6b27f3a3cd3322ee8.json => 28907966a43aac3f603312f556c551d0.json} (100%) rename node_modules/.cache/babel-loader/{8f0b98523c780c1b3f8e991d6c8bd7d9.json => 28d02980e27d8ecb1b7c1c8fcf9a5f3b.json} (100%) rename node_modules/.cache/babel-loader/{ed075bcd529723e9f41238be8c1d7398.json => 28f844c46dc7b1af8c43d90900da238b.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/29206e8065d98e36564c84446308cbb0.json rename node_modules/.cache/babel-loader/{e8e2a75f20cdba3b4591a020faed3a6e.json => 2936c0c47f06b4ae2b1b67d359e3f4e7.json} (100%) rename node_modules/.cache/babel-loader/{bd1f479a58192995fca9ca303e9ad662.json => 297547496c045b1725ea3557c15b3ca1.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/299585b78b47a619f8d91da0f5d8e1d5.json rename node_modules/.cache/babel-loader/{293442577539a00cb7a0ab4125716b75.json => 29a0630964561866a0e647ca1b02a537.json} (100%) rename node_modules/.cache/babel-loader/{1bc35a30d0d8853e320a53294503f76a.json => 29b5fc87400adb72c9faea113d680f60.json} (100%) rename node_modules/.cache/babel-loader/{49388dddc1b9496bcc11b76a56966080.json => 29f5c01ed305690a4afed56345894106.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/29fdc65955005a776d00cd8282e42083.json rename node_modules/.cache/babel-loader/{1b7990983ad915aaa36b99c3aad5ba07.json => 2a14f9b505e5309b20882350d38c74ed.json} (100%) rename node_modules/.cache/babel-loader/{76041676e502fe040122192c11dae874.json => 2a4e8f0ac810a577d265f5071ec66a75.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/2a637f85648ba054ed9893ce678c1879.json rename node_modules/.cache/babel-loader/{f9f525cc495a098aed7d4dd36e6a8cf9.json => 2abbb4ff32ceeb1af976d20ed4ff9acb.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/2acaf87b6cf0a907ac75d2aec978ae01.json rename node_modules/.cache/babel-loader/{3ad22e64c158124ef5634e1f7cc5ca2b.json => 2ae9390cfb00db617d42fcd8ad17c174.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/2afb85ec84b099c8b0ef381ef72e241c.json rename node_modules/.cache/babel-loader/{3d7941c337c028cbe7d85643e8cd128f.json => 2b04f81034bbb6a7ca4318d0cbf2ae1d.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/2ba60e10e30e5df74e7d77c67cff673c.json rename node_modules/.cache/babel-loader/{5251b89a2df3f3cb899c142f30e006f7.json => 2bab53ac894c568dbe08dc9802f1d93e.json} (100%) rename node_modules/.cache/babel-loader/{860bf0e88d1ece0248fb8ce1805d5dde.json => 2bad071f9f1d139d9f127601e53a398d.json} (100%) rename node_modules/.cache/babel-loader/{da3cc3b1817eeabd1c3a4d9c0872f9e1.json => 2bc606c41964a4bbfd2107f0fd6636ae.json} (100%) rename node_modules/.cache/babel-loader/{89e0afba0f5c7d1b4065698e944d8621.json => 2be51796bc4cf98251849c75c8209838.json} (100%) rename node_modules/.cache/babel-loader/{44f52f9e473f6ef959325bc61fd44180.json => 2beaf9b60c5b8c9d0607ee55854dcff9.json} (100%) rename node_modules/.cache/babel-loader/{e87c00b68a5536d9f9d829983ba475f2.json => 2c9e5a8a6e72439e0cface1195778202.json} (100%) rename node_modules/.cache/babel-loader/{e0e7583eb63911f7f8761f997424a066.json => 2d0bf6eea5611fdb307dd55c560c2102.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/2d252c931457ecdb3c13835d5bd8cbf1.json delete mode 100644 node_modules/.cache/babel-loader/2d4a34b6f85228825621808bdd76088a.json rename node_modules/.cache/babel-loader/{2b6c4bc3d07ed4eb86b57717b5a8b79b.json => 2d5a1bdb7b0247705f1ab1a1b31563c5.json} (100%) rename node_modules/.cache/babel-loader/{319e2100dbf0f8291d7572eca8d6c410.json => 2d5bd9860538210d82250103bfb61c04.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/2d8e87fb26f19b58ce99457747859124.json rename node_modules/.cache/babel-loader/{ca628434b540c18d8910d3da364ce5c2.json => 2dd885bd34367a84227977e8ac11e126.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/2e54a7cd2e782a71482c08f116147d38.json delete mode 100644 node_modules/.cache/babel-loader/2e7013c7dade5f1249d7d256543fe542.json rename node_modules/.cache/babel-loader/{392d11fa79a747740f266d3ead7a9528.json => 2e86d3fc937eb87a38c1215a20414fe6.json} (100%) rename node_modules/.cache/babel-loader/{174d48aef7cf3b68d5fb7069dd953561.json => 2eba8077cbb944f10bda52177a6e3df7.json} (100%) rename node_modules/.cache/babel-loader/{b34ff171134de19fb4266edface37716.json => 2fa1d1aa3feeb50b264abb427754bbdd.json} (100%) rename node_modules/.cache/babel-loader/{8f31b89e01feedb3969a38bfbce056c1.json => 2fa4e09b850c50bd604494bfd41acece.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/3009420674d7deeeb1f25f82832e3d85.json rename node_modules/.cache/babel-loader/{25c543a67d3a4cb282bfb2ceccc7c822.json => 303359bdb5f6ab345971dbb7298ef256.json} (100%) rename node_modules/.cache/babel-loader/{ff811f298f51a944a8f7a8f9fe9c959e.json => 30e4abc5e1c758181b1391a4d953f48a.json} (100%) rename node_modules/.cache/babel-loader/{e366f999168cb5ca592a8543d02db3c2.json => 31a50524d8e9592e9e34f1ea90586d2b.json} (100%) rename node_modules/.cache/babel-loader/{4e35127e137a0839bbde776b31e9f2f5.json => 3233b56f443e494937d6765714c4307a.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/326d2c558165f54efb4ac1cf290e0792.json rename node_modules/.cache/babel-loader/{60e17d24718e6e7ea8d5d8c4887355dd.json => 328547e36411238b8445ae278408cb84.json} (100%) rename node_modules/.cache/babel-loader/{779ba18df4a8563ea3c9225e25ab1615.json => 336d81415156b815da48d5275089606c.json} (100%) rename node_modules/.cache/babel-loader/{c04ce42dc37ba24630936ffc77877a84.json => 33a39c4e5567422e329e1ae82b4de375.json} (100%) rename node_modules/.cache/babel-loader/{7263e42a32584460f5c6a5dbbe72a5a9.json => 3427f32e4cb3f7dcc7f3ba446330af85.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/349e84943f811c436fd420a5e81d5ba8.json rename node_modules/.cache/babel-loader/{2e2a28712f7fecdc491ae740cb8198db.json => 34af939a0186da6aa95123ec76330520.json} (100%) rename node_modules/.cache/babel-loader/{bfb1a2368dd57da83a95bfc25f132cca.json => 34f3e67325159b44de6e8cbe5f31d682.json} (100%) rename node_modules/.cache/babel-loader/{0499dcd129662ea20b4f3e1767cc402c.json => 352331435ad7dcf97ac84912236732dc.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/35abb20c2c80747f21405a79586c4878.json rename node_modules/.cache/babel-loader/{c60224a72b4f634d69ca53a456838e5b.json => 3611af4c5a723edb1130a9b4308a6173.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/364a668cb600c25d23e5482549ac1581.json delete mode 100644 node_modules/.cache/babel-loader/3689a75da6d038282c7f048ef5d666e7.json delete mode 100644 node_modules/.cache/babel-loader/36ff4149098a1515abb71dd8787eed34.json delete mode 100644 node_modules/.cache/babel-loader/3701e17966c86954af9aeed0f8ca99ce.json rename node_modules/.cache/babel-loader/{671c50c5f4c754e9247531f27c1b9b8f.json => 3716053f637477aa235d14676e3e4ddf.json} (100%) rename node_modules/.cache/babel-loader/{bfd6ff8823e2deee5bbd94c8599a7bbe.json => 374121e5ac03afae6eafcdb97e62c2bb.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/37ae2153f6a0a136fd8425edd8e6fa25.json delete mode 100644 node_modules/.cache/babel-loader/382355cefd649fb278a8fbdb034add8b.json delete mode 100644 node_modules/.cache/babel-loader/3879ba2154c5c356769f2953a2c72d44.json rename node_modules/.cache/babel-loader/{0b75df1b7bafb6b7cf433e809bcac088.json => 38aa049f22885ed9225d8b0aa7da4175.json} (100%) rename node_modules/.cache/babel-loader/{880d452441fc4b3d67f0919a28956580.json => 38c55a093df9eb3e4d396a0271617958.json} (100%) rename node_modules/.cache/babel-loader/{fa80f5d2a8ea4938ab47002558929980.json => 38d02949f475b89b5e9c6e931236e575.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/390424a5ed47439796e9d5e7713b61c7.json delete mode 100644 node_modules/.cache/babel-loader/39965fd793e1cf9f1d5fbad97db90bba.json rename node_modules/.cache/babel-loader/{a47e2daec4a0cd6ef03abb50defc3bfd.json => 39c3b44747c15134d8eee47892715925.json} (100%) rename node_modules/.cache/babel-loader/{6dc3a11635eb86771cad1e6abf3afe5a.json => 39e00afd5c6c0087cb7898ed556d7ce9.json} (100%) rename node_modules/.cache/babel-loader/{dca2a8bdd59ec2523e19c4251b4bd23c.json => 3a435dc46846c857cb05ca2201120e4c.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/3a4ee0d7e21f5a791f19dd7131cb4272.json delete mode 100644 node_modules/.cache/babel-loader/3a51184c2bd86ae8939af6dd4c87bbc2.json rename node_modules/.cache/babel-loader/{e5f6ee8372f8fa937644b168ea3320ac.json => 3a8010df695136b7a827ef2a9fee9d20.json} (100%) rename node_modules/.cache/babel-loader/{a3b1ddab8e6e022905449a618352b585.json => 3aac8bfac41b48fb77de4101ca9b03c6.json} (100%) rename node_modules/.cache/babel-loader/{d09803663658b89cbcbf096f13c3c38a.json => 3aca63b31f1aa5d56381d2b283b25047.json} (100%) rename node_modules/.cache/babel-loader/{fcc2f5a10d7410f1d5622c408ca1b0d1.json => 3af7450126c24f645a863b4546568b90.json} (100%) rename node_modules/.cache/babel-loader/{16fa20e88f1a48558bfcc4763e4dd106.json => 3af8c23343f657cbf93c714fd629c631.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/3b120103a9c80bed543450946c362abd.json delete mode 100644 node_modules/.cache/babel-loader/3b742efe619951d6ec137959a6756e61.json rename node_modules/.cache/babel-loader/{eee87bca09728873252f0f9014d9b1bd.json => 3b7b27055e8914267dd566b1e381221d.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/3bf7a06a8d2e3ed7bb7bc01b07c2ee60.json rename node_modules/.cache/babel-loader/{1c0b30ab8694faf177241c24921e9e56.json => 3d11613f23d6d8839438900fc8a1315f.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/3d214661728907f9fcb77c5116e9b887.json rename node_modules/.cache/babel-loader/{962870113fe79508ae333979a1a6157a.json => 3d81a17619ae410df172500900c9cbdc.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/3dfeaeb9195ce756c9f551b082110ccf.json rename node_modules/.cache/babel-loader/{7f4ff4106486d495e40134d56bcd9e52.json => 3e2aadb53a35c8c10cb816f5c0819850.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/3e94d788cd5ad6384326368e16acbe79.json delete mode 100644 node_modules/.cache/babel-loader/3f28dcc44f1ed795f44716744bfbe6a2.json delete mode 100644 node_modules/.cache/babel-loader/4006d6559eb6bae483a682fccc6a7361.json rename node_modules/.cache/babel-loader/{11cbb2865b6c9c1bf0d729e89da97bda.json => 4054df095948fce69e01e1184cbd7e97.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/406e904432648154d29aad53a14d8ce2.json delete mode 100644 node_modules/.cache/babel-loader/408680022e7c387aaa4d059ad261ff93.json rename node_modules/.cache/babel-loader/{01aa198ec69cc867ed8ecc245cf30ab5.json => 40a162e1a0830d3f143cbf35b72811b0.json} (100%) rename node_modules/.cache/babel-loader/{6b650ebc805a740a70e275f3a091c3ec.json => 40a4447c2b5c0fbef95f843798172cac.json} (100%) rename node_modules/.cache/babel-loader/{b7de3960d99206eba0d26fd2a1669b5c.json => 40dab0b8fcfa0794820e7f74b58b1d21.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/40f78ad3b519833d2c0a960a2971e688.json delete mode 100644 node_modules/.cache/babel-loader/413dedb3f546c9b97365b3785cad759b.json rename node_modules/.cache/babel-loader/{93fb2e34ab1146117a35bad4470a283e.json => 416d59584cf02f1391690b57866422e3.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/41f42d834e1de5e03c9572f4fd3afb40.json delete mode 100644 node_modules/.cache/babel-loader/42377b9dd3fc368e8ae23580336a602e.json rename node_modules/.cache/babel-loader/{05f4a1109b3875d419658c72569585c0.json => 42b0648eaf2b58aea5b02bc81725436a.json} (100%) rename node_modules/.cache/babel-loader/{b71b198c61fc0d97a2a973cbb179c7f1.json => 42dce491ae4aeb7e02b4b3ca78740de6.json} (100%) rename node_modules/.cache/babel-loader/{72d1f4ca9333fe97be9857c6caa6fe64.json => 42e26f0cae03d428dc522642a98d64b2.json} (100%) rename node_modules/.cache/babel-loader/{d7d806e7a7a35e5620f2f59a327974b7.json => 42fd89a02d5b5bbf2334604564551e68.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/43c24af89d9f21e805df42095c5ac059.json rename node_modules/.cache/babel-loader/{4e349cc3e84d9954ee54f445de01a124.json => 43c71d9850a5a0b9aa0dd27efb3f79b7.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/441693fcc7ce29abd3dfad5e991f7bde.json rename node_modules/.cache/babel-loader/{2038d66bc396b27adcfb34ef212e93da.json => 44f74c39cfc9b41d44cd8df2a2f8cd93.json} (100%) rename node_modules/.cache/babel-loader/{655b4b57f6b174b63675c53c06c259e4.json => 4524754a6702ebf313cc1f390ddacf3d.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/452a49a441f1da38bbbcb68008d0dbf8.json rename node_modules/.cache/babel-loader/{0d5c958b5ef3e9d04b7fcc2c9031bdc8.json => 4533ae95db7653ad37011103a49b052a.json} (100%) rename node_modules/.cache/babel-loader/{6f8c921146e73a55a1996f0d55e12e0c.json => 4542793fe080bf34d9044209389c01d5.json} (100%) rename node_modules/.cache/babel-loader/{299919cd022a868e59373d44b256d71a.json => 45472e88a576f26c7cbef1406c2d11cb.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/4558384d4f936db9371a64234ef4476b.json delete mode 100644 node_modules/.cache/babel-loader/459020bc0a20c552fcc279e08ada8bc7.json rename node_modules/.cache/babel-loader/{f9576a29ecb92e900123a945893b4642.json => 45a63b5312a6e28903feca8189de9a34.json} (100%) rename node_modules/.cache/babel-loader/{57dbd2c36fc5234511d6a0a5dd083aa4.json => 45fcd1d16230472d15c078fb1d9c8646.json} (100%) rename node_modules/.cache/babel-loader/{e72dc367a3197e5a67ad10f2f35f48a1.json => 45fec8e3382bc959d5d59c8c2228286e.json} (100%) rename node_modules/.cache/babel-loader/{a8442fd17ae137eb34a54e10a67ceaa6.json => 467b4b99dd183196482e9ffb224fd769.json} (100%) rename node_modules/.cache/babel-loader/{3738a770e6ead1ff1bd7de1f7de7e9ce.json => 46cc4805aa0bcbff83676241b7ada79b.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/46f5908518e0362bef3a2acd82546a74.json rename node_modules/.cache/babel-loader/{8f8aca0dec48681fa0bf6e06c5e4a259.json => 476106c5c23be1a00ec416ac2041d652.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/47ed7bbc1b9c4df298e3982bdb5946b1.json delete mode 100644 node_modules/.cache/babel-loader/4803d3d10c8b2b6004b80bac9fd19a57.json rename node_modules/.cache/babel-loader/{5fa24374411f27d5f5546bbb16604e84.json => 4823a1e5cf07a48cf6940b25c42999ac.json} (100%) rename node_modules/.cache/babel-loader/{2ff1dba4cdfb3ee365da5d644481b910.json => 483f9b8ed305a446107eaf64b50a1518.json} (100%) rename node_modules/.cache/babel-loader/{8038ca48f11f065c466ee3a0f1fa5b91.json => 488316db197416ae6f39e7ce10bd72af.json} (100%) rename node_modules/.cache/babel-loader/{1dc0b7ed1ef93fbfd6961b99e5ad21d7.json => 48c1157afb148a03ddbc6c45759fa5ae.json} (100%) rename node_modules/.cache/babel-loader/{ba8214d5e330bba6748e6d541646233a.json => 49fec2d58e533ea691436ca870bc35e9.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/4a00ac1023fad6bbd2b8fd1e85684d75.json delete mode 100644 node_modules/.cache/babel-loader/4a07db1ca1eb718849d8f67ded2ccbba.json rename node_modules/.cache/babel-loader/{e83285984eac67c3f5eb75ef510f5b76.json => 4a10bad8f647416ac6be973248bb3e1a.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/4a694f9484564d5e729ee56d85b1cda3.json rename node_modules/.cache/babel-loader/{d470d77c09069a0baaa69ffd735eb3ba.json => 4a8015f26c5417e38b27eac630e1b689.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/4af20070e35e7825bfe3baf59e4aab6c.json rename node_modules/.cache/babel-loader/{5299d16b2c3792a89e16d83f34db3b5d.json => 4af392b7273a755f56eafe4f08e3e135.json} (100%) rename node_modules/.cache/babel-loader/{75933a3e9f14e88daeb83eac34170680.json => 4b34aa98cade6e8a8c629106bdd896f4.json} (100%) rename node_modules/.cache/babel-loader/{ef387b6466e6f02c81b61c96a4bf4679.json => 4b375ef2d85f25649e9d6aeca7775fb2.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/4c296325d875c4685e29e462c597e41a.json rename node_modules/.cache/babel-loader/{576ef0c3f54c2c9f28f870a88a43515e.json => 4c3c87f4432988a89661665d2edf1aa4.json} (100%) rename node_modules/.cache/babel-loader/{016a66b26311a27743357171e589e685.json => 4ca8e13279a60be9da1edaae1b3ca725.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/4d4f5ef71f46e9085a8d05c4cdb96544.json rename node_modules/.cache/babel-loader/{e89852d9cf88443d88a6bc30bd4c51b8.json => 4d762e7e31fd1b99aff27da21a2d8308.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/4dd03961ad094c4d0214838cd229baef.json rename node_modules/.cache/babel-loader/{40e4ad82d15b34a93ae6ff71499b2c5f.json => 4de517666af903b60a116900bedb12e1.json} (100%) rename node_modules/.cache/babel-loader/{f97e0de5d7534c9e93d3fc8e6fac0de4.json => 4e22cea1d53e96362af08972968676d5.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/4f15afe84e305fa3ca5be9c039520748.json rename node_modules/.cache/babel-loader/{787189eb19f12d6fcc28d534ebd983b6.json => 4f2d92e2110254a1690ee81d1f43954a.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/4f51a010adfd551b9861f21b66bb7f68.json create mode 100644 node_modules/.cache/babel-loader/4f635ea83a9f69ba5dbaf7b003a63dd7.json rename node_modules/.cache/babel-loader/{c36cbd44f5319902b331564c02ff2d66.json => 4f8bcf7e0ff3fdf73dab412f3bbe7aaf.json} (100%) rename node_modules/.cache/babel-loader/{45d25968914885bed46fb88455447f7f.json => 4fe8e3d3e7e3dd702d8991ea7743722d.json} (100%) rename node_modules/.cache/babel-loader/{1d27f5b5036ee8415f6902f8bd6e17f0.json => 506823a5691ea3ccae61eecc4d7a7d37.json} (100%) rename node_modules/.cache/babel-loader/{df8fcc8cfafe9c4996c64e246614927f.json => 5091e852dc976ac70ebd2a553c0a3e96.json} (100%) rename node_modules/.cache/babel-loader/{5975ee61b251e4caa6663c3f1f993475.json => 50a96322077042abb08335147456fb51.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/50cd5d2cfc4f5509aa9c43281403d109.json rename node_modules/.cache/babel-loader/{cc6930870d67e83ad2b38a2e41391a9c.json => 50f8cb159b974a5892acac82836f236d.json} (100%) rename node_modules/.cache/babel-loader/{e0098eff796970556b59a7646233dbb8.json => 516d21405f8c77f728698a238b503dd8.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/518ee187d8e7809baa67d7f3d0f4f6b2.json delete mode 100644 node_modules/.cache/babel-loader/522205fba99579dafbe0d31993bf86b3.json delete mode 100644 node_modules/.cache/babel-loader/5236de83a1248f716f2a3a1ffc2e424b.json rename node_modules/.cache/babel-loader/{3f87fa44ed0e81b0ef13badb186bf49d.json => 52765bb697a5f2e7b53f9bddfdafe9df.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/5289e5f1d7e3fb8acc3ec9bc0605b4d4.json rename node_modules/.cache/babel-loader/{758c4c7176cf68389b1b9159ee752652.json => 52a831ed1118a905e0a765c531b35e3d.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/52a992d5bfd410524c4476ec7eb6795d.json rename node_modules/.cache/babel-loader/{03ba5b6fbead41d0e0d81565702d0c56.json => 52b18534628e165da29cc45d1ec9e186.json} (100%) rename node_modules/.cache/babel-loader/{e1f49be71d3f554c14dfa4e74a320f43.json => 52cb832a4afa2f22dafb742b21184627.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/5393da8e014925d49024b0cb8de0f191.json rename node_modules/.cache/babel-loader/{1445696a4a27ce5580c1f84de71e38b1.json => 53e786c31c76b93c647f6a0a086aec30.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/542e8a67877e7584c51af6159103b400.json delete mode 100644 node_modules/.cache/babel-loader/543b865171d25ffcb0947641e58b4690.json delete mode 100644 node_modules/.cache/babel-loader/547618da8d8c35d45440d3abd54e952e.json rename node_modules/.cache/babel-loader/{1813efdec8c4aec2509e2fa4ebbb7d0c.json => 54fd87fe9e3ffd8a7aa838cf7efee96a.json} (100%) rename node_modules/.cache/babel-loader/{a87eac6af796caa1f8d1c81e405b4a18.json => 5505a23f7a88469e37d4ed947334525c.json} (100%) rename node_modules/.cache/babel-loader/{093376853e939580ce9a2c900cc279cf.json => 552a282389ade40d53097660af2e743c.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/552ef6cef34efd621ea3691595537905.json delete mode 100644 node_modules/.cache/babel-loader/553ee5fdc157e16216aaff55557da08e.json delete mode 100644 node_modules/.cache/babel-loader/553f21dbb8f679545aec54c5b51dc1c0.json delete mode 100644 node_modules/.cache/babel-loader/5578d51e8accccf60b356aea879fb734.json delete mode 100644 node_modules/.cache/babel-loader/55ab18ca155e7649f7ac1939e62fedbb.json rename node_modules/.cache/babel-loader/{2149986bf51d1219b2a0112969881727.json => 55b9943d9caf7397ea10720181abed46.json} (100%) rename node_modules/.cache/babel-loader/{4bbc5b4cdac19f20f91624790e7b1112.json => 55cba1336d5cb3c75630d155990fb3cc.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/55f53277b808bddbdc01a17a7e698ae1.json create mode 100644 node_modules/.cache/babel-loader/55f67f58807aec5b886aca73a0bcafd5.json rename node_modules/.cache/babel-loader/{0d98e3f3c8c415e94b8575928265f99b.json => 56639ffa58dbb0aaf8075e89664b8bc6.json} (100%) rename node_modules/.cache/babel-loader/{b585f1b7f7aee8b8ae34497570cd603e.json => 5699b3d7cf90194b72751abbf50c6eaf.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/56e713205bf93e1b331351441982e62d.json rename node_modules/.cache/babel-loader/{5293469ca50e36fe53d9bc9432062a1c.json => 56ecd4d0b0349784dd89aac1c208e8aa.json} (100%) rename node_modules/.cache/babel-loader/{fe949a2de1b9eb87a828b46fd0283c7a.json => 573effe89ebe5bc858618275d447c0dd.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/575233ecb9302997d111e55dc705a46a.json rename node_modules/.cache/babel-loader/{69eae0bdfffebd8b4c56d9d6e3af21ed.json => 586631fd1ad5d8ec4f7ba60d15343922.json} (100%) rename node_modules/.cache/babel-loader/{7a808dc9e75b55362d6ef509b10e6e0b.json => 586d74c397bd50017be61426f456203d.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/58bc1880c4e95781a3a07022d41c7dd3.json create mode 100644 node_modules/.cache/babel-loader/58c076edf43e092dc70dfeb7ef49e32c.json rename node_modules/.cache/babel-loader/{a856f9d4784ccdcf9bae83651d1616a2.json => 58d5471fbcd60b3a4e3c052bf13d6e01.json} (100%) rename node_modules/.cache/babel-loader/{dc64aabd6e427d22f85844e2ccd16ea9.json => 592d553129b410ca414e9766cd750812.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/599e8e8259c889e70fa664e38e43c455.json delete mode 100644 node_modules/.cache/babel-loader/59d4ccdb3e243127c33a50eb637c75e0.json rename node_modules/.cache/babel-loader/{1fa5979cfdf5b7d1c7f8f7dd5649f05e.json => 5a8ad9e99dbb265f5f4515477983ba2a.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/5ad2b634772942e0c9e9dafe988051bb.json delete mode 100644 node_modules/.cache/babel-loader/5add4aa0cb72040a5d76f1c9acdb9a79.json rename node_modules/.cache/babel-loader/{89cdc8158b2274415ddef14d44c341f6.json => 5b111a176e3041d2f3de99188918cf53.json} (100%) rename node_modules/.cache/babel-loader/{6deb77dc85dc745b046e628189ae3970.json => 5b7a275b674cceba5bf82ccff9938f24.json} (100%) rename node_modules/.cache/babel-loader/{94a66332c946111a83ef61373c358deb.json => 5b82a31266bee9576b746281d7150625.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/5bb630eba0e49a21df99dd2b70fe7276.json rename node_modules/.cache/babel-loader/{67c7f1ea1ae182a0d474dd2425ae75f4.json => 5bcdc83146ba1ba1d6c2aa4b319a9975.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/5be913e75a4507ed54397e7636774c74.json rename node_modules/.cache/babel-loader/{d591df1bbc0b42fb2ab2e0b003cf0daf.json => 5c5e256614228dc5cb0af271c334e455.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/5c76ffbe76c296fe0af13440aacb8738.json delete mode 100644 node_modules/.cache/babel-loader/5ca165f6275cad2c42d410f0de541e6f.json rename node_modules/.cache/babel-loader/{a6cf584079ca96d7b63f1e9308b3ea23.json => 5cb3ea1b2d47d92be30c5219967a1335.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/5ce753fc42a98387f12ea91a8a1a5f65.json rename node_modules/.cache/babel-loader/{96d07beb3ae34bb8e749dbecbf6c6fa9.json => 5d193b44922eae44b1e92d358ea45006.json} (100%) rename node_modules/.cache/babel-loader/{d4c9c6cabccf12e8a1b624f787f211e3.json => 5d80ea6c4be9b4538ec6de33b64120a8.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/5d9e74716169118d550362eb96f82853.json rename node_modules/.cache/babel-loader/{a06d52bbdcefbabc9d3801cfefe00aa8.json => 5e1f72e5e6a04238cbb0d9d63b32679e.json} (100%) rename node_modules/.cache/babel-loader/{f897ac853fa3d7087b1560b41cc766cd.json => 5e42dad24953204e67eb56b80dae4f1f.json} (100%) rename node_modules/.cache/babel-loader/{40e3eebbbb409e702e2d3dfa2518653a.json => 5e88cb992a3cd5a7c41f91aa0d674ecd.json} (100%) rename node_modules/.cache/babel-loader/{74e4971b9fa913e1025da27cf51689d1.json => 5e9da4e940afb79d23a8119c8b1493d3.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/5ea7719b60c98dbcf0fbf10caff671c4.json rename node_modules/.cache/babel-loader/{a6e358146c2d1448d3b2eca64f6a02a6.json => 5ebf5b6b0a9a46b22f59257a86d9a40a.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/5f207630b88686c5912963fc299d05ef.json rename node_modules/.cache/babel-loader/{e4b1a80a6825e609d353af388fafb65d.json => 5f44d97d2d45680c11cbb3d7f42e75d4.json} (100%) rename node_modules/.cache/babel-loader/{64ddbcacc9b8a4d8cb8b2e2c373b76ec.json => 5f7e474ed01076df14590cf47c0b269b.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/5f850de9340d92b0c8257fdde7dafe03.json delete mode 100644 node_modules/.cache/babel-loader/5fd3347f421e6000d4a40bc48bc852dd.json rename node_modules/.cache/babel-loader/{d7f51d87d542050dc50803cab37d3baa.json => 5fef94218fe0a419eb8b6440ebfab499.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/6040c46ecd77630d2d49c47365b3d2dd.json rename node_modules/.cache/babel-loader/{f6ac2665738c42bde996bf1c5f2485d9.json => 6064b5d5505acb78b2c441cb1f80d1ea.json} (100%) rename node_modules/.cache/babel-loader/{f73a1a3a81bef41d4e92bcd4147f3353.json => 6085cb313cac119ddfc195e4a878c1b5.json} (100%) rename node_modules/.cache/babel-loader/{370f86ca9b1fe80d8b11878bebe6f1fa.json => 609ba3e1a45d6ed5e9edc70999fde1d6.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/609d4e296621c63e4bbf7f72a565f6b0.json rename node_modules/.cache/babel-loader/{c9bfc6c567e86e7cc4e4c7e6c1c6942e.json => 60b36b8917bcbd3c16241270d92c3390.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/60c9ca9f662dc32a5894d7f1dfd153e7.json delete mode 100644 node_modules/.cache/babel-loader/61037b77a7a128d55688742dd432066c.json rename node_modules/.cache/babel-loader/{7d8918fb8e092b7f6ed3bffe97aa0807.json => 611691062dc3caa9b971da0bd6d8a43f.json} (100%) rename node_modules/.cache/babel-loader/{e06516942c56e4f9c5684493605f4bab.json => 61281309ddb302e390465cb6f9cf69df.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/618b0f7de67720f7e16a30ab58456287.json rename node_modules/.cache/babel-loader/{3b34e0636ac3c58d6f457cfcbdddc136.json => 61aaa9d2def9e1b4ad5d6271b4c4275c.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/61c129e79452518058019bb0bfd591b2.json rename node_modules/.cache/babel-loader/{8526754efc5c1d174aec040f23a64b15.json => 61d5f7c0b2a8d08d5c5f1130106e5ffe.json} (100%) rename node_modules/.cache/babel-loader/{041542de5bad319dd314ed35ca14e07a.json => 61e840acd397363b7d869b8f92999d8b.json} (100%) create mode 100644 node_modules/.cache/babel-loader/62873338c8d45fb2c55cf73d0ad1ee8a.json rename node_modules/.cache/babel-loader/{9410cfbdb2b09c647d1ec2877458b169.json => 62ab97894c13818775bc5f7aec790f6b.json} (100%) rename node_modules/.cache/babel-loader/{333c37d395d2b106434d2f976703d6eb.json => 62dd13ecde83cac95e500cfb8a6792ff.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/62ef066c1071d556b71879ca376c074c.json rename node_modules/.cache/babel-loader/{e5d5f9aea35b12ec01a39e3847613554.json => 6322ad3dbefc2e2ac7deda09b25ab90e.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/63337c9ed90d2cb537f6233294648848.json delete mode 100644 node_modules/.cache/babel-loader/63746439e4cd12fce43c7472abb31abe.json delete mode 100644 node_modules/.cache/babel-loader/63978bb4adc6942fecdd8f8ff3f6c407.json rename node_modules/.cache/babel-loader/{f86b7004eb4c8eb7c9129d58b3847175.json => 641304b86f32fecfe7783113867dccf9.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/6428e6328c9f74f76167f5c6c7fb9c43.json rename node_modules/.cache/babel-loader/{f7d6b71561a693e8045de42cdacc5e87.json => 6475d4b81aa1714149b7d7f6bfe44040.json} (100%) rename node_modules/.cache/babel-loader/{e7e00b207474b71fd1d19c491bff4e18.json => 64d5f1ca44ac208516099a1e21cf7ba4.json} (100%) rename node_modules/.cache/babel-loader/{2e2defb9365ac4b34e197241e7939205.json => 651bce1b41d28131496a35a958eda2d5.json} (100%) rename node_modules/.cache/babel-loader/{1da7efd088abd13235d4377d3469811c.json => 65367d347b28bed14f1ce1107301642f.json} (100%) rename node_modules/.cache/babel-loader/{ef50c82bfd205a6fe5a8ac82fa521ad5.json => 658bdd742daf72a3a17e858846e92a2a.json} (100%) rename node_modules/.cache/babel-loader/{6b6bd4d58747427fc1b5038168393a51.json => 65a0ac3910c661ea1f236c78f1407ab6.json} (100%) rename node_modules/.cache/babel-loader/{88bfa32b3258472af2ce9edd93050fba.json => 65cd8635de69c7a6d18985ab3ce5384c.json} (100%) rename node_modules/.cache/babel-loader/{123482a32acad8212fec0d8a83ca317b.json => 65db7a66516caae7e2d042e497ebdf77.json} (100%) rename node_modules/.cache/babel-loader/{62061d77851dbdfcc17dc31c7bd98902.json => 65dd2e8d571d89d65e06e1206547a851.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/65f4285912c8aeb364fa584028fb7057.json rename node_modules/.cache/babel-loader/{50a75a1c98404a5022c1e683424b1679.json => 6643973611123243a213e4c5565c83d3.json} (100%) rename node_modules/.cache/babel-loader/{b749bdd6bb69abe12f6d5f11a5818017.json => 6689237044b7d88cce0d7575ecbdc909.json} (100%) rename node_modules/.cache/babel-loader/{a139d2ec265e8cdddf9290f249b309b1.json => 6699beb1a33aaa2e43af9b0b94cc8500.json} (100%) rename node_modules/.cache/babel-loader/{5859715f3d7d3b3b7a217ca7eb2ad9dd.json => 6735930d9b0208263d718b8a0f133091.json} (100%) rename node_modules/.cache/babel-loader/{f1f07e93cc2d142e7437960a59d14190.json => 6756a177d8ae56b15b5515426b781b85.json} (100%) rename node_modules/.cache/babel-loader/{ee82a9f9e1c70324536f3cdc289fa77f.json => 6772bda76a2974aebb412dbbc57379f0.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/67767303a11df8148f830d2d071bb91c.json delete mode 100644 node_modules/.cache/babel-loader/6776f48dee75bf3fe1e67d0d7ac495a1.json rename node_modules/.cache/babel-loader/{4aefe4388c53fb37f416045113fe3ede.json => 67bc63a4a9ca36e47b3cebdfb42930a2.json} (100%) rename node_modules/.cache/babel-loader/{756b823f6be571b3738ba6ded7246372.json => 67eed3596e482819ab89c80e5a899729.json} (100%) rename node_modules/.cache/babel-loader/{859eba582a220855fda1770ca6555130.json => 686a8807590c4b7ac0e728c593b7d36c.json} (100%) rename node_modules/.cache/babel-loader/{1456473922ff658dcdc96dd1b201f1ec.json => 68b141c19cfa43f328ff48ed283fff48.json} (100%) rename node_modules/.cache/babel-loader/{95d3c4df12e456856b414681c02a6e81.json => 69414e1c6cb4f0c34bbc7e52887e3a22.json} (100%) rename node_modules/.cache/babel-loader/{ffbecd3aa4770171ac21fca7a00ddc94.json => 69731bf30983736acef129b0bb92ac0c.json} (100%) rename node_modules/.cache/babel-loader/{dc1eb817c33a9d0a07a793e06869fa1d.json => 6a10ff1cd9c4c23513e2daa1d62f85f2.json} (100%) rename node_modules/.cache/babel-loader/{4ee4f1a4d7888fb1921c7cfb59193d02.json => 6acbce38d21b9897b17d94a504d21bf8.json} (100%) rename node_modules/.cache/babel-loader/{0ae9d26bc1f61ec1f71c853396535ae7.json => 6b08c247bda7c3d190bd7f95e3f70979.json} (100%) rename node_modules/.cache/babel-loader/{268bdc94e590ea3c4ab0bc726aab8b07.json => 6b0d76bf8892c5f4214fadefbf639b67.json} (100%) rename node_modules/.cache/babel-loader/{829be8d122c2a65a69d503a69953f712.json => 6b67d29609dc0d551956b4043ac01327.json} (100%) rename node_modules/.cache/babel-loader/{08209ccb7b4b235540ed9f70031a0b72.json => 6b86150b5bda9c4ea45623b2b1b13e83.json} (100%) rename node_modules/.cache/babel-loader/{249d012de3a41e6f7e25b3388ed006a3.json => 6c072ec7dd7e9c3ff9dd2bd3049267ad.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/6c121ca0f35a59eff73d171a6c41d02c.json rename node_modules/.cache/babel-loader/{5930b0a0208e4cdc9e51854482bb526c.json => 6c3a054c07c9a1ca62374d3413ef2a57.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/6cd02039bc6232295b3a13b0ccd66c6f.json delete mode 100644 node_modules/.cache/babel-loader/6d41da2b9907589efec6391a173d692b.json delete mode 100644 node_modules/.cache/babel-loader/6da9dc74811d4c7fc5c84c8856c01de4.json rename node_modules/.cache/babel-loader/{a1e7487e183a7543ba858f82ac496446.json => 6ddfd4717494aa97f0da7501177772fc.json} (100%) rename node_modules/.cache/babel-loader/{7f2b30a56bd6285a01786b2a82491df0.json => 6e1969ca4bb332cbb3a9f53a365bfe3d.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/6e1a5457f12ac9007cb5e05e95ffa333.json rename node_modules/.cache/babel-loader/{3dbb00eb16570e8dc7ae26c89e2f9cde.json => 6e34c05ffc04060b0a70fff6c5fbe50e.json} (100%) rename node_modules/.cache/babel-loader/{758288dce718c58e8bad646698d013d9.json => 6ec6687a14d33b409425760d8de91c63.json} (100%) rename node_modules/.cache/babel-loader/{36212af8908d879aa7b8ac3b7e372262.json => 6ef44ec15c304900bddf5a19a31d9876.json} (100%) rename node_modules/.cache/babel-loader/{1ba4588136500198fcd88faf0d846345.json => 6f1102b62b6acef76013f599c13ab28d.json} (100%) rename node_modules/.cache/babel-loader/{4c1f954526a78f59835b225e1f05e3ba.json => 6f31d9575c1a366aa7070cab0edc66be.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/6f3f5a86cc9452e02dc5cafba985bfed.json delete mode 100644 node_modules/.cache/babel-loader/6f49dfb38e73f5138be946f5bd2114db.json rename node_modules/.cache/babel-loader/{96e7fbcbc20a35ed3f2f1b8944ef7528.json => 6f6414e52fae88fe8717b67ddf32bb62.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/6f7bf086b0bbf2a8bc4688bd248841f0.json rename node_modules/.cache/babel-loader/{ab5a4134681ed6bf166c9cf79f0f9a46.json => 6f9a2a8b89ff3ed650c0da891959f20d.json} (100%) rename node_modules/.cache/babel-loader/{b4bf09f384962ba7226235b1ec6ab8e7.json => 6fbe7a9968904b6c73c2b859761327af.json} (100%) rename node_modules/.cache/babel-loader/{ceed8ec91a622017c4f8d099b32dfcc8.json => 6fd9ad97f696f441b5d3bde4448ea3c2.json} (100%) rename node_modules/.cache/babel-loader/{c1a83320674165856065a17235294da2.json => 6fd9f7b01f1da05969364c89fac60504.json} (100%) rename node_modules/.cache/babel-loader/{8b072d830627e87089e1a5eede008907.json => 6fe08d4254ea3b7bf393d3358b1bc8a3.json} (100%) rename node_modules/.cache/babel-loader/{66c92ed10fe5e0d79ee6c49aa9e796c3.json => 70048404ae3a32842a5a5a8349426e43.json} (100%) rename node_modules/.cache/babel-loader/{fccc9f706e55b6c99f5b0736c1a00c43.json => 702392a65fab33a391a037937a7ec9ae.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/702a92a3edf1981ef5741b0660534dd6.json delete mode 100644 node_modules/.cache/babel-loader/7048f1867aa3e7857de8d8573b631d43.json rename node_modules/.cache/babel-loader/{d5c69f9f5699a254039cc55c7c28f444.json => 708e408417c504706c3fc83a2d6ba279.json} (100%) rename node_modules/.cache/babel-loader/{ca1900c5f5dc0c39a8f29eaf7152004e.json => 70a43bb758b44d150f0e9814be7152a6.json} (100%) rename node_modules/.cache/babel-loader/{e3ce3bf3e2e05987ecf6812fed926d99.json => 70c1b56b1444b160aacc854bbd9bc68c.json} (100%) rename node_modules/.cache/babel-loader/{7cf2c275a78903bb689b0b9a896a923f.json => 7103cf4361b7c96db38af647604c3c2c.json} (100%) rename node_modules/.cache/babel-loader/{62dd7df309d0a12e1bf4bb2c2d89d2ba.json => 71724b89bcf20a8f33c504ff0593dbd6.json} (100%) rename node_modules/.cache/babel-loader/{acb3904f878a391b859bccf82b3fa9d6.json => 71c18f67883ab68ed48003da6e3bb34a.json} (100%) rename node_modules/.cache/babel-loader/{139000c6887e286b3a12bbcfe3f9f16b.json => 721ad4b062a9507791148b75066f9ea0.json} (100%) rename node_modules/.cache/babel-loader/{9c488792239747b0b6b6dddf99d3675b.json => 724e3d5174a723a29cbd5648f1f3aef6.json} (100%) rename node_modules/.cache/babel-loader/{28b63ddbd8f9b08ac4889c8ef5d6d5e5.json => 727f9d8d332553caa918104e01d4265a.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/72ea23e5c72a7709140fffef7fed021b.json delete mode 100644 node_modules/.cache/babel-loader/7329c30b608eeef675d5d9a68c892026.json delete mode 100644 node_modules/.cache/babel-loader/741396d4a29a86c7f09b5157b89ba3b9.json rename node_modules/.cache/babel-loader/{dfae46293d2fc643485d1aa95d677e8f.json => 7427a26f7ad731bd48097e5caf23e662.json} (100%) rename node_modules/.cache/babel-loader/{15f200b951c15f52df9c72e309c263d6.json => 74399fa1d83e6b02ccd51e9f652cba31.json} (100%) rename node_modules/.cache/babel-loader/{ccef774c5d2fad93800486b15b8f73e0.json => 744abef1d6820540f09d6bf7a636a201.json} (100%) rename node_modules/.cache/babel-loader/{9892c2b023dda995bfa91c25839ee674.json => 74650885ca68923d10a8f5fc73dc9008.json} (100%) rename node_modules/.cache/babel-loader/{18cd7999da4cabf9fbb8aeb550fc27bd.json => 746c65a6b2b0777a896034251f23951d.json} (100%) rename node_modules/.cache/babel-loader/{5170bbba564817a51709734f94f8fe4b.json => 7489eb5d514add341849a90b33dacb89.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/74a600d6af9cd3a00a6321d47f25c9f9.json delete mode 100644 node_modules/.cache/babel-loader/750f1b1dd7afea7f9a893f9c605402d8.json rename node_modules/.cache/babel-loader/{1b846f328bcd4f8b163a575af8a80560.json => 75625d99c2294e6557359e37387dfd85.json} (100%) rename node_modules/.cache/babel-loader/{d9606b7a5cb04a1775236791ed40a5f0.json => 75640e465b030cf51dc8ffaf9f81b2b9.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/7587fd6621f05f74681b3ed9f9464a14.json delete mode 100644 node_modules/.cache/babel-loader/75c054b2d0b1c7efb3ca8031a87e588a.json rename node_modules/.cache/babel-loader/{45dc23319c9adac677fb1054fcfb021c.json => 75cc6fab08261b227769ba878b568be7.json} (100%) create mode 100644 node_modules/.cache/babel-loader/75df9c3376fe66528d333f3137f83894.json rename node_modules/.cache/babel-loader/{3f5ececac1cc99c3b2cc34d8600a0b0a.json => 76637cd54942dd9abdc7a96e994ab69d.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/76c6ead106e49dc2f4d9dc6ad97a964a.json delete mode 100644 node_modules/.cache/babel-loader/76c70f15f68edaa2072c4cc3de31e893.json rename node_modules/.cache/babel-loader/{8f8ceaef4e6df541008ed3877f203dc8.json => 76df694e9486e58fe991e43c547990e7.json} (100%) rename node_modules/.cache/babel-loader/{bc5f8449881af5510180bace1076302c.json => 770d06f8b350318e4d068d94a8f1e11f.json} (100%) rename node_modules/.cache/babel-loader/{811aa595ff223cf9ed5516d773a1f19c.json => 7722519ebfa18e4ddecd743229be66d9.json} (100%) rename node_modules/.cache/babel-loader/{2d92ec06fe47419d6b18993b50a26539.json => 773c3d27ffc35d7767d6f0f973e0dd85.json} (100%) rename node_modules/.cache/babel-loader/{955b99dcfb299688e28f7d5b4801d3b4.json => 77c752daef04e091cf1ca0d25fa5c59b.json} (100%) rename node_modules/.cache/babel-loader/{0ca7f6f94e28f96efe17f0666b274c31.json => 782218a9477f0a5d784b9f2ca25174af.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/78571a0314870ab0ee4ffc7816f9696a.json delete mode 100644 node_modules/.cache/babel-loader/78baf5190c3dbb9cb2bddd371543a3b2.json rename node_modules/.cache/babel-loader/{61f2df463ff886ff9b35987eaf36b552.json => 78f4f780434ffd156892cc1c173dacbe.json} (100%) rename node_modules/.cache/babel-loader/{4a276e036ae2e770c1ebbebb0f83ae9f.json => 7925dd2b3c3d1b3c02c076383abdb91c.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/795271493cee73052a99f1e021b92897.json rename node_modules/.cache/babel-loader/{2510c64459832e581fd42c7b4ee5b232.json => 798bafcf39ff54acc02fbb213794d24c.json} (100%) rename node_modules/.cache/babel-loader/{deaca552cf47c4b8353b7561dc7d03f0.json => 79c876ee42fd189de2fb456c13f2a06f.json} (100%) rename node_modules/.cache/babel-loader/{cfae4cc1c903e9ea88446ff0a1dc13c9.json => 79e6fdf635d6dc20489d49267c3bc31c.json} (100%) rename node_modules/.cache/babel-loader/{8207892ced4a0d1b23ebf48fa1c60d02.json => 7a599e531edb93cdb281fc6c836db34d.json} (100%) rename node_modules/.cache/babel-loader/{50ec33a0280bcd2e25f98228eabb7261.json => 7a6a5d50d23ad34ac6676f5d58537e37.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/7aca7b5e509845dd879e52a2e20b90c8.json delete mode 100644 node_modules/.cache/babel-loader/7b13473088255e76ed4fad7d0ea92a58.json rename node_modules/.cache/babel-loader/{b3f033418cfb03e83a8ab11ff3e248d9.json => 7b22301206b24bb30bfad95f5a299ceb.json} (100%) rename node_modules/.cache/babel-loader/{b193ebbaaa1671ab2ee6db8933ade599.json => 7c1c0884ca5ec4a519a081a7beb3e59c.json} (100%) rename node_modules/.cache/babel-loader/{d67a2abb61d46b2d44d2e096ac69cd40.json => 7d7e857d8e351234d59386a3d933783a.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/7dae829cab43eeeb247c64434d1309e6.json rename node_modules/.cache/babel-loader/{ac1d98b57240d870542edd5a63cdcc9b.json => 7db68019db5bfe97292d91800221c745.json} (100%) rename node_modules/.cache/babel-loader/{05bdb4c1de23c8a8b160464db3a74028.json => 7de46306b11f28babab308f06106a682.json} (100%) rename node_modules/.cache/babel-loader/{734001c8b3010f6179023d1f590ee63c.json => 7dfb497bf3b79fcc70c6e23dfe4e61f7.json} (100%) rename node_modules/.cache/babel-loader/{f91aca82ebe57b307c4ad026eedf43b7.json => 7e486f698cf2811678153f2a0648816d.json} (100%) rename node_modules/.cache/babel-loader/{6817dcf979e603cde59647e42275ce56.json => 7e60119acc8e8ed5ecf4a864d1b7fa8d.json} (100%) rename node_modules/.cache/babel-loader/{0f1bf5252e5ea43cd7a42628986559e6.json => 7eab868ea3166df98d18646669913c2c.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/7eb68a87c9153084b47a2542ac41d638.json rename node_modules/.cache/babel-loader/{bb608edd18ac1fa90fb40028a05bf069.json => 7ebef68d3ae55fbde5103dce47bab997.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/7eec6c989ab72658a981f53f753206f6.json delete mode 100644 node_modules/.cache/babel-loader/7eed87b3dc8295459f6a23bbe76aa4e2.json delete mode 100644 node_modules/.cache/babel-loader/7f066dbcfcde88004ff2ece05ca42e66.json delete mode 100644 node_modules/.cache/babel-loader/7f601d5f619a83fc0db7e4c9e69b1ce6.json rename node_modules/.cache/babel-loader/{a329b8e19cac31aa211de583db96cab9.json => 7f69dde7c30c8554ab78ead1515d5460.json} (100%) rename node_modules/.cache/babel-loader/{5121a56fa67a0587e9b0098c88350258.json => 7ff63336624a1a035698671055be6cff.json} (100%) rename node_modules/.cache/babel-loader/{a788f1572ea1872bb73089ab8bcc6a8c.json => 7ffe88fd08ac05efe2bac59c4f62e73e.json} (100%) rename node_modules/.cache/babel-loader/{c7ba29ebe0b3fd4850e5b043230a9222.json => 800a86d80897b1d0918d1679b594487f.json} (100%) rename node_modules/.cache/babel-loader/{fe2bd8c828a82e017f309b4f61bb10e8.json => 800e392166846596be0de64499343259.json} (100%) rename node_modules/.cache/babel-loader/{3646d461daa79f7b24eadf40f051a026.json => 8045455e0bb9db47687233d8be3fd147.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/807ba43dd8a0e3c7af78bcf731f46475.json rename node_modules/.cache/babel-loader/{ee01bfa6444bc565eb48d1f38b457f46.json => 8089d6b01966929f2a72e69de259a91e.json} (100%) rename node_modules/.cache/babel-loader/{3d81a8d921b910e81c3808af100a8901.json => 80dbb09d5ae8072b72a5e2cadbe7f860.json} (100%) rename node_modules/.cache/babel-loader/{bc2692ce7c14112d1571b15b34df04bb.json => 80e5f5cf3fdc18bfde9de5e8e3425311.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/811ec0959785e5a0f5df5c48fd3e828b.json rename node_modules/.cache/babel-loader/{7efe6dd9589961d9ea59733ce697ea1b.json => 8271084cd63381c7b7f47baaeb70cf44.json} (100%) rename node_modules/.cache/babel-loader/{437db098364abe300887970af093b50f.json => 82874e413156e6ecf52c6b33892af8da.json} (100%) rename node_modules/.cache/babel-loader/{6432a08a647dd5cb077edc26b49a9181.json => 82e2001252440cf4e5e22d0275508ebd.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/8366daf4f8cc9d6f2914d8f63c9b8d10.json delete mode 100644 node_modules/.cache/babel-loader/836c4e03c9cd831839cc106d81c77707.json rename node_modules/.cache/babel-loader/{7268176495a1c244c290624e0b0a5123.json => 8374739fce69672f8c9f5209d58c13af.json} (100%) rename node_modules/.cache/babel-loader/{81c7556c92f08231b0a4cf536f611229.json => 83ca6908c4304b1acd46dac9521b0b04.json} (100%) rename node_modules/.cache/babel-loader/{c4074f4064c41aa01359e126ae7d95a0.json => 84559befd6b40a0410ceae520c77a774.json} (100%) rename node_modules/.cache/babel-loader/{92fd7867e58ebbed643c8209d166f0fc.json => 84995317f480cefb48f11867ce4818a0.json} (100%) rename node_modules/.cache/babel-loader/{1fcac8ae089766da3299197f62440faf.json => 84d6e54b79f31afa1cb012103f131f2d.json} (100%) rename node_modules/.cache/babel-loader/{51ff39b728db5fbe3262ab688c8c839d.json => 851a73d8fd43509886eda676ee54fdff.json} (100%) rename node_modules/.cache/babel-loader/{db446643772205d300165e282667a886.json => 85636bd8a5bd98f1f2dc29faa0c14da2.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/85a97aa65a0965aafdc4bc3f68e1eddf.json rename node_modules/.cache/babel-loader/{927faa8cfe6e7489e1ee4176631e06c7.json => 85b2a98b108c1d857b66005d95ef6cdb.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/861badcf0c9e163c588aa22b00965f2a.json delete mode 100644 node_modules/.cache/babel-loader/861d5281295d1c8ae0eb5bcf39301a6d.json rename node_modules/.cache/babel-loader/{07ba2792a95ba597b5a68d6193b4d054.json => 86612184f3cedd068a1d1413cea7abb9.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/86840bd404e933bf8e03d2ece54f8839.json delete mode 100644 node_modules/.cache/babel-loader/86adad3eb0218f740411d2bf890dcafc.json rename node_modules/.cache/babel-loader/{67869a729b85b9116a66e9cc800ed22e.json => 86c870b2c4bc81fc1a1dfc37d54cb47b.json} (100%) create mode 100644 node_modules/.cache/babel-loader/86e8e5568f3e16f77b14b107d536e7e7.json delete mode 100644 node_modules/.cache/babel-loader/87045604c9711b0ec332ef9f4989763b.json delete mode 100644 node_modules/.cache/babel-loader/8723345a7866626aa1862aed19840dc7.json rename node_modules/.cache/babel-loader/{59f9041cc7c61fc01889a9bfe7ffa095.json => 872a75a9635892191dd5770a144c14e5.json} (100%) rename node_modules/.cache/babel-loader/{388fe3a498742073966cea2566e9b8f1.json => 883708114260a43171fe71e5517408a4.json} (100%) rename node_modules/.cache/babel-loader/{68956ed214e411a1af3df08009a03e01.json => 88b133e2e313cd30a8e745c27ac6c36d.json} (100%) rename node_modules/.cache/babel-loader/{4e6c0378e3479946cd493c49eef59277.json => 88dda885aa3818ae80f7dd5a4d75b882.json} (100%) rename node_modules/.cache/babel-loader/{07e3546d2c96f2feaa22daba256b071b.json => 89056729a4d807652656593e53490c86.json} (100%) rename node_modules/.cache/babel-loader/{1baa0c86e0251c382c34e73dbcdf2ea6.json => 893a5bd6fcf9186daff6a638013eed52.json} (100%) rename node_modules/.cache/babel-loader/{8525ba4056b38186ffa35be75ca16340.json => 89d3a545de44cdb3a452d1f491aed6bc.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/89d7703e660a99fe7bfa3b011ce00ccd.json rename node_modules/.cache/babel-loader/{109217aa882134995b529206594658bd.json => 8a706d1217e538bee873aa4dfd8434bd.json} (100%) rename node_modules/.cache/babel-loader/{545eb5c73967a8a9ce502cef631d7eaa.json => 8a8b8b24d47141a1d5fe3c30b2c6590f.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/8a94a73712acd778bd4e113561aa0567.json rename node_modules/.cache/babel-loader/{150fb7369f20d6d6eb7725d366c5680d.json => 8aa22f9a5b0fa7115752e9862bb11fd1.json} (100%) rename node_modules/.cache/babel-loader/{c2854b4177f82f664326786061270021.json => 8aca209ddb1b12b1167a2a1c30edd917.json} (100%) rename node_modules/.cache/babel-loader/{e20796682a22116ba65992a200b42065.json => 8b03a72a6a2336677671a679d3cc95df.json} (100%) rename node_modules/.cache/babel-loader/{a155b97432e35aae298b3c7033d1bc02.json => 8b04614bd0aaa4eee64ed405fae437f4.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/8b78964f26b881ec4730bf4c1b5dd1e0.json delete mode 100644 node_modules/.cache/babel-loader/8b8a303e07a06cf5efb2dc0923c485ff.json rename node_modules/.cache/babel-loader/{7953fc002904e3bd6f7ec4363a7c40af.json => 8bd6bcf74c1b3ed2baf64214be382749.json} (100%) rename node_modules/.cache/babel-loader/{15f4a77aee997a9159d56045e56c33e4.json => 8befcf7c5fb5a516af5e387573c59f80.json} (100%) rename node_modules/.cache/babel-loader/{927742c1bf30af8544907eb09e86bd6f.json => 8c193a4068b7187b735fc7afe915d7d7.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/8c23073b703f52891b8738959add1e6d.json delete mode 100644 node_modules/.cache/babel-loader/8c50e9f3bc991eac7eddc02e8999eca4.json rename node_modules/.cache/babel-loader/{38cd435c5ce82f92ec3161eb7ab317c3.json => 8c7712fe12e06916518b0f0f73d7012b.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/8ca07280cea3aaf538152894d2440b36.json rename node_modules/.cache/babel-loader/{f9b9c9b6e2e4c5a26e93dce6b9a87e8b.json => 8cdb57472aa29b0a4991988d38d8d65d.json} (100%) rename node_modules/.cache/babel-loader/{8aba4e3b9d7095b980156cf7e9d1fc70.json => 8d1a9c30d867b052ce2b4e16d8eb1218.json} (100%) rename node_modules/.cache/babel-loader/{33e2d243ad8402436feffd8948f906f2.json => 8df4ab1d5653d37872fd406a3a921cda.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/8e8727bd1c09428f7d4a52822a1b542e.json rename node_modules/.cache/babel-loader/{bb789d84174568522fd1299185036599.json => 8e9fe750bcf96c4c856edbd3105f829b.json} (100%) rename node_modules/.cache/babel-loader/{1b7fbab6f50e5475d6ba54abc3621313.json => 8ece08ed3f97bd98b4b4e6e7f6cdffec.json} (100%) rename node_modules/.cache/babel-loader/{eec082ae174cd055f6029d33506a97bf.json => 8eeabad8c4cc47ab2a823fd8b4b90d19.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/8f1b1c04c401ea1e26e41996499c49f4.json rename node_modules/.cache/babel-loader/{4f6d026bea27706d0b39a3b5b6ced316.json => 8f6c052f3bd472adf06992b0ba5b5cf1.json} (100%) rename node_modules/.cache/babel-loader/{c7f9c53dbe730d213564cb21a6146388.json => 8f7b2e495d1c2ff1adb2471283e3b6c8.json} (100%) rename node_modules/.cache/babel-loader/{ee5240c9a9da777016e5554a9054d809.json => 8fb07042beaec94b518bb6b80fa60a01.json} (100%) rename node_modules/.cache/babel-loader/{56b99db333e3534c45a63fb12de65fed.json => 8fffa7f5a624ffa2e54ddb8dc9b8c8ab.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/901d4977df223c9b70f5cf05aa9946d9.json rename node_modules/.cache/babel-loader/{9a38600ab3b14c0159b5f3f42084252b.json => 90dd2dd421d1301d6b075fd40718ad75.json} (100%) rename node_modules/.cache/babel-loader/{6d6cc74dbe04885b16c1d92663a37730.json => 90eff54ea380f34d76229cb559a7539a.json} (100%) rename node_modules/.cache/babel-loader/{4f289fbb85be6fdb4c3e553691f21b78.json => 9105aa22867e6f2284a6b7c3ef7f0173.json} (100%) rename node_modules/.cache/babel-loader/{9150ec9fb8a64dfa4d66e721190ab259.json => 91ab1d81e65b81abc5cd831422239a24.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/921c1418ba6f4d2103fa2b639807cf4e.json rename node_modules/.cache/babel-loader/{bb707da5dc29cc3df6bc77e52eed248e.json => 922d0f9462aa924603eec1ada65a44ce.json} (100%) rename node_modules/.cache/babel-loader/{81f51e164946fd612a4fd47505a9d3dd.json => 923eff222436826ff01c252139bb86ae.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/92741dc8b4a9b42e1dc230844bccaad7.json rename node_modules/.cache/babel-loader/{27021d2f199b0de9a376885dafdad86f.json => 92a37834545d879bcb074056195bc724.json} (100%) rename node_modules/.cache/babel-loader/{d50aaefde09dd4cf41b164f7c37a1fa6.json => 92db46674ed54e4be6cb305fea0f8211.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/93036b11f95cb1833d294629b166d875.json rename node_modules/.cache/babel-loader/{c1500a64890ca17622949530eb7e075c.json => 938c6e1c07e0119c5ea4dcde4330272b.json} (100%) rename node_modules/.cache/babel-loader/{18cd279d04017674daf49f1488a61c5e.json => 93c30f6b210213682d28645bc98d8a76.json} (100%) rename node_modules/.cache/babel-loader/{5ff5959faae1fb79ee0d78b77eceb809.json => 93d8f5d036e7025d7dc305c23c26bfb1.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/93de526e1381026b87a3058e91a7a223.json rename node_modules/.cache/babel-loader/{b8b7267d31ac50c792c0ee1b33054e7a.json => 93feec2dd36122ec1af0df779d175e8b.json} (100%) rename node_modules/.cache/babel-loader/{583562c5cfd674bfe3a691340e82d305.json => 94494c578d33eed4d2856cbe7ae758a4.json} (100%) rename node_modules/.cache/babel-loader/{bfd9b7e73e051f591696f10e2cb26d1d.json => 94d70339ff53e50a34ba78f91d334424.json} (100%) rename node_modules/.cache/babel-loader/{f579e5afeec69a275498bab36fea68f4.json => 96235097b3f4b68138115526d105e7d8.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/9631ad19d9c330c5d5a3692c34949152.json rename node_modules/.cache/babel-loader/{23995c9b5a98a4520e2161d13f4dbaa5.json => 967559056c476ebdd48cf621251853da.json} (100%) rename node_modules/.cache/babel-loader/{925c500c8adbec5565a0020ea59a97db.json => 968ef509daca7c5e972e5eec9ec2dca2.json} (100%) rename node_modules/.cache/babel-loader/{f13b1f350254da6200c9ab3742226134.json => 96b4c3e050f44669cefa7390b975eead.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/9723db98d6bfeabece96cca3dda27458.json rename node_modules/.cache/babel-loader/{9e04d4b4d3395999b2a8c578077ccb17.json => 97873d89ceed5e40eae5b174690cbb9b.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/97b7a10d58a03f36af4baeaf26790c7e.json rename node_modules/.cache/babel-loader/{14681f8d4fb858e1a10c40fb2d14a943.json => 97fcfc6fd0872f1bb6e610335dcfc6d3.json} (100%) rename node_modules/.cache/babel-loader/{f93a59dd4b5dd320bb9011497c54f452.json => 981c4dda8db05d9bd56109f4a4e6e3cf.json} (100%) rename node_modules/.cache/babel-loader/{59974ac2314efcee16292900e4e39c30.json => 981e2ed5155d655a76c8cbf54090f5dc.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/985efec65f56d52e7bfbe3a110b60dd8.json rename node_modules/.cache/babel-loader/{7c56a833708e3f0b318b843a3604f1e8.json => 986a502239f1260a15a83a2f6e88de9a.json} (100%) rename node_modules/.cache/babel-loader/{897b387d504e86ca6547e25c6188c28b.json => 987e22980f885e0451aab0a512d9f218.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/98824d0ea60939d7212edfec7058e1f4.json rename node_modules/.cache/babel-loader/{73274c8279f4e4a665d3b77e6864b94a.json => 98bcf27385134c7c214f14bd3a72264e.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/98cbeb76b26b2eade86ca437fc8161e1.json rename node_modules/.cache/babel-loader/{6b733225d2819abfe7792267890709b1.json => 99b49515423645d53ed2e2952e7decd1.json} (100%) rename node_modules/.cache/babel-loader/{5eceb7c1a6080b9af0fcb95b74dbddb3.json => 99ee30bc9a18975f55898193ccbc1177.json} (100%) rename node_modules/.cache/babel-loader/{3393fc7a7e5576d15af3993e53614644.json => 9a3c4d97d96ce32e693d022972495218.json} (100%) rename node_modules/.cache/babel-loader/{8a741a8d1e1104c13c428f83a0afe7ed.json => 9a3e4134052b255ae670771982f96111.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/9a5b95eda927958b7ba129a940ecbd28.json rename node_modules/.cache/babel-loader/{a1b289735bf1335b0d0e2b806d5d6dba.json => 9a5e4c5ad4e818650c1c18dd3af01545.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/9a8a835d4cdf154ddd7e48859f266d4f.json rename node_modules/.cache/babel-loader/{12ee1524f17ed358057f2c01b8b16bd3.json => 9aa401e5e2d11032900770b85747fd16.json} (100%) rename node_modules/.cache/babel-loader/{0f60de50c10d010c1ba8d0ab1dcee159.json => 9b3b436142d95d0be0460e14dcaa1d7c.json} (100%) rename node_modules/.cache/babel-loader/{f181689a1b7a646349a3d6a3eaaeed79.json => 9b762b9a3a536efe6a2a17984a29f2de.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/9b87c5dd1b4beefd23474627f3e03c8b.json rename node_modules/.cache/babel-loader/{b778fe9befaf69fa5979572bdecdf0cd.json => 9bcc5da66af274c1ef5718d00c1288c2.json} (100%) create mode 100644 node_modules/.cache/babel-loader/9c2b62382190b90f94790668bca8bd15.json delete mode 100644 node_modules/.cache/babel-loader/9c5947d5949113f4846425d5256381d7.json delete mode 100644 node_modules/.cache/babel-loader/9c7088ed89abbae1817129863dc03aef.json rename node_modules/.cache/babel-loader/{e42a353c692c7071ffbfab03837dbb94.json => 9c823f5c0be6a37cef26e543b3a4c4f6.json} (100%) rename node_modules/.cache/babel-loader/{01731e5295b8c2f4e3f00e0e846e5221.json => 9cfccc89c51ba02c00fef7173618425e.json} (100%) rename node_modules/.cache/babel-loader/{ef304774f19e36561967fe3fa4a65e9d.json => 9d4c03c57cd9632b08e5ff530d15c0e0.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/9d5e5ad5dcc6c5e9073785854f40f143.json rename node_modules/.cache/babel-loader/{b07e8a7dd474b021813d80c40fdd97e9.json => 9d7d98ca6915ed14ee3df932734af7c3.json} (100%) rename node_modules/.cache/babel-loader/{61c569eb36c24f2b5f438336fa9d5e7c.json => 9daeea6740a1e0a3a9a2d1a440ec0754.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/9dd6c45ad0a74a37c58561cda565008c.json delete mode 100644 node_modules/.cache/babel-loader/9e5363486292cfc9fade6e4da3c84a3f.json rename node_modules/.cache/babel-loader/{999371ee612d80d2cbef896b57868638.json => 9eb8ca0cdeaedf068d86b3716fd5ce8f.json} (100%) rename node_modules/.cache/babel-loader/{2c97a605d06d26859e8441f6aa3f2f5d.json => 9eba1dff90db981fc33cbb9cb22e0c27.json} (100%) rename node_modules/.cache/babel-loader/{6303388002b83e734b10ffd538a724b4.json => 9ef05b5c636cb5bf7c04cdee5bd3ae7f.json} (100%) rename node_modules/.cache/babel-loader/{d791c765b54707cc70af44d25c9a0fc0.json => 9ef4d5181b284207f6e768687db12d93.json} (100%) rename node_modules/.cache/babel-loader/{d43e02051c90795c9e5832f02104b5c2.json => 9fb918cd4c102e8ba22b17161805eb9f.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/9fe0892d579077c05b0782158538aaa0.json delete mode 100644 node_modules/.cache/babel-loader/9fedb43c0b83baf826e3fbae5acbb992.json rename node_modules/.cache/babel-loader/{9f4bb3c2bb112e8c7d9014760632d637.json => a01a3daed7cd3d0bc907bd8e7afe2eab.json} (100%) rename node_modules/.cache/babel-loader/{732d905efb1ccf18e00fb6c1209d3992.json => a06cd781becaaa0b0ced3196dbdf9b4d.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/a165732c2ab11f66f34abedba69092f2.json delete mode 100644 node_modules/.cache/babel-loader/a181070d6100b23c7cf01ecf5465ae81.json rename node_modules/.cache/babel-loader/{1f28b99be1b1cfb4c086506584879ad1.json => a1d868db37df015c03759b2c7518ce15.json} (100%) rename node_modules/.cache/babel-loader/{179a7ebeea2e752744f40bb01841ad5b.json => a20607f74f0b03d9ccda89904745e5f7.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/a2691acd2e9ccf9e1328f7849e360403.json rename node_modules/.cache/babel-loader/{df1d1bc89ca79f6c5bed5e83206b6b62.json => a2a1d5c2247d1d314686615ea66af73a.json} (100%) rename node_modules/.cache/babel-loader/{148ef000a209f6aad40d6d9af83995f8.json => a2cdd8552f2ae158a6a5925b98d9d51b.json} (100%) rename node_modules/.cache/babel-loader/{a12da77a3cd92e01ad34c934d3190a72.json => a309e7dc9b7db79b838e55381864d401.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/a36842fde239b1679bf3889c18d11a6d.json rename node_modules/.cache/babel-loader/{11c5ce7ba2ea56a4cf06833b28ba70fd.json => a36e4e9faee2af578dd2ca73b2535a02.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/a3ac8013d87eca0c12a11efe4dfa7e34.json delete mode 100644 node_modules/.cache/babel-loader/a3d2dd1be4b6a95acd8b35e6dfb5cc65.json rename node_modules/.cache/babel-loader/{838c873955222e83672a7ec61af6c350.json => a4293b56da78f8280769c39aa886cabe.json} (100%) rename node_modules/.cache/babel-loader/{4765458a3eebc7b46ee24e3444899f20.json => a4cc497c9618658de5daee928025ada9.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/a5c30083170f42269b348249977affe4.json rename node_modules/.cache/babel-loader/{b21326fcb18ae94b00dc062cbe1b83b8.json => a5f39fbe23e6433d60c33fc0383526e7.json} (100%) rename node_modules/.cache/babel-loader/{0155fc111d408be12453d743dfcd7436.json => a5f4859b5e2ee18e2989119926534c44.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/a633327205d859189795f6b8b06ee210.json delete mode 100644 node_modules/.cache/babel-loader/a646081dd3671447af932da2f26d12a2.json rename node_modules/.cache/babel-loader/{d83904e42fc1e38716b5520f03346297.json => a66c01c3384638f350c7346d01fb95c0.json} (100%) rename node_modules/.cache/babel-loader/{35d3a03fe2b0e0adba8a5aca2ac5ba70.json => a69ab601ca24aa44fee87e0b1b7da2ad.json} (100%) rename node_modules/.cache/babel-loader/{d4da3301d24598033e7aa948b78bebe6.json => a7103f14963b39c15264d86e9bc75b1e.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/a714c6419eadde1cb53dd8dd33c60ad7.json delete mode 100644 node_modules/.cache/babel-loader/a757fcdf1e11980b8a712d108277e841.json delete mode 100644 node_modules/.cache/babel-loader/a77a684570f597cec4f7b9ceedff17ca.json rename node_modules/.cache/babel-loader/{13d25ffb7557790a09e271d21206141d.json => a780c99cbf156b03acce4c69cfc1d0fe.json} (100%) rename node_modules/.cache/babel-loader/{2678bdf1ca5c4b9f3c98139d37448689.json => a7844b85ea8c0556070b4b97e36f043a.json} (100%) rename node_modules/.cache/babel-loader/{c0f7855d10268fc9298f210ce00684cf.json => a7a46e6d2d573ea866e8989e783f0eee.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/a7acecc3ffdf9c20149e6202cf808fa4.json rename node_modules/.cache/babel-loader/{fb3c7c2a98e65a1d2c51fce8b8c9b872.json => a822a49a0c5ef9025be95bba3b4ff332.json} (100%) rename node_modules/.cache/babel-loader/{999275eaa48b157e5504023ed047af8f.json => a83e54638cbe0153868a633e9b4590c8.json} (100%) rename node_modules/.cache/babel-loader/{5e2674b266313f47bbf0fd19d979b409.json => a899aa68af003b14390c4df02e63bdb7.json} (100%) rename node_modules/.cache/babel-loader/{ecea0a64ba45715654ed477878ad2164.json => a8b55dcaec2515a4b676fd664d96b59f.json} (100%) rename node_modules/.cache/babel-loader/{bc314959f48a812bad73d2a80c2efab3.json => a8be2807027ff34b314103238f9b1600.json} (100%) rename node_modules/.cache/babel-loader/{67d208adb4a0b7cad23513887bd6ff97.json => a8dfe0ea9d8247378ee9a961241c05ff.json} (100%) rename node_modules/.cache/babel-loader/{3e7811d1a7ef9df1eac24bcb8ccdc268.json => a8ef373cfcbf62a5c65ec6c11b4744ff.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/a9204ef77f8e3ddcea1947d7dd6a8f2a.json delete mode 100644 node_modules/.cache/babel-loader/a92f2eab474c93f14c7fb433e5c2c0b4.json rename node_modules/.cache/babel-loader/{9676b2e7676719b131c2671a538e2b48.json => a99c5f53f8ae5469f8385573e50db969.json} (100%) rename node_modules/.cache/babel-loader/{61575effa1a8d3cecb4ff4044648542b.json => a9b1ce521eda6d8d13205a2914aff9a0.json} (100%) rename node_modules/.cache/babel-loader/{3f79c0e437798097eacbc0ded86ed736.json => a9ca066a1340330d9ba59c2b251716a2.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/a9e58a7648121719c19e4a3335811031.json rename node_modules/.cache/babel-loader/{79a8dc1741c0d4fb19138b4543dd894b.json => aa0c4e545b012f592d36511a5d445807.json} (100%) rename node_modules/.cache/babel-loader/{d302ed30934de647e3df13f1d87f1efe.json => aa6d36906cc7b4ada8ae9fead03f8bc1.json} (100%) rename node_modules/.cache/babel-loader/{b94e57ebac0b0783033030ec3b7ea3bd.json => aa7f05f18be8021b3193cda7ad203855.json} (100%) rename node_modules/.cache/babel-loader/{6033a825046be70bde27982f3e27a9b0.json => aa993ed3625f75c11ae3daa0a6fca544.json} (100%) rename node_modules/.cache/babel-loader/{837f6762239a8984462b7cc3d79cb90c.json => aaa2760eec5ff6c3646fe14dbf327ef3.json} (100%) rename node_modules/.cache/babel-loader/{0af56541da36dec908419d9413e99fc3.json => aade7ceb953445fd49b5cf03a9525cdf.json} (100%) rename node_modules/.cache/babel-loader/{bc2d09ae881be3955e6e683f9823a774.json => aafe60cb1c54fcd3e33941de5d8d72fd.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/ab22d9501ac18e2804fec099a80e693c.json delete mode 100644 node_modules/.cache/babel-loader/aba4999c9b40cbfc025c4c5b598a2934.json rename node_modules/.cache/babel-loader/{c258a5c6514a07ff9042a42b29ede22c.json => aba851e63035f702f61d0483885ac272.json} (100%) rename node_modules/.cache/babel-loader/{8275fc92de8fca8e915edb5641a5dddf.json => abcc6654e9183f10ea927759918de860.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/abf93438aa71d79e66383e42c6aa1a15.json rename node_modules/.cache/babel-loader/{f169ffb45e0d0e14ad2ed3330642a35e.json => ad197c4397f547b3ecae2f1e79871503.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/ad2f7d6c8f8aad2fa77b854833efaa27.json rename node_modules/.cache/babel-loader/{9c941be023182330c2d5b3dcc809c49e.json => ad632ec23cadc0c65c5cf7e753445f35.json} (100%) rename node_modules/.cache/babel-loader/{4e8560d7ed26c80789fd19b49eb10f2d.json => ad76c6c9524818645665160ff98650f5.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/adfbabfb969eacbffc590d64d75d2b27.json delete mode 100644 node_modules/.cache/babel-loader/ae21bd574e13d8f031efd1770b5b723f.json rename node_modules/.cache/babel-loader/{dc774438964e67c7317f08cc105a445b.json => ae8fbc4e889d7a06245875db48a72fd3.json} (100%) rename node_modules/.cache/babel-loader/{009c5544c2e014090d2741288b448e8c.json => ae91a03516d3bbbed21c4f9dc9f7be01.json} (100%) rename node_modules/.cache/babel-loader/{b67f8da0eeb7a053e813d424ec1619ef.json => af42bc9de853f4104098fe08dd6a7197.json} (100%) rename node_modules/.cache/babel-loader/{a4251d30c05c11144105af4263810cc7.json => af58f7644b11f6556e05e11fc5bb6b15.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/aff398d9dfe2f4a4a19ce2ec96ab261a.json rename node_modules/.cache/babel-loader/{2cc2b4224f06c45bb571613a6331d8cc.json => b011413e06ae52261c9bec2c7c27a173.json} (100%) rename node_modules/.cache/babel-loader/{9581611fea96b44a50b9b34b13b7350d.json => b0647292b44ce725e60479859012b1fd.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/b0f3a38866b555845acac4985eae86b8.json rename node_modules/.cache/babel-loader/{01a4364f809e57ee1236a94be0b83239.json => b0f53c5a3f7ea72ae2df2d4b79a1addb.json} (100%) rename node_modules/.cache/babel-loader/{b8278e517bbf6a7b2637cc052a962086.json => b1397d67b7b1e20843c653b4755ae8cf.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/b18739246362fca639fea170b5de4b3a.json rename node_modules/.cache/babel-loader/{83f175597f63731aea98d703f09f70f3.json => b19f27e762f459ce94299ef7dff93a51.json} (100%) rename node_modules/.cache/babel-loader/{a8cda6e75ba8c9da75ae27b7c1c3f1af.json => b1c46ab524b699197e0d64f3df94b66d.json} (100%) rename node_modules/.cache/babel-loader/{6f26a971bb232881f102b4958d1efb5c.json => b29b3a7e1066dbc279b0d7e2a9c34d92.json} (100%) rename node_modules/.cache/babel-loader/{80013461b785e74b5bce714ee5e3cdfe.json => b31bc952612d651f0a82d70a1a50452a.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/b345e6a4c24ebc265eebceb439e3528b.json rename node_modules/.cache/babel-loader/{5080a26499f11c44a525fb607bb9a10d.json => b351762e62372a83e96c819df6aee2b3.json} (100%) rename node_modules/.cache/babel-loader/{6dd9a4338e5e483732ffa09d840add9a.json => b35db6d1f8c3670dcd6ad8e083023868.json} (100%) rename node_modules/.cache/babel-loader/{f8ba3d5da645f4bc8f46448b15573c49.json => b35e75c7296278d0fdb6396ab31189e9.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/b36bf24fc6426044eac709ae0479e018.json rename node_modules/.cache/babel-loader/{8f6f5142b7b41fcbfe5b5eb1a49e0f23.json => b3b1d8eb71ce1ec7e32e3f3808365260.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/b4810ba9d582029ddfb472bf5a8f01f6.json rename node_modules/.cache/babel-loader/{dd877489b82a787dbc1b296ecfee29f2.json => b4ce09c8d7ff6e78d249b07a0c96e8a5.json} (100%) rename node_modules/.cache/babel-loader/{5083aa73ba4ed2d856e95d606605ef98.json => b535c7bd1f04cd481e8179a647e49805.json} (100%) rename node_modules/.cache/babel-loader/{d2add5a0df4af3286ecb0b325a601a02.json => b5768d6c7a85d8861444c161cabfd690.json} (100%) rename node_modules/.cache/babel-loader/{d19efc27b66b9eb4f6035e957c16d7a9.json => b589a029dc341cbf9abd540f977e2c63.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/b5d04d52709d248982494e47c21d7375.json delete mode 100644 node_modules/.cache/babel-loader/b65746610d92f8a49bac1d580c510d0f.json rename node_modules/.cache/babel-loader/{40742f08e2f4eab38eca470922a738fc.json => b740e7877110e2df446c53dca977ec0b.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/b76b24ff2a6697ef0874dc41dba3dd41.json delete mode 100644 node_modules/.cache/babel-loader/b77171f029f0044132a389904c10d663.json rename node_modules/.cache/babel-loader/{a81fb08f1b2fd83da1eae8d07eee9a5a.json => b77f17daab03c169759b878dcc1e2c1d.json} (100%) rename node_modules/.cache/babel-loader/{07a2a03f5191d58ad8c653028ea9dbf1.json => b7acd2f2fc0eaa946eb68cd082c4ddfd.json} (100%) rename node_modules/.cache/babel-loader/{01e63e65ef56c79438cb9d7b118897a1.json => b875c3a66d4eda71a6b57fd8fceef9d2.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/b8f451b53d3023d1fa5cce6a793f373c.json delete mode 100644 node_modules/.cache/babel-loader/b945d1cb6cd3ae78ddf826b6b6c0062a.json delete mode 100644 node_modules/.cache/babel-loader/b9b4896158a2af7aa0c9949b0d1a69da.json rename node_modules/.cache/babel-loader/{7e2a8eda2fa614fcdfb2979c1788288a.json => b9f72249cb4b45527605703bb09d3777.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/ba4345489ab48dec4087bddc46e3309d.json delete mode 100644 node_modules/.cache/babel-loader/bac043842d3d5d3747b95d107ee97102.json rename node_modules/.cache/babel-loader/{d5c20cc1a217dafcd1e312e233fc3c89.json => bb352023d763df5d3f9f71ca78bbcbea.json} (100%) rename node_modules/.cache/babel-loader/{0675623f5f6faeea4cf45664dde105bf.json => bb5bae71c941fa5474e5effa4d4e9145.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/bb86ea9260a1a373583fbe05a629f92a.json rename node_modules/.cache/babel-loader/{39f898c3f02211ff9537fd7661cbc698.json => bba73ec9900a9fc0a2bfe1c848eab0f1.json} (100%) rename node_modules/.cache/babel-loader/{c3b78ab7b9a36f569694f26578a1d780.json => bbf9800ec9f305d21a2c64f873c6a1e6.json} (100%) create mode 100644 node_modules/.cache/babel-loader/bd6c873465050502bd5ec071a280cd9c.json create mode 100644 node_modules/.cache/babel-loader/bd6d698097cbd9e5f0a1eef1f2f9588c.json rename node_modules/.cache/babel-loader/{4fa67653e55334901be2b6d2541a7de6.json => bd9633538c7274a0717cb1ba99826289.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/bdb7b406e8819fd285be08127f72c61c.json rename node_modules/.cache/babel-loader/{dfc4241c599b82c300869cb198c15c52.json => bdcc381f881d4fb82ca7f76f8853b312.json} (100%) rename node_modules/.cache/babel-loader/{b4e42c4102aeb7ae7db8af2bbff25ec9.json => bdfa466c9b82e1a56b6d5016205b8c3a.json} (100%) rename node_modules/.cache/babel-loader/{959243ade770f4ca88dbbffc4f00c050.json => be0d5ca7bdccff12ff7afb609624979b.json} (100%) rename node_modules/.cache/babel-loader/{aebbc30bd07324b8d1f3984c47e94ce0.json => bf3bb3cddbb1ea3d8ea3712dfada894d.json} (100%) create mode 100644 node_modules/.cache/babel-loader/bf4e7832a3712ae9024c989c90ae5e43.json rename node_modules/.cache/babel-loader/{344111aaa1ac6db876446b64c91d90c0.json => bf59a6bf0bfb99a7fafe375c905037ba.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/bf9f562b9d3ef1a14a6561b935ff771f.json rename node_modules/.cache/babel-loader/{bc2b2eb3247dcbd8726a859ca2744011.json => bfd9b265a3bad604979f9b4229ca5a82.json} (100%) rename node_modules/.cache/babel-loader/{5871b8c1878c6d11cb1495a2f24d8243.json => c0134387f136e7cfe93b7ee4d1664006.json} (100%) rename node_modules/.cache/babel-loader/{c83c4a77f14b1ee99966e965b37d08c8.json => c028cb857c5b7774c008f42fa82498b6.json} (100%) rename node_modules/.cache/babel-loader/{ca807f0d9a1ed95cd4cb872ff0630544.json => c05d16d8b9e0f3dbd8965851661f2179.json} (100%) rename node_modules/.cache/babel-loader/{fbfa3f7b8a11b1ad1cae954ed10f4ea2.json => c0754d1320143213877164c29fd9acd6.json} (100%) rename node_modules/.cache/babel-loader/{d311921291a2fc2a880412cefafec7b6.json => c13b30f470539bee1f38069a4cf628d6.json} (100%) rename node_modules/.cache/babel-loader/{49674b3d411550bba848eb5224f82b09.json => c1edbf9df7d4d63ff9fb99ba32d079c6.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/c25d7d2453614635875db6d59a87b655.json delete mode 100644 node_modules/.cache/babel-loader/c2c1ff2cd7f886a85e07a077893860da.json rename node_modules/.cache/babel-loader/{bb4d41019f0ca7aa4b003d54dc6f568d.json => c30bbe2f1c823b55b7c8f6eda0ec3172.json} (100%) rename node_modules/.cache/babel-loader/{9565463368185d0e494d854047d7c0fa.json => c32dfe1d9930de1d117c117dd06d2d11.json} (100%) rename node_modules/.cache/babel-loader/{96929174cf020011046bef558a39bf2f.json => c3a32e7ec0db8351bc7469bc1b1ad99c.json} (100%) rename node_modules/.cache/babel-loader/{b068afac6251bb560f6937e99840695b.json => c42d28f69ae462d52a6922cda9a13319.json} (100%) rename node_modules/.cache/babel-loader/{da277c8d434a4fb69e6bf6e823d41eb3.json => c44688f1f3787ffcddcb11e3e8b56b36.json} (100%) create mode 100644 node_modules/.cache/babel-loader/c46a72cc9c10f13615e662042cb26128.json rename node_modules/.cache/babel-loader/{695e52cdf295780426717ee907605168.json => c473d39d7af3e04c106cb612e40a68ec.json} (100%) rename node_modules/.cache/babel-loader/{940ba26eba650d296aae18f1f0484db1.json => c5218f7581bcc7968822e8f20c46cf3b.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/c527dddc775b927bc00d84ea2d37cb05.json rename node_modules/.cache/babel-loader/{1bdef1a54f9fc533af5ebc50c02252d9.json => c5547cbfdaf2101c8c22cf46a6aba38b.json} (100%) rename node_modules/.cache/babel-loader/{82f8c948d717ec79b7ec44c82b4c0640.json => c5bb95c29291276d5e100d70f09524c0.json} (100%) rename node_modules/.cache/babel-loader/{26b3f13e9acf6583ed70642a45b21fa0.json => c7087ac0f117cfa23cffa3b0707514ad.json} (100%) rename node_modules/.cache/babel-loader/{084ed3b6e731d0371e362dd6ebac6e7d.json => c72dea7ae954f5dbfafc628ec0f6243b.json} (100%) rename node_modules/.cache/babel-loader/{4d8310b7fa0111ab292e7ee95eb02101.json => c74a4fa6de58413d28b7017427e7e5bd.json} (100%) rename node_modules/.cache/babel-loader/{5e3e75a5f6929a8bc06b23504822d6f6.json => c76dc0f07eb8455949600a18f83c43bb.json} (100%) rename node_modules/.cache/babel-loader/{c8d39e59e2b1778073ba60140eb9ac5e.json => c7c4e203339669ae3da05e59f22120f4.json} (100%) rename node_modules/.cache/babel-loader/{c3a72a9355a65277d9ded1cf03e51bea.json => c7c5a5584963cffa8eb2e4fc64a4514b.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/c7de52afd676f7db754614bff55fea73.json rename node_modules/.cache/babel-loader/{763351ad9a5d77176d8610eb34578781.json => c82aa80867e4b4b4d0a04a9f38dfdf15.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/c82f20f288c955c6962af592d368b61b.json rename node_modules/.cache/babel-loader/{276e1f0299e97c4701a37fddb272d3ea.json => c844636ca05d4e5cfbe37e9e62d4b9b2.json} (100%) rename node_modules/.cache/babel-loader/{0eeda7aaf80ef89ddf2d6886c0af1cd3.json => c853b6e83e9c609548923dc25ba1ecbf.json} (100%) rename node_modules/.cache/babel-loader/{f9a58d29a96a18ca31969e98868f4540.json => c88100f7f0dcf0379c3d805e88616ed7.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/c8d383269d791e515757fde2b711a5ea.json delete mode 100644 node_modules/.cache/babel-loader/c90482eeb856084a17ad0153ee626bf5.json rename node_modules/.cache/babel-loader/{73b2a39892acc4183d552265e594e177.json => c92643022c970ff5e1e9445322fe0bd1.json} (100%) rename node_modules/.cache/babel-loader/{f89579b06952671eba985c3e1a19e267.json => c9319a2b12a2808e0e0975c37df709ab.json} (100%) create mode 100644 node_modules/.cache/babel-loader/c94672232b0e8ce1c34c41aaf3b069e0.json rename node_modules/.cache/babel-loader/{d5b0c918ce0f57f21c7dfb175029dc2d.json => c94f165553643e731af1d5355131dc26.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/c96495966ec958bfc2d471e33ede7c46.json delete mode 100644 node_modules/.cache/babel-loader/c9c7afc501814f91837b7b81ab1cd6be.json rename node_modules/.cache/babel-loader/{0ebf473762e77728bdc49747281eba51.json => ca28f97ebf9ebdddae0d45afd42df098.json} (100%) rename node_modules/.cache/babel-loader/{49f72590690381ac3ed135c1d6a8e323.json => ca823233e18055b61181d31c73f47c3f.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/caec989a8717451658033d86bdccf1be.json rename node_modules/.cache/babel-loader/{979da922fe7ca6df8a253f19987e5e1f.json => caff18ce85f36c9274e6c0a58643bb76.json} (100%) rename node_modules/.cache/babel-loader/{6831ca33ac4a824dd300aeacf1fbb7d3.json => cb04f58267ade693f9e4a30e893221a2.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/cbcd5995b98accf2d9fb689e999888dc.json delete mode 100644 node_modules/.cache/babel-loader/cc16250075ca481be812be61eeb6ebbf.json rename node_modules/.cache/babel-loader/{03829b38557e416ada9144fccde37807.json => cc23d6734e1150ce7fb1ad85c782435d.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/cc78148ebee4fbf2edcd46499d2ded29.json rename node_modules/.cache/babel-loader/{4f00beaf64debb787d69dbe8e045ad8d.json => ccd3a4ebd7081b026bf2a64cf7547e2a.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/cd0aa9f87e32b688a8cd83989bb03092.json rename node_modules/.cache/babel-loader/{148e25a6b17363395fb9b7ed1ac34413.json => cd76ae95994bb806c9f078028c99c894.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/ce46a7c10f1a54e2d6304b08817a2340.json delete mode 100644 node_modules/.cache/babel-loader/ce560f6e5e3bd7cbad920d139a91a9f3.json delete mode 100644 node_modules/.cache/babel-loader/ce60fa2c8abd560516e7ccc277e98bdb.json delete mode 100644 node_modules/.cache/babel-loader/ce7031a7877ed0b702a3a354b4812504.json rename node_modules/.cache/babel-loader/{4488c73c921ab0024c22a8ff723f1058.json => ceffda915158adaf9561a160d755cd8f.json} (100%) rename node_modules/.cache/babel-loader/{f20b299480c8882aef68af250061809d.json => cf861bf8d64b46dec57b301169bc811c.json} (100%) rename node_modules/.cache/babel-loader/{94abda62a83536774e49a3b5972f71c8.json => cf992360b8ace03cc4ff70f32bfda4da.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/cfb39a0355044235646f82d4eba4b8d2.json delete mode 100644 node_modules/.cache/babel-loader/cfcfca31dc06f38f1a210f6652f18f20.json delete mode 100644 node_modules/.cache/babel-loader/d036efa43c395a62e2e9f2c89263bcea.json rename node_modules/.cache/babel-loader/{b7f98137404faca29d3a9fc83d7bf152.json => d0586a242cf9d08ca63932245bf187d8.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/d08004137435313f7addc2072c078d04.json rename node_modules/.cache/babel-loader/{8d41cad10c8b28443eb70409f62cc341.json => d11da18bc794df898783d8b1389da999.json} (100%) rename node_modules/.cache/babel-loader/{4ca10953ef88ca5843b8930a7d1606dd.json => d1212b3b5d5133cd995abb13dbd67307.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/d163748892b6d145f6a75c83dc1c4165.json rename node_modules/.cache/babel-loader/{5a1549193aabc9ff3a057007f00ba7ac.json => d17ae8aa5d26b93e864f7a6afde1e71a.json} (100%) rename node_modules/.cache/babel-loader/{c2a33099d8460a2b60c0b577d1f8e280.json => d1f526a88e6c4e1adcd1178b87210fd2.json} (100%) rename node_modules/.cache/babel-loader/{34b23a70884eca922612a96deab8bd22.json => d203ee67b637d8e77b7cd9e5a5b432be.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/d293b787163fa3769735f960d305f55a.json rename node_modules/.cache/babel-loader/{fb51c4c20214edc3585ee5976baf6d7d.json => d30a506548b70ef3afcc13d4be8704e7.json} (100%) rename node_modules/.cache/babel-loader/{31d843e756bd76a06cb48f70c1708031.json => d318658714afc277e4a288c3b574f136.json} (100%) rename node_modules/.cache/babel-loader/{fdbf8c8e26d7630e07cf80ca6fc8685d.json => d3289bba5dded94fbaace46efd6df3fe.json} (100%) rename node_modules/.cache/babel-loader/{1a2b09333293213aa3392cba6f5219ad.json => d39069a6878fea632c1c82106f24b956.json} (100%) rename node_modules/.cache/babel-loader/{579d2f916b0984df379c6d9913cd99e4.json => d3f5ce233f5321acc22913f93d27fe75.json} (100%) rename node_modules/.cache/babel-loader/{486bf80253ded2621400ee34466b143c.json => d3f67664fbd71d903aa50abb3c3b8973.json} (100%) rename node_modules/.cache/babel-loader/{bd64724b013296c694c2dd41d629d7cb.json => d3f7017fa928d888f42163a2200dee7c.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/d473cba7de8766d184c59403367f11d7.json delete mode 100644 node_modules/.cache/babel-loader/d4df31d1122bd4cc2562f74379b1744b.json rename node_modules/.cache/babel-loader/{5cad41169d44d1ce82198f87a94ab00e.json => d551f6542bfe114574aa7b0dcc0afb67.json} (100%) rename node_modules/.cache/babel-loader/{02fa12b3b50d0918dfed30bdb9b58f60.json => d5891841fe76d73bf753befc7747967f.json} (100%) rename node_modules/.cache/babel-loader/{d453ce4a68625771e64f1bc58f3c2509.json => d59f5e6ca9899b9de8038ca7cfaad76f.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/d60503010797ec3f3ecfbe507a475331.json rename node_modules/.cache/babel-loader/{fccfa7f8cd15c4f6ff9ef97b386cb864.json => d61478b2ace3f5e9febb4aa8739d8385.json} (100%) rename node_modules/.cache/babel-loader/{6e3afaf7f5560df253175af437d3b924.json => d66a72ca13d1d8ab290cccb2fbe520b3.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/d6ff2bb0de43620ada91f1d6d8c8132b.json rename node_modules/.cache/babel-loader/{f2fd56fc714e87e2fc0d4fd8c728f8a2.json => d7c81858eb66e78b1dfbcd011547c012.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/d81fa7dfce3c83a08a8c8b93c505813a.json delete mode 100644 node_modules/.cache/babel-loader/d870341812bf6f4ba9687993726563f3.json rename node_modules/.cache/babel-loader/{d7c16b0180af7ef0e5cd2d7d823b78b3.json => d913331097a7f7982d179a65247bd43e.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/d914005373ced778af30de64cd22fdf2.json delete mode 100644 node_modules/.cache/babel-loader/da1726a641760823306581746c2dd2c6.json rename node_modules/.cache/babel-loader/{bd64497a82740425f5625b7a5dcb58fa.json => da9aee5df81583bafce70b1aa7427801.json} (100%) rename node_modules/.cache/babel-loader/{ae1a7902b6993fd74bd7320ef0a521d2.json => db01e0f86a634dc6bded791bd9ac06ba.json} (100%) rename node_modules/.cache/babel-loader/{08a12b3337c81d5926bfc85cd1cb190e.json => db2bcea6abd488194e733c5c8b8234f6.json} (100%) rename node_modules/.cache/babel-loader/{852fa38758a7e99cc1bdd6998223fa1a.json => db5a719a44b83245f538b2543de11812.json} (100%) rename node_modules/.cache/babel-loader/{0463faaeb6ea78017c98fb0b7db6414d.json => db5ff83c237ec524308a625b6b62bbbc.json} (100%) rename node_modules/.cache/babel-loader/{778e0dddbfb2e1e0af66bd61a68d7277.json => db62f44a68e5e4b4a6f27f4813af68a5.json} (100%) rename node_modules/.cache/babel-loader/{1c0efe1949bba472b92807ebf8ebd2ec.json => db763a8471bd44caefc31f1dff92969f.json} (100%) create mode 100644 node_modules/.cache/babel-loader/dbc0e8da77b0c0bcff2ff0762c6001d0.json delete mode 100644 node_modules/.cache/babel-loader/dbdcdd3847a191fff9c9f26b808fcef3.json rename node_modules/.cache/babel-loader/{179ada4052769d06bc5c2d9305d5657b.json => dbe1b4c7104208c9d84ffee65b275e3e.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/dbf788bb1ac4025bdf430e2f61641041.json delete mode 100644 node_modules/.cache/babel-loader/dc38bf284b31d01a9a5c2edbf1f6cd17.json create mode 100644 node_modules/.cache/babel-loader/dc5ce533c2fd1f818637a9eb78a0895b.json rename node_modules/.cache/babel-loader/{c020ffcf6025a229f35a42b96232a8ad.json => dc900f5fc33e46ed5e8ca10b4fb6c2fd.json} (100%) rename node_modules/.cache/babel-loader/{02a6ff75861d9f309b3fe6eeb5f02eea.json => dcad70e590f7fb9cc97bb32f96af8a7b.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/dcca40655717ab6089f90cbd5ab74b20.json rename node_modules/.cache/babel-loader/{e999b5b6cddc8d3cf0f59a0dda685655.json => dcf4b4e5085dad4a3200c6be207c33dc.json} (100%) rename node_modules/.cache/babel-loader/{ed88e507ce534ad84bc91b00002f48b2.json => dd6cdd4e80b909cc3db48e0ea31ae250.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/dd9b5e78bfaa4717869a71f574223dfa.json rename node_modules/.cache/babel-loader/{1444927d9d615d97aba24008429b4a43.json => ddb1907f063b8fee798fac8fab686ffa.json} (100%) rename node_modules/.cache/babel-loader/{3d74832c8ed1a72d961213adc1379b9f.json => de3ed95b674ad0ff673e0952b270ecb1.json} (100%) rename node_modules/.cache/babel-loader/{6be7b8d48fac06d574ea1fd77c43683a.json => de673dcb5598d50e0c150caf8f2cd20d.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/de86928823a70870890fa570356e24d5.json delete mode 100644 node_modules/.cache/babel-loader/debab50def026ce79cae5bb39afaea3b.json delete mode 100644 node_modules/.cache/babel-loader/dec5a9f21942ae51b833b4c3bf38eaa3.json rename node_modules/.cache/babel-loader/{59ce133103c34317b06c143aa7469ba4.json => def963cfcd58011181c80e7e2873289b.json} (100%) rename node_modules/.cache/babel-loader/{d819caf48f7b1ad6043a9f70c176a273.json => df08dc8a23c111e325dd234fea34a0d6.json} (100%) rename node_modules/.cache/babel-loader/{29c2539ae31d8a115cee5dac72991091.json => dfbe5719fbbeee6a5940e34bdf11d83a.json} (100%) rename node_modules/.cache/babel-loader/{9e3ac406b5b7a4cdbb20a706ef5fe72a.json => e00d16df5b587d72d472ce3c44937e04.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/e011e7481784735a629cd5933f746655.json rename node_modules/.cache/babel-loader/{ee4b4c25a0ba7941916ba4792d33ae16.json => e077198c964409bc8bbb135532b5fc53.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/e0eb49bcc6be1d8bf70939ea08b7c7c4.json rename node_modules/.cache/babel-loader/{0cc0622dee52e7783b11e65b481e1b1c.json => e151f766b359b1279e277c214adadd50.json} (100%) rename node_modules/.cache/babel-loader/{60d459851eb69297b9543d24200cf1f4.json => e187f10c543094cf017f41028f56d05c.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/e18d3e3d1ffa4fb933da6822061715cf.json rename node_modules/.cache/babel-loader/{39aa308aa5c049ec849d48dec94ce944.json => e1ee3cb4f77781b4ab53a1929da7d751.json} (100%) rename node_modules/.cache/babel-loader/{5adaa1f919178d6c973c0dce9d88e8aa.json => e20a1903c87fc0e17b55b93faa75647a.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/e2aacdc85eed2c02392d6a6a250edfd2.json rename node_modules/.cache/babel-loader/{d43725e79652a80ac43af96befa49bc3.json => e2bfcbfdd020fd5234f7ae81ae1f8e39.json} (100%) rename node_modules/.cache/babel-loader/{9556989980033bf369aaaf5d2542b2a2.json => e2d1986e02ef791bb8941ad80de20f6a.json} (100%) rename node_modules/.cache/babel-loader/{cf6d232fb5c45d32bf03aac16d745f9a.json => e34b32106e5997c6224e6274e18fe5e5.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/e36926a587e6e11b68bf4a7a334ebd6b.json rename node_modules/.cache/babel-loader/{ad9167e623acddca13bfb6b814bdb0ca.json => e3de9553ebe4d298df4345ac44e91ab2.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/e3e2e580b6e9a68d2a464c2f82d0acf7.json rename node_modules/.cache/babel-loader/{3c0bec20a17830f55fd52044adbe8ce2.json => e3ec98c32d39d95feb1846871e7c24f6.json} (100%) rename node_modules/.cache/babel-loader/{c7f482775e07a8f7dfa4e63ee288557e.json => e435ac43746f5d33f6232fa156650438.json} (100%) rename node_modules/.cache/babel-loader/{d7145429601e4fd757529354395da065.json => e43a89637b3bbaf369ceb00f3f1e262e.json} (100%) rename node_modules/.cache/babel-loader/{97f038bacfc793909e61c6b96bd3f249.json => e46f04a257fdebb8afe18c3880700d7e.json} (100%) create mode 100644 node_modules/.cache/babel-loader/e49a084f03db129940d4190db8738b4a.json delete mode 100644 node_modules/.cache/babel-loader/e4a3ec15668fb11c2059a9a04a7ab1ae.json delete mode 100644 node_modules/.cache/babel-loader/e4e6595e8e57fc893d97a8261acb05fa.json rename node_modules/.cache/babel-loader/{980ec165ca64c90a4d33c25aba4ba455.json => e50d2ed59dd2966cecfccc13f51b627c.json} (100%) rename node_modules/.cache/babel-loader/{c5347b1dcee0e171f6199d9bf7b6702a.json => e5127edd469a5410d8b7d5bc064696ab.json} (100%) rename node_modules/.cache/babel-loader/{0c9e2db84ce77493a315373c6b4b5f18.json => e53b2e3303ce37f3dfdde1924761b0a1.json} (100%) rename node_modules/.cache/babel-loader/{8aebbda800e8be0c2b5ca5aa258fd8a0.json => e5540e5877299a1491a0e55f1fecb359.json} (100%) rename node_modules/.cache/babel-loader/{924c1a106e843a0b7796af278093546c.json => e55ea3b9ba8fa4fcc040d043e4043368.json} (100%) rename node_modules/.cache/babel-loader/{d48f976b9f5db23328ae92c7c12e6014.json => e5815e670e38b937ee08c5a9733df2b5.json} (100%) rename node_modules/.cache/babel-loader/{4e1bbe9387f852869dc2f1f0dd2b55c9.json => e5adf38ad52ac7c36a25d7a2132e9140.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/e60eed194e5dc35ac067da970ce83a5d.json rename node_modules/.cache/babel-loader/{8c0c80fba2cd6dfd7a4a333f20e0321f.json => e67af508925305629c4156b245aa2244.json} (100%) rename node_modules/.cache/babel-loader/{d84890504084d06dff7c7cd91f030dee.json => e67cd3395173ba4f943bf6f17ea761d0.json} (100%) rename node_modules/.cache/babel-loader/{5b82373275b02d828891ffb333c2c9c6.json => e697de1b3cd6181ca3c7e7d93dd6c353.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/e6d9aea75368fdc548dd959fbe5ba84a.json rename node_modules/.cache/babel-loader/{4ad43ee2cdac6c87b6144c1746634d7b.json => e7307d0b29b6493ef73268ffd84433d4.json} (100%) rename node_modules/.cache/babel-loader/{7e3b08828134a21d830520d219d622c2.json => e734bad198be0240d7739570a4ab88a0.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/e7750eae7820777e8d8cfa71a592cdc1.json rename node_modules/.cache/babel-loader/{55e26ac8ce75becc80ff7558e6b8382b.json => e786f4df37667b34fa2c040a9b7ddd23.json} (100%) rename node_modules/.cache/babel-loader/{199cf8781aa371bd690cf5b29c4b8d60.json => e7937e657e7fd841c08f047b167f0224.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/e7adba541778ee72922c19e5e636ac42.json rename node_modules/.cache/babel-loader/{fb7b493565fe3778885b3aea6090794e.json => e7f1f186c7fb7a0a73086dfc3249aa7b.json} (100%) rename node_modules/.cache/babel-loader/{7d7ed0f65f7a16211889c3b33f18c3ea.json => e825e4f168b39d8405a0b5dad5f66d06.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/e85d034f7d0a65f71db0f3197ccee23c.json rename node_modules/.cache/babel-loader/{185fcb1dbe754531ae12d5fd5385f3b2.json => e85d27fc81ea0978212d62ae5c0a5187.json} (100%) rename node_modules/.cache/babel-loader/{474d43de9fe26b184f8aeb756db79d37.json => e885fd2b73f5ba863c0242b21a612ffc.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/e8d8604f419e6c29263abb44ebe29743.json rename node_modules/.cache/babel-loader/{db6458a747536270293bd51837a0e5f3.json => e91bc26a428334fae848c61082a71eec.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/e9a0d6250ba028c9eb74a6f54b1d6f37.json delete mode 100644 node_modules/.cache/babel-loader/e9a2b1a4ecfa9973b53dfa4b4eb0b8c5.json rename node_modules/.cache/babel-loader/{50178c9f2f5bdba93df50635b9d3a7a0.json => e9b6be8d90ace42ab7b99809fc97a6e6.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/e9ef3d832fcd9bb29badf589dab8da05.json delete mode 100644 node_modules/.cache/babel-loader/ea50606e439cb049296ef379368c0ea5.json rename node_modules/.cache/babel-loader/{abebd75db0e565ee4a92356e17bfb5f2.json => ea5f87492ecb74ee1df738ac6513dbba.json} (100%) rename node_modules/.cache/babel-loader/{8676f3d5e7a6528254a944816ff7fe87.json => ea7149b394578e3132c1370cb6a1a524.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/ea8992bd5295863794841bc14189d25a.json rename node_modules/.cache/babel-loader/{3e1d8c40ea37963b7f660649ec4ca39d.json => ea9fec68e1ce7141520e2990d6ad0371.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/eaf4e8c10d7b7f5bf34ec32e31dfeb2a.json rename node_modules/.cache/babel-loader/{9fc817b1779b1fe22ac9de69b2656e98.json => eb6df799c3db2f86884daa0dc81db8b2.json} (100%) rename node_modules/.cache/babel-loader/{8affe0cd588305f55e9ed0b0a9d2b67e.json => ec04237745525ca1b2d28cd82c9855de.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/ec92422442e6f74352ba323ee37e0b92.json rename node_modules/.cache/babel-loader/{829dfa43d4c3895bfbaf1a9b26940c6c.json => ecb50f3fb4a783cbb1f5045f93ed9c84.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/ecc2306778d6822d40bb7eab621fa902.json delete mode 100644 node_modules/.cache/babel-loader/ed208daac1b1313ad2eea7c33ea28f63.json rename node_modules/.cache/babel-loader/{e3592d20db3f8c7946c293c74b985bec.json => ee1f5c8e6aaaa5030634cd37ae2186c1.json} (100%) rename node_modules/.cache/babel-loader/{249d93b2e7cd95b77859465d91bb640c.json => ee7104c8b1df5ca36ff55f477e66ebee.json} (100%) rename node_modules/.cache/babel-loader/{99088771f82d3ec0009ce854441073aa.json => ee76a8efa9a1ed7f2e14dfff729e88a7.json} (100%) rename node_modules/.cache/babel-loader/{d531aa74e6f9a716e03d53342a8938fa.json => ee7c93c479d0845023c35645d6bb984f.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/eeeddb108cf0c382f46628d92f68c468.json rename node_modules/.cache/babel-loader/{6e35f3acd8eba3780fc2d970f9f8f8c6.json => ef3cd8a3d711875bfebb03e815315067.json} (100%) rename node_modules/.cache/babel-loader/{28d26bff9819a7fc6693e0d244ceaf22.json => ef9593558024aaf73cdd1b23628e50c0.json} (100%) rename node_modules/.cache/babel-loader/{cab2427127d8ce060d6e945b02be8e2d.json => ef97310ecea047501f2379504674a966.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/efdffdeb4cf73ba30d4116f5f1eec5a5.json delete mode 100644 node_modules/.cache/babel-loader/efe59d78fd92c1332fe5c62b6c4745f8.json delete mode 100644 node_modules/.cache/babel-loader/f00337aa69d32e0870ed938c2049c776.json rename node_modules/.cache/babel-loader/{3a5156209fa58ab9430e320b47414fd5.json => f0066e9bbf11597d1c71489a16ce6ec1.json} (100%) rename node_modules/.cache/babel-loader/{0d4a45d48c7723f6cc51624ef74c6c74.json => f00c8efdd514bbc42ad6f6610fc916fb.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/f12d7db790af886b862e09b860fa59a1.json rename node_modules/.cache/babel-loader/{7af19756f02bf2886cd004fac85d8d27.json => f1fbfddcdf6514b9196c41b5b7eed578.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/f21a3e05083cb651512fe407d51648b1.json delete mode 100644 node_modules/.cache/babel-loader/f2748244a2de6094e02f1a7e388bcc7d.json rename node_modules/.cache/babel-loader/{e99112b77c6070ef41090254eb28c85c.json => f29da27172b5a79bfe1c3799c9775943.json} (100%) rename node_modules/.cache/babel-loader/{0fd63265001d132d4fb02d7e84ee1a16.json => f2fb50f81b869b20ba45ab1e54d7f4e9.json} (100%) create mode 100644 node_modules/.cache/babel-loader/f323f061825d228073aff6ebd091d699.json create mode 100644 node_modules/.cache/babel-loader/f3420c02adbdb2d2f5266719bcce26f1.json rename node_modules/.cache/babel-loader/{f575ecc31315ed4a4183a09c47dd1f2f.json => f3d1edc271e0e9855ec7d5d19ae3cbd1.json} (100%) rename node_modules/.cache/babel-loader/{2964df4c65d9429513481b7f9f8ce24d.json => f3eb5020dab909a7f4df445e1a872250.json} (100%) rename node_modules/.cache/babel-loader/{0cc94e81a76d5f8c91ac89a11004b63d.json => f40b06a1cc95d512070e1493fad1cffe.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/f40fc9cefabb90be1460526fce7e36b1.json rename node_modules/.cache/babel-loader/{ddf1a0024d9856fe0e35a4ca259b22b9.json => f4130eb25f600d9dc688964b4a68be2b.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/f45a61820264cc7f3217508a5272e22a.json delete mode 100644 node_modules/.cache/babel-loader/f46f9e96e2f423a9e7174921225bdbd7.json delete mode 100644 node_modules/.cache/babel-loader/f47b7174504ae654a29390c024ddf51b.json rename node_modules/.cache/babel-loader/{2039cba72814c7bf521ee344e98a19df.json => f517df0f833803d4744f8beed0683ab5.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/f54b128d4ea092ead40e28499dd71e3c.json rename node_modules/.cache/babel-loader/{467d272b55476cb81b79843854bf1578.json => f5555e4bdf32c718a5e3e46714442872.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/f5d4a609c573bc2937b43af094d9d7d4.json rename node_modules/.cache/babel-loader/{482fecb35683467ce34377e5d9016fac.json => f60bc89ca207637620964b00a63af500.json} (100%) rename node_modules/.cache/babel-loader/{5036aa35644ee1965454f4fd41c708f7.json => f6200dfff70dd438f79fef871df32866.json} (100%) rename node_modules/.cache/babel-loader/{5b5c90dd45469b7904691eac4dd638cb.json => f6271067e8dfacb32150ca79140dc37d.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/f62c3d4aea89a73fd78b850453af2ea2.json delete mode 100644 node_modules/.cache/babel-loader/f6512e0f69326d7223e6101d18c09ad0.json delete mode 100644 node_modules/.cache/babel-loader/f656167833b954566ac06dc4ba859980.json rename node_modules/.cache/babel-loader/{ff8c5f33d86b4dffd0a71a40b4337aae.json => f6a7a7614d051918b63cf26fa2cd4f6d.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/f6c03e160d45016203e771ee194a19b2.json rename node_modules/.cache/babel-loader/{4a4d0db10cfc5091e5f858d1665d3f3b.json => f70ac69314458971551b2319666487a8.json} (100%) rename node_modules/.cache/babel-loader/{b17527ce1c54295f735846eb87f49dbe.json => f7508f601622e6823fae91ebbb834077.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/f7adfde3db23132fa8c6ddaf315d4dac.json rename node_modules/.cache/babel-loader/{69ff6450819b7fbeb20c438b4dfefca1.json => f7d5c6e8591ec8321c77b18edd685bce.json} (100%) rename node_modules/.cache/babel-loader/{a05663f7c59da6fb864cfe0e92e7159a.json => f7f2f9719af494ab84b5fb65861a9f0d.json} (100%) rename node_modules/.cache/babel-loader/{ba49d5898cab62acfcbdf322673dae66.json => f8082ac0f38ed91b82f5bc4e24fcda06.json} (100%) rename node_modules/.cache/babel-loader/{ac97c8dba946c2bec84ce681dab47e1a.json => f81d948e5224cc31f6b12b2977dbabb5.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/f862dae617d8a3624a4bb9f705b55b6b.json create mode 100644 node_modules/.cache/babel-loader/f8659222979a9712dcc2e5ff1319345f.json delete mode 100644 node_modules/.cache/babel-loader/f87dc29d2f1de1ac34a4917b8327a94a.json rename node_modules/.cache/babel-loader/{b5eb7c5f66eb9fefff7712d22fceebc4.json => f89073dc7afd7c62869318bb84679352.json} (100%) rename node_modules/.cache/babel-loader/{73db0c19da4c7aac79041876c4117049.json => f8b2c61ff2c3584bfc91bfbe99625799.json} (100%) rename node_modules/.cache/babel-loader/{e464bbc63fb642ca35fa25eb89fe12e1.json => f8e5c62f60af99a5f44347fdacaca3d5.json} (100%) rename node_modules/.cache/babel-loader/{d3ff739122466d7718420114d742c797.json => f9494db94d87595dc4d9b59a70a0a93f.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/f98f0c46f1e28e5f93116fff8dff9774.json delete mode 100644 node_modules/.cache/babel-loader/f9c4f1476bf8dad7e782886ac12bface.json rename node_modules/.cache/babel-loader/{c5a8e48431b2a5d4636e6b0f77957393.json => fa3db94376cc02807e6af7c0f2fa6327.json} (100%) rename node_modules/.cache/babel-loader/{d34f56b69c6b0f3a3bb2da6dd3dc3e43.json => fba574cbebf0d5a3c9d32db08f9e6148.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/fc4ee7eb52080e758138f7393399af5d.json delete mode 100644 node_modules/.cache/babel-loader/fc57a595a80d46cb062c4b22a406dde8.json delete mode 100644 node_modules/.cache/babel-loader/fc5a245986a0949142bf2032c6962290.json rename node_modules/.cache/babel-loader/{94a43985b2d923e8286b6c8c43d21c1f.json => fc9693ce3d9222ccf338221ab75af1bf.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/fd3a74c757ea2db3ac675907d0c9351e.json rename node_modules/.cache/babel-loader/{f707b91cba73221a93a29797c3e0b840.json => fd4ac82a91403f4fa86e1e720378ded4.json} (100%) rename node_modules/.cache/babel-loader/{48504c55e1dae452dde1dc0596fb3afd.json => fd839f77aadb6b02ec4e0a60dae3b296.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/fd92bd590a0e2408a5d8bb1480dbdc1f.json rename node_modules/.cache/babel-loader/{bfd5a7f5a4004dbdf150eac93ba2afa4.json => fdad716af3da0caf783ba46fc183b398.json} (100%) rename node_modules/.cache/babel-loader/{75841ff70b1e0e780ddcaf64429fbe02.json => fdd983d7655cd6ce5f01bc61a3a3243e.json} (100%) rename node_modules/.cache/babel-loader/{ff3680405cc291ae5947de80ade757c7.json => fdda7f4f68fb2854c8c3c317fef0c65e.json} (100%) rename node_modules/.cache/babel-loader/{8b80d53444280b105847debaf4fc5d64.json => fe3d603b2d3d7b1817b0126012e7c82b.json} (100%) rename node_modules/.cache/babel-loader/{0b8b1a4180e524834d030f1d91989a63.json => fea7517573a00e153c9cc118f5b83ea0.json} (100%) rename node_modules/.cache/babel-loader/{d673625dc9ebf7b95c98e9066935ad36.json => fec4df308bff49dcb02781f010320f1a.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/fedf4234e1c1f72fcacb3bc400bd6549.json rename node_modules/.cache/babel-loader/{1722b704c7ed925efb5c4f43fcb0a744.json => ff047e99d280f7af5d5818d54645b9e8.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/ff31d79298153d49ae720cbd0f7b3d51.json rename node_modules/.cache/babel-loader/{c0ebea2a8c84ebafd5a3fe761e4a7ec9.json => ff41ee82e4ca7064de4bda22284a9e60.json} (100%) delete mode 100644 node_modules/.cache/babel-loader/ffe97983437c8241b26c7b3faa54e3c6.json delete mode 100644 node_modules/.cache/babel-loader/ffffd0af385ef02d678b617f51557b5f.json delete mode 100644 node_modules/@emotion/is-prop-valid/CHANGELOG.md delete mode 100644 node_modules/@emotion/is-prop-valid/LICENSE delete mode 100644 node_modules/@emotion/is-prop-valid/README.md delete mode 100644 node_modules/@emotion/is-prop-valid/dist/is-prop-valid.browser.cjs.js delete mode 100644 node_modules/@emotion/is-prop-valid/dist/is-prop-valid.browser.esm.js delete mode 100644 node_modules/@emotion/is-prop-valid/dist/is-prop-valid.cjs.dev.js delete mode 100644 node_modules/@emotion/is-prop-valid/dist/is-prop-valid.cjs.js delete mode 100644 node_modules/@emotion/is-prop-valid/dist/is-prop-valid.cjs.js.flow delete mode 100644 node_modules/@emotion/is-prop-valid/dist/is-prop-valid.cjs.prod.js delete mode 100644 node_modules/@emotion/is-prop-valid/dist/is-prop-valid.esm.js delete mode 100644 node_modules/@emotion/is-prop-valid/package.json delete mode 100644 node_modules/@emotion/is-prop-valid/src/index.js delete mode 100644 node_modules/@emotion/is-prop-valid/src/props.js delete mode 100644 node_modules/@emotion/is-prop-valid/types/index.d.ts delete mode 100644 node_modules/@emotion/is-prop-valid/types/tests.ts delete mode 100644 node_modules/@emotion/is-prop-valid/types/tsconfig.json delete mode 100644 node_modules/@emotion/is-prop-valid/types/tslint.json delete mode 100644 node_modules/babel-plugin-styled-components/LICENSE.md delete mode 100644 node_modules/babel-plugin-styled-components/README.md delete mode 100644 node_modules/babel-plugin-styled-components/lib/css/placeholderUtils.js delete mode 100644 node_modules/babel-plugin-styled-components/lib/index.js delete mode 100644 node_modules/babel-plugin-styled-components/lib/minify/index.js delete mode 100644 node_modules/babel-plugin-styled-components/lib/utils/detectors.js delete mode 100644 node_modules/babel-plugin-styled-components/lib/utils/getName.js delete mode 100644 node_modules/babel-plugin-styled-components/lib/utils/hash.js delete mode 100644 node_modules/babel-plugin-styled-components/lib/utils/options.js delete mode 100644 node_modules/babel-plugin-styled-components/lib/utils/prefixDigit.js delete mode 100644 node_modules/babel-plugin-styled-components/lib/visitors/assignStyledRequired.js delete mode 100644 node_modules/babel-plugin-styled-components/lib/visitors/displayNameAndId.js delete mode 100644 node_modules/babel-plugin-styled-components/lib/visitors/minify.js delete mode 100644 node_modules/babel-plugin-styled-components/lib/visitors/pure.js delete mode 100644 node_modules/babel-plugin-styled-components/lib/visitors/templateLiterals/index.js delete mode 100644 node_modules/babel-plugin-styled-components/lib/visitors/templateLiterals/transpile.js delete mode 100644 node_modules/babel-plugin-styled-components/lib/visitors/transpileCssProp.js delete mode 100644 node_modules/babel-plugin-styled-components/package.json delete mode 100644 node_modules/bootstrap/LICENSE delete mode 100644 node_modules/bootstrap/README.md delete mode 100644 node_modules/bootstrap/dist/css/bootstrap-grid.css delete mode 100644 node_modules/bootstrap/dist/css/bootstrap-grid.css.map delete mode 100644 node_modules/bootstrap/dist/css/bootstrap-grid.min.css delete mode 100644 node_modules/bootstrap/dist/css/bootstrap-grid.min.css.map delete mode 100644 node_modules/bootstrap/dist/css/bootstrap-reboot.css delete mode 100644 node_modules/bootstrap/dist/css/bootstrap-reboot.css.map delete mode 100644 node_modules/bootstrap/dist/css/bootstrap-reboot.min.css delete mode 100644 node_modules/bootstrap/dist/css/bootstrap-reboot.min.css.map delete mode 100644 node_modules/bootstrap/dist/css/bootstrap.css delete mode 100644 node_modules/bootstrap/dist/css/bootstrap.css.map delete mode 100644 node_modules/bootstrap/dist/css/bootstrap.min.css delete mode 100644 node_modules/bootstrap/dist/css/bootstrap.min.css.map delete mode 100644 node_modules/bootstrap/dist/js/bootstrap.bundle.js delete mode 100644 node_modules/bootstrap/dist/js/bootstrap.bundle.js.map delete mode 100644 node_modules/bootstrap/dist/js/bootstrap.bundle.min.js delete mode 100644 node_modules/bootstrap/dist/js/bootstrap.bundle.min.js.map delete mode 100644 node_modules/bootstrap/dist/js/bootstrap.js delete mode 100644 node_modules/bootstrap/dist/js/bootstrap.js.map delete mode 100644 node_modules/bootstrap/dist/js/bootstrap.min.js delete mode 100644 node_modules/bootstrap/dist/js/bootstrap.min.js.map delete mode 100644 node_modules/bootstrap/js/dist/alert.js delete mode 100644 node_modules/bootstrap/js/dist/alert.js.map delete mode 100644 node_modules/bootstrap/js/dist/button.js delete mode 100644 node_modules/bootstrap/js/dist/button.js.map delete mode 100644 node_modules/bootstrap/js/dist/carousel.js delete mode 100644 node_modules/bootstrap/js/dist/carousel.js.map delete mode 100644 node_modules/bootstrap/js/dist/collapse.js delete mode 100644 node_modules/bootstrap/js/dist/collapse.js.map delete mode 100644 node_modules/bootstrap/js/dist/dropdown.js delete mode 100644 node_modules/bootstrap/js/dist/dropdown.js.map delete mode 100644 node_modules/bootstrap/js/dist/index.js delete mode 100644 node_modules/bootstrap/js/dist/modal.js delete mode 100644 node_modules/bootstrap/js/dist/modal.js.map delete mode 100644 node_modules/bootstrap/js/dist/popover.js delete mode 100644 node_modules/bootstrap/js/dist/popover.js.map delete mode 100644 node_modules/bootstrap/js/dist/scrollspy.js delete mode 100644 node_modules/bootstrap/js/dist/scrollspy.js.map delete mode 100644 node_modules/bootstrap/js/dist/tab.js delete mode 100644 node_modules/bootstrap/js/dist/tab.js.map delete mode 100644 node_modules/bootstrap/js/dist/toast.js delete mode 100644 node_modules/bootstrap/js/dist/toast.js.map delete mode 100644 node_modules/bootstrap/js/dist/tooltip.js delete mode 100644 node_modules/bootstrap/js/dist/tooltip.js.map delete mode 100644 node_modules/bootstrap/js/dist/util.js delete mode 100644 node_modules/bootstrap/js/dist/util.js.map delete mode 100644 node_modules/bootstrap/js/src/alert.js delete mode 100644 node_modules/bootstrap/js/src/button.js delete mode 100644 node_modules/bootstrap/js/src/carousel.js delete mode 100644 node_modules/bootstrap/js/src/collapse.js delete mode 100644 node_modules/bootstrap/js/src/dropdown.js delete mode 100644 node_modules/bootstrap/js/src/index.js delete mode 100644 node_modules/bootstrap/js/src/modal.js delete mode 100644 node_modules/bootstrap/js/src/popover.js delete mode 100644 node_modules/bootstrap/js/src/scrollspy.js delete mode 100644 node_modules/bootstrap/js/src/tab.js delete mode 100644 node_modules/bootstrap/js/src/toast.js delete mode 100644 node_modules/bootstrap/js/src/tools/sanitizer.js delete mode 100644 node_modules/bootstrap/js/src/tooltip.js delete mode 100644 node_modules/bootstrap/js/src/util.js delete mode 100644 node_modules/bootstrap/package.json delete mode 100644 node_modules/bootstrap/scss/_alert.scss delete mode 100644 node_modules/bootstrap/scss/_badge.scss delete mode 100644 node_modules/bootstrap/scss/_breadcrumb.scss delete mode 100644 node_modules/bootstrap/scss/_button-group.scss delete mode 100644 node_modules/bootstrap/scss/_buttons.scss delete mode 100644 node_modules/bootstrap/scss/_card.scss delete mode 100644 node_modules/bootstrap/scss/_carousel.scss delete mode 100644 node_modules/bootstrap/scss/_close.scss delete mode 100644 node_modules/bootstrap/scss/_code.scss delete mode 100644 node_modules/bootstrap/scss/_custom-forms.scss delete mode 100644 node_modules/bootstrap/scss/_dropdown.scss delete mode 100644 node_modules/bootstrap/scss/_forms.scss delete mode 100644 node_modules/bootstrap/scss/_functions.scss delete mode 100644 node_modules/bootstrap/scss/_grid.scss delete mode 100644 node_modules/bootstrap/scss/_images.scss delete mode 100644 node_modules/bootstrap/scss/_input-group.scss delete mode 100644 node_modules/bootstrap/scss/_jumbotron.scss delete mode 100644 node_modules/bootstrap/scss/_list-group.scss delete mode 100644 node_modules/bootstrap/scss/_media.scss delete mode 100644 node_modules/bootstrap/scss/_mixins.scss delete mode 100644 node_modules/bootstrap/scss/_modal.scss delete mode 100644 node_modules/bootstrap/scss/_nav.scss delete mode 100644 node_modules/bootstrap/scss/_navbar.scss delete mode 100644 node_modules/bootstrap/scss/_pagination.scss delete mode 100644 node_modules/bootstrap/scss/_popover.scss delete mode 100644 node_modules/bootstrap/scss/_print.scss delete mode 100644 node_modules/bootstrap/scss/_progress.scss delete mode 100644 node_modules/bootstrap/scss/_reboot.scss delete mode 100644 node_modules/bootstrap/scss/_root.scss delete mode 100644 node_modules/bootstrap/scss/_spinners.scss delete mode 100644 node_modules/bootstrap/scss/_tables.scss delete mode 100644 node_modules/bootstrap/scss/_toasts.scss delete mode 100644 node_modules/bootstrap/scss/_tooltip.scss delete mode 100644 node_modules/bootstrap/scss/_transitions.scss delete mode 100644 node_modules/bootstrap/scss/_type.scss delete mode 100644 node_modules/bootstrap/scss/_utilities.scss delete mode 100644 node_modules/bootstrap/scss/_variables.scss delete mode 100644 node_modules/bootstrap/scss/bootstrap-grid.scss delete mode 100644 node_modules/bootstrap/scss/bootstrap-reboot.scss delete mode 100644 node_modules/bootstrap/scss/bootstrap.scss delete mode 100644 node_modules/bootstrap/scss/mixins/_alert.scss delete mode 100644 node_modules/bootstrap/scss/mixins/_background-variant.scss delete mode 100644 node_modules/bootstrap/scss/mixins/_badge.scss delete mode 100644 node_modules/bootstrap/scss/mixins/_border-radius.scss delete mode 100644 node_modules/bootstrap/scss/mixins/_box-shadow.scss delete mode 100644 node_modules/bootstrap/scss/mixins/_breakpoints.scss delete mode 100644 node_modules/bootstrap/scss/mixins/_buttons.scss delete mode 100644 node_modules/bootstrap/scss/mixins/_caret.scss delete mode 100644 node_modules/bootstrap/scss/mixins/_clearfix.scss delete mode 100644 node_modules/bootstrap/scss/mixins/_deprecate.scss delete mode 100644 node_modules/bootstrap/scss/mixins/_float.scss delete mode 100644 node_modules/bootstrap/scss/mixins/_forms.scss delete mode 100644 node_modules/bootstrap/scss/mixins/_gradients.scss delete mode 100644 node_modules/bootstrap/scss/mixins/_grid-framework.scss delete mode 100644 node_modules/bootstrap/scss/mixins/_grid.scss delete mode 100644 node_modules/bootstrap/scss/mixins/_hover.scss delete mode 100644 node_modules/bootstrap/scss/mixins/_image.scss delete mode 100644 node_modules/bootstrap/scss/mixins/_list-group.scss delete mode 100644 node_modules/bootstrap/scss/mixins/_lists.scss delete mode 100644 node_modules/bootstrap/scss/mixins/_nav-divider.scss delete mode 100644 node_modules/bootstrap/scss/mixins/_pagination.scss delete mode 100644 node_modules/bootstrap/scss/mixins/_reset-text.scss delete mode 100644 node_modules/bootstrap/scss/mixins/_resize.scss delete mode 100644 node_modules/bootstrap/scss/mixins/_screen-reader.scss delete mode 100644 node_modules/bootstrap/scss/mixins/_size.scss delete mode 100644 node_modules/bootstrap/scss/mixins/_table-row.scss delete mode 100644 node_modules/bootstrap/scss/mixins/_text-emphasis.scss delete mode 100644 node_modules/bootstrap/scss/mixins/_text-hide.scss delete mode 100644 node_modules/bootstrap/scss/mixins/_text-truncate.scss delete mode 100644 node_modules/bootstrap/scss/mixins/_transition.scss delete mode 100644 node_modules/bootstrap/scss/mixins/_visibility.scss delete mode 100644 node_modules/bootstrap/scss/utilities/_align.scss delete mode 100644 node_modules/bootstrap/scss/utilities/_background.scss delete mode 100644 node_modules/bootstrap/scss/utilities/_borders.scss delete mode 100644 node_modules/bootstrap/scss/utilities/_clearfix.scss delete mode 100644 node_modules/bootstrap/scss/utilities/_display.scss delete mode 100644 node_modules/bootstrap/scss/utilities/_embed.scss delete mode 100644 node_modules/bootstrap/scss/utilities/_flex.scss delete mode 100644 node_modules/bootstrap/scss/utilities/_float.scss delete mode 100644 node_modules/bootstrap/scss/utilities/_interactions.scss delete mode 100644 node_modules/bootstrap/scss/utilities/_overflow.scss delete mode 100644 node_modules/bootstrap/scss/utilities/_position.scss delete mode 100644 node_modules/bootstrap/scss/utilities/_screenreaders.scss delete mode 100644 node_modules/bootstrap/scss/utilities/_shadows.scss delete mode 100644 node_modules/bootstrap/scss/utilities/_sizing.scss delete mode 100644 node_modules/bootstrap/scss/utilities/_spacing.scss delete mode 100644 node_modules/bootstrap/scss/utilities/_stretched-link.scss delete mode 100644 node_modules/bootstrap/scss/utilities/_text.scss delete mode 100644 node_modules/bootstrap/scss/utilities/_visibility.scss delete mode 100644 node_modules/bootstrap/scss/vendor/_rfs.scss delete mode 100644 node_modules/camelize/.travis.yml delete mode 100644 node_modules/camelize/LICENSE delete mode 100644 node_modules/camelize/example/camel.js delete mode 100644 node_modules/camelize/index.js delete mode 100644 node_modules/camelize/package.json delete mode 100644 node_modules/camelize/readme.markdown delete mode 100644 node_modules/camelize/test/camel.js delete mode 100644 node_modules/css-color-keywords/LICENSE delete mode 100644 node_modules/css-color-keywords/README.md delete mode 100644 node_modules/css-color-keywords/colors.json delete mode 100644 node_modules/css-color-keywords/index.js delete mode 100644 node_modules/css-color-keywords/package.json delete mode 100644 node_modules/css-to-react-native/LICENSE.md delete mode 100644 node_modules/css-to-react-native/README.md delete mode 100644 node_modules/css-to-react-native/index.js delete mode 100644 node_modules/css-to-react-native/package.json delete mode 100644 node_modules/css-to-react-native/src/TokenStream.js delete mode 100644 node_modules/css-to-react-native/src/__tests__/border.js delete mode 100644 node_modules/css-to-react-native/src/__tests__/borderColor.js delete mode 100644 node_modules/css-to-react-native/src/__tests__/boxModel.js delete mode 100644 node_modules/css-to-react-native/src/__tests__/boxShadow.js delete mode 100644 node_modules/css-to-react-native/src/__tests__/colors.js delete mode 100644 node_modules/css-to-react-native/src/__tests__/flex.js delete mode 100644 node_modules/css-to-react-native/src/__tests__/flexFlow.js delete mode 100644 node_modules/css-to-react-native/src/__tests__/font.js delete mode 100644 node_modules/css-to-react-native/src/__tests__/fontFamily.js delete mode 100644 node_modules/css-to-react-native/src/__tests__/fontVariant.js delete mode 100644 node_modules/css-to-react-native/src/__tests__/fontWeight.js delete mode 100644 node_modules/css-to-react-native/src/__tests__/index.js delete mode 100644 node_modules/css-to-react-native/src/__tests__/shadowOffsets.js delete mode 100644 node_modules/css-to-react-native/src/__tests__/textDecoration.js delete mode 100644 node_modules/css-to-react-native/src/__tests__/textDecorationLine.js delete mode 100644 node_modules/css-to-react-native/src/__tests__/textShadow.js delete mode 100644 node_modules/css-to-react-native/src/__tests__/transform.js delete mode 100644 node_modules/css-to-react-native/src/__tests__/units.js delete mode 100644 node_modules/css-to-react-native/src/index.js delete mode 100644 node_modules/css-to-react-native/src/tokenTypes.js delete mode 100644 node_modules/css-to-react-native/src/transforms/border.js delete mode 100644 node_modules/css-to-react-native/src/transforms/boxShadow.js delete mode 100644 node_modules/css-to-react-native/src/transforms/flex.js delete mode 100644 node_modules/css-to-react-native/src/transforms/flexFlow.js delete mode 100644 node_modules/css-to-react-native/src/transforms/font.js delete mode 100644 node_modules/css-to-react-native/src/transforms/fontFamily.js delete mode 100644 node_modules/css-to-react-native/src/transforms/index.js delete mode 100644 node_modules/css-to-react-native/src/transforms/textDecoration.js delete mode 100644 node_modules/css-to-react-native/src/transforms/textDecorationLine.js delete mode 100644 node_modules/css-to-react-native/src/transforms/textShadow.js delete mode 100644 node_modules/css-to-react-native/src/transforms/transform.js delete mode 100644 node_modules/css-to-react-native/src/transforms/util.js delete mode 100644 node_modules/is-what/.babelrc delete mode 100644 node_modules/is-what/.eslintignore delete mode 100644 node_modules/is-what/.eslintrc.js delete mode 100644 node_modules/is-what/.github/FUNDING.yml delete mode 100644 node_modules/is-what/.prettierrc delete mode 100644 node_modules/is-what/LICENSE delete mode 100644 node_modules/is-what/README.md delete mode 100644 node_modules/is-what/build.js delete mode 100644 node_modules/is-what/dist/index.cjs.js delete mode 100644 node_modules/is-what/dist/index.esm.js delete mode 100644 node_modules/is-what/package.json delete mode 100644 node_modules/is-what/src/index.ts delete mode 100644 node_modules/is-what/test/ava.ts delete mode 100644 node_modules/is-what/test/index.test.js delete mode 100644 node_modules/is-what/tsconfig.json delete mode 100644 node_modules/is-what/types/index.d.ts delete mode 100644 node_modules/memoize-one/LICENSE delete mode 100644 node_modules/memoize-one/README.md delete mode 100644 node_modules/memoize-one/dist/are-inputs-equal.d.ts delete mode 100644 node_modules/memoize-one/dist/memoize-one.cjs.js delete mode 100644 node_modules/memoize-one/dist/memoize-one.cjs.js.flow delete mode 100644 node_modules/memoize-one/dist/memoize-one.d.ts delete mode 100644 node_modules/memoize-one/dist/memoize-one.esm.js delete mode 100644 node_modules/memoize-one/dist/memoize-one.js delete mode 100644 node_modules/memoize-one/dist/memoize-one.min.js delete mode 100644 node_modules/memoize-one/package.json delete mode 100644 node_modules/memoize-one/src/are-inputs-equal.ts delete mode 100644 node_modules/memoize-one/src/memoize-one.js.flow delete mode 100644 node_modules/memoize-one/src/memoize-one.ts delete mode 100644 node_modules/merge-anything/.github/FUNDING.yml delete mode 100644 node_modules/merge-anything/LICENSE delete mode 100644 node_modules/merge-anything/README.md delete mode 100644 node_modules/merge-anything/build/rollup.js delete mode 100644 node_modules/merge-anything/dist/index.cjs.js delete mode 100644 node_modules/merge-anything/dist/index.esm.js delete mode 100644 node_modules/merge-anything/package.json delete mode 100644 node_modules/merge-anything/src/extensions.ts delete mode 100644 node_modules/merge-anything/src/index.ts delete mode 100644 node_modules/merge-anything/src/merge.ts delete mode 100644 node_modules/merge-anything/test/index.js delete mode 100644 node_modules/merge-anything/tsconfig.json delete mode 100644 node_modules/merge-anything/types/extensions.d.ts delete mode 100644 node_modules/merge-anything/types/index.d.ts delete mode 100644 node_modules/merge-anything/types/merge.d.ts delete mode 100644 node_modules/merge-anything/wallaby.conf.js delete mode 100644 node_modules/styled-components/README.md delete mode 100644 node_modules/styled-components/dist/styled-components-macro.cjs.js delete mode 100644 node_modules/styled-components/dist/styled-components-macro.cjs.js.map delete mode 100644 node_modules/styled-components/dist/styled-components-macro.esm.js delete mode 100644 node_modules/styled-components/dist/styled-components-macro.esm.js.map delete mode 100644 node_modules/styled-components/dist/styled-components.browser.cjs.js delete mode 100644 node_modules/styled-components/dist/styled-components.browser.cjs.js.map delete mode 100644 node_modules/styled-components/dist/styled-components.browser.esm.js delete mode 100644 node_modules/styled-components/dist/styled-components.browser.esm.js.map delete mode 100644 node_modules/styled-components/dist/styled-components.cjs.js delete mode 100644 node_modules/styled-components/dist/styled-components.cjs.js.map delete mode 100644 node_modules/styled-components/dist/styled-components.esm.js delete mode 100644 node_modules/styled-components/dist/styled-components.esm.js.map delete mode 100644 node_modules/styled-components/dist/styled-components.js delete mode 100644 node_modules/styled-components/dist/styled-components.js.map delete mode 100644 node_modules/styled-components/dist/styled-components.min.js delete mode 100644 node_modules/styled-components/dist/styled-components.min.js.map delete mode 100644 node_modules/styled-components/macro/package.json delete mode 100644 node_modules/styled-components/native/dist/styled-components.native.cjs.js delete mode 100644 node_modules/styled-components/native/dist/styled-components.native.cjs.js.map delete mode 100644 node_modules/styled-components/native/dist/styled-components.native.esm.js delete mode 100644 node_modules/styled-components/native/dist/styled-components.native.esm.js.map delete mode 100644 node_modules/styled-components/native/package.json delete mode 100644 node_modules/styled-components/package.json delete mode 100644 node_modules/styled-components/primitives/dist/styled-components-primitives.cjs.js delete mode 100644 node_modules/styled-components/primitives/dist/styled-components-primitives.cjs.js.map delete mode 100644 node_modules/styled-components/primitives/dist/styled-components-primitives.esm.js delete mode 100644 node_modules/styled-components/primitives/dist/styled-components-primitives.esm.js.map delete mode 100644 node_modules/styled-components/primitives/package.json delete mode 100755 node_modules/styled-components/scripts/postinstall.js delete mode 100644 node_modules/styled-components/test-utils/index.js delete mode 100644 node_modules/styled-components/test-utils/setupTestFramework.js delete mode 100644 node_modules/stylis-rule-sheet/README.md delete mode 100644 node_modules/stylis-rule-sheet/index.js delete mode 100644 node_modules/stylis-rule-sheet/package.json delete mode 100644 node_modules/stylis/CHANGELOG.md delete mode 100644 node_modules/stylis/LICENSE.md delete mode 100644 node_modules/stylis/README.md delete mode 100644 node_modules/stylis/package.json delete mode 100644 node_modules/stylis/stylis.d.ts delete mode 100644 node_modules/stylis/stylis.js delete mode 100644 node_modules/stylis/stylis.min.js delete mode 100644 node_modules/stylis/stylis.min.js.map diff --git a/node_modules/.cache/babel-loader/000234022385e7b29873235e876c67f8.json b/node_modules/.cache/babel-loader/000234022385e7b29873235e876c67f8.json deleted file mode 100644 index 468b590a..00000000 --- a/node_modules/.cache/babel-loader/000234022385e7b29873235e876c67f8.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 219,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 229,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 230,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 242,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 247,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 248,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 249,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 256,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 264,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 273,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,SAASC,aAAT,QAA8B,iBAA9B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AAAA;AAAA;AAAA;AAAA,QATe,CAAjB;AAgBA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIkF,QADJ,CAFF;AAOH;;;;EArQe7F,S;;AAuQlB,eAAeI,UAAU,CAACQ,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n
\n \n
\n :\n
\n \n
\n \n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/692d236f2b8987eef3de100ce0f770e8.json b/node_modules/.cache/babel-loader/00383c47c12d884d8e90cd613e2dc189.json similarity index 100% rename from node_modules/.cache/babel-loader/692d236f2b8987eef3de100ce0f770e8.json rename to node_modules/.cache/babel-loader/00383c47c12d884d8e90cd613e2dc189.json diff --git a/node_modules/.cache/babel-loader/0e642a9ef6091e914451a2f0bbb461f3.json b/node_modules/.cache/babel-loader/003eaffc04f9ba2713bc4ecfc6c03b67.json similarity index 100% rename from node_modules/.cache/babel-loader/0e642a9ef6091e914451a2f0bbb461f3.json rename to node_modules/.cache/babel-loader/003eaffc04f9ba2713bc4ecfc6c03b67.json diff --git a/node_modules/.cache/babel-loader/0075836d3369439219fdf7983cd45cef.json b/node_modules/.cache/babel-loader/0075836d3369439219fdf7983cd45cef.json deleted file mode 100644 index a337a017..00000000 --- a/node_modules/.cache/babel-loader/0075836d3369439219fdf7983cd45cef.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n /* const options = this.state.isAuthenticated ? \n
\n \n
\n :\n
\n \n
\n \n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

}\n /* < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
*/\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 294,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 295,\n columnNumber: 11\n }\n }));\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,OAAOC,aAAP,MAA0B,iBAA1B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAC/C,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAwC;;AACxC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE;AAJF,KAOU;AAAA,QAETC,OAFS,GAEEP,KAFF,CAETO,OAFS;AAGhBC,IAAAA,OAAO,CAACC,GAAR,CAAYF,OAAZ;AACA,UAAKN,KAAL,CAAWS,SAAX,GAAuBH,OAAO,CAACI,GAAR,CAAY,YAAZ,CAAvB;AACAH,IAAAA,OAAO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;AACA;AACAtB,MAAAA,MAAM,CAACC,QAAP,CAAgBC,IAAhB,GAAuB,iCAAvB,CAHkB,CAIlB;AACA;AACD;;;sCAEiBvC,M,EAAQ;AAAA;;AACxB,UAAIA,MAAJ,EAAW;AACT,YAAM4D,UAAU,GAAGtE,KAAK,CAACuE,MAAN,EAAnB;AACAD,QAAAA,UAAU,CAACE,QAAX,CAAoBC,OAApB,GAA8B,MAA9B,CAFS,CAIT;;AAEAH,QAAAA,UAAU,CAACvD,GAAX,kBAAyB,KAAKI,EAA9B,6BAAmD,KAAKd,KAAL,CAAWG,IAAX,CAAgB0D,GAAnE,GAA0E;AAAEQ,UAAAA,eAAe,EAAE;AAAnB,SAA1E,EACKlB,IADL,CACU,UAAAmB,GAAG,EAAI;AACX,UAAA,MAAI,CAAClC,QAAL,CAAc;AAAC/B,YAAAA,MAAM,EAAE;AAAT,WAAd;AACD,SAHL;AAIC,OAVH,MAWK;AACH;;;;;;;;;AAWI,aAAKqB,eAAL;AACL;AAEF;;;6BAIQ;AACR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0EG,0BACE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CADF;AASH;;;;EA5Re9C,S;;AA8RlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n /* const options = this.state.isAuthenticated ? \n
\n \n
\n :\n
\n \n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

}\n /* < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
*/\n\n \n return (\n
\n \n \n
\n \n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/6dd203b6b802773c71169b9cc2a4f601.json b/node_modules/.cache/babel-loader/00881cb0e300772e83984ef7012d0f55.json similarity index 100% rename from node_modules/.cache/babel-loader/6dd203b6b802773c71169b9cc2a4f601.json rename to node_modules/.cache/babel-loader/00881cb0e300772e83984ef7012d0f55.json diff --git a/node_modules/.cache/babel-loader/009babc01c7b041cfb4baae47821d8c5.json b/node_modules/.cache/babel-loader/009babc01c7b041cfb4baae47821d8c5.json deleted file mode 100644 index 32bcc5aa..00000000 --- a/node_modules/.cache/babel-loader/009babc01c7b041cfb4baae47821d8c5.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/NavigationBar.js\";\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nimport './NavigationBar.css';\n\nvar NavigationBar = function NavigationBar(props) {\n /*#__PURE__*/\n React.createElement(\"header\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 7,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"logo\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 9,\n columnNumber: 11\n }\n }), /*#__PURE__*/React.createElement(\"nav\", {\n className: \"navigation-items\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 12,\n columnNumber: 11\n }\n }));\n};\n\nexport default NavigationBar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/NavigationBar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","styled","NavigationBar","props"],"mappings":";;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,qBAAP;;AACA,IAAMC,aAAa,GAAE,SAAfA,aAAe,CAAAC,KAAK,EAAI;AAExB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAEI;AAAK,IAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAFJ,eAKI;AAAK,IAAA,SAAS,EAAC,kBAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IALJ;AAWH,CAbH;;AAcE,eAAeD,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nimport './NavigationBar.css';\nconst NavigationBar= props => {\n \n
\n \n
\n {/* your logo */}\n
\n \n \n
\n \n };\n export default NavigationBar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/745a70818845030a03344fcb083857c9.json b/node_modules/.cache/babel-loader/00c1c15839d56c5f116f0a5fd4b0b493.json similarity index 100% rename from node_modules/.cache/babel-loader/745a70818845030a03344fcb083857c9.json rename to node_modules/.cache/babel-loader/00c1c15839d56c5f116f0a5fd4b0b493.json diff --git a/node_modules/.cache/babel-loader/00ca6847069f04db1d6f0b5286b4817b.json b/node_modules/.cache/babel-loader/00ca6847069f04db1d6f0b5286b4817b.json deleted file mode 100644 index d6c2cc6c..00000000 --- a/node_modules/.cache/babel-loader/00ca6847069f04db1d6f0b5286b4817b.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport Navigationbar from './components/Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 228,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 229,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 242,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 19\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 278,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 282,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 283,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 286,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 294,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 295,\n columnNumber: 11\n }\n }), mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,OAAOC,aAAP,MAA2B,4BAA3B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAC/C,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAwC;;AACxC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,E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QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAVa,eAcb;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAda,eAkBb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAlBa,CAAjB;AAyBE,0BACE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,EAEIkF,QAFJ,CADF;AASH;;;;EA5Re9F,S;;AA8RlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport Navigationbar from './components/Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n
\n \n
\n :\n
\n \n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n
\n \n {mainBody}\n
\n \n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/ff377d0fbc95c6643a3ae2cb7b00274e.json b/node_modules/.cache/babel-loader/00ef51eb15019cab1136b44d5f2483e1.json similarity index 100% rename from node_modules/.cache/babel-loader/ff377d0fbc95c6643a3ae2cb7b00274e.json rename to node_modules/.cache/babel-loader/00ef51eb15019cab1136b44d5f2483e1.json diff --git a/node_modules/.cache/babel-loader/2f49c54b1ecbed754944675191f3ff22.json b/node_modules/.cache/babel-loader/00f597585d297f73c6ab114c9b7e567b.json similarity index 100% rename from node_modules/.cache/babel-loader/2f49c54b1ecbed754944675191f3ff22.json rename to node_modules/.cache/babel-loader/00f597585d297f73c6ab114c9b7e567b.json diff --git a/node_modules/.cache/babel-loader/013dffab964d406fd8bcc90b7eb2bffb.json b/node_modules/.cache/babel-loader/013dffab964d406fd8bcc90b7eb2bffb.json deleted file mode 100644 index e76a34f1..00000000 --- a/node_modules/.cache/babel-loader/013dffab964d406fd8bcc90b7eb2bffb.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport NavigationBar from './components/NavigationBar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 228,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 229,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 242,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 19\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 278,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 282,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 283,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 286,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 294,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(NavigationBar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 295,\n columnNumber: 11\n }\n }), mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","NavigationBar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,OAAQC,aAAR,MAA4B,4BAA5B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAx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AA;AAAA,sBACb;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACG;AAAM,QAAA,GAAG,EAAEnF,MAAX;AAAmB,QAAA,KAAK,EAAE,MAA1B;AAAkC,QAAA,MAAM,EAAE,MAA1C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADH,CADJ,EAIKgF,OAJL,CADa,EAQZE,SARY,eAUb;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAEjF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAVa,eAcb;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAda,eAkBb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAlBa,CAAjB;AAyBE,0BACE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,EAEIkF,QAFJ,CADF;AASH;;;;EA5Re9F,S;;AA8RlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport NavigationBar from './components/NavigationBar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n
\n \n
\n :\n
\n \n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n
\n \n {mainBody}\n
\n \n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/02ef1e06ff022d6e4c9f5ead9ebee0c3.json b/node_modules/.cache/babel-loader/015cc48e07bbb2a200724b325fcdc0e1.json similarity index 100% rename from node_modules/.cache/babel-loader/02ef1e06ff022d6e4c9f5ead9ebee0c3.json rename to node_modules/.cache/babel-loader/015cc48e07bbb2a200724b325fcdc0e1.json diff --git a/node_modules/.cache/babel-loader/edafcd606acde6193b22e160b5734716.json b/node_modules/.cache/babel-loader/01865d8c57dbf2fefed0f66e7f534125.json similarity index 100% rename from node_modules/.cache/babel-loader/edafcd606acde6193b22e160b5734716.json rename to node_modules/.cache/babel-loader/01865d8c57dbf2fefed0f66e7f534125.json diff --git a/node_modules/.cache/babel-loader/e251333650a5cab69113680f9c7f1ee5.json b/node_modules/.cache/babel-loader/01e2b50f0afa2782db694966c79c9002.json similarity index 100% rename from node_modules/.cache/babel-loader/e251333650a5cab69113680f9c7f1ee5.json rename to node_modules/.cache/babel-loader/01e2b50f0afa2782db694966c79c9002.json diff --git a/node_modules/.cache/babel-loader/f355768abd34fc461b68f25cff1b6791.json b/node_modules/.cache/babel-loader/022f4b2a86ecb450fafbbbcca2fa7c8d.json similarity index 100% rename from node_modules/.cache/babel-loader/f355768abd34fc461b68f25cff1b6791.json rename to node_modules/.cache/babel-loader/022f4b2a86ecb450fafbbbcca2fa7c8d.json diff --git a/node_modules/.cache/babel-loader/5be0950d78870962c199dc11e33e6aca.json b/node_modules/.cache/babel-loader/023a139938a38dcfd62a823b3ef5e266.json similarity index 100% rename from node_modules/.cache/babel-loader/5be0950d78870962c199dc11e33e6aca.json rename to node_modules/.cache/babel-loader/023a139938a38dcfd62a823b3ef5e266.json diff --git a/node_modules/.cache/babel-loader/8a1155cf467b1eda74acc4ec4abd10ae.json b/node_modules/.cache/babel-loader/0249d2e3e75644dc02a519b0eee1691f.json similarity index 100% rename from node_modules/.cache/babel-loader/8a1155cf467b1eda74acc4ec4abd10ae.json rename to node_modules/.cache/babel-loader/0249d2e3e75644dc02a519b0eee1691f.json diff --git a/node_modules/.cache/babel-loader/0255ef7dad0ff0bd50dd1f535605d7fd.json b/node_modules/.cache/babel-loader/0255ef7dad0ff0bd50dd1f535605d7fd.json deleted file mode 100644 index 0edf0a1e..00000000 --- a/node_modules/.cache/babel-loader/0255ef7dad0ff0bd50dd1f535605d7fd.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Manager.js\";\nimport React, { Component } from 'react';\nimport ProgressBar from './progress-bar';\n\nvar Manager = /*#__PURE__*/function (_Component) {\n _inherits(Manager, _Component);\n\n function Manager(props) {\n var _this;\n\n _classCallCheck(this, Manager);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(Manager).call(this, props));\n _this.state = {\n percentage: 50\n };\n return _this;\n }\n\n _createClass(Manager, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 12,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(ProgressBar, {\n percentage: this.state.percentage,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 13,\n columnNumber: 17\n }\n }), /*#__PURE__*/React.createElement(\"h1\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 17\n }\n }, \"Tasks Completed :\"), /*#__PURE__*/React.createElement(\"div\", {\n class: \"menu\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"cb-row\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(\"label\", {\n for: \"nome\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 21\n }\n }, \"1) Take off and climb to a specified altitude, then land; this scenario will allow the teacher and students to verify that everything has been installed and configured correctly :\"), /*#__PURE__*/React.createElement(\"input\", {\n id: \"nome\",\n name: \"Nome\",\n type: \"checkbox\",\n value: \"Nome\",\n checked: true,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 21\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n class: \"cb-row\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(\"label\", {\n for: \"data\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 21\n }\n }, \"2) Take off and climb to an altitude of 2 meters, rotate 90 degrees to the left, then 180 degrees to the right and finally 90 degrees to the left, then land :\"), /*#__PURE__*/React.createElement(\"input\", {\n id: \"data\",\n name: \"Data\",\n type: \"checkbox\",\n value: \"Data\",\n checked: true,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 21\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n class: \"cb-row\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(\"label\", {\n for: \"cliente\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 21\n }\n }, \"3) Take off and climb to an altitude of 2 meters, at a speed of 0.5 meters/second, back 2 meters, move left 2 meters, move forward 2 meters, then return to the starting point going right 2 meters, and finally land :\"), /*#__PURE__*/React.createElement(\"input\", {\n id: \"cliente\",\n name: \"Cliente\",\n type: \"checkbox\",\n value: \"Cliente\",\n unchecked: true,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 21\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n class: \"cb-row\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(\"label\", {\n for: \"ob\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 21\n }\n }, \"4) take off and climb to an altitude of 2 meters, repeat 4 times: (rotate 90 degrees to the right and then advance 2 meters at a speed of 0.5 meters/second), then land :\"), /*#__PURE__*/React.createElement(\"input\", {\n id: \"ob\",\n name: \"Observa\\xE7\\xF5es\",\n type: \"checkbox\",\n value: \"Observa\\xE7\\xF5es\",\n unchecked: true,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 21\n }\n }))));\n }\n }]);\n\n return Manager;\n}(Component);\n\nexport default Manager;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Manager.js"],"names":["React","Component","ProgressBar","Manager","props","state","percentage"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,WAAP,MAAwB,gBAAxB;;IAEMC,O;;;AACF,mBAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AACd,iFAAMA,KAAN;AACA,UAAKC,KAAL,GAAa;AAACC,MAAAA,UAAU,EAAG;AAAd,KAAb;AAFc;AAGjB;;;;6BAEQ;AACL,0BACI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,WAAD;AAAa,QAAA,UAAU,EAAE,KAAKD,KAAL,CAAWC,UAApC;AAAA;AAAA;AAAA;AAAA;AAAA;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E;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAFJ,CAXA,eAeA;AAAK,QAAA,KAAK,EAAC,QAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAO,QAAA,GAAG,EAAC,IAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qLADJ,eAEI;AAAO,QAAA,EAAE,EAAC,IAAV;AAAe,QAAA,IAAI,EAAC,mBAApB;AAAkC,QAAA,IAAI,EAAC,UAAvC;AAAkD,QAAA,KAAK,EAAC,mBAAxD;AAAsE,QAAA,SAAS,MAA/E;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAFJ,CAfA,CAJJ,CADJ;AA2BH;;;;EAlCiBL,S;;AAqCtB,eAAeE,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport ProgressBar from './progress-bar';\n\nclass Manager extends Component{\n constructor(props){\n super(props);\n this.state = {percentage : 50}\n }\n\n render() {\n return (\n
\n \n \n

Tasks Completed :

\n
\n \n\n
\n \n \n
\n
\n \n \n
\n
\n \n \n
\n
\n \n \n
\n
\n
\n );\n }\n}\n\nexport default Manager;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/99bd7cecb6d8905fb468ac7d5018cab8.json b/node_modules/.cache/babel-loader/027878edcc66767c4766f52dd330bfc5.json similarity index 100% rename from node_modules/.cache/babel-loader/99bd7cecb6d8905fb468ac7d5018cab8.json rename to node_modules/.cache/babel-loader/027878edcc66767c4766f52dd330bfc5.json diff --git a/node_modules/.cache/babel-loader/5d1d409640a12e515179709db55087d7.json b/node_modules/.cache/babel-loader/0292fc2edf9ace7c01bd29be2e5eeee6.json similarity index 100% rename from node_modules/.cache/babel-loader/5d1d409640a12e515179709db55087d7.json rename to node_modules/.cache/babel-loader/0292fc2edf9ace7c01bd29be2e5eeee6.json diff --git a/node_modules/.cache/babel-loader/c9587341616200b7048646387c9d2aff.json b/node_modules/.cache/babel-loader/02a14eb2307c452630dd090907d41474.json similarity index 100% rename from node_modules/.cache/babel-loader/c9587341616200b7048646387c9d2aff.json rename to node_modules/.cache/babel-loader/02a14eb2307c452630dd090907d41474.json diff --git a/node_modules/.cache/babel-loader/02fe3c75031e91fe1c494f70e695b01a.json b/node_modules/.cache/babel-loader/02fe3c75031e91fe1c494f70e695b01a.json deleted file mode 100644 index 87f2c05f..00000000 --- a/node_modules/.cache/babel-loader/02fe3c75031e91fe1c494f70e695b01a.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var authenticated = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 5\n }\n }, authenticated ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 48,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 53,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 54,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 58,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 59,\n columnNumber: 41\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 63,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 64,\n columnNumber: 41\n }\n }, \"Logout\")))))))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 79,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 80,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 81,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 82,\n columnNumber: 11\n }\n }, \"Login\")))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","authenticated","props","isLoggedIn","textDecoration","submit","login"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AACN,UAAMC,aAAa,GAAG,KAAKC,KAAL,CAAWC,UAAjC;AAEF,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACGF,aAAa,gBACd,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAQ,QAAA,MAAM,EAAC,IAAf;AA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from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const authenticated = this.props.isLoggedIn;\n \n return (\n
\n {authenticated ? (\n \n \n \n \n \n \n \n )\n :\n (\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n )\n } \n
\n \n );\n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/c8efc21512af56740166eacc13deb3a9.json b/node_modules/.cache/babel-loader/033323336476a04ab7f1e72ba0aa0f14.json similarity index 100% rename from node_modules/.cache/babel-loader/c8efc21512af56740166eacc13deb3a9.json rename to node_modules/.cache/babel-loader/033323336476a04ab7f1e72ba0aa0f14.json diff --git a/node_modules/.cache/babel-loader/03437e3c429d2cfeae007de100af3c44.json b/node_modules/.cache/babel-loader/03437e3c429d2cfeae007de100af3c44.json deleted file mode 100644 index bd4c988c..00000000 --- a/node_modules/.cache/babel-loader/03437e3c429d2cfeae007de100af3c44.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 229,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 230,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 256,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 272,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 280,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 283,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 284,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 287,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(React.Fragment, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 295,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 296,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 297,\n columnNumber: 13\n }\n })));\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,OAAOC,aAAP,MAA0B,iBAA1B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAC/C,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAwC;;AACxC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,M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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADH,CADJ,EAIKgF,OAJL,CADa,EAQZE,SARY,eAUb;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAEjF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAVa,eAcb;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAda,eAkBb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAlBa,CAAjB;AAyBE,0BACE,oBAAC,KAAD,CAAO,QAAP;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CADF,CADF;AAUH;;;;EA9ReZ,S;;AAgSlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n \n
\n \n
\n :\n
\n \n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n \n \n \n \n \n \n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/e4477a144d3eaca3ed03c343067ccb61.json b/node_modules/.cache/babel-loader/03523a8342c11a37a25c1fbc34c8099c.json similarity index 100% rename from node_modules/.cache/babel-loader/e4477a144d3eaca3ed03c343067ccb61.json rename to node_modules/.cache/babel-loader/03523a8342c11a37a25c1fbc34c8099c.json diff --git a/node_modules/.cache/babel-loader/03f1b904e4a9149724f6d41a435ef832.json b/node_modules/.cache/babel-loader/03f1b904e4a9149724f6d41a435ef832.json deleted file mode 100644 index acf0a580..00000000 --- a/node_modules/.cache/babel-loader/03f1b904e4a9149724f6d41a435ef832.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink, Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var isLoggedIn = this.props.isLoggedIn;\n console.log(\"Riddhi\", isLoggedIn);\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 14,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 35\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 37\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 41\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 45\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 49\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 45\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 49\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 45\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 49\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 45\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 47\n }\n }, \"Logout\"))))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","Link","styled","header","Navigationbar","isLoggedIn","props","console","log","textDecoration","submit"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,EAAiBC,IAAjB,QAA6B,kBAA7B;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;IAEzCC,a;;;;;;;;;;;6BACI;AACN,UAAMC,UAAU,GAAG,KAAKC,KAAL,CAAWD,UAA9B;AACAE,MAAAA,OAAO,CAACC,GAAR,CAAY,QAAZ,EAAqBH,UAArB;AAEA,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACY,oBAAC,GAAD;AAAK,QAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACc;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA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AAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKH,KAAL,CAAWI,MAAhE;AAAwE,QAAA,KAAK,EAAC,QAA9E;AAAuF,QAAA,EAAE,EAAC,GAA1F;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBADF,CAlBJ,CADR,CANd,CADZ,CADF;AAsCH;;;;EA3C2Bf,S;;AA6C5B,eAAeS,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink,Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nclass Navigationbar extends Component { \n render(){\n const isLoggedIn = this.props.isLoggedIn;\n console.log(\"Riddhi\",isLoggedIn);\n \n return (\n
\n \n \n
\n); \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/3129459a883570b671da282c103ba4ed.json b/node_modules/.cache/babel-loader/03f6665e357e36079365bed05a0506f4.json similarity index 100% rename from node_modules/.cache/babel-loader/3129459a883570b671da282c103ba4ed.json rename to node_modules/.cache/babel-loader/03f6665e357e36079365bed05a0506f4.json diff --git a/node_modules/.cache/babel-loader/0f95fe8d8dbc3fa1f35bc10ed197f88b.json b/node_modules/.cache/babel-loader/04bcbf7b93bb93eaf766bd12d50322be.json similarity index 100% rename from node_modules/.cache/babel-loader/0f95fe8d8dbc3fa1f35bc10ed197f88b.json rename to node_modules/.cache/babel-loader/04bcbf7b93bb93eaf766bd12d50322be.json diff --git a/node_modules/.cache/babel-loader/054c04baa6492e8fc1088c04971fef51.json b/node_modules/.cache/babel-loader/054c04baa6492e8fc1088c04971fef51.json deleted file mode 100644 index 998ee280..00000000 --- a/node_modules/.cache/babel-loader/054c04baa6492e8fc1088c04971fef51.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"(function (factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module['exports'] = factory() : typeof define === 'function' && define['amd'] ? define(factory()) : window['stylisRuleSheet'] = factory();\n})(function () {\n 'use strict';\n\n return function (insertRule) {\n var delimiter = '/*|*/';\n var needle = delimiter + '}';\n\n function toSheet(block) {\n if (block) try {\n insertRule(block + '}');\n } catch (e) {}\n }\n\n return function ruleSheet(context, content, selectors, parents, line, column, length, ns, depth, at) {\n switch (context) {\n // property\n case 1:\n // @import\n if (depth === 0 && content.charCodeAt(0) === 64) return insertRule(content + ';'), '';\n break;\n // selector\n\n case 2:\n if (ns === 0) return content + delimiter;\n break;\n // at-rule\n\n case 3:\n switch (ns) {\n // @font-face, @page\n case 102:\n case 112:\n return insertRule(selectors[0] + content), '';\n\n default:\n return content + (at === 0 ? delimiter : '');\n }\n\n case -2:\n content.split(needle).forEach(toSheet);\n }\n };\n };\n});","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/fd958486911f620c33e46a5ff18d302e.json b/node_modules/.cache/babel-loader/0569b2876425cca2a8552605b411b91c.json similarity index 100% rename from node_modules/.cache/babel-loader/fd958486911f620c33e46a5ff18d302e.json rename to node_modules/.cache/babel-loader/0569b2876425cca2a8552605b411b91c.json diff --git a/node_modules/.cache/babel-loader/cd0f19ac6ee734434cff474b954660be.json b/node_modules/.cache/babel-loader/056b3225cb1106edc7f59e7c692fb0e0.json similarity index 100% rename from node_modules/.cache/babel-loader/cd0f19ac6ee734434cff474b954660be.json rename to node_modules/.cache/babel-loader/056b3225cb1106edc7f59e7c692fb0e0.json diff --git a/node_modules/.cache/babel-loader/05ff42c6181e63dd5f5ef78274e128f1.json b/node_modules/.cache/babel-loader/05ff42c6181e63dd5f5ef78274e128f1.json deleted file mode 100644 index bbeb36c6..00000000 --- a/node_modules/.cache/babel-loader/05ff42c6181e63dd5f5ef78274e128f1.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var isLoggedIn = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 41\n }\n }, \"Simulator\"))))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","isLoggedIn","props","textDecoration"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AACN,UAAMC,UAAU,GAAG,KAAKC,KAAL,CAAWD,UAA9B;AACA,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAEA,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAEQ;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACc;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAAA,KAAK,EAAC,MAAX;AAAkB,QAAA,GAAG,EAAEJ,MAAvB;AAA+B,QAAA,KAAK,EAAE,MAAtC;AAA8C,QAAA,MAAM,EAAE,MAAtD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CADd,CAFR,eAOkB;AAAK,QAAA,EAAE,EAAC,QAAR;AAAiB,QAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAIQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAEM,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA6C,QAAA,KAAK,EAAC,UAAnD;AAA8D,QAAA,EAAE,EAAC,WAAjE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBADJ,CADJ,eAOI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA6C,QAAA,KAAK,EAAC,OAAnD;AAA2D,QAAA,EAAE,EAAC,QAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CAPJ,eAYI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA6C,QAAA,KAAK,EAAC,OAAnD;AAA2D,QAAA,EAAE,EAAC,GAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADJ,CAZJ,CAJR,CAPlB,CAFA,CADF;AA6CH;;;;EAhD2Bb,S;;AAkD5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const isLoggedIn = this.props.isLoggedIn;\n return (\n
\n \n \n \n
\n \n \n \n
\n
\n \n \n \n
    \n
  • \n \n Progress\n \n
  • \n \n
  • \n \n Tasks\n \n
  • \n
  • \n \n Simulator\n \n
  • \n \n
\n \n \n
\n \n
\n \n \n \n \n\n
\n); \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/416ec977b6d15f220d5d47e978586950.json b/node_modules/.cache/babel-loader/06184e4d0c08c610d2374b8f3e4fa609.json similarity index 100% rename from node_modules/.cache/babel-loader/416ec977b6d15f220d5d47e978586950.json rename to node_modules/.cache/babel-loader/06184e4d0c08c610d2374b8f3e4fa609.json diff --git a/node_modules/.cache/babel-loader/f9686b099055661d1c28ac4e5e8293a2.json b/node_modules/.cache/babel-loader/062efc80d36763d0f20234728afa0778.json similarity index 100% rename from node_modules/.cache/babel-loader/f9686b099055661d1c28ac4e5e8293a2.json rename to node_modules/.cache/babel-loader/062efc80d36763d0f20234728afa0778.json diff --git a/node_modules/.cache/babel-loader/063db1552e8b2a3d1b69db0a3140b315.json b/node_modules/.cache/babel-loader/063db1552e8b2a3d1b69db0a3140b315.json deleted file mode 100644 index 4775076b..00000000 --- a/node_modules/.cache/babel-loader/063db1552e8b2a3d1b69db0a3140b315.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n console.login(\"riddhi\", this.isLoggedIn);\n var options = this.props.isLoggedIn ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 49,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 54,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 41\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 59,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 60,\n columnNumber: 41\n }\n }, \"Logout\"))))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 73,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 74,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 75,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 76,\n columnNumber: 11\n }\n }, \"Login\"))));\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 84,\n columnNumber: 9\n }\n }, options);\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","console","login","isLoggedIn","options","props","textDecoration","submit"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,k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A,CA3CP;AAqDD,0BACQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIE,OADJ,CADR;AAKC;;;;EA9D2Bd,S;;AAgE5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n \n console.login(\"riddhi\",this.isLoggedIn)\n const options = this.props.isLoggedIn ? \n \n \n
\n \n \n \n
\n
\n \n \n \n
    \n
  • \n \n Progress\n \n
  • \n \n
  • \n \n Tasks\n \n
  • \n
  • \n \n Simulator\n \n
  • \n
  • \n \n Logout\n \n
  • \n
\n \n \n
\n \n
\n \n :\n \n
\n \n
\n \nreturn (\n
\n {options}\n
\n) \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/064934db6fd90bb5300858a94ff8e7c2.json b/node_modules/.cache/babel-loader/064934db6fd90bb5300858a94ff8e7c2.json deleted file mode 100644 index 51acf9ac..00000000 --- a/node_modules/.cache/babel-loader/064934db6fd90bb5300858a94ff8e7c2.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink, Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var isLoggedIn = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 13,\n columnNumber: 7\n }\n }, isLoggedIn ? /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 35\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 37\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 41\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 45\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 49\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 45\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 49\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 45\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 49\n }\n }, \"Simulator\"))))) : null);\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","Link","styled","header","Navigationbar","isLoggedIn","props","textDecoration"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C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oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,OAAhD;AAAwD,QAAA,EAAE,EAAC,QAA3D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CARJ,eAaI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,OAAhD;AAAwD,QAAA,EAAE,EAAC,GAA3D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADJ,CAbJ,CADR,CANd,CADG,GA8BX,IA/BJ,CADF;AAoCH;;;;EAxC2BZ,S;;AA0C5B,eAAeS,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink,Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nclass Navigationbar extends Component { \n render(){\n const isLoggedIn = this.props.isLoggedIn;\n \n return (\n
\n {isLoggedIn ? (\n \n ):\n null\n } \n
\n); \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/069bb03282590f26824c8f352e20a7c9.json b/node_modules/.cache/babel-loader/069bb03282590f26824c8f352e20a7c9.json deleted file mode 100644 index f8f3fb5c..00000000 --- a/node_modules/.cache/babel-loader/069bb03282590f26824c8f352e20a7c9.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 27\n }\n }), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 35\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 237,\n columnNumber: 37\n }\n }))), /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 240,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 241,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 242,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 252,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 254,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 24\n }\n }, options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 272,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 273,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 275,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 282,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","isNavbar","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,aAAP,MAA2B,iBAA3B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AASJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UARlBC,KAQkB,GARV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE,KAJF;AAKNC,MAAAA,QAAQ,EAAE;AALJ,KAQU;AAAA,QAETC,OAFS,GAEER,KAFF,CAETQ,OAFS;AAGhBC,IAAAA,OAAO,CAACC,GAAR,CAAYF,OAAZ;AACA,UAAKP,KAAL,CAAWU,SAAX,GAAuBH,OAAO,CAACI,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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAGO,KAAKD,KAAL,CAAWC,SAAX,iBAAwB;AAAG,QAAA,SAAS,EAAC,uBAAb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAH/B,EAIO,CAAC,KAAKD,KAAL,CAAWK,MAAZ,iBAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAJ7B,EAKO,KAAKL,KAAL,CAAWK,MAAX,iBAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAL5B,CAFF,CADS,GAYL,IAZd;AAcE,UAAMsE,QAAQ,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAEdH,OAFc,EAGdE,SAHc,eAIf;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAElF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAJe,eAOf;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAPe,eAUf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAVe,CAAjB;AAeA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAGImF,QAHJ,CAFF;AAUH;;;;EAjRe/F,S;;AAmRlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? (\n
\n \n
\n ):(\n \n \n
\n
\n \n \n \n
\n \n
\n \n )\n \n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n \n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n \n \n {mainBody}\n \n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/d888623dc1ff2f0d059b1489ad8c27b2.json b/node_modules/.cache/babel-loader/06effc8b2670eaae241ec88801b471ec.json similarity index 100% rename from node_modules/.cache/babel-loader/d888623dc1ff2f0d059b1489ad8c27b2.json rename to node_modules/.cache/babel-loader/06effc8b2670eaae241ec88801b471ec.json diff --git a/node_modules/.cache/babel-loader/1280c50e92fbcc349ee8d09074d74b23.json b/node_modules/.cache/babel-loader/073e3c1a365ac53feca0a17d1d9e6bbd.json similarity index 100% rename from node_modules/.cache/babel-loader/1280c50e92fbcc349ee8d09074d74b23.json rename to node_modules/.cache/babel-loader/073e3c1a365ac53feca0a17d1d9e6bbd.json diff --git a/node_modules/.cache/babel-loader/2d42b0a323d770f6b4e8e53f14877b4c.json b/node_modules/.cache/babel-loader/0831385130912f8b9bfa168cf1460124.json similarity index 100% rename from node_modules/.cache/babel-loader/2d42b0a323d770f6b4e8e53f14877b4c.json rename to node_modules/.cache/babel-loader/0831385130912f8b9bfa168cf1460124.json diff --git a/node_modules/.cache/babel-loader/227b4a59051a8bfbc36944aaecab6da7.json b/node_modules/.cache/babel-loader/085b02301f78fc4b043e5f0b56727c4a.json similarity index 100% rename from node_modules/.cache/babel-loader/227b4a59051a8bfbc36944aaecab6da7.json rename to node_modules/.cache/babel-loader/085b02301f78fc4b043e5f0b56727c4a.json diff --git a/node_modules/.cache/babel-loader/2277cf313a3412cbaf2fed73729d351b.json b/node_modules/.cache/babel-loader/087e46cdec2c2ca39212dbd818395dab.json similarity index 100% rename from node_modules/.cache/babel-loader/2277cf313a3412cbaf2fed73729d351b.json rename to node_modules/.cache/babel-loader/087e46cdec2c2ca39212dbd818395dab.json diff --git a/node_modules/.cache/babel-loader/7771d58db70ffdb5dd50bcbddfedd677.json b/node_modules/.cache/babel-loader/08a65ad231789b0f72531d965818ac24.json similarity index 100% rename from node_modules/.cache/babel-loader/7771d58db70ffdb5dd50bcbddfedd677.json rename to node_modules/.cache/babel-loader/08a65ad231789b0f72531d965818ac24.json diff --git a/node_modules/.cache/babel-loader/0941f0c39c7edc58eb65a1e4999e4a0f.json b/node_modules/.cache/babel-loader/0941f0c39c7edc58eb65a1e4999e4a0f.json deleted file mode 100644 index 7f18441e..00000000 --- a/node_modules/.cache/babel-loader/0941f0c39c7edc58eb65a1e4999e4a0f.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './App.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:4200\",\n target: \"top_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 13\n }\n }, \" Console \"), /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:8888\",\n target: \"bottom_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }\n }, \" Simulator \"), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"top_\",\n src: \"\",\n width: \"100%\",\n height: \"200px\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"bottom_\",\n src: \"\",\n width: \"100%\",\n height: \"512\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 15\n }\n }));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;AACA,OAAO,WAAP;;IAEMC,S;;;;;;;;;;;;;;;UAKAC,K,GAAQ;AACNC,MAAAA,SAAS,EAAE,IADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,SAAS,EAAED;AAJL,K;;;;;;6BAQR;AACE,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,MAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADF,eAEE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,SAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAFF,eAII;AAAQ,QAAA,IAAI,EAAC,MAAb;AAAoB,QAAA,GAAG,EAAC,EAAxB;AAA2B,QAAA,KAAK,EAAC,MAAjC;AAAyC,QAAA,MAAM,EAAC,OAAhD;AAAwD,QAAA,WAAW,EAAC,GAApE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJJ,eAKI;AAAQ,QAAA,IAAI,EAAC,SAAb;AAAuB,QAAA,GAAG,EAAC,EAA3B;AAA8B,QAAA,KAAK,EAAC,MAApC;AAA2C,QAAA,MAAM,EAAC,KAAlD;AAAwD,QAAA,WAAW,EAAC,GAApE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALJ,CADF;AASD;;;;EAvBiBf,S;;AAAlBU,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAET,UAAU,CAACD,OAAD,CAAV,CAAoBW;AADd,C;AAyBvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './App.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n Console \n Simulator \n \n \n \n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/b4ccfea2f9bccf98f9c5c1ef38c3863e.json b/node_modules/.cache/babel-loader/09aa5718b5822f110f82facab4ed5de7.json similarity index 100% rename from node_modules/.cache/babel-loader/b4ccfea2f9bccf98f9c5c1ef38c3863e.json rename to node_modules/.cache/babel-loader/09aa5718b5822f110f82facab4ed5de7.json diff --git a/node_modules/.cache/babel-loader/5d323392b3e943ad0f6b96a89dd28fcb.json b/node_modules/.cache/babel-loader/09e1c188aef3516f1952d75e8d36ce90.json similarity index 100% rename from node_modules/.cache/babel-loader/5d323392b3e943ad0f6b96a89dd28fcb.json rename to node_modules/.cache/babel-loader/09e1c188aef3516f1952d75e8d36ce90.json diff --git a/node_modules/.cache/babel-loader/0a0a0e44f36724d76c66824d067cad21.json b/node_modules/.cache/babel-loader/0a0a0e44f36724d76c66824d067cad21.json deleted file mode 100644 index 08d3cb5a..00000000 --- a/node_modules/.cache/babel-loader/0a0a0e44f36724d76c66824d067cad21.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink, Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var isLoggedIn = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 7\n }\n }, isLoggedIn ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 41\n }\n }, \"Simulator\")))))) : null);\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Nav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AAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEM,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,UAAhD;AAA2D,QAAA,EAAE,EAAC,WAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBADJ,CADJ,eAOI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,OAAhD;AAAwD,QAAA,EAAE,EAAC,QAA3D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CAPJ,eAYI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,OAAhD;AAAwD,QAAA,EAAE,EAAC,GAA3D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADJ,CAZJ,CAJR,CANV,CADR,CADU,GAsCV,IAvCA,CADF;AA+CH;;;;EAlD2Bd,S;;AAoD5B,eAAeW,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink,Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const isLoggedIn = this.props.isLoggedIn;\n return (\n
\n { isLoggedIn ? \n \n \n \n \n :\n null\n }\n \n \n\n
\n); \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/0aba0ceed37a5e387e6858f3f0933805.json b/node_modules/.cache/babel-loader/0aba0ceed37a5e387e6858f3f0933805.json deleted file mode 100644 index ae96516d..00000000 --- a/node_modules/.cache/babel-loader/0aba0ceed37a5e387e6858f3f0933805.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport Navigationbar from './Navigationbar';\nimport './App.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:4200\",\n target: \"top_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 13\n }\n }, \" Console \"), /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:8888\",\n target: \"bottom_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 13\n }\n }, \" Simulator \"), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"top_\",\n src: \"\",\n width: \"100%\",\n height: \"200px\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"bottom_\",\n src: \"\",\n width: \"100%\",\n height: \"512px\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 15\n }\n }));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Navigationbar","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAA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,CADF;AAUD;;;;EAxBiBhB,S;;AAAlBW,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAEV,UAAU,CAACD,OAAD,CAAV,CAAoBY;AADd,C;AA0BvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport Navigationbar from './Navigationbar';\nimport './App.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n \n Console \n Simulator \n \n \n \n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/0ae726042974145edb4a54f598152737.json b/node_modules/.cache/babel-loader/0ae726042974145edb4a54f598152737.json deleted file mode 100644 index 042433cb..00000000 --- a/node_modules/.cache/babel-loader/0ae726042974145edb4a54f598152737.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport Navigationbar from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 18\n }\n }, /*#__PURE__*/React.createElement(\"switch\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 23\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 23\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 23\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 23\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 23\n }\n })))));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,OAAOC,aAAP,MAA2B,4BAA3B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACU,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAEK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADA,eAIA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEL,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJA,eAKA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALA,eAMA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANA,eAOA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEL,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAPA,CAFL,CADD,CADV,CADF;AAoBD;;;;EAtBmBN,S;;AAyBtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport Navigationbar from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() { \n return ( \n \n \n
\n \n \n \n {/* \n */} \n \n \n \n \n \n
\n\n
\n
\n \n )\n };\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/119a5e905059b8aae91f3b4ffddbfa3f.json b/node_modules/.cache/babel-loader/0aee86d63b70105b869911c0a87cebb3.json similarity index 100% rename from node_modules/.cache/babel-loader/119a5e905059b8aae91f3b4ffddbfa3f.json rename to node_modules/.cache/babel-loader/0aee86d63b70105b869911c0a87cebb3.json diff --git a/node_modules/.cache/babel-loader/b017176dc98ef4efcedd17a8e0c7037a.json b/node_modules/.cache/babel-loader/0afb0ee035425b052d0101a3ab5f4581.json similarity index 100% rename from node_modules/.cache/babel-loader/b017176dc98ef4efcedd17a8e0c7037a.json rename to node_modules/.cache/babel-loader/0afb0ee035425b052d0101a3ab5f4581.json diff --git a/node_modules/.cache/babel-loader/edf57e1cc328ca59dc06d3a8372e7f27.json b/node_modules/.cache/babel-loader/0b0746b936b7da0e95c8728d12f51fdc.json similarity index 100% rename from node_modules/.cache/babel-loader/edf57e1cc328ca59dc06d3a8372e7f27.json rename to node_modules/.cache/babel-loader/0b0746b936b7da0e95c8728d12f51fdc.json diff --git a/node_modules/.cache/babel-loader/8c0255939477078e1704b4f245171ee0.json b/node_modules/.cache/babel-loader/0b1932b5c2f4b2232f148640d19b4ecf.json similarity index 100% rename from node_modules/.cache/babel-loader/8c0255939477078e1704b4f245171ee0.json rename to node_modules/.cache/babel-loader/0b1932b5c2f4b2232f148640d19b4ecf.json diff --git a/node_modules/.cache/babel-loader/0b80bfed3e0bc77bfe7b1901cfbeabc8.json b/node_modules/.cache/babel-loader/0b80bfed3e0bc77bfe7b1901cfbeabc8.json deleted file mode 100644 index f07e7af4..00000000 --- a/node_modules/.cache/babel-loader/0b80bfed3e0bc77bfe7b1901cfbeabc8.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 230,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 248,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 249,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 256,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 278,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE;AAJF,KAOU;AAAA,QAETC,OAFS,G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AA;AAAA;AAAA;AAAA,4BAL5B,CAFF,CADS,GAYL,IAZd;AAcA,UAAMqE,QAAQ,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAKb;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAElF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CALa,eASb;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CATa,eAab;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAba,CAAjB;AAoBE,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIkF,QADJ,CAFF;AAOH;;;;EA1Qe7F,S;;AA4QlB,eAAeI,UAAU,CAACQ,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n \n
\n \n
\n :\n
\n \n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n \n \n \n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/53eb029425beb33a752c0d52fc39eef9.json b/node_modules/.cache/babel-loader/0b98e36774ff025dd7c074668f9c9559.json similarity index 100% rename from node_modules/.cache/babel-loader/53eb029425beb33a752c0d52fc39eef9.json rename to node_modules/.cache/babel-loader/0b98e36774ff025dd7c074668f9c9559.json diff --git a/node_modules/.cache/babel-loader/0bae63999b19db8a1811b3c8aa950209.json b/node_modules/.cache/babel-loader/0bae63999b19db8a1811b3c8aa950209.json deleted file mode 100644 index a9c94fc8..00000000 --- a/node_modules/.cache/babel-loader/0bae63999b19db8a1811b3c8aa950209.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:4200\",\n target: \"top\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 13\n }\n }, \" Console \"), /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:8888\",\n target: \"bottom\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }\n }, \" Simulator \"), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"top\",\n src: \"\",\n width: \"100%\",\n height: \"50%\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"bottom\",\n src: \"\",\n width: \"100%\",\n height: \"50%\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 9\n }\n }));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;AACA,OAAO,iBAAP;;IAEMC,S;;;;;;;;;;;;;;;UAKAC,K,GAAQ;AACNC,MAAAA,SAAS,EAAE,IADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,SAAS,EAAED;AAJL,K;;;;;;6BAQR;AACE,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,KAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADF,eAEE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,QAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAFF,eAGE;AAAQ,QAAA,IAAI,EAAC,KAAb;AAAmB,QAAA,GAAG,EAAC,EAAvB;AAA0B,QAAA,KAAK,EAAC,MAAhC;AACJ,QAAA,MAAM,EAAC,KADH;AACS,QAAA,WAAW,EAAC,GADrB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHF,eAKF;AAAQ,QAAA,IAAI,EAAC,QAAb;AAAsB,QAAA,GAAG,EAAC,EAA1B;AAA6B,QAAA,KAAK,EAAC,MAAnC;AACA,QAAA,MAAM,EAAC,KADP;AACa,QAAA,WAAW,EAAC,GADzB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALE,CADF;AAcD;;;;EA5BiBf,S;;AAAlBU,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAET,UAAU,CAACD,OAAD,CAAV,CAAoBW;AADd,C;AA8BvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n Console \n Simulator \n \n \n \n \n \n \n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/4218eed8b0241f447a105c5ca1780c8d.json b/node_modules/.cache/babel-loader/0be11ce1a691624ad49e9e64393360bc.json similarity index 100% rename from node_modules/.cache/babel-loader/4218eed8b0241f447a105c5ca1780c8d.json rename to node_modules/.cache/babel-loader/0be11ce1a691624ad49e9e64393360bc.json diff --git a/node_modules/.cache/babel-loader/0c088ef896b7b5361d14cd49517cf8a7.json b/node_modules/.cache/babel-loader/0c088ef896b7b5361d14cd49517cf8a7.json deleted file mode 100644 index 51d93a79..00000000 --- a/node_modules/.cache/babel-loader/0c088ef896b7b5361d14cd49517cf8a7.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 229,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 230,\n columnNumber: 28\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 242,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 277,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 278,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 281,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 282,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 285,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 294,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,SAASC,aAAT,QAA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strap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n\n
\n \n
\n :\n
\n \n
\n \n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/0c57dde23723cc486dfd31b84fa81747.json b/node_modules/.cache/babel-loader/0c57dde23723cc486dfd31b84fa81747.json deleted file mode 100644 index 78fcce95..00000000 --- a/node_modules/.cache/babel-loader/0c57dde23723cc486dfd31b84fa81747.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\nexport var Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 28\n }\n }, \"Tasks\"))))))));\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","textDecoration"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;AAiBA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;AAAA,sBAC3B,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD;AAAQ,IAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACA,oBAAC,MAAD,CAAQ,QAAR;AAAiB,IAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,GAAD;AAAK,IAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACU;AAAK,IAAA,EAAE,EAAC,QAAR;AAAiB,IAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEC,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,UAAnD;AAA8D,IAAA,EAAE,EAAC,WAAjE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBADJ,CADF,eAOE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,QAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aADJ,CAPF,CADH,CADV,CADJ,CADA,CADF,CAD2B;AAAA,CAAtB","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nexport const Navigationbar = () => (\n \n \n \n \n \n \n \n)"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/0c77f9926fc7c8cc1609e9dcb84af16d.json b/node_modules/.cache/babel-loader/0c77f9926fc7c8cc1609e9dcb84af16d.json deleted file mode 100644 index 9d771b73..00000000 --- a/node_modules/.cache/babel-loader/0c77f9926fc7c8cc1609e9dcb84af16d.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\nexport var Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 16\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 28\n }\n }, \"Tasks\")))), \":\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 18\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 18\n }\n }))))));\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","textDecoration"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;AAiBA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;AAAA,sBAC3B,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD;AAAQ,IAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACA,oBAAC,MAAD,CAAQ,QAAR;AAAiB,IAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,GAAD;AAAK,IAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACA;A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":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nexport const Navigationbar = () => (\n \n \n \n \n \n \n \n)"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/0c8463d90f521244ca0dbc843f4f16a0.json b/node_modules/.cache/babel-loader/0c8463d90f521244ca0dbc843f4f16a0.json deleted file mode 100644 index df7ae6a2..00000000 --- a/node_modules/.cache/babel-loader/0c8463d90f521244ca0dbc843f4f16a0.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport Navigationbar from './Navigationbar';\nimport './App.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:4200\",\n target: \"top_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 13\n }\n }, \" Console \"), /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:8888\",\n target: \"bottom_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 13\n }\n }, \" Simulator \"), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"top_\",\n src: \"\",\n width: \"100%\",\n height: \"375px\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"bottom_\",\n src: \"\",\n width: \"100%\",\n height: \"375px\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 15\n }\n }));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Navigationbar","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;AACA,OAAOC,aAAP,MAA0B,iBAA1B;AACA,OAAO,WAAP;;IAEMC,S;;;;;;;;;;;;;;;UAKAC,K,GAAQ;AACNC,MAAAA,SAAS,EAAE,IADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,SAAS,EAAED;AAJL,K;;;;;;6BAQR;AACE,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,eAEE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,MAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAFF,eAGE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,SAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAHF,eAKI;AAAQ,QAAA,IAAI,EAAC,MAAb;AAAoB,QAAA,GAAG,EAAC,EAAxB;AAA2B,QAAA,KAAK,EAAC,MAAjC;AAAyC,QAAA,MAAM,EAAC,OAAhD;AAAwD,QAAA,WAAW,EAAC,GAApE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALJ,eAMI;AAAQ,QAAA,IAAI,EAAC,SAAb;AAAuB,QAAA,GAAG,EAAC,EAA3B;AAA8B,QAAA,KAAK,EAAC,MAApC;AAA2C,QAAA,MAAM,EAAC,OAAlD;AAA0D,QAAA,WAAW,EAAC,GAAtE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANJ,CADF;AAUD;;;;EAxBiBhB,S;;AAAlBW,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAEV,UAAU,CAACD,OAAD,CAAV,CAAoBY;AADd,C;AA0BvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport Navigationbar from './Navigationbar';\nimport './App.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n \n Console \n Simulator \n \n \n \n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/8335528d3490bf22dc2b0cf46383abb0.json b/node_modules/.cache/babel-loader/0d0a9480ce0984ecc37595c1dc9ab5ff.json similarity index 100% rename from node_modules/.cache/babel-loader/8335528d3490bf22dc2b0cf46383abb0.json rename to node_modules/.cache/babel-loader/0d0a9480ce0984ecc37595c1dc9ab5ff.json diff --git a/node_modules/.cache/babel-loader/bf9fc20ded417b0d779c6e6801e2ab0a.json b/node_modules/.cache/babel-loader/0d3692ba227c8e48987b24e161b99a43.json similarity index 100% rename from node_modules/.cache/babel-loader/bf9fc20ded417b0d779c6e6801e2ab0a.json rename to node_modules/.cache/babel-loader/0d3692ba227c8e48987b24e161b99a43.json diff --git a/node_modules/.cache/babel-loader/9a23fa7609980ced50445a54dd2936b4.json b/node_modules/.cache/babel-loader/0d9c0e627495abc7dd8d73c3812a0327.json similarity index 100% rename from node_modules/.cache/babel-loader/9a23fa7609980ced50445a54dd2936b4.json rename to node_modules/.cache/babel-loader/0d9c0e627495abc7dd8d73c3812a0327.json diff --git a/node_modules/.cache/babel-loader/537294c6b4dc0d53e9b09b71244a1223.json b/node_modules/.cache/babel-loader/0d9f2e443bc16af50bd69ef3c314320c.json similarity index 100% rename from node_modules/.cache/babel-loader/537294c6b4dc0d53e9b09b71244a1223.json rename to node_modules/.cache/babel-loader/0d9f2e443bc16af50bd69ef3c314320c.json diff --git a/node_modules/.cache/babel-loader/8252beb3115908d7b8215832c35f8210.json b/node_modules/.cache/babel-loader/0e1e8bea54e36663cb9e520d08a3f8a1.json similarity index 100% rename from node_modules/.cache/babel-loader/8252beb3115908d7b8215832c35f8210.json rename to node_modules/.cache/babel-loader/0e1e8bea54e36663cb9e520d08a3f8a1.json diff --git a/node_modules/.cache/babel-loader/0e25fba268cd8f59f96f1c3276670c66.json b/node_modules/.cache/babel-loader/0e25fba268cd8f59f96f1c3276670c66.json deleted file mode 100644 index 0a8c9980..00000000 --- a/node_modules/.cache/babel-loader/0e25fba268cd8f59f96f1c3276670c66.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"top\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"h1\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 15\n }\n }, \"About US\"), /*#__PURE__*/React.createElement(\"p\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 15\n }\n }, \"About US page body content\"), /*#__PURE__*/React.createElement(Link, {\n href: \"http://localhost:4200\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 19\n }\n }, \"Foo\"), /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 19\n }\n }, \"Bar\")))), /*#__PURE__*/React.createElement(\"div\", {\n className: \"bottom\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"h1\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 15\n }\n }, \"About US\"), /*#__PURE__*/React.createElement(\"p\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 15\n }\n }, \"About US Bottom page body content\"), /*#__PURE__*/React.createElement(Link, {\n href: \"http://localhost:8888\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 19\n }\n }, \"Foo\"), /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 19\n }\n }, \"Bar\")))));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,M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AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eADF,eAEE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAFF,CADF,CAHF,CAbF,CADF;AA0BD;;;;EAxCiBf,S;;AAAlBU,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAET,UAAU,CAACD,OAAD,CAAV,CAAoBW;AADd,C;AA0CvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n
\n

About US

\n

About US page body content

\n \n \n
Foo
\n
Bar
\n
\n \n\n
\n\n
\n

About US

\n

About US Bottom page body content

\n \n \n
Foo
\n
Bar
\n
\n \n
\n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/ee69df0e22779b410c011346f92c4877.json b/node_modules/.cache/babel-loader/0e2f739c1dcd6088a6214e4a8023e5e1.json similarity index 100% rename from node_modules/.cache/babel-loader/ee69df0e22779b410c011346f92c4877.json rename to node_modules/.cache/babel-loader/0e2f739c1dcd6088a6214e4a8023e5e1.json diff --git a/node_modules/.cache/babel-loader/0e723665341665d50414438d0d990a7d.json b/node_modules/.cache/babel-loader/0e723665341665d50414438d0d990a7d.json deleted file mode 100644 index 4ca187cb..00000000 --- a/node_modules/.cache/babel-loader/0e723665341665d50414438d0d990a7d.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }()\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator(urlAction) {\n var url = urlAction;\n this.simulatorWindow = window.open(url + \":8080\", '_blank');\n this.shellWindow = window.open(url + \":4200\", '_blank');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n this.setState({\n isLoading: true,\n launch: true\n });\n this.attach(this.state.launch);\n\n var _httpClient = axios.create();\n\n _httpClient.defaults.timeout = 600000;\n\n _httpClient.get(\"http://\".concat(this.ip, \"/simulator/start/\").concat(this.state.user.sub, \"/\").concat(this.state.user.given_name, \"/spiri-friend2019@\"), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n simulator: res.data,\n isLoading: false\n });\n\n _this5.launchSimulator(_this5.state.simulator.publicIp);\n });\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 215,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 216,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 217,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 218,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 229,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 230,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 237,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 238,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 239,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 240,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 252,\n columnNumber: 19\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 256,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 264,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 273,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 274,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 277,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 278,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 281,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 289,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","urlAction","url","open","httpClient","create","defaults","timeout","withCredentials","res","given_name","simulator","data","publicIp","options","textDecoration","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAC/C,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAwC;;AACxC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,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AA;AAAA;AAAA;AAAA;AAAA,QADJ,CAda,eAkBb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAlBa,CAAjB;AAyBE,0BACE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIwF,QADJ,CADF;AAOH;;;;EAvRenG,S;;AAyRlB,eAAeG,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n launchSimulator(urlAction) {\n const url = urlAction;\n this.simulatorWindow = window.open(url + \":8080\", '_blank');\n this.shellWindow = window.open(url + \":4200\", '_blank');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })\n\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n
\n \n
\n :\n
\n \n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n
\n {mainBody}\n
\n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/6c7c9cb3349b23bdae26e127c87100a5.json b/node_modules/.cache/babel-loader/0e9190681e0fd83b45be7e751d7f00cf.json similarity index 100% rename from node_modules/.cache/babel-loader/6c7c9cb3349b23bdae26e127c87100a5.json rename to node_modules/.cache/babel-loader/0e9190681e0fd83b45be7e751d7f00cf.json diff --git a/node_modules/.cache/babel-loader/0e96b095f843b7f11171c1a45570d79c.json b/node_modules/.cache/babel-loader/0e96b095f843b7f11171c1a45570d79c.json deleted file mode 100644 index b5a5d935..00000000 --- a/node_modules/.cache/babel-loader/0e96b095f843b7f11171c1a45570d79c.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Switch, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 15\n }\n })))));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,SAASC,aAAT,QAA8B,4BAA9B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,eAII,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEN,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJJ,eAKI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEC,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALJ,eAMI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANJ,eASI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QATJ,CADA,CADF,CADF,CADF;AAmBD;;;;EArBmBX,S;;AAwBtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() {\n return (\n \n \n
\n \n \n {/* \n */}\n \n \n \n \n \n \n \n
\n
\n
\n );\n }\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/3b2e14dcdfd3cb91d0b33cc5cdd02c2b.json b/node_modules/.cache/babel-loader/0ea1acb4ee74a9388800dca99cd9f840.json similarity index 100% rename from node_modules/.cache/babel-loader/3b2e14dcdfd3cb91d0b33cc5cdd02c2b.json rename to node_modules/.cache/babel-loader/0ea1acb4ee74a9388800dca99cd9f840.json diff --git a/node_modules/.cache/babel-loader/7ed889674659645f4706b9a3c8fef04a.json b/node_modules/.cache/babel-loader/0eb96e9ddcbc3736030a8d805ddd338d.json similarity index 100% rename from node_modules/.cache/babel-loader/7ed889674659645f4706b9a3c8fef04a.json rename to node_modules/.cache/babel-loader/0eb96e9ddcbc3736030a8d805ddd338d.json diff --git a/node_modules/.cache/babel-loader/246061d9b0fbd72a1f44cd5e9c6f28fa.json b/node_modules/.cache/babel-loader/0ec63b7b42829d486c2067afca4ce50a.json similarity index 100% rename from node_modules/.cache/babel-loader/246061d9b0fbd72a1f44cd5e9c6f28fa.json rename to node_modules/.cache/babel-loader/0ec63b7b42829d486c2067afca4ce50a.json diff --git a/node_modules/.cache/babel-loader/0ece30f4fd3d666d0dc5071413458189.json b/node_modules/.cache/babel-loader/0ece30f4fd3d666d0dc5071413458189.json deleted file mode 100644 index 101b3b07..00000000 --- a/node_modules/.cache/babel-loader/0ece30f4fd3d666d0dc5071413458189.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 230,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 248,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 249,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 256,\n columnNumber: 22\n }\n }, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 277,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE;AAJF,KAOU;AAAA,QAETC,OAFS,GAEEP,KAFF,CAETO,OAFS;AAGhBC,IAAAA,OAAO,CAACC,GAAR,CAAYF,OAAZ;AACA,UAAKN,KAAL,CAAWS,SAAX,GAAuBH,OAAO,CAACI,GAAR,CAAY,YAAZ,CAAvB;AACAH,IAAAA,OAAO,CAACC,GAAR,CAAY,MAAKR,KAAL,CAAWS,SAAvB;AACA,UAAKE,KAAL,GAAa,gBAAb;AACA,UAAKC,IAAL,G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,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CALa,eASb;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CATa,eAab;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAba,CAAjB;AAoBE,0BACE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIkF,QADJ,CADF;AAMH;;;;EAzQe7F,S;;AA2QlB,eAAeI,UAAU,CAACQ,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n \n
\n \n
\n :\n
\n \n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n \n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/77625acfb0b29dd20a3289df0f8b39c7.json b/node_modules/.cache/babel-loader/0ef6c6e637b7e14827e679e5d1fea3bc.json similarity index 100% rename from node_modules/.cache/babel-loader/77625acfb0b29dd20a3289df0f8b39c7.json rename to node_modules/.cache/babel-loader/0ef6c6e637b7e14827e679e5d1fea3bc.json diff --git a/node_modules/.cache/babel-loader/b193e3191d5d412cdc981cd74705d03a.json b/node_modules/.cache/babel-loader/0f0a4908ab236cf40a95678100cefa48.json similarity index 100% rename from node_modules/.cache/babel-loader/b193e3191d5d412cdc981cd74705d03a.json rename to node_modules/.cache/babel-loader/0f0a4908ab236cf40a95678100cefa48.json diff --git a/node_modules/.cache/babel-loader/0f2c377a2902c6c7e871c82e6ac3642d.json b/node_modules/.cache/babel-loader/0f2c377a2902c6c7e871c82e6ac3642d.json deleted file mode 100644 index be899b27..00000000 --- a/node_modules/.cache/babel-loader/0f2c377a2902c6c7e871c82e6ac3642d.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #9FFFCB;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nvar Styles = styled.div(_templateObject());\nexport var Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Brand, {\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 7\n }\n }, \"Tutorial\"), /*#__PURE__*/React.createElement(Navbar.Toggle, {\n \"aria-controls\": \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 7\n }\n }), /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Nav.Item, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 21\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(Nav.Item, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 21\n }\n }, \"Task\"))))));\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","styled","Styles","div","Navigationbar"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,IAAMC,MAAM,GAAGD,MAAM,CAACE,GAAV,mBAAZ;AAiBA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;AAAA,sBAC3B,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD;AAAQ,IAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD,CAAQ,KAAR;AAAc,IAAA,IAAI,EAAC,GAAnB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBADF,eAEE,oBAAC,MAAD,CAAQ,MAAR;AAAe,qBAAc,kBAA7B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAFF,eAIE,oBAAC,MAAD,CAAQ,QAAR;AAAiB,IAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,GAAD;AAAK,IAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,GAAD,CAAK,IAAL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAU,oBAAC,GAAD,CAAK,IAAL;AAAU,IAAA,IAAI,EAAC,WAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAAV,CADF,eAEE,oBAAC,GAAD,CAAK,IAAL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAU,oBAAC,GAAD,CAAK,IAAL;AAAU,IAAA,IAAI,EAAC,QAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAAV,CAFF,CADF,CAJF,CADF,CAD2B;AAAA,CAAtB","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #9FFFCB;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nexport const Navigationbar = () => (\n \n \n Tutorial\n \n \n \n \n \n \n \n)"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/7ceec053ada2b43b27f8bfb8c5d701df.json b/node_modules/.cache/babel-loader/0f42ce739c4c9f14c3a3cf8e1dd1c3c2.json similarity index 100% rename from node_modules/.cache/babel-loader/7ceec053ada2b43b27f8bfb8c5d701df.json rename to node_modules/.cache/babel-loader/0f42ce739c4c9f14c3a3cf8e1dd1c3c2.json diff --git a/node_modules/.cache/babel-loader/0f472a649d4d479d955a0a5a23cbdbc4.json b/node_modules/.cache/babel-loader/0f472a649d4d479d955a0a5a23cbdbc4.json deleted file mode 100644 index e1260127..00000000 --- a/node_modules/.cache/babel-loader/0f472a649d4d479d955a0a5a23cbdbc4.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 19\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 9\n }\n }), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 19\n }\n }, \"Login\")))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 247,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 252,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 24\n }\n }, options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 264,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 267,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 274,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE;AAJF,KAOU;AAAA,QAETC,OAFS,GAEEP,KAFF,CAETO,OAFS;AAGhBC,IAAAA,OAAO,CAACC,GAAR,CAAYF,OAAZ;AACA,UAAKN,KAAL,CAAWS,SAAX,GAAuBH,OAAO,CAACI,GAAR,CAAY,YAAZ,CAAvB;AACAH,IAAAA,OAAO,CAACC,GAA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,UAAMqE,QAAQ,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACdH,OADc,EAEdE,SAFc,eAGf;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAEjF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAHe,eAMf;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CANe,eASf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QATe,CAAjB;AAcA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIkF,QADJ,CAFF;AAOH;;;;EArQe9F,S;;AAuQlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n\n
\n \n
\n :\n
\n \n
\n
    \n
  • \n \n Login\n \n \n
  • \n
\n
\n
\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/5a78472a72616ec80c2a524597c4362a.json b/node_modules/.cache/babel-loader/0f509faa6855a1e17c17b8c0366f7d65.json similarity index 100% rename from node_modules/.cache/babel-loader/5a78472a72616ec80c2a524597c4362a.json rename to node_modules/.cache/babel-loader/0f509faa6855a1e17c17b8c0366f7d65.json diff --git a/node_modules/.cache/babel-loader/0f9516947555bbca57c017cacd165594.json b/node_modules/.cache/babel-loader/0f9516947555bbca57c017cacd165594.json deleted file mode 100644 index 28b5703c..00000000 --- a/node_modules/.cache/babel-loader/0f9516947555bbca57c017cacd165594.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink, Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var isLoggedIn = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 13,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 14,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 35\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 37\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 41\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 45\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 49\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 45\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 49\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 45\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 49\n }\n }, \"Simulator\")))))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","Link","styled","header","Navigationbar","isLoggedIn","props","textDecoration"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,EAAiBC,IAAjB,QAA6B,kBAA7B;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;IAEzCC,a;;;;;;;;;;;6BACI;AACN,UAAMC,UAAU,GAAG,KAAKC,KAAL,CAAWD,UAA9B;AAEA,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACQ,oBAAC,GAAD;AAAK,QAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACc;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAAA,KAAK,EAAC,MAAX;AAAkB,QAAA,GAAG,EAAEF,MAAvB;AAA+B,QAAA,KAAK,EAAE,MAAtC;AAA8C,QAAA,MAAM,EAAE,MAAtD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CADd,CADF,eAMc;AAAK,QAAA,EAAE,EAAC,QAAR;AAAiB,QAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAEI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEI,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,UAAhD;AAA2D,QAAA,EAAE,EAAC,WAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBADJ,CAFJ,eAQI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,OAAhD;AAAwD,QAAA,EAAE,EAAC,QAA3D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CARJ,eAaI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,OAAhD;AAAwD,QAAA,EAAE,EAAC,GAA3D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADJ,CAbJ,CADR,CANd,CADR,CADJ,CADF;AAkCH;;;;EAtC2BZ,S;;AAwC5B,eAAeS,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink,Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nclass Navigationbar extends Component { \n render(){\n const isLoggedIn = this.props.isLoggedIn;\n \n return (\n
\n \n \n \n
\n); \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/eaca7ff96f4e1deca7830d61245b2b35.json b/node_modules/.cache/babel-loader/0fd9c6ccb87d21bf8087d2fd267a9a10.json similarity index 100% rename from node_modules/.cache/babel-loader/eaca7ff96f4e1deca7830d61245b2b35.json rename to node_modules/.cache/babel-loader/0fd9c6ccb87d21bf8087d2fd267a9a10.json diff --git a/node_modules/.cache/babel-loader/103c46ca88676c22a9bc71b6a36a0495.json b/node_modules/.cache/babel-loader/103c46ca88676c22a9bc71b6a36a0495.json deleted file mode 100644 index 12da2896..00000000 --- a/node_modules/.cache/babel-loader/103c46ca88676c22a9bc71b6a36a0495.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var authenticated = this.props.isLoggedIn;\n console.log(\"riddhi\", login);\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 5\n }\n }, authenticated ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 33\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 53,\n columnNumber: 33\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 58,\n columnNumber: 33\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 63,\n columnNumber: 33\n }\n }, \"Logout\")))))))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 76,\n columnNumber: 4\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 77,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 78,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 79,\n columnNumber: 9\n }\n }, \"Login\")))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","authenticated","props","isLoggedIn","console","log","login","textDecoration","submit"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AACN,UAAMC,aAAa,GAAG,KAAKC,KAAL,CAAWC,UAAjC;AAEAC,MAAAA,OAAO,CAACC,GAAR,CAAY,QAAZ,EAAqBC,KAArB;AAEF,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACKL,aAAa,gBACd,oBAAC,MAAD;AAA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/D2BhB,S;;AAiE5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const authenticated = this.props.isLoggedIn;\n \n console.log(\"riddhi\",login);\n \n return (\n
\n {authenticated ? ( \n \n \n \n \n \n \n \n )\n :\n (
\n
    \n
  • \n \n Login\n \n \n
  • \n
\n
) }\n \n
\n )\n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/5d8f96484126b9f14da4d11f62ed3c93.json b/node_modules/.cache/babel-loader/1070a7529c4252371b9a9819dc074f17.json similarity index 100% rename from node_modules/.cache/babel-loader/5d8f96484126b9f14da4d11f62ed3c93.json rename to node_modules/.cache/babel-loader/1070a7529c4252371b9a9819dc074f17.json diff --git a/node_modules/.cache/babel-loader/ae12ce84148a6ec786a8b26e0d1ea537.json b/node_modules/.cache/babel-loader/10850450855fc24986da28323246621d.json similarity index 100% rename from node_modules/.cache/babel-loader/ae12ce84148a6ec786a8b26e0d1ea537.json rename to node_modules/.cache/babel-loader/10850450855fc24986da28323246621d.json diff --git a/node_modules/.cache/babel-loader/ab1603ec4258a1a1070da35284a1aae3.json b/node_modules/.cache/babel-loader/1092f5a74b2495456726df95dcb83ad3.json similarity index 100% rename from node_modules/.cache/babel-loader/ab1603ec4258a1a1070da35284a1aae3.json rename to node_modules/.cache/babel-loader/1092f5a74b2495456726df95dcb83ad3.json diff --git a/node_modules/.cache/babel-loader/10ac9b52056ceb96e25407ed91275eed.json b/node_modules/.cache/babel-loader/10ac9b52056ceb96e25407ed91275eed.json deleted file mode 100644 index 1ad01f78..00000000 --- a/node_modules/.cache/babel-loader/10ac9b52056ceb96e25407ed91275eed.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var authenticated = this.props.isLoggedIn;\n console.log(\"riddhi\", authenticated);\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 5\n }\n }, authenticated ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 33\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 53,\n columnNumber: 33\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 58,\n columnNumber: 33\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 63,\n columnNumber: 33\n }\n }, \"Logout\")))))))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 76,\n columnNumber: 4\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 77,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 78,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 79,\n columnNumber: 9\n }\n }, \"Login\")))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","authenticated","props","isLoggedIn","console","log","textDecoration","submit","login"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AACN,UAAMC,aAAa,GAAG,KAAKC,KAAL,CAAWC,UAAjC;AAEAC,MAAAA,OAAO,CAACC,GAAR,CAAY,QAAZ,EAAqBJ,aAArB;AAEF,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACKA,aAAa,gBACd,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA,oBAAC,MAAD;AAAQ,QAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD,CAAQ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AAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA6C,QAAA,KAAK,EAAC,OAAnD;AAA2D,QAAA,EAAE,EAAC,GAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADJ,CAZF,eAiBE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKJ,KAAL,CAAWK,MAAhE;AAAwE,QAAA,KAAK,EAAC,QAA9E;AAAuF,QAAA,EAAE,EAAC,GAA1F;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBADJ,CAjBF,CADF,CANV,CADJ,CADF,CADA,CADc,gBA0CnB;AAAK,QAAA,EAAE,EAAC,QAAR;AAAiB,QAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAED,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKJ,KAAL,CAAWM,KAAhE;AAAuE,QAAA,KAAK,EAAC,OAA7E;AAAqF,QAAA,EAAE,EAAC,EAAxF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CADF,CADC,CA3CC,CADF;AAyDD;;;;EA/D2BlB,S;;AAiE5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const authenticated = this.props.isLoggedIn;\n \n console.log(\"riddhi\",authenticated);\n \n return (\n
\n {authenticated ? ( \n \n \n \n \n \n \n \n )\n :\n (
\n
    \n
  • \n \n Login\n \n \n
  • \n
\n
) }\n \n
\n )\n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/547ee92694e3428a7e76bd8b7ff7b638.json b/node_modules/.cache/babel-loader/10b7f87bfdd34b41d7f192a05094b440.json similarity index 100% rename from node_modules/.cache/babel-loader/547ee92694e3428a7e76bd8b7ff7b638.json rename to node_modules/.cache/babel-loader/10b7f87bfdd34b41d7f192a05094b440.json diff --git a/node_modules/.cache/babel-loader/10fe6b1823021df433784b2e34ce3a19.json b/node_modules/.cache/babel-loader/10fe6b1823021df433784b2e34ce3a19.json deleted file mode 100644 index 6a024f76..00000000 --- a/node_modules/.cache/babel-loader/10fe6b1823021df433784b2e34ce3a19.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Switch, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 15\n }\n }))));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,SAASC,aAAT,QAA8B,4BAA9B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAEE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,eAII,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEN,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJJ,eAKI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEC,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALJ,eAMI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANJ,eAOI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAPJ,CAFF,CADF,CADF;AAiBD;;;;EAnBmBX,S;;AAsBtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() {\n return (\n \n \n \n \n \n {/* \n */}\n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/4730c5c081b06e434db8242ff405c7fa.json b/node_modules/.cache/babel-loader/11269d0f75ba7bd0a3768d1b94882e93.json similarity index 100% rename from node_modules/.cache/babel-loader/4730c5c081b06e434db8242ff405c7fa.json rename to node_modules/.cache/babel-loader/11269d0f75ba7bd0a3768d1b94882e93.json diff --git a/node_modules/.cache/babel-loader/b47a88e92add53d552aa6f22860e95fa.json b/node_modules/.cache/babel-loader/11546a6b6f456f5349852efe9d8f534d.json similarity index 100% rename from node_modules/.cache/babel-loader/b47a88e92add53d552aa6f22860e95fa.json rename to node_modules/.cache/babel-loader/11546a6b6f456f5349852efe9d8f534d.json diff --git a/node_modules/.cache/babel-loader/cb4aa26ce9e02002282c0326724bd0af.json b/node_modules/.cache/babel-loader/11963a1d9100dc3d74c1d35962c24f27.json similarity index 100% rename from node_modules/.cache/babel-loader/cb4aa26ce9e02002282c0326724bd0af.json rename to node_modules/.cache/babel-loader/11963a1d9100dc3d74c1d35962c24f27.json diff --git a/node_modules/.cache/babel-loader/8888b7dae4b83a63039e4731a29d1495.json b/node_modules/.cache/babel-loader/11b2919418ef6308b7d7ffed7d69283b.json similarity index 100% rename from node_modules/.cache/babel-loader/8888b7dae4b83a63039e4731a29d1495.json rename to node_modules/.cache/babel-loader/11b2919418ef6308b7d7ffed7d69283b.json diff --git a/node_modules/.cache/babel-loader/a745b5477ab7bf34ae90451324bec15c.json b/node_modules/.cache/babel-loader/124e938d6792e02267bfbbad6fb2a619.json similarity index 100% rename from node_modules/.cache/babel-loader/a745b5477ab7bf34ae90451324bec15c.json rename to node_modules/.cache/babel-loader/124e938d6792e02267bfbbad6fb2a619.json diff --git a/node_modules/.cache/babel-loader/12633e5a335d32db7ac871e168005cd0.json b/node_modules/.cache/babel-loader/12633e5a335d32db7ac871e168005cd0.json deleted file mode 100644 index 05100a00..00000000 --- a/node_modules/.cache/babel-loader/12633e5a335d32db7ac871e168005cd0.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 16\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 19\n }\n }, \"Login\")))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 247,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 252,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 24\n }\n }, options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 264,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 267,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 274,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA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AAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAGO,KAAKD,KAAL,CAAWC,SAAX,iBAAwB;AAAG,QAAA,SAAS,EAAC,uBAAb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAH/B,EAIO,CAAC,KAAKD,KAAL,CAAWK,MAAZ,iBAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAJ7B,EAKO,KAAKL,KAAL,CAAWK,MAAX,iBAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAL5B,CAFF,CADS,GAYL,IAZd;AAcE,UAAMqE,QAAQ,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACdH,OADc,EAEdE,SAFc,eAGf;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAEjF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAHe,eAMf;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CANe,eASf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QATe,CAAjB;AAcA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIkF,QADJ,CAFF;AAOH;;;;EAtQe9F,S;;AAwQlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n\n
\n \n \n
\n :\n
\n \n
\n
    \n
  • \n \n Login\n \n \n
  • \n
\n
\n
\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/68b6fa2e2bd044f3b9bcec383b6ba2bc.json b/node_modules/.cache/babel-loader/12a215fedc9fe1e878e0b9b62beb36ad.json similarity index 100% rename from node_modules/.cache/babel-loader/68b6fa2e2bd044f3b9bcec383b6ba2bc.json rename to node_modules/.cache/babel-loader/12a215fedc9fe1e878e0b9b62beb36ad.json diff --git a/node_modules/.cache/babel-loader/f1ef040d59ef8d55b7ac7a29128c3050.json b/node_modules/.cache/babel-loader/12fe06c3cef3f0e3544b533c7428fa64.json similarity index 100% rename from node_modules/.cache/babel-loader/f1ef040d59ef8d55b7ac7a29128c3050.json rename to node_modules/.cache/babel-loader/12fe06c3cef3f0e3544b533c7428fa64.json diff --git a/node_modules/.cache/babel-loader/134b4ed5820fbe39bc124d139989faa2.json b/node_modules/.cache/babel-loader/134b4ed5820fbe39bc124d139989faa2.json deleted file mode 100644 index f9e4fc8a..00000000 --- a/node_modules/.cache/babel-loader/134b4ed5820fbe39bc124d139989faa2.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 6\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 225,\n columnNumber: 15\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 11\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 248,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 249,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 256,\n columnNumber: 24\n }\n }, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 264,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 277,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV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,CAAC,KAAKD,KAAL,CAAWK,MAAZ,iBAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAJ7B,EAKO,KAAKL,KAAL,CAAWK,MAAX,iBAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAL5B,CAFF,CADS,GAYL,IAZd;AAcE,UAAMqE,QAAQ,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAGdD,SAHc,eAIf;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAEjF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAJe,eAQf;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CARe,eAYf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAZe,CAAjB;AAmBA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIkF,QADJ,CAFF;AAOH;;;;EAxQe9F,S;;AA0QlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n\n
\n \n
\n :\n
\n \n
\n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n \n \n {simulator}\n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/135a6701f21336f81ac23a350b607280.json b/node_modules/.cache/babel-loader/135a6701f21336f81ac23a350b607280.json deleted file mode 100644 index a582c8ac..00000000 --- a/node_modules/.cache/babel-loader/135a6701f21336f81ac23a350b607280.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n id: \"top\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"h1\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 15\n }\n }, \"About US\"), /*#__PURE__*/React.createElement(\"p\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 15\n }\n }, \"About US page body content\")), /*#__PURE__*/React.createElement(\"div\", {\n id: \"bottom\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"h1\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 15\n }\n }, \"About US\"), /*#__PURE__*/React.createElement(\"p\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 15\n }\n }, \"About US Bottom page body content\")));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;;IAEMC,S;;;;;;;;;;;;;;;UAKAC,K,GAAQ;AACNC,MAAAA,SAAS,EAAE,IADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,SAAS,EAAED;AAJL,K;;;;;;6BAQR;AACE,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAAA,EAAE,EAAC,KAAR;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBADF,eAEE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sCAFF,CADF,eAME;AAAK,QAAA,EAAE,EAAC,QAAR;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBADF,eAEE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6CAFF,CANF,CADF;AAaD;;;;EA3BiBf,S;;AAAlBU,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAET,UAAU,CAACD,OAAD,CAAV,CAAoBW;AADd,C;AA6BvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n
\n

About US

\n

About US page body content

\n
\n\n
\n

About US

\n

About US Bottom page body content

\n
\n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/db302183494069ce28aaafd7ca80c11d.json b/node_modules/.cache/babel-loader/13d8b6891bdde0b8d84872daa3e87fa7.json similarity index 100% rename from node_modules/.cache/babel-loader/db302183494069ce28aaafd7ca80c11d.json rename to node_modules/.cache/babel-loader/13d8b6891bdde0b8d84872daa3e87fa7.json diff --git a/node_modules/.cache/babel-loader/72b3e43df44ec342b95784d070a164fc.json b/node_modules/.cache/babel-loader/14127e7dd988fa8b178a70ac7b017da5.json similarity index 100% rename from node_modules/.cache/babel-loader/72b3e43df44ec342b95784d070a164fc.json rename to node_modules/.cache/babel-loader/14127e7dd988fa8b178a70ac7b017da5.json diff --git a/node_modules/.cache/babel-loader/3bd374a971aec3a083705f5290b11743.json b/node_modules/.cache/babel-loader/1447e09baad8599a6b1f382cb683cdf9.json similarity index 100% rename from node_modules/.cache/babel-loader/3bd374a971aec3a083705f5290b11743.json rename to node_modules/.cache/babel-loader/1447e09baad8599a6b1f382cb683cdf9.json diff --git a/node_modules/.cache/babel-loader/c8668ee60cbec6d49ebc5c066852a38f.json b/node_modules/.cache/babel-loader/145c7564c8a5e2616481d6e9703f1463.json similarity index 100% rename from node_modules/.cache/babel-loader/c8668ee60cbec6d49ebc5c066852a38f.json rename to node_modules/.cache/babel-loader/145c7564c8a5e2616481d6e9703f1463.json diff --git a/node_modules/.cache/babel-loader/b927fcd57e4c5a6eedc569c58c120da9.json b/node_modules/.cache/babel-loader/147b4ca93857f2c79b647f48d8536d7b.json similarity index 100% rename from node_modules/.cache/babel-loader/b927fcd57e4c5a6eedc569c58c120da9.json rename to node_modules/.cache/babel-loader/147b4ca93857f2c79b647f48d8536d7b.json diff --git a/node_modules/.cache/babel-loader/08a5b814f519abcdd396fe974558f259.json b/node_modules/.cache/babel-loader/14ab841b0257e6b3bb587e0213daea24.json similarity index 100% rename from node_modules/.cache/babel-loader/08a5b814f519abcdd396fe974558f259.json rename to node_modules/.cache/babel-loader/14ab841b0257e6b3bb587e0213daea24.json diff --git a/node_modules/.cache/babel-loader/edb9a4416ab4942903bb0c82c72f504e.json b/node_modules/.cache/babel-loader/14c795151354b3f50d61c65401cc6948.json similarity index 100% rename from node_modules/.cache/babel-loader/edb9a4416ab4942903bb0c82c72f504e.json rename to node_modules/.cache/babel-loader/14c795151354b3f50d61c65401cc6948.json diff --git a/node_modules/.cache/babel-loader/14ebf4c1cf5721b9a465304a63006534.json b/node_modules/.cache/babel-loader/14ebf4c1cf5721b9a465304a63006534.json deleted file mode 100644 index f8433dea..00000000 --- a/node_modules/.cache/babel-loader/14ebf4c1cf5721b9a465304a63006534.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:4200\",\n target: \"right_side\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 13\n }\n }, \" Console \"), /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:4200\",\n target: \"right_side\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }\n }, \" Simulator \"), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"top\",\n src: \"\",\n width: \"100%\",\n height: \"50%\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"bottom\",\n src: \"\",\n width: \"100%\",\n height: \"50%\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 9\n }\n }));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;AACA,OAAO,iBAAP;;IAEMC,S;;;;;;;;;;;;;;;UAKAC,K,GAAQ;AACNC,MAAAA,SAAS,EAAE,IADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,SAAS,EAAED;AAJL,K;;;;;;6BAQR;AACE,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,YAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADF,eAEE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,YAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAFF,eAGE;AAAQ,QAAA,IAAI,EAAC,KAAb;AAAmB,QAAA,GAAG,EAAC,EAAvB;AAA0B,QAAA,KAAK,EAAC,MAAhC;AACJ,QAAA,MAAM,EAAC,KADH;AACS,QAAA,WAAW,EAAC,GADrB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHF,eAKF;AAAQ,QAAA,IAAI,EAAC,QAAb;AAAsB,QAAA,GAAG,EAAC,EAA1B;AAA6B,QAAA,KAAK,EAAC,MAAnC;AACA,QAAA,MAAM,EAAC,KADP;AACa,QAAA,WAAW,EAAC,GADzB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALE,CADF;AAeD;;;;EA7BiBf,S;;AAAlBU,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAET,UAAU,CAACD,OAAD,CAAV,CAAoBW;AADd,C;AA+BvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n Console \n Simulator \n \n \n \n \n\n \n \n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/1a3de3bc0a710cc466b6ebf0114be79d.json b/node_modules/.cache/babel-loader/15276881e5b8f6cf8c10a6fbf415661a.json similarity index 100% rename from node_modules/.cache/babel-loader/1a3de3bc0a710cc466b6ebf0114be79d.json rename to node_modules/.cache/babel-loader/15276881e5b8f6cf8c10a6fbf415661a.json diff --git a/node_modules/.cache/babel-loader/3ca9f3b1747b7366ab69a3a75c34db05.json b/node_modules/.cache/babel-loader/1530e2e3559b957a21e116bc4b241b4a.json similarity index 100% rename from node_modules/.cache/babel-loader/3ca9f3b1747b7366ab69a3a75c34db05.json rename to node_modules/.cache/babel-loader/1530e2e3559b957a21e116bc4b241b4a.json diff --git a/node_modules/.cache/babel-loader/59b15f372f068c92d0740deaa1bbfb76.json b/node_modules/.cache/babel-loader/154b86730fab49800d64f7d36ea96e3d.json similarity index 100% rename from node_modules/.cache/babel-loader/59b15f372f068c92d0740deaa1bbfb76.json rename to node_modules/.cache/babel-loader/154b86730fab49800d64f7d36ea96e3d.json diff --git a/node_modules/.cache/babel-loader/3189be56210dee99dc810ecc59c9ce59.json b/node_modules/.cache/babel-loader/157abb669855c306f93f390a6970218e.json similarity index 100% rename from node_modules/.cache/babel-loader/3189be56210dee99dc810ecc59c9ce59.json rename to node_modules/.cache/babel-loader/157abb669855c306f93f390a6970218e.json diff --git a/node_modules/.cache/babel-loader/1590285b9fdf303033d6e8179e6f6557.json b/node_modules/.cache/babel-loader/1590285b9fdf303033d6e8179e6f6557.json deleted file mode 100644 index 7d438e47..00000000 --- a/node_modules/.cache/babel-loader/1590285b9fdf303033d6e8179e6f6557.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }()\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator(urlAction) {\n var url = urlAction;\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8080\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_blank');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 216,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 217,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 218,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 219,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 225,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 230,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 238,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 239,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 240,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 241,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 253,\n columnNumber: 19\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 256,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 264,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 267,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 274,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 275,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 278,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 282,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 290,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","urlAction","url","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAC/C,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAwC;;AACxC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC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EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAVa,eAcb;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAda,eAkBb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAlBa,CAAjB;AAyBE,0BACE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIoF,QADJ,CADF;AAOH;;;;EAxRe/F,S;;AA0RlB,eAAeG,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n launchSimulator(urlAction) {\n const url = urlAction;\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8080\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_blank');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n
\n \n
\n :\n
\n \n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n
\n {mainBody}\n
\n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/58795b1d83e8b2638ac73ea5f23fb92a.json b/node_modules/.cache/babel-loader/159a3b5ee174d7480b6d98dca41574b5.json similarity index 100% rename from node_modules/.cache/babel-loader/58795b1d83e8b2638ac73ea5f23fb92a.json rename to node_modules/.cache/babel-loader/159a3b5ee174d7480b6d98dca41574b5.json diff --git a/node_modules/.cache/babel-loader/d31da5b8abdda8e7be11c5159d7ea074.json b/node_modules/.cache/babel-loader/15aef85f6e2d114198a36cfa1b5a9678.json similarity index 100% rename from node_modules/.cache/babel-loader/d31da5b8abdda8e7be11c5159d7ea074.json rename to node_modules/.cache/babel-loader/15aef85f6e2d114198a36cfa1b5a9678.json diff --git a/node_modules/.cache/babel-loader/15e8f103cd222e7bf849cc373ba08cb3.json b/node_modules/.cache/babel-loader/15e8f103cd222e7bf849cc373ba08cb3.json deleted file mode 100644 index 0e79b83a..00000000 --- a/node_modules/.cache/babel-loader/15e8f103cd222e7bf849cc373ba08cb3.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/NavigationBar.js\";\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nimport './NavigationBar.css';\n\nvar NavigationBar = /*#__PURE__*/function (_Component) {\n _inherits(NavigationBar, _Component);\n\n function NavigationBar() {\n _classCallCheck(this, NavigationBar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(NavigationBar).apply(this, arguments));\n }\n\n _createClass(NavigationBar, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 11,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Brand, {\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 12,\n columnNumber: 11\n }\n }, \"Tutorial\"), /*#__PURE__*/React.createElement(Navbar.Toggle, {\n \"aria-controls\": \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 13,\n columnNumber: 11\n }\n }), /*#__PURE__*/React.createElement(Form, {\n className: \"form-center\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 14,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(FormControl, {\n type: \"text\",\n placeholder: \"Search\",\n className: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(Nav.Item, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 25\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(Nav.Item, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/about\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 25\n }\n }, \"Tasks\")))));\n }\n }]);\n\n return NavigationBar;\n}(Component);\n\nexport default NavigationBar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/NavigationBar.js"],"names":["React","Nav","Navbar","Form","FormControl","styled","NavigationBar","Component"],"mappings":";;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,qBAAP;;IAGMC,a;;;;;;;;;;;6BACO;AACP,0BAEE,oBAAC,MAAD;AAAQ,QAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD,CAAQ,KAAR;AAAc,QAAA,IAAI,EAAC,GAAnB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBADF,eAEE,oBAAC,MAAD,CAAQ,MAAR;AAAe,yBAAc,kBAA7B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAFF,eAGE,oBAAC,IAAD;AAAM,QAAA,SAAS,EAAC,aAAhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,WAAD;AAAa,QAAA,IAAI,EAAC,MAAlB;AAAyB,QAAA,WAAW,EAAC,QAArC;AAA8C,QAAA,SAAS,EAAC,EAAxD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CAHF,eAME,oBAAC,MAAD,CAAQ,QAAR;AAAiB,QAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,GAAD;AAAK,QAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,GAAD,CAAK,IAAL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAU,oBAAC,GAAD,CAAK,IAAL;AAAU,QAAA,IAAI,EAAC,GAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAV,CADF,eAEE,oBAAC,GAAD,CAAK,IAAL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAU,oBAAC,GAAD,CAAK,IAAL;AAAU,QAAA,IAAI,EAAC,QAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAV,CAFF,CADF,CANF,CAFF;AAgBD;;;;EAlBuBC,S;;AAqB5B,eAAeD,aAAf","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nimport './NavigationBar.css';\n \n\nclass NavigationBar extends Component{\n render() {\n return (\n \n \n Tutorial\n \n
\n \n \n \n \n \n
\n );\n }\n }\n \nexport default NavigationBar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/63f4162f2931f4b58fe284f0a6324df6.json b/node_modules/.cache/babel-loader/16298fcb496cda5bcd9ddda08b301471.json similarity index 100% rename from node_modules/.cache/babel-loader/63f4162f2931f4b58fe284f0a6324df6.json rename to node_modules/.cache/babel-loader/16298fcb496cda5bcd9ddda08b301471.json diff --git a/node_modules/.cache/babel-loader/16d5e1784b5732bda221678ee7f66dcf.json b/node_modules/.cache/babel-loader/16d5e1784b5732bda221678ee7f66dcf.json deleted file mode 100644 index c4982824..00000000 --- a/node_modules/.cache/babel-loader/16d5e1784b5732bda221678ee7f66dcf.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 17\n }\n })), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 226,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 227,\n columnNumber: 19\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 237,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 238,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 239,\n columnNumber: 19\n }\n }, \"Login\")))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 248,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 253,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 254,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 264,\n columnNumber: 16\n }\n }))), options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 272,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 273,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 275,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 282,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,k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AAAA;AAAA,QADH,CADJ,CADe,EAMdgF,OANc,EAOdE,SAPc,eAQf;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAEjF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CARe,eAWf;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAXe,eAcf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAde,CAAjB;AAmBA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIkF,QADJ,CAFF;AAOH;;;;EA9Qe9F,S;;AAgRlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n\n
\n \n \n
\n :\n
\n \n
\n
    \n
  • \n \n Login\n \n \n
  • \n
\n
\n
\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n
\n \n \n \n
\n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/173b667703aa9c9888f9bfe9fd5c905b.json b/node_modules/.cache/babel-loader/173b667703aa9c9888f9bfe9fd5c905b.json deleted file mode 100644 index 0d9d69f8..00000000 --- a/node_modules/.cache/babel-loader/173b667703aa9c9888f9bfe9fd5c905b.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"top\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"h1\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 15\n }\n }, \"About US\"), /*#__PURE__*/React.createElement(\"p\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 15\n }\n }, \"About US page body content\")), /*#__PURE__*/React.createElement(\"div\", {\n className: \"bottom\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"h1\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 15\n }\n }, \"About US\"), /*#__PURE__*/React.createElement(\"p\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 15\n }\n }, \"About US Bottom page body content\")));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;AACA,OAAO,iBAAP;;IAEMC,S;;;;;;;;;;;;;;;UAKAC,K,GAAQ;AACNC,MAAAA,SAAS,EAAE,IADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,SAAS,EAAED;AAJL,K;;;;;;6BAQR;AACE,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBADF,eAEE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sCAFF,CADF,eAME;AAAK,QAAA,SAAS,EAAC,QAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBADF,eAEE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6CAFF,CANF,CADF;AAaD;;;;EA3BiBf,S;;AAAlBU,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAET,UAAU,CAACD,OAAD,CAAV,CAAoBW;AADd,C;AA6BvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n
\n

About US

\n

About US page body content

\n
\n\n
\n

About US

\n

About US Bottom page body content

\n
\n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/175be43bac3ac8b9c29e24f22ec46a45.json b/node_modules/.cache/babel-loader/175be43bac3ac8b9c29e24f22ec46a45.json deleted file mode 100644 index 1eb75349..00000000 --- a/node_modules/.cache/babel-loader/175be43bac3ac8b9c29e24f22ec46a45.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 27\n }\n }), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 249,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 24\n }\n }, options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 264,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 273,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n isLoggedIn: this.state.isAuthenticated,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 275,\n columnNumber: 11\n }\n }), mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","isNavbar","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,aAAP,MAA2B,iBAA3B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QA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AAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CANe,eASf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QATe,CAAjB;AAcA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAEE,oBAAC,aAAD;AAAe,QAAA,UAAU,EAAE,KAAKQ,KAAL,CAAWE,eAAtC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAFF,EAGIyE,QAHJ,CAFF;AAUH;;;;EAxQe/F,S;;AA0QlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ?\n
\n \n
\n :\n
\n \n
\n \n \n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n \n \n {mainBody}\n \n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/1771135b9b7d2eda7cc9a237c4b3371a.json b/node_modules/.cache/babel-loader/1771135b9b7d2eda7cc9a237c4b3371a.json deleted file mode 100644 index 4264d99d..00000000 --- a/node_modules/.cache/babel-loader/1771135b9b7d2eda7cc9a237c4b3371a.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Switch, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 15\n }\n })))));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,SAASC,aAAT,QAA8B,4BAA9B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAKI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEN,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALJ,eAMI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEC,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANJ,eAOI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAPJ,eASE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CATF,CADF,CADF,CADF;AAmBD;;;;EArBmBX,S;;AAwBtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() {\n return (\n \n \n
\n \n \n {/* \n */}\n \n \n \n \n \n \n \n
\n
\n
\n );\n }\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/9ac00dc136ab2ea59727ef1bd0095c0d.json b/node_modules/.cache/babel-loader/178f4bd8bddc6e6485a8f1f6592ae6c4.json similarity index 100% rename from node_modules/.cache/babel-loader/9ac00dc136ab2ea59727ef1bd0095c0d.json rename to node_modules/.cache/babel-loader/178f4bd8bddc6e6485a8f1f6592ae6c4.json diff --git a/node_modules/.cache/babel-loader/d77f98752ac8ee67da4beb137ccaec9f.json b/node_modules/.cache/babel-loader/191ea3eb379fd0c22fc579e5f11c98ad.json similarity index 100% rename from node_modules/.cache/babel-loader/d77f98752ac8ee67da4beb137ccaec9f.json rename to node_modules/.cache/babel-loader/191ea3eb379fd0c22fc579e5f11c98ad.json diff --git a/node_modules/.cache/babel-loader/19609dea18a8f76852a79c095787b80e.json b/node_modules/.cache/babel-loader/19609dea18a8f76852a79c095787b80e.json deleted file mode 100644 index c9b3cdf9..00000000 --- a/node_modules/.cache/babel-loader/19609dea18a8f76852a79c095787b80e.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nvar Styles = styled.div(_templateObject());\nexport var Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 16\n }\n })), options), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 28\n }\n }, \"Tasks\")))), \":\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 18\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 53,\n columnNumber: 18\n }\n }))))));\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","Styles","div","Navigationbar","header","options","textDecoration"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,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AAAA,gBADJ,CADF,eAOE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,QAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aADJ,CAPF,CADH,CARV,oBA0BS;AAAK,IAAA,EAAE,EAAC,QAAR;AAAiB,IAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IADA,CA1BT,CADJ,CADA,CADF,CAD2B;AAAA,CAAtB","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nexport const Navigationbar = () => (\n \n \n \n \n \n \n \n)"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/1980f30803b1699f2dc94b4a4b3af3a0.json b/node_modules/.cache/babel-loader/1980f30803b1699f2dc94b4a4b3af3a0.json deleted file mode 100644 index d482aed4..00000000 --- a/node_modules/.cache/babel-loader/1980f30803b1699f2dc94b4a4b3af3a0.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 6\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 225,\n columnNumber: 15\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 11\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 248,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 249,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 256,\n columnNumber: 24\n }\n }, options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 267,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC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,CAAjB;AAqBA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIkF,QADJ,CAFF;AAOH;;;;EA1Qe9F,S;;AA4QlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n\n
\n \n
\n :\n
\n \n
\n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n \n {options}\n \n \n {simulator}\n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/00783cc7b9b5d27203e218f7d63f14f1.json b/node_modules/.cache/babel-loader/19d7429b9bbe2037e16248b66f09036a.json similarity index 100% rename from node_modules/.cache/babel-loader/00783cc7b9b5d27203e218f7d63f14f1.json rename to node_modules/.cache/babel-loader/19d7429b9bbe2037e16248b66f09036a.json diff --git a/node_modules/.cache/babel-loader/61f755ac4547c5f58632f81ea3c58ec1.json b/node_modules/.cache/babel-loader/1a2e1a791cc7f7b4cabdf1d1aa655ef3.json similarity index 100% rename from node_modules/.cache/babel-loader/61f755ac4547c5f58632f81ea3c58ec1.json rename to node_modules/.cache/babel-loader/1a2e1a791cc7f7b4cabdf1d1aa655ef3.json diff --git a/node_modules/.cache/babel-loader/31d39b6e18afc3a5105c5430c1c52047.json b/node_modules/.cache/babel-loader/1a8c12f3597ab4b6178259889d1e0d7b.json similarity index 100% rename from node_modules/.cache/babel-loader/31d39b6e18afc3a5105c5430c1c52047.json rename to node_modules/.cache/babel-loader/1a8c12f3597ab4b6178259889d1e0d7b.json diff --git a/node_modules/.cache/babel-loader/1b4b03193d4d06ffef6d687776d51a40.json b/node_modules/.cache/babel-loader/1b4b03193d4d06ffef6d687776d51a40.json deleted file mode 100644 index e9271964..00000000 --- a/node_modules/.cache/babel-loader/1b4b03193d4d06ffef6d687776d51a40.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nvar Styles = styled.div(_templateObject());\nexport var Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 16\n }\n })), options), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 28\n }\n }, \"Tasks\")))), \":\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 18\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 53,\n columnNumber: 18\n }\n }))))));\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","Styles","div","Navigationbar","options","textDecoration"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,M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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,QAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aADJ,CAPF,CADH,CARV,oBA0BS;AAAK,IAAA,EAAE,EAAC,QAAR;AAAiB,IAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IADA,CA1BT,CADJ,CADA,CADF,CAD2B;AAAA,CAAtB","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nexport const Navigationbar = () => (\n \n \n \n \n \n \n \n)"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/9b8f66ceca0e66a002b58392001c2f74.json b/node_modules/.cache/babel-loader/1bb39dee8a756421fcfa9a2dbbc17991.json similarity index 100% rename from node_modules/.cache/babel-loader/9b8f66ceca0e66a002b58392001c2f74.json rename to node_modules/.cache/babel-loader/1bb39dee8a756421fcfa9a2dbbc17991.json diff --git a/node_modules/.cache/babel-loader/1bff546a88f9a37129e00adfa0305982.json b/node_modules/.cache/babel-loader/1bff546a88f9a37129e00adfa0305982.json deleted file mode 100644 index 6a888522..00000000 --- a/node_modules/.cache/babel-loader/1bff546a88f9a37129e00adfa0305982.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var authenticated = this.props.isLoggedIn;\n var options = authenticated ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 41\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 61,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 41\n }\n }, \"Logout\")))))))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 77,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 78,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 79,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 80,\n columnNumber: 11\n }\n }, \"Login\"))));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 88,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","authenticated","props","isLoggedIn","options","textDecoration","submit","login","mainBody"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AACN,UAAMC,aAAa,GAAG,KAAKC,KAAL,CAAWC,UAAjC;AAEH,UAAMC,OAAO,GAAGH,aAAa,gBACxB,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAQ,QAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD,CAAQ,QAAR;AAAiB,QAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,GAAD;AAAK,QAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACc;AAAG,QAAA,KAAK,EAAC,OAA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AAA;AAAA,sBACI,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKH,KAAL,CAAWI,MAAhE;AAAwE,QAAA,KAAK,EAAC,QAA9E;AAAuF,QAAA,EAAE,EAAC,GAA1F;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBADJ,CAjBJ,CAJR,CANV,CADJ,CADF,CADF,CADwB,gBA+CtB;AAAK,QAAA,EAAE,EAAC,QAAR;AAAiB,QAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAED,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKH,KAAL,CAAWK,KAAhE;AAAuE,QAAA,KAAK,EAAC,OAA7E;AAAqF,QAAA,EAAE,EAAC,EAAxF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADA,CADF,CADA,CA/CP;AAyDD,0BACQ;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIC,QADJ,CADR;AAKC;;;;EAlE2BlB,S;;AAoE5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const authenticated = this.props.isLoggedIn;\n \n const options = authenticated ? (\n \n \n \n \n \n \n \n )\n :\n (\n
\n \n
\n )\nreturn (\n
\n {mainBody}\n
\n) \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/959f253ac62ae7b43a8b043c8de524e4.json b/node_modules/.cache/babel-loader/1cac95cd779b73631f2fdcc5153fe48c.json similarity index 100% rename from node_modules/.cache/babel-loader/959f253ac62ae7b43a8b043c8de524e4.json rename to node_modules/.cache/babel-loader/1cac95cd779b73631f2fdcc5153fe48c.json diff --git a/node_modules/.cache/babel-loader/c646b17a6d662e897772f425420d3e02.json b/node_modules/.cache/babel-loader/1cf6e44cd128d231804b9a9388066ad2.json similarity index 100% rename from node_modules/.cache/babel-loader/c646b17a6d662e897772f425420d3e02.json rename to node_modules/.cache/babel-loader/1cf6e44cd128d231804b9a9388066ad2.json diff --git a/node_modules/.cache/babel-loader/fe727d81eaf78f91a139768a709a0332.json b/node_modules/.cache/babel-loader/1d51830cbd7f5235c0475cfd177d67c4.json similarity index 100% rename from node_modules/.cache/babel-loader/fe727d81eaf78f91a139768a709a0332.json rename to node_modules/.cache/babel-loader/1d51830cbd7f5235c0475cfd177d67c4.json diff --git a/node_modules/.cache/babel-loader/a52ad99bfc6339443f4e352d7539fd0b.json b/node_modules/.cache/babel-loader/1da1171f13fbc8ee63adaa90a4c28723.json similarity index 100% rename from node_modules/.cache/babel-loader/a52ad99bfc6339443f4e352d7539fd0b.json rename to node_modules/.cache/babel-loader/1da1171f13fbc8ee63adaa90a4c28723.json diff --git a/node_modules/.cache/babel-loader/1dd80ac38444138f59c60574e1a91f4a.json b/node_modules/.cache/babel-loader/1dd80ac38444138f59c60574e1a91f4a.json deleted file mode 100644 index 1e1ffd3d..00000000 --- a/node_modules/.cache/babel-loader/1dd80ac38444138f59c60574e1a91f4a.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = !this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 21\n }\n }, \"Login\")))) : null;\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 239,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 240,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 241,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 247,\n columnNumber: 24\n }\n }, options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 253,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 254,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 256,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n logout: this.logout,\n submit: this.submit,\n login: this.login,\n isLoggedIn: this.state.isAuthenticated,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 264,\n columnNumber: 11\n }\n }), mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","isNavbar","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,aAAP,MAA2B,iBAA3B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAn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A;AAAA;AAAA;AAAA;AAAA,8BAJ7B,EAKO,KAAKL,KAAL,CAAWK,MAAX,iBAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAL5B,CAFF,CADS,GAYL,IAZd;AAcE,UAAMsE,QAAQ,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACdH,OADc,EAEdE,SAFc,eAGf;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAElF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAHe,eAMf;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CANe,eASf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QATe,CAAjB;AAcA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAe,QAAA,MAAM,EAAE,KAAK8B,MAA5B;AAAoC,QAAA,MAAM,EAAE,KAAKE,MAAjD;AAAyD,QAAA,KAAK,EAAE,KAAKH,KAArE;AAA4E,QAAA,UAAU,EAAE,KAAKrB,KAAL,CAAWE,eAAnG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,EAGIyE,QAHJ,CAFF;AAUH;;;;EA9Pe/F,S;;AAgQlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = !this.state.isAuthenticated ?\n \n
\n \n
\n :null\n \n \n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n \n \n {mainBody}\n \n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/faaf40f93c362ac38944089223b72c3a.json b/node_modules/.cache/babel-loader/1ded27ff9dce08f5e1df9c01cddafc5b.json similarity index 100% rename from node_modules/.cache/babel-loader/faaf40f93c362ac38944089223b72c3a.json rename to node_modules/.cache/babel-loader/1ded27ff9dce08f5e1df9c01cddafc5b.json diff --git a/node_modules/.cache/babel-loader/c852789f129de2e1073fcb1fd1251ea5.json b/node_modules/.cache/babel-loader/1e1d8af1251f285f15725826088ea4eb.json similarity index 100% rename from node_modules/.cache/babel-loader/c852789f129de2e1073fcb1fd1251ea5.json rename to node_modules/.cache/babel-loader/1e1d8af1251f285f15725826088ea4eb.json diff --git a/node_modules/.cache/babel-loader/1e2a170325abc25ef2d93a59492a8c3d.json b/node_modules/.cache/babel-loader/1e2a170325abc25ef2d93a59492a8c3d.json deleted file mode 100644 index 1015d2ef..00000000 --- a/node_modules/.cache/babel-loader/1e2a170325abc25ef2d93a59492a8c3d.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var authenticated = this.props.isLoggedIn;\n console.log(authenticated);\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 33\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 33\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 33\n }\n }, \"Simulator\")))))))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","authenticated","props","isLoggedIn","console","log","textDecoration"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AACN,UAAMC,aAAa,GAAG,KAAKC,KAAL,CAAWC,UAAjC;AACAC,MAAAA,OAAO,CAACC,GAAR,CAAYJ,aAAZ;AAEF,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA,oBAAC,MAAD;AAAQ,QAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD,CAAQ,QAAR;AAAiB,QAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,GAAD;AAAK,QAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACU;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAAA,KAAK,EAAC,MAAX;AAAkB,QAAA,GAAG,EAAEJ,MAAvB;AAA+B,QAAA,KAAK,EAAE,MAAtC;AAA8C,QAAA,MAAM,EAAE,MAAtD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CADJ,CADV,eAMU;AAAK,QAAA,EAAE,EAAC,QAAR;AAAiB,QAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAES,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA6C,QAAA,KAAK,EAAC,UAAnD;AAA8D,QAAA,EAAE,EAAC,WAAjE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBADJ,CADF,eAOE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA6C,QAAA,KAAK,EAAC,OAAnD;AAA2D,QAAA,EAAE,EAAC,QAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CAPF,eAYE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA6C,QAAA,KAAK,EAAC,OAAnD;AAA2D,QAAA,EAAE,EAAC,GAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADJ,CAZF,CADF,CANV,CADJ,CADF,CADA,CADJ,CADF;AAwCD;;;;EA7C2BhB,S;;AA+C5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const authenticated = this.props.isLoggedIn;\n console.log(authenticated);\n \n return (\n
\n \n \n \n \n \n \n \n \n \n
\n )\n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/1e9865afc0eaeb7b1c92c49df4649f71.json b/node_modules/.cache/babel-loader/1e9865afc0eaeb7b1c92c49df4649f71.json deleted file mode 100644 index 03735a95..00000000 --- a/node_modules/.cache/babel-loader/1e9865afc0eaeb7b1c92c49df4649f71.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _jsxFileName = \"/home/riddhi/frontend/src/index.js\";\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport './index.css';\nimport * as serviceWorker from './serviceWorker';\nimport Routing from './Routing';\nimport Navigationbar from './components/Navigationbar';\nReactDOM.render( /*#__PURE__*/React.createElement(Routing, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 11,\n columnNumber: 13\n }\n}), document.getElementById('root')); //ReactDOM.render(, document.getElementById('root'));\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\n\nserviceWorker.unregister();","map":{"version":3,"sources":["/home/riddhi/frontend/src/index.js"],"names":["React","ReactDOM","NavLink","Switch","BrowserRouter","Router","Route","serviceWorker","Routing","Navigationbar","render","document","getElementById","unregister"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,QAAP,MAAqB,WAArB;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAO,aAAP;AACA,OAAO,KAAKC,aAAZ,MAA+B,iBAA/B;AACA,OAAOC,OAAP,MAAoB,WAApB;AACA,OAAOC,aAAP,MAA0B,4BAA1B;AAEAR,QAAQ,CAACS,MAAT,eAEY,oBAAC,OAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAFZ,EAIMC,QAAQ,CAACC,cAAT,CAAwB,MAAxB,CAJN,E,CAKA;AAGA;AACA;AACA;;AACAL,aAAa,CAACM,UAAd","sourcesContent":["import React from 'react';\nimport ReactDOM from 'react-dom';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport './index.css';\nimport * as serviceWorker from './serviceWorker';\nimport Routing from './Routing';\nimport Navigationbar from './components/Navigationbar';\n\nReactDOM.render(\n \n \n \n , document.getElementById('root'));\n//ReactDOM.render(, document.getElementById('root'));\n\n\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\nserviceWorker.unregister();"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/1eba58510716e5b9c1f17b8778947a23.json b/node_modules/.cache/babel-loader/1eba58510716e5b9c1f17b8778947a23.json deleted file mode 100644 index b60890db..00000000 --- a/node_modules/.cache/babel-loader/1eba58510716e5b9c1f17b8778947a23.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport NavigationBar from './components/NavigationBar/NavigationBar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 228,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 229,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 242,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 19\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 278,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 282,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 283,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 286,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 294,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(NavigationBar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 295,\n columnNumber: 11\n }\n }), mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","NavigationBar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,OAAOC,aAAP,MAA2B,0CAA3B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAC/C,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAwC;;AACxC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OA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AAA,MAAM,EAAE,MAA1C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADH,CADJ,EAIKgF,OAJL,CADa,EAQZE,SARY,eAUb;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAEjF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAVa,eAcb;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAda,eAkBb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAlBa,CAAjB;AAyBE,0BACE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,EAEIkF,QAFJ,CADF;AASH;;;;EA5Re9F,S;;AA8RlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport NavigationBar from './components/NavigationBar/NavigationBar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n
\n \n {mainBody}\n
\n \n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/0cd9f8d2c0223159b1764824e362c5f3.json b/node_modules/.cache/babel-loader/1ed13831254ca1c3c3bb98876b7f466b.json similarity index 100% rename from node_modules/.cache/babel-loader/0cd9f8d2c0223159b1764824e362c5f3.json rename to node_modules/.cache/babel-loader/1ed13831254ca1c3c3bb98876b7f466b.json diff --git a/node_modules/.cache/babel-loader/a09c69c5a6a7eb06d54bca40eae66aca.json b/node_modules/.cache/babel-loader/1efb2ed4bb770180883add718c80ec3e.json similarity index 100% rename from node_modules/.cache/babel-loader/a09c69c5a6a7eb06d54bca40eae66aca.json rename to node_modules/.cache/babel-loader/1efb2ed4bb770180883add718c80ec3e.json diff --git a/node_modules/.cache/babel-loader/622f5391a82978284559febe051b6aae.json b/node_modules/.cache/babel-loader/1f23620c13b77b3cde52379b900c0883.json similarity index 100% rename from node_modules/.cache/babel-loader/622f5391a82978284559febe051b6aae.json rename to node_modules/.cache/babel-loader/1f23620c13b77b3cde52379b900c0883.json diff --git a/node_modules/.cache/babel-loader/1f4e31a731457565417b7743876bcd5b.json b/node_modules/.cache/babel-loader/1f4e31a731457565417b7743876bcd5b.json deleted file mode 100644 index abd2dbe9..00000000 --- a/node_modules/.cache/babel-loader/1f4e31a731457565417b7743876bcd5b.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:4200\",\n target: \"right_side\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 13\n }\n }, \" Console \"), /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:8888\",\n target: \"right_side\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }\n }, \" Simulator \"), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"top_side\",\n src: \"\",\n width: \"100%\",\n height: \"50%\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"bottom_side\",\n src: \"\",\n width: \"100%\",\n height: \"50%\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 9\n }\n }));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;AACA,OAAO,iBAAP;;IAEMC,S;;;;;;;;;;;;;;;UAKAC,K,GAAQ;AACNC,MAAAA,SAAS,EAAE,IADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,SAAS,EAAED;AAJL,K;;;;;;6BAQR;AACE,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,YAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADF,eAEE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,YAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAFF,eAGE;AAAQ,QAAA,IAAI,EAAC,UAAb;AAAwB,QAAA,GAAG,EAAC,EAA5B;AAA+B,QAAA,KAAK,EAAC,MAArC;AACJ,QAAA,MAAM,EAAC,KADH;AACS,QAAA,WAAW,EAAC,GADrB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHF,eAKF;AAAQ,QAAA,IAAI,EAAC,aAAb;AAA2B,QAAA,GAAG,EAAC,EAA/B;AAAkC,QAAA,KAAK,EAAC,MAAxC;AACA,QAAA,MAAM,EAAC,KADP;AACa,QAAA,WAAW,EAAC,GADzB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALE,CADF;AAgBD;;;;EA9BiBf,S;;AAAlBU,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAET,UAAU,CAACD,OAAD,CAAV,CAAoBW;AADd,C;AAgCvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n Console \n Simulator \n \n \n \n \n \n\n \n \n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/884b289b006cd8f42ca3c9a383494cce.json b/node_modules/.cache/babel-loader/1f63625e1fddf24d08bc1ce4f8ecbd8a.json similarity index 100% rename from node_modules/.cache/babel-loader/884b289b006cd8f42ca3c9a383494cce.json rename to node_modules/.cache/babel-loader/1f63625e1fddf24d08bc1ce4f8ecbd8a.json diff --git a/node_modules/.cache/babel-loader/376b206568c389c29b606e978fe84291.json b/node_modules/.cache/babel-loader/1f8157cf7cb0a60a089eba5dff29a7fe.json similarity index 100% rename from node_modules/.cache/babel-loader/376b206568c389c29b606e978fe84291.json rename to node_modules/.cache/babel-loader/1f8157cf7cb0a60a089eba5dff29a7fe.json diff --git a/node_modules/.cache/babel-loader/1f8794468e8026d190482fd9e6418bfc.json b/node_modules/.cache/babel-loader/1f8794468e8026d190482fd9e6418bfc.json deleted file mode 100644 index f31b5a63..00000000 --- a/node_modules/.cache/babel-loader/1f8794468e8026d190482fd9e6418bfc.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var isLoggedIn = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 7\n }\n }, isLoggedIn ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 41\n }\n }, \"Simulator\"))))) : null);\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","isLoggedIn","props","textDecoration"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AACN,UAAMC,UAAU,GAAG,KAAKC,KAAL,CAAWD,UAA9B;AACA,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACAA,UAAU,gBACV,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAEQ;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACc;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAAA,KAAK,EAAC,MAAX;AAAkB,QAAA,GAAG,EAAEJ,MAAvB;AAA+B,QAAA,KAAK,EAAE,MAAtC;AAA8C,QAAA,MAAM,EAAE,MAAtD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CADd,CAFR,eAOkB;AAAK,QAAA,EAAE,EAAC,QAAR;AAAiB,QAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAIQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEM,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,UAAhD;AAA2D,QAAA,EAAE,EAAC,WAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBADJ,CADJ,eAOI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,GAAD,CAAK,IAAL;AAAU,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAjB;AAA8C,QAAA,KAAK,EAAC,OAApD;AAA4D,QAAA,EAAE,EAAC,QAA/D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CAPJ,eAYI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,GAAD,CAAK,IAAL;AAAU,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAjB;AAA8C,QAAA,KAAK,EAAC,OAApD;AAA4D,QAAA,EAAE,EAAC,GAA/D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADJ,CAZJ,CAJR,CAPlB,CADU,GAsCV,IAvCA,CADF;AA+CH;;;;EAlD2Bb,S;;AAoD5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const isLoggedIn = this.props.isLoggedIn;\n return (\n
\n { isLoggedIn ? \n \n \n
\n \n \n \n
\n
\n \n \n \n
    \n
  • \n \n Progress\n \n
  • \n \n
  • \n \n Tasks\n \n
  • \n
  • \n \n Simulator\n \n
  • \n \n
\n \n \n
\n \n
\n \n :\n null\n }\n \n \n\n
\n); \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/1ff918b63534fb89983b12e8e7b7044b.json b/node_modules/.cache/babel-loader/1ff918b63534fb89983b12e8e7b7044b.json deleted file mode 100644 index b0357968..00000000 --- a/node_modules/.cache/babel-loader/1ff918b63534fb89983b12e8e7b7044b.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nimport './Navigationbar.css';\n\nvar Navigationbar = function Navigationbar(props) {\n return /*#__PURE__*/React.createElement(\"header\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 7,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"logo\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 9,\n columnNumber: 11\n }\n }), /*#__PURE__*/React.createElement(\"nav\", {\n className: \"navigation-items\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 12,\n columnNumber: 11\n }\n }));\n};\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","styled","Navigationbar","props"],"mappings":";;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,qBAAP;;AACA,IAAMC,aAAa,GAAG,SAAhBA,aAAgB,CAAAC,KAAK;AAAA,sBAErB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAEI;AAAK,IAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAFJ,eAKI;AAAK,IAAA,SAAS,EAAC,kBAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IALJ,CAFqB;AAAA,CAA3B;;AAcE,eAAeD,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nimport './Navigationbar.css';\nconst Navigationbar = props => (\n \n
\n \n
\n {/* your logo */}\n
\n \n \n
\n \n );\n export default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/f1c3fa63e693d6ffee8d3ac6a145a4b4.json b/node_modules/.cache/babel-loader/200e647bdf3e9cbac74d19f0e63a7f99.json similarity index 100% rename from node_modules/.cache/babel-loader/f1c3fa63e693d6ffee8d3ac6a145a4b4.json rename to node_modules/.cache/babel-loader/200e647bdf3e9cbac74d19f0e63a7f99.json diff --git a/node_modules/.cache/babel-loader/200fcdc81f0c8c2a10f7f8594ea09672.json b/node_modules/.cache/babel-loader/200fcdc81f0c8c2a10f7f8594ea09672.json deleted file mode 100644 index b3d9bacc..00000000 --- a/node_modules/.cache/babel-loader/200fcdc81f0c8c2a10f7f8594ea09672.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(Switch, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, \"this.state.isAuthenticated ?\", /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 17\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 21\n }\n }), \":\", /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 21\n }\n }))));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,SAASC,aAAT,QAA8B,4BAA9B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sDAGQ,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADA,eAGI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEL,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHJ,eAII,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJJ,eAKI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALJ,oBAOI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEL,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAPJ,CADF,CAHR,CADF;AAqBD;;;;EAvBmBN,S;;AA0BtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() {\n return ( \n \n \n this.state.isAuthenticated ? \n \n \n \n \n \n \n \n :\n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/209aa7ebbf178c8ef47349c0329e4784.json b/node_modules/.cache/babel-loader/202648daff7290db4fae52094f3fd6fb.json similarity index 100% rename from node_modules/.cache/babel-loader/209aa7ebbf178c8ef47349c0329e4784.json rename to node_modules/.cache/babel-loader/202648daff7290db4fae52094f3fd6fb.json diff --git a/node_modules/.cache/babel-loader/207d4e8220976cf82180a4d26a9b7dfb.json b/node_modules/.cache/babel-loader/207d4e8220976cf82180a4d26a9b7dfb.json deleted file mode 100644 index 18679bb8..00000000 --- a/node_modules/.cache/babel-loader/207d4e8220976cf82180a4d26a9b7dfb.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport Navigationbar from './Navigationbar';\nimport './App.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"http://localhost:4200\",\n target: \"top_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 13\n }\n }, \" Console \"), /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:8888\",\n target: \"bottom_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 13\n }\n }, \" Simulator \"), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"top_\",\n src: \"\",\n width: \"100%\",\n height: \"375px\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"bottom_\",\n src: \"\",\n width: \"100%\",\n height: \"375px\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 15\n }\n }));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Navigationbar","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,E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;;AAAlBW,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAEV,UAAU,CAACD,OAAD,CAAV,CAAoBY;AADd,C;AA0BvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport Navigationbar from './Navigationbar';\nimport './App.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n \n Console \n Simulator \n \n \n \n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/2090122cc5ef12184e1ed61ee63d08c8.json b/node_modules/.cache/babel-loader/2090122cc5ef12184e1ed61ee63d08c8.json deleted file mode 100644 index 5b4ab001..00000000 --- a/node_modules/.cache/babel-loader/2090122cc5ef12184e1ed61ee63d08c8.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\nexport var Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 16\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 28\n }\n }, \"Tasks\"))))))));\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","textDecoration"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;AAiBA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;AAAA,sBAC3B,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD;AAAQ,IAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACA,oBAAC,MAAD,CAAQ,QAAR;AAAiB,IAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,GAAD;AAAK,IAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACA;AAAK,IAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI;AAAG,IAAA,KAAK,EAAC,OAAT;AAAiB,IAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACG;AAAK,IAAA,KAAK,EAAC,MAAX;AAAkB,IAAA,GAAG,EAAEH,MAAvB;AAA+B,IAAA,KAAK,EAAE,MAAtC;AAA8C,IAAA,MAAM,EAAE,MAAtD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IADH,CADJ,CADA,eAQU;AAAK,IAAA,EAAE,EAAC,QAAR;AAAiB,IAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEI,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,UAAnD;AAA8D,IAAA,EAAE,EAAC,WAAjE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBADJ,CADF,eAOE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,QAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aADJ,CAPF,CADH,CARV,CADJ,CADA,CADF,CAD2B;AAAA,CAAtB","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nexport const Navigationbar = () => (\n \n \n \n \n \n \n \n)"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/2092d13aa500fafeecc5ecc11856bc97.json b/node_modules/.cache/babel-loader/2092d13aa500fafeecc5ecc11856bc97.json deleted file mode 100644 index c5a9b51b..00000000 --- a/node_modules/.cache/babel-loader/2092d13aa500fafeecc5ecc11856bc97.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink, Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var isLoggedIn = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 13,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 14,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 35\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 37\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 41\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 45\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 49\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 45\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 49\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 45\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 49\n }\n }, \"Simulator\"))))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","Link","styled","header","Navigationbar","isLoggedIn","props","textDecoration"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,EAAiBC,IAAjB,QAA6B,kBAA7B;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;IAEzCC,a;;;;;;;;;;;6BACI;AACN,UAAMC,UAAU,GAAG,KAAKC,KAAL,CAAWD,UAA9B;AAEA,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACY,oBAAC,GAAD;AAAK,QAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACc;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;A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av, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink,Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nclass Navigationbar extends Component { \n render(){\n const isLoggedIn = this.props.isLoggedIn;\n \n return (\n
\n \n \n
\n); \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/7fbc7144af51456935875c642956ee9f.json b/node_modules/.cache/babel-loader/2097ef1cc94052c46b647ec656cb32df.json similarity index 100% rename from node_modules/.cache/babel-loader/7fbc7144af51456935875c642956ee9f.json rename to node_modules/.cache/babel-loader/2097ef1cc94052c46b647ec656cb32df.json diff --git a/node_modules/.cache/babel-loader/e0154ac0223d3100fdb6506d313ea05c.json b/node_modules/.cache/babel-loader/2109a4fb0bc4ead21287f6e4c2b983f2.json similarity index 100% rename from node_modules/.cache/babel-loader/e0154ac0223d3100fdb6506d313ea05c.json rename to node_modules/.cache/babel-loader/2109a4fb0bc4ead21287f6e4c2b983f2.json diff --git a/node_modules/.cache/babel-loader/2124158a7e8e81fbd17f5e44060228d3.json b/node_modules/.cache/babel-loader/2124158a7e8e81fbd17f5e44060228d3.json deleted file mode 100644 index 767b4ea3..00000000 --- a/node_modules/.cache/babel-loader/2124158a7e8e81fbd17f5e44060228d3.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 6\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 225,\n columnNumber: 15\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 11\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 248,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 249,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 256,\n columnNumber: 24\n }\n }, options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 272,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,IAAP,MAAiB,qBAAj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S,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n\n
\n
    \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/cec864dc633a46c42e0adcbfbc7d2bae.json b/node_modules/.cache/babel-loader/21c381f24fb848ca04c6bb1b80ca7c60.json similarity index 100% rename from node_modules/.cache/babel-loader/cec864dc633a46c42e0adcbfbc7d2bae.json rename to node_modules/.cache/babel-loader/21c381f24fb848ca04c6bb1b80ca7c60.json diff --git a/node_modules/.cache/babel-loader/3db402ff8d95b335993b27d0d5832220.json b/node_modules/.cache/babel-loader/221d652be3993a26bebddd973bde56a7.json similarity index 100% rename from node_modules/.cache/babel-loader/3db402ff8d95b335993b27d0d5832220.json rename to node_modules/.cache/babel-loader/221d652be3993a26bebddd973bde56a7.json diff --git a/node_modules/.cache/babel-loader/4aa3726af8149704f54e73c2f8901e09.json b/node_modules/.cache/babel-loader/2232b3910feb15e3be4381e2113969d4.json similarity index 100% rename from node_modules/.cache/babel-loader/4aa3726af8149704f54e73c2f8901e09.json rename to node_modules/.cache/babel-loader/2232b3910feb15e3be4381e2113969d4.json diff --git a/node_modules/.cache/babel-loader/224503b81cb118ffc17e9b97c4744b25.json b/node_modules/.cache/babel-loader/224503b81cb118ffc17e9b97c4744b25.json deleted file mode 100644 index 44b71063..00000000 --- a/node_modules/.cache/babel-loader/224503b81cb118ffc17e9b97c4744b25.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #222; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #9FFFCB;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #9FFFCB;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nvar Styles = styled.div(_templateObject());\nexport var Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Brand, {\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 7\n }\n }, \"Tutorial\"), /*#__PURE__*/React.createElement(Navbar.Toggle, {\n \"aria-controls\": \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 7\n }\n }), /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Nav.Item, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 21\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(Nav.Item, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 21\n }\n }, \"Task\"))))));\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","styled","Styles","div","Navigationbar"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,IAAMC,MAAM,GAAGD,MAAM,CAACE,GAAV,mBAAZ;AAiBA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;AAAA,sBAC3B,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD;AAAQ,IAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD,CAAQ,KAAR;AAAc,IAAA,IAAI,EAAC,GAAnB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBADF,eAEE,oBAAC,MAAD,CAAQ,MAAR;AAAe,qBAAc,kBAA7B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAFF,eAIE,oBAAC,MAAD,CAAQ,QAAR;AAAiB,IAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,GAAD;AAAK,IAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,GAAD,CAAK,IAAL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAU,oBAAC,GAAD,CAAK,IAAL;AAAU,IAAA,IAAI,EAAC,WAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAAV,CADF,eAEE,oBAAC,GAAD,CAAK,IAAL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAU,oBAAC,GAAD,CAAK,IAAL;AAAU,IAAA,IAAI,EAAC,QAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAAV,CAFF,CADF,CAJF,CADF,CAD2B;AAAA,CAAtB","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nconst Styles = styled.div`\n .navbar { background-color: #222; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #9FFFCB;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #9FFFCB;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nexport const Navigationbar = () => (\n \n \n Tutorial\n \n \n \n \n \n \n \n)"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/225180acd7e32de9d099684eb5f144df.json b/node_modules/.cache/babel-loader/225180acd7e32de9d099684eb5f144df.json deleted file mode 100644 index 6f348a07..00000000 --- a/node_modules/.cache/babel-loader/225180acd7e32de9d099684eb5f144df.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/TaskList.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\n\nvar TaskList = /*#__PURE__*/function (_Component) {\n _inherits(TaskList, _Component);\n\n function TaskList(props) {\n var _this;\n\n _classCallCheck(this, TaskList);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(TaskList).call(this, props));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n var cookies = props.cookies;\n _this.state = {\n tasks: [],\n csrfToken: cookies.get('XSRF-TOKEN'),\n isLoading: true,\n simulator: \"\",\n timeoutActionTaken: false\n };\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.simulatorWindow = null;\n return _this;\n }\n\n _createClass(TaskList, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.loadUser();\n }\n }, {\n key: \"loadUser\",\n value: function () {\n var _loadUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var _this2 = this;\n\n var response, body, userId, userName;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 2:\n response = _context.sent;\n _context.next = 5;\n return response.text();\n\n case 5:\n body = _context.sent;\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(\"())))))))))))))))))))))))))\");\n console.log(this.state.isAuthenticated);\n userId = this.state.user.sub;\n userName = this.state.user.given_name;\n fetch(\"http://\".concat(this.ip, \"/competition/progress/\").concat(userId, \"/13\"), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (data) {\n return _this2.setState({\n tasks: data,\n isLoading: false\n });\n }).catch(function () {\n return _this2.props.history.push('/');\n });\n\n case 12:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function loadUser() {\n return _loadUser.apply(this, arguments);\n }\n\n return loadUser;\n }()\n }, {\n key: \"openAutoTimeout\",\n value: function openAutoTimeout() {\n setTimeout(function () {\n console.log('auto close start now...');\n }.bind(this), 60 * 1000);\n }\n }, {\n key: \"openTimeout\",\n value: function openTimeout() {\n setTimeout(function () {\n var win = window.open(null, '_blank');\n this.state.timeoutActionTaken = false;\n win.focus();\n\n if (win.confirm(\"Do you want to keep simulator open and in-use? \\nClick 'Ok' for Yes and 'Cancel' for No.\\nIf nothing selected, simulator will be shut down automatically.\")) {\n // Do nothing, keep simulator alive\n this.state.timeoutActionTaken = true; //alert('ok clicked');\n\n win.close();\n } else {\n // send api to backend to stop task\n this.state.timeoutActionTaken = true; //alert('cancel clicked');\n\n win.close();\n }\n }.bind(this), 60 * 60 * 1000);\n this.openAutoTimeout();\n }\n }, {\n key: \"updateTask\",\n value: function updateTask(userId, compId, taskId) {\n var _this3 = this;\n\n fetch(\"http://\".concat(this.ip, \"/competition/update/\").concat(userId, \"/\").concat(compId, \"/\").concat(taskId), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (data) {\n return _this3.setState({\n tasks: data,\n isLoading: false\n });\n }).catch(function () {\n return _this3.props.history.push('/');\n });\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this4 = this;\n\n var _this$state = this.state,\n tasks = _this$state.tasks,\n isLoading = _this$state.isLoading;\n\n if (isLoading) {\n return /*#__PURE__*/React.createElement(\"p\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 96,\n columnNumber: 14\n }\n }, \"Loading...\");\n }\n\n var taskList = tasks.map(function (task) {\n return /*#__PURE__*/React.createElement(\"tr\", {\n key: task.task_id,\n __self: _this4,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 100,\n columnNumber: 14\n }\n }, /*#__PURE__*/React.createElement(\"td\", {\n style: {\n wordWrap: 'break-word'\n },\n __self: _this4,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 101,\n columnNumber: 9\n }\n }, task.task_name), /*#__PURE__*/React.createElement(\"td\", {\n style: {\n whiteSpace: 'nowrap'\n },\n __self: _this4,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 102,\n columnNumber: 9\n }\n }, task.task_progress), /*#__PURE__*/React.createElement(\"td\", {\n __self: _this4,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 103,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(ButtonGroup, {\n __self: _this4,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 104,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Button, {\n size: \"sm\",\n color: \"primary\",\n onClick: function onClick() {\n _this4.openTimeout();\n\n _this4.updateTask(_this4.state.user.sub, 13, task.task_id);\n },\n __self: _this4,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 105,\n columnNumber: 11\n }\n }, task.task_action))));\n });\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 115,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Container, {\n fluid: true,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 116,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"h3\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 117,\n columnNumber: 11\n }\n }, \"My Competition Tasks\"), /*#__PURE__*/React.createElement(Table, {\n style: {\n tableLayout: 'fixed'\n },\n className: \"mt-3\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 118,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(\"thead\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 119,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"tr\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 120,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"th\", {\n width: \"30%\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 121,\n columnNumber: 15\n }\n }, \"Task Name\"), /*#__PURE__*/React.createElement(\"th\", {\n width: \"20%\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 122,\n columnNumber: 15\n }\n }, \"Progress\"), /*#__PURE__*/React.createElement(\"th\", {\n width: \"30%\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 123,\n columnNumber: 15\n }\n }, \"Action\"))), /*#__PURE__*/React.createElement(\"tbody\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 126,\n columnNumber: 13\n }\n }, taskList))));\n }\n }]);\n\n return TaskList;\n}(Component);\n\nTaskList.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default withCookies(withRouter(TaskList));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/TaskList.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","TaskList","props","state","isLoading","isAuthenticated","user","undefined","simulator","cookies","tasks","csrfToken","get","timeoutActionTaken","local","prod","status","ip","simulatorWindow","loadUser","fetch","credentials","response","text","body","setState","JSON","parse","console","log","userId","sub","userName","given_name","then","json","data","catch","history","push","setTimeout","bind","win","window","open","focus","confirm","close","openAutoTimeout","compId","taskId","taskList","map","task","task_id","wordWrap","task_name","whiteSpace","task_progress","openTimeout","updateTask","task_action","tableLayout","propTypes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BAAC,KAAD;AAAO,QAAA,KAAK,EAAE;AAACC,UAAAA,WAAW,EAAE;AAAd,SAAd;AAAsC,QAAA,SAAS,EAAC,MAAhD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAI,QAAA,KAAK,EAAC,KAAV;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADF,eAEE;AAAI,QAAA,KAAK,EAAC,KAAV;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAFF,eAGE;AAAI,QAAA,KAAK,EAAC,KAAV;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAHF,CADA,CADF,eAQE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACCX,QADD,CARF,CAFF,CADF,CADF;AAmBD;;;;EA9HoB5D,S;;AAAjBU,Q,CACG8D,S,GAAY;AACjBtD,EAAAA,OAAO,EAAET,UAAU,CAACD,OAAD,CAAV,CAAoBiE;AADZ,C;AAgIrB,eAAelE,WAAW,CAACD,UAAU,CAACI,QAAD,CAAX,CAA1B","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\n\nclass TaskList extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n\n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n\n constructor(props) {\n super(props);\n const {cookies} = props;\n this.state = {tasks: [], csrfToken: cookies.get('XSRF-TOKEN'), isLoading: true, simulator: \"\", timeoutActionTaken: false};\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.simulatorWindow = null;\n }\n\n componentDidMount() {\n this.loadUser();\n }\n\n async loadUser() {\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n const body = await response.text();\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(\"())))))))))))))))))))))))))\")\n console.log(this.state.isAuthenticated);\n\n const userId = this.state.user.sub;\n const userName = this.state.user.given_name;\n \n fetch(`http://${this.ip}/competition/progress/${userId}/13`, {credentials: 'include'})\n .then(response => response.json())\n .then(data => this.setState({tasks: data, isLoading: false}))\n .catch(() => this.props.history.push('/'));\n \n }\n \n \n openAutoTimeout(){\n setTimeout(function(){\n console.log('auto close start now...');\n }.bind(this), 60*1000);\n }\n\n openTimeout(){\n setTimeout(function(){\n var win = window.open(null, '_blank');\n this.state.timeoutActionTaken = false;\n win.focus();\n\n if(win.confirm(\"Do you want to keep simulator open and in-use? \\nClick 'Ok' for Yes and 'Cancel' for No.\\nIf nothing selected, simulator will be shut down automatically.\")){\n // Do nothing, keep simulator alive\n this.state.timeoutActionTaken = true;\n //alert('ok clicked');\n win.close();\n } else {\n // send api to backend to stop task\n this.state.timeoutActionTaken = true;\n //alert('cancel clicked');\n win.close();\n }}.bind(this), 60*60*1000);\n this.openAutoTimeout();\n }\n\n \n updateTask(userId, compId, taskId){\n fetch(`http://${this.ip}/competition/update/${userId}/${compId}/${taskId}`, {credentials: 'include'})\n .then(response => response.json())\n .then(data => this.setState({tasks: data, isLoading: false}))\n .catch(() => this.props.history.push('/'));\n }\n\n render() {\n const {tasks, isLoading} = this.state;\n \n if (isLoading) {\n return

Loading...

;\n }\n \n const taskList = tasks.map(task => {\n return \n {task.task_name}\n {task.task_progress}\n \n \n \n \n \n \n });\n\n return (\n
\n \n

My Competition Tasks

\n \n \n \n \n \n \n \n \n \n {taskList}\n \n
Task NameProgressAction
\n
\n
\n );\n }\n}\n\nexport default withCookies(withRouter(TaskList));"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/22b2e0f49678109029590f6cc8581f57.json b/node_modules/.cache/babel-loader/22b2e0f49678109029590f6cc8581f57.json deleted file mode 100644 index d6122ae5..00000000 --- a/node_modules/.cache/babel-loader/22b2e0f49678109029590f6cc8581f57.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 225,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 247,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 252,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 22\n }\n }, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 264,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 267,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody","logo"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP,C,CACA;;AACA,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE;AAJF,KAOU;AAAA,QAETC,OAFS,GAEEP,KAFF,CAETO,OAFS;AAGhBC,IAAAA,OAAO,CAACC,GAAR,CAAYF,OAAZ;AACA,UAAKN,KAAL,CAAWS,SAAX,GAAuBH,OAAO,CAACI,GAAR,CAAY,YAAZ,CAAvB;AACAH,IAAAA,OAAO,CAACC,GAAR,CAAY,MAAKR,KAAL,CAAWS,SAAvB;AACA,UAAKE,KAAL,GAAa,gBAAb;AACA,UAAKC,IAAL,GAAY,qBAAZ;AACA,UAAKC,MAAL,GAAe,OAA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EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CALa,eASb;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CATa,eAab;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAba,CAAjB;AAoBE,0BACE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACID,QADJ,CADF;AAMH;;;;EA3Qe5F,S;;AA6QlB,eAAeI,UAAU,CAACO,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\n// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n \n
\n
    \n \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n \n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/87e28e97d6f5ce4276ebdda27f2b0a68.json b/node_modules/.cache/babel-loader/22c27825734d61f2569abb2001c350db.json similarity index 100% rename from node_modules/.cache/babel-loader/87e28e97d6f5ce4276ebdda27f2b0a68.json rename to node_modules/.cache/babel-loader/22c27825734d61f2569abb2001c350db.json diff --git a/node_modules/.cache/babel-loader/f3e3f09dcb5e3c0b400681bb2c5193db.json b/node_modules/.cache/babel-loader/22e0ddf8b3e317d68526036a5bca3abd.json similarity index 100% rename from node_modules/.cache/babel-loader/f3e3f09dcb5e3c0b400681bb2c5193db.json rename to node_modules/.cache/babel-loader/22e0ddf8b3e317d68526036a5bca3abd.json diff --git a/node_modules/.cache/babel-loader/2da434c407fd7ce0693ae25df20b61a5.json b/node_modules/.cache/babel-loader/23446da5f0765367ac33bd4f551c16aa.json similarity index 100% rename from node_modules/.cache/babel-loader/2da434c407fd7ce0693ae25df20b61a5.json rename to node_modules/.cache/babel-loader/23446da5f0765367ac33bd4f551c16aa.json diff --git a/node_modules/.cache/babel-loader/4baad76ae0af8f27733de3b73ced5a02.json b/node_modules/.cache/babel-loader/23bf79bd8cb6620b917579367dad3772.json similarity index 100% rename from node_modules/.cache/babel-loader/4baad76ae0af8f27733de3b73ced5a02.json rename to node_modules/.cache/babel-loader/23bf79bd8cb6620b917579367dad3772.json diff --git a/node_modules/.cache/babel-loader/7cf11da6d05d494badeb9ed5f34bd54b.json b/node_modules/.cache/babel-loader/23ff5a23233618fb4ad4c8ed49dbfb58.json similarity index 100% rename from node_modules/.cache/babel-loader/7cf11da6d05d494badeb9ed5f34bd54b.json rename to node_modules/.cache/babel-loader/23ff5a23233618fb4ad4c8ed49dbfb58.json diff --git a/node_modules/.cache/babel-loader/ef27d0d80d58e31cd5b3f98c16113ccc.json b/node_modules/.cache/babel-loader/24098bcd0598dce8d11d64cc0368772c.json similarity index 100% rename from node_modules/.cache/babel-loader/ef27d0d80d58e31cd5b3f98c16113ccc.json rename to node_modules/.cache/babel-loader/24098bcd0598dce8d11d64cc0368772c.json diff --git a/node_modules/.cache/babel-loader/240a580b1d8e73da6f9b5fa60b9e01fd.json b/node_modules/.cache/babel-loader/240a580b1d8e73da6f9b5fa60b9e01fd.json deleted file mode 100644 index 3cbd5c00..00000000 --- a/node_modules/.cache/babel-loader/240a580b1d8e73da6f9b5fa60b9e01fd.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 248,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 249,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 256,\n columnNumber: 24\n }\n }, options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 272,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n logout: this.logout,\n submit: this.submit,\n login: this.login,\n isLoggedIn: this.state.isAuthenticated,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 273,\n columnNumber: 11\n }\n }), mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","isNavbar","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,aAAP,MAA2B,iBAA3B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAA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AAAe,QAAA,MAAM,EAAE,KAAK8B,MAA5B;AAAoC,QAAA,MAAM,EAAE,KAAKE,MAAjD;AAAyD,QAAA,KAAK,EAAE,KAAKH,KAArE;AAA4E,QAAA,UAAU,EAAE,KAAKrB,KAAL,CAAWE,eAAnG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,EAGIyE,QAHJ,CAFF;AAUH;;;;EAvQe/F,S;;AAyQlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ?\n
\n
    \n
  • \n \n Logout\n \n
  • \n\n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n \n \n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n \n \n {mainBody}\n \n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/4101c9fda3d9bcba346cfd8e816cd087.json b/node_modules/.cache/babel-loader/241871467865a3fe9611c13e26133fd8.json similarity index 100% rename from node_modules/.cache/babel-loader/4101c9fda3d9bcba346cfd8e816cd087.json rename to node_modules/.cache/babel-loader/241871467865a3fe9611c13e26133fd8.json diff --git a/node_modules/.cache/babel-loader/2430335027c4972bdd6acb4e1f3dc2c2.json b/node_modules/.cache/babel-loader/2430335027c4972bdd6acb4e1f3dc2c2.json deleted file mode 100644 index 86023905..00000000 --- a/node_modules/.cache/babel-loader/2430335027c4972bdd6acb4e1f3dc2c2.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 226,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 227,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 228,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 24\n }\n }, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 237,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 238,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 240,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 241,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n logout: this.logout,\n submit: this.submit,\n login: this.login,\n isLoggedIn: this.state.isAuthenticated,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 11\n }\n }), mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","isNavbar","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,S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,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAEhF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAHe,eAMf;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CANe,eASf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QATe,CAAjB;AAcA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAe,QAAA,MAAM,EAAE,KAAK8B,MAA5B;AAAoC,QAAA,MAAM,EAAE,KAAKE,MAAjD;AAAyD,QAAA,KAAK,EAAE,KAAKH,KAArE;AAA4E,QAAA,UAAU,EAAE,KAAKrB,KAAL,CAAWE,eAAnG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,EAGIuE,QAHJ,CAFF;AAUH;;;;EAjPe7F,S;;AAmPlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n \n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n \n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n \n \n {mainBody}\n \n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/245b1e8ee5ba77dd9fc7361925da0dc7.json b/node_modules/.cache/babel-loader/245b1e8ee5ba77dd9fc7361925da0dc7.json deleted file mode 100644 index 52cc310a..00000000 --- a/node_modules/.cache/babel-loader/245b1e8ee5ba77dd9fc7361925da0dc7.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nvar Styles = styled.div(_templateObject());\nexport var Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 5\n }\n }, \"const options = this.state.isAuthenticated ?\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 28\n }\n }, \"Tasks\")))), \":\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 18\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 18\n }\n })), /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 53,\n columnNumber: 9\n }\n }))));\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","Styles","div","Navigationbar","textDecoration"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,IAAMC,MAAM,GAAGD,MAAM,CAACE,GAAV,mBAAZ;AAiBA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;AAAA,sBAC3B,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD;AAAQ,IAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kEAGc;AAAK,IAAA,EAAE,EAAC,QAAR;AAAiB,IAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEC,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,UAAnD;AAA8D,IAAA,EAAE,EAAC,WAAjE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBADJ,CADF,eAOE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,QAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aADJ,CAPF,CADH,CAHd,oBAqBa;AAAK,IAAA,EAAE,EAAC,QAAR;AAAiB,IAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IADA,CArBb,eA4BE,oBAAC,MAAD,CAAQ,QAAR;AAAiB,IAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,GAAD;AAAK,IAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IADF,CA5BF,CADF,CAD2B;AAAA,CAAtB","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nexport const Navigationbar = () => (\n \n \n const options = this.state.isAuthenticated ? \n \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n \n
\n
\n :\n
\n
    \n\n
\n
\n \n \n \n \n \n
\n
\n)"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/24b7363fb03c727ce9c0b2bbd1ab9f4e.json b/node_modules/.cache/babel-loader/24b7363fb03c727ce9c0b2bbd1ab9f4e.json deleted file mode 100644 index 986bc23b..00000000 --- a/node_modules/.cache/babel-loader/24b7363fb03c727ce9c0b2bbd1ab9f4e.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = function Navigationbar() {\n var navbar_options = /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 25\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 28\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 28\n }\n }, \"Simulator\"))))))));\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 64,\n columnNumber: 5\n }\n }, _this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"navbar_options\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 66,\n columnNumber: 9\n }\n }) : null);\n};\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","navbar_options","textDecoration","state","isAuthenticated"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;AAkBA,IAAMC,aAAa,GAAG,SAAhBA,aAAgB,GAAM;AAC1B,MAAMC,cAAc,gBAClB,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACA,oBAAC,MAAD;AAAQ,IAAA,MAAM,EAAC,IAAf;AAAA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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aADJ,CAPF,eAYE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,GAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CAZF,CADH,CANV,CADJ,CADA,CADA,CADF;AAoCA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACI,KAAI,CAACC,KAAL,CAAWC,eAAX,gBACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IADA,GAIF,IALF,CADF;AAUD,CA/CD;;AAgDA,eAAeJ,aAAf","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nconst Navigationbar = () => {\n const navbar_options = (\n \n \n \n \n \n \n \n );\n return (\n
\n { this.state.isAuthenticated ? (\n \n )\n :\n null\n }\n
\n );\n};\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/25ad8fa7166624dfcc188445f48d1102.json b/node_modules/.cache/babel-loader/25ad8fa7166624dfcc188445f48d1102.json deleted file mode 100644 index 63a39ea6..00000000 --- a/node_modules/.cache/babel-loader/25ad8fa7166624dfcc188445f48d1102.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = function Navigationbar() {\n var navbar_options = _this.state.isAuthenticated ? /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 29\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 31\n }\n }, \"Simulator\")))))))) : null;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"Navigationbar\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 67,\n columnNumber: 5\n }\n }, navbar_options);\n};\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","navbar_options","state","isAuthenticated","textDecoration"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;AAkBA,IAAMC,aAAa,GAAG,SAAhBA,aAAgB,GAAM;AAC1B,MAAMC,cAAc,GAAG,KAAI,CAACC,KAAL,CAAWC,eAAX,gBACrB,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD;AAAQ,IAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD,CAAQ,QAAR;AAAiB,IAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,GAAD;AAAK,IAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACU;AAAK,IAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI;AAAG,IAAA,KAAK,EAAC,OAAT;AAAiB,IAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE;AAAK,IAAA,KAAK,EAAC,MAAX;AAAkB,IAAA,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eD,aAAf","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nconst Navigationbar = () => {\n const navbar_options = this.state.isAuthenticated ? (\n \n \n \n \n \n \n \n )\n :(\n null\n )\n return (\n
\n { navbar_options }\n
\n )\n};\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/e26588f1d0a407676db2c2f5937e431e.json b/node_modules/.cache/babel-loader/25e348aff1b3ca3fcfd97deb7cef86a8.json similarity index 100% rename from node_modules/.cache/babel-loader/e26588f1d0a407676db2c2f5937e431e.json rename to node_modules/.cache/babel-loader/25e348aff1b3ca3fcfd97deb7cef86a8.json diff --git a/node_modules/.cache/babel-loader/bdf7ff0bcec163d363635013f92a9b1e.json b/node_modules/.cache/babel-loader/2633db245fbbda44f34c9fc44263bdee.json similarity index 100% rename from node_modules/.cache/babel-loader/bdf7ff0bcec163d363635013f92a9b1e.json rename to node_modules/.cache/babel-loader/2633db245fbbda44f34c9fc44263bdee.json diff --git a/node_modules/.cache/babel-loader/cc9e1d10655d7a66fd787fbeb8c1c11c.json b/node_modules/.cache/babel-loader/269a72f1094f2c0110166cab8f213246.json similarity index 100% rename from node_modules/.cache/babel-loader/cc9e1d10655d7a66fd787fbeb8c1c11c.json rename to node_modules/.cache/babel-loader/269a72f1094f2c0110166cab8f213246.json diff --git a/node_modules/.cache/babel-loader/a5cf0c44436319c616db47b3d18d12db.json b/node_modules/.cache/babel-loader/26c0cd987cc21e7ddc54cb39e4c0aa80.json similarity index 100% rename from node_modules/.cache/babel-loader/a5cf0c44436319c616db47b3d18d12db.json rename to node_modules/.cache/babel-loader/26c0cd987cc21e7ddc54cb39e4c0aa80.json diff --git a/node_modules/.cache/babel-loader/08bd07d682b335a2e1bb7ec02771e7ff.json b/node_modules/.cache/babel-loader/278d65d096f1f8756c35c59b6b884930.json similarity index 100% rename from node_modules/.cache/babel-loader/08bd07d682b335a2e1bb7ec02771e7ff.json rename to node_modules/.cache/babel-loader/278d65d096f1f8756c35c59b6b884930.json diff --git a/node_modules/.cache/babel-loader/27f1f35662c8ca8dc68b7a096840d5a4.json b/node_modules/.cache/babel-loader/27f1f35662c8ca8dc68b7a096840d5a4.json deleted file mode 100644 index 3414d6cc..00000000 --- a/node_modules/.cache/babel-loader/27f1f35662c8ca8dc68b7a096840d5a4.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = function Navigationbar() {\n var navbar_options = _this.state.isAuthenticated ? /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 29\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 31\n }\n }, \"Simulator\")))))))) : null;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 67,\n columnNumber: 5\n }\n }, _this.state.isAuthenticated ? {\n navbar_options: navbar_options\n } : null);\n};\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","navbar_options","state","isAuthenticated","textDecoration"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;AAkBA,IAAMC,aAAa,GAAG,SAAhBA,aAAgB,GAAM;AAC1B,MAAMC,cAAc,GAAG,KAAI,CAACC,KAAL,CAAWC,eAAX,gBACrB,oBAAC,MAAD;AAAA;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EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,QAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aADJ,CAPF,eAYE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,GAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CAZF,CADF,CANV,CADJ,CADF,CADF,CADqB,GAqCvB,IArCA;AAuCA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACI,KAAI,CAACF,KAAL,CAAWC,eAAX,GACA;AAAEF,IAAAA,cAAc,EAAdA;AAAF,GADA,GAIF,IALF,CADF;AAUD,CAlDD;;AAmDA,eAAeD,aAAf","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nconst Navigationbar = () => {\n const navbar_options = this.state.isAuthenticated ? (\n \n \n \n \n \n \n \n )\n :(\n null\n )\n return (\n
\n { this.state.isAuthenticated ? (\n { navbar_options }\n )\n :\n null\n }\n
\n )\n};\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/afe2638e63f28c6f481c7aaed03ae237.json b/node_modules/.cache/babel-loader/280d550dc0ea27208d5724246502ac8e.json similarity index 100% rename from node_modules/.cache/babel-loader/afe2638e63f28c6f481c7aaed03ae237.json rename to node_modules/.cache/babel-loader/280d550dc0ea27208d5724246502ac8e.json diff --git a/node_modules/.cache/babel-loader/287760b7b9b6284151be9331b58d2606.json b/node_modules/.cache/babel-loader/287760b7b9b6284151be9331b58d2606.json deleted file mode 100644 index 94066436..00000000 --- a/node_modules/.cache/babel-loader/287760b7b9b6284151be9331b58d2606.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 218,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"script\", {\n type: \"text/javascript\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 219,\n columnNumber: 5\n }\n }, \" const options = this.state.isAuthenticated ?\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 31\n }\n }, \"Logout\")))), \":\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, \"Login\"))))), \"const simulator = this.state.isAuthenticated ?\", /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 249,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))), \" : null\", /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 275,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","mainBody","textDecoration"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE;AAJF,KAOU;AAAA,QAETC,OAFS,GAEEP,KAFF,CAETO,OAFS;AAGhBC,IAAAA,OAAO,CA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A;AAAA;AAAA;AAAA;AAAA,4BAL5B,CAFF,CA1BO,0BAwCb;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAEb,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAxCa,eA4Cb;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CA5Ca,eAgDb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAhDa,CAAjB;AAuDE,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACI+E,QADJ,CAFF;AAOH;;;;EAvQe1F,S;;AAyQlB,eAAeI,UAAU,CAACQ,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const mainBody =
\n \n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/e1610f4ae4d2ddd6b27f3a3cd3322ee8.json b/node_modules/.cache/babel-loader/28907966a43aac3f603312f556c551d0.json similarity index 100% rename from node_modules/.cache/babel-loader/e1610f4ae4d2ddd6b27f3a3cd3322ee8.json rename to node_modules/.cache/babel-loader/28907966a43aac3f603312f556c551d0.json diff --git a/node_modules/.cache/babel-loader/8f0b98523c780c1b3f8e991d6c8bd7d9.json b/node_modules/.cache/babel-loader/28d02980e27d8ecb1b7c1c8fcf9a5f3b.json similarity index 100% rename from node_modules/.cache/babel-loader/8f0b98523c780c1b3f8e991d6c8bd7d9.json rename to node_modules/.cache/babel-loader/28d02980e27d8ecb1b7c1c8fcf9a5f3b.json diff --git a/node_modules/.cache/babel-loader/ed075bcd529723e9f41238be8c1d7398.json b/node_modules/.cache/babel-loader/28f844c46dc7b1af8c43d90900da238b.json similarity index 100% rename from node_modules/.cache/babel-loader/ed075bcd529723e9f41238be8c1d7398.json rename to node_modules/.cache/babel-loader/28f844c46dc7b1af8c43d90900da238b.json diff --git a/node_modules/.cache/babel-loader/29206e8065d98e36564c84446308cbb0.json b/node_modules/.cache/babel-loader/29206e8065d98e36564c84446308cbb0.json deleted file mode 100644 index ee7cd8e6..00000000 --- a/node_modules/.cache/babel-loader/29206e8065d98e36564c84446308cbb0.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n var url = \"http://localhost\"; //window.location.href = \"http://localhost:3000/simulator\";\n\n this.simulatorWindow = window.open(url + \":8888\", '_blank');\n this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 218,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 219,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 226,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 227,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 240,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 241,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 242,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 253,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 19\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 267,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 276,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 277,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 280,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 281,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 284,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 292,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","url","open","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,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import Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n const url = \"http://localhost\";\n //window.location.href = \"http://localhost:3000/simulator\";\n this.simulatorWindow = window.open(url + \":8888\", '_blank');\n this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n
\n {mainBody}\n
\n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/e8e2a75f20cdba3b4591a020faed3a6e.json b/node_modules/.cache/babel-loader/2936c0c47f06b4ae2b1b67d359e3f4e7.json similarity index 100% rename from node_modules/.cache/babel-loader/e8e2a75f20cdba3b4591a020faed3a6e.json rename to node_modules/.cache/babel-loader/2936c0c47f06b4ae2b1b67d359e3f4e7.json diff --git a/node_modules/.cache/babel-loader/bd1f479a58192995fca9ca303e9ad662.json b/node_modules/.cache/babel-loader/297547496c045b1725ea3557c15b3ca1.json similarity index 100% rename from node_modules/.cache/babel-loader/bd1f479a58192995fca9ca303e9ad662.json rename to node_modules/.cache/babel-loader/297547496c045b1725ea3557c15b3ca1.json diff --git a/node_modules/.cache/babel-loader/299585b78b47a619f8d91da0f5d8e1d5.json b/node_modules/.cache/babel-loader/299585b78b47a619f8d91da0f5d8e1d5.json deleted file mode 100644 index fc992724..00000000 --- a/node_modules/.cache/babel-loader/299585b78b47a619f8d91da0f5d8e1d5.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 17\n }\n }), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 226,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 227,\n columnNumber: 19\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 237,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 238,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 239,\n columnNumber: 19\n }\n }, \"Login\")))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 248,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 253,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 254,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 264,\n columnNumber: 16\n }\n }))), options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 272,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 273,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 275,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 282,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"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GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACG;AAAK,QAAA,KAAK,EAAC,MAAX;AAAkB,QAAA,GAAG,EAAEnF,MAAvB;AAA+B,QAAA,KAAK,EAAE,MAAtC;AAA8C,QAAA,MAAM,EAAE,MAAtD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADH,CADJ,CADe,EAMdgF,OANc,EAOdE,SAPc,eAQf;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAEjF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CARe,eAWf;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAXe,eAcf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAde,CAAjB;AAmBA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIkF,QADJ,CAFF;AAOH;;;;EA9Qe9F,S;;AAgRlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n\n
\n \n
    \n \n \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n \n
\n
    \n
  • \n \n Login\n \n \n
  • \n
\n
\n
\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n
\n \n \n \n
\n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/293442577539a00cb7a0ab4125716b75.json b/node_modules/.cache/babel-loader/29a0630964561866a0e647ca1b02a537.json similarity index 100% rename from node_modules/.cache/babel-loader/293442577539a00cb7a0ab4125716b75.json rename to node_modules/.cache/babel-loader/29a0630964561866a0e647ca1b02a537.json diff --git a/node_modules/.cache/babel-loader/1bc35a30d0d8853e320a53294503f76a.json b/node_modules/.cache/babel-loader/29b5fc87400adb72c9faea113d680f60.json similarity index 100% rename from node_modules/.cache/babel-loader/1bc35a30d0d8853e320a53294503f76a.json rename to node_modules/.cache/babel-loader/29b5fc87400adb72c9faea113d680f60.json diff --git a/node_modules/.cache/babel-loader/49388dddc1b9496bcc11b76a56966080.json b/node_modules/.cache/babel-loader/29f5c01ed305690a4afed56345894106.json similarity index 100% rename from node_modules/.cache/babel-loader/49388dddc1b9496bcc11b76a56966080.json rename to node_modules/.cache/babel-loader/29f5c01ed305690a4afed56345894106.json diff --git a/node_modules/.cache/babel-loader/29fdc65955005a776d00cd8282e42083.json b/node_modules/.cache/babel-loader/29fdc65955005a776d00cd8282e42083.json deleted file mode 100644 index 5bbfdead..00000000 --- a/node_modules/.cache/babel-loader/29fdc65955005a776d00cd8282e42083.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 226,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 227,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 228,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 24\n }\n }, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 237,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 238,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 240,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 241,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n isLoggedIn: this.state.isAuthenticated,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 11\n }\n }), /*#__PURE__*/React.createElement(Navigationbar, {\n islogout: this.logout,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 252,\n columnNumber: 11\n }\n }), mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","isNavbar","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,aAAP,MAA2B,iBAA3B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MA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AAA,QADJ,CAHe,eAMf;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CANe,eASf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QATe,CAAjB;AAcA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAe,QAAA,UAAU,EAAE,KAAKQ,KAAL,CAAWE,eAAtC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,eAEE,oBAAC,aAAD;AAAe,QAAA,QAAQ,EAAE,KAAKoB,MAA9B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAFF,EAGImD,QAHJ,CAFF;AAUH;;;;EAjPe7F,S;;AAmPlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n \n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n \n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n \n \n {mainBody}\n \n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/1b7990983ad915aaa36b99c3aad5ba07.json b/node_modules/.cache/babel-loader/2a14f9b505e5309b20882350d38c74ed.json similarity index 100% rename from node_modules/.cache/babel-loader/1b7990983ad915aaa36b99c3aad5ba07.json rename to node_modules/.cache/babel-loader/2a14f9b505e5309b20882350d38c74ed.json diff --git a/node_modules/.cache/babel-loader/76041676e502fe040122192c11dae874.json b/node_modules/.cache/babel-loader/2a4e8f0ac810a577d265f5071ec66a75.json similarity index 100% rename from node_modules/.cache/babel-loader/76041676e502fe040122192c11dae874.json rename to node_modules/.cache/babel-loader/2a4e8f0ac810a577d265f5071ec66a75.json diff --git a/node_modules/.cache/babel-loader/2a637f85648ba054ed9893ce678c1879.json b/node_modules/.cache/babel-loader/2a637f85648ba054ed9893ce678c1879.json deleted file mode 100644 index 13840a5c..00000000 --- a/node_modules/.cache/babel-loader/2a637f85648ba054ed9893ce678c1879.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport Navigationbar from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(\"switch\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 23\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 23\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 23\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 23\n }\n }))));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,OAAOC,aAAP,MAA2B,4BAA3B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACU,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,eAEM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAGA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEL,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHA,eAIA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJA,eAKA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALA,eAMA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEL,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANA,CAFN,CADV,CADF;AAgBD;;;;EAlBmBN,S;;AAqBtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport Navigationbar from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() { \n return ( \n \n \n \n \n {/* \n */} \n \n \n \n \n \n \n \n \n )\n };\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/f9f525cc495a098aed7d4dd36e6a8cf9.json b/node_modules/.cache/babel-loader/2abbb4ff32ceeb1af976d20ed4ff9acb.json similarity index 100% rename from node_modules/.cache/babel-loader/f9f525cc495a098aed7d4dd36e6a8cf9.json rename to node_modules/.cache/babel-loader/2abbb4ff32ceeb1af976d20ed4ff9acb.json diff --git a/node_modules/.cache/babel-loader/2acaf87b6cf0a907ac75d2aec978ae01.json b/node_modules/.cache/babel-loader/2acaf87b6cf0a907ac75d2aec978ae01.json deleted file mode 100644 index fbc81714..00000000 --- a/node_modules/.cache/babel-loader/2acaf87b6cf0a907ac75d2aec978ae01.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _jsxFileName = \"/home/riddhi/frontend/src/index.js\";\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport './index.css';\nimport * as serviceWorker from './serviceWorker';\nimport Routing from './Routing';\nimport Navigationbar from './components/Navigationbar';\nReactDOM.render( /*#__PURE__*/React.createElement(BrowserRouter, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 10,\n columnNumber: 5\n }\n}, /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 11,\n columnNumber: 5\n }\n}, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 12,\n columnNumber: 5\n }\n}), /*#__PURE__*/React.createElement(Routing, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 13,\n columnNumber: 5\n }\n}))), document.getElementById('root')); //ReactDOM.render(, document.getElementById('root'));\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\n\nserviceWorker.unregister();","map":{"version":3,"sources":["/home/riddhi/frontend/src/index.js"],"names":["React","ReactDOM","NavLink","Switch","BrowserRouter","Router","Route","serviceWorker","Routing","Navigationbar","render","document","getElementById","unregister"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,QAAP,MAAqB,WAArB;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAO,aAAP;AACA,OAAO,KAAKC,aAAZ,MAA+B,iBAA/B;AACA,OAAOC,OAAP,MAAoB,WAApB;AACA,OAAOC,aAAP,MAA0B,4BAA1B;AAEAR,QAAQ,CAACS,MAAT,eACI,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBACA,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EADA,eAEA,oBAAC,OAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAFA,CADA,CADJ,EAOMC,QAAQ,CAACC,cAAT,CAAwB,MAAxB,CAPN,E,CAQA;AAGA;AACA;AACA;;AACAL,aAAa,CAACM,UAAd","sourcesContent":["import React from 'react';\nimport ReactDOM from 'react-dom';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport './index.css';\nimport * as serviceWorker from './serviceWorker';\nimport Routing from './Routing';\nimport Navigationbar from './components/Navigationbar';\n\nReactDOM.render(\n \n
\n \n \n
\n
\n , document.getElementById('root'));\n//ReactDOM.render(, document.getElementById('root'));\n\n\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\nserviceWorker.unregister();"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/3ad22e64c158124ef5634e1f7cc5ca2b.json b/node_modules/.cache/babel-loader/2ae9390cfb00db617d42fcd8ad17c174.json similarity index 100% rename from node_modules/.cache/babel-loader/3ad22e64c158124ef5634e1f7cc5ca2b.json rename to node_modules/.cache/babel-loader/2ae9390cfb00db617d42fcd8ad17c174.json diff --git a/node_modules/.cache/babel-loader/2afb85ec84b099c8b0ef381ef72e241c.json b/node_modules/.cache/babel-loader/2afb85ec84b099c8b0ef381ef72e241c.json deleted file mode 100644 index 582b456f..00000000 --- a/node_modules/.cache/babel-loader/2afb85ec84b099c8b0ef381ef72e241c.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/progress-bar.js\";\n\nimport React from 'react';\nimport Filler from './filler';\nimport Navigationbar from './Navigationbar';\nimport './progress-bar.css';\n\nvar ProgressBar = function ProgressBar(props) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"progress-bar\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 8,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Filler, {\n percentage: props.percentage,\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 10,\n columnNumber: 13\n }\n }));\n};\n\nexport default ProgressBar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/progress-bar.js"],"names":["React","Filler","Navigationbar","ProgressBar","props","percentage"],"mappings":";;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,MAAP,MAAmB,UAAnB;AACA,OAAOC,aAAP,MAA0B,iBAA1B;AACA,OAAO,oBAAP;;AAEA,IAAMC,WAAW,GAAG,SAAdA,WAAc,CAACC,KAAD,EAAW;AAC3B,sBACI;AAAK,IAAA,SAAS,EAAC,cAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAEI,oBAAC,MAAD;AAAQ,IAAA,UAAU,EAAEA,KAAK,CAACC,UAA1B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAFJ,CADJ;AAMH,CAPD;;AASA,eAAeF,WAAf","sourcesContent":["import React from 'react';\nimport Filler from './filler';\nimport Navigationbar from './Navigationbar';\nimport './progress-bar.css';\n\nconst ProgressBar = (props) => {\n return (\n
\n \n \n
\n )\n}\n\nexport default ProgressBar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/3d7941c337c028cbe7d85643e8cd128f.json b/node_modules/.cache/babel-loader/2b04f81034bbb6a7ca4318d0cbf2ae1d.json similarity index 100% rename from node_modules/.cache/babel-loader/3d7941c337c028cbe7d85643e8cd128f.json rename to node_modules/.cache/babel-loader/2b04f81034bbb6a7ca4318d0cbf2ae1d.json diff --git a/node_modules/.cache/babel-loader/2ba60e10e30e5df74e7d77c67cff673c.json b/node_modules/.cache/babel-loader/2ba60e10e30e5df74e7d77c67cff673c.json deleted file mode 100644 index 3297faec..00000000 --- a/node_modules/.cache/babel-loader/2ba60e10e30e5df74e7d77c67cff673c.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = function Navigationbar() {\n var options = _this.state.isAuthenticated ? /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 25\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 48,\n columnNumber: 28\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 53,\n columnNumber: 28\n }\n }, \"Simulator\")))))))) : null;\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","options","state","isAuthenticated","textDecoration"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;AAkBA,IAAMC,aAAa,GAAG,SAAhBA,aAAgB,GAAM;AAG1B,MAAMC,OAAO,GAAG,KAAI,CAACC,KAAL,CAAWC,eAAX,gBAChB,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD;AAAQ,IAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACA,oBAAC,MAAD,CAAQ,QAAR;AAAiB,IAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,GAAD;AAAK,IAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACU;AAAK,IAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAA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,CADH,CANV,CADJ,CADA,CADF,CADgB,GAoChB,IApCA;AAsCD,CAzCD","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nconst Navigationbar = () => {\n \n\n const options = this.state.isAuthenticated ?\n \n \n \n \n \n \n \n :\n null\n\n}"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/5251b89a2df3f3cb899c142f30e006f7.json b/node_modules/.cache/babel-loader/2bab53ac894c568dbe08dc9802f1d93e.json similarity index 100% rename from node_modules/.cache/babel-loader/5251b89a2df3f3cb899c142f30e006f7.json rename to node_modules/.cache/babel-loader/2bab53ac894c568dbe08dc9802f1d93e.json diff --git a/node_modules/.cache/babel-loader/860bf0e88d1ece0248fb8ce1805d5dde.json b/node_modules/.cache/babel-loader/2bad071f9f1d139d9f127601e53a398d.json similarity index 100% rename from node_modules/.cache/babel-loader/860bf0e88d1ece0248fb8ce1805d5dde.json rename to node_modules/.cache/babel-loader/2bad071f9f1d139d9f127601e53a398d.json diff --git a/node_modules/.cache/babel-loader/da3cc3b1817eeabd1c3a4d9c0872f9e1.json b/node_modules/.cache/babel-loader/2bc606c41964a4bbfd2107f0fd6636ae.json similarity index 100% rename from node_modules/.cache/babel-loader/da3cc3b1817eeabd1c3a4d9c0872f9e1.json rename to node_modules/.cache/babel-loader/2bc606c41964a4bbfd2107f0fd6636ae.json diff --git a/node_modules/.cache/babel-loader/89e0afba0f5c7d1b4065698e944d8621.json b/node_modules/.cache/babel-loader/2be51796bc4cf98251849c75c8209838.json similarity index 100% rename from node_modules/.cache/babel-loader/89e0afba0f5c7d1b4065698e944d8621.json rename to node_modules/.cache/babel-loader/2be51796bc4cf98251849c75c8209838.json diff --git a/node_modules/.cache/babel-loader/44f52f9e473f6ef959325bc61fd44180.json b/node_modules/.cache/babel-loader/2beaf9b60c5b8c9d0607ee55854dcff9.json similarity index 100% rename from node_modules/.cache/babel-loader/44f52f9e473f6ef959325bc61fd44180.json rename to node_modules/.cache/babel-loader/2beaf9b60c5b8c9d0607ee55854dcff9.json diff --git a/node_modules/.cache/babel-loader/e87c00b68a5536d9f9d829983ba475f2.json b/node_modules/.cache/babel-loader/2c9e5a8a6e72439e0cface1195778202.json similarity index 100% rename from node_modules/.cache/babel-loader/e87c00b68a5536d9f9d829983ba475f2.json rename to node_modules/.cache/babel-loader/2c9e5a8a6e72439e0cface1195778202.json diff --git a/node_modules/.cache/babel-loader/e0e7583eb63911f7f8761f997424a066.json b/node_modules/.cache/babel-loader/2d0bf6eea5611fdb307dd55c560c2102.json similarity index 100% rename from node_modules/.cache/babel-loader/e0e7583eb63911f7f8761f997424a066.json rename to node_modules/.cache/babel-loader/2d0bf6eea5611fdb307dd55c560c2102.json diff --git a/node_modules/.cache/babel-loader/2d252c931457ecdb3c13835d5bd8cbf1.json b/node_modules/.cache/babel-loader/2d252c931457ecdb3c13835d5bd8cbf1.json deleted file mode 100644 index 45639b9a..00000000 --- a/node_modules/.cache/babel-loader/2d252c931457ecdb3c13835d5bd8cbf1.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nvar Styles = styled.div(_templateObject());\nexport var Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 28\n }\n }, \"Tasks\")))), \":\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 18\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 48,\n columnNumber: 18\n }\n }))))));\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","Styles","div","Navigationbar","textDecoration"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,IAAMC,MAAM,GAAGD,MAAM,CAACE,GAAV,mBAAZ;AAiBA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;AAAA,sBAC3B,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD;AAAQ,IAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACA,oBAAC,MAAD,CAAQ,QAAR;AAAiB,IAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,GAAD;AAAK,IAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAGU;AAAK,IAAA,EAAE,EAAC,QAAR;AAAiB,IAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEC,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,UAAnD;AAA8D,IAAA,EAAE,EAAC,WAAjE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBADJ,CADF,eAOE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,QAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aADJ,CAPF,CADH,CAHV,oBAqBS;AAAK,IAAA,EAAE,EAAC,QAAR;AAAiB,IAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IADA,CArBT,CADJ,CADA,CADF,CAD2B;AAAA,CAAtB","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nexport const Navigationbar = () => (\n \n \n \n \n \n \n \n)"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/2d4a34b6f85228825621808bdd76088a.json b/node_modules/.cache/babel-loader/2d4a34b6f85228825621808bdd76088a.json deleted file mode 100644 index 83a80799..00000000 --- a/node_modules/.cache/babel-loader/2d4a34b6f85228825621808bdd76088a.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\nexport var Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 28\n }\n }, \"Tasks\"))))))));\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","textDecoration"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;AAiBA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;AAAA,sBAC3B,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD;AAAQ,IAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACA,oBAAC,MAAD,CAAQ,QAAR;AAAiB,IAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,GAAD;AAAK,IAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAGU;AAAK,IAAA,EAAE,EAAC,QAAR;AAAiB,IAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEC,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,UAAnD;AAA8D,IAAA,EAAE,EAAC,WAAjE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBADJ,CADF,eAOE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,QAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aADJ,CAPF,CADH,CAHV,CADJ,CADA,CADF,CAD2B;AAAA,CAAtB","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nexport const Navigationbar = () => (\n \n \n \n \n \n \n \n)"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/2b6c4bc3d07ed4eb86b57717b5a8b79b.json b/node_modules/.cache/babel-loader/2d5a1bdb7b0247705f1ab1a1b31563c5.json similarity index 100% rename from node_modules/.cache/babel-loader/2b6c4bc3d07ed4eb86b57717b5a8b79b.json rename to node_modules/.cache/babel-loader/2d5a1bdb7b0247705f1ab1a1b31563c5.json diff --git a/node_modules/.cache/babel-loader/319e2100dbf0f8291d7572eca8d6c410.json b/node_modules/.cache/babel-loader/2d5bd9860538210d82250103bfb61c04.json similarity index 100% rename from node_modules/.cache/babel-loader/319e2100dbf0f8291d7572eca8d6c410.json rename to node_modules/.cache/babel-loader/2d5bd9860538210d82250103bfb61c04.json diff --git a/node_modules/.cache/babel-loader/2d8e87fb26f19b58ce99457747859124.json b/node_modules/.cache/babel-loader/2d8e87fb26f19b58ce99457747859124.json deleted file mode 100644 index 4e454f52..00000000 --- a/node_modules/.cache/babel-loader/2d8e87fb26f19b58ce99457747859124.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 229,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 230,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 256,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 272,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 280,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 283,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 284,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 287,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(React.Fragment, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 295,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 296,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(NavigationBar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 297,\n columnNumber: 5\n }\n })));\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,OAAOC,aAAP,MAA0B,iBAA1B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAC/C,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAwC;;AACxC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;I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AIKgF,OAJL,CADa,EAQZE,SARY,eAUb;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAEjF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAVa,eAcb;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAda,eAkBb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAlBa,CAAjB;AAyBE,0BACE,oBAAC,KAAD,CAAO,QAAP;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACN,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CADM,CADF;AAUH;;;;EA9ReZ,S;;AAgSlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n \n \n \n \n \n \n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/ca628434b540c18d8910d3da364ce5c2.json b/node_modules/.cache/babel-loader/2dd885bd34367a84227977e8ac11e126.json similarity index 100% rename from node_modules/.cache/babel-loader/ca628434b540c18d8910d3da364ce5c2.json rename to node_modules/.cache/babel-loader/2dd885bd34367a84227977e8ac11e126.json diff --git a/node_modules/.cache/babel-loader/2e54a7cd2e782a71482c08f116147d38.json b/node_modules/.cache/babel-loader/2e54a7cd2e782a71482c08f116147d38.json deleted file mode 100644 index 286031db..00000000 --- a/node_modules/.cache/babel-loader/2e54a7cd2e782a71482c08f116147d38.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 225,\n columnNumber: 16\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 237,\n columnNumber: 19\n }\n }, \"Login\")))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 248,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 252,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 253,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 24\n }\n }, options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 275,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","isNavbar","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AASJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UARlBC,KAQkB,GARV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE,KAJF;AAKNC,MAAAA,QAAQ,EAAE;AALJ,KAQU;AAAA,QAETC,OAFS,GAEER,KAFF,CAETQ,OAFS;AAGhBC,IAAAA,OAAO,CAACC,GAAR,CAAYF,O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KAAKL,KAAL,CAAWK,MAAX,iBAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAL5B,CAFF,CADS,GAYL,IAZd;AAcE,UAAMsE,QAAQ,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACdH,OADc,EAEdE,SAFc,eAGf;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAElF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAHe,eAMf;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CANe,eASf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QATe,CAAjB;AAcA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACImF,QADJ,CAFF;AAOH;;;;EAvQe/F,S;;AAyQlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n \n
\n \n
    \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n \n
\n
    \n
  • \n \n Login\n \n \n
  • \n
\n
\n
\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/2e7013c7dade5f1249d7d256543fe542.json b/node_modules/.cache/babel-loader/2e7013c7dade5f1249d7d256543fe542.json deleted file mode 100644 index 111bf891..00000000 --- a/node_modules/.cache/babel-loader/2e7013c7dade5f1249d7d256543fe542.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n logout: this.submit,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 27\n }\n }))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 230,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 249,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 24\n }\n }, options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 264,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 267,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 274,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","isNavbar","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,aAAP,MAA2B,iBAA3B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,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p_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? (\n
\n
    \n \n \n\n
\n
\n ):(\n \n \n
\n \n
    \n
  • \n \n Login\n \n
  • \n
\n
\n \n )\n \n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n \n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n \n \n {mainBody}\n \n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/392d11fa79a747740f266d3ead7a9528.json b/node_modules/.cache/babel-loader/2e86d3fc937eb87a38c1215a20414fe6.json similarity index 100% rename from node_modules/.cache/babel-loader/392d11fa79a747740f266d3ead7a9528.json rename to node_modules/.cache/babel-loader/2e86d3fc937eb87a38c1215a20414fe6.json diff --git a/node_modules/.cache/babel-loader/174d48aef7cf3b68d5fb7069dd953561.json b/node_modules/.cache/babel-loader/2eba8077cbb944f10bda52177a6e3df7.json similarity index 100% rename from node_modules/.cache/babel-loader/174d48aef7cf3b68d5fb7069dd953561.json rename to node_modules/.cache/babel-loader/2eba8077cbb944f10bda52177a6e3df7.json diff --git a/node_modules/.cache/babel-loader/b34ff171134de19fb4266edface37716.json b/node_modules/.cache/babel-loader/2fa1d1aa3feeb50b264abb427754bbdd.json similarity index 100% rename from node_modules/.cache/babel-loader/b34ff171134de19fb4266edface37716.json rename to node_modules/.cache/babel-loader/2fa1d1aa3feeb50b264abb427754bbdd.json diff --git a/node_modules/.cache/babel-loader/8f31b89e01feedb3969a38bfbce056c1.json b/node_modules/.cache/babel-loader/2fa4e09b850c50bd604494bfd41acece.json similarity index 100% rename from node_modules/.cache/babel-loader/8f31b89e01feedb3969a38bfbce056c1.json rename to node_modules/.cache/babel-loader/2fa4e09b850c50bd604494bfd41acece.json diff --git a/node_modules/.cache/babel-loader/3009420674d7deeeb1f25f82832e3d85.json b/node_modules/.cache/babel-loader/3009420674d7deeeb1f25f82832e3d85.json deleted file mode 100644 index 3cf94052..00000000 --- a/node_modules/.cache/babel-loader/3009420674d7deeeb1f25f82832e3d85.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _jsxFileName = \"/home/riddhi/frontend/src/index.js\";\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport './index.css';\nimport * as serviceWorker from './serviceWorker';\nimport Routing from './Routing';\nimport Navigationbar from './components/Navigationbar';\nReactDOM.render( /*#__PURE__*/React.createElement(BrowserRouter, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 9,\n columnNumber: 5\n }\n}, /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 10,\n columnNumber: 5\n }\n}, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 11,\n columnNumber: 5\n }\n}), /*#__PURE__*/React.createElement(Routing, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 12,\n columnNumber: 5\n }\n}))), document.getElementById('root')); //ReactDOM.render(, document.getElementById('root'));\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\n\nserviceWorker.unregister();","map":{"version":3,"sources":["/home/riddhi/frontend/src/index.js"],"names":["React","ReactDOM","serviceWorker","Routing","Navigationbar","render","document","getElementById","unregister"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,QAAP,MAAqB,WAArB;AACA,OAAO,aAAP;AACA,OAAO,KAAKC,aAAZ,MAA+B,iBAA/B;AACA,OAAOC,OAAP,MAAoB,WAApB;AACA,OAAOC,aAAP,MAA0B,4BAA1B;AAEAH,QAAQ,CAACI,MAAT,eACI,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBACA,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EADA,eAEA,oBAAC,OAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAFA,CADA,CADJ,EAOMC,QAAQ,CAACC,cAAT,CAAwB,MAAxB,CAPN,E,CAQA;AAGA;AACA;AACA;;AACAL,aAAa,CAACM,UAAd","sourcesContent":["import React from 'react';\nimport ReactDOM from 'react-dom';\nimport './index.css';\nimport * as serviceWorker from './serviceWorker';\nimport Routing from './Routing';\nimport Navigationbar from './components/Navigationbar';\n\nReactDOM.render(\n \n
\n \n \n
\n
\n , document.getElementById('root'));\n//ReactDOM.render(, document.getElementById('root'));\n\n\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\nserviceWorker.unregister();"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/25c543a67d3a4cb282bfb2ceccc7c822.json b/node_modules/.cache/babel-loader/303359bdb5f6ab345971dbb7298ef256.json similarity index 100% rename from node_modules/.cache/babel-loader/25c543a67d3a4cb282bfb2ceccc7c822.json rename to node_modules/.cache/babel-loader/303359bdb5f6ab345971dbb7298ef256.json diff --git a/node_modules/.cache/babel-loader/ff811f298f51a944a8f7a8f9fe9c959e.json b/node_modules/.cache/babel-loader/30e4abc5e1c758181b1391a4d953f48a.json similarity index 100% rename from node_modules/.cache/babel-loader/ff811f298f51a944a8f7a8f9fe9c959e.json rename to node_modules/.cache/babel-loader/30e4abc5e1c758181b1391a4d953f48a.json diff --git a/node_modules/.cache/babel-loader/e366f999168cb5ca592a8543d02db3c2.json b/node_modules/.cache/babel-loader/31a50524d8e9592e9e34f1ea90586d2b.json similarity index 100% rename from node_modules/.cache/babel-loader/e366f999168cb5ca592a8543d02db3c2.json rename to node_modules/.cache/babel-loader/31a50524d8e9592e9e34f1ea90586d2b.json diff --git a/node_modules/.cache/babel-loader/4e35127e137a0839bbde776b31e9f2f5.json b/node_modules/.cache/babel-loader/3233b56f443e494937d6765714c4307a.json similarity index 100% rename from node_modules/.cache/babel-loader/4e35127e137a0839bbde776b31e9f2f5.json rename to node_modules/.cache/babel-loader/3233b56f443e494937d6765714c4307a.json diff --git a/node_modules/.cache/babel-loader/326d2c558165f54efb4ac1cf290e0792.json b/node_modules/.cache/babel-loader/326d2c558165f54efb4ac1cf290e0792.json deleted file mode 100644 index a480e729..00000000 --- a/node_modules/.cache/babel-loader/326d2c558165f54efb4ac1cf290e0792.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"right_side\",\n src: \"\",\n width: \"100%\",\n height: \"50%\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(\"a\", {\n href: \"somelink\",\n target: \"right_side\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 17\n }\n }, \" Home \"));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;AACA,OAAO,iBAAP;;IAEMC,S;;;;;;;;;;;;;;;UAKAC,K,GAAQ;AACNC,MAAAA,SAAS,EAAE,IADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,SAAS,EAAED;AAJL,K;;;;;;6BAQR;AACE,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAQ,QAAA,IAAI,EAAC,YAAb;AAA0B,QAAA,GAAG,EAAC,EAA9B;AAAiC,QAAA,KAAK,EAAC,MAAvC;AACJ,QAAA,MAAM,EAAC,KADH;AACS,QAAA,WAAW,EAAC,GADrB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,eAIM;AAAG,QAAA,IAAI,EAAC,UAAR;AAAmB,QAAA,MAAM,EAAC,YAA1B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAJN,CADF;AAWD;;;;EAzBiBf,S;;AAAlBU,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAET,UAAU,CAACD,OAAD,CAAV,CAAoBW;AADd,C;AA2BvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n \n \n Home \n\n \n \n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/60e17d24718e6e7ea8d5d8c4887355dd.json b/node_modules/.cache/babel-loader/328547e36411238b8445ae278408cb84.json similarity index 100% rename from node_modules/.cache/babel-loader/60e17d24718e6e7ea8d5d8c4887355dd.json rename to node_modules/.cache/babel-loader/328547e36411238b8445ae278408cb84.json diff --git a/node_modules/.cache/babel-loader/779ba18df4a8563ea3c9225e25ab1615.json b/node_modules/.cache/babel-loader/336d81415156b815da48d5275089606c.json similarity index 100% rename from node_modules/.cache/babel-loader/779ba18df4a8563ea3c9225e25ab1615.json rename to node_modules/.cache/babel-loader/336d81415156b815da48d5275089606c.json diff --git a/node_modules/.cache/babel-loader/c04ce42dc37ba24630936ffc77877a84.json b/node_modules/.cache/babel-loader/33a39c4e5567422e329e1ae82b4de375.json similarity index 100% rename from node_modules/.cache/babel-loader/c04ce42dc37ba24630936ffc77877a84.json rename to node_modules/.cache/babel-loader/33a39c4e5567422e329e1ae82b4de375.json diff --git a/node_modules/.cache/babel-loader/7263e42a32584460f5c6a5dbbe72a5a9.json b/node_modules/.cache/babel-loader/3427f32e4cb3f7dcc7f3ba446330af85.json similarity index 100% rename from node_modules/.cache/babel-loader/7263e42a32584460f5c6a5dbbe72a5a9.json rename to node_modules/.cache/babel-loader/3427f32e4cb3f7dcc7f3ba446330af85.json diff --git a/node_modules/.cache/babel-loader/349e84943f811c436fd420a5e81d5ba8.json b/node_modules/.cache/babel-loader/349e84943f811c436fd420a5e81d5ba8.json deleted file mode 100644 index 70eb345c..00000000 --- a/node_modules/.cache/babel-loader/349e84943f811c436fd420a5e81d5ba8.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/NavigationBar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #222; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #9FFFCB;\\n &:hover { color: white; }\\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #9FFFCB;\\n &:hover { color: white; }\\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nvar Styles = styled.div(_templateObject());\n\nvar NavigationBar = /*#__PURE__*/function (_Component) {\n _inherits(NavigationBar, _Component);\n\n function NavigationBar() {\n _classCallCheck(this, NavigationBar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(NavigationBar).apply(this, arguments));\n }\n\n _createClass(NavigationBar, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Brand, {\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 11\n }\n }, \"Tutorial\"), /*#__PURE__*/React.createElement(Navbar.Toggle, {\n \"aria-controls\": \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 11\n }\n }), /*#__PURE__*/React.createElement(Form, {\n className: \"form-center\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(FormControl, {\n type: \"text\",\n placeholder: \"Search\",\n className: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(Nav.Item, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 25\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(Nav.Item, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/about\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 25\n }\n }, \"Tasks\"))))));\n }\n }]);\n\n return NavigationBar;\n}(Component);\n\nexport default NavigationBar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/NavigationBar.js"],"names":["React","Nav","Navbar","Form","FormControl","styled","Styles","div","NavigationBar","Component"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,IAAMC,MAAM,GAAGD,MAAM,CAACE,GAAV,mBAAZ;;IAiBMC,a;;;;;;;;;;;6BACO;AACP,0BACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA,oBAAC,MAAD;AAAQ,QAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD,CAAQ,KAAR;AAAc,QAAA,IAAI,EAAC,GAAnB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBADF,eAEE,oBAAC,MAAD,CAAQ,MAAR;AAAe,yBAAc,kBAA7B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAFF,eAGE,oBAAC,IAAD;AAAM,QAAA,SAAS,EAAC,aAAhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,WAAD;AAAa,QAAA,IAAI,EAAC,MAAlB;AAAyB,QAAA,WAAW,EAAC,QAArC;AAA8C,QAAA,SAAS,EAAC,EAAxD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CAHF,eAME,oBAAC,MAAD,CAAQ,QAAR;AAAiB,QAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,GAAD;AAAK,QAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,GAAD,CAAK,IAAL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAU,oBAAC,GAAD,CAAK,IAAL;AAAU,QAAA,IAAI,EAAC,GAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAV,CADF,eAEE,oBAAC,GAAD,CAAK,IAAL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAU,oBAAC,GAAD,CAAK,IAAL;AAAU,QAAA,IAAI,EAAC,QAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAV,CAFF,CADF,CANF,CADA,CADF;AAiBD;;;;EAnBuBC,S;;AAsB5B,eAAeD,aAAf","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nconst Styles = styled.div`\n .navbar { background-color: #222; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #9FFFCB;\n &:hover { color: white; }\n }\n .navbar-brand {\n font-size: 1.4em;\n color: #9FFFCB;\n &:hover { color: white; }\n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nclass NavigationBar extends Component {\n render() {\n return (\n \n \n Tutorial\n \n
\n \n \n \n \n \n
\n
\n );\n }\n }\n \nexport default NavigationBar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/2e2a28712f7fecdc491ae740cb8198db.json b/node_modules/.cache/babel-loader/34af939a0186da6aa95123ec76330520.json similarity index 100% rename from node_modules/.cache/babel-loader/2e2a28712f7fecdc491ae740cb8198db.json rename to node_modules/.cache/babel-loader/34af939a0186da6aa95123ec76330520.json diff --git a/node_modules/.cache/babel-loader/bfb1a2368dd57da83a95bfc25f132cca.json b/node_modules/.cache/babel-loader/34f3e67325159b44de6e8cbe5f31d682.json similarity index 100% rename from node_modules/.cache/babel-loader/bfb1a2368dd57da83a95bfc25f132cca.json rename to node_modules/.cache/babel-loader/34f3e67325159b44de6e8cbe5f31d682.json diff --git a/node_modules/.cache/babel-loader/0499dcd129662ea20b4f3e1767cc402c.json b/node_modules/.cache/babel-loader/352331435ad7dcf97ac84912236732dc.json similarity index 100% rename from node_modules/.cache/babel-loader/0499dcd129662ea20b4f3e1767cc402c.json rename to node_modules/.cache/babel-loader/352331435ad7dcf97ac84912236732dc.json diff --git a/node_modules/.cache/babel-loader/35abb20c2c80747f21405a79586c4878.json b/node_modules/.cache/babel-loader/35abb20c2c80747f21405a79586c4878.json deleted file mode 100644 index d3a78d05..00000000 --- a/node_modules/.cache/babel-loader/35abb20c2c80747f21405a79586c4878.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 218,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"script\", {\n type: \"text/javascript\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 219,\n columnNumber: 5\n }\n }, \" const options = this.state.isAuthenticated ?\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 31\n }\n }, \"Logout\")))), \":\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, \"Login\"))))), \"const simulator = this.state.isAuthenticated ?\", /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 249,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))), \" : null\", /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 275,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","mainBody","textDecoration"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,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\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const mainBody =
\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/c60224a72b4f634d69ca53a456838e5b.json b/node_modules/.cache/babel-loader/3611af4c5a723edb1130a9b4308a6173.json similarity index 100% rename from node_modules/.cache/babel-loader/c60224a72b4f634d69ca53a456838e5b.json rename to node_modules/.cache/babel-loader/3611af4c5a723edb1130a9b4308a6173.json diff --git a/node_modules/.cache/babel-loader/364a668cb600c25d23e5482549ac1581.json b/node_modules/.cache/babel-loader/364a668cb600c25d23e5482549ac1581.json deleted file mode 100644 index 14c32a06..00000000 --- a/node_modules/.cache/babel-loader/364a668cb600c25d23e5482549ac1581.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Switch, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 15\n }\n })))));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,SAASC,aAAT,QAA8B,4BAA9B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAGE,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEN,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHF,eAIE,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEC,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJF,eAKE,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALF,eAME,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANF,CADF,CADF,CADF,CADF;AAgBD;;;;EAlBmBX,S;;AAqBtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() {\n return (\n \n \n
\n \n {/* \n */}\n \n \n \n \n \n
\n
\n
\n );\n }\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/3689a75da6d038282c7f048ef5d666e7.json b/node_modules/.cache/babel-loader/3689a75da6d038282c7f048ef5d666e7.json deleted file mode 100644 index 7ee6e113..00000000 --- a/node_modules/.cache/babel-loader/3689a75da6d038282c7f048ef5d666e7.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 226,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 227,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 228,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 24\n }\n }, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 237,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 238,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 240,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 241,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n iflogin: this.logout,\n iflogout: this.login,\n isLoggedIn: this.state.isAuthenticated,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 11\n }\n }), mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","isNavbar","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,aAAP,MAA2B,iBAA3B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cA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AAe,QAAA,OAAO,EAAE,KAAK8B,MAA7B;AAAqC,QAAA,QAAQ,EAAE,KAAKD,KAApD;AAA2D,QAAA,UAAU,EAAE,KAAKrB,KAAL,CAAWE,eAAlF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,EAGIuE,QAHJ,CAFF;AAUH;;;;EAjPe7F,S;;AAmPlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n \n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n \n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n \n \n {mainBody}\n \n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/36ff4149098a1515abb71dd8787eed34.json b/node_modules/.cache/babel-loader/36ff4149098a1515abb71dd8787eed34.json deleted file mode 100644 index 2e7ecb06..00000000 --- a/node_modules/.cache/babel-loader/36ff4149098a1515abb71dd8787eed34.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 226,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 227,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 228,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 24\n }\n }, options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 237,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 238,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 240,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 241,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n isLoggedIn: this.state.isAuthenticated,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 11\n }\n }), mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","isNavbar","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","simulator","mainBody","options"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,aAAP,MAA2B,iBAA3B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CA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AAAA;AAAA;AAAA;AAAA,QATe,CAAjB;AAcA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAe,QAAA,UAAU,EAAE,KAAKQ,KAAL,CAAWE,eAAtC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,EAEIuE,QAFJ,CAFF;AASH;;;;EAhPe7F,S;;AAkPlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n \n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n \n {mainBody}\n \n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/3701e17966c86954af9aeed0f8ca99ce.json b/node_modules/.cache/babel-loader/3701e17966c86954af9aeed0f8ca99ce.json deleted file mode 100644 index 04111b24..00000000 --- a/node_modules/.cache/babel-loader/3701e17966c86954af9aeed0f8ca99ce.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink, Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var isLoggedIn = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 7\n }\n }, isLoggedIn ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 41\n }\n }, \"Simulator\")))))) : null);\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","Link","styled","header","Styles","div","Navigationbar","isLoggedIn","props","textDecoration"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B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AAA,EAAE,EAAC,WAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBADJ,CAFJ,eAQI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,OAAhD;AAAwD,QAAA,EAAE,EAAC,QAA3D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CARJ,eAaI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,OAAhD;AAAwD,QAAA,EAAE,EAAC,GAA3D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADJ,CAbJ,CAJR,CANV,CADR,CADU,GAuCV,IAxCA,CADF;AAgDH;;;;EAnD2Bd,S;;AAqD5B,eAAeW,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink,Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const isLoggedIn = this.props.isLoggedIn;\n return (\n
\n { isLoggedIn ? \n \n \n \n \n :\n null\n }\n \n \n\n
\n); \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/671c50c5f4c754e9247531f27c1b9b8f.json b/node_modules/.cache/babel-loader/3716053f637477aa235d14676e3e4ddf.json similarity index 100% rename from node_modules/.cache/babel-loader/671c50c5f4c754e9247531f27c1b9b8f.json rename to node_modules/.cache/babel-loader/3716053f637477aa235d14676e3e4ddf.json diff --git a/node_modules/.cache/babel-loader/bfd6ff8823e2deee5bbd94c8599a7bbe.json b/node_modules/.cache/babel-loader/374121e5ac03afae6eafcdb97e62c2bb.json similarity index 100% rename from node_modules/.cache/babel-loader/bfd6ff8823e2deee5bbd94c8599a7bbe.json rename to node_modules/.cache/babel-loader/374121e5ac03afae6eafcdb97e62c2bb.json diff --git a/node_modules/.cache/babel-loader/37ae2153f6a0a136fd8425edd8e6fa25.json b/node_modules/.cache/babel-loader/37ae2153f6a0a136fd8425edd8e6fa25.json deleted file mode 100644 index 47db7eb3..00000000 --- a/node_modules/.cache/babel-loader/37ae2153f6a0a136fd8425edd8e6fa25.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 249,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 36\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 275,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,M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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAJ7B,EAKO,KAAKL,KAAL,CAAWK,MAAX,iBAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAL5B,CAFF,CADS,GAYL,IAZd;AAcc,UAAMqE,QAAQ,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAC3B;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAElF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAD2B,eAK3B;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAL2B,eAS3B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAT2B,CAAjB;AAgBZ,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIkF,QADJ,CAFF;AAOH;;;;EAvQe7F,S;;AAyQlB,eAAeI,UAAU,CAACQ,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n \n const options = this.state.isAuthenticated ? \n \n
\n
    \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n \n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/382355cefd649fb278a8fbdb034add8b.json b/node_modules/.cache/babel-loader/382355cefd649fb278a8fbdb034add8b.json deleted file mode 100644 index 3379e584..00000000 --- a/node_modules/.cache/babel-loader/382355cefd649fb278a8fbdb034add8b.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n console.login(\"riddhi\", this.isLoggedIn);\n var options = this.props.isLoggedIn ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 49,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 54,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 41\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 59,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 60,\n columnNumber: 41\n }\n }, \"Logout\"))))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 73,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 74,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 75,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 76,\n columnNumber: 11\n }\n }, \"Login\"))));\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 84,\n columnNumber: 9\n }\n }, options);\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","console","login","isLoggedIn","options","props","textDecoration","submit"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAAS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AA7E;AAAqF,QAAA,EAAE,EAAC,EAAxF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADA,CADF,CADA,CA3CP;AAqDD,0BACQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIE,OADJ,CADR;AAKC;;;;EA9D2Bd,S;;AAgE5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n \n console.login(\"riddhi\",this.isLoggedIn);\n const options = this.props.isLoggedIn ? \n \n \n
\n \n \n \n
\n
\n \n \n \n
    \n
  • \n \n Progress\n \n
  • \n \n
  • \n \n Tasks\n \n
  • \n
  • \n \n Simulator\n \n
  • \n
  • \n \n Logout\n \n
  • \n
\n \n \n
\n \n
\n \n :\n \n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n \nreturn (\n
\n {options}\n
\n) \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/3879ba2154c5c356769f2953a2c72d44.json b/node_modules/.cache/babel-loader/3879ba2154c5c356769f2953a2c72d44.json deleted file mode 100644 index 57740fe5..00000000 --- a/node_modules/.cache/babel-loader/3879ba2154c5c356769f2953a2c72d44.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _jsxFileName = \"/home/riddhi/frontend/src/index.js\";\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport './index.css';\nimport * as serviceWorker from './serviceWorker';\nimport Routing from './Routing';\nimport Navigationbar from './components/Navigationbar';\nReactDOM.render( /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 10,\n columnNumber: 5\n }\n}, /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 11,\n columnNumber: 9\n }\n}, /*#__PURE__*/React.createElement(\"switch\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 12,\n columnNumber: 13\n }\n}, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 13,\n columnNumber: 13\n }\n}), /*#__PURE__*/React.createElement(Routing, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 14,\n columnNumber: 13\n }\n})))), document.getElementById('root')); //ReactDOM.render(, document.getElementById('root'));\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\n\nserviceWorker.unregister();","map":{"version":3,"sources":["/home/riddhi/frontend/src/index.js"],"names":["React","ReactDOM","NavLink","Switch","BrowserRouter","Router","Route","serviceWorker","Routing","Navigationbar","render","document","getElementById","unregister"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,QAAP,MAAqB,WAArB;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAO,aAAP;AACA,OAAO,KAAKC,aAAZ,MAA+B,iBAA/B;AACA,OAAOC,OAAP,MAAoB,WAApB;AACA,OAAOC,aAAP,MAA0B,4BAA1B;AAEAR,QAAQ,CAACS,MAAT,eACI,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBACI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBACI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBACA,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EADA,eAEA,oBAAC,OAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAFA,CADJ,CADJ,CADJ,EASMC,QAAQ,CAACC,cAAT,CAAwB,MAAxB,CATN,E,CAUA;AAGA;AACA;AACA;;AACAL,aAAa,CAACM,UAAd","sourcesContent":["import React from 'react';\nimport ReactDOM from 'react-dom';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport './index.css';\nimport * as serviceWorker from './serviceWorker';\nimport Routing from './Routing';\nimport Navigationbar from './components/Navigationbar';\n\nReactDOM.render(\n \n
\n \n \n \n \n
\n
\n , document.getElementById('root'));\n//ReactDOM.render(, document.getElementById('root'));\n\n\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\nserviceWorker.unregister();"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/0b75df1b7bafb6b7cf433e809bcac088.json b/node_modules/.cache/babel-loader/38aa049f22885ed9225d8b0aa7da4175.json similarity index 100% rename from node_modules/.cache/babel-loader/0b75df1b7bafb6b7cf433e809bcac088.json rename to node_modules/.cache/babel-loader/38aa049f22885ed9225d8b0aa7da4175.json diff --git a/node_modules/.cache/babel-loader/880d452441fc4b3d67f0919a28956580.json b/node_modules/.cache/babel-loader/38c55a093df9eb3e4d396a0271617958.json similarity index 100% rename from node_modules/.cache/babel-loader/880d452441fc4b3d67f0919a28956580.json rename to node_modules/.cache/babel-loader/38c55a093df9eb3e4d396a0271617958.json diff --git a/node_modules/.cache/babel-loader/fa80f5d2a8ea4938ab47002558929980.json b/node_modules/.cache/babel-loader/38d02949f475b89b5e9c6e931236e575.json similarity index 100% rename from node_modules/.cache/babel-loader/fa80f5d2a8ea4938ab47002558929980.json rename to node_modules/.cache/babel-loader/38d02949f475b89b5e9c6e931236e575.json diff --git a/node_modules/.cache/babel-loader/390424a5ed47439796e9d5e7713b61c7.json b/node_modules/.cache/babel-loader/390424a5ed47439796e9d5e7713b61c7.json deleted file mode 100644 index a0fa986c..00000000 --- a/node_modules/.cache/babel-loader/390424a5ed47439796e9d5e7713b61c7.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\nexport var Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 25\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 28\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 48,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 49,\n columnNumber: 28\n }\n }, \"Simulator\"))))))));\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","textDecoration"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;AAiBA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;AAAA,sBAC3B,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD;AAAQ,IAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACA,oBAAC,MAAD,CAAQ,QAAR;AAAiB,IAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,GAAD;AAAK,IAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACU;AAAK,IAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI;AAAG,IAAA,KAAK,EAAC,OAAT;AAAiB,IAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA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router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nexport const Navigationbar = () => (\n \n \n \n \n \n \n \n)"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/39965fd793e1cf9f1d5fbad97db90bba.json b/node_modules/.cache/babel-loader/39965fd793e1cf9f1d5fbad97db90bba.json deleted file mode 100644 index ccd2ce05..00000000 --- a/node_modules/.cache/babel-loader/39965fd793e1cf9f1d5fbad97db90bba.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 21\n }\n })));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,SAASC,aAAT,QAA8B,4BAA9B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AAEP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACU,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEL,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,eAEI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAFJ,eAGI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHJ,eAII,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEL,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJJ,CADV,CADF;AAUD;;;;EAbmBN,S;;AAgBtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() {\n \n return ( \n \n \n \n \n \n \n \n \n )\n };\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/a47e2daec4a0cd6ef03abb50defc3bfd.json b/node_modules/.cache/babel-loader/39c3b44747c15134d8eee47892715925.json similarity index 100% rename from node_modules/.cache/babel-loader/a47e2daec4a0cd6ef03abb50defc3bfd.json rename to node_modules/.cache/babel-loader/39c3b44747c15134d8eee47892715925.json diff --git a/node_modules/.cache/babel-loader/6dc3a11635eb86771cad1e6abf3afe5a.json b/node_modules/.cache/babel-loader/39e00afd5c6c0087cb7898ed556d7ce9.json similarity index 100% rename from node_modules/.cache/babel-loader/6dc3a11635eb86771cad1e6abf3afe5a.json rename to node_modules/.cache/babel-loader/39e00afd5c6c0087cb7898ed556d7ce9.json diff --git a/node_modules/.cache/babel-loader/dca2a8bdd59ec2523e19c4251b4bd23c.json b/node_modules/.cache/babel-loader/3a435dc46846c857cb05ca2201120e4c.json similarity index 100% rename from node_modules/.cache/babel-loader/dca2a8bdd59ec2523e19c4251b4bd23c.json rename to node_modules/.cache/babel-loader/3a435dc46846c857cb05ca2201120e4c.json diff --git a/node_modules/.cache/babel-loader/3a4ee0d7e21f5a791f19dd7131cb4272.json b/node_modules/.cache/babel-loader/3a4ee0d7e21f5a791f19dd7131cb4272.json deleted file mode 100644 index 0fef54bf..00000000 --- a/node_modules/.cache/babel-loader/3a4ee0d7e21f5a791f19dd7131cb4272.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import { isPlainObject, isArray, isSymbol } from 'is-what';\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\n\nfunction __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) {\n s += arguments[i].length;\n }\n\n for (var r = Array(s), k = 0, i = 0; i < il; i++) {\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) {\n r[k] = a[j];\n }\n }\n\n return r;\n}\n\nfunction assignProp(carry, key, newVal, originalObject) {\n var propType = originalObject.propertyIsEnumerable(key) ? 'enumerable' : 'nonenumerable';\n if (propType === 'enumerable') carry[key] = newVal;\n\n if (propType === 'nonenumerable') {\n Object.defineProperty(carry, key, {\n value: newVal,\n enumerable: false,\n writable: true,\n configurable: true\n });\n }\n}\n\nfunction mergeRecursively(origin, newComer, extensions) {\n // work directly on newComer if its not an object\n if (!isPlainObject(newComer)) {\n // extend merge rules\n if (extensions && isArray(extensions)) {\n extensions.forEach(function (extend) {\n newComer = extend(origin, newComer);\n });\n }\n\n return newComer;\n } // define newObject to merge all values upon\n\n\n var newObject = {};\n\n if (isPlainObject(origin)) {\n var props_1 = Object.getOwnPropertyNames(origin);\n var symbols_1 = Object.getOwnPropertySymbols(origin);\n newObject = __spreadArrays(props_1, symbols_1).reduce(function (carry, key) {\n // @ts-ignore\n var targetVal = origin[key];\n\n if (!isSymbol(key) && !Object.getOwnPropertyNames(newComer).includes(key) || isSymbol(key) && !Object.getOwnPropertySymbols(newComer).includes(key)) {\n assignProp(carry, key, targetVal, origin);\n }\n\n return carry;\n }, {});\n }\n\n var props = Object.getOwnPropertyNames(newComer);\n var symbols = Object.getOwnPropertySymbols(newComer);\n\n var result = __spreadArrays(props, symbols).reduce(function (carry, key) {\n // re-define the origin and newComer as targetVal and newVal\n var newVal = newComer[key];\n var targetVal = isPlainObject(origin) ? // @ts-ignore\n origin[key] : undefined; // extend merge rules\n\n if (extensions && isArray(extensions)) {\n extensions.forEach(function (extend) {\n newVal = extend(targetVal, newVal);\n });\n } // When newVal is an object do the merge recursively\n\n\n if (targetVal !== undefined && isPlainObject(newVal)) {\n newVal = mergeRecursively(targetVal, newVal, extensions);\n }\n\n assignProp(carry, key, newVal, newComer);\n return carry;\n }, newObject);\n\n return result;\n}\n/**\r\n * Merge anything recursively.\r\n * Objects get merged, special objects (classes etc.) are re-assigned \"as is\".\r\n * Basic types overwrite objects or other basic types.\r\n *\r\n * @param {(IConfig | any)} origin\r\n * @param {...any[]} newComers\r\n * @returns the result\r\n */\n\n\nfunction merge(origin) {\n var newComers = [];\n\n for (var _i = 1; _i < arguments.length; _i++) {\n newComers[_i - 1] = arguments[_i];\n }\n\n var extensions = null;\n var base = origin;\n\n if (isPlainObject(origin) && origin.extensions && Object.keys(origin).length === 1) {\n base = {};\n extensions = origin.extensions;\n }\n\n return newComers.reduce(function (result, newComer) {\n return mergeRecursively(result, newComer, extensions);\n }, base);\n}\n\nfunction concatArrays(originVal, newVal) {\n if (isArray(originVal) && isArray(newVal)) {\n // concat logic\n return originVal.concat(newVal);\n }\n\n return newVal; // always return newVal as fallback!!\n}\n\nexport default merge;\nexport { concatArrays, merge };","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/3a51184c2bd86ae8939af6dd4c87bbc2.json b/node_modules/.cache/babel-loader/3a51184c2bd86ae8939af6dd4c87bbc2.json deleted file mode 100644 index 0865dc25..00000000 --- a/node_modules/.cache/babel-loader/3a51184c2bd86ae8939af6dd4c87bbc2.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 229,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 230,\n columnNumber: 28\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 242,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 24\n }\n }, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 272,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 273,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 276,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 277,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 280,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 289,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE;AAJF,KAOU;AAAA,QAETC,OAFS,GAEEP,KAFF,CAETO,OAFS;AAGhBC,IAAAA,OAAO,CAACC,GAAR,CAAYF,OAAZ;AACA,UAAKN,KAAL,CAAWS,SAAX,GAAuBH,OAAO,CAACI,GAAR,CAAY,YAAZ,CAAvB;AACAH,IAAAA,OAAO,CAACC,G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1B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAGO,KAAKD,KAAL,CAAWC,SAAX,iBAAwB;AAAG,QAAA,SAAS,EAAC,uBAAb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAH/B,EAIO,CAAC,KAAKD,KAAL,CAAWK,MAAZ,iBAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAJ7B,EAKO,KAAKL,KAAL,CAAWK,MAAX,iBAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAL5B,CAFF,CADS,GAYL,IAZd;AAcE,UAAMqE,QAAQ,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAGdD,SAHc,eAIf;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAEjF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAJe,eAQf;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CARe,eAYf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAZe,CAAjB;AAmBA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIkF,QADJ,CAFF;AAOH;;;;EApRe9F,S;;AAsRlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n\n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n \n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n \n \n {simulator}\n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/e5f6ee8372f8fa937644b168ea3320ac.json b/node_modules/.cache/babel-loader/3a8010df695136b7a827ef2a9fee9d20.json similarity index 100% rename from node_modules/.cache/babel-loader/e5f6ee8372f8fa937644b168ea3320ac.json rename to node_modules/.cache/babel-loader/3a8010df695136b7a827ef2a9fee9d20.json diff --git a/node_modules/.cache/babel-loader/a3b1ddab8e6e022905449a618352b585.json b/node_modules/.cache/babel-loader/3aac8bfac41b48fb77de4101ca9b03c6.json similarity index 100% rename from node_modules/.cache/babel-loader/a3b1ddab8e6e022905449a618352b585.json rename to node_modules/.cache/babel-loader/3aac8bfac41b48fb77de4101ca9b03c6.json diff --git a/node_modules/.cache/babel-loader/d09803663658b89cbcbf096f13c3c38a.json b/node_modules/.cache/babel-loader/3aca63b31f1aa5d56381d2b283b25047.json similarity index 100% rename from node_modules/.cache/babel-loader/d09803663658b89cbcbf096f13c3c38a.json rename to node_modules/.cache/babel-loader/3aca63b31f1aa5d56381d2b283b25047.json diff --git a/node_modules/.cache/babel-loader/fcc2f5a10d7410f1d5622c408ca1b0d1.json b/node_modules/.cache/babel-loader/3af7450126c24f645a863b4546568b90.json similarity index 100% rename from node_modules/.cache/babel-loader/fcc2f5a10d7410f1d5622c408ca1b0d1.json rename to node_modules/.cache/babel-loader/3af7450126c24f645a863b4546568b90.json diff --git a/node_modules/.cache/babel-loader/16fa20e88f1a48558bfcc4763e4dd106.json b/node_modules/.cache/babel-loader/3af8c23343f657cbf93c714fd629c631.json similarity index 100% rename from node_modules/.cache/babel-loader/16fa20e88f1a48558bfcc4763e4dd106.json rename to node_modules/.cache/babel-loader/3af8c23343f657cbf93c714fd629c631.json diff --git a/node_modules/.cache/babel-loader/3b120103a9c80bed543450946c362abd.json b/node_modules/.cache/babel-loader/3b120103a9c80bed543450946c362abd.json deleted file mode 100644 index ee524dcb..00000000 --- a/node_modules/.cache/babel-loader/3b120103a9c80bed543450946c362abd.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n /*#__PURE__*/\n React.createElement(\"div\", {\n class: \"Mainclass\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 218,\n columnNumber: 5\n }\n }, \"const options = this.state.isAuthenticated ?\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 31\n }\n }, \"Logout\")))), \":\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, \"Login\")))), \"const simulator = this.state.isAuthenticated ?\", /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 249,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))), \" : null const mainBody = \", /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 9\n }\n })));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 275,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","textDecoration","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE;AAJF,KAOU;AAAA,QAETC,OAFS,GAEEP,KAFF,CAETO,OAFS;AAGhBC,IAAAA,OAAO,CAACC,GAAR,CAAYF,OAAZ;AACA,UAAKN,KAAL,CAAWS,SAAX,GAAuBH,OAAO,CAACI,GAAR,CAAY,YAAZ,CAAvB;AACAH,IAAAA,OAAO,CAACC,GAAR,CAAY,MAAKR,KAAL,CAAWS,SAAvB;AACA,UAAKE,KAAL,GAAa,gBAAb;AACA,UAAKC,IAAL,GAAY,qBAAZ;AACA,UAAKC,MAAL,GAAe,OAAf;;AACA,QAAI,MAAKA,MA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EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CALa,eASb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QATa,CAvCjB;AAuDE,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIgF,QADJ,CAFF;AAOH;;;;EAvQe3F,S;;AAyQlB,eAAeI,UAAU,CAACQ,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n
\n const options = this.state.isAuthenticated ? \n \n
\n
    \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n
\n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/3b742efe619951d6ec137959a6756e61.json b/node_modules/.cache/babel-loader/3b742efe619951d6ec137959a6756e61.json deleted file mode 100644 index 6fb649a2..00000000 --- a/node_modules/.cache/babel-loader/3b742efe619951d6ec137959a6756e61.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 16\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 19\n }\n }, \"Login\")))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 247,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 252,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 24\n }\n }, options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 275,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,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,KAAL,CAAWC,SAF1B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAGO,KAAKD,KAAL,CAAWC,SAAX,iBAAwB;AAAG,QAAA,SAAS,EAAC,uBAAb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAH/B,EAIO,CAAC,KAAKD,KAAL,CAAWK,MAAZ,iBAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAJ7B,EAKO,KAAKL,KAAL,CAAWK,MAAX,iBAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAL5B,CAFF,CADS,GAYL,IAZd;AAcE,UAAMqE,QAAQ,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAEdH,OAFc,EAGdE,SAHc,eAIf;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAEjF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAJe,eAOf;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAPe,eAUf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAVe,CAAjB;AAeA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIkF,QADJ,CAFF;AAOH;;;;EAvQe9F,S;;AAyQlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n\n
\n \n
    \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n \n
\n
    \n
  • \n \n Login\n \n \n
  • \n
\n
\n
\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n \n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/eee87bca09728873252f0f9014d9b1bd.json b/node_modules/.cache/babel-loader/3b7b27055e8914267dd566b1e381221d.json similarity index 100% rename from node_modules/.cache/babel-loader/eee87bca09728873252f0f9014d9b1bd.json rename to node_modules/.cache/babel-loader/3b7b27055e8914267dd566b1e381221d.json diff --git a/node_modules/.cache/babel-loader/3bf7a06a8d2e3ed7bb7bc01b07c2ee60.json b/node_modules/.cache/babel-loader/3bf7a06a8d2e3ed7bb7bc01b07c2ee60.json deleted file mode 100644 index 3377e075..00000000 --- a/node_modules/.cache/babel-loader/3bf7a06a8d2e3ed7bb7bc01b07c2ee60.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Switch, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 15\n }\n }))));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,SAASC,aAAT,QAA8B,4BAA9B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAEE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAII,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEN,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJJ,eAKI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEC,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALJ,eAMI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANJ,eAOI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAPJ,CAFF,CADF,CADF;AAiBD;;;;EAnBmBX,S;;AAsBtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() {\n return (\n \n \n \n \n \n {/* \n */}\n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/1c0b30ab8694faf177241c24921e9e56.json b/node_modules/.cache/babel-loader/3d11613f23d6d8839438900fc8a1315f.json similarity index 100% rename from node_modules/.cache/babel-loader/1c0b30ab8694faf177241c24921e9e56.json rename to node_modules/.cache/babel-loader/3d11613f23d6d8839438900fc8a1315f.json diff --git a/node_modules/.cache/babel-loader/3d214661728907f9fcb77c5116e9b887.json b/node_modules/.cache/babel-loader/3d214661728907f9fcb77c5116e9b887.json deleted file mode 100644 index 7bc1e055..00000000 --- a/node_modules/.cache/babel-loader/3d214661728907f9fcb77c5116e9b887.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var authenticated = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 25\n }\n }, authenticated ? /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 53,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 58,\n columnNumber: 41\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 63,\n columnNumber: 41\n }\n }, \"Logout\"))) : /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 71,\n columnNumber: 31\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 72,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 73,\n columnNumber: 33\n }\n }, \"Login\")))))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","authenticated","props","isLoggedIn","textDecoration","submit","login"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AACN,UAAMC,aAAa,GAAG,KAAKC,KAAL,CAAWC,UAAjC;AAEF,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAGQ,oBAAC,GAAD;AAAK,QAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACc;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAAA,KAAK,EAAC,MAAX;AAAkB,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AO,EAAE,KAAKF,KAAL,CAAWG,MAAhE;AAAwE,QAAA,KAAK,EAAC,QAA9E;AAAuF,QAAA,EAAE,EAAC,GAA1F;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBADJ,CAjBJ,CAFU,gBA4BZ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAED,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKF,KAAL,CAAWI,KAAhE;AAAuE,QAAA,KAAK,EAAC,OAA7E;AAAqF,QAAA,EAAE,EAAC,EAAxF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADA,CADF,CA9BN,CANV,CAHR,CADF,CADF;AA2DD;;;;EA/D2BhB,S;;AAiE5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const authenticated = this.props.isLoggedIn;\n \n return (\n
\n \n \n \n \n \n \n \n
\n \n )\n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/962870113fe79508ae333979a1a6157a.json b/node_modules/.cache/babel-loader/3d81a17619ae410df172500900c9cbdc.json similarity index 100% rename from node_modules/.cache/babel-loader/962870113fe79508ae333979a1a6157a.json rename to node_modules/.cache/babel-loader/3d81a17619ae410df172500900c9cbdc.json diff --git a/node_modules/.cache/babel-loader/3dfeaeb9195ce756c9f551b082110ccf.json b/node_modules/.cache/babel-loader/3dfeaeb9195ce756c9f551b082110ccf.json deleted file mode 100644 index d03f147b..00000000 --- a/node_modules/.cache/babel-loader/3dfeaeb9195ce756c9f551b082110ccf.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var options = this.props.isLoggedIn ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 49,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 54,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 41\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 59,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 60,\n columnNumber: 41\n }\n }, \"Logout\"))))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 73,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 74,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 75,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 76,\n columnNumber: 11\n }\n }, \"Login\"))));\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 84,\n columnNumber: 9\n }\n }, options);\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","options","props","isLoggedIn","textDecoration","submit","login"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AAGT,UAAMC,OAAO,GAAG,KAAKC,KAAL,CAAWC,UAAX,gBACX,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAEQ;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACc;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAAA,KAAK,EAAC,MAAX;AAAkB,QAAA,GAAG,EAAEN,MAAvB;AAA+B,QAAA,KAAK,EAAE,MAAtC;AAA8C,QAAA,MAAM,EAAE,MAAtD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CADd,CAFR,eAOkB;AAAK,QAAA,EAAE,EAAC,QAAR;AAAiB,QAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAIQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAC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A;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAED,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKF,KAAL,CAAWI,KAAhE;AAAuE,QAAA,KAAK,EAAC,OAA7E;AAAqF,QAAA,EAAE,EAAC,EAAxF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADA,CADF,CADA,CA3CP;AAqDD,0BACQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIL,OADJ,CADR;AAKC;;;;EA9D2BX,S;;AAgE5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n \n \n const options = this.props.isLoggedIn ? \n \n \n
\n \n \n \n
\n
\n \n \n \n
    \n
  • \n \n Progress\n \n
  • \n \n
  • \n \n Tasks\n \n
  • \n
  • \n \n Simulator\n \n
  • \n
  • \n \n Logout\n \n
  • \n
\n \n \n
\n \n
\n \n :\n \n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n \nreturn (\n
\n {options}\n
\n) \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/7f4ff4106486d495e40134d56bcd9e52.json b/node_modules/.cache/babel-loader/3e2aadb53a35c8c10cb816f5c0819850.json similarity index 100% rename from node_modules/.cache/babel-loader/7f4ff4106486d495e40134d56bcd9e52.json rename to node_modules/.cache/babel-loader/3e2aadb53a35c8c10cb816f5c0819850.json diff --git a/node_modules/.cache/babel-loader/3e94d788cd5ad6384326368e16acbe79.json b/node_modules/.cache/babel-loader/3e94d788cd5ad6384326368e16acbe79.json deleted file mode 100644 index bc622d31..00000000 --- a/node_modules/.cache/babel-loader/3e94d788cd5ad6384326368e16acbe79.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink, Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var isLoggedIn = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 13,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 14,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 35\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 37\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 41\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 45\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 49\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 45\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 49\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 45\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 49\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 45\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 47\n }\n }, \"Logout\"))))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","Link","styled","header","Navigationbar","isLoggedIn","props","textDecoration","submit"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,EAAiBC,IAAjB,QAA6B,kBAA7B;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;IAEzCC,a;;;;;;;;;;;6BACI;AACN,UAAMC,UAAU,GAAG,KAAKC,KAAL,CAAWD,UAA9B;AAEA,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACY,oBAAC,GAAD;AAAK,QAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACc;AAAG,QAA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AAA;AAAA;AAAA;AAAA,sBACE,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKC,MAA1D;AAAkE,QAAA,KAAK,EAAC,QAAxE;AAAiF,QAAA,EAAE,EAAC,GAApF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBADF,CAlBJ,CADR,CANd,CADZ,CADF;AAsCH;;;;EA1C2Bb,S;;AA4C5B,eAAeS,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink,Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nclass Navigationbar extends Component { \n render(){\n const isLoggedIn = this.props.isLoggedIn;\n \n return (\n
\n \n \n
\n); \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/3f28dcc44f1ed795f44716744bfbe6a2.json b/node_modules/.cache/babel-loader/3f28dcc44f1ed795f44716744bfbe6a2.json deleted file mode 100644 index 2140e0eb..00000000 --- a/node_modules/.cache/babel-loader/3f28dcc44f1ed795f44716744bfbe6a2.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 229,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 230,\n columnNumber: 28\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 242,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 273,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 274,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 277,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 286,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE;AAJF,KAOU;AAAA,QAETC,OAFS,GAEEP,KAFF,CAETO,OAFS;AAGhBC,IAAAA,OAAO,CAACC,GAAR,CAAYF,OAAZ;AACA,UAAKN,KAAL,CAAWS,SAAX,GAAuBH,OAAO,CAACI,GAAR,CAAY,YAAZ,CAAvB;AACAH,IAAAA,OAAO,CAACC,GAAR,CAAY,MAAKR,KAAL,CAAWS,SAAvB;AACA,UAAKE,KAAL,GAAa,gBAAb;AACA,UAAKC,IAAL,GAAY,qBAAZ;AACA,UAAKC,MAAL,GAAe,O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A;AAAA;AAAA;AAAA;AAAA;AAAA,QAH/B,EAIO,CAAC,KAAKD,KAAL,CAAWK,MAAZ,iBAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAJ7B,EAKO,KAAKL,KAAL,CAAWK,MAAX,iBAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAL5B,CAFF,CADS,GAYL,IAZd;AAcE,UAAMqE,QAAQ,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACf;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAElF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CADe,eAKf;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CALe,eASf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QATe,CAAjB;AAgBA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIkF,QADJ,CAFF;AAOH;;;;EAjRe9F,S;;AAmRlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n\n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n \n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/4006d6559eb6bae483a682fccc6a7361.json b/node_modules/.cache/babel-loader/4006d6559eb6bae483a682fccc6a7361.json deleted file mode 100644 index b30703a3..00000000 --- a/node_modules/.cache/babel-loader/4006d6559eb6bae483a682fccc6a7361.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n /*const options = this.state.isAuthenticated ? \n
\n
    \n
  • \n \n Progress\n \n
  • \n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n \n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/\n //}\n\n /* < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n
:\n null\n const mainBody =
\n
\n \n \n \n {options}\n
\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
*/\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 294,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 295,\n columnNumber: 11\n }\n }), mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,OAAOC,aAAP,MAA0B,iBAA1B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAC/C,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAwC;;AACxC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD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;;;;;;;;;;AAqCwD;;AAC9C;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCR,0BACE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,EAEI6C,QAFJ,CADF;AASH;;;;EA5Re3F,S;;AA8RlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n /*const options = this.state.isAuthenticated ? \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*///}\n /* < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
*/\n\n \n return (\n
\n \n {mainBody}\n
\n \n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/11cbb2865b6c9c1bf0d729e89da97bda.json b/node_modules/.cache/babel-loader/4054df095948fce69e01e1184cbd7e97.json similarity index 100% rename from node_modules/.cache/babel-loader/11cbb2865b6c9c1bf0d729e89da97bda.json rename to node_modules/.cache/babel-loader/4054df095948fce69e01e1184cbd7e97.json diff --git a/node_modules/.cache/babel-loader/406e904432648154d29aad53a14d8ce2.json b/node_modules/.cache/babel-loader/406e904432648154d29aad53a14d8ce2.json deleted file mode 100644 index 6147339a..00000000 --- a/node_modules/.cache/babel-loader/406e904432648154d29aad53a14d8ce2.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/NavigationBar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #222; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #9FFFCB;\\n &:hover { color: white; }\\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #9FFFCB;\\n &:hover { color: white; }\\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nvar Styles = styled.div(_templateObject());\n\nvar Routing = /*#__PURE__*/function (_NavigationBar) {\n _inherits(Routing, _NavigationBar);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Brand, {\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 11\n }\n }, \"Tutorial\"), /*#__PURE__*/React.createElement(Navbar.Toggle, {\n \"aria-controls\": \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 11\n }\n }), /*#__PURE__*/React.createElement(Form, {\n className: \"form-center\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(FormControl, {\n type: \"text\",\n placeholder: \"Search\",\n className: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(Nav.Item, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 25\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(Nav.Item, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/about\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 25\n }\n }, \"Tasks\"))))));\n }\n }]);\n\n return Routing;\n}(NavigationBar);\n\nexport default NavigationBar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/NavigationBar.js"],"names":["React","Nav","Navbar","Form","FormControl","styled","Styles","div","Routing","NavigationBar"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,OAA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;AAAU,QAAA,IAAI,EAAC,QAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAV,CAFF,CADF,CANF,CADA,CADF;AAiBD;;;;EAnBiBC,a;;AAsBtB,eAAeA,aAAf","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nconst Styles = styled.div`\n .navbar { background-color: #222; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #9FFFCB;\n &:hover { color: white; }\n }\n .navbar-brand {\n font-size: 1.4em;\n color: #9FFFCB;\n &:hover { color: white; }\n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nclass Routing extends NavigationBar {\n render() {\n return (\n \n \n Tutorial\n \n
\n \n \n \n \n \n
\n
\n );\n }\n }\n \nexport default NavigationBar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/408680022e7c387aaa4d059ad261ff93.json b/node_modules/.cache/babel-loader/408680022e7c387aaa4d059ad261ff93.json deleted file mode 100644 index 190ed5aa..00000000 --- a/node_modules/.cache/babel-loader/408680022e7c387aaa4d059ad261ff93.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport Navigationbar from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(Switch, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 23\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 23\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 23\n }\n }))));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,OAAOC,aAAP,MAA2B,4BAA3B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACU,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,eAEI,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAGE,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEL,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHF,eAIE,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJF,eAKE,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALF,CAFJ,CADV,CADF;AAgBD;;;;EAlBmBX,S;;AAqBtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport Navigationbar from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() { \n return ( \n \n \n \n \n {/* \n */} \n \n \n \n \n \n \n \n \n )\n };\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/01aa198ec69cc867ed8ecc245cf30ab5.json b/node_modules/.cache/babel-loader/40a162e1a0830d3f143cbf35b72811b0.json similarity index 100% rename from node_modules/.cache/babel-loader/01aa198ec69cc867ed8ecc245cf30ab5.json rename to node_modules/.cache/babel-loader/40a162e1a0830d3f143cbf35b72811b0.json diff --git a/node_modules/.cache/babel-loader/6b650ebc805a740a70e275f3a091c3ec.json b/node_modules/.cache/babel-loader/40a4447c2b5c0fbef95f843798172cac.json similarity index 100% rename from node_modules/.cache/babel-loader/6b650ebc805a740a70e275f3a091c3ec.json rename to node_modules/.cache/babel-loader/40a4447c2b5c0fbef95f843798172cac.json diff --git a/node_modules/.cache/babel-loader/b7de3960d99206eba0d26fd2a1669b5c.json b/node_modules/.cache/babel-loader/40dab0b8fcfa0794820e7f74b58b1d21.json similarity index 100% rename from node_modules/.cache/babel-loader/b7de3960d99206eba0d26fd2a1669b5c.json rename to node_modules/.cache/babel-loader/40dab0b8fcfa0794820e7f74b58b1d21.json diff --git a/node_modules/.cache/babel-loader/40f78ad3b519833d2c0a960a2971e688.json b/node_modules/.cache/babel-loader/40f78ad3b519833d2c0a960a2971e688.json deleted file mode 100644 index a2a2e2ab..00000000 --- a/node_modules/.cache/babel-loader/40f78ad3b519833d2c0a960a2971e688.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }()\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator(urlAction) {\n //launchSimulator() {\n var url = urlAction; //window.location.href = \"http://localhost:3000/simulator\";\n\n this.simulatorWindow = window.open(url + \":8080\", '_blank');\n this.shellWindow = window.open(url + \":4200\", '_blank');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n this.setState({\n isLoading: true,\n launch: true\n });\n this.attach(this.state.launch);\n\n var _httpClient = axios.create();\n\n _httpClient.defaults.timeout = 600000;\n\n _httpClient.get(\"http://\".concat(this.ip, \"/simulator/start/\").concat(this.state.user.sub, \"/\").concat(this.state.user.given_name, \"/spiri-friend2019@\"), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n simulator: res.data,\n isLoading: false\n });\n\n _this5.launchSimulator(_this5.state.simulator.publicIp);\n }); //this.launchSimulator();\n\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 217,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 218,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 219,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 225,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 226,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 239,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 240,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 241,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 242,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 252,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 254,\n columnNumber: 19\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 267,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 275,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 276,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 280,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 283,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 291,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","urlAction","url","open","httpClient","create","defaults","timeout","withCredentials","res","given_name","simulator","data","publicIp","options","textDecoration","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAC/C,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAwC;;AACxC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,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;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAda,eAkBb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAlBa,CAAjB;AAyBE,0BACE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIwF,QADJ,CADF;AAOH;;;;EAzRenG,S;;AA2RlB,eAAeG,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n launchSimulator(urlAction) {\n //launchSimulator() {\n const url = urlAction;\n //window.location.href = \"http://localhost:3000/simulator\";\n this.simulatorWindow = window.open(url + \":8080\", '_blank');\n this.shellWindow = window.open(url + \":4200\", '_blank');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })\n //this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n
\n {mainBody}\n
\n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/413dedb3f546c9b97365b3785cad759b.json b/node_modules/.cache/babel-loader/413dedb3f546c9b97365b3785cad759b.json deleted file mode 100644 index 0b22e845..00000000 --- a/node_modules/.cache/babel-loader/413dedb3f546c9b97365b3785cad759b.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }()\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator(urlAction) {\n //launchSimulator() {\n //const url = urlAction;\n //window.location.href = \"http://localhost:3000/simulator\";\n this.simulatorWindow = window.open(url + \":8080\", '_blank');\n this.shellWindow = window.open(url + \":4200\", '_blank');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.post(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n this.setState({\n isLoading: true,\n launch: true\n });\n this.attach(this.state.launch);\n\n var _httpClient = axios.create();\n\n _httpClient.defaults.timeout = 600000;\n\n _httpClient.post(\"http://\".concat(this.ip, \"/simulator/start/\").concat(this.state.user.sub, \"/\").concat(this.state.user.given_name, \"/spiri-friend2019@\"), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n simulator: res.data,\n isLoading: false\n });\n\n _this5.launchSimulator(_this5.state.simulator.publicIp);\n }); //this.launchSimulator();\n\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 217,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 218,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 219,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 225,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 226,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 239,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 240,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 241,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 242,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 252,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 254,\n columnNumber: 19\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 267,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 275,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 276,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 280,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 283,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 291,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","urlAction","open","url","httpClient","create","defaults","timeout","post","withCredentials","res","given_name","simulator","data","publicIp","options","textDecoration","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAC/C,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAwC;;AACxC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE;AAJF,KAOU;AAAA,QAETC,OAFS,GAEEP,KAFF,CAETO,OAFS;AAGhBC,IAAAA,OAAO,CAACC,GAAR,CAAYF,OAAZ;AACA,UAAKN,KAAL,CAAWS,SAAX,GAAuBH,OAAO,CAACI,GAAR,CAAY,YAAZ,CAAvB;AACA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YL,IAZd;AAcA,UAAM4E,QAAQ,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACb;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACG;AAAM,QAAA,GAAG,EAAE1F,MAAX;AAAmB,QAAA,KAAK,EAAE,MAA1B;AAAkC,QAAA,MAAM,EAAE,MAA1C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADH,CADJ,EAIKwF,OAJL,CADa,EAQZH,SARY,eAUb;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAEpF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAVa,eAcb;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAda,eAkBb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAlBa,CAAjB;AAyBE,0BACE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIyF,QADJ,CADF;AAOH;;;;EAzRepG,S;;AA2RlB,eAAeG,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n launchSimulator(urlAction) {\n //launchSimulator() {\n //const url = urlAction;\n //window.location.href = \"http://localhost:3000/simulator\";\n this.simulatorWindow = window.open(url + \":8080\", '_blank');\n this.shellWindow = window.open(url + \":4200\", '_blank');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.post(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.post(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })\n //this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n
\n {mainBody}\n
\n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/93fb2e34ab1146117a35bad4470a283e.json b/node_modules/.cache/babel-loader/416d59584cf02f1391690b57866422e3.json similarity index 100% rename from node_modules/.cache/babel-loader/93fb2e34ab1146117a35bad4470a283e.json rename to node_modules/.cache/babel-loader/416d59584cf02f1391690b57866422e3.json diff --git a/node_modules/.cache/babel-loader/41f42d834e1de5e03c9572f4fd3afb40.json b/node_modules/.cache/babel-loader/41f42d834e1de5e03c9572f4fd3afb40.json deleted file mode 100644 index 96709047..00000000 --- a/node_modules/.cache/babel-loader/41f42d834e1de5e03c9572f4fd3afb40.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var authenticated = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 25\n }\n }, authenticated ? /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 53,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 58,\n columnNumber: 41\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 63,\n columnNumber: 41\n }\n }, \"Logout\"))) : /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 71,\n columnNumber: 31\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 72,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 73,\n columnNumber: 33\n }\n }, \"Login\"))))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","authenticated","props","isLoggedIn","textDecoration","submit","login"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AACN,UAAMC,aAAa,GAAG,KAAKC,KAAL,CAAWC,UAAjC;AAEF,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAIQ;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACc;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAAA,KAAK,EAAC,MAAX;AAAkB,QAAA,GAAG,EAAEN,MAAvB;AAA+B,QAAA,KAAK,EAAE,MAAtC;AAA8C,QAAA,MAAM,EAAE,MAAtD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CADd,CAJR,eASkB;AAAK,QAAA,EAAE,EAAC,QAAR;AAAiB,QAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AA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AA;AAAA;AAAA;AAAA;AAAA,sBACA,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAED,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKF,KAAL,CAAWI,KAAhE;AAAuE,QAAA,KAAK,EAAC,OAA7E;AAAqF,QAAA,EAAE,EAAC,EAAxF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADA,CADF,CA9BN,CATlB,CADF,CADF;AA2DD;;;;EA/D2BhB,S;;AAiE5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const authenticated = this.props.isLoggedIn;\n \n return (\n
\n \n \n \n \n
\n \n \n \n
\n
\n \n {authenticated ? ( \n \n
    \n
  • \n \n Progress\n \n
  • \n \n
  • \n \n Tasks\n \n
  • \n
  • \n \n Simulator\n \n
  • \n
  • \n \n Logout\n \n
  • \n
\n )\n :\n (\n
    \n
  • \n \n Login\n \n
  • \n
\n )\n }\n \n
\n \n \n \n
\n
\n \n )\n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/42377b9dd3fc368e8ae23580336a602e.json b/node_modules/.cache/babel-loader/42377b9dd3fc368e8ae23580336a602e.json deleted file mode 100644 index e40176ef..00000000 --- a/node_modules/.cache/babel-loader/42377b9dd3fc368e8ae23580336a602e.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 218,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"script\", {\n type: \"text/javascript\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 219,\n columnNumber: 5\n }\n }, \" const options = this.state.isAuthenticated ? \"), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 31\n }\n }, \"Logout\")))), \":\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, \"Login\")))), \"const simulator = this.state.isAuthenticated ?\", /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 249,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))), \" : null\", /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 275,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","mainBody","textDecoration"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE;AAJF,KAOU;AAAA,QAETC,OAFS,GAEEP,KAFF,CAETO,OAFS;AAGhBC,IAAAA,OAAO,CAACC,GAAR,CAAYF,OAAZ;AACA,UAAKN,KAAL,CAAWS,SAAX,GAAuBH,OAAO,CAACI,GAAR,CAAY,YAAZ,CAAvB;AACAH,IAAAA,OAAO,CAACC,GAAR,CAAY,MAAKR,KAAL,CAAWS,SAAvB;AACA,UAAKE,KAAL,GAAa,gBAAb;AACA,UAAKC,IAAL,GAAY,qBAAZ;AACA,UAAKC,MAAL,GAAe,OAAf;;AACA,QAAI,MAAKA,MAAL,KAAgB,OAApB,EAA6B;AAC3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C,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CA5Ca,eAgDb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAhDa,CAAjB;AAuDE,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACI+E,QADJ,CAFF;AAOH;;;;EAvQe1F,S;;AAyQlB,eAAeI,UAAU,CAACQ,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const mainBody =
\n \n \n
\n
    \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/05f4a1109b3875d419658c72569585c0.json b/node_modules/.cache/babel-loader/42b0648eaf2b58aea5b02bc81725436a.json similarity index 100% rename from node_modules/.cache/babel-loader/05f4a1109b3875d419658c72569585c0.json rename to node_modules/.cache/babel-loader/42b0648eaf2b58aea5b02bc81725436a.json diff --git a/node_modules/.cache/babel-loader/b71b198c61fc0d97a2a973cbb179c7f1.json b/node_modules/.cache/babel-loader/42dce491ae4aeb7e02b4b3ca78740de6.json similarity index 100% rename from node_modules/.cache/babel-loader/b71b198c61fc0d97a2a973cbb179c7f1.json rename to node_modules/.cache/babel-loader/42dce491ae4aeb7e02b4b3ca78740de6.json diff --git a/node_modules/.cache/babel-loader/72d1f4ca9333fe97be9857c6caa6fe64.json b/node_modules/.cache/babel-loader/42e26f0cae03d428dc522642a98d64b2.json similarity index 100% rename from node_modules/.cache/babel-loader/72d1f4ca9333fe97be9857c6caa6fe64.json rename to node_modules/.cache/babel-loader/42e26f0cae03d428dc522642a98d64b2.json diff --git a/node_modules/.cache/babel-loader/d7d806e7a7a35e5620f2f59a327974b7.json b/node_modules/.cache/babel-loader/42fd89a02d5b5bbf2334604564551e68.json similarity index 100% rename from node_modules/.cache/babel-loader/d7d806e7a7a35e5620f2f59a327974b7.json rename to node_modules/.cache/babel-loader/42fd89a02d5b5bbf2334604564551e68.json diff --git a/node_modules/.cache/babel-loader/43c24af89d9f21e805df42095c5ac059.json b/node_modules/.cache/babel-loader/43c24af89d9f21e805df42095c5ac059.json deleted file mode 100644 index 26f828c5..00000000 --- a/node_modules/.cache/babel-loader/43c24af89d9f21e805df42095c5ac059.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\nexport var Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 16\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 28\n }\n }, \"Tasks\")))), \":\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 54,\n columnNumber: 18\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 18\n }\n }))))));\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","textDecoration"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;AAiBA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;AAAA,sBAC3B,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD;AAAQ,IAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACA,oBAAC,MAAD,CAAQ,QAAR;AAAiB,IAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,GAAD;AAAK,IAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACA;AAAK,IAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI;AAAG,IAAA,KAAK,EAAC,OAAT;AAAiB,IAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACG;AAAK,IAAA,GAAG,EAAEH,MAAV;AAAkB,IAAA,KAAK,EAAE,MAAzB;AAAiC,IAAA,MAAM,EAAE,MAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IADH,CADJ,CADA,eAQU;AAAK,IAAA,EAAE,EAAC,QAAR;AAAiB,IAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEI,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,UAAnD;AAA8D,IAAA,EAAE,EAAC,WAAjE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBADJ,CADF,eAOE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,QAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aADJ,CAPF,CADH,CARV,oBA0BS;AAAK,IAAA,EAAE,EAAC,QAAR;AAAiB,IAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IADA,CA1BT,CADJ,CADA,CADF,CAD2B;AAAA,CAAtB","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nexport const Navigationbar = () => (\n \n \n \n \n \n \n \n)"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/4e349cc3e84d9954ee54f445de01a124.json b/node_modules/.cache/babel-loader/43c71d9850a5a0b9aa0dd27efb3f79b7.json similarity index 100% rename from node_modules/.cache/babel-loader/4e349cc3e84d9954ee54f445de01a124.json rename to node_modules/.cache/babel-loader/43c71d9850a5a0b9aa0dd27efb3f79b7.json diff --git a/node_modules/.cache/babel-loader/441693fcc7ce29abd3dfad5e991f7bde.json b/node_modules/.cache/babel-loader/441693fcc7ce29abd3dfad5e991f7bde.json deleted file mode 100644 index 562d14ba..00000000 --- a/node_modules/.cache/babel-loader/441693fcc7ce29abd3dfad5e991f7bde.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n if (!this.state.isAuthenticated) {\n /*#__PURE__*/\n React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 21\n }\n }, \"Login\"))));\n }\n\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 238,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 239,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 240,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 24\n }\n }, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 249,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 252,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 253,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n logout: this.logout,\n submit: this.submit,\n login: this.login,\n isLoggedIn: this.state.isAuthenticated,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 11\n }\n }), mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","isNavbar","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,aAAP,MAA2B,iBAA3B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AASJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UARlBC,KAQkB,GARV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE,KAJF;AAKNC,MAAAA,QAAQ,EAAE;AALJ,KAQU;AAAA,QAETC,OAFS,GAEER,KAFF,CAETQ,OAFS;AAGhBC,IAAAA,OAAO,CAACC,GAAR,CAAYF,OAAZ;AACA,UAAKP,KAAL,CAAWU,SAAX,GAAuBH,OAAO,CAACI,GAAR,CAAY,YAAZ,CAAvB;AACAH,IAAAA,OAAO,CAACC,GAAR,CAA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;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAe,QAAA,MAAM,EAAE,KAAK8B,MAA5B;AAAoC,QAAA,MAAM,EAAE,KAAKE,MAAjD;AAAyD,QAAA,KAAK,EAAE,KAAKH,KAArE;AAA4E,QAAA,UAAU,EAAE,KAAKrB,KAAL,CAAWE,eAAnG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,EAGIwE,QAHJ,CAFF;AAUH;;;;EA7Pe9F,S;;AA+PlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n if (!this.state.isAuthenticated){\n \n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n }\n \n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n \n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n \n \n {mainBody}\n \n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/2038d66bc396b27adcfb34ef212e93da.json b/node_modules/.cache/babel-loader/44f74c39cfc9b41d44cd8df2a2f8cd93.json similarity index 100% rename from node_modules/.cache/babel-loader/2038d66bc396b27adcfb34ef212e93da.json rename to node_modules/.cache/babel-loader/44f74c39cfc9b41d44cd8df2a2f8cd93.json diff --git a/node_modules/.cache/babel-loader/655b4b57f6b174b63675c53c06c259e4.json b/node_modules/.cache/babel-loader/4524754a6702ebf313cc1f390ddacf3d.json similarity index 100% rename from node_modules/.cache/babel-loader/655b4b57f6b174b63675c53c06c259e4.json rename to node_modules/.cache/babel-loader/4524754a6702ebf313cc1f390ddacf3d.json diff --git a/node_modules/.cache/babel-loader/452a49a441f1da38bbbcb68008d0dbf8.json b/node_modules/.cache/babel-loader/452a49a441f1da38bbbcb68008d0dbf8.json deleted file mode 100644 index ba6b0812..00000000 --- a/node_modules/.cache/babel-loader/452a49a441f1da38bbbcb68008d0dbf8.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 11\n }\n }), /*#__PURE__*/React.createElement(Switch, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 15\n }\n })))));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,SAASC,aAAT,QAA8B,4BAA9B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAEA,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAFA,eAGE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAGE,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEN,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHF,eAIE,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEC,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJF,eAKE,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALF,eAME,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANF,CAHF,CADF,CADF,CADF;AAkBD;;;;EApBmBX,S;;AAuBtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() {\n return (\n \n \n
\n \n \n \n {/* \n */}\n \n \n \n \n \n
\n
\n
\n );\n }\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/0d5c958b5ef3e9d04b7fcc2c9031bdc8.json b/node_modules/.cache/babel-loader/4533ae95db7653ad37011103a49b052a.json similarity index 100% rename from node_modules/.cache/babel-loader/0d5c958b5ef3e9d04b7fcc2c9031bdc8.json rename to node_modules/.cache/babel-loader/4533ae95db7653ad37011103a49b052a.json diff --git a/node_modules/.cache/babel-loader/6f8c921146e73a55a1996f0d55e12e0c.json b/node_modules/.cache/babel-loader/4542793fe080bf34d9044209389c01d5.json similarity index 100% rename from node_modules/.cache/babel-loader/6f8c921146e73a55a1996f0d55e12e0c.json rename to node_modules/.cache/babel-loader/4542793fe080bf34d9044209389c01d5.json diff --git a/node_modules/.cache/babel-loader/299919cd022a868e59373d44b256d71a.json b/node_modules/.cache/babel-loader/45472e88a576f26c7cbef1406c2d11cb.json similarity index 100% rename from node_modules/.cache/babel-loader/299919cd022a868e59373d44b256d71a.json rename to node_modules/.cache/babel-loader/45472e88a576f26c7cbef1406c2d11cb.json diff --git a/node_modules/.cache/babel-loader/4558384d4f936db9371a64234ef4476b.json b/node_modules/.cache/babel-loader/4558384d4f936db9371a64234ef4476b.json deleted file mode 100644 index 74243de4..00000000 --- a/node_modules/.cache/babel-loader/4558384d4f936db9371a64234ef4476b.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = function Navigationbar() {\n var navbar_options = /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 25\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 28\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 28\n }\n }, \"Simulator\"))))))));\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 64,\n columnNumber: 5\n }\n }, _this.state.isAuthenticated ? navbar_options : null);\n};\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","navbar_options","textDecoration","state","isAuthenticated"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;AAkBA,IAAMC,aAAa,GAAG,SAAhBA,aAAgB,GAAM;AAC1B,MAAMC,cAAc,gBAClB,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACA,oBAAC,MAAD;AAAQ,IAAA,MAAM,EAAC,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AA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aADJ,CAPF,eAYE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,GAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CAZF,CADH,CANV,CADJ,CADA,CADA,CADF;AAoCA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACI,KAAI,CAACC,KAAL,CAAWC,eAAX,GACAH,cADA,GAIF,IALF,CADF;AAUD,CA/CD;;AAgDA,eAAeD,aAAf","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nconst Navigationbar = () => {\n const navbar_options = (\n \n \n \n \n \n \n \n );\n return (\n
\n { this.state.isAuthenticated ? (\n navbar_options\n )\n :\n null\n }\n
\n );\n};\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/459020bc0a20c552fcc279e08ada8bc7.json b/node_modules/.cache/babel-loader/459020bc0a20c552fcc279e08ada8bc7.json deleted file mode 100644 index 8f74ac8a..00000000 --- a/node_modules/.cache/babel-loader/459020bc0a20c552fcc279e08ada8bc7.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/NavigationBar.js\";\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nimport './NavigationBar.css';\n\nvar NavigationBar = function NavigationBar(props) {\n return /*#__PURE__*/React.createElement(\"header\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 7,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"logo\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 9,\n columnNumber: 11\n }\n }), /*#__PURE__*/React.createElement(\"nav\", {\n className: \"navigation-items\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 12,\n columnNumber: 11\n }\n }));\n};\n\nexport default NavigationBar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/NavigationBar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","styled","NavigationBar","props"],"mappings":";;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,qBAAP;;AACA,IAAMC,aAAa,GAAE,SAAfA,aAAe,CAAAC,KAAK;AAAA,sBAEpB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAEI;AAAK,IAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAFJ,eAKI;AAAK,IAAA,SAAS,EAAC,kBAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IALJ,CAFoB;AAAA,CAA1B;;AAcE,eAAeD,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nimport './NavigationBar.css';\nconst NavigationBar= props => (\n \n
\n \n
\n {/* your logo */}\n
\n \n \n
\n \n );\n export default NavigationBar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/f9576a29ecb92e900123a945893b4642.json b/node_modules/.cache/babel-loader/45a63b5312a6e28903feca8189de9a34.json similarity index 100% rename from node_modules/.cache/babel-loader/f9576a29ecb92e900123a945893b4642.json rename to node_modules/.cache/babel-loader/45a63b5312a6e28903feca8189de9a34.json diff --git a/node_modules/.cache/babel-loader/57dbd2c36fc5234511d6a0a5dd083aa4.json b/node_modules/.cache/babel-loader/45fcd1d16230472d15c078fb1d9c8646.json similarity index 100% rename from node_modules/.cache/babel-loader/57dbd2c36fc5234511d6a0a5dd083aa4.json rename to node_modules/.cache/babel-loader/45fcd1d16230472d15c078fb1d9c8646.json diff --git a/node_modules/.cache/babel-loader/e72dc367a3197e5a67ad10f2f35f48a1.json b/node_modules/.cache/babel-loader/45fec8e3382bc959d5d59c8c2228286e.json similarity index 100% rename from node_modules/.cache/babel-loader/e72dc367a3197e5a67ad10f2f35f48a1.json rename to node_modules/.cache/babel-loader/45fec8e3382bc959d5d59c8c2228286e.json diff --git a/node_modules/.cache/babel-loader/a8442fd17ae137eb34a54e10a67ceaa6.json b/node_modules/.cache/babel-loader/467b4b99dd183196482e9ffb224fd769.json similarity index 100% rename from node_modules/.cache/babel-loader/a8442fd17ae137eb34a54e10a67ceaa6.json rename to node_modules/.cache/babel-loader/467b4b99dd183196482e9ffb224fd769.json diff --git a/node_modules/.cache/babel-loader/3738a770e6ead1ff1bd7de1f7de7e9ce.json b/node_modules/.cache/babel-loader/46cc4805aa0bcbff83676241b7ada79b.json similarity index 100% rename from node_modules/.cache/babel-loader/3738a770e6ead1ff1bd7de1f7de7e9ce.json rename to node_modules/.cache/babel-loader/46cc4805aa0bcbff83676241b7ada79b.json diff --git a/node_modules/.cache/babel-loader/46f5908518e0362bef3a2acd82546a74.json b/node_modules/.cache/babel-loader/46f5908518e0362bef3a2acd82546a74.json deleted file mode 100644 index 38b13000..00000000 --- a/node_modules/.cache/babel-loader/46f5908518e0362bef3a2acd82546a74.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var authenticated = this.props.isLoggedIn;\n var login = this.props.login;\n console.log(\"riddhi\", login);\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 5\n }\n }, authenticated ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 33\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 53,\n columnNumber: 33\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 58,\n columnNumber: 33\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 63,\n columnNumber: 33\n }\n }, \"Logout\")))))))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 76,\n columnNumber: 4\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 77,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 78,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 79,\n columnNumber: 9\n }\n }, \"Login\")))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","authenticated","props","isLoggedIn","login","console","log","textDecoration","submit"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AACN,UAAMC,aAAa,GAAG,KAAKC,KAAL,CAAWC,UAAjC;AACA,UAAMC,KAAK,GAAG,KAAKF,KAAL,CAAWE,KAAzB;AACAC,MAAAA,OAAO,CAACC,GAAR,CAAY,QAAZ,EAAqBF,KAArB;AAEF,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACKH,aAAa,gBACd,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA,oBAAC,MAAD;AAAQ,QAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD,CAAQ,QAAR;AAAiB,QAAA,EAAE,EAAC,kBAApB;AAA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BAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA6C,QAAA,KAAK,EAAC,OAAnD;AAA2D,QAAA,EAAE,EAAC,GAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADJ,CAZF,eAiBE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKC,MAA1D;AAAkE,QAAA,KAAK,EAAC,QAAxE;AAAiF,QAAA,EAAE,EAAC,GAApF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBADJ,CAjBF,CADF,CANV,CADJ,CADF,CADA,CADc,gBA0CnB;AAAK,QAAA,EAAE,EAAC,QAAR;AAAiB,QAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAED,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKH,KAA1D;AAAiE,QAAA,KAAK,EAAC,OAAvE;AAA+E,QAAA,EAAE,EAAC,EAAlF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CADF,CADC,CA3CC,CADF;AAyDD;;;;EA/D2Bd,S;;AAiE5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const authenticated = this.props.isLoggedIn;\n const login = this.props.login;\n console.log(\"riddhi\",login);\n \n return (\n
\n {authenticated ? ( \n \n \n \n \n \n \n \n )\n :\n (
\n
    \n
  • \n \n Login\n \n \n
  • \n
\n
) }\n \n
\n )\n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/8f8aca0dec48681fa0bf6e06c5e4a259.json b/node_modules/.cache/babel-loader/476106c5c23be1a00ec416ac2041d652.json similarity index 100% rename from node_modules/.cache/babel-loader/8f8aca0dec48681fa0bf6e06c5e4a259.json rename to node_modules/.cache/babel-loader/476106c5c23be1a00ec416ac2041d652.json diff --git a/node_modules/.cache/babel-loader/47ed7bbc1b9c4df298e3982bdb5946b1.json b/node_modules/.cache/babel-loader/47ed7bbc1b9c4df298e3982bdb5946b1.json deleted file mode 100644 index c5ca8c68..00000000 --- a/node_modules/.cache/babel-loader/47ed7bbc1b9c4df298e3982bdb5946b1.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Switch, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 15\n }\n })))));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAGE,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEN,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHF,eAIE,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEC,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJF,eAKE,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALF,eAME,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANF,CADF,CADF,CADF,CADF;AAgBD;;;;EAlBmBX,S;;AAqBtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() {\n return (\n \n \n
\n \n {/* \n */}\n \n \n \n \n \n
\n
\n
\n );\n }\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/4803d3d10c8b2b6004b80bac9fd19a57.json b/node_modules/.cache/babel-loader/4803d3d10c8b2b6004b80bac9fd19a57.json deleted file mode 100644 index 7598040d..00000000 --- a/node_modules/.cache/babel-loader/4803d3d10c8b2b6004b80bac9fd19a57.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var authenticated = this.props.isLoggedIn;\n console.log(\"riddhi\", authenticated);\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 5\n }\n }, authenticated ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 33\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 33\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 33\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 61,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"islogout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 33\n }\n }, \"Logout\")))))))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 75,\n columnNumber: 4\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 76,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 77,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 78,\n columnNumber: 9\n }\n }, \"Login\")))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","authenticated","props","isLoggedIn","console","log","textDecoration","submit","login"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA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AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAED,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKE,KAA1D;AAAiE,QAAA,KAAK,EAAC,OAAvE;AAA+E,QAAA,EAAE,EAAC,EAAlF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CADF,CADC,CA3CC,CADF;AAyDD;;;;EA9D2BlB,S;;AAgE5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const authenticated = this.props.isLoggedIn;\n console.log(\"riddhi\",authenticated);\n \n return (\n
\n {authenticated ? ( \n \n \n \n \n \n \n \n )\n :\n (
\n
    \n
  • \n \n Login\n \n \n
  • \n
\n
) }\n \n
\n )\n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/5fa24374411f27d5f5546bbb16604e84.json b/node_modules/.cache/babel-loader/4823a1e5cf07a48cf6940b25c42999ac.json similarity index 100% rename from node_modules/.cache/babel-loader/5fa24374411f27d5f5546bbb16604e84.json rename to node_modules/.cache/babel-loader/4823a1e5cf07a48cf6940b25c42999ac.json diff --git a/node_modules/.cache/babel-loader/2ff1dba4cdfb3ee365da5d644481b910.json b/node_modules/.cache/babel-loader/483f9b8ed305a446107eaf64b50a1518.json similarity index 100% rename from node_modules/.cache/babel-loader/2ff1dba4cdfb3ee365da5d644481b910.json rename to node_modules/.cache/babel-loader/483f9b8ed305a446107eaf64b50a1518.json diff --git a/node_modules/.cache/babel-loader/8038ca48f11f065c466ee3a0f1fa5b91.json b/node_modules/.cache/babel-loader/488316db197416ae6f39e7ce10bd72af.json similarity index 100% rename from node_modules/.cache/babel-loader/8038ca48f11f065c466ee3a0f1fa5b91.json rename to node_modules/.cache/babel-loader/488316db197416ae6f39e7ce10bd72af.json diff --git a/node_modules/.cache/babel-loader/1dc0b7ed1ef93fbfd6961b99e5ad21d7.json b/node_modules/.cache/babel-loader/48c1157afb148a03ddbc6c45759fa5ae.json similarity index 100% rename from node_modules/.cache/babel-loader/1dc0b7ed1ef93fbfd6961b99e5ad21d7.json rename to node_modules/.cache/babel-loader/48c1157afb148a03ddbc6c45759fa5ae.json diff --git a/node_modules/.cache/babel-loader/ba8214d5e330bba6748e6d541646233a.json b/node_modules/.cache/babel-loader/49fec2d58e533ea691436ca870bc35e9.json similarity index 100% rename from node_modules/.cache/babel-loader/ba8214d5e330bba6748e6d541646233a.json rename to node_modules/.cache/babel-loader/49fec2d58e533ea691436ca870bc35e9.json diff --git a/node_modules/.cache/babel-loader/4a00ac1023fad6bbd2b8fd1e85684d75.json b/node_modules/.cache/babel-loader/4a00ac1023fad6bbd2b8fd1e85684d75.json deleted file mode 100644 index 76da8190..00000000 --- a/node_modules/.cache/babel-loader/4a00ac1023fad6bbd2b8fd1e85684d75.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n console.log(\"riddhi\", this.isLoggedIn);\n var options = this.props.isLoggedIn ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 49,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 54,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 41\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 59,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 60,\n columnNumber: 41\n }\n }, \"Logout\"))))) : null;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 76,\n columnNumber: 9\n }\n }, options);\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","console","log","isLoggedIn","options","props","textDecoration","submit"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AAENC,MAAAA,OAAO,CAACC,GAAR,CAAY,QAAZ,EAAqB,KAAKC,UAA1B;AACH,UAAMC,OAAO,GAAG,KAAKC,KAAL,CAAWF,UAAX,gBACX,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAEQ;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACc;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,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oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKD,KAAL,CAAWE,MAAhE;AAAwE,QAAA,KAAK,EAAC,QAA9E;AAAuF,QAAA,EAAE,EAAC,GAA1F;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBADJ,CAjBJ,CAJR,CAPlB,CADW,GA0CX,IA1CL;AA6CD,0BACQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIH,OADJ,CADR;AAKC;;;;EAtD2Bd,S;;AAwD5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n \n console.log(\"riddhi\",this.isLoggedIn);\n const options = this.props.isLoggedIn ? \n \n \n
\n \n \n \n
\n
\n \n \n \n
    \n
  • \n \n Progress\n \n
  • \n \n
  • \n \n Tasks\n \n
  • \n
  • \n \n Simulator\n \n
  • \n
  • \n \n Logout\n \n
  • \n
\n \n \n
\n \n
\n \n :\n null\n \n \nreturn (\n
\n {options}\n
\n) \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/4a07db1ca1eb718849d8f67ded2ccbba.json b/node_modules/.cache/babel-loader/4a07db1ca1eb718849d8f67ded2ccbba.json deleted file mode 100644 index 49d9e220..00000000 --- a/node_modules/.cache/babel-loader/4a07db1ca1eb718849d8f67ded2ccbba.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/filler.js\";\n\nimport React from 'react';\nimport './filler.css';\n\nvar Filler = function Filler(props) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"filler\",\n style: {\n width: \"\".concat(props.percentage, \"%\")\n },\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 5,\n columnNumber: 12\n }\n });\n};\n\nexport default Filler;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/filler.js"],"names":["React","Filler","props","width","percentage"],"mappings":";;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAO,cAAP;;AAEA,IAAMC,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD,EAAW;AACtB,sBAAO;AAAK,IAAA,SAAS,EAAC,QAAf;AAAwB,IAAA,KAAK,EAAE;AAAEC,MAAAA,KAAK,YAAKD,KAAK,CAACE,UAAX;AAAP,KAA/B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAP;AACH,CAFD;;AAIA,eAAeH,MAAf","sourcesContent":["import React from 'react';\nimport './filler.css';\n\nconst Filler = (props) => {\n return
\n}\n\nexport default Filler;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/e83285984eac67c3f5eb75ef510f5b76.json b/node_modules/.cache/babel-loader/4a10bad8f647416ac6be973248bb3e1a.json similarity index 100% rename from node_modules/.cache/babel-loader/e83285984eac67c3f5eb75ef510f5b76.json rename to node_modules/.cache/babel-loader/4a10bad8f647416ac6be973248bb3e1a.json diff --git a/node_modules/.cache/babel-loader/4a694f9484564d5e729ee56d85b1cda3.json b/node_modules/.cache/babel-loader/4a694f9484564d5e729ee56d85b1cda3.json deleted file mode 100644 index d0320916..00000000 --- a/node_modules/.cache/babel-loader/4a694f9484564d5e729ee56d85b1cda3.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #9FFFCB;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #9FFFCB;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nvar Styles = styled.div(_templateObject());\nexport var Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Brand, {\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 7\n }\n }, \"Tutorial\"), /*#__PURE__*/React.createElement(Navbar.Toggle, {\n \"aria-controls\": \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 7\n }\n }), /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Nav.Item, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 21\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(Nav.Item, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 21\n }\n }, \"Task\"))))));\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","styled","Styles","div","Navigationbar"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,IAAMC,MAAM,GAAGD,MAAM,CAACE,GAAV,mBAAZ;AAiBA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;AAAA,sBAC3B,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD;AAAQ,IAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD,CAAQ,KAAR;AAAc,IAAA,IAAI,EAAC,GAAnB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBADF,eAEE,oBAAC,MAAD,CAAQ,MAAR;AAAe,qBAAc,kBAA7B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAFF,eAIE,oBAAC,MAAD,CAAQ,QAAR;AAAiB,IAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,GAAD;AAAK,IAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,GAAD,CAAK,IAAL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAU,oBAAC,GAAD,CAAK,IAAL;AAAU,IAAA,IAAI,EAAC,WAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAAV,CADF,eAEE,oBAAC,GAAD,CAAK,IAAL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAU,oBAAC,GAAD,CAAK,IAAL;AAAU,IAAA,IAAI,EAAC,QAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAAV,CAFF,CADF,CAJF,CADF,CAD2B;AAAA,CAAtB","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #9FFFCB;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #9FFFCB;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nexport const Navigationbar = () => (\n \n \n Tutorial\n \n \n \n \n \n \n \n)"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/d470d77c09069a0baaa69ffd735eb3ba.json b/node_modules/.cache/babel-loader/4a8015f26c5417e38b27eac630e1b689.json similarity index 100% rename from node_modules/.cache/babel-loader/d470d77c09069a0baaa69ffd735eb3ba.json rename to node_modules/.cache/babel-loader/4a8015f26c5417e38b27eac630e1b689.json diff --git a/node_modules/.cache/babel-loader/4af20070e35e7825bfe3baf59e4aab6c.json b/node_modules/.cache/babel-loader/4af20070e35e7825bfe3baf59e4aab6c.json deleted file mode 100644 index 919116fc..00000000 --- a/node_modules/.cache/babel-loader/4af20070e35e7825bfe3baf59e4aab6c.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport Navigationbar from './Navigationbar';\nimport './Simulator.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"http://localhost:4200\",\n target: \"top_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 13\n }\n }, \" Console \"), /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"http://localhost:8888\",\n target: \"bottom_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 13\n }\n }, \" Simulator \"), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"top_\",\n src: \"\",\n width: \"100%\",\n height: \"375px\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"bottom_\",\n src: \"\",\n width: \"100%\",\n height: \"375px\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 15\n }\n }));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Navigationbar","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;AACA,OAAOC,aAAP,MAA0B,iB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button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport Navigationbar from './Navigationbar';\nimport './Simulator.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n \n Console \n Simulator \n \n \n \n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/5299d16b2c3792a89e16d83f34db3b5d.json b/node_modules/.cache/babel-loader/4af392b7273a755f56eafe4f08e3e135.json similarity index 100% rename from node_modules/.cache/babel-loader/5299d16b2c3792a89e16d83f34db3b5d.json rename to node_modules/.cache/babel-loader/4af392b7273a755f56eafe4f08e3e135.json diff --git a/node_modules/.cache/babel-loader/75933a3e9f14e88daeb83eac34170680.json b/node_modules/.cache/babel-loader/4b34aa98cade6e8a8c629106bdd896f4.json similarity index 100% rename from node_modules/.cache/babel-loader/75933a3e9f14e88daeb83eac34170680.json rename to node_modules/.cache/babel-loader/4b34aa98cade6e8a8c629106bdd896f4.json diff --git a/node_modules/.cache/babel-loader/ef387b6466e6f02c81b61c96a4bf4679.json b/node_modules/.cache/babel-loader/4b375ef2d85f25649e9d6aeca7775fb2.json similarity index 100% rename from node_modules/.cache/babel-loader/ef387b6466e6f02c81b61c96a4bf4679.json rename to node_modules/.cache/babel-loader/4b375ef2d85f25649e9d6aeca7775fb2.json diff --git a/node_modules/.cache/babel-loader/4c296325d875c4685e29e462c597e41a.json b/node_modules/.cache/babel-loader/4c296325d875c4685e29e462c597e41a.json deleted file mode 100644 index 9bea73c2..00000000 --- a/node_modules/.cache/babel-loader/4c296325d875c4685e29e462c597e41a.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 225,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 247,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 252,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 22\n }\n }, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 264,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 267,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,SAASC,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AAA,QADJ,CATa,eAab;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAba,CAAjB;AAoBE,0BACE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIkF,QADJ,CADF;AAMH;;;;EA3Qe7F,S;;AA6QlB,eAAeI,UAAU,CAACQ,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n \n
\n
    \n \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n \n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/576ef0c3f54c2c9f28f870a88a43515e.json b/node_modules/.cache/babel-loader/4c3c87f4432988a89661665d2edf1aa4.json similarity index 100% rename from node_modules/.cache/babel-loader/576ef0c3f54c2c9f28f870a88a43515e.json rename to node_modules/.cache/babel-loader/4c3c87f4432988a89661665d2edf1aa4.json diff --git a/node_modules/.cache/babel-loader/016a66b26311a27743357171e589e685.json b/node_modules/.cache/babel-loader/4ca8e13279a60be9da1edaae1b3ca725.json similarity index 100% rename from node_modules/.cache/babel-loader/016a66b26311a27743357171e589e685.json rename to node_modules/.cache/babel-loader/4ca8e13279a60be9da1edaae1b3ca725.json diff --git a/node_modules/.cache/babel-loader/4d4f5ef71f46e9085a8d05c4cdb96544.json b/node_modules/.cache/babel-loader/4d4f5ef71f46e9085a8d05c4cdb96544.json deleted file mode 100644 index 5ac33fea..00000000 --- a/node_modules/.cache/babel-loader/4d4f5ef71f46e9085a8d05c4cdb96544.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\nexport var Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 16\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 28\n }\n }, \"Tasks\"))))))));\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","textDecoration"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;AAiBA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;AAAA,sBAC3B,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD;AAAQ,IAAA,M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;AAAA;AAAA;AAAA;AAAA,aADJ,CAPF,CADH,CARV,CADJ,CADA,CADF,CAD2B;AAAA,CAAtB","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nexport const Navigationbar = () => (\n \n \n \n \n \n \n \n)"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/e89852d9cf88443d88a6bc30bd4c51b8.json b/node_modules/.cache/babel-loader/4d762e7e31fd1b99aff27da21a2d8308.json similarity index 100% rename from node_modules/.cache/babel-loader/e89852d9cf88443d88a6bc30bd4c51b8.json rename to node_modules/.cache/babel-loader/4d762e7e31fd1b99aff27da21a2d8308.json diff --git a/node_modules/.cache/babel-loader/4dd03961ad094c4d0214838cd229baef.json b/node_modules/.cache/babel-loader/4dd03961ad094c4d0214838cd229baef.json deleted file mode 100644 index 1007b2a8..00000000 --- a/node_modules/.cache/babel-loader/4dd03961ad094c4d0214838cd229baef.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 225,\n columnNumber: 16\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 237,\n columnNumber: 19\n }\n }, \"Login\")))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 248,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 252,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 253,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 24\n }\n }, options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 275,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n isLoggedIn: this.state.isAuthenticated,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 276,\n columnNumber: 11\n }\n }), mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","isNavbar","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,aAAP,MAA2B,iBAA3B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmB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,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CANe,eASf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QATe,CAAjB;AAcA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAe,QAAA,UAAU,EAAE,KAAKQ,KAAL,CAAWE,eAAtC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,EAEIyE,QAFJ,CAFF;AASH;;;;EAzQe/F,S;;AA2QlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n \n
\n \n
    \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n \n
\n
    \n
  • \n \n Login\n \n \n
  • \n
\n
\n
\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n \n {mainBody}\n \n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/40e4ad82d15b34a93ae6ff71499b2c5f.json b/node_modules/.cache/babel-loader/4de517666af903b60a116900bedb12e1.json similarity index 100% rename from node_modules/.cache/babel-loader/40e4ad82d15b34a93ae6ff71499b2c5f.json rename to node_modules/.cache/babel-loader/4de517666af903b60a116900bedb12e1.json diff --git a/node_modules/.cache/babel-loader/f97e0de5d7534c9e93d3fc8e6fac0de4.json b/node_modules/.cache/babel-loader/4e22cea1d53e96362af08972968676d5.json similarity index 100% rename from node_modules/.cache/babel-loader/f97e0de5d7534c9e93d3fc8e6fac0de4.json rename to node_modules/.cache/babel-loader/4e22cea1d53e96362af08972968676d5.json diff --git a/node_modules/.cache/babel-loader/4f15afe84e305fa3ca5be9c039520748.json b/node_modules/.cache/babel-loader/4f15afe84e305fa3ca5be9c039520748.json deleted file mode 100644 index 0f58271b..00000000 --- a/node_modules/.cache/babel-loader/4f15afe84e305fa3ca5be9c039520748.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';\n\nvar _slicedToArray = require(\"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/slicedToArray\");\n\nvar chalk = require('chalk');\n\nvar friendlySyntaxErrorLabel = 'Syntax error:';\n\nfunction isLikelyASyntaxError(message) {\n return message.indexOf(friendlySyntaxErrorLabel) !== -1;\n} // Cleans up webpack error messages.\n// eslint-disable-next-line no-unused-vars\n\n\nfunction formatMessage(message, isError) {\n var lines = message.split('\\n'); // Strip Webpack-added headers off errors/warnings\n // https://github.com/webpack/webpack/blob/master/lib/ModuleError.js\n\n lines = lines.filter(function (line) {\n return !/Module [A-z ]+\\(from/.test(line);\n }); // Transform parsing error into syntax error\n // TODO: move this to our ESLint formatter?\n\n lines = lines.map(function (line) {\n var parsingError = /Line (\\d+):(?:(\\d+):)?\\s*Parsing error: (.+)$/.exec(line);\n\n if (!parsingError) {\n return line;\n }\n\n var _parsingError = _slicedToArray(parsingError, 4),\n errorLine = _parsingError[1],\n errorColumn = _parsingError[2],\n errorMessage = _parsingError[3];\n\n return \"\".concat(friendlySyntaxErrorLabel, \" \").concat(errorMessage, \" (\").concat(errorLine, \":\").concat(errorColumn, \")\");\n });\n message = lines.join('\\n'); // Smoosh syntax errors (commonly found in CSS)\n\n message = message.replace(/SyntaxError\\s+\\((\\d+):(\\d+)\\)\\s*(.+?)\\n/g, \"\".concat(friendlySyntaxErrorLabel, \" $3 ($1:$2)\\n\")); // Remove columns from ESLint formatter output (we added these for more\n // accurate syntax errors)\n\n message = message.replace(/Line (\\d+):\\d+:/g, 'Line $1:'); // Clean up export errors\n\n message = message.replace(/^.*export '(.+?)' was not found in '(.+?)'.*$/gm, \"Attempted import error: '$1' is not exported from '$2'.\");\n message = message.replace(/^.*export 'default' \\(imported as '(.+?)'\\) was not found in '(.+?)'.*$/gm, \"Attempted import error: '$2' does not contain a default export (imported as '$1').\");\n message = message.replace(/^.*export '(.+?)' \\(imported as '(.+?)'\\) was not found in '(.+?)'.*$/gm, \"Attempted import error: '$1' is not exported from '$3' (imported as '$2').\");\n lines = message.split('\\n'); // Remove leading newline\n\n if (lines.length > 2 && lines[1].trim() === '') {\n lines.splice(1, 1);\n } // Clean up file name\n\n\n lines[0] = lines[0].replace(/^(.*) \\d+:\\d+-\\d+$/, '$1'); // Cleans up verbose \"module not found\" messages for files and packages.\n\n if (lines[1] && lines[1].indexOf('Module not found: ') === 0) {\n lines = [lines[0], lines[1].replace('Error: ', '').replace('Module not found: Cannot find file:', 'Cannot find file:')];\n } // Add helpful message for users trying to use Sass for the first time\n\n\n if (lines[1] && lines[1].match(/Cannot find module.+node-sass/)) {\n lines[1] = 'To import Sass files, you first need to install node-sass.\\n';\n lines[1] += 'Run `npm install node-sass` or `yarn add node-sass` inside your workspace.';\n }\n\n lines[0] = chalk.inverse(lines[0]);\n message = lines.join('\\n'); // Internal stacks are generally useless so we strip them... with the\n // exception of stacks containing `webpack:` because they're normally\n // from user code generated by Webpack. For more information see\n // https://github.com/facebook/create-react-app/pull/1050\n\n message = message.replace(/^\\s*at\\s((?!webpack:).)*:\\d+:\\d+[\\s)]*(\\n|$)/gm, ''); // at ... ...:x:y\n\n message = message.replace(/^\\s*at\\s(\\n|$)/gm, ''); // at \n\n lines = message.split('\\n'); // Remove duplicated newlines\n\n lines = lines.filter(function (line, index, arr) {\n return index === 0 || line.trim() !== '' || line.trim() !== arr[index - 1].trim();\n }); // Reassemble the message\n\n message = lines.join('\\n');\n return message.trim();\n}\n\nfunction formatWebpackMessages(json) {\n var formattedErrors = json.errors.map(function (message) {\n return formatMessage(message, true);\n });\n var formattedWarnings = json.warnings.map(function (message) {\n return formatMessage(message, false);\n });\n var result = {\n errors: formattedErrors,\n warnings: formattedWarnings\n };\n\n if (result.errors.some(isLikelyASyntaxError)) {\n // If there are any syntax errors, show just them.\n result.errors = result.errors.filter(isLikelyASyntaxError);\n }\n\n return result;\n}\n\nmodule.exports = formatWebpackMessages;","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/787189eb19f12d6fcc28d534ebd983b6.json b/node_modules/.cache/babel-loader/4f2d92e2110254a1690ee81d1f43954a.json similarity index 100% rename from node_modules/.cache/babel-loader/787189eb19f12d6fcc28d534ebd983b6.json rename to node_modules/.cache/babel-loader/4f2d92e2110254a1690ee81d1f43954a.json diff --git a/node_modules/.cache/babel-loader/4f51a010adfd551b9861f21b66bb7f68.json b/node_modules/.cache/babel-loader/4f51a010adfd551b9861f21b66bb7f68.json deleted file mode 100644 index 5383b6ac..00000000 --- a/node_modules/.cache/babel-loader/4f51a010adfd551b9861f21b66bb7f68.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 27\n }\n }), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 237,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 238,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 248,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 253,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 254,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 24\n }\n }, options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 278,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","isNavbar","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,aAAP,MAA2B,iBAA3B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AASJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UARlBC,KAQkB,GARV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAA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;AAAA,QAH/B,EAIO,CAAC,KAAKD,KAAL,CAAWK,MAAZ,iBAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAJ7B,EAKO,KAAKL,KAAL,CAAWK,MAAX,iBAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAL5B,CAFF,CADS,GAYL,IAZd;AAcE,UAAMsE,QAAQ,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAEdH,OAFc,EAGdE,SAHc,eAIf;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAElF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAJe,eAOf;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAPe,eAUf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAVe,CAAjB;AAeA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAGImF,QAHJ,CAFF;AAUH;;;;EA7Qe/F,S;;AA+QlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? (\n
\n
    \n \n
  • \n \n Logout\n \n
  • \n\n
\n
\n ):(\n \n \n
\n \n
    \n
  • \n \n Login\n \n
  • \n
\n
\n \n )\n \n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n \n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n \n \n {mainBody}\n \n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/4f635ea83a9f69ba5dbaf7b003a63dd7.json b/node_modules/.cache/babel-loader/4f635ea83a9f69ba5dbaf7b003a63dd7.json new file mode 100644 index 00000000..ff98e758 --- /dev/null +++ b/node_modules/.cache/babel-loader/4f635ea83a9f69ba5dbaf7b003a63dd7.json @@ -0,0 +1 @@ +{"ast":null,"code":"/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';\n\nvar _slicedToArray = require(\"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/slicedToArray\");\n\nvar chalk = require('chalk');\n\nvar friendlySyntaxErrorLabel = 'Syntax error:';\n\nfunction isLikelyASyntaxError(message) {\n return message.indexOf(friendlySyntaxErrorLabel) !== -1;\n} // Cleans up webpack error messages.\n// eslint-disable-next-line no-unused-vars\n\n\nfunction formatMessage(message, isError) {\n var lines = message.split('\\n'); // Strip Webpack-added headers off errors/warnings\n // https://github.com/webpack/webpack/blob/master/lib/ModuleError.js\n\n lines = lines.filter(function (line) {\n return !/Module [A-z ]+\\(from/.test(line);\n }); // Transform parsing error into syntax error\n // TODO: move this to our ESLint formatter?\n\n lines = lines.map(function (line) {\n var parsingError = /Line (\\d+):(?:(\\d+):)?\\s*Parsing error: (.+)$/.exec(line);\n\n if (!parsingError) {\n return line;\n }\n\n var _parsingError = _slicedToArray(parsingError, 4),\n errorLine = _parsingError[1],\n errorColumn = _parsingError[2],\n errorMessage = _parsingError[3];\n\n return \"\".concat(friendlySyntaxErrorLabel, \" \").concat(errorMessage, \" (\").concat(errorLine, \":\").concat(errorColumn, \")\");\n });\n message = lines.join('\\n'); // Smoosh syntax errors (commonly found in CSS)\n\n message = message.replace(/SyntaxError\\s+\\((\\d+):(\\d+)\\)\\s*(.+?)\\n/g, \"\".concat(friendlySyntaxErrorLabel, \" $3 ($1:$2)\\n\")); // Remove columns from ESLint formatter output (we added these for more\n // accurate syntax errors)\n\n message = message.replace(/Line (\\d+):\\d+:/g, 'Line $1:'); // Clean up export errors\n\n message = message.replace(/^.*export '(.+?)' was not found in '(.+?)'.*$/gm, \"Attempted import error: '$1' is not exported from '$2'.\");\n message = message.replace(/^.*export 'default' \\(imported as '(.+?)'\\) was not found in '(.+?)'.*$/gm, \"Attempted import error: '$2' does not contain a default export (imported as '$1').\");\n message = message.replace(/^.*export '(.+?)' \\(imported as '(.+?)'\\) was not found in '(.+?)'.*$/gm, \"Attempted import error: '$1' is not exported from '$3' (imported as '$2').\");\n lines = message.split('\\n'); // Remove leading newline\n\n if (lines.length > 2 && lines[1].trim() === '') {\n lines.splice(1, 1);\n } // Clean up file name\n\n\n lines[0] = lines[0].replace(/^(.*) \\d+:\\d+-\\d+$/, '$1'); // Cleans up verbose \"module not found\" messages for files and packages.\n\n if (lines[1] && lines[1].indexOf('Module not found: ') === 0) {\n lines = [lines[0], lines[1].replace('Error: ', '').replace('Module not found: Cannot find file:', 'Cannot find file:')];\n } // Add helpful message for users trying to use Sass for the first time\n\n\n if (lines[1] && lines[1].match(/Cannot find module.+node-sass/)) {\n lines[1] = 'To import Sass files, you first need to install node-sass.\\n';\n lines[1] += 'Run `npm install node-sass` or `yarn add node-sass` inside your workspace.';\n }\n\n lines[0] = chalk.inverse(lines[0]);\n message = lines.join('\\n'); // Internal stacks are generally useless so we strip them... with the\n // exception of stacks containing `webpack:` because they're normally\n // from user code generated by Webpack. For more information see\n // https://github.com/facebook/create-react-app/pull/1050\n\n message = message.replace(/^\\s*at\\s((?!webpack:).)*:\\d+:\\d+[\\s)]*(\\n|$)/gm, ''); // at ... ...:x:y\n\n message = message.replace(/^\\s*at\\s(\\n|$)/gm, ''); // at \n\n lines = message.split('\\n'); // Remove duplicated newlines\n\n lines = lines.filter(function (line, index, arr) {\n return index === 0 || line.trim() !== '' || line.trim() !== arr[index - 1].trim();\n }); // Reassemble the message\n\n message = lines.join('\\n');\n return message.trim();\n}\n\nfunction formatWebpackMessages(json) {\n var formattedErrors = json.errors.map(function (message) {\n return formatMessage(message, true);\n });\n var formattedWarnings = json.warnings.map(function (message) {\n return formatMessage(message, false);\n });\n var result = {\n errors: formattedErrors,\n warnings: formattedWarnings\n };\n\n if (result.errors.some(isLikelyASyntaxError)) {\n // If there are any syntax errors, show just them.\n result.errors = result.errors.filter(isLikelyASyntaxError);\n }\n\n return result;\n}\n\nmodule.exports = formatWebpackMessages;","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/c36cbd44f5319902b331564c02ff2d66.json b/node_modules/.cache/babel-loader/4f8bcf7e0ff3fdf73dab412f3bbe7aaf.json similarity index 100% rename from node_modules/.cache/babel-loader/c36cbd44f5319902b331564c02ff2d66.json rename to node_modules/.cache/babel-loader/4f8bcf7e0ff3fdf73dab412f3bbe7aaf.json diff --git a/node_modules/.cache/babel-loader/45d25968914885bed46fb88455447f7f.json b/node_modules/.cache/babel-loader/4fe8e3d3e7e3dd702d8991ea7743722d.json similarity index 100% rename from node_modules/.cache/babel-loader/45d25968914885bed46fb88455447f7f.json rename to node_modules/.cache/babel-loader/4fe8e3d3e7e3dd702d8991ea7743722d.json diff --git a/node_modules/.cache/babel-loader/1d27f5b5036ee8415f6902f8bd6e17f0.json b/node_modules/.cache/babel-loader/506823a5691ea3ccae61eecc4d7a7d37.json similarity index 100% rename from node_modules/.cache/babel-loader/1d27f5b5036ee8415f6902f8bd6e17f0.json rename to node_modules/.cache/babel-loader/506823a5691ea3ccae61eecc4d7a7d37.json diff --git a/node_modules/.cache/babel-loader/df8fcc8cfafe9c4996c64e246614927f.json b/node_modules/.cache/babel-loader/5091e852dc976ac70ebd2a553c0a3e96.json similarity index 100% rename from node_modules/.cache/babel-loader/df8fcc8cfafe9c4996c64e246614927f.json rename to node_modules/.cache/babel-loader/5091e852dc976ac70ebd2a553c0a3e96.json diff --git a/node_modules/.cache/babel-loader/5975ee61b251e4caa6663c3f1f993475.json b/node_modules/.cache/babel-loader/50a96322077042abb08335147456fb51.json similarity index 100% rename from node_modules/.cache/babel-loader/5975ee61b251e4caa6663c3f1f993475.json rename to node_modules/.cache/babel-loader/50a96322077042abb08335147456fb51.json diff --git a/node_modules/.cache/babel-loader/50cd5d2cfc4f5509aa9c43281403d109.json b/node_modules/.cache/babel-loader/50cd5d2cfc4f5509aa9c43281403d109.json deleted file mode 100644 index 4f721392..00000000 --- a/node_modules/.cache/babel-loader/50cd5d2cfc4f5509aa9c43281403d109.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var authenticated = this.props.isLoggedIn;\n console.log(\"riddhi\", authenticated);\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 5\n }\n }, authenticated ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 33\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 33\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 33\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 61,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 33\n }\n }, \"Logout\")))))))) : null);\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigation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GAApF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBADJ,CAjBF,CADF,CANV,CADJ,CADF,CADA,CADc,GA0CnB,IA3CC,CADF;AAgDD;;;;EArD2BjB,S;;AAuD5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const authenticated = this.props.isLoggedIn;\n console.log(\"riddhi\",authenticated);\n \n return (\n
\n {authenticated ? ( \n \n \n \n \n \n \n \n )\n :\n (null) }\n \n
\n )\n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/cc6930870d67e83ad2b38a2e41391a9c.json b/node_modules/.cache/babel-loader/50f8cb159b974a5892acac82836f236d.json similarity index 100% rename from node_modules/.cache/babel-loader/cc6930870d67e83ad2b38a2e41391a9c.json rename to node_modules/.cache/babel-loader/50f8cb159b974a5892acac82836f236d.json diff --git a/node_modules/.cache/babel-loader/e0098eff796970556b59a7646233dbb8.json b/node_modules/.cache/babel-loader/516d21405f8c77f728698a238b503dd8.json similarity index 100% rename from node_modules/.cache/babel-loader/e0098eff796970556b59a7646233dbb8.json rename to node_modules/.cache/babel-loader/516d21405f8c77f728698a238b503dd8.json diff --git a/node_modules/.cache/babel-loader/518ee187d8e7809baa67d7f3d0f4f6b2.json b/node_modules/.cache/babel-loader/518ee187d8e7809baa67d7f3d0f4f6b2.json deleted file mode 100644 index f75caf77..00000000 --- a/node_modules/.cache/babel-loader/518ee187d8e7809baa67d7f3d0f4f6b2.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/progress-bar.js\";\n\nimport React from 'react';\nimport Filler from './filler';\nimport Navigationbar from './Navigationbar';\nimport './progress-bar.css';\n\nvar ProgressBar = function ProgressBar(props) {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 8,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 9,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(\"div\", {\n className: \"progress-bar\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 10,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Filler, {\n percentage: props.percentage,\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 12,\n columnNumber: 13\n }\n })));\n};\n\nexport default ProgressBar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/progress-bar.js"],"names":["React","Filler","Navigationbar","ProgressBar","props","percentage"],"mappings":";;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,MAAP,MAAmB,UAAnB;AACA,OAAOC,aAAP,MAA0B,iBAA1B;AACA,OAAO,oBAAP;;AAEA,IAAMC,WAAW,GAAG,SAAdA,WAAc,CAACC,KAAD,EAAW;AAC3B,sBACI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IADJ,eAEA;AAAK,IAAA,SAAS,EAAC,cAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAEI,oBAAC,MAAD;AAAQ,IAAA,UAAU,EAAEA,KAAK,CAACC,UAA1B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAFJ,CAFA,CADJ;AASH,CAVD;;AAYA,eAAeF,WAAf","sourcesContent":["import React from 'react';\nimport Filler from './filler';\nimport Navigationbar from './Navigationbar';\nimport './progress-bar.css';\n\nconst ProgressBar = (props) => {\n return (\n
\n \n
\n \n \n
\n
\n )\n}\n\nexport default ProgressBar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/522205fba99579dafbe0d31993bf86b3.json b/node_modules/.cache/babel-loader/522205fba99579dafbe0d31993bf86b3.json deleted file mode 100644 index 6bbe9547..00000000 --- a/node_modules/.cache/babel-loader/522205fba99579dafbe0d31993bf86b3.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Switch, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 15\n }\n }))));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,SAASC,aAAT,QAA8B,4BAA9B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAEE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,eAII,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEN,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJJ,eAKI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEC,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALJ,eAMI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANJ,eASI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QATJ,CAFF,CADF,CADF;AAmBD;;;;EArBmBX,S;;AAwBtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() {\n return (\n \n \n \n \n \n {/* \n */}\n \n \n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/5236de83a1248f716f2a3a1ffc2e424b.json b/node_modules/.cache/babel-loader/5236de83a1248f716f2a3a1ffc2e424b.json deleted file mode 100644 index c211b06a..00000000 --- a/node_modules/.cache/babel-loader/5236de83a1248f716f2a3a1ffc2e424b.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 248,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 249,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 256,\n columnNumber: 24\n }\n }, options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 272,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n isLoggedIn: this.state.isAuthenticated,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 274,\n columnNumber: 11\n }\n }), mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","isNavbar","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,aAAP,MAA2B,iBAA3B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AASJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UARlBC,KAQkB,GARV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,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CAAWK,MAAZ,iBAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAJ7B,EAKO,KAAKL,KAAL,CAAWK,MAAX,iBAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAL5B,CAFF,CADS,GAYL,IAZd;AAcE,UAAMsE,QAAQ,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACdH,OADc,EAEdE,SAFc,eAGf;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAElF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAHe,eAMf;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CANe,eASf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QATe,CAAjB;AAcA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAEE,oBAAC,aAAD;AAAe,QAAA,UAAU,EAAE,KAAKQ,KAAL,CAAWE,eAAtC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAFF,EAGIyE,QAHJ,CAFF;AAUH;;;;EAvQe/F,S;;AAyQlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ?\n
\n
    \n
  • \n \n Logout\n \n
  • \n\n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n \n \n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n \n \n {mainBody}\n \n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/3f87fa44ed0e81b0ef13badb186bf49d.json b/node_modules/.cache/babel-loader/52765bb697a5f2e7b53f9bddfdafe9df.json similarity index 100% rename from node_modules/.cache/babel-loader/3f87fa44ed0e81b0ef13badb186bf49d.json rename to node_modules/.cache/babel-loader/52765bb697a5f2e7b53f9bddfdafe9df.json diff --git a/node_modules/.cache/babel-loader/5289e5f1d7e3fb8acc3ec9bc0605b4d4.json b/node_modules/.cache/babel-loader/5289e5f1d7e3fb8acc3ec9bc0605b4d4.json deleted file mode 100644 index b5319ffc..00000000 --- a/node_modules/.cache/babel-loader/5289e5f1d7e3fb8acc3ec9bc0605b4d4.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 225,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 247,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 252,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 22\n }\n }, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 264,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 277,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE;AAJF,KAOU;AAAA,QAETC,OAFS,GAEEP,KAFF,CAETO,OAFS;AAGhBC,IAAAA,OAAO,CAACC,GAAR,CAAYF,OAAZ;AACA,UAAKN,KAAL,CAAWS,SAAX,GAAuBH,OAAO,CAACI,GAAR,CAAY,YAAZ,CAAvB;AACAH,IAAAA,OAAO,CAACC,GAAR,CAAY,MAAKR,KAAL,CAAWS,SAAvB;AACA,UAAKE,KAAL,GAAa,gBAAb;AACA,UAAKC,IAAL,GAAY,qBAAZ;AACA,UAAKC,MAAL,GAAe,OAAf;;AACA,QAAI,MAAKA,MAAL,K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AA;AAAA;AAAA;AAAA;AAAA,QADJ,CALa,eAWb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAXa,CAAjB;AAkBE,0BACE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIkF,QADJ,CADF;AAMH;;;;EAzQe7F,S;;AA2QlB,eAAeI,UAAU,CAACQ,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n \n
\n
    \n \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n \n \n {simulator}\n \n
\n \n
\n \n \n \n
\n \n
\n \n
\n\n \n return (\n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/758c4c7176cf68389b1b9159ee752652.json b/node_modules/.cache/babel-loader/52a831ed1118a905e0a765c531b35e3d.json similarity index 100% rename from node_modules/.cache/babel-loader/758c4c7176cf68389b1b9159ee752652.json rename to node_modules/.cache/babel-loader/52a831ed1118a905e0a765c531b35e3d.json diff --git a/node_modules/.cache/babel-loader/52a992d5bfd410524c4476ec7eb6795d.json b/node_modules/.cache/babel-loader/52a992d5bfd410524c4476ec7eb6795d.json deleted file mode 100644 index 4d49edb8..00000000 --- a/node_modules/.cache/babel-loader/52a992d5bfd410524c4476ec7eb6795d.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n//import Navigationbar from './components/Navigationbar';\n\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 228,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 229,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 242,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 19\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 278,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 282,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 283,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 286,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 294,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 295,\n columnNumber: 11\n }\n }), mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;AACA;;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAC/C,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAwC;;AACxC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAA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B;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAVa,eAcb;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAda,eAkBb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAlBa,CAAjB;AAyBE,0BACE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,EAEIkF,QAFJ,CADF;AASH;;;;EA5Re7F,S;;AA8RlB,eAAeG,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n//import Navigationbar from './components/Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n
\n \n {mainBody}\n
\n \n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/03ba5b6fbead41d0e0d81565702d0c56.json b/node_modules/.cache/babel-loader/52b18534628e165da29cc45d1ec9e186.json similarity index 100% rename from node_modules/.cache/babel-loader/03ba5b6fbead41d0e0d81565702d0c56.json rename to node_modules/.cache/babel-loader/52b18534628e165da29cc45d1ec9e186.json diff --git a/node_modules/.cache/babel-loader/e1f49be71d3f554c14dfa4e74a320f43.json b/node_modules/.cache/babel-loader/52cb832a4afa2f22dafb742b21184627.json similarity index 100% rename from node_modules/.cache/babel-loader/e1f49be71d3f554c14dfa4e74a320f43.json rename to node_modules/.cache/babel-loader/52cb832a4afa2f22dafb742b21184627.json diff --git a/node_modules/.cache/babel-loader/5393da8e014925d49024b0cb8de0f191.json b/node_modules/.cache/babel-loader/5393da8e014925d49024b0cb8de0f191.json deleted file mode 100644 index f96f9244..00000000 --- a/node_modules/.cache/babel-loader/5393da8e014925d49024b0cb8de0f191.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 229,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 230,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 256,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 272,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 280,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 283,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 284,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 287,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 295,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MA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;AAAA;AAAA,sBACb;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACG;AAAM,QAAA,GAAG,EAAEnF,MAAX;AAAmB,QAAA,KAAK,EAAE,MAA1B;AAAkC,QAAA,MAAM,EAAE,MAA1C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADH,CADJ,EAIKgF,OAJL,CADa,EAQZE,SARY,eAUb;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAEjF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAVa,eAcb;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAda,eAkBb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAlBa,CAAjB;AAyBE,0BACE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIkF,QADJ,CADF;AAMH;;;;EA1Re9F,S;;AA4RlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/1445696a4a27ce5580c1f84de71e38b1.json b/node_modules/.cache/babel-loader/53e786c31c76b93c647f6a0a086aec30.json similarity index 100% rename from node_modules/.cache/babel-loader/1445696a4a27ce5580c1f84de71e38b1.json rename to node_modules/.cache/babel-loader/53e786c31c76b93c647f6a0a086aec30.json diff --git a/node_modules/.cache/babel-loader/542e8a67877e7584c51af6159103b400.json b/node_modules/.cache/babel-loader/542e8a67877e7584c51af6159103b400.json deleted file mode 100644 index 463fe9ae..00000000 --- a/node_modules/.cache/babel-loader/542e8a67877e7584c51af6159103b400.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator(props) {\n var _this;\n\n _classCallCheck(this, Simulator);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(Simulator).call(this, props));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n var cookies = props.cookies;\n _this.state = {\n tasks: [],\n csrfToken: cookies.get('XSRF-TOKEN'),\n isLoading: true,\n simulator: \"\",\n timeoutActionTaken: false\n };\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.simulatorWindow = null;\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.loadUser();\n }\n }, {\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(\"h1\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 11\n }\n }, \"About US\"), /*#__PURE__*/React.createElement(\"p\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 11\n }\n }, \"About US page body content\"));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Simulator","props","state","isLoading","isAuthenticated","user","undefined","simulator","cookies","tasks","csrfToken","get","timeoutActionTaken","local","prod","status","ip","simulatorWindow","loadUser","propTypes","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;;IAEMC,S;;;AAYA,qBAAYC,KAAZ,EAAmB;AAAA;;AAAA;;AACjB,mFAAMA,KAAN;AADiB,UAPnBC,KAOmB,GAPX;AACNC,MAAAA,SAAS,EAAE,IADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,SAAS,EAAED;AAJL,KAOW;AAAA,QAEVE,OAFU,GAECP,KAFD,CAEVO,OAFU;AAGjB,UAAKN,KAAL,GAAa;AAACO,MAAAA,KAAK,EAAE,EAAR;AAAYC,MAAAA,SAAS,EAAEF,OAAO,CAACG,GAAR,CAAY,YAAZ,CAAvB;AAAkDR,MAAAA,SAAS,EAAE,IAA7D;AAAmEI,MAAAA,SAAS,EAAE,EAA9E;AAAkFK,MAAAA,kBAAkB,EAAE;AAAtG,KAAb;AACA,UAAKC,KAAL,GAAa,gBAAb;AACA,UAAKC,IAAL,GAAY,qBAAZ;AACA,UAAKC,MAAL,GAAe,OAAf;;AACA,QAAI,MAAKA,MAAL,KAAgB,OAApB,EAA6B;AAC3B,YAAKC,EAAL,GAAU,MAAKH,KAAf;AACD;;AACD,UAAKI,eAAL,GAAuB,IAAvB;AAViB;AAWlB;;;;wCAEmB;AAClB,WAAKC,QAAL;AACD;;;6BACQ;AACP,0BAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACN;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBADM,eAEN;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sCAFM,CAAR;AAID;;;;EAjCiB5B,S;;AAAlBU,S,CACKmB,S,GAAY;AACfX,EAAAA,OAAO,EAAET,UAAU,CAACD,OAAD,CAAV,CAAoBsB;AADd,C;AAmCvB,eAAepB,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n constructor(props) {\n super(props);\n const {cookies} = props;\n this.state = {tasks: [], csrfToken: cookies.get('XSRF-TOKEN'), isLoading: true, simulator: \"\", timeoutActionTaken: false};\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.simulatorWindow = null;\n }\n \n componentDidMount() {\n this.loadUser();\n }\n render() {\n return (
\n

About US

\n

About US page body content

\n
);\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/543b865171d25ffcb0947641e58b4690.json b/node_modules/.cache/babel-loader/543b865171d25ffcb0947641e58b4690.json deleted file mode 100644 index 8e67c8cb..00000000 --- a/node_modules/.cache/babel-loader/543b865171d25ffcb0947641e58b4690.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"top\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"h1\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 15\n }\n }, \"About US\"), /*#__PURE__*/React.createElement(\"p\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 15\n }\n }, \"About US page body content\"), /*#__PURE__*/React.createElement(Link, {\n href: \"#\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 19\n }\n }, \"Foo\"), /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 19\n }\n }, \"Bar\")))), /*#__PURE__*/React.createElement(\"div\", {\n className: \"bottom\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"h1\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 15\n }\n }, \"About US\"), /*#__PURE__*/React.createElement(\"p\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 15\n }\n }, \"About US Bottom page body content\"), /*#__PURE__*/React.createElement(Link, {\n href: \"http://localhost:8888\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 19\n }\n }, \"Foo\"), /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 19\n }\n }, \"Bar\")))));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;AACA,OAAO,iBAAP;;IAEMC,S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AV,CAAoBW;AADd,C;AA0CvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n
\n

About US

\n

About US page body content

\n \n \n
Foo
\n
Bar
\n
\n \n\n
\n\n
\n

About US

\n

About US Bottom page body content

\n \n \n
Foo
\n
Bar
\n
\n \n
\n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/547618da8d8c35d45440d3abd54e952e.json b/node_modules/.cache/babel-loader/547618da8d8c35d45440d3abd54e952e.json deleted file mode 100644 index e360b3f9..00000000 --- a/node_modules/.cache/babel-loader/547618da8d8c35d45440d3abd54e952e.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = function Navigationbar() {\n var navbar_options = /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 25\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 28\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 28\n }\n }, \"Simulator\"))))))));\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 64,\n columnNumber: 5\n }\n }, _this.state.isAuthenticated ? {\n navbar_options: navbar_options\n } : null);\n};\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","navbar_options","textDecoration","state","isAuthenticated"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,C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CADF,eAOE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,QAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aADJ,CAPF,eAYE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,GAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CAZF,CADH,CANV,CADJ,CADA,CADA,CADF;AAoCA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACI,KAAI,CAACC,KAAL,CAAWC,eAAX,GACA;AAACH,IAAAA,cAAc,EAAdA;AAAD,GADA,GAIF,IALF,CADF;AAUD,CA/CD;;AAgDA,eAAeD,aAAf","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nconst Navigationbar = () => {\n const navbar_options = (\n \n \n \n \n \n \n \n );\n return (\n
\n { this.state.isAuthenticated ? (\n {navbar_options}\n )\n :\n null\n }\n
\n );\n};\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/1813efdec8c4aec2509e2fa4ebbb7d0c.json b/node_modules/.cache/babel-loader/54fd87fe9e3ffd8a7aa838cf7efee96a.json similarity index 100% rename from node_modules/.cache/babel-loader/1813efdec8c4aec2509e2fa4ebbb7d0c.json rename to node_modules/.cache/babel-loader/54fd87fe9e3ffd8a7aa838cf7efee96a.json diff --git a/node_modules/.cache/babel-loader/a87eac6af796caa1f8d1c81e405b4a18.json b/node_modules/.cache/babel-loader/5505a23f7a88469e37d4ed947334525c.json similarity index 100% rename from node_modules/.cache/babel-loader/a87eac6af796caa1f8d1c81e405b4a18.json rename to node_modules/.cache/babel-loader/5505a23f7a88469e37d4ed947334525c.json diff --git a/node_modules/.cache/babel-loader/093376853e939580ce9a2c900cc279cf.json b/node_modules/.cache/babel-loader/552a282389ade40d53097660af2e743c.json similarity index 100% rename from node_modules/.cache/babel-loader/093376853e939580ce9a2c900cc279cf.json rename to node_modules/.cache/babel-loader/552a282389ade40d53097660af2e743c.json diff --git a/node_modules/.cache/babel-loader/552ef6cef34efd621ea3691595537905.json b/node_modules/.cache/babel-loader/552ef6cef34efd621ea3691595537905.json deleted file mode 100644 index d147fbfb..00000000 --- a/node_modules/.cache/babel-loader/552ef6cef34efd621ea3691595537905.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n var url = \"http://localhost\"; //window.location.href = \"http://localhost:3000/simulator\";\n\n this.simulatorWindow = window.open(url + \":8080\", '_blank');\n this.shellWindow = window.open(url + \":4200\", '_blank');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 218,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 219,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 226,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 227,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 240,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 241,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 242,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 253,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 19\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 267,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 276,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 277,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 280,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 281,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 284,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 292,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","url","open","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAC/C,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAwC;;AACxC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE;AAJF,KAOU;AAAA,QAETC,OAFS,GAEEP,KAFF,CAETO,OAFS;AAGhBC,IAAAA,OAAO,CAACC,GAAR,CAAYF,OA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AAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAVa,eAcb;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAda,eAkBb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAlBa,CAAjB;AAyBE,0BACE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIoF,QADJ,CADF;AAOH;;;;EA1Re/F,S;;AA4RlB,eAAeG,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n const url = \"http://localhost\";\n //window.location.href = \"http://localhost:3000/simulator\";\n this.simulatorWindow = window.open(url + \":8080\", '_blank');\n this.shellWindow = window.open(url + \":4200\", '_blank');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n
\n {mainBody}\n
\n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/553ee5fdc157e16216aaff55557da08e.json b/node_modules/.cache/babel-loader/553ee5fdc157e16216aaff55557da08e.json deleted file mode 100644 index 2bccb01a..00000000 --- a/node_modules/.cache/babel-loader/553ee5fdc157e16216aaff55557da08e.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nvar Styles = styled.div(_templateObject());\nexport var Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 5\n }\n }, \"const options = this.state.isAuthenticated ?\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 28\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: _this.submit,\n class: \"logout\",\n to: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 28\n }\n }, \"Logout\")))), \":\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 48,\n columnNumber: 18\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 49,\n columnNumber: 18\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 20\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: _this.login,\n class: \"login\",\n to: \"\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 24\n }\n }, \"Login\")))), /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 59,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 60,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Nav.Item, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 61,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 61,\n columnNumber: 21\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(Nav.Item, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 21\n }\n }, \"Task\"))))));\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","styled","Styles","div","Navigationbar","textDecoration","submit","login"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,IAAMC,MAAM,GAAGD,MAAM,CAACE,GAAV,mBAAZ;AAiBA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;AAAA,sBAC3B,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD;AAAQ,IAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kEAGc;AAAK,IAAA,EAAE,EAAC,QAAR;AAAiB,IAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEC,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,UAAnD;AAA8D,IAAA,EAAE,EAAC,WAAjE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBADJ,CADF,eAOE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,QAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aADJ,CAPF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AAAA,kBAAU,oBAAC,GAAD,CAAK,IAAL;AAAU,IAAA,IAAI,EAAC,QAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAAV,CAFF,CADF,CApCF,CADF,CAD2B;AAAA,CAAtB","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nexport const Navigationbar = () => (\n \n \n const options = this.state.isAuthenticated ? \n \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n \n \n \n \n \n
\n
\n)"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/553f21dbb8f679545aec54c5b51dc1c0.json b/node_modules/.cache/babel-loader/553f21dbb8f679545aec54c5b51dc1c0.json deleted file mode 100644 index 614c7a7b..00000000 --- a/node_modules/.cache/babel-loader/553f21dbb8f679545aec54c5b51dc1c0.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }()\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator(urlAction) {\n var url = urlAction;\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8080\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_blank');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n this.setState({\n isLoading: true,\n launch: true\n });\n this.attach(this.state.launch);\n\n var _httpClient = axios.create();\n\n _httpClient.defaults.timeout = 600000;\n\n _httpClient.get(\"http://\".concat(this.ip, \"/simulator/start/\").concat(this.state.user.sub, \"/\").concat(this.state.user.given_name, \"/spiri-friend2019@\"), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n simulator: res.data,\n isLoading: false\n });\n\n _this5.launchSimulator(_this5.state.simulator.publicIp);\n });\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 216,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 217,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 218,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 219,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 225,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 230,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 238,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 239,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 240,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 241,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 253,\n columnNumber: 19\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 256,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 264,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 267,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 274,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 275,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 278,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 282,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 290,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","urlAction","url","httpClient","create","defaults","timeout","withCredentials","res","given_name","simulator","data","publicIp","options","textDecoration","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAC/C,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAwC;;AACxC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE;AAJF,KAOU;AAAA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AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAL1B,CAFJ,CADS,GAYL,IAZd;AAcA,UAAM0E,QAAQ,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACb;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACG;AAAM,QAAA,GAAG,EAAExF,MAAX;AAAmB,QAAA,KAAK,EAAE,MAA1B;AAAkC,QAAA,MAAM,EAAE,MAA1C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADH,CADJ,EAIKsF,OAJL,CADa,EAQZH,SARY,eAUb;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAElF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAVa,eAcb;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAda,eAkBb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAlBa,CAAjB;AAyBE,0BACE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIuF,QADJ,CADF;AAOH;;;;EAxRelG,S;;AA0RlB,eAAeG,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n launchSimulator(urlAction) {\n const url = urlAction;\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8080\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_blank');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })\n\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n
\n {mainBody}\n
\n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/5578d51e8accccf60b356aea879fb734.json b/node_modules/.cache/babel-loader/5578d51e8accccf60b356aea879fb734.json deleted file mode 100644 index 96114623..00000000 --- a/node_modules/.cache/babel-loader/5578d51e8accccf60b356aea879fb734.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\nexport var Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 25\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 28\n }\n }, \"Tasks\"))))))));\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","textDeco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A;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEI,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,UAAnD;AAA8D,IAAA,EAAE,EAAC,WAAjE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBADJ,CADF,eAOE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,QAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aADJ,CAPF,CADH,CANV,CADJ,CADA,CADF,CAD2B;AAAA,CAAtB","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nexport const Navigationbar = () => (\n \n \n \n \n \n \n \n)"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/55ab18ca155e7649f7ac1939e62fedbb.json b/node_modules/.cache/babel-loader/55ab18ca155e7649f7ac1939e62fedbb.json deleted file mode 100644 index 0a68da30..00000000 --- a/node_modules/.cache/babel-loader/55ab18ca155e7649f7ac1939e62fedbb.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { NavigationBar } from './components/NavigationBar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 228,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 229,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 242,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 19\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 278,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 282,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 283,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 286,\n columnNumber: 9\n }\n }));\n return (\n /*#__PURE__*/\n\n /*
\n {mainBody}\n
*/\n React.createElement(React.Fragment, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 297,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 298,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(NavigationBar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 299,\n columnNumber: 11\n }\n })))\n );\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","NavigationBar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAO,sDAAP;AACA,SAASC,aAAT,QAA8B,4BAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAt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ules/bootstrap/dist/css/bootstrap.min.css';\nimport { NavigationBar } from './components/NavigationBar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n /*
\n {mainBody}\n
*/\n \n \n \n \n \n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/2149986bf51d1219b2a0112969881727.json b/node_modules/.cache/babel-loader/55b9943d9caf7397ea10720181abed46.json similarity index 100% rename from node_modules/.cache/babel-loader/2149986bf51d1219b2a0112969881727.json rename to node_modules/.cache/babel-loader/55b9943d9caf7397ea10720181abed46.json diff --git a/node_modules/.cache/babel-loader/4bbc5b4cdac19f20f91624790e7b1112.json b/node_modules/.cache/babel-loader/55cba1336d5cb3c75630d155990fb3cc.json similarity index 100% rename from node_modules/.cache/babel-loader/4bbc5b4cdac19f20f91624790e7b1112.json rename to node_modules/.cache/babel-loader/55cba1336d5cb3c75630d155990fb3cc.json diff --git a/node_modules/.cache/babel-loader/55f53277b808bddbdc01a17a7e698ae1.json b/node_modules/.cache/babel-loader/55f53277b808bddbdc01a17a7e698ae1.json deleted file mode 100644 index b6317c21..00000000 --- a/node_modules/.cache/babel-loader/55f53277b808bddbdc01a17a7e698ae1.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 21\n }\n })));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,SAASC,aAAT,QAA8B,4BAA9B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACU,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,eAEI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEL,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAFJ,eAGI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHJ,eAII,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJJ,eAKI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEL,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALJ,CADV,CADF;AAWD;;;;EAbmBN,S;;AAgBtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() { \n return ( \n \n \n \n \n \n \n \n \n \n )\n };\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/55f67f58807aec5b886aca73a0bcafd5.json b/node_modules/.cache/babel-loader/55f67f58807aec5b886aca73a0bcafd5.json new file mode 100644 index 00000000..0ae402ae --- /dev/null +++ b/node_modules/.cache/babel-loader/55f67f58807aec5b886aca73a0bcafd5.json @@ -0,0 +1 @@ +{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/simulation/Gazebo_simulation-Frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }()\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator(urlAction) {\n //launchSimulator() {\n var url = urlAction; //const url = \"http://localhost\";\n\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n this.setState({\n isLoading: true,\n launch: true\n });\n this.attach(this.state.launch);\n\n var _httpClient = axios.create();\n\n _httpClient.defaults.timeout = 600000;\n\n _httpClient.get(\"http://\".concat(this.ip, \"/simulator/start/\").concat(this.state.user.sub, \"/\").concat(this.state.user.given_name, \"/spiri-friend2019@\"), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n simulator: res.data,\n isLoading: false\n });\n\n _this5.launchSimulator(_this5.state.simulator.publicIp);\n }); //this.launchSimulator();\n\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n submit: this.submit,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 27\n }\n }))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 230,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 35\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 37\n }\n }))), /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 237,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 238,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 248,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 253,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 254,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 24\n }\n }, options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 278,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/simulation/Gazebo_simulation-Frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","isNavbar","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","urlAction","url","httpClient","create","defaults","timeout","withCredentials","res","given_name","simulator","data","publicIp","options","textDecoration","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,aAAP,MAA2B,iBAA3B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MA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Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n launchSimulator(urlAction) {\n //launchSimulator() {\n const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })\n //this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? (\n
\n
    \n \n \n\n
\n
\n ):(\n \n \n
\n
\n \n \n \n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n \n )\n \n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n \n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n \n \n {mainBody}\n \n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/0d98e3f3c8c415e94b8575928265f99b.json b/node_modules/.cache/babel-loader/56639ffa58dbb0aaf8075e89664b8bc6.json similarity index 100% rename from node_modules/.cache/babel-loader/0d98e3f3c8c415e94b8575928265f99b.json rename to node_modules/.cache/babel-loader/56639ffa58dbb0aaf8075e89664b8bc6.json diff --git a/node_modules/.cache/babel-loader/b585f1b7f7aee8b8ae34497570cd603e.json b/node_modules/.cache/babel-loader/5699b3d7cf90194b72751abbf50c6eaf.json similarity index 100% rename from node_modules/.cache/babel-loader/b585f1b7f7aee8b8ae34497570cd603e.json rename to node_modules/.cache/babel-loader/5699b3d7cf90194b72751abbf50c6eaf.json diff --git a/node_modules/.cache/babel-loader/56e713205bf93e1b331351441982e62d.json b/node_modules/.cache/babel-loader/56e713205bf93e1b331351441982e62d.json deleted file mode 100644 index 8f9258b9..00000000 --- a/node_modules/.cache/babel-loader/56e713205bf93e1b331351441982e62d.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #222; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #9FFFCB;\\n &:hover { color: white; }\\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #9FFFCB;\\n &:hover { color: white; }\\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nvar Styles = styled.div(_templateObject());\nexport var Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Brand, {\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 7\n }\n }, \"Tutorial\"), /*#__PURE__*/React.createElement(Navbar.Toggle, {\n \"aria-controls\": \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 7\n }\n }), /*#__PURE__*/React.createElement(Form, {\n className: \"form-center\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(FormControl, {\n type: \"text\",\n placeholder: \"Search\",\n className: \"\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 9\n }\n })), /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Nav.Item, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 21\n }\n }, \"Home\")), /*#__PURE__*/React.createElement(Nav.Item, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/about\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 21\n }\n }, \"About\"))))));\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","styled","Styles","div","Navigationbar"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,IAAMC,MAAM,GAAGD,MAAM,CAACE,GAAV,mBAAZ;AAiBA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;AAAA,sBAC3B,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD;AAAQ,IAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD,CAAQ,KAAR;AAAc,IAAA,IAAI,EAAC,GAAnB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBADF,eAEE,oBAAC,MAAD,CAAQ,MAAR;AAAe,qBAAc,kBAA7B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAFF,eAGE,oBAAC,IAAD;AAAM,IAAA,SAAS,EAAC,aAAhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,WAAD;AAAa,IAAA,IAAI,EAAC,MAAlB;AAAyB,IAAA,WAAW,EAAC,QAArC;AAA8C,IAAA,SAAS,EAAC,EAAxD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IADF,CAHF,eAME,oBAAC,MAAD,CAAQ,QAAR;AAAiB,IAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,GAAD;AAAK,IAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,GAAD,CAAK,IAAL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAU,oBAAC,GAAD,CAAK,IAAL;AAAU,IAAA,IAAI,EAAC,GAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAAV,CADF,eAEE,oBAAC,GAAD,CAAK,IAAL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAU,oBAAC,GAAD,CAAK,IAAL;AAAU,IAAA,IAAI,EAAC,QAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAAV,CAFF,CADF,CANF,CADF,CAD2B;AAAA,CAAtB","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nconst Styles = styled.div`\n .navbar { background-color: #222; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #9FFFCB;\n &:hover { color: white; }\n }\n .navbar-brand {\n font-size: 1.4em;\n color: #9FFFCB;\n &:hover { color: white; }\n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nexport const Navigationbar = () => (\n \n \n Tutorial\n \n
\n \n \n \n \n \n
\n
\n)"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/5293469ca50e36fe53d9bc9432062a1c.json b/node_modules/.cache/babel-loader/56ecd4d0b0349784dd89aac1c208e8aa.json similarity index 100% rename from node_modules/.cache/babel-loader/5293469ca50e36fe53d9bc9432062a1c.json rename to node_modules/.cache/babel-loader/56ecd4d0b0349784dd89aac1c208e8aa.json diff --git a/node_modules/.cache/babel-loader/fe949a2de1b9eb87a828b46fd0283c7a.json b/node_modules/.cache/babel-loader/573effe89ebe5bc858618275d447c0dd.json similarity index 100% rename from node_modules/.cache/babel-loader/fe949a2de1b9eb87a828b46fd0283c7a.json rename to node_modules/.cache/babel-loader/573effe89ebe5bc858618275d447c0dd.json diff --git a/node_modules/.cache/babel-loader/575233ecb9302997d111e55dc705a46a.json b/node_modules/.cache/babel-loader/575233ecb9302997d111e55dc705a46a.json deleted file mode 100644 index 5016489f..00000000 --- a/node_modules/.cache/babel-loader/575233ecb9302997d111e55dc705a46a.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/TaskList.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport Navigationbar from './Navigationbar';\n\nvar TaskList = /*#__PURE__*/function (_Component) {\n _inherits(TaskList, _Component);\n\n function TaskList(props) {\n var _this;\n\n _classCallCheck(this, TaskList);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(TaskList).call(this, props));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n var cookies = props.cookies;\n _this.state = {\n tasks: [],\n csrfToken: cookies.get('XSRF-TOKEN'),\n isLoading: true,\n simulator: \"\",\n timeoutActionTaken: false\n };\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.simulatorWindow = null;\n return _this;\n }\n\n _createClass(TaskList, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.loadUser();\n }\n }, {\n key: \"loadUser\",\n value: function () {\n var _loadUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var _this2 = this;\n\n var response, body, userId, userName;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 2:\n response = _context.sent;\n _context.next = 5;\n return response.text();\n\n case 5:\n body = _context.sent;\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(\"())))))))))))))))))))))))))\");\n console.log(this.state.isAuthenticated);\n userId = this.state.user.sub;\n userName = this.state.user.given_name;\n fetch(\"http://\".concat(this.ip, \"/competition/progress/\").concat(userId, \"/13\"), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (data) {\n return _this2.setState({\n tasks: data,\n isLoading: false\n });\n }).catch(function () {\n return _this2.props.history.push('/');\n });\n\n case 12:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function loadUser() {\n return _loadUser.apply(this, arguments);\n }\n\n return loadUser;\n }()\n }, {\n key: \"openAutoTimeout\",\n value: function openAutoTimeout() {\n setTimeout(function () {\n console.log('auto close start now...');\n }.bind(this), 60 * 1000);\n }\n }, {\n key: \"openTimeout\",\n value: function openTimeout() {\n setTimeout(function () {\n var win = window.open(null, '_blank');\n this.state.timeoutActionTaken = false;\n win.focus();\n\n if (win.confirm(\"Do you want to keep simulator open and in-use? \\nClick 'Ok' for Yes and 'Cancel' for No.\\nIf nothing selected, simulator will be shut down automatically.\")) {\n // Do nothing, keep simulator alive\n this.state.timeoutActionTaken = true; //alert('ok clicked');\n\n win.close();\n } else {\n // send api to backend to stop task\n this.state.timeoutActionTaken = true; //alert('cancel clicked');\n\n win.close();\n }\n }.bind(this), 60 * 60 * 1000);\n this.openAutoTimeout();\n }\n }, {\n key: \"updateTask\",\n value: function updateTask(userId, compId, taskId) {\n var _this3 = this;\n\n fetch(\"http://\".concat(this.ip, \"/competition/update/\").concat(userId, \"/\").concat(compId, \"/\").concat(taskId), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (data) {\n return _this3.setState({\n tasks: data,\n isLoading: false\n });\n }).catch(function () {\n return _this3.props.history.push('/');\n });\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this4 = this;\n\n var _this$state = this.state,\n tasks = _this$state.tasks,\n isLoading = _this$state.isLoading;\n\n if (isLoading) {\n return /*#__PURE__*/React.createElement(\"p\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 97,\n columnNumber: 14\n }\n }, \"Loading...\");\n }\n\n var taskList = tasks.map(function (task) {\n return /*#__PURE__*/React.createElement(\"tr\", {\n key: task.task_id,\n __self: _this4,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 101,\n columnNumber: 14\n }\n }, /*#__PURE__*/React.createElement(\"td\", {\n style: {\n wordWrap: 'break-word'\n },\n __self: _this4,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 102,\n columnNumber: 9\n }\n }, task.task_name), /*#__PURE__*/React.createElement(\"td\", {\n style: {\n whiteSpace: 'nowrap'\n },\n __self: _this4,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 103,\n columnNumber: 9\n }\n }, task.task_progress), /*#__PURE__*/React.createElement(\"td\", {\n __self: _this4,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 104,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(ButtonGroup, {\n __self: _this4,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 105,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Button, {\n size: \"sm\",\n color: \"primary\",\n onClick: function onClick() {\n _this4.openTimeout();\n\n _this4.updateTask(_this4.state.user.sub, 13, task.task_id);\n },\n __self: _this4,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 106,\n columnNumber: 11\n }\n }, task.task_action))));\n });\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 116,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 117,\n columnNumber: 9\n }\n }), /*#__PURE__*/React.createElement(Container, {\n fluid: true,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 118,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"h3\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 119,\n columnNumber: 11\n }\n }, \"My Competition Tasks\"), /*#__PURE__*/React.createElement(Table, {\n style: {\n tableLayout: 'fixed'\n },\n className: \"mt-3\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 120,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(\"thead\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 121,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"tr\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 122,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"th\", {\n width: \"30%\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 123,\n columnNumber: 15\n }\n }, \"Task Name\"), /*#__PURE__*/React.createElement(\"th\", {\n width: \"20%\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 124,\n columnNumber: 15\n }\n }, \"Progress\"), /*#__PURE__*/React.createElement(\"th\", {\n width: \"30%\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 125,\n columnNumber: 15\n }\n }, \"Action\"))), /*#__PURE__*/React.createElement(\"tbody\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 128,\n columnNumber: 13\n }\n }, taskList))));\n }\n }]);\n\n return TaskList;\n}(Component);\n\nTaskList.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default withCookies(withRouter(TaskList));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/TaskList.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Navigationbar","TaskList","props","state","isLoading","isAuthenticated","user","undefined","simulator","cookies","tasks","csrfToken","get","timeoutActionTaken","local","prod","status","ip","simulatorWindow","loadUser","fetch","credentials","response","text","body","setState","JSON","parse","console","log","userId","sub","userName","given_name","then","json","data","catch","history","push","setTimeout","bind","win","window","open","focus","confirm","close","openAutoTimeout","compId","taskId","taskList","map","task","task_id","wordWrap","task_name","whiteSpace","task_progress","openTimeout","updateTask","task_action","tableLayout","propTypes","isRequired"],"mappings":";;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;AACA,OAAOC,aAAP,MAA2B,iBAA3B;;IAEMC,Q;;;AAYJ,oBAAYC,KAAZ,EAAmB;AAAA;;AAAA;;AACjB,kFAAMA,KAAN;AADiB,UAPnBC,KAOmB,GAPX;AACNC,MAAAA,SAAS,EAAE,IADL;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,KAAK,EAAC,KAAV;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAFF,eAGE;AAAI,QAAA,KAAK,EAAC,KAAV;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAHF,CADA,CADF,eAQE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACCX,QADD,CARF,CAFF,CAFF,CADF;AAoBD;;;;EA/HoB7D,S;;AAAjBW,Q,CACG8D,S,GAAY;AACjBtD,EAAAA,OAAO,EAAEV,UAAU,CAACD,OAAD,CAAV,CAAoBkE;AADZ,C;AAiIrB,eAAenE,WAAW,CAACD,UAAU,CAACK,QAAD,CAAX,CAA1B","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport Navigationbar from './Navigationbar'; \n\nclass TaskList extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n\n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n\n constructor(props) {\n super(props);\n const {cookies} = props;\n this.state = {tasks: [], csrfToken: cookies.get('XSRF-TOKEN'), isLoading: true, simulator: \"\", timeoutActionTaken: false};\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.simulatorWindow = null;\n }\n\n componentDidMount() {\n this.loadUser();\n }\n\n async loadUser() {\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n const body = await response.text();\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(\"())))))))))))))))))))))))))\")\n console.log(this.state.isAuthenticated);\n\n const userId = this.state.user.sub;\n const userName = this.state.user.given_name;\n \n fetch(`http://${this.ip}/competition/progress/${userId}/13`, {credentials: 'include'})\n .then(response => response.json())\n .then(data => this.setState({tasks: data, isLoading: false}))\n .catch(() => this.props.history.push('/'));\n \n }\n \n \n openAutoTimeout(){\n setTimeout(function(){\n console.log('auto close start now...');\n }.bind(this), 60*1000);\n }\n\n openTimeout(){\n setTimeout(function(){\n var win = window.open(null, '_blank');\n this.state.timeoutActionTaken = false;\n win.focus();\n\n if(win.confirm(\"Do you want to keep simulator open and in-use? \\nClick 'Ok' for Yes and 'Cancel' for No.\\nIf nothing selected, simulator will be shut down automatically.\")){\n // Do nothing, keep simulator alive\n this.state.timeoutActionTaken = true;\n //alert('ok clicked');\n win.close();\n } else {\n // send api to backend to stop task\n this.state.timeoutActionTaken = true;\n //alert('cancel clicked');\n win.close();\n }}.bind(this), 60*60*1000);\n this.openAutoTimeout();\n }\n\n \n updateTask(userId, compId, taskId){\n fetch(`http://${this.ip}/competition/update/${userId}/${compId}/${taskId}`, {credentials: 'include'})\n .then(response => response.json())\n .then(data => this.setState({tasks: data, isLoading: false}))\n .catch(() => this.props.history.push('/'));\n }\n\n render() {\n const {tasks, isLoading} = this.state;\n \n if (isLoading) {\n return

Loading...

;\n }\n \n const taskList = tasks.map(task => {\n return \n {task.task_name}\n {task.task_progress}\n \n \n \n \n \n \n });\n\n return (\n
\n \n \n

My Competition Tasks

\n \n \n \n \n \n \n \n \n \n {taskList}\n \n
Task NameProgressAction
\n
\n
\n );\n }\n}\n\nexport default withCookies(withRouter(TaskList));"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/69eae0bdfffebd8b4c56d9d6e3af21ed.json b/node_modules/.cache/babel-loader/586631fd1ad5d8ec4f7ba60d15343922.json similarity index 100% rename from node_modules/.cache/babel-loader/69eae0bdfffebd8b4c56d9d6e3af21ed.json rename to node_modules/.cache/babel-loader/586631fd1ad5d8ec4f7ba60d15343922.json diff --git a/node_modules/.cache/babel-loader/7a808dc9e75b55362d6ef509b10e6e0b.json b/node_modules/.cache/babel-loader/586d74c397bd50017be61426f456203d.json similarity index 100% rename from node_modules/.cache/babel-loader/7a808dc9e75b55362d6ef509b10e6e0b.json rename to node_modules/.cache/babel-loader/586d74c397bd50017be61426f456203d.json diff --git a/node_modules/.cache/babel-loader/58bc1880c4e95781a3a07022d41c7dd3.json b/node_modules/.cache/babel-loader/58bc1880c4e95781a3a07022d41c7dd3.json deleted file mode 100644 index d7aeaad3..00000000 --- a/node_modules/.cache/babel-loader/58bc1880c4e95781a3a07022d41c7dd3.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport Navigationbar from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 21\n }\n })));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,OAAOC,aAAP,MAA2B,4BAA3B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACU,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,eAEI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEL,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAFJ,eAGI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHJ,eAII,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJJ,CADV,CADF;AAWD;;;;EAbmBX,S;;AAgBtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport Navigationbar from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() { \n return ( \n \n \n \n \n \n \n \n \n \n )\n };\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/58c076edf43e092dc70dfeb7ef49e32c.json b/node_modules/.cache/babel-loader/58c076edf43e092dc70dfeb7ef49e32c.json new file mode 100644 index 00000000..e95079d7 --- /dev/null +++ b/node_modules/.cache/babel-loader/58c076edf43e092dc70dfeb7ef49e32c.json @@ -0,0 +1 @@ +{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/simulation/Gazebo_simulation-Frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport Navigationbar from './Navigationbar';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(\"div\", {\n id: \"sim\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"top_\",\n src: \"http://localhost:4200\",\n width: \"100%\",\n height: \"375px\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 17\n }\n }), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"bottom_\",\n src: \"http://localhost:8888\",\n width: \"100%\",\n height: \"375px\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 17\n }\n })));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/simulation/Gazebo_simulation-Frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Navigationbar","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;AACA,OAAOC,aAAP,MAA0B,iBAA1B;;IAGMC,S;;;;;;;;;;;;;;;UAKAC,K,GAAQ;AACNC,MAAAA,SAAS,EAAE,IADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,SAAS,EAAED;AAJL,K;;;;;;6BASR;AACE,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,eAEE;AAAK,QAAA,EAAE,EAAC,KAAR;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAQ,QAAA,IAAI,EAAC,MAAb;AAAoB,QAAA,GAAG,EAAC,uBAAxB;AAAgD,QAAA,KAAK,EAAC,MAAtD;AAA8D,QAAA,MAAM,EAAC,OAArE;AAA6E,QAAA,WAAW,EAAC,GAAzF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,eAEI;AAAQ,QAAA,IAAI,EAAC,SAAb;AAAuB,QAAA,GAAG,EAAC,uBAA3B;AAAmD,QAAA,KAAK,EAAC,MAAzD;AAAgE,QAAA,MAAM,EAAC,OAAvE;AAA+E,QAAA,WAAW,EAAC,GAA3F;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAFJ,CAFF,CADF;AASD;;;;EAxBiBhB,S;;AAAlBW,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAEV,UAAU,CAACD,OAAD,CAAV,CAAoBY;AADd,C;AA0BvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport Navigationbar from './Navigationbar';\n\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n \n render() \n {\n return (\n
\n \n
\n \n \n
\n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/a856f9d4784ccdcf9bae83651d1616a2.json b/node_modules/.cache/babel-loader/58d5471fbcd60b3a4e3c052bf13d6e01.json similarity index 100% rename from node_modules/.cache/babel-loader/a856f9d4784ccdcf9bae83651d1616a2.json rename to node_modules/.cache/babel-loader/58d5471fbcd60b3a4e3c052bf13d6e01.json diff --git a/node_modules/.cache/babel-loader/dc64aabd6e427d22f85844e2ccd16ea9.json b/node_modules/.cache/babel-loader/592d553129b410ca414e9766cd750812.json similarity index 100% rename from node_modules/.cache/babel-loader/dc64aabd6e427d22f85844e2ccd16ea9.json rename to node_modules/.cache/babel-loader/592d553129b410ca414e9766cd750812.json diff --git a/node_modules/.cache/babel-loader/599e8e8259c889e70fa664e38e43c455.json b/node_modules/.cache/babel-loader/599e8e8259c889e70fa664e38e43c455.json deleted file mode 100644 index 358b6d31..00000000 --- a/node_modules/.cache/babel-loader/599e8e8259c889e70fa664e38e43c455.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var authenticated = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 25\n }\n }, authenticated ? /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 53,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 58,\n columnNumber: 41\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 63,\n columnNumber: 41\n }\n }, \"Logout\"))) : /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 71,\n columnNumber: 31\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 72,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 73,\n columnNumber: 33\n }\n }, \"Login hihihihi\")))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","authenticated","props","isLoggedIn","textDecoration","submit","login"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AACN,UAAMC,aAAa,GAAG,KAAKC,KAAL,CAAWC,UAAjC;AAEF,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAKU;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACc;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAAA,KAAK,EAAC,MAAX;AAAkB,QAAA,GAAG,EAAEN,MAAvB;AAA+B,QAAA,KAAK,EAAE,MAAtC;AAA8C,QAAA,MAAM,EAAE,MAAtD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CADd,CALV,eAUoB;AAAK,QAAA,EAAE,EAAC,QAAR;AAAiB,QAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAEKI,aAAa,gBAEV;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;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EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKE,KAA1D;AAAiE,QAAA,KAAK,EAAC,OAAvE;AAA+E,QAAA,EAAE,EAAC,EAAlF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BADA,CADF,CA9BN,CAVpB,CADF;AA2DD;;;;EA/D2BhB,S;;AAiE5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const authenticated = this.props.isLoggedIn;\n \n return (\n
\n \n \n \n \n
\n \n \n \n
\n
\n \n {authenticated ? ( \n \n
    \n
  • \n \n Progress\n \n
  • \n \n
  • \n \n Tasks\n \n
  • \n
  • \n \n Simulator\n \n
  • \n
  • \n \n Logout\n \n
  • \n
\n )\n :\n (\n
    \n
  • \n \n Login hihihihi\n \n
  • \n
\n )\n }\n \n
\n \n \n \n \n
\n \n )\n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/59d4ccdb3e243127c33a50eb637c75e0.json b/node_modules/.cache/babel-loader/59d4ccdb3e243127c33a50eb637c75e0.json deleted file mode 100644 index 871e407a..00000000 --- a/node_modules/.cache/babel-loader/59d4ccdb3e243127c33a50eb637c75e0.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 218,\n columnNumber: 22\n }\n }, \"const options = this.state.isAuthenticated ?\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 31\n }\n }, \"Logout\")))), \":\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, \"Login\")))), \"const simulator = this.state.isAuthenticated ?\", /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 249,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))), \" : null\", /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 275,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","mainBody","textDecoration"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AAC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FF;AAOH;;;;EAvQe1F,S;;AAyQlB,eAAeI,UAAU,CAACQ,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const mainBody =
\n const options = this.state.isAuthenticated ? \n \n
\n
    \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/1fa5979cfdf5b7d1c7f8f7dd5649f05e.json b/node_modules/.cache/babel-loader/5a8ad9e99dbb265f5f4515477983ba2a.json similarity index 100% rename from node_modules/.cache/babel-loader/1fa5979cfdf5b7d1c7f8f7dd5649f05e.json rename to node_modules/.cache/babel-loader/5a8ad9e99dbb265f5f4515477983ba2a.json diff --git a/node_modules/.cache/babel-loader/5ad2b634772942e0c9e9dafe988051bb.json b/node_modules/.cache/babel-loader/5ad2b634772942e0c9e9dafe988051bb.json deleted file mode 100644 index 45c9b4db..00000000 --- a/node_modules/.cache/babel-loader/5ad2b634772942e0c9e9dafe988051bb.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var authenticated = this.props.isLoggedIn;\n var login = this.props.login;\n console.log(\"riddhi\", authenticated);\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 5\n }\n }, authenticated ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 33\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 53,\n columnNumber: 33\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 58,\n columnNumber: 33\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 63,\n columnNumber: 33\n }\n }, \"Logout\")))))))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 76,\n columnNumber: 4\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 77,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 78,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 79,\n columnNumber: 9\n }\n }, \"Login\")))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","authenticated","props","isLoggedIn","login","console","log","textDecoration","submit"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,M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A;AAAA;AAAA;AAAA,sBACI,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAED,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKH,KAA1D;AAAiE,QAAA,KAAK,EAAC,OAAvE;AAA+E,QAAA,EAAE,EAAC,EAAlF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CADF,CADC,CA3CC,CADF;AAyDD;;;;EA/D2Bd,S;;AAiE5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const authenticated = this.props.isLoggedIn;\n const login = this.props.login;\n console.log(\"riddhi\",authenticated);\n \n return (\n
\n {authenticated ? ( \n \n \n \n \n \n \n \n )\n :\n (
\n
    \n
  • \n \n Login\n \n \n
  • \n
\n
) }\n \n
\n )\n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/5add4aa0cb72040a5d76f1c9acdb9a79.json b/node_modules/.cache/babel-loader/5add4aa0cb72040a5d76f1c9acdb9a79.json deleted file mode 100644 index bf0eb268..00000000 --- a/node_modules/.cache/babel-loader/5add4aa0cb72040a5d76f1c9acdb9a79.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Comp_image.js\";\nimport React, { Component } from 'react';\nimport './Comp_image.css';\nimport { withRouter } from 'react-router-dom';\n\nvar Comp_image = /*#__PURE__*/function (_Component) {\n _inherits(Comp_image, _Component);\n\n function Comp_image() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Comp_image);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Comp_image)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _this.handleClick = function (e) {\n e.preventDefault();\n console.log('The link was clicked.');\n };\n\n return _this;\n }\n\n _createClass(Comp_image, [{\n key: \"constuctor\",\n value: function constuctor() {\n this.handleClick = this.handleClick.bind(this);\n }\n }, {\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"Comp_image\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"SpiriText\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"br\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 19\n }\n }), /*#__PURE__*/React.createElement(\"b\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 19\n }\n }, \" Concours de drones, ENVOL\"), /*#__PURE__*/React.createElement(\"br\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 19\n }\n }), /*#__PURE__*/React.createElement(\"b\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 19\n }\n }, \"2019-2020\"), /*#__PURE__*/React.createElement(\"br\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 19\n }\n }), /*#__PURE__*/React.createElement(\"br\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 19\n }\n }), /*#__PURE__*/React.createElement(\"text\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 19\n }\n }, \"Hello, and welcome to the Spiri simulator! Here you will learn to program your Spiri robot, and run test scripts before trying your code in real life. To get started you will need to enter the login name and password provided to you by Spiri Robotics. If you wish to sign up, have lost your login info or want to report a bug, please\", /*#__PURE__*/React.createElement(\"a\", {\n href: \"https://spirirobotics.com/simulator-contact-form\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 21\n }\n }, \" contact us\"), \".\")));\n }\n }]);\n\n return Comp_image;\n}(Component);\n\nexport default withRouter(Comp_image);","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Comp_image.js"],"names":["React","Component","withRouter","Comp_image","handleClick","e","preventDefault","console","log","bind"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAeC,SAAf,QAA+B,OAA/B;AACA,OAAO,kBAAP;AAEA,SAASC,UAAT,QAA2B,kBAA3B;;IAEMC,U;;;;;;;;;;;;;;;;UAKAC,W,GAAc,UAACC,CAAD,EAAO;AACnBA,MAAAA,CAAC,CAACC,cAAF;AACAC,MAAAA,OAAO,CAACC,GAAR,CAAY,uBAAZ;AACD,K;;;;;;;iCAPU;AACT,WAAKJ,WAAL,GAAmB,KAAKA,WAAL,CAAiBK,IAAjB,CAAsB,IAAtB,CAAnB;AACD;;;6BAOM;AACL,0BACE;AAAK,QAAA,SAAS,EAAC,YAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,SAAS,EAAC,WAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,eAEI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sCAFJ,eAGI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHJ,eAII;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAJJ,eAKI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALJ,eAMI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANJ,eAOI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uWAIE;AAAG,QAAA,IAAI,EAAC,kDAAR;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAJF,MAPJ,CADJ,CADF;AAkBH;;;;EA7BoBR,S;;AAgCzB,eAAeC,UAAU,CAACC,UAAD,CAAzB","sourcesContent":["import React, {Component} from 'react';\nimport './Comp_image.css';\n\nimport { withRouter } from 'react-router-dom';\n\nclass Comp_image extends Component{\n constuctor() {\n this.handleClick = this.handleClick.bind(this);\n }\n \n handleClick = (e) => {\n e.preventDefault();\n console.log('The link was clicked.');\n }\n\n render() {\n return(\n
\n
\n
\n Concours de drones, ENVOL\n
\n 2019-2020\n
\n
\n \n Hello, and welcome to the Spiri simulator! Here you will learn to program your Spiri robot, and run test scripts before\n trying your code in real life. To get started you will need to enter the login name and password provided to you by\n Spiri Robotics. If you wish to sign up, have lost your login info or want to report a bug, please\n contact us.\n \n
\n
\n );\n }\n}\n\nexport default withRouter(Comp_image);"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/89cdc8158b2274415ddef14d44c341f6.json b/node_modules/.cache/babel-loader/5b111a176e3041d2f3de99188918cf53.json similarity index 100% rename from node_modules/.cache/babel-loader/89cdc8158b2274415ddef14d44c341f6.json rename to node_modules/.cache/babel-loader/5b111a176e3041d2f3de99188918cf53.json diff --git a/node_modules/.cache/babel-loader/6deb77dc85dc745b046e628189ae3970.json b/node_modules/.cache/babel-loader/5b7a275b674cceba5bf82ccff9938f24.json similarity index 100% rename from node_modules/.cache/babel-loader/6deb77dc85dc745b046e628189ae3970.json rename to node_modules/.cache/babel-loader/5b7a275b674cceba5bf82ccff9938f24.json diff --git a/node_modules/.cache/babel-loader/94a66332c946111a83ef61373c358deb.json b/node_modules/.cache/babel-loader/5b82a31266bee9576b746281d7150625.json similarity index 100% rename from node_modules/.cache/babel-loader/94a66332c946111a83ef61373c358deb.json rename to node_modules/.cache/babel-loader/5b82a31266bee9576b746281d7150625.json diff --git a/node_modules/.cache/babel-loader/5bb630eba0e49a21df99dd2b70fe7276.json b/node_modules/.cache/babel-loader/5bb630eba0e49a21df99dd2b70fe7276.json deleted file mode 100644 index 7ac9c1f7..00000000 --- a/node_modules/.cache/babel-loader/5bb630eba0e49a21df99dd2b70fe7276.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 9\n }\n }), /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Switch, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 15\n }\n }))));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,SAASC,aAAT,QAA8B,4BAA9B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,eAEE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAGI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEN,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHJ,eAII,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEC,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJJ,eAKI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALJ,eAMI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANJ,CADF,CAFF,CADF;AAgBD;;;;EAlBmBX,S;;AAqBtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() {\n return (\n \n \n \n \n {/* \n */}\n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/67c7f1ea1ae182a0d474dd2425ae75f4.json b/node_modules/.cache/babel-loader/5bcdc83146ba1ba1d6c2aa4b319a9975.json similarity index 100% rename from node_modules/.cache/babel-loader/67c7f1ea1ae182a0d474dd2425ae75f4.json rename to node_modules/.cache/babel-loader/5bcdc83146ba1ba1d6c2aa4b319a9975.json diff --git a/node_modules/.cache/babel-loader/5be913e75a4507ed54397e7636774c74.json b/node_modules/.cache/babel-loader/5be913e75a4507ed54397e7636774c74.json deleted file mode 100644 index c321e3c9..00000000 --- a/node_modules/.cache/babel-loader/5be913e75a4507ed54397e7636774c74.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport Navigationbar from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 18\n }\n }, /*#__PURE__*/React.createElement(\"switch\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 23\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 23\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 23\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 23\n }\n })))));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,OAAOC,aAAP,MAA2B,4BAA3B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACU,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAEK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAGA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEL,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHA,eAIA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJA,eAKA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALA,eAMA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEL,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANA,CAFL,CADD,CADV,CADF;AAmBD;;;;EArBmBN,S;;AAwBtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport Navigationbar from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() { \n return ( \n \n \n
\n \n \n {/* \n */} \n \n \n \n \n \n
\n\n
\n
\n \n )\n };\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/d591df1bbc0b42fb2ab2e0b003cf0daf.json b/node_modules/.cache/babel-loader/5c5e256614228dc5cb0af271c334e455.json similarity index 100% rename from node_modules/.cache/babel-loader/d591df1bbc0b42fb2ab2e0b003cf0daf.json rename to node_modules/.cache/babel-loader/5c5e256614228dc5cb0af271c334e455.json diff --git a/node_modules/.cache/babel-loader/5c76ffbe76c296fe0af13440aacb8738.json b/node_modules/.cache/babel-loader/5c76ffbe76c296fe0af13440aacb8738.json deleted file mode 100644 index d2b12579..00000000 --- a/node_modules/.cache/babel-loader/5c76ffbe76c296fe0af13440aacb8738.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n console.log(\"riddhi\", this.isLoggedIn);\n var options = this.props.isLoggedIn ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 49,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 54,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 41\n }\n }, \"Simulator\"))))) : null;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 72,\n columnNumber: 9\n }\n }, options);\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","console","log","isLoggedIn","options","props","textDecoration"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AAENC,MAAAA,OAAO,CAACC,GAAR,CAAY,QAAZ,EAAqB,KAAKC,UAA1B;AACH,UAAMC,OAAO,GAAG,KAAKC,KAAL,CAAWF,UAAX,gBACX,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAEQ;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACc;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAAA,KAAK,EAAC,MAAX;AAAkB,QAAA,GAAG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 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n \n console.log(\"riddhi\",this.isLoggedIn);\n const options = this.props.isLoggedIn ? \n \n \n
\n \n \n \n
\n
\n \n \n \n
    \n
  • \n \n Progress\n \n
  • \n \n
  • \n \n Tasks\n \n
  • \n
  • \n \n Simulator\n \n
  • \n \n
\n \n \n
\n \n
\n \n :\n null\n \n \nreturn (\n
\n {options}\n
\n) \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/5ca165f6275cad2c42d410f0de541e6f.json b/node_modules/.cache/babel-loader/5ca165f6275cad2c42d410f0de541e6f.json deleted file mode 100644 index 4cfdf118..00000000 --- a/node_modules/.cache/babel-loader/5ca165f6275cad2c42d410f0de541e6f.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/NavigationBar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #222; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #9FFFCB;\\n &:hover { color: white; }\\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #9FFFCB;\\n &:hover { color: white; }\\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nvar Styles = styled.div(_templateObject());\n\nvar NavigationBar = /*#__PURE__*/function (_Component) {\n _inherits(NavigationBar, _Component);\n\n function NavigationBar() {\n _classCallCheck(this, NavigationBar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(NavigationBar).apply(this, arguments));\n }\n\n _createClass(NavigationBar, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Brand, {\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 11\n }\n }, \"Tutorial\"), /*#__PURE__*/React.createElement(Navbar.Toggle, {\n \"aria-controls\": \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 11\n }\n }), /*#__PURE__*/React.createElement(Form, {\n className: \"form-center\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(FormControl, {\n type: \"text\",\n placeholder: \"Search\",\n className: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(Nav.Item, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 25\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(Nav.Item, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/about\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 25\n }\n }, \"Tasks\"))))));\n }\n }]);\n\n return NavigationBar;\n}(Component);\n\nexport default NavigationBar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/NavigationBar.js"],"names":["React","Nav","Navbar","Form","FormControl","styled","Styles","div","NavigationBar","Component"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,IAAMC,MAAM,GAAGD,MAAM,CAACE,GAAV,mBAAZ;;IAiBMC,a;;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,CANF,CADA,CADF;AAiBD;;;;EAnBuBC,S;;AAsB5B,eAAeD,aAAf","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nconst Styles = styled.div`\n .navbar { background-color: #222; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #9FFFCB;\n &:hover { color: white; }\n }\n .navbar-brand {\n font-size: 1.4em;\n color: #9FFFCB;\n &:hover { color: white; }\n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nclass NavigationBar extends Component{\n render() {\n return (\n \n \n Tutorial\n \n
\n \n \n \n \n \n
\n
\n );\n }\n }\n \nexport default NavigationBar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/a6cf584079ca96d7b63f1e9308b3ea23.json b/node_modules/.cache/babel-loader/5cb3ea1b2d47d92be30c5219967a1335.json similarity index 100% rename from node_modules/.cache/babel-loader/a6cf584079ca96d7b63f1e9308b3ea23.json rename to node_modules/.cache/babel-loader/5cb3ea1b2d47d92be30c5219967a1335.json diff --git a/node_modules/.cache/babel-loader/5ce753fc42a98387f12ea91a8a1a5f65.json b/node_modules/.cache/babel-loader/5ce753fc42a98387f12ea91a8a1a5f65.json deleted file mode 100644 index 6366db13..00000000 --- a/node_modules/.cache/babel-loader/5ce753fc42a98387f12ea91a8a1a5f65.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var authenticated = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 25\n }\n }, authenticated ? /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 53,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 58,\n columnNumber: 41\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 63,\n columnNumber: 41\n }\n }, \"Logout\"))) : /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 71,\n columnNumber: 31\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 72,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 73,\n columnNumber: 33\n }\n }, \"Login\")))))))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","authenticated","props","isLoggedIn","textDecoration","submit","login"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,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AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKF,KAAL,CAAWI,KAAhE;AAAuE,QAAA,KAAK,EAAC,OAA7E;AAAqF,QAAA,EAAE,EAAC,EAAxF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADA,CADF,CA9BN,CANV,CADJ,CADF,CADF,CADF,CADF;AA2DD;;;;EA/D2BhB,S;;AAiE5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const authenticated = this.props.isLoggedIn;\n \n return (\n
\n \n \n \n \n \n \n \n
\n \n )\n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/96d07beb3ae34bb8e749dbecbf6c6fa9.json b/node_modules/.cache/babel-loader/5d193b44922eae44b1e92d358ea45006.json similarity index 100% rename from node_modules/.cache/babel-loader/96d07beb3ae34bb8e749dbecbf6c6fa9.json rename to node_modules/.cache/babel-loader/5d193b44922eae44b1e92d358ea45006.json diff --git a/node_modules/.cache/babel-loader/d4c9c6cabccf12e8a1b624f787f211e3.json b/node_modules/.cache/babel-loader/5d80ea6c4be9b4538ec6de33b64120a8.json similarity index 100% rename from node_modules/.cache/babel-loader/d4c9c6cabccf12e8a1b624f787f211e3.json rename to node_modules/.cache/babel-loader/5d80ea6c4be9b4538ec6de33b64120a8.json diff --git a/node_modules/.cache/babel-loader/5d9e74716169118d550362eb96f82853.json b/node_modules/.cache/babel-loader/5d9e74716169118d550362eb96f82853.json deleted file mode 100644 index c723cd01..00000000 --- a/node_modules/.cache/babel-loader/5d9e74716169118d550362eb96f82853.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }()\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator(urlAction) {\n var url = urlAction;\n this.simulatorWindow = window.open(url + \":8080\", '_blank');\n this.shellWindow = window.open(url + \":4200\", '_blank');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n this.setState({\n isLoading: true,\n launch: true\n });\n this.attach(this.state.launch);\n\n var _httpClient = axios.create();\n\n _httpClient.defaults.timeout = 600000;\n\n _httpClient.get(\"http://\".concat(this.ip, \"/simulator/start/\").concat(this.state.user.sub, \"/\").concat(this.state.user.given_name, \"/spiri-friend2019@\"), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n simulator: res.data,\n isLoading: false\n });\n\n _this5.launchSimulator(_this5.state.simulator.publicIp);\n });\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 215,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 216,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 217,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 218,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 229,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 230,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 237,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 238,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 239,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 240,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 252,\n columnNumber: 19\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 256,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 264,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 273,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 274,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 277,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 278,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 281,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 289,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","urlAction","url","open","httpClient","create","defaults","timeout","withCredentials","res","given_name","simulator","data","publicIp","options","textDecoration","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAC/C,OAA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EnF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAVa,eAcb;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAda,eAkBb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAlBa,CAAjB;AAyBE,0BACE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIwF,QADJ,CADF;AAOH;;;;EAvRenG,S;;AAyRlB,eAAeG,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n launchSimulator(urlAction) {\n const url = urlAction;\n this.simulatorWindow = window.open(url + \":8080\", '_blank');\n this.shellWindow = window.open(url + \":4200\", '_blank');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })\n\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n
\n {mainBody}\n
\n\n )\n\n };\n}\nexport default withRouter(withCookies(App));"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/a06d52bbdcefbabc9d3801cfefe00aa8.json b/node_modules/.cache/babel-loader/5e1f72e5e6a04238cbb0d9d63b32679e.json similarity index 100% rename from node_modules/.cache/babel-loader/a06d52bbdcefbabc9d3801cfefe00aa8.json rename to node_modules/.cache/babel-loader/5e1f72e5e6a04238cbb0d9d63b32679e.json diff --git a/node_modules/.cache/babel-loader/f897ac853fa3d7087b1560b41cc766cd.json b/node_modules/.cache/babel-loader/5e42dad24953204e67eb56b80dae4f1f.json similarity index 100% rename from node_modules/.cache/babel-loader/f897ac853fa3d7087b1560b41cc766cd.json rename to node_modules/.cache/babel-loader/5e42dad24953204e67eb56b80dae4f1f.json diff --git a/node_modules/.cache/babel-loader/40e3eebbbb409e702e2d3dfa2518653a.json b/node_modules/.cache/babel-loader/5e88cb992a3cd5a7c41f91aa0d674ecd.json similarity index 100% rename from node_modules/.cache/babel-loader/40e3eebbbb409e702e2d3dfa2518653a.json rename to node_modules/.cache/babel-loader/5e88cb992a3cd5a7c41f91aa0d674ecd.json diff --git a/node_modules/.cache/babel-loader/74e4971b9fa913e1025da27cf51689d1.json b/node_modules/.cache/babel-loader/5e9da4e940afb79d23a8119c8b1493d3.json similarity index 100% rename from node_modules/.cache/babel-loader/74e4971b9fa913e1025da27cf51689d1.json rename to node_modules/.cache/babel-loader/5e9da4e940afb79d23a8119c8b1493d3.json diff --git a/node_modules/.cache/babel-loader/5ea7719b60c98dbcf0fbf10caff671c4.json b/node_modules/.cache/babel-loader/5ea7719b60c98dbcf0fbf10caff671c4.json deleted file mode 100644 index 00048263..00000000 --- a/node_modules/.cache/babel-loader/5ea7719b60c98dbcf0fbf10caff671c4.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var authenticated = this.props.isLoggedIn;\n console.log(\"riddhi\", authenticated);\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 5\n }\n }, authenticated ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 33\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 33\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 33\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 61,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: this.props.logout,\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 33\n }\n }, \"Logout\")))))))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 75,\n columnNumber: 4\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 76,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 77,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"this.props.iflogout\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 78,\n columnNumber: 9\n }\n }, \"Login\")))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","authenticated","props","isLoggedIn","console","log","textDecoration","submit","logout","login"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AACN,UAAMC,aAAa,GAAG,KAAKC,KAAL,CAAWC,UAAjC;AACAC,MAAAA,OAAO,CAACC,GAAR,CAAY,QAAZ,EAAqBJ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EAAhG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CADF,CADC,CA3CC,CADF;AAyDD;;;;EA9D2BnB,S;;AAgE5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const authenticated = this.props.isLoggedIn;\n console.log(\"riddhi\",authenticated);\n \n return (\n
\n {authenticated ? ( \n \n \n \n \n \n \n \n )\n :\n (
\n
    \n
  • \n \n Login\n \n \n
  • \n
\n
) }\n \n
\n )\n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/a6e358146c2d1448d3b2eca64f6a02a6.json b/node_modules/.cache/babel-loader/5ebf5b6b0a9a46b22f59257a86d9a40a.json similarity index 100% rename from node_modules/.cache/babel-loader/a6e358146c2d1448d3b2eca64f6a02a6.json rename to node_modules/.cache/babel-loader/5ebf5b6b0a9a46b22f59257a86d9a40a.json diff --git a/node_modules/.cache/babel-loader/5f207630b88686c5912963fc299d05ef.json b/node_modules/.cache/babel-loader/5f207630b88686c5912963fc299d05ef.json deleted file mode 100644 index f553fe2d..00000000 --- a/node_modules/.cache/babel-loader/5f207630b88686c5912963fc299d05ef.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport NavigationBar from './components/NavigationBar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 228,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 229,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 242,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 19\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 278,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 282,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 283,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 286,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 294,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(NavigationBar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 295,\n columnNumber: 11\n }\n }), mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","NavigationBar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,OAAOC,aAAP,MAA2B,4BAA3B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAC/C,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAwC;;AACxC,SAASC,WAAT,QAA4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AA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACG;AAAM,QAAA,GAAG,EAAEnF,MAAX;AAAmB,QAAA,KAAK,EAAE,MAA1B;AAAkC,QAAA,MAAM,EAAE,MAA1C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADH,CADJ,EAIKgF,OAJL,CADa,EAQZE,SARY,eAUb;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAEjF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAVa,eAcb;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAda,eAkBb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAlBa,CAAjB;AAyBE,0BACE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,EAEIkF,QAFJ,CADF;AASH;;;;EA5Re9F,S;;AA8RlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport NavigationBar from './components/NavigationBar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n
\n \n {mainBody}\n
\n \n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/e4b1a80a6825e609d353af388fafb65d.json b/node_modules/.cache/babel-loader/5f44d97d2d45680c11cbb3d7f42e75d4.json similarity index 100% rename from node_modules/.cache/babel-loader/e4b1a80a6825e609d353af388fafb65d.json rename to node_modules/.cache/babel-loader/5f44d97d2d45680c11cbb3d7f42e75d4.json diff --git a/node_modules/.cache/babel-loader/64ddbcacc9b8a4d8cb8b2e2c373b76ec.json b/node_modules/.cache/babel-loader/5f7e474ed01076df14590cf47c0b269b.json similarity index 100% rename from node_modules/.cache/babel-loader/64ddbcacc9b8a4d8cb8b2e2c373b76ec.json rename to node_modules/.cache/babel-loader/5f7e474ed01076df14590cf47c0b269b.json diff --git a/node_modules/.cache/babel-loader/5f850de9340d92b0c8257fdde7dafe03.json b/node_modules/.cache/babel-loader/5f850de9340d92b0c8257fdde7dafe03.json deleted file mode 100644 index e2732e49..00000000 --- a/node_modules/.cache/babel-loader/5f850de9340d92b0c8257fdde7dafe03.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 226,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 227,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 228,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 24\n }\n }, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 237,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 238,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 240,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 241,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n logout: this.logout,\n login: this.login,\n isLoggedIn: this.state.isAuthenticated,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 11\n }\n }), mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","isNavbar","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,aAAP,MAA2B,iBAA3B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,I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,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CANe,eASf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QATe,CAAjB;AAcA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAe,QAAA,MAAM,EAAE,KAAK8B,MAA5B;AAAoC,QAAA,KAAK,EAAE,KAAKD,KAAhD;AAAuD,QAAA,UAAU,EAAE,KAAKrB,KAAL,CAAWE,eAA9E;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,EAGIuE,QAHJ,CAFF;AAUH;;;;EAjPe7F,S;;AAmPlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n \n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n \n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n \n \n {mainBody}\n \n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/5fd3347f421e6000d4a40bc48bc852dd.json b/node_modules/.cache/babel-loader/5fd3347f421e6000d4a40bc48bc852dd.json deleted file mode 100644 index a114969a..00000000 --- a/node_modules/.cache/babel-loader/5fd3347f421e6000d4a40bc48bc852dd.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Switch, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 15\n }\n }))));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,SAASC,aAAT,QAA8B,4BAA9B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAEE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,eAII,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEN,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJJ,eAKI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEC,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALJ,eAMI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANJ,eAOI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAPJ,CAFF,CADF,CADF;AAiBD;;;;EAnBmBX,S;;AAsBtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() {\n return (\n \n \n \n \n \n {/* \n */}\n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/d7f51d87d542050dc50803cab37d3baa.json b/node_modules/.cache/babel-loader/5fef94218fe0a419eb8b6440ebfab499.json similarity index 100% rename from node_modules/.cache/babel-loader/d7f51d87d542050dc50803cab37d3baa.json rename to node_modules/.cache/babel-loader/5fef94218fe0a419eb8b6440ebfab499.json diff --git a/node_modules/.cache/babel-loader/6040c46ecd77630d2d49c47365b3d2dd.json b/node_modules/.cache/babel-loader/6040c46ecd77630d2d49c47365b3d2dd.json deleted file mode 100644 index 5317cc42..00000000 --- a/node_modules/.cache/babel-loader/6040c46ecd77630d2d49c47365b3d2dd.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var isLoggedIn = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 7\n }\n }, isLoggedIn ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 41\n }\n }, \"Simulator\"))))) : null);\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","isLoggedIn","props","textDecoration"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AACN,UAAMC,UAAU,GAAG,KAAKC,KAAL,CAAWD,UAA9B;AACA,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACAA,UAAU,gBACV,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAEQ;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACc;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAAA,KAAK,EAAC,MAAX;AAAkB,QAAA,GAAG,EAAEJ,MAAvB;AAA+B,QAAA,KAAK,EAAE,MAAtC;AAA8C,QAAA,MAAM,EAAE,MAAtD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CADd,CAFR,eAOkB;AAAK,QAAA,EAAE,EAAC,QAAR;AAAiB,QAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAIQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAEM,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA6C,QAAA,KAAK,EAAC,UAAnD;AAA8D,QAAA,EAAE,EAAC,WAAjE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBADJ,CADJ,eAOI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA6C,QAAA,KAAK,EAAC,OAAnD;AAA2D,QAAA,EAAE,EAAC,QAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CAPJ,eAYI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA6C,QAAA,KAAK,EAAC,OAAnD;AAA2D,QAAA,EAAE,EAAC,GAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADJ,CAZJ,CAJR,CAPlB,CADU,GAsCV,IAvCA,CADF;AA+CH;;;;EAlD2Bb,S;;AAoD5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const isLoggedIn = this.props.isLoggedIn;\n return (\n
\n { isLoggedIn ? \n \n \n
\n \n \n \n
\n
\n \n \n \n
    \n
  • \n \n Progress\n \n
  • \n \n
  • \n \n Tasks\n \n
  • \n
  • \n \n Simulator\n \n
  • \n \n
\n \n \n
\n \n
\n \n :\n null\n }\n \n \n\n
\n); \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/f6ac2665738c42bde996bf1c5f2485d9.json b/node_modules/.cache/babel-loader/6064b5d5505acb78b2c441cb1f80d1ea.json similarity index 100% rename from node_modules/.cache/babel-loader/f6ac2665738c42bde996bf1c5f2485d9.json rename to node_modules/.cache/babel-loader/6064b5d5505acb78b2c441cb1f80d1ea.json diff --git a/node_modules/.cache/babel-loader/f73a1a3a81bef41d4e92bcd4147f3353.json b/node_modules/.cache/babel-loader/6085cb313cac119ddfc195e4a878c1b5.json similarity index 100% rename from node_modules/.cache/babel-loader/f73a1a3a81bef41d4e92bcd4147f3353.json rename to node_modules/.cache/babel-loader/6085cb313cac119ddfc195e4a878c1b5.json diff --git a/node_modules/.cache/babel-loader/370f86ca9b1fe80d8b11878bebe6f1fa.json b/node_modules/.cache/babel-loader/609ba3e1a45d6ed5e9edc70999fde1d6.json similarity index 100% rename from node_modules/.cache/babel-loader/370f86ca9b1fe80d8b11878bebe6f1fa.json rename to node_modules/.cache/babel-loader/609ba3e1a45d6ed5e9edc70999fde1d6.json diff --git a/node_modules/.cache/babel-loader/609d4e296621c63e4bbf7f72a565f6b0.json b/node_modules/.cache/babel-loader/609d4e296621c63e4bbf7f72a565f6b0.json deleted file mode 100644 index 50069240..00000000 --- a/node_modules/.cache/babel-loader/609d4e296621c63e4bbf7f72a565f6b0.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(\"h1\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 11\n }\n }, \"About US\"), /*#__PURE__*/React.createElement(\"p\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 11\n }\n }, \"About US page body content\"));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;;IAEMC,S;;;;;;;;;;;;;;;UAKAC,K,GAAQ;AACNC,MAAAA,SAAS,EAAE,IADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,SAAS,EAAED;AAJL,K;;;;;;6BAOC;AACP,0BAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACN;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBADM,eAEN;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sCAFM,CAAR;AAID;;;;EAjBiBf,S;;AAAlBU,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAET,UAAU,CAACD,OAAD,CAAV,CAAoBW;AADd,C;AAmBvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() {\n return (
\n

About US

\n

About US page body content

\n
);\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/c9bfc6c567e86e7cc4e4c7e6c1c6942e.json b/node_modules/.cache/babel-loader/60b36b8917bcbd3c16241270d92c3390.json similarity index 100% rename from node_modules/.cache/babel-loader/c9bfc6c567e86e7cc4e4c7e6c1c6942e.json rename to node_modules/.cache/babel-loader/60b36b8917bcbd3c16241270d92c3390.json diff --git a/node_modules/.cache/babel-loader/60c9ca9f662dc32a5894d7f1dfd153e7.json b/node_modules/.cache/babel-loader/60c9ca9f662dc32a5894d7f1dfd153e7.json deleted file mode 100644 index a9e577e3..00000000 --- a/node_modules/.cache/babel-loader/60c9ca9f662dc32a5894d7f1dfd153e7.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 249,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 36\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 275,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE;AAJF,KAOU;AAAA,QAETC,OAFS,GAEEP,KAF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AAA;AAAA,4BAL5B,CAFF,CADS,GAYL,IAZd;AAcc,UAAMqE,QAAQ,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAC3B;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAElF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAD2B,eAK3B;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAL2B,eAS3B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAT2B,CAAjB;AAgBZ,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIkF,QADJ,CAFF;AAOH;;;;EAvQe7F,S;;AAyQlB,eAAeI,UAAU,CAACQ,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n \n const options = this.state.isAuthenticated ? \n \n
\n
    \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/61037b77a7a128d55688742dd432066c.json b/node_modules/.cache/babel-loader/61037b77a7a128d55688742dd432066c.json deleted file mode 100644 index b4b8faaa..00000000 --- a/node_modules/.cache/babel-loader/61037b77a7a128d55688742dd432066c.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\nexport var Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 19\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 28\n }\n }, \"Tasks\"))))))));\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","textDecoration"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;AAiBA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;AAAA,sBAC3B,oBAAC,MAAD;AAAA;AAAA;AAA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AlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,QAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aADJ,CAPF,CADH,CANV,CADJ,CADA,CADF,CAD2B;AAAA,CAAtB","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nexport const Navigationbar = () => (\n \n \n \n \n \n \n \n)"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/7d8918fb8e092b7f6ed3bffe97aa0807.json b/node_modules/.cache/babel-loader/611691062dc3caa9b971da0bd6d8a43f.json similarity index 100% rename from node_modules/.cache/babel-loader/7d8918fb8e092b7f6ed3bffe97aa0807.json rename to node_modules/.cache/babel-loader/611691062dc3caa9b971da0bd6d8a43f.json diff --git a/node_modules/.cache/babel-loader/e06516942c56e4f9c5684493605f4bab.json b/node_modules/.cache/babel-loader/61281309ddb302e390465cb6f9cf69df.json similarity index 100% rename from node_modules/.cache/babel-loader/e06516942c56e4f9c5684493605f4bab.json rename to node_modules/.cache/babel-loader/61281309ddb302e390465cb6f9cf69df.json diff --git a/node_modules/.cache/babel-loader/618b0f7de67720f7e16a30ab58456287.json b/node_modules/.cache/babel-loader/618b0f7de67720f7e16a30ab58456287.json deleted file mode 100644 index b18f5bd3..00000000 --- a/node_modules/.cache/babel-loader/618b0f7de67720f7e16a30ab58456287.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink, Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var isLoggedIn = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 7\n }\n }, isLoggedIn ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 41\n }\n }, \"Simulator\")))))) : null);\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","Link","styled","header","Styles","div","Navigationbar","isLoggedIn","props","textDecoration"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,EAAiBC,IAAjB,QAA6B,kBAA7B;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AACN,UAAMC,UAAU,GAAG,KAAKC,KAAL,CAAWD,UAA9B;AACA,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACAA,UAAU,gBACV,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACQ,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACc;AA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ADU,GAuCV,IAxCA,CADF;AAgDH;;;;EAnD2Bd,S;;AAqD5B,eAAeW,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink,Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const isLoggedIn = this.props.isLoggedIn;\n return (\n
\n { isLoggedIn ? \n \n \n
\n \n \n \n
\n
\n \n \n \n
    \n \n
  • \n \n Progress\n \n
  • \n \n
  • \n \n Tasks\n \n
  • \n
  • \n \n Simulator\n \n
  • \n \n
\n \n \n
\n
\n
\n \n :\n null\n }\n \n \n\n
\n); \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/3b34e0636ac3c58d6f457cfcbdddc136.json b/node_modules/.cache/babel-loader/61aaa9d2def9e1b4ad5d6271b4c4275c.json similarity index 100% rename from node_modules/.cache/babel-loader/3b34e0636ac3c58d6f457cfcbdddc136.json rename to node_modules/.cache/babel-loader/61aaa9d2def9e1b4ad5d6271b4c4275c.json diff --git a/node_modules/.cache/babel-loader/61c129e79452518058019bb0bfd591b2.json b/node_modules/.cache/babel-loader/61c129e79452518058019bb0bfd591b2.json deleted file mode 100644 index a119d1b2..00000000 --- a/node_modules/.cache/babel-loader/61c129e79452518058019bb0bfd591b2.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }()\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator(urlAction) {\n //launchSimulator() {\n var url = urlAction; //window.location.href = \"http://localhost:3000/simulator\";\n\n this.simulatorWindow = window.open(url + \":8080\", '_blank');\n this.shellWindow = window.open(url + \":4200\", '_blank');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.post(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n this.setState({\n isLoading: true,\n launch: true\n });\n this.attach(this.state.launch);\n\n var _httpClient = axios.create();\n\n _httpClient.defaults.timeout = 600000;\n\n _httpClient.post(\"http://\".concat(this.ip, \"/simulator/start/\").concat(this.state.user.sub, \"/\").concat(this.state.user.given_name, \"/spiri-friend2019@\"), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n simulator: res.data,\n isLoading: false\n });\n\n _this5.launchSimulator(_this5.state.simulator.publicIp);\n }); //this.launchSimulator();\n\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 217,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 218,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 219,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 225,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 226,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 239,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 240,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 241,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 242,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 252,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 254,\n columnNumber: 19\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 267,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 275,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 276,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 280,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 283,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 291,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","urlAction","url","open","httpClient","create","defaults","timeout","post","withCredentials","res","given_name","simulator","data","publicIp","options","textDecoration","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAC/C,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAwC;;AACxC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,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MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAda,eAkBb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAlBa,CAAjB;AAyBE,0BACE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIyF,QADJ,CADF;AAOH;;;;EAzRepG,S;;AA2RlB,eAAeG,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n launchSimulator(urlAction) {\n //launchSimulator() {\n const url = urlAction;\n //window.location.href = \"http://localhost:3000/simulator\";\n this.simulatorWindow = window.open(url + \":8080\", '_blank');\n this.shellWindow = window.open(url + \":4200\", '_blank');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.post(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.post(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })\n //this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n
\n {mainBody}\n
\n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/8526754efc5c1d174aec040f23a64b15.json b/node_modules/.cache/babel-loader/61d5f7c0b2a8d08d5c5f1130106e5ffe.json similarity index 100% rename from node_modules/.cache/babel-loader/8526754efc5c1d174aec040f23a64b15.json rename to node_modules/.cache/babel-loader/61d5f7c0b2a8d08d5c5f1130106e5ffe.json diff --git a/node_modules/.cache/babel-loader/041542de5bad319dd314ed35ca14e07a.json b/node_modules/.cache/babel-loader/61e840acd397363b7d869b8f92999d8b.json similarity index 100% rename from node_modules/.cache/babel-loader/041542de5bad319dd314ed35ca14e07a.json rename to node_modules/.cache/babel-loader/61e840acd397363b7d869b8f92999d8b.json diff --git a/node_modules/.cache/babel-loader/62873338c8d45fb2c55cf73d0ad1ee8a.json b/node_modules/.cache/babel-loader/62873338c8d45fb2c55cf73d0ad1ee8a.json new file mode 100644 index 00000000..4f344a28 --- /dev/null +++ b/node_modules/.cache/babel-loader/62873338c8d45fb2c55cf73d0ad1ee8a.json @@ -0,0 +1 @@ +{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/simulation/Gazebo_simulation-Frontend/src/components/Manager.js\";\nimport React, { Component } from 'react';\nimport ProgressBar from './progress-bar';\n\nvar Manager = /*#__PURE__*/function (_Component) {\n _inherits(Manager, _Component);\n\n function Manager(props) {\n var _this;\n\n _classCallCheck(this, Manager);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(Manager).call(this, props));\n _this.state = {\n percentage: 50\n };\n return _this;\n }\n\n _createClass(Manager, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 12,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(ProgressBar, {\n percentage: this.state.percentage,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 13,\n columnNumber: 17\n }\n }), /*#__PURE__*/React.createElement(\"h1\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 17\n }\n }, \"Tasks Completed :\"), /*#__PURE__*/React.createElement(\"div\", {\n class: \"menu\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"cb-row\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(\"label\", {\n for: \"nome\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 21\n }\n }, \"1) Take off and climb to a specified altitude, then land; this scenario will allow the teacher and students to verify that everything has been installed and configured correctly :\"), /*#__PURE__*/React.createElement(\"input\", {\n id: \"nome\",\n name: \"Nome\",\n type: \"checkbox\",\n value: \"Nome\",\n checked: true,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 21\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n class: \"cb-row\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(\"label\", {\n for: \"data\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 21\n }\n }, \"2) Take off and climb to an altitude of 2 meters, rotate 90 degrees to the left, then 180 degrees to the right and finally 90 degrees to the left, then land :\"), /*#__PURE__*/React.createElement(\"input\", {\n id: \"data\",\n name: \"Data\",\n type: \"checkbox\",\n value: \"Data\",\n checked: true,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 21\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n class: \"cb-row\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(\"label\", {\n for: \"cliente\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 21\n }\n }, \"3) Take off and climb to an altitude of 2 meters, at a speed of 0.5 meters/second, back 2 meters, move left 2 meters, move forward 2 meters, then return to the starting point going right 2 meters, and finally land :\"), /*#__PURE__*/React.createElement(\"input\", {\n id: \"cliente\",\n name: \"Cliente\",\n type: \"checkbox\",\n value: \"Cliente\",\n unchecked: true,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 21\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n class: \"cb-row\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(\"label\", {\n for: \"ob\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 21\n }\n }, \"4) take off and climb to an altitude of 2 meters, repeat 4 times: (rotate 90 degrees to the right and then advance 2 meters at a speed of 0.5 meters/second), then land :\"), /*#__PURE__*/React.createElement(\"input\", {\n id: \"ob\",\n name: \"Observa\\xE7\\xF5es\",\n type: \"checkbox\",\n value: \"Observa\\xE7\\xF5es\",\n unchecked: true,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 21\n }\n }))));\n }\n }]);\n\n return Manager;\n}(Component);\n\nexport default Manager;","map":{"version":3,"sources":["/home/riddhi/simulation/Gazebo_simulation-Frontend/src/components/Manager.js"],"names":["React","Component","ProgressBar","Manager","props","state","percentage"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,WAAP,MAAwB,gBAAxB;;IAEMC,O;;;AACF,mBAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AACd,iFAAMA,KAAN;AACA,UAAKC,KAAL,GAAa;AAACC,MAAAA,UAAU,EAAG;AAAd,KAAb;AAFc;AAGjB;;;;6BAEQ;AACL,0BACI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,WAAD;AAAa,QAAA,UAAU,EAAE,KAAKD,KAAL,CAAWC,UAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,eAGI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6BAHJ,eAII;AAAK,QAAA,KAAK,EAAC,MAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAGA;AAAK,QAAA,KAAK,EAAC,QA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AAA;AAAA;AAAA;AAAA;AAAA,qLADJ,eAEI;AAAO,QAAA,EAAE,EAAC,IAAV;AAAe,QAAA,IAAI,EAAC,mBAApB;AAAkC,QAAA,IAAI,EAAC,UAAvC;AAAkD,QAAA,KAAK,EAAC,mBAAxD;AAAsE,QAAA,SAAS,MAA/E;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAFJ,CAfA,CAJJ,CADJ;AA2BH;;;;EAlCiBL,S;;AAqCtB,eAAeE,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport ProgressBar from './progress-bar';\n\nclass Manager extends Component{\n constructor(props){\n super(props);\n this.state = {percentage : 50}\n }\n\n render() {\n return (\n
\n \n \n

Tasks Completed :

\n
\n \n\n
\n \n \n
\n
\n \n \n
\n
\n \n \n
\n
\n \n \n
\n
\n
\n );\n }\n}\n\nexport default Manager;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/9410cfbdb2b09c647d1ec2877458b169.json b/node_modules/.cache/babel-loader/62ab97894c13818775bc5f7aec790f6b.json similarity index 100% rename from node_modules/.cache/babel-loader/9410cfbdb2b09c647d1ec2877458b169.json rename to node_modules/.cache/babel-loader/62ab97894c13818775bc5f7aec790f6b.json diff --git a/node_modules/.cache/babel-loader/333c37d395d2b106434d2f976703d6eb.json b/node_modules/.cache/babel-loader/62dd13ecde83cac95e500cfb8a6792ff.json similarity index 100% rename from node_modules/.cache/babel-loader/333c37d395d2b106434d2f976703d6eb.json rename to node_modules/.cache/babel-loader/62dd13ecde83cac95e500cfb8a6792ff.json diff --git a/node_modules/.cache/babel-loader/62ef066c1071d556b71879ca376c074c.json b/node_modules/.cache/babel-loader/62ef066c1071d556b71879ca376c074c.json deleted file mode 100644 index 2c9bd0fa..00000000 --- a/node_modules/.cache/babel-loader/62ef066c1071d556b71879ca376c074c.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nvar Styles = styled.div(_templateObject());\nexport var Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 5\n }\n }, \"const options = this.state.isAuthenticated ?\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 28\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: _this.submit,\n class: \"logout\",\n to: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 28\n }\n }, \"Logout\")))), \":\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 49,\n columnNumber: 18\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 18\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 20\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: _this.login,\n class: \"login\",\n to: \"\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 24\n }\n }, \"Login\")))), /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 60,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 61,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Nav.Item, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 21\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(Nav.Item, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 63,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 63,\n columnNumber: 21\n }\n }, \"Task\"))))));\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","Styles","div","Navigationbar","textDecoration","submit","login"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,IAAMC,MAAM,GAAGD,MAAM,CAACE,GAAV,mBAAZ;AAiBA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;AAAA,sBAC3B,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD;AAAQ,IAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kEAGc;AAAK,IAAA,EAAE,EAAC,QAAR;AAAiB,IAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE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,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,GAAD;AAAK,IAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,GAAD,CAAK,IAAL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAU,oBAAC,GAAD,CAAK,IAAL;AAAU,IAAA,IAAI,EAAC,WAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAAV,CADF,eAEE,oBAAC,GAAD,CAAK,IAAL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAU,oBAAC,GAAD,CAAK,IAAL;AAAU,IAAA,IAAI,EAAC,QAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAAV,CAFF,CADF,CApCF,CADF,CAD2B;AAAA,CAAtB","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nexport const Navigationbar = () => (\n \n \n const options = this.state.isAuthenticated ? \n \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n \n \n \n \n \n
\n
\n)"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/e5d5f9aea35b12ec01a39e3847613554.json b/node_modules/.cache/babel-loader/6322ad3dbefc2e2ac7deda09b25ab90e.json similarity index 100% rename from node_modules/.cache/babel-loader/e5d5f9aea35b12ec01a39e3847613554.json rename to node_modules/.cache/babel-loader/6322ad3dbefc2e2ac7deda09b25ab90e.json diff --git a/node_modules/.cache/babel-loader/63337c9ed90d2cb537f6233294648848.json b/node_modules/.cache/babel-loader/63337c9ed90d2cb537f6233294648848.json deleted file mode 100644 index b7958e98..00000000 --- a/node_modules/.cache/babel-loader/63337c9ed90d2cb537f6233294648848.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 12,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 13,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 14,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Switch, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 15\n }\n })))));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","CookiesProvider","TaskList","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB,C,CACA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAGE,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEJ,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHF,eAIE,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEC,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJF,eAKE,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEE,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALF,CADF,CADF,CADF,CADF;AAeD;;;;EAjBmBT,S;;AAoBtB,eAAeU,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() {\n return (\n \n \n
\n \n {/* \n */}\n \n \n \n \n
\n
\n
\n );\n }\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/63746439e4cd12fce43c7472abb31abe.json b/node_modules/.cache/babel-loader/63746439e4cd12fce43c7472abb31abe.json deleted file mode 100644 index 27b71108..00000000 --- a/node_modules/.cache/babel-loader/63746439e4cd12fce43c7472abb31abe.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink, Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var isLoggedIn = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 7\n }\n }, isLoggedIn ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 41\n }\n }, \"Simulator\"))))) : null);\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","Link","styled","header","Styles","div","Navigationbar","isLoggedIn","props","textDecoration"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,EAAiBC,IAAjB,QAA6B,kBAA7B;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AACN,UAAMC,UAAU,GAAG,KAAKC,KAAL,CAAWD,UAA9B;AACA,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACAA,UAAU,gBACV,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAEQ;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACc;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAAA,KAAK,EAAC,MAAX;AAAkB,QAAA,GAAG,EAAEJ,MAAvB;AAA+B,QAAA,KAAK,EAAE,MAAtC;AAA8C,QAAA,MAAM,EAAE,MAAtD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CADd,CAFR,eAOkB;AAAK,QAAA,EAAE,EAAC,QAAR;AAAiB,QAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAIQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEM,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,UAAhD;AAA2D,QAAA,EAAE,EAAC,WAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBADJ,CADJ,eAOI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,OAAhD;AAAwD,QAAA,EAAE,EAAC,QAA3D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CAPJ,eAYI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,OAAhD;AAAwD,QAAA,EAAE,EAAC,GAA3D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADJ,CAZJ,CAJR,CAPlB,CADU,GAsCV,IAvCA,CADF;AA+CH;;;;EAlD2Bd,S;;AAoD5B,eAAeW,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink,Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const isLoggedIn = this.props.isLoggedIn;\n return (\n
\n { isLoggedIn ? \n \n \n
\n \n \n \n
\n
\n \n \n \n
    \n
  • \n \n Progress\n \n
  • \n \n
  • \n \n Tasks\n \n
  • \n
  • \n \n Simulator\n \n
  • \n \n
\n \n \n
\n \n
\n \n :\n null\n }\n \n \n\n
\n); \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/63978bb4adc6942fecdd8f8ff3f6c407.json b/node_modules/.cache/babel-loader/63978bb4adc6942fecdd8f8ff3f6c407.json deleted file mode 100644 index bf93e9be..00000000 --- a/node_modules/.cache/babel-loader/63978bb4adc6942fecdd8f8ff3f6c407.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 229,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 230,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 256,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 272,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 280,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 283,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 284,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 287,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 295,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,OAAOC,aAAP,MAA0B,iBAA1B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAC/C,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAwC;;AACxC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE;AAJF,KAOU;AAAA,QAETC,OAFS,GAEEP,KAFF,CAETO,OAFS;AAGhBC,IAAAA,OAAO,CAACC,GAAR,CAAYF,OAAZ;AACA,UAAKN,KAAL,CAAWS,SAAX,GAAuBH,OAAO,CAACI,GAAR,CAAY,YAAZ,CAAvB;AACAH,IAAAA,OAAO,CAACC,GAAR,CAAY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;AAAA;AAAA;AAAA;AAAA,QAlBa,CAAjB;AAyBE,0BACE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAEIkF,QAFJ,CADF;AASH;;;;EA7Re9F,S;;AA+RlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n
\n \n {mainBody}\n
\n \n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/f86b7004eb4c8eb7c9129d58b3847175.json b/node_modules/.cache/babel-loader/641304b86f32fecfe7783113867dccf9.json similarity index 100% rename from node_modules/.cache/babel-loader/f86b7004eb4c8eb7c9129d58b3847175.json rename to node_modules/.cache/babel-loader/641304b86f32fecfe7783113867dccf9.json diff --git a/node_modules/.cache/babel-loader/6428e6328c9f74f76167f5c6c7fb9c43.json b/node_modules/.cache/babel-loader/6428e6328c9f74f76167f5c6c7fb9c43.json deleted file mode 100644 index beb5e9d4..00000000 --- a/node_modules/.cache/babel-loader/6428e6328c9f74f76167f5c6c7fb9c43.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n var url = \"http://localhost\"; //window.location.href = \"http://localhost:3000/simulator\";\n\n this.simulatorWindow = window.open(url + \":8080\", '_blank');\n this.shellWindow = window.open(url + \":4200\", '_blank');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n //this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 218,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 219,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 226,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 227,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 240,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 241,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 242,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 253,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 19\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 267,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 276,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 277,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 280,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 281,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 284,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 292,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","url","open","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAC/C,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAwC;;AACxC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE;AAJF,KAOU;AAAA,QAETC,OAFS,GAEEP,KAFF,CA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AEnF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAVa,eAcb;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAda,eAkBb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAlBa,CAAjB;AAyBE,0BACE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIoF,QADJ,CADF;AAOH;;;;EA1Re/F,S;;AA4RlB,eAAeG,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n const url = \"http://localhost\";\n //window.location.href = \"http://localhost:3000/simulator\";\n this.simulatorWindow = window.open(url + \":8080\", '_blank');\n this.shellWindow = window.open(url + \":4200\", '_blank');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n //this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n
\n {mainBody}\n
\n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/f7d6b71561a693e8045de42cdacc5e87.json b/node_modules/.cache/babel-loader/6475d4b81aa1714149b7d7f6bfe44040.json similarity index 100% rename from node_modules/.cache/babel-loader/f7d6b71561a693e8045de42cdacc5e87.json rename to node_modules/.cache/babel-loader/6475d4b81aa1714149b7d7f6bfe44040.json diff --git a/node_modules/.cache/babel-loader/e7e00b207474b71fd1d19c491bff4e18.json b/node_modules/.cache/babel-loader/64d5f1ca44ac208516099a1e21cf7ba4.json similarity index 100% rename from node_modules/.cache/babel-loader/e7e00b207474b71fd1d19c491bff4e18.json rename to node_modules/.cache/babel-loader/64d5f1ca44ac208516099a1e21cf7ba4.json diff --git a/node_modules/.cache/babel-loader/2e2defb9365ac4b34e197241e7939205.json b/node_modules/.cache/babel-loader/651bce1b41d28131496a35a958eda2d5.json similarity index 100% rename from node_modules/.cache/babel-loader/2e2defb9365ac4b34e197241e7939205.json rename to node_modules/.cache/babel-loader/651bce1b41d28131496a35a958eda2d5.json diff --git a/node_modules/.cache/babel-loader/1da7efd088abd13235d4377d3469811c.json b/node_modules/.cache/babel-loader/65367d347b28bed14f1ce1107301642f.json similarity index 100% rename from node_modules/.cache/babel-loader/1da7efd088abd13235d4377d3469811c.json rename to node_modules/.cache/babel-loader/65367d347b28bed14f1ce1107301642f.json diff --git a/node_modules/.cache/babel-loader/ef50c82bfd205a6fe5a8ac82fa521ad5.json b/node_modules/.cache/babel-loader/658bdd742daf72a3a17e858846e92a2a.json similarity index 100% rename from node_modules/.cache/babel-loader/ef50c82bfd205a6fe5a8ac82fa521ad5.json rename to node_modules/.cache/babel-loader/658bdd742daf72a3a17e858846e92a2a.json diff --git a/node_modules/.cache/babel-loader/6b6bd4d58747427fc1b5038168393a51.json b/node_modules/.cache/babel-loader/65a0ac3910c661ea1f236c78f1407ab6.json similarity index 100% rename from node_modules/.cache/babel-loader/6b6bd4d58747427fc1b5038168393a51.json rename to node_modules/.cache/babel-loader/65a0ac3910c661ea1f236c78f1407ab6.json diff --git a/node_modules/.cache/babel-loader/88bfa32b3258472af2ce9edd93050fba.json b/node_modules/.cache/babel-loader/65cd8635de69c7a6d18985ab3ce5384c.json similarity index 100% rename from node_modules/.cache/babel-loader/88bfa32b3258472af2ce9edd93050fba.json rename to node_modules/.cache/babel-loader/65cd8635de69c7a6d18985ab3ce5384c.json diff --git a/node_modules/.cache/babel-loader/123482a32acad8212fec0d8a83ca317b.json b/node_modules/.cache/babel-loader/65db7a66516caae7e2d042e497ebdf77.json similarity index 100% rename from node_modules/.cache/babel-loader/123482a32acad8212fec0d8a83ca317b.json rename to node_modules/.cache/babel-loader/65db7a66516caae7e2d042e497ebdf77.json diff --git a/node_modules/.cache/babel-loader/62061d77851dbdfcc17dc31c7bd98902.json b/node_modules/.cache/babel-loader/65dd2e8d571d89d65e06e1206547a851.json similarity index 100% rename from node_modules/.cache/babel-loader/62061d77851dbdfcc17dc31c7bd98902.json rename to node_modules/.cache/babel-loader/65dd2e8d571d89d65e06e1206547a851.json diff --git a/node_modules/.cache/babel-loader/65f4285912c8aeb364fa584028fb7057.json b/node_modules/.cache/babel-loader/65f4285912c8aeb364fa584028fb7057.json deleted file mode 100644 index 6bd0a5b9..00000000 --- a/node_modules/.cache/babel-loader/65f4285912c8aeb364fa584028fb7057.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 218,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"script\", {\n type: \"text/javascript\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 219,\n columnNumber: 5\n }\n }, \" const options = this.state.isAuthenticated ? \"), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 31\n }\n }, \"Logout\")))), \":\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, \"Login\")))), \"const simulator = this.state.isAuthenticated ?\", /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 249,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))), \" : null\", /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 275,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","mainBody","textDecoration"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE;AAJF,KAOU;AAAA,QAETC,OAFS,GAEEP,KAFF,CAETO,OAFS;AAGhBC,IAAAA,OAAO,CAACC,GAAR,CAAYF,OAAZ;AACA,UAAKN,KAAL,CAAWS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Cb;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAEb,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAxCa,eA4Cb;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CA5Ca,eAgDb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAhDa,CAAjB;AAuDE,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACI+E,QADJ,CAFF;AAOH;;;;EAvQe1F,S;;AAyQlB,eAAeI,UAAU,CAACQ,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const mainBody =
\n \n \n
\n
    \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/50a75a1c98404a5022c1e683424b1679.json b/node_modules/.cache/babel-loader/6643973611123243a213e4c5565c83d3.json similarity index 100% rename from node_modules/.cache/babel-loader/50a75a1c98404a5022c1e683424b1679.json rename to node_modules/.cache/babel-loader/6643973611123243a213e4c5565c83d3.json diff --git a/node_modules/.cache/babel-loader/b749bdd6bb69abe12f6d5f11a5818017.json b/node_modules/.cache/babel-loader/6689237044b7d88cce0d7575ecbdc909.json similarity index 100% rename from node_modules/.cache/babel-loader/b749bdd6bb69abe12f6d5f11a5818017.json rename to node_modules/.cache/babel-loader/6689237044b7d88cce0d7575ecbdc909.json diff --git a/node_modules/.cache/babel-loader/a139d2ec265e8cdddf9290f249b309b1.json b/node_modules/.cache/babel-loader/6699beb1a33aaa2e43af9b0b94cc8500.json similarity index 100% rename from node_modules/.cache/babel-loader/a139d2ec265e8cdddf9290f249b309b1.json rename to node_modules/.cache/babel-loader/6699beb1a33aaa2e43af9b0b94cc8500.json diff --git a/node_modules/.cache/babel-loader/5859715f3d7d3b3b7a217ca7eb2ad9dd.json b/node_modules/.cache/babel-loader/6735930d9b0208263d718b8a0f133091.json similarity index 100% rename from node_modules/.cache/babel-loader/5859715f3d7d3b3b7a217ca7eb2ad9dd.json rename to node_modules/.cache/babel-loader/6735930d9b0208263d718b8a0f133091.json diff --git a/node_modules/.cache/babel-loader/f1f07e93cc2d142e7437960a59d14190.json b/node_modules/.cache/babel-loader/6756a177d8ae56b15b5515426b781b85.json similarity index 100% rename from node_modules/.cache/babel-loader/f1f07e93cc2d142e7437960a59d14190.json rename to node_modules/.cache/babel-loader/6756a177d8ae56b15b5515426b781b85.json diff --git a/node_modules/.cache/babel-loader/ee82a9f9e1c70324536f3cdc289fa77f.json b/node_modules/.cache/babel-loader/6772bda76a2974aebb412dbbc57379f0.json similarity index 100% rename from node_modules/.cache/babel-loader/ee82a9f9e1c70324536f3cdc289fa77f.json rename to node_modules/.cache/babel-loader/6772bda76a2974aebb412dbbc57379f0.json diff --git a/node_modules/.cache/babel-loader/67767303a11df8148f830d2d071bb91c.json b/node_modules/.cache/babel-loader/67767303a11df8148f830d2d071bb91c.json deleted file mode 100644 index 2275a70a..00000000 --- a/node_modules/.cache/babel-loader/67767303a11df8148f830d2d071bb91c.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var authenticated = this.props.isLoggedIn;\n var login = this.props.login;\n console.log(\"riddhi\", authenticated);\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 5\n }\n }, authenticated ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 33\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 53,\n columnNumber: 33\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 58,\n columnNumber: 33\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 63,\n columnNumber: 33\n }\n }, \"Logout\")))))))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 76,\n columnNumber: 4\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 77,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 78,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: this.props.login,\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 79,\n columnNumber: 9\n }\n }, \"Login\")))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","authenticated","props","isLoggedIn","login","console","log","textDec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iF,QAAA,EAAE,EAAC,GAApF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBADJ,CAjBF,CADF,CANV,CADJ,CADF,CADA,CADc,gBA0CnB;AAAK,QAAA,EAAE,EAAC,QAAR;AAAiB,QAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAED,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKH,KAA1D;AAAiE,QAAA,KAAK,EAAE,KAAKF,KAAL,CAAWE,KAAnF;AAA0F,QAAA,EAAE,EAAC,EAA7F;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CADF,CADC,CA3CC,CADF;AAyDD;;;;EA/D2Bd,S;;AAiE5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const authenticated = this.props.isLoggedIn;\n const login = this.props.login;\n console.log(\"riddhi\",authenticated);\n \n return (\n
\n {authenticated ? ( \n \n \n \n \n \n \n \n )\n :\n (
\n
    \n
  • \n \n Login\n \n \n
  • \n
\n
) }\n \n
\n )\n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/6776f48dee75bf3fe1e67d0d7ac495a1.json b/node_modules/.cache/babel-loader/6776f48dee75bf3fe1e67d0d7ac495a1.json deleted file mode 100644 index 35477c75..00000000 --- a/node_modules/.cache/babel-loader/6776f48dee75bf3fe1e67d0d7ac495a1.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\nexport var Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 25\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 28\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 48,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 49,\n columnNumber: 28\n }\n }, \"Back\"))))))));\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","textDecoration"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;AAiBA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;AAAA,sBAC3B,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD;AAAQ,IAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACA,oBAAC,MAAD,CAAQ,QAAR;AAAiB,IAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,GAAD;AAAK,IAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACU;AAAK,IAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI;AAAG,IAAA,KAAK,EAAC,OAAT;AAAiB,IAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE;AAAK,IAAA,KAAK,EAAC,MAAX;AAAkB,IAAA,GAAG,EAAEH,MAAvB;AAA+B,IAAA,KAAK,EAAE,MAAtC;AAA8C,IAAA,MAAM,EAAE,MAAtD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IADF,CADJ,CADV,eAMU;AAAK,IAAA,EAAE,EAAC,QAAR;AAAiB,IAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEI,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,UAAnD;AAA8D,IAAA,EAAE,EAAC,WAAjE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBADJ,CADF,eAOE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,QAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aADJ,CAPF,eAYE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,GAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YADJ,CAZF,CADH,CANV,CADJ,CADA,CADF,CAD2B;AAAA,CAAtB","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nexport const Navigationbar = () => (\n \n \n \n \n \n \n \n)"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/4aefe4388c53fb37f416045113fe3ede.json b/node_modules/.cache/babel-loader/67bc63a4a9ca36e47b3cebdfb42930a2.json similarity index 100% rename from node_modules/.cache/babel-loader/4aefe4388c53fb37f416045113fe3ede.json rename to node_modules/.cache/babel-loader/67bc63a4a9ca36e47b3cebdfb42930a2.json diff --git a/node_modules/.cache/babel-loader/756b823f6be571b3738ba6ded7246372.json b/node_modules/.cache/babel-loader/67eed3596e482819ab89c80e5a899729.json similarity index 100% rename from node_modules/.cache/babel-loader/756b823f6be571b3738ba6ded7246372.json rename to node_modules/.cache/babel-loader/67eed3596e482819ab89c80e5a899729.json diff --git a/node_modules/.cache/babel-loader/859eba582a220855fda1770ca6555130.json b/node_modules/.cache/babel-loader/686a8807590c4b7ac0e728c593b7d36c.json similarity index 100% rename from node_modules/.cache/babel-loader/859eba582a220855fda1770ca6555130.json rename to node_modules/.cache/babel-loader/686a8807590c4b7ac0e728c593b7d36c.json diff --git a/node_modules/.cache/babel-loader/1456473922ff658dcdc96dd1b201f1ec.json b/node_modules/.cache/babel-loader/68b141c19cfa43f328ff48ed283fff48.json similarity index 100% rename from node_modules/.cache/babel-loader/1456473922ff658dcdc96dd1b201f1ec.json rename to node_modules/.cache/babel-loader/68b141c19cfa43f328ff48ed283fff48.json diff --git a/node_modules/.cache/babel-loader/95d3c4df12e456856b414681c02a6e81.json b/node_modules/.cache/babel-loader/69414e1c6cb4f0c34bbc7e52887e3a22.json similarity index 100% rename from node_modules/.cache/babel-loader/95d3c4df12e456856b414681c02a6e81.json rename to node_modules/.cache/babel-loader/69414e1c6cb4f0c34bbc7e52887e3a22.json diff --git a/node_modules/.cache/babel-loader/ffbecd3aa4770171ac21fca7a00ddc94.json b/node_modules/.cache/babel-loader/69731bf30983736acef129b0bb92ac0c.json similarity index 100% rename from node_modules/.cache/babel-loader/ffbecd3aa4770171ac21fca7a00ddc94.json rename to node_modules/.cache/babel-loader/69731bf30983736acef129b0bb92ac0c.json diff --git a/node_modules/.cache/babel-loader/dc1eb817c33a9d0a07a793e06869fa1d.json b/node_modules/.cache/babel-loader/6a10ff1cd9c4c23513e2daa1d62f85f2.json similarity index 100% rename from node_modules/.cache/babel-loader/dc1eb817c33a9d0a07a793e06869fa1d.json rename to node_modules/.cache/babel-loader/6a10ff1cd9c4c23513e2daa1d62f85f2.json diff --git a/node_modules/.cache/babel-loader/4ee4f1a4d7888fb1921c7cfb59193d02.json b/node_modules/.cache/babel-loader/6acbce38d21b9897b17d94a504d21bf8.json similarity index 100% rename from node_modules/.cache/babel-loader/4ee4f1a4d7888fb1921c7cfb59193d02.json rename to node_modules/.cache/babel-loader/6acbce38d21b9897b17d94a504d21bf8.json diff --git a/node_modules/.cache/babel-loader/0ae9d26bc1f61ec1f71c853396535ae7.json b/node_modules/.cache/babel-loader/6b08c247bda7c3d190bd7f95e3f70979.json similarity index 100% rename from node_modules/.cache/babel-loader/0ae9d26bc1f61ec1f71c853396535ae7.json rename to node_modules/.cache/babel-loader/6b08c247bda7c3d190bd7f95e3f70979.json diff --git a/node_modules/.cache/babel-loader/268bdc94e590ea3c4ab0bc726aab8b07.json b/node_modules/.cache/babel-loader/6b0d76bf8892c5f4214fadefbf639b67.json similarity index 100% rename from node_modules/.cache/babel-loader/268bdc94e590ea3c4ab0bc726aab8b07.json rename to node_modules/.cache/babel-loader/6b0d76bf8892c5f4214fadefbf639b67.json diff --git a/node_modules/.cache/babel-loader/829be8d122c2a65a69d503a69953f712.json b/node_modules/.cache/babel-loader/6b67d29609dc0d551956b4043ac01327.json similarity index 100% rename from node_modules/.cache/babel-loader/829be8d122c2a65a69d503a69953f712.json rename to node_modules/.cache/babel-loader/6b67d29609dc0d551956b4043ac01327.json diff --git a/node_modules/.cache/babel-loader/08209ccb7b4b235540ed9f70031a0b72.json b/node_modules/.cache/babel-loader/6b86150b5bda9c4ea45623b2b1b13e83.json similarity index 100% rename from node_modules/.cache/babel-loader/08209ccb7b4b235540ed9f70031a0b72.json rename to node_modules/.cache/babel-loader/6b86150b5bda9c4ea45623b2b1b13e83.json diff --git a/node_modules/.cache/babel-loader/249d012de3a41e6f7e25b3388ed006a3.json b/node_modules/.cache/babel-loader/6c072ec7dd7e9c3ff9dd2bd3049267ad.json similarity index 100% rename from node_modules/.cache/babel-loader/249d012de3a41e6f7e25b3388ed006a3.json rename to node_modules/.cache/babel-loader/6c072ec7dd7e9c3ff9dd2bd3049267ad.json diff --git a/node_modules/.cache/babel-loader/6c121ca0f35a59eff73d171a6c41d02c.json b/node_modules/.cache/babel-loader/6c121ca0f35a59eff73d171a6c41d02c.json deleted file mode 100644 index 9d0554be..00000000 --- a/node_modules/.cache/babel-loader/6c121ca0f35a59eff73d171a6c41d02c.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _jsxFileName = \"/home/riddhi/frontend/src/index.js\";\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport './index.css';\nimport * as serviceWorker from './serviceWorker';\nimport Routing from './Routing';\nReactDOM.render( /*#__PURE__*/React.createElement(Routing, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 7,\n columnNumber: 17\n }\n}), document.getElementById('root')); //ReactDOM.render(, document.getElementById('root'));\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\n\nserviceWorker.unregister();","map":{"version":3,"sources":["/home/riddhi/frontend/src/index.js"],"names":["React","ReactDOM","serviceWorker","Routing","render","document","getElementById","unregister"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,QAAP,MAAqB,WAArB;AACA,OAAO,aAAP;AACA,OAAO,KAAKC,aAAZ,MAA+B,iBAA/B;AACA,OAAOC,OAAP,MAAoB,WAApB;AAEAF,QAAQ,CAACG,MAAT,eAAgB,oBAAC,OAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAhB,EAA4BC,QAAQ,CAACC,cAAT,CAAwB,MAAxB,CAA5B,E,CACA;AAGA;AACA;AACA;;AACAJ,aAAa,CAACK,UAAd","sourcesContent":["import React from 'react';\nimport ReactDOM from 'react-dom';\nimport './index.css';\nimport * as serviceWorker from './serviceWorker';\nimport Routing from './Routing';\n\nReactDOM.render(, document.getElementById('root'));\n//ReactDOM.render(, document.getElementById('root'));\n\n\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\nserviceWorker.unregister();"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/5930b0a0208e4cdc9e51854482bb526c.json b/node_modules/.cache/babel-loader/6c3a054c07c9a1ca62374d3413ef2a57.json similarity index 100% rename from node_modules/.cache/babel-loader/5930b0a0208e4cdc9e51854482bb526c.json rename to node_modules/.cache/babel-loader/6c3a054c07c9a1ca62374d3413ef2a57.json diff --git a/node_modules/.cache/babel-loader/6cd02039bc6232295b3a13b0ccd66c6f.json b/node_modules/.cache/babel-loader/6cd02039bc6232295b3a13b0ccd66c6f.json deleted file mode 100644 index 85f6995a..00000000 --- a/node_modules/.cache/babel-loader/6cd02039bc6232295b3a13b0ccd66c6f.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = function Navigationbar() {\n var navbar_options = /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 25\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 28\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 28\n }\n }, \"Simulator\"))))))));\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 64,\n columnNumber: 5\n }\n }, _this.state.isAuthenticated ? {\n navbar_options: navbar_options\n } : null);\n};\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigation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AA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEK,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,UAAnD;AAA8D,IAAA,EAAE,EAAC,WAAjE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBADJ,CADF,eAOE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,QAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aADJ,CAPF,eAYE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,GAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CAZF,CADH,CANV,CADJ,CADA,CADA,CADF;AAoCA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACI,KAAI,CAACC,KAAL,CAAWC,eAAX,GACA;AAACH,IAAAA,cAAc,EAAdA;AAAD,GADA,GAIF,IALF,CADF;AAUD,CA/CD;;AAgDA,eAAeD,aAAf","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nconst Navigationbar = () => {\n const navbar_options = (\n \n \n \n \n \n \n \n );\n return (\n
\n { this.state.isAuthenticated ? (\n {navbar_options }\n )\n :\n null\n }\n
\n );\n};\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/6d41da2b9907589efec6391a173d692b.json b/node_modules/.cache/babel-loader/6d41da2b9907589efec6391a173d692b.json deleted file mode 100644 index 4fa23d28..00000000 --- a/node_modules/.cache/babel-loader/6d41da2b9907589efec6391a173d692b.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 218,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 219,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 226,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 227,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 240,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 241,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 242,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 253,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 19\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 267,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 276,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 277,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 280,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 281,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 284,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 292,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAC/C,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAwC;;AACxC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE;AAJF,KAOU;AAAA,QAETC,OAFS,GAEEP,KAFF,CAETO,OAFS;AAGhBC,IAAAA,OAAO,CAACC,GAAR,CAAYF,OAAZ;AACA,UAAKN,KAAL,CAAWS,SAAX,GAAuBH,OAAO,CAACI,GAAR,CAAY,YAAZ,CAAvB;AACAH,IAAAA,OAAO,CAACC,GAAR,CAAY,MAAKR,KAAL,CAAWS,SAAvB;AACA,UAAKE,KAAL,GAAa,gBAAb;AACA,UAAKC,IAAL,GAAY,qBAAZ;AACA,UAAKC,MAAL,GAAe,OAAf;;AACA,QAAI,MAAKA,MAAL,KAAgB,OAApB,EAA6B;AAC3B,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AeG,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n
\n {mainBody}\n
\n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/6da9dc74811d4c7fc5c84c8856c01de4.json b/node_modules/.cache/babel-loader/6da9dc74811d4c7fc5c84c8856c01de4.json deleted file mode 100644 index 0cebbd8f..00000000 --- a/node_modules/.cache/babel-loader/6da9dc74811d4c7fc5c84c8856c01de4.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 229,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 230,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 256,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 272,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 280,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 283,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 284,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 287,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(React.Fragment, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 297,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 298,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 299,\n columnNumber: 13\n }\n })));\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAC/C,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAwC;;AACxC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE;AAJF,KAOU;AAAA,QAETC,OAFS,GAEEP,KAFF,CAETO,OAFS;AAGhBC,IAAAA,OAAO,CAACC,GAAR,CAAYF,OAAZ;AACA,UAAKN,KAAL,CAAWS,SAAX,GAAuBH,OAAO,CAACI,GAAR,CAAY,YAAZ,CAAvB;AACAH,IAAAA,OAAO,CAACC,GAAR,CAA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A;AAAA;AAAA;AAAA;AAAA,QAlBa,CAAjB;AAyBE,0BAGE,oBAAC,KAAD,CAAO,QAAP;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CADF,CAHF;AAYH;;;;EAhSeZ,S;;AAkSlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n \n \n \n \n \n \n \n \n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/a1e7487e183a7543ba858f82ac496446.json b/node_modules/.cache/babel-loader/6ddfd4717494aa97f0da7501177772fc.json similarity index 100% rename from node_modules/.cache/babel-loader/a1e7487e183a7543ba858f82ac496446.json rename to node_modules/.cache/babel-loader/6ddfd4717494aa97f0da7501177772fc.json diff --git a/node_modules/.cache/babel-loader/7f2b30a56bd6285a01786b2a82491df0.json b/node_modules/.cache/babel-loader/6e1969ca4bb332cbb3a9f53a365bfe3d.json similarity index 100% rename from node_modules/.cache/babel-loader/7f2b30a56bd6285a01786b2a82491df0.json rename to node_modules/.cache/babel-loader/6e1969ca4bb332cbb3a9f53a365bfe3d.json diff --git a/node_modules/.cache/babel-loader/6e1a5457f12ac9007cb5e05e95ffa333.json b/node_modules/.cache/babel-loader/6e1a5457f12ac9007cb5e05e95ffa333.json deleted file mode 100644 index c80dc569..00000000 --- a/node_modules/.cache/babel-loader/6e1a5457f12ac9007cb5e05e95ffa333.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nvar Styles = styled.div(_templateObject());\nexport var Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 5\n }\n }, \"const options = this.state.isAuthenticated ?\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 28\n }\n }, \"Tasks\")))), \":\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 18\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 18\n }\n })), /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 53,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Nav.Item, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 54,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 54,\n columnNumber: 21\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(Nav.Item, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 21\n }\n }, \"Task\"))))));\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","Styles","div","Navigationbar","textDecoration"],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A;AAAA;AAAA;AAAA,kBACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IADA,CArBb,eA4BE,oBAAC,MAAD,CAAQ,QAAR;AAAiB,IAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,GAAD;AAAK,IAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,GAAD,CAAK,IAAL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAU,oBAAC,GAAD,CAAK,IAAL;AAAU,IAAA,IAAI,EAAC,WAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAAV,CADF,eAEE,oBAAC,GAAD,CAAK,IAAL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAU,oBAAC,GAAD,CAAK,IAAL;AAAU,IAAA,IAAI,EAAC,QAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAAV,CAFF,CADF,CA5BF,CADF,CAD2B;AAAA,CAAtB","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nexport const Navigationbar = () => (\n \n \n const options = this.state.isAuthenticated ? \n \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n \n
\n
\n :\n
\n
    \n \n
\n
\n \n \n \n \n \n
\n
\n)"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/3dbb00eb16570e8dc7ae26c89e2f9cde.json b/node_modules/.cache/babel-loader/6e34c05ffc04060b0a70fff6c5fbe50e.json similarity index 100% rename from node_modules/.cache/babel-loader/3dbb00eb16570e8dc7ae26c89e2f9cde.json rename to node_modules/.cache/babel-loader/6e34c05ffc04060b0a70fff6c5fbe50e.json diff --git a/node_modules/.cache/babel-loader/758288dce718c58e8bad646698d013d9.json b/node_modules/.cache/babel-loader/6ec6687a14d33b409425760d8de91c63.json similarity index 100% rename from node_modules/.cache/babel-loader/758288dce718c58e8bad646698d013d9.json rename to node_modules/.cache/babel-loader/6ec6687a14d33b409425760d8de91c63.json diff --git a/node_modules/.cache/babel-loader/36212af8908d879aa7b8ac3b7e372262.json b/node_modules/.cache/babel-loader/6ef44ec15c304900bddf5a19a31d9876.json similarity index 100% rename from node_modules/.cache/babel-loader/36212af8908d879aa7b8ac3b7e372262.json rename to node_modules/.cache/babel-loader/6ef44ec15c304900bddf5a19a31d9876.json diff --git a/node_modules/.cache/babel-loader/1ba4588136500198fcd88faf0d846345.json b/node_modules/.cache/babel-loader/6f1102b62b6acef76013f599c13ab28d.json similarity index 100% rename from node_modules/.cache/babel-loader/1ba4588136500198fcd88faf0d846345.json rename to node_modules/.cache/babel-loader/6f1102b62b6acef76013f599c13ab28d.json diff --git a/node_modules/.cache/babel-loader/4c1f954526a78f59835b225e1f05e3ba.json b/node_modules/.cache/babel-loader/6f31d9575c1a366aa7070cab0edc66be.json similarity index 100% rename from node_modules/.cache/babel-loader/4c1f954526a78f59835b225e1f05e3ba.json rename to node_modules/.cache/babel-loader/6f31d9575c1a366aa7070cab0edc66be.json diff --git a/node_modules/.cache/babel-loader/6f3f5a86cc9452e02dc5cafba985bfed.json b/node_modules/.cache/babel-loader/6f3f5a86cc9452e02dc5cafba985bfed.json deleted file mode 100644 index b32c31cd..00000000 --- a/node_modules/.cache/babel-loader/6f3f5a86cc9452e02dc5cafba985bfed.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 227,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 228,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 229,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 24\n }\n }, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 238,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 239,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 241,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 242,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n logout: this.logout,\n submit: this.submit,\n login: this.login,\n isLoggedIn: this.state.isAuthenticated,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 252,\n columnNumber: 11\n }\n }), mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","isNavbar","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,aAAP,MAA2B,iBAA3B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AASJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UARlBC,KAQkB,GARV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE,KAJF;AAKNC,MAAAA,QAAQ,EAAE;AALJ,KAQU;AAAA,QAETC,OAFS,GAEER,KAFF,CAETQ,OAFS;AAGhBC,IAAAA,OAAO,CAACC,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port Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n \n \n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n \n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n \n \n {mainBody}\n \n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/6f49dfb38e73f5138be946f5bd2114db.json b/node_modules/.cache/babel-loader/6f49dfb38e73f5138be946f5bd2114db.json deleted file mode 100644 index 85d52e0c..00000000 --- a/node_modules/.cache/babel-loader/6f49dfb38e73f5138be946f5bd2114db.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\nexport var Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 16\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 28\n }\n }, \"Tasks\"))))))));\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","textDecoration"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OA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AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEI,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,UAAnD;AAA8D,IAAA,EAAE,EAAC,WAAjE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBADJ,CADF,eAOE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,QAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aADJ,CAPF,CADH,CANV,CADJ,CADA,CADF,CAD2B;AAAA,CAAtB","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nexport const Navigationbar = () => (\n \n \n \n \n \n \n \n)"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/96e7fbcbc20a35ed3f2f1b8944ef7528.json b/node_modules/.cache/babel-loader/6f6414e52fae88fe8717b67ddf32bb62.json similarity index 100% rename from node_modules/.cache/babel-loader/96e7fbcbc20a35ed3f2f1b8944ef7528.json rename to node_modules/.cache/babel-loader/6f6414e52fae88fe8717b67ddf32bb62.json diff --git a/node_modules/.cache/babel-loader/6f7bf086b0bbf2a8bc4688bd248841f0.json b/node_modules/.cache/babel-loader/6f7bf086b0bbf2a8bc4688bd248841f0.json deleted file mode 100644 index 48ce4c4b..00000000 --- a/node_modules/.cache/babel-loader/6f7bf086b0bbf2a8bc4688bd248841f0.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport NavigationBar from './components/Navbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 228,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 229,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 242,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 19\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 278,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 282,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 283,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 286,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 294,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 295,\n columnNumber: 11\n }\n }), mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","NavigationBar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,OAAOC,aAAP,MAA2B,qBAA3B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,Q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css/bootstrap.min.css';\nimport NavigationBar from './components/Navbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n
\n \n {mainBody}\n
\n \n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/ab5a4134681ed6bf166c9cf79f0f9a46.json b/node_modules/.cache/babel-loader/6f9a2a8b89ff3ed650c0da891959f20d.json similarity index 100% rename from node_modules/.cache/babel-loader/ab5a4134681ed6bf166c9cf79f0f9a46.json rename to node_modules/.cache/babel-loader/6f9a2a8b89ff3ed650c0da891959f20d.json diff --git a/node_modules/.cache/babel-loader/b4bf09f384962ba7226235b1ec6ab8e7.json b/node_modules/.cache/babel-loader/6fbe7a9968904b6c73c2b859761327af.json similarity index 100% rename from node_modules/.cache/babel-loader/b4bf09f384962ba7226235b1ec6ab8e7.json rename to node_modules/.cache/babel-loader/6fbe7a9968904b6c73c2b859761327af.json diff --git a/node_modules/.cache/babel-loader/ceed8ec91a622017c4f8d099b32dfcc8.json b/node_modules/.cache/babel-loader/6fd9ad97f696f441b5d3bde4448ea3c2.json similarity index 100% rename from node_modules/.cache/babel-loader/ceed8ec91a622017c4f8d099b32dfcc8.json rename to node_modules/.cache/babel-loader/6fd9ad97f696f441b5d3bde4448ea3c2.json diff --git a/node_modules/.cache/babel-loader/c1a83320674165856065a17235294da2.json b/node_modules/.cache/babel-loader/6fd9f7b01f1da05969364c89fac60504.json similarity index 100% rename from node_modules/.cache/babel-loader/c1a83320674165856065a17235294da2.json rename to node_modules/.cache/babel-loader/6fd9f7b01f1da05969364c89fac60504.json diff --git a/node_modules/.cache/babel-loader/8b072d830627e87089e1a5eede008907.json b/node_modules/.cache/babel-loader/6fe08d4254ea3b7bf393d3358b1bc8a3.json similarity index 100% rename from node_modules/.cache/babel-loader/8b072d830627e87089e1a5eede008907.json rename to node_modules/.cache/babel-loader/6fe08d4254ea3b7bf393d3358b1bc8a3.json diff --git a/node_modules/.cache/babel-loader/66c92ed10fe5e0d79ee6c49aa9e796c3.json b/node_modules/.cache/babel-loader/70048404ae3a32842a5a5a8349426e43.json similarity index 100% rename from node_modules/.cache/babel-loader/66c92ed10fe5e0d79ee6c49aa9e796c3.json rename to node_modules/.cache/babel-loader/70048404ae3a32842a5a5a8349426e43.json diff --git a/node_modules/.cache/babel-loader/fccc9f706e55b6c99f5b0736c1a00c43.json b/node_modules/.cache/babel-loader/702392a65fab33a391a037937a7ec9ae.json similarity index 100% rename from node_modules/.cache/babel-loader/fccc9f706e55b6c99f5b0736c1a00c43.json rename to node_modules/.cache/babel-loader/702392a65fab33a391a037937a7ec9ae.json diff --git a/node_modules/.cache/babel-loader/702a92a3edf1981ef5741b0660534dd6.json b/node_modules/.cache/babel-loader/702a92a3edf1981ef5741b0660534dd6.json deleted file mode 100644 index 8338989e..00000000 --- a/node_modules/.cache/babel-loader/702a92a3edf1981ef5741b0660534dd6.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl, NavItem } from 'react-bootstrap';\nimport { NavLink, Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var isLoggedIn = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 7\n }\n }, isLoggedIn ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavItem, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 46\n }\n }, \"Progress\"))), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 41\n }\n }, \"Simulator\")))))) : null);\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavItem","NavLink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A;AAAA;AAAA;AAAA;AAAA,sBAEI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA,oBAAC,OAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAS,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEM,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,UAAhD;AAA2D,QAAA,EAAE,EAAC,WAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAT,CADA,CAFJ,eAQI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,OAAhD;AAAwD,QAAA,EAAE,EAAC,QAA3D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CARJ,eAaI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,OAAhD;AAAwD,QAAA,EAAE,EAAC,GAA3D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADJ,CAbJ,CAJR,CANV,CADR,CADU,GAuCV,IAxCA,CADF;AAgDH;;;;EAnD2Bf,S;;AAqD5B,eAAeY,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl, NavItem } from 'react-bootstrap';\nimport { NavLink,Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const isLoggedIn = this.props.isLoggedIn;\n return (\n
\n { isLoggedIn ? \n \n \n \n \n :\n null\n }\n \n \n\n
\n); \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/7048f1867aa3e7857de8d8573b631d43.json b/node_modules/.cache/babel-loader/7048f1867aa3e7857de8d8573b631d43.json deleted file mode 100644 index 574a4983..00000000 --- a/node_modules/.cache/babel-loader/7048f1867aa3e7857de8d8573b631d43.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #222; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #9FFFCB;\\n &:hover { color: white; }\\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #9FFFCB;\\n &:hover { color: white; }\\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nvar Styles = styled.div(_templateObject());\nexport var Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Brand, {\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 7\n }\n }, \"Tutorial\"), /*#__PURE__*/React.createElement(Navbar.Toggle, {\n \"aria-controls\": \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 7\n }\n }), /*#__PURE__*/React.createElement(Form, {\n className: \"form-center\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(FormControl, {\n type: \"text\",\n placeholder: \"Search\",\n className: \"\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 9\n }\n })), /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Nav.Item, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 21\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(Nav.Item, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 21\n }\n }, \"Task\"))))));\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","styled","Styles","div","Navigationbar"],"mappings":";;;;;;;;;;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AAAA;AAAA;AAAA;AAAA;AAAA,gBAAV,CADF,eAEE,oBAAC,GAAD,CAAK,IAAL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAU,oBAAC,GAAD,CAAK,IAAL;AAAU,IAAA,IAAI,EAAC,QAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAAV,CAFF,CADF,CANF,CADF,CAD2B;AAAA,CAAtB","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nconst Styles = styled.div`\n .navbar { background-color: #222; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #9FFFCB;\n &:hover { color: white; }\n }\n .navbar-brand {\n font-size: 1.4em;\n color: #9FFFCB;\n &:hover { color: white; }\n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nexport const Navigationbar = () => (\n \n \n Tutorial\n \n
\n \n \n \n \n \n
\n
\n)"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/d5c69f9f5699a254039cc55c7c28f444.json b/node_modules/.cache/babel-loader/708e408417c504706c3fc83a2d6ba279.json similarity index 100% rename from node_modules/.cache/babel-loader/d5c69f9f5699a254039cc55c7c28f444.json rename to node_modules/.cache/babel-loader/708e408417c504706c3fc83a2d6ba279.json diff --git a/node_modules/.cache/babel-loader/ca1900c5f5dc0c39a8f29eaf7152004e.json b/node_modules/.cache/babel-loader/70a43bb758b44d150f0e9814be7152a6.json similarity index 100% rename from node_modules/.cache/babel-loader/ca1900c5f5dc0c39a8f29eaf7152004e.json rename to node_modules/.cache/babel-loader/70a43bb758b44d150f0e9814be7152a6.json diff --git a/node_modules/.cache/babel-loader/e3ce3bf3e2e05987ecf6812fed926d99.json b/node_modules/.cache/babel-loader/70c1b56b1444b160aacc854bbd9bc68c.json similarity index 100% rename from node_modules/.cache/babel-loader/e3ce3bf3e2e05987ecf6812fed926d99.json rename to node_modules/.cache/babel-loader/70c1b56b1444b160aacc854bbd9bc68c.json diff --git a/node_modules/.cache/babel-loader/7cf2c275a78903bb689b0b9a896a923f.json b/node_modules/.cache/babel-loader/7103cf4361b7c96db38af647604c3c2c.json similarity index 100% rename from node_modules/.cache/babel-loader/7cf2c275a78903bb689b0b9a896a923f.json rename to node_modules/.cache/babel-loader/7103cf4361b7c96db38af647604c3c2c.json diff --git a/node_modules/.cache/babel-loader/62dd7df309d0a12e1bf4bb2c2d89d2ba.json b/node_modules/.cache/babel-loader/71724b89bcf20a8f33c504ff0593dbd6.json similarity index 100% rename from node_modules/.cache/babel-loader/62dd7df309d0a12e1bf4bb2c2d89d2ba.json rename to node_modules/.cache/babel-loader/71724b89bcf20a8f33c504ff0593dbd6.json diff --git a/node_modules/.cache/babel-loader/acb3904f878a391b859bccf82b3fa9d6.json b/node_modules/.cache/babel-loader/71c18f67883ab68ed48003da6e3bb34a.json similarity index 100% rename from node_modules/.cache/babel-loader/acb3904f878a391b859bccf82b3fa9d6.json rename to node_modules/.cache/babel-loader/71c18f67883ab68ed48003da6e3bb34a.json diff --git a/node_modules/.cache/babel-loader/139000c6887e286b3a12bbcfe3f9f16b.json b/node_modules/.cache/babel-loader/721ad4b062a9507791148b75066f9ea0.json similarity index 100% rename from node_modules/.cache/babel-loader/139000c6887e286b3a12bbcfe3f9f16b.json rename to node_modules/.cache/babel-loader/721ad4b062a9507791148b75066f9ea0.json diff --git a/node_modules/.cache/babel-loader/9c488792239747b0b6b6dddf99d3675b.json b/node_modules/.cache/babel-loader/724e3d5174a723a29cbd5648f1f3aef6.json similarity index 100% rename from node_modules/.cache/babel-loader/9c488792239747b0b6b6dddf99d3675b.json rename to node_modules/.cache/babel-loader/724e3d5174a723a29cbd5648f1f3aef6.json diff --git a/node_modules/.cache/babel-loader/28b63ddbd8f9b08ac4889c8ef5d6d5e5.json b/node_modules/.cache/babel-loader/727f9d8d332553caa918104e01d4265a.json similarity index 100% rename from node_modules/.cache/babel-loader/28b63ddbd8f9b08ac4889c8ef5d6d5e5.json rename to node_modules/.cache/babel-loader/727f9d8d332553caa918104e01d4265a.json diff --git a/node_modules/.cache/babel-loader/72ea23e5c72a7709140fffef7fed021b.json b/node_modules/.cache/babel-loader/72ea23e5c72a7709140fffef7fed021b.json deleted file mode 100644 index b11149bf..00000000 --- a/node_modules/.cache/babel-loader/72ea23e5c72a7709140fffef7fed021b.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport Navigationbar from './Navigationbar';\nimport './App.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:4200\",\n target: \"top_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 13\n }\n }, \" Console \"), /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:8888\",\n target: \"bottom_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 13\n }\n }, \" Simulator \"), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"top_\",\n src: \"\",\n width: \"100%\",\n height: \"400px\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"bottom_\",\n src: \"\",\n width: \"100%\",\n height: \"400px\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 15\n }\n }));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Navigationbar","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAs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EV,UAAU,CAACD,OAAD,CAAV,CAAoBY;AADd,C;AA0BvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport Navigationbar from './Navigationbar';\nimport './App.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n \n Console \n Simulator \n \n \n \n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/7329c30b608eeef675d5d9a68c892026.json b/node_modules/.cache/babel-loader/7329c30b608eeef675d5d9a68c892026.json deleted file mode 100644 index 1aefcee5..00000000 --- a/node_modules/.cache/babel-loader/7329c30b608eeef675d5d9a68c892026.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 225,\n columnNumber: 19\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 237,\n columnNumber: 19\n }\n }, \"Login\")))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 248,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 252,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 253,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 16\n }\n }))), options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 267,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 273,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 280,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAA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A;AAAA,sBACG;AAAK,QAAA,KAAK,EAAC,MAAX;AAAkB,QAAA,GAAG,EAAEnF,MAAvB;AAA+B,QAAA,KAAK,EAAE,MAAtC;AAA8C,QAAA,MAAM,EAAE,MAAtD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADH,CADJ,CADe,EAMdgF,OANc,EAOdE,SAPc,eAQf;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAEjF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CARe,eAWf;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAXe,eAcf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAde,CAAjB;AAmBA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIkF,QADJ,CAFF;AAOH;;;;EA3Qe9F,S;;AA6QlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n\n
\n \n
    \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n \n
\n
    \n
  • \n \n Login\n \n \n
  • \n
\n
\n
\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n
\n \n \n \n
\n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/741396d4a29a86c7f09b5157b89ba3b9.json b/node_modules/.cache/babel-loader/741396d4a29a86c7f09b5157b89ba3b9.json deleted file mode 100644 index 896001f0..00000000 --- a/node_modules/.cache/babel-loader/741396d4a29a86c7f09b5157b89ba3b9.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\nexport var Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 16\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 28\n }\n }, \"Tasks\")))), \":\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 54,\n columnNumber: 18\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 18\n }\n }))))));\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","textDecoration"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP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;AAAEC,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,UAAnD;AAA8D,IAAA,EAAE,EAAC,WAAjE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBADJ,CADF,eAOE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,QAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aADJ,CAPF,CADH,CARV,oBA0BS;AAAK,IAAA,EAAE,EAAC,QAAR;AAAiB,IAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IADA,CA1BT,CADJ,CADA,CADF,CAD2B;AAAA,CAAtB","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nexport const Navigationbar = () => (\n \n \n \n \n \n \n \n)"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/dfae46293d2fc643485d1aa95d677e8f.json b/node_modules/.cache/babel-loader/7427a26f7ad731bd48097e5caf23e662.json similarity index 100% rename from node_modules/.cache/babel-loader/dfae46293d2fc643485d1aa95d677e8f.json rename to node_modules/.cache/babel-loader/7427a26f7ad731bd48097e5caf23e662.json diff --git a/node_modules/.cache/babel-loader/15f200b951c15f52df9c72e309c263d6.json b/node_modules/.cache/babel-loader/74399fa1d83e6b02ccd51e9f652cba31.json similarity index 100% rename from node_modules/.cache/babel-loader/15f200b951c15f52df9c72e309c263d6.json rename to node_modules/.cache/babel-loader/74399fa1d83e6b02ccd51e9f652cba31.json diff --git a/node_modules/.cache/babel-loader/ccef774c5d2fad93800486b15b8f73e0.json b/node_modules/.cache/babel-loader/744abef1d6820540f09d6bf7a636a201.json similarity index 100% rename from node_modules/.cache/babel-loader/ccef774c5d2fad93800486b15b8f73e0.json rename to node_modules/.cache/babel-loader/744abef1d6820540f09d6bf7a636a201.json diff --git a/node_modules/.cache/babel-loader/9892c2b023dda995bfa91c25839ee674.json b/node_modules/.cache/babel-loader/74650885ca68923d10a8f5fc73dc9008.json similarity index 100% rename from node_modules/.cache/babel-loader/9892c2b023dda995bfa91c25839ee674.json rename to node_modules/.cache/babel-loader/74650885ca68923d10a8f5fc73dc9008.json diff --git a/node_modules/.cache/babel-loader/18cd7999da4cabf9fbb8aeb550fc27bd.json b/node_modules/.cache/babel-loader/746c65a6b2b0777a896034251f23951d.json similarity index 100% rename from node_modules/.cache/babel-loader/18cd7999da4cabf9fbb8aeb550fc27bd.json rename to node_modules/.cache/babel-loader/746c65a6b2b0777a896034251f23951d.json diff --git a/node_modules/.cache/babel-loader/5170bbba564817a51709734f94f8fe4b.json b/node_modules/.cache/babel-loader/7489eb5d514add341849a90b33dacb89.json similarity index 100% rename from node_modules/.cache/babel-loader/5170bbba564817a51709734f94f8fe4b.json rename to node_modules/.cache/babel-loader/7489eb5d514add341849a90b33dacb89.json diff --git a/node_modules/.cache/babel-loader/74a600d6af9cd3a00a6321d47f25c9f9.json b/node_modules/.cache/babel-loader/74a600d6af9cd3a00a6321d47f25c9f9.json deleted file mode 100644 index 3f890841..00000000 --- a/node_modules/.cache/babel-loader/74a600d6af9cd3a00a6321d47f25c9f9.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = function Navigationbar() {\n var navbar_options = _this.state.isAuthenticated ? /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 29\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 31\n }\n }, \"Simulator\")))))))) : null;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"Navigationbar\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 67,\n columnNumber: 5\n }\n }, _this.state.isAuthenticated ? navbar_options : null);\n};\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","navbar_options","state","isAuthenticated","textDecoration"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;AAkBA,IAAMC,aAAa,GAAG,SAAhBA,aAAgB,GAAM;AAC1B,MAAMC,cAAc,GAAG,KAAI,CAACC,KAAL,CAAWC,eAAX,gBACrB,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD;AAAQ,IAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD,CAAQ,QAAR;AAAiB,IAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,GAAD;AAAK,IAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACU;AAAK,IAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI;AAAG,IAAA,KAAK,EAAC,OAAT;AAAiB,IAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE;AAAK,IAAA,KAAK,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KAAL,CAAWC,eAAX,GACAF,cADA,GAIF,IALF,CADF;AAUD,CAlDD;;AAmDA,eAAeD,aAAf","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nconst Navigationbar = () => {\n const navbar_options = this.state.isAuthenticated ? (\n \n \n \n \n \n \n \n )\n :\n null\n \n return (\n
\n { this.state.isAuthenticated ? (\n navbar_options\n )\n :\n null\n }\n
\n )\n};\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/750f1b1dd7afea7f9a893f9c605402d8.json b/node_modules/.cache/babel-loader/750f1b1dd7afea7f9a893f9c605402d8.json deleted file mode 100644 index b2b70434..00000000 --- a/node_modules/.cache/babel-loader/750f1b1dd7afea7f9a893f9c605402d8.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"top_side\",\n src: \"\",\n width: \"100%\",\n height: \"50%\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:4200\",\n target: \"right_side\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 17\n }\n }, \" Home \"));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;AACA,OAAO,iBAAP;;IAEMC,S;;;;;;;;;;;;;;;UAKAC,K,GAAQ;AACNC,MAAAA,SAAS,EAAE,IADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,SAAS,EAAED;AAJL,K;;;;;;6BAQR;AACE,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAQ,QAAA,IAAI,EAAC,UAAb;AAAwB,QAAA,GAAG,EAAC,EAA5B;AAA+B,QAAA,KAAK,EAAC,MAArC;AACJ,QAAA,MAAM,EAAC,KADH;AACS,QAAA,WAAW,EAAC,GADrB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,eAIM;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,YAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAJN,CADF;AAWD;;;;EAzBiBf,S;;AAAlBU,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAET,UAAU,CAACD,OAAD,CAAV,CAAoBW;AADd,C;AA2BvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n \n \n Home \n\n \n \n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/1b846f328bcd4f8b163a575af8a80560.json b/node_modules/.cache/babel-loader/75625d99c2294e6557359e37387dfd85.json similarity index 100% rename from node_modules/.cache/babel-loader/1b846f328bcd4f8b163a575af8a80560.json rename to node_modules/.cache/babel-loader/75625d99c2294e6557359e37387dfd85.json diff --git a/node_modules/.cache/babel-loader/d9606b7a5cb04a1775236791ed40a5f0.json b/node_modules/.cache/babel-loader/75640e465b030cf51dc8ffaf9f81b2b9.json similarity index 100% rename from node_modules/.cache/babel-loader/d9606b7a5cb04a1775236791ed40a5f0.json rename to node_modules/.cache/babel-loader/75640e465b030cf51dc8ffaf9f81b2b9.json diff --git a/node_modules/.cache/babel-loader/7587fd6621f05f74681b3ed9f9464a14.json b/node_modules/.cache/babel-loader/7587fd6621f05f74681b3ed9f9464a14.json deleted file mode 100644 index ed9a8d57..00000000 --- a/node_modules/.cache/babel-loader/7587fd6621f05f74681b3ed9f9464a14.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 248,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 249,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 256,\n columnNumber: 24\n }\n }, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 272,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n logout: this.logout,\n submit: this.submit,\n login: this.login,\n isLoggedIn: this.state.isAuthenticated,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 273,\n columnNumber: 11\n }\n }), mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","isNavbar","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,aAAP,MAA2B,iBAA3B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,Q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AAKE,MAAjD;AAAyD,QAAA,KAAK,EAAE,KAAKH,KAArE;AAA4E,QAAA,UAAU,EAAE,KAAKrB,KAAL,CAAWE,eAAnG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,EAGIyE,QAHJ,CAFF;AAUH;;;;EAvQe/F,S;;AAyQlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ?\n
\n
    \n
  • \n \n Logout\n \n
  • \n\n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n \n \n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n \n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n \n \n {mainBody}\n \n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/75c054b2d0b1c7efb3ca8031a87e588a.json b/node_modules/.cache/babel-loader/75c054b2d0b1c7efb3ca8031a87e588a.json deleted file mode 100644 index be0c2272..00000000 --- a/node_modules/.cache/babel-loader/75c054b2d0b1c7efb3ca8031a87e588a.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 6\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 225,\n columnNumber: 15\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 11\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 248,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 249,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 256,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 273,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 282,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,IAAP,MAAiB,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;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAbe,eAiBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAjBe,CAAjB;AAwBA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIkF,QADJ,CAFF;AAOH;;;;EA7Qe9F,S;;AA+QlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n\n
\n
    \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/45dc23319c9adac677fb1054fcfb021c.json b/node_modules/.cache/babel-loader/75cc6fab08261b227769ba878b568be7.json similarity index 100% rename from node_modules/.cache/babel-loader/45dc23319c9adac677fb1054fcfb021c.json rename to node_modules/.cache/babel-loader/75cc6fab08261b227769ba878b568be7.json diff --git a/node_modules/.cache/babel-loader/75df9c3376fe66528d333f3137f83894.json b/node_modules/.cache/babel-loader/75df9c3376fe66528d333f3137f83894.json new file mode 100644 index 00000000..46448759 --- /dev/null +++ b/node_modules/.cache/babel-loader/75df9c3376fe66528d333f3137f83894.json @@ -0,0 +1 @@ +{"ast":null,"code":"\"use strict\";\n\nvar _toConsumableArray = require(\"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/toConsumableArray\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.patternLikeCommon = exports.functionDeclarationCommon = exports.functionTypeAnnotationCommon = exports.functionCommon = void 0;\n\nvar _isValidIdentifier = _interopRequireDefault(require(\"../validators/isValidIdentifier\"));\n\nvar _constants = require(\"../constants\");\n\nvar _utils = _interopRequireWildcard(require(\"./utils\"));\n\nfunction _getRequireWildcardCache() {\n if (typeof WeakMap !== \"function\") return null;\n var cache = new WeakMap();\n\n _getRequireWildcardCache = function _getRequireWildcardCache() {\n return cache;\n };\n\n return cache;\n}\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n }\n\n if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") {\n return {\n default: obj\n };\n }\n\n var cache = _getRequireWildcardCache();\n\n if (cache && cache.has(obj)) {\n return cache.get(obj);\n }\n\n var newObj = {};\n var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;\n\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;\n\n if (desc && (desc.get || desc.set)) {\n Object.defineProperty(newObj, key, desc);\n } else {\n newObj[key] = obj[key];\n }\n }\n }\n\n newObj.default = obj;\n\n if (cache) {\n cache.set(obj, newObj);\n }\n\n return newObj;\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\n(0, _utils.default)(\"ArrayExpression\", {\n fields: {\n elements: {\n validate: (0, _utils.chain)((0, _utils.assertValueType)(\"array\"), (0, _utils.assertEach)((0, _utils.assertNodeOrValueType)(\"null\", \"Expression\", \"SpreadElement\"))),\n default: []\n }\n },\n visitor: [\"elements\"],\n aliases: [\"Expression\"]\n});\n(0, _utils.default)(\"AssignmentExpression\", {\n fields: {\n operator: {\n validate: (0, _utils.assertValueType)(\"string\")\n },\n left: {\n validate: (0, _utils.assertNodeType)(\"LVal\")\n },\n right: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n }\n },\n builder: [\"operator\", \"left\", \"right\"],\n visitor: [\"left\", \"right\"],\n aliases: [\"Expression\"]\n});\n(0, _utils.default)(\"BinaryExpression\", {\n builder: [\"operator\", \"left\", \"right\"],\n fields: {\n operator: {\n validate: (0, _utils.assertOneOf).apply(void 0, _toConsumableArray(_constants.BINARY_OPERATORS))\n },\n left: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n },\n right: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n }\n },\n visitor: [\"left\", \"right\"],\n aliases: [\"Binary\", \"Expression\"]\n});\n(0, _utils.default)(\"InterpreterDirective\", {\n builder: [\"value\"],\n fields: {\n value: {\n validate: (0, _utils.assertValueType)(\"string\")\n }\n }\n});\n(0, _utils.default)(\"Directive\", {\n visitor: [\"value\"],\n fields: {\n value: {\n validate: (0, _utils.assertNodeType)(\"DirectiveLiteral\")\n }\n }\n});\n(0, _utils.default)(\"DirectiveLiteral\", {\n builder: [\"value\"],\n fields: {\n value: {\n validate: (0, _utils.assertValueType)(\"string\")\n }\n }\n});\n(0, _utils.default)(\"BlockStatement\", {\n builder: [\"body\", \"directives\"],\n visitor: [\"directives\", \"body\"],\n fields: {\n directives: {\n validate: (0, _utils.chain)((0, _utils.assertValueType)(\"array\"), (0, _utils.assertEach)((0, _utils.assertNodeType)(\"Directive\"))),\n default: []\n },\n body: {\n validate: (0, _utils.chain)((0, _utils.assertValueType)(\"array\"), (0, _utils.assertEach)((0, _utils.assertNodeType)(\"Statement\")))\n }\n },\n aliases: [\"Scopable\", \"BlockParent\", \"Block\", \"Statement\"]\n});\n(0, _utils.default)(\"BreakStatement\", {\n visitor: [\"label\"],\n fields: {\n label: {\n validate: (0, _utils.assertNodeType)(\"Identifier\"),\n optional: true\n }\n },\n aliases: [\"Statement\", \"Terminatorless\", \"CompletionStatement\"]\n});\n(0, _utils.default)(\"CallExpression\", {\n visitor: [\"callee\", \"arguments\", \"typeParameters\", \"typeArguments\"],\n builder: [\"callee\", \"arguments\"],\n aliases: [\"Expression\"],\n fields: {\n callee: {\n validate: (0, _utils.assertNodeType)(\"Expression\", \"V8IntrinsicIdentifier\")\n },\n arguments: {\n validate: (0, _utils.chain)((0, _utils.assertValueType)(\"array\"), (0, _utils.assertEach)((0, _utils.assertNodeType)(\"Expression\", \"SpreadElement\", \"JSXNamespacedName\", \"ArgumentPlaceholder\")))\n },\n optional: {\n validate: (0, _utils.assertOneOf)(true, false),\n optional: true\n },\n typeArguments: {\n validate: (0, _utils.assertNodeType)(\"TypeParameterInstantiation\"),\n optional: true\n },\n typeParameters: {\n validate: (0, _utils.assertNodeType)(\"TSTypeParameterInstantiation\"),\n optional: true\n }\n }\n});\n(0, _utils.default)(\"CatchClause\", {\n visitor: [\"param\", \"body\"],\n fields: {\n param: {\n validate: (0, _utils.assertNodeType)(\"Identifier\"),\n optional: true\n },\n body: {\n validate: (0, _utils.assertNodeType)(\"BlockStatement\")\n }\n },\n aliases: [\"Scopable\", \"BlockParent\"]\n});\n(0, _utils.default)(\"ConditionalExpression\", {\n visitor: [\"test\", \"consequent\", \"alternate\"],\n fields: {\n test: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n },\n consequent: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n },\n alternate: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n }\n },\n aliases: [\"Expression\", \"Conditional\"]\n});\n(0, _utils.default)(\"ContinueStatement\", {\n visitor: [\"label\"],\n fields: {\n label: {\n validate: (0, _utils.assertNodeType)(\"Identifier\"),\n optional: true\n }\n },\n aliases: [\"Statement\", \"Terminatorless\", \"CompletionStatement\"]\n});\n(0, _utils.default)(\"DebuggerStatement\", {\n aliases: [\"Statement\"]\n});\n(0, _utils.default)(\"DoWhileStatement\", {\n visitor: [\"test\", \"body\"],\n fields: {\n test: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n },\n body: {\n validate: (0, _utils.assertNodeType)(\"Statement\")\n }\n },\n aliases: [\"Statement\", \"BlockParent\", \"Loop\", \"While\", \"Scopable\"]\n});\n(0, _utils.default)(\"EmptyStatement\", {\n aliases: [\"Statement\"]\n});\n(0, _utils.default)(\"ExpressionStatement\", {\n visitor: [\"expression\"],\n fields: {\n expression: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n }\n },\n aliases: [\"Statement\", \"ExpressionWrapper\"]\n});\n(0, _utils.default)(\"File\", {\n builder: [\"program\", \"comments\", \"tokens\"],\n visitor: [\"program\"],\n fields: {\n program: {\n validate: (0, _utils.assertNodeType)(\"Program\")\n }\n }\n});\n(0, _utils.default)(\"ForInStatement\", {\n visitor: [\"left\", \"right\", \"body\"],\n aliases: [\"Scopable\", \"Statement\", \"For\", \"BlockParent\", \"Loop\", \"ForXStatement\"],\n fields: {\n left: {\n validate: (0, _utils.assertNodeType)(\"VariableDeclaration\", \"LVal\")\n },\n right: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n },\n body: {\n validate: (0, _utils.assertNodeType)(\"Statement\")\n }\n }\n});\n(0, _utils.default)(\"ForStatement\", {\n visitor: [\"init\", \"test\", \"update\", \"body\"],\n aliases: [\"Scopable\", \"Statement\", \"For\", \"BlockParent\", \"Loop\"],\n fields: {\n init: {\n validate: (0, _utils.assertNodeType)(\"VariableDeclaration\", \"Expression\"),\n optional: true\n },\n test: {\n validate: (0, _utils.assertNodeType)(\"Expression\"),\n optional: true\n },\n update: {\n validate: (0, _utils.assertNodeType)(\"Expression\"),\n optional: true\n },\n body: {\n validate: (0, _utils.assertNodeType)(\"Statement\")\n }\n }\n});\nvar functionCommon = {\n params: {\n validate: (0, _utils.chain)((0, _utils.assertValueType)(\"array\"), (0, _utils.assertEach)((0, _utils.assertNodeType)(\"Identifier\", \"Pattern\", \"RestElement\", \"TSParameterProperty\")))\n },\n generator: {\n default: false,\n validate: (0, _utils.assertValueType)(\"boolean\")\n },\n async: {\n validate: (0, _utils.assertValueType)(\"boolean\"),\n default: false\n }\n};\nexports.functionCommon = functionCommon;\nvar functionTypeAnnotationCommon = {\n returnType: {\n validate: (0, _utils.assertNodeType)(\"TypeAnnotation\", \"TSTypeAnnotation\", \"Noop\"),\n optional: true\n },\n typeParameters: {\n validate: (0, _utils.assertNodeType)(\"TypeParameterDeclaration\", \"TSTypeParameterDeclaration\", \"Noop\"),\n optional: true\n }\n};\nexports.functionTypeAnnotationCommon = functionTypeAnnotationCommon;\nvar functionDeclarationCommon = Object.assign({}, functionCommon, {\n declare: {\n validate: (0, _utils.assertValueType)(\"boolean\"),\n optional: true\n },\n id: {\n validate: (0, _utils.assertNodeType)(\"Identifier\"),\n optional: true\n }\n});\nexports.functionDeclarationCommon = functionDeclarationCommon;\n(0, _utils.default)(\"FunctionDeclaration\", {\n builder: [\"id\", \"params\", \"body\", \"generator\", \"async\"],\n visitor: [\"id\", \"params\", \"body\", \"returnType\", \"typeParameters\"],\n fields: Object.assign({}, functionDeclarationCommon, {}, functionTypeAnnotationCommon, {\n body: {\n validate: (0, _utils.assertNodeType)(\"BlockStatement\")\n }\n }),\n aliases: [\"Scopable\", \"Function\", \"BlockParent\", \"FunctionParent\", \"Statement\", \"Pureish\", \"Declaration\"]\n});\n(0, _utils.default)(\"FunctionExpression\", {\n inherits: \"FunctionDeclaration\",\n aliases: [\"Scopable\", \"Function\", \"BlockParent\", \"FunctionParent\", \"Expression\", \"Pureish\"],\n fields: Object.assign({}, functionCommon, {}, functionTypeAnnotationCommon, {\n id: {\n validate: (0, _utils.assertNodeType)(\"Identifier\"),\n optional: true\n },\n body: {\n validate: (0, _utils.assertNodeType)(\"BlockStatement\")\n }\n })\n});\nvar patternLikeCommon = {\n typeAnnotation: {\n validate: (0, _utils.assertNodeType)(\"TypeAnnotation\", \"TSTypeAnnotation\", \"Noop\"),\n optional: true\n },\n decorators: {\n validate: (0, _utils.chain)((0, _utils.assertValueType)(\"array\"), (0, _utils.assertEach)((0, _utils.assertNodeType)(\"Decorator\")))\n }\n};\nexports.patternLikeCommon = patternLikeCommon;\n(0, _utils.default)(\"Identifier\", {\n builder: [\"name\"],\n visitor: [\"typeAnnotation\", \"decorators\"],\n aliases: [\"Expression\", \"PatternLike\", \"LVal\", \"TSEntityName\"],\n fields: Object.assign({}, patternLikeCommon, {\n name: {\n validate: (0, _utils.chain)(function (node, key, val) {\n if (!(0, _isValidIdentifier.default)(val)) {}\n }, (0, _utils.assertValueType)(\"string\"))\n },\n optional: {\n validate: (0, _utils.assertValueType)(\"boolean\"),\n optional: true\n }\n })\n});\n(0, _utils.default)(\"IfStatement\", {\n visitor: [\"test\", \"consequent\", \"alternate\"],\n aliases: [\"Statement\", \"Conditional\"],\n fields: {\n test: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n },\n consequent: {\n validate: (0, _utils.assertNodeType)(\"Statement\")\n },\n alternate: {\n optional: true,\n validate: (0, _utils.assertNodeType)(\"Statement\")\n }\n }\n});\n(0, _utils.default)(\"LabeledStatement\", {\n visitor: [\"label\", \"body\"],\n aliases: [\"Statement\"],\n fields: {\n label: {\n validate: (0, _utils.assertNodeType)(\"Identifier\")\n },\n body: {\n validate: (0, _utils.assertNodeType)(\"Statement\")\n }\n }\n});\n(0, _utils.default)(\"StringLiteral\", {\n builder: [\"value\"],\n fields: {\n value: {\n validate: (0, _utils.assertValueType)(\"string\")\n }\n },\n aliases: [\"Expression\", \"Pureish\", \"Literal\", \"Immutable\"]\n});\n(0, _utils.default)(\"NumericLiteral\", {\n builder: [\"value\"],\n deprecatedAlias: \"NumberLiteral\",\n fields: {\n value: {\n validate: (0, _utils.assertValueType)(\"number\")\n }\n },\n aliases: [\"Expression\", \"Pureish\", \"Literal\", \"Immutable\"]\n});\n(0, _utils.default)(\"NullLiteral\", {\n aliases: [\"Expression\", \"Pureish\", \"Literal\", \"Immutable\"]\n});\n(0, _utils.default)(\"BooleanLiteral\", {\n builder: [\"value\"],\n fields: {\n value: {\n validate: (0, _utils.assertValueType)(\"boolean\")\n }\n },\n aliases: [\"Expression\", \"Pureish\", \"Literal\", \"Immutable\"]\n});\n(0, _utils.default)(\"RegExpLiteral\", {\n builder: [\"pattern\", \"flags\"],\n deprecatedAlias: \"RegexLiteral\",\n aliases: [\"Expression\", \"Literal\"],\n fields: {\n pattern: {\n validate: (0, _utils.assertValueType)(\"string\")\n },\n flags: {\n validate: (0, _utils.assertValueType)(\"string\"),\n default: \"\"\n }\n }\n});\n(0, _utils.default)(\"LogicalExpression\", {\n builder: [\"operator\", \"left\", \"right\"],\n visitor: [\"left\", \"right\"],\n aliases: [\"Binary\", \"Expression\"],\n fields: {\n operator: {\n validate: (0, _utils.assertOneOf).apply(void 0, _toConsumableArray(_constants.LOGICAL_OPERATORS))\n },\n left: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n },\n right: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n }\n }\n});\n(0, _utils.default)(\"MemberExpression\", {\n builder: [\"object\", \"property\", \"computed\", \"optional\"],\n visitor: [\"object\", \"property\"],\n aliases: [\"Expression\", \"LVal\"],\n fields: {\n object: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n },\n property: {\n validate: function () {\n var normal = (0, _utils.assertNodeType)(\"Identifier\", \"PrivateName\");\n var computed = (0, _utils.assertNodeType)(\"Expression\");\n return function (node, key, val) {\n var validator = node.computed ? computed : normal;\n validator(node, key, val);\n };\n }()\n },\n computed: {\n default: false\n },\n optional: {\n validate: (0, _utils.assertOneOf)(true, false),\n optional: true\n }\n }\n});\n(0, _utils.default)(\"NewExpression\", {\n inherits: \"CallExpression\"\n});\n(0, _utils.default)(\"Program\", {\n visitor: [\"directives\", \"body\"],\n builder: [\"body\", \"directives\", \"sourceType\", \"interpreter\"],\n fields: {\n sourceFile: {\n validate: (0, _utils.assertValueType)(\"string\")\n },\n sourceType: {\n validate: (0, _utils.assertOneOf)(\"script\", \"module\"),\n default: \"script\"\n },\n interpreter: {\n validate: (0, _utils.assertNodeType)(\"InterpreterDirective\"),\n default: null,\n optional: true\n },\n directives: {\n validate: (0, _utils.chain)((0, _utils.assertValueType)(\"array\"), (0, _utils.assertEach)((0, _utils.assertNodeType)(\"Directive\"))),\n default: []\n },\n body: {\n validate: (0, _utils.chain)((0, _utils.assertValueType)(\"array\"), (0, _utils.assertEach)((0, _utils.assertNodeType)(\"Statement\")))\n }\n },\n aliases: [\"Scopable\", \"BlockParent\", \"Block\"]\n});\n(0, _utils.default)(\"ObjectExpression\", {\n visitor: [\"properties\"],\n aliases: [\"Expression\"],\n fields: {\n properties: {\n validate: (0, _utils.chain)((0, _utils.assertValueType)(\"array\"), (0, _utils.assertEach)((0, _utils.assertNodeType)(\"ObjectMethod\", \"ObjectProperty\", \"SpreadElement\")))\n }\n }\n});\n(0, _utils.default)(\"ObjectMethod\", {\n builder: [\"kind\", \"key\", \"params\", \"body\", \"computed\"],\n fields: Object.assign({}, functionCommon, {}, functionTypeAnnotationCommon, {\n kind: {\n validate: (0, _utils.chain)((0, _utils.assertValueType)(\"string\"), (0, _utils.assertOneOf)(\"method\", \"get\", \"set\")),\n default: \"method\"\n },\n computed: {\n validate: (0, _utils.assertValueType)(\"boolean\"),\n default: false\n },\n key: {\n validate: function () {\n var normal = (0, _utils.assertNodeType)(\"Identifier\", \"StringLiteral\", \"NumericLiteral\");\n var computed = (0, _utils.assertNodeType)(\"Expression\");\n return function (node, key, val) {\n var validator = node.computed ? computed : normal;\n validator(node, key, val);\n };\n }()\n },\n decorators: {\n validate: (0, _utils.chain)((0, _utils.assertValueType)(\"array\"), (0, _utils.assertEach)((0, _utils.assertNodeType)(\"Decorator\")))\n },\n body: {\n validate: (0, _utils.assertNodeType)(\"BlockStatement\")\n }\n }),\n visitor: [\"key\", \"params\", \"body\", \"decorators\", \"returnType\", \"typeParameters\"],\n aliases: [\"UserWhitespacable\", \"Function\", \"Scopable\", \"BlockParent\", \"FunctionParent\", \"Method\", \"ObjectMember\"]\n});\n(0, _utils.default)(\"ObjectProperty\", {\n builder: [\"key\", \"value\", \"computed\", \"shorthand\", \"decorators\"],\n fields: {\n computed: {\n validate: (0, _utils.assertValueType)(\"boolean\"),\n default: false\n },\n key: {\n validate: function () {\n var normal = (0, _utils.assertNodeType)(\"Identifier\", \"StringLiteral\", \"NumericLiteral\");\n var computed = (0, _utils.assertNodeType)(\"Expression\");\n return function (node, key, val) {\n var validator = node.computed ? computed : normal;\n validator(node, key, val);\n };\n }()\n },\n value: {\n validate: (0, _utils.assertNodeType)(\"Expression\", \"PatternLike\")\n },\n shorthand: {\n validate: (0, _utils.assertValueType)(\"boolean\"),\n default: false\n },\n decorators: {\n validate: (0, _utils.chain)((0, _utils.assertValueType)(\"array\"), (0, _utils.assertEach)((0, _utils.assertNodeType)(\"Decorator\"))),\n optional: true\n }\n },\n visitor: [\"key\", \"value\", \"decorators\"],\n aliases: [\"UserWhitespacable\", \"Property\", \"ObjectMember\"]\n});\n(0, _utils.default)(\"RestElement\", {\n visitor: [\"argument\", \"typeAnnotation\"],\n builder: [\"argument\"],\n aliases: [\"LVal\", \"PatternLike\"],\n deprecatedAlias: \"RestProperty\",\n fields: Object.assign({}, patternLikeCommon, {\n argument: {\n validate: (0, _utils.assertNodeType)(\"LVal\")\n }\n })\n});\n(0, _utils.default)(\"ReturnStatement\", {\n visitor: [\"argument\"],\n aliases: [\"Statement\", \"Terminatorless\", \"CompletionStatement\"],\n fields: {\n argument: {\n validate: (0, _utils.assertNodeType)(\"Expression\"),\n optional: true\n }\n }\n});\n(0, _utils.default)(\"SequenceExpression\", {\n visitor: [\"expressions\"],\n fields: {\n expressions: {\n validate: (0, _utils.chain)((0, _utils.assertValueType)(\"array\"), (0, _utils.assertEach)((0, _utils.assertNodeType)(\"Expression\")))\n }\n },\n aliases: [\"Expression\"]\n});\n(0, _utils.default)(\"ParenthesizedExpression\", {\n visitor: [\"expression\"],\n aliases: [\"Expression\", \"ExpressionWrapper\"],\n fields: {\n expression: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n }\n }\n});\n(0, _utils.default)(\"SwitchCase\", {\n visitor: [\"test\", \"consequent\"],\n fields: {\n test: {\n validate: (0, _utils.assertNodeType)(\"Expression\"),\n optional: true\n },\n consequent: {\n validate: (0, _utils.chain)((0, _utils.assertValueType)(\"array\"), (0, _utils.assertEach)((0, _utils.assertNodeType)(\"Statement\")))\n }\n }\n});\n(0, _utils.default)(\"SwitchStatement\", {\n visitor: [\"discriminant\", \"cases\"],\n aliases: [\"Statement\", \"BlockParent\", \"Scopable\"],\n fields: {\n discriminant: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n },\n cases: {\n validate: (0, _utils.chain)((0, _utils.assertValueType)(\"array\"), (0, _utils.assertEach)((0, _utils.assertNodeType)(\"SwitchCase\")))\n }\n }\n});\n(0, _utils.default)(\"ThisExpression\", {\n aliases: [\"Expression\"]\n});\n(0, _utils.default)(\"ThrowStatement\", {\n visitor: [\"argument\"],\n aliases: [\"Statement\", \"Terminatorless\", \"CompletionStatement\"],\n fields: {\n argument: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n }\n }\n});\n(0, _utils.default)(\"TryStatement\", {\n visitor: [\"block\", \"handler\", \"finalizer\"],\n aliases: [\"Statement\"],\n fields: {\n block: {\n validate: (0, _utils.assertNodeType)(\"BlockStatement\")\n },\n handler: {\n optional: true,\n validate: (0, _utils.assertNodeType)(\"CatchClause\")\n },\n finalizer: {\n optional: true,\n validate: (0, _utils.assertNodeType)(\"BlockStatement\")\n }\n }\n});\n(0, _utils.default)(\"UnaryExpression\", {\n builder: [\"operator\", \"argument\", \"prefix\"],\n fields: {\n prefix: {\n default: true\n },\n argument: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n },\n operator: {\n validate: (0, _utils.assertOneOf).apply(void 0, _toConsumableArray(_constants.UNARY_OPERATORS))\n }\n },\n visitor: [\"argument\"],\n aliases: [\"UnaryLike\", \"Expression\"]\n});\n(0, _utils.default)(\"UpdateExpression\", {\n builder: [\"operator\", \"argument\", \"prefix\"],\n fields: {\n prefix: {\n default: false\n },\n argument: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n },\n operator: {\n validate: (0, _utils.assertOneOf).apply(void 0, _toConsumableArray(_constants.UPDATE_OPERATORS))\n }\n },\n visitor: [\"argument\"],\n aliases: [\"Expression\"]\n});\n(0, _utils.default)(\"VariableDeclaration\", {\n builder: [\"kind\", \"declarations\"],\n visitor: [\"declarations\"],\n aliases: [\"Statement\", \"Declaration\"],\n fields: {\n declare: {\n validate: (0, _utils.assertValueType)(\"boolean\"),\n optional: true\n },\n kind: {\n validate: (0, _utils.chain)((0, _utils.assertValueType)(\"string\"), (0, _utils.assertOneOf)(\"var\", \"let\", \"const\"))\n },\n declarations: {\n validate: (0, _utils.chain)((0, _utils.assertValueType)(\"array\"), (0, _utils.assertEach)((0, _utils.assertNodeType)(\"VariableDeclarator\")))\n }\n }\n});\n(0, _utils.default)(\"VariableDeclarator\", {\n visitor: [\"id\", \"init\"],\n fields: {\n id: {\n validate: (0, _utils.assertNodeType)(\"LVal\")\n },\n definite: {\n optional: true,\n validate: (0, _utils.assertValueType)(\"boolean\")\n },\n init: {\n optional: true,\n validate: (0, _utils.assertNodeType)(\"Expression\")\n }\n }\n});\n(0, _utils.default)(\"WhileStatement\", {\n visitor: [\"test\", \"body\"],\n aliases: [\"Statement\", \"BlockParent\", \"Loop\", \"While\", \"Scopable\"],\n fields: {\n test: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n },\n body: {\n validate: (0, _utils.assertNodeType)(\"BlockStatement\", \"Statement\")\n }\n }\n});\n(0, _utils.default)(\"WithStatement\", {\n visitor: [\"object\", \"body\"],\n aliases: [\"Statement\"],\n fields: {\n object: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n },\n body: {\n validate: (0, _utils.assertNodeType)(\"BlockStatement\", \"Statement\")\n }\n }\n});","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/3f5ececac1cc99c3b2cc34d8600a0b0a.json b/node_modules/.cache/babel-loader/76637cd54942dd9abdc7a96e994ab69d.json similarity index 100% rename from node_modules/.cache/babel-loader/3f5ececac1cc99c3b2cc34d8600a0b0a.json rename to node_modules/.cache/babel-loader/76637cd54942dd9abdc7a96e994ab69d.json diff --git a/node_modules/.cache/babel-loader/76c6ead106e49dc2f4d9dc6ad97a964a.json b/node_modules/.cache/babel-loader/76c6ead106e49dc2f4d9dc6ad97a964a.json deleted file mode 100644 index 45aba6ec..00000000 --- a/node_modules/.cache/babel-loader/76c6ead106e49dc2f4d9dc6ad97a964a.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './App.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:4200\",\n target: \"top_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 13\n }\n }, \" Console \"), /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:8888\",\n target: \"bottom_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }\n }, \" Simulator \"), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"top_\",\n src: \"\",\n width: \"100%\",\n height: \"200px\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"bottom_\",\n src: \"\",\n width: \"100%\",\n height: \"512\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 15\n }\n }));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;AACA,OAAO,WAAP;;IAEMC,S;;;;;;;;;;;;;;;UAKAC,K,GAAQ;AACNC,MAAAA,SAAS,EAAE,IADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,SAAS,EAAED;AAJL,K;;;;;;6BAQR;AACE,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,MAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADF,eAEE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,SAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAFF,eAII;AAAQ,QAAA,IAAI,EAAC,MAAb;AAAoB,QAAA,GAAG,EAAC,EAAxB;AAA2B,QAAA,KAAK,EAAC,MAAjC;AAAyC,QAAA,MAAM,EAAC,OAAhD;AAAwD,QAAA,WAAW,EAAC,GAApE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJJ,eAOI;AAAQ,QAAA,IAAI,EAAC,SAAb;AAAuB,QAAA,GAAG,EAAC,EAA3B;AAA8B,QAAA,KAAK,EAAC,MAApC;AAA2C,QAAA,MAAM,EAAC,KAAlD;AAAwD,QAAA,WAAW,EAAC,GAApE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAPJ,CADF;AAkBD;;;;EAhCiBf,S;;AAAlBU,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAET,UAAU,CAACD,OAAD,CAAV,CAAoBW;AADd,C;AAkCvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './App.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n Console \n Simulator \n \n \n \n \n \n \n \n \n \n \n \n \n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/76c70f15f68edaa2072c4cc3de31e893.json b/node_modules/.cache/babel-loader/76c70f15f68edaa2072c4cc3de31e893.json deleted file mode 100644 index bf58241b..00000000 --- a/node_modules/.cache/babel-loader/76c70f15f68edaa2072c4cc3de31e893.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n console.log(\"riddhi\", this.props.isLoggedIn);\n var options = this.props.isLoggedIn ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 49,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 54,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 41\n }\n }, \"Simulator\"))))) : null;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 72,\n columnNumber: 9\n }\n }, options);\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","console","log","props","isLoggedIn","options","textDecoration"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AAENC,MAAAA,OAAO,CAACC,GAAR,CAAY,QAAZ,EAAqB,KAAKC,KAAL,CAAWC,UAAhC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;AAAS,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA6C,QAAA,KAAK,EAAC,OAAnD;AAA2D,QAAA,EAAE,EAAC,GAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADJ,CAZJ,CAJR,CAPlB,CADW,GAsCX,IAtCL;AAyCD,0BACQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACID,OADJ,CADR;AAKC;;;;EAlD2Bf,S;;AAoD5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n \n console.log(\"riddhi\",this.props.isLoggedIn);\n const options = this.props.isLoggedIn ? \n \n \n
\n \n \n \n
\n
\n \n \n \n
    \n
  • \n \n Progress\n \n
  • \n \n
  • \n \n Tasks\n \n
  • \n
  • \n \n Simulator\n \n
  • \n \n
\n \n \n
\n \n
\n \n :\n null\n \n \nreturn (\n
\n {options}\n
\n) \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/8f8ceaef4e6df541008ed3877f203dc8.json b/node_modules/.cache/babel-loader/76df694e9486e58fe991e43c547990e7.json similarity index 100% rename from node_modules/.cache/babel-loader/8f8ceaef4e6df541008ed3877f203dc8.json rename to node_modules/.cache/babel-loader/76df694e9486e58fe991e43c547990e7.json diff --git a/node_modules/.cache/babel-loader/bc5f8449881af5510180bace1076302c.json b/node_modules/.cache/babel-loader/770d06f8b350318e4d068d94a8f1e11f.json similarity index 100% rename from node_modules/.cache/babel-loader/bc5f8449881af5510180bace1076302c.json rename to node_modules/.cache/babel-loader/770d06f8b350318e4d068d94a8f1e11f.json diff --git a/node_modules/.cache/babel-loader/811aa595ff223cf9ed5516d773a1f19c.json b/node_modules/.cache/babel-loader/7722519ebfa18e4ddecd743229be66d9.json similarity index 100% rename from node_modules/.cache/babel-loader/811aa595ff223cf9ed5516d773a1f19c.json rename to node_modules/.cache/babel-loader/7722519ebfa18e4ddecd743229be66d9.json diff --git a/node_modules/.cache/babel-loader/2d92ec06fe47419d6b18993b50a26539.json b/node_modules/.cache/babel-loader/773c3d27ffc35d7767d6f0f973e0dd85.json similarity index 100% rename from node_modules/.cache/babel-loader/2d92ec06fe47419d6b18993b50a26539.json rename to node_modules/.cache/babel-loader/773c3d27ffc35d7767d6f0f973e0dd85.json diff --git a/node_modules/.cache/babel-loader/955b99dcfb299688e28f7d5b4801d3b4.json b/node_modules/.cache/babel-loader/77c752daef04e091cf1ca0d25fa5c59b.json similarity index 100% rename from node_modules/.cache/babel-loader/955b99dcfb299688e28f7d5b4801d3b4.json rename to node_modules/.cache/babel-loader/77c752daef04e091cf1ca0d25fa5c59b.json diff --git a/node_modules/.cache/babel-loader/0ca7f6f94e28f96efe17f0666b274c31.json b/node_modules/.cache/babel-loader/782218a9477f0a5d784b9f2ca25174af.json similarity index 100% rename from node_modules/.cache/babel-loader/0ca7f6f94e28f96efe17f0666b274c31.json rename to node_modules/.cache/babel-loader/782218a9477f0a5d784b9f2ca25174af.json diff --git a/node_modules/.cache/babel-loader/78571a0314870ab0ee4ffc7816f9696a.json b/node_modules/.cache/babel-loader/78571a0314870ab0ee4ffc7816f9696a.json deleted file mode 100644 index fb89b319..00000000 --- a/node_modules/.cache/babel-loader/78571a0314870ab0ee4ffc7816f9696a.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = function Navigationbar() {\n var navbar_options = _this.state.isAuthenticated ? /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 29\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 31\n }\n }, \"Simulator\")))))))) : null;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"Navigationbar\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 67,\n columnNumber: 5\n }\n }, _this.state.isAuthenticated ? navbar_options : null);\n};\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","navbar_options","state","isAuthenticated","textDecoration"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;AAkBA,IAAMC,aAAa,GAAG,SAAhBA,aAAgB,GAAM;AAC1B,MAAMC,cAAc,GAAG,KAAI,CAACC,KAAL,CAAWC,eAAX,gBACrB,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD;AAAQ,IAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD,CAAQ,QAAR;AAAiB,IAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,GAAD;AAAK,IAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACU;AAAK,IAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI;AAAG,IAAA,KAAK,EAAC,OAAT;AAAiB,IAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE;AAAK,IAAA,KAAK,EAAC,MAAX;AAAkB,IAAA,GAAG,EA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F,IALF,CADF;AAUD,CAlDD;;AAmDA,eAAeD,aAAf","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nconst Navigationbar = () => {\n const navbar_options = this.state.isAuthenticated ? (\n \n \n \n \n \n \n \n )\n :(\n null\n )\n return (\n
\n { this.state.isAuthenticated ? (\n navbar_options\n )\n :\n null\n }\n
\n )\n};\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/78baf5190c3dbb9cb2bddd371543a3b2.json b/node_modules/.cache/babel-loader/78baf5190c3dbb9cb2bddd371543a3b2.json deleted file mode 100644 index 8e15456e..00000000 --- a/node_modules/.cache/babel-loader/78baf5190c3dbb9cb2bddd371543a3b2.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:4200\",\n target: \"right_side\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 13\n }\n }, \" Console \"), /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:8888\",\n target: \"right_side\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }\n }, \" Simulator \"), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"top_side\",\n src: \"\",\n width: \"100%\",\n height: \"50%\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 13\n }\n }));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;AACA,OAAO,iBAAP;;IAEMC,S;;;;;;;;;;;;;;;UAKAC,K,GAAQ;AACNC,MAAAA,SAAS,EAAE,IADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,SAAS,EAAED;AAJL,K;;;;;;6BAQR;AACE,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,YAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADF,eAEE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,YAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAFF,eAGE;AAAQ,QAAA,IAAI,EAAC,UAAb;AAAwB,QAAA,GAAG,EAAC,EAA5B;AAA+B,QAAA,KAAK,EAAC,MAArC;AACJ,QAAA,MAAM,EAAC,KADH;AACS,QAAA,WAAW,EAAC,GADrB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHF,CADF;AAcD;;;;EA5BiBf,S;;AAAlBU,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAET,UAAU,CAACD,OAAD,CAAV,CAAoBW;AADd,C;AA8BvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n Console \n Simulator \n \n \n \n \n\n \n \n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/61f2df463ff886ff9b35987eaf36b552.json b/node_modules/.cache/babel-loader/78f4f780434ffd156892cc1c173dacbe.json similarity index 100% rename from node_modules/.cache/babel-loader/61f2df463ff886ff9b35987eaf36b552.json rename to node_modules/.cache/babel-loader/78f4f780434ffd156892cc1c173dacbe.json diff --git a/node_modules/.cache/babel-loader/4a276e036ae2e770c1ebbebb0f83ae9f.json b/node_modules/.cache/babel-loader/7925dd2b3c3d1b3c02c076383abdb91c.json similarity index 100% rename from node_modules/.cache/babel-loader/4a276e036ae2e770c1ebbebb0f83ae9f.json rename to node_modules/.cache/babel-loader/7925dd2b3c3d1b3c02c076383abdb91c.json diff --git a/node_modules/.cache/babel-loader/795271493cee73052a99f1e021b92897.json b/node_modules/.cache/babel-loader/795271493cee73052a99f1e021b92897.json deleted file mode 100644 index e716d56a..00000000 --- a/node_modules/.cache/babel-loader/795271493cee73052a99f1e021b92897.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var options = this.props.isLoggedIn ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 49,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 54,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 41\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 59,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 60,\n columnNumber: 41\n }\n }, \"Logout\"))))) : null;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 76,\n columnNumber: 9\n }\n }, options);\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","options","props","isLoggedIn","textDecoration","submit"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AAGT,UAAMC,OAAO,GAAG,KAAKC,KAAL,CAAWC,UAAX,gBACX,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAEQ;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACc;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAAA,KAAK,EAAC,MAAX;AAAkB,QAAA,GAAG,EAAEN,MAAvB;AAA+B,QAAA,KAAK,EAAE,MAAtC;AAA8C,QAAA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A,EAAE,EAAC,GAA1F;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBADJ,CAjBJ,CAJR,CAPlB,CADW,GAyCV,IAzCN;AA6CD,0BACQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIJ,OADJ,CADR;AAKC;;;;EAtD2BX,S;;AAwD5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n \n \n const options = this.props.isLoggedIn ? \n \n \n
\n \n \n \n
\n
\n \n \n \n
    \n
  • \n \n Progress\n \n
  • \n \n
  • \n \n Tasks\n \n
  • \n
  • \n \n Simulator\n \n
  • \n
  • \n \n Logout\n \n
  • \n
\n \n \n
\n \n
\n \n :null\n \n \n \nreturn (\n
\n {options}\n
\n) \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/2510c64459832e581fd42c7b4ee5b232.json b/node_modules/.cache/babel-loader/798bafcf39ff54acc02fbb213794d24c.json similarity index 100% rename from node_modules/.cache/babel-loader/2510c64459832e581fd42c7b4ee5b232.json rename to node_modules/.cache/babel-loader/798bafcf39ff54acc02fbb213794d24c.json diff --git a/node_modules/.cache/babel-loader/deaca552cf47c4b8353b7561dc7d03f0.json b/node_modules/.cache/babel-loader/79c876ee42fd189de2fb456c13f2a06f.json similarity index 100% rename from node_modules/.cache/babel-loader/deaca552cf47c4b8353b7561dc7d03f0.json rename to node_modules/.cache/babel-loader/79c876ee42fd189de2fb456c13f2a06f.json diff --git a/node_modules/.cache/babel-loader/cfae4cc1c903e9ea88446ff0a1dc13c9.json b/node_modules/.cache/babel-loader/79e6fdf635d6dc20489d49267c3bc31c.json similarity index 100% rename from node_modules/.cache/babel-loader/cfae4cc1c903e9ea88446ff0a1dc13c9.json rename to node_modules/.cache/babel-loader/79e6fdf635d6dc20489d49267c3bc31c.json diff --git a/node_modules/.cache/babel-loader/8207892ced4a0d1b23ebf48fa1c60d02.json b/node_modules/.cache/babel-loader/7a599e531edb93cdb281fc6c836db34d.json similarity index 100% rename from node_modules/.cache/babel-loader/8207892ced4a0d1b23ebf48fa1c60d02.json rename to node_modules/.cache/babel-loader/7a599e531edb93cdb281fc6c836db34d.json diff --git a/node_modules/.cache/babel-loader/50ec33a0280bcd2e25f98228eabb7261.json b/node_modules/.cache/babel-loader/7a6a5d50d23ad34ac6676f5d58537e37.json similarity index 100% rename from node_modules/.cache/babel-loader/50ec33a0280bcd2e25f98228eabb7261.json rename to node_modules/.cache/babel-loader/7a6a5d50d23ad34ac6676f5d58537e37.json diff --git a/node_modules/.cache/babel-loader/7aca7b5e509845dd879e52a2e20b90c8.json b/node_modules/.cache/babel-loader/7aca7b5e509845dd879e52a2e20b90c8.json deleted file mode 100644 index 8b78b716..00000000 --- a/node_modules/.cache/babel-loader/7aca7b5e509845dd879e52a2e20b90c8.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:4200\",\n target: \"top\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 13\n }\n }, \" Console \"), /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:8888\",\n target: \"bottom\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }\n }, \" Simulator \"), /*#__PURE__*/React.createElement(\"div\", {\n class: \"top\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"iframe\", {\n src: \"\",\n width: \"100%\",\n height: \"200px\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 15\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n class: \"bottom\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"iframe\", {\n src: \"\",\n width: \"100%\",\n height: \"512\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 15\n }\n })));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;AACA,OAAO,iBAAP;;IAEMC,S;;;;;;;;;;;;;;;UAKAC,K,GAAQ;AACNC,MAAAA,SAAS,EAAE,IADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,SAAS,EAAED;AAJL,K;;;;;;6BAQR;AACE,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,KAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADF,eAEE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,QAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAFF,eAGE;AAAK,QAAA,KAAK,EAAC,KAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAS,QAAA,GAAG,EAAC,EAAb;AAAgB,QAAA,KAAK,EAAC,MAAtB;AAA8B,QAAA,MAAM,EAAC,OAArC;AAA6C,QAAA,WAAW,EAAC,GAAzD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CAHF,eAME;AAAK,QAAA,KAAK,EAAC,QAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAS,QAAA,GAAG,EAAC,EAAb;AAAgB,QAAA,KAAK,EAAC,MAAtB;AAA6B,QAAA,MAAM,EAAC,KAApC;AAA0C,QAAA,WAAW,EAAC,GAAtD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CANF,CADF;AAkBD;;;;EAhCiBf,S;;AAAlBU,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAET,UAAU,CAACD,OAAD,CAAV,CAAoBW;AADd,C;AAkCvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n Console \n Simulator \n
\n \n
\n
\n \n
\n \n \n \n \n \n \n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/7b13473088255e76ed4fad7d0ea92a58.json b/node_modules/.cache/babel-loader/7b13473088255e76ed4fad7d0ea92a58.json deleted file mode 100644 index 21eb4b04..00000000 --- a/node_modules/.cache/babel-loader/7b13473088255e76ed4fad7d0ea92a58.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport Navigationbar from './Navigationbar';\nimport './App.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:4200\",\n target: \"top_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 13\n }\n }, \" Console \"), /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:8888\",\n target: \"bottom_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 13\n }\n }, \" Simulator \"), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"top_\",\n src: \"\",\n width: \"100%\",\n height: \"512px\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"bottom_\",\n src: \"\",\n width: \"100%\",\n height: \"512px\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 15\n }\n }));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Navigationbar","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;AACA,OAAOC,aAAP,MAA0B,iBAA1B;AACA,OAAO,WAAP;;IAEMC,S;;;;;;;;;;;;;;;UAKAC,K,GAAQ;AACNC,MAAAA,SAAS,EAAE,IADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,SAAS,EAAED;AAJL,K;;;;;;6BAQR;AACE,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,eAEE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,MAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAFF,eAGE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,SAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAHF,eAKI;AAAQ,QAAA,IAAI,EAAC,MAAb;AAAoB,QAAA,GAAG,EAAC,EAAxB;AAA2B,QAAA,KAAK,EAAC,MAAjC;AAAyC,QAAA,MAAM,EAAC,OAAhD;AAAwD,QAAA,WAAW,EAAC,GAApE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALJ,eAMI;AAAQ,QAAA,IAAI,EAAC,SAAb;AAAuB,QAAA,GAAG,EAAC,EAA3B;AAA8B,QAAA,KAAK,EAAC,MAApC;AAA2C,QAAA,MAAM,EAAC,OAAlD;AAA0D,QAAA,WAAW,EAAC,GAAtE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANJ,CADF;AAUD;;;;EAxBiBhB,S;;AAAlBW,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAEV,UAAU,CAACD,OAAD,CAAV,CAAoBY;AADd,C;AA0BvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport Navigationbar from './Navigationbar';\nimport './App.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n \n Console \n Simulator \n \n \n \n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/b3f033418cfb03e83a8ab11ff3e248d9.json b/node_modules/.cache/babel-loader/7b22301206b24bb30bfad95f5a299ceb.json similarity index 100% rename from node_modules/.cache/babel-loader/b3f033418cfb03e83a8ab11ff3e248d9.json rename to node_modules/.cache/babel-loader/7b22301206b24bb30bfad95f5a299ceb.json diff --git a/node_modules/.cache/babel-loader/b193ebbaaa1671ab2ee6db8933ade599.json b/node_modules/.cache/babel-loader/7c1c0884ca5ec4a519a081a7beb3e59c.json similarity index 100% rename from node_modules/.cache/babel-loader/b193ebbaaa1671ab2ee6db8933ade599.json rename to node_modules/.cache/babel-loader/7c1c0884ca5ec4a519a081a7beb3e59c.json diff --git a/node_modules/.cache/babel-loader/d67a2abb61d46b2d44d2e096ac69cd40.json b/node_modules/.cache/babel-loader/7d7e857d8e351234d59386a3d933783a.json similarity index 100% rename from node_modules/.cache/babel-loader/d67a2abb61d46b2d44d2e096ac69cd40.json rename to node_modules/.cache/babel-loader/7d7e857d8e351234d59386a3d933783a.json diff --git a/node_modules/.cache/babel-loader/7dae829cab43eeeb247c64434d1309e6.json b/node_modules/.cache/babel-loader/7dae829cab43eeeb247c64434d1309e6.json deleted file mode 100644 index a255ef9c..00000000 --- a/node_modules/.cache/babel-loader/7dae829cab43eeeb247c64434d1309e6.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nvar Styles = styled.div(_templateObject());\nexport var Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 5\n }\n }, \"const options = this.state.isAuthenticated ?\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 28\n }\n }, \"Tasks\")))), \":\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 18\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 18\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 20\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: _this.login,\n class: \"login\",\n to: \"\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 48,\n columnNumber: 24\n }\n }, \"Login\")))), /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Nav.Item, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 58,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 58,\n columnNumber: 21\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(Nav.Item, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 59,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 59,\n columnNumber: 21\n }\n }, \"Task\"))))));\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","Styles","div","Navigationbar","textDecoration","login"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,IAAMC,MAAM,GAAGD,MAAM,CAACE,GAAV,mBAAZ;AAiBA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;AAAA,sBAC3B,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD;AAAQ,IAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kEAGc;AAAK,IAAA,EAAE,EAAC,QAAR;AAAiB,IAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEC,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,UAAnD;AAA8D,IAAA,EAAE,EAAC,WAAjE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBADJ,CADF,eAOE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA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import { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nexport const Navigationbar = () => (\n \n \n const options = this.state.isAuthenticated ? \n \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n \n \n \n \n \n
\n
\n)"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/ac1d98b57240d870542edd5a63cdcc9b.json b/node_modules/.cache/babel-loader/7db68019db5bfe97292d91800221c745.json similarity index 100% rename from node_modules/.cache/babel-loader/ac1d98b57240d870542edd5a63cdcc9b.json rename to node_modules/.cache/babel-loader/7db68019db5bfe97292d91800221c745.json diff --git a/node_modules/.cache/babel-loader/05bdb4c1de23c8a8b160464db3a74028.json b/node_modules/.cache/babel-loader/7de46306b11f28babab308f06106a682.json similarity index 100% rename from node_modules/.cache/babel-loader/05bdb4c1de23c8a8b160464db3a74028.json rename to node_modules/.cache/babel-loader/7de46306b11f28babab308f06106a682.json diff --git a/node_modules/.cache/babel-loader/734001c8b3010f6179023d1f590ee63c.json b/node_modules/.cache/babel-loader/7dfb497bf3b79fcc70c6e23dfe4e61f7.json similarity index 100% rename from node_modules/.cache/babel-loader/734001c8b3010f6179023d1f590ee63c.json rename to node_modules/.cache/babel-loader/7dfb497bf3b79fcc70c6e23dfe4e61f7.json diff --git a/node_modules/.cache/babel-loader/f91aca82ebe57b307c4ad026eedf43b7.json b/node_modules/.cache/babel-loader/7e486f698cf2811678153f2a0648816d.json similarity index 100% rename from node_modules/.cache/babel-loader/f91aca82ebe57b307c4ad026eedf43b7.json rename to node_modules/.cache/babel-loader/7e486f698cf2811678153f2a0648816d.json diff --git a/node_modules/.cache/babel-loader/6817dcf979e603cde59647e42275ce56.json b/node_modules/.cache/babel-loader/7e60119acc8e8ed5ecf4a864d1b7fa8d.json similarity index 100% rename from node_modules/.cache/babel-loader/6817dcf979e603cde59647e42275ce56.json rename to node_modules/.cache/babel-loader/7e60119acc8e8ed5ecf4a864d1b7fa8d.json diff --git a/node_modules/.cache/babel-loader/0f1bf5252e5ea43cd7a42628986559e6.json b/node_modules/.cache/babel-loader/7eab868ea3166df98d18646669913c2c.json similarity index 100% rename from node_modules/.cache/babel-loader/0f1bf5252e5ea43cd7a42628986559e6.json rename to node_modules/.cache/babel-loader/7eab868ea3166df98d18646669913c2c.json diff --git a/node_modules/.cache/babel-loader/7eb68a87c9153084b47a2542ac41d638.json b/node_modules/.cache/babel-loader/7eb68a87c9153084b47a2542ac41d638.json deleted file mode 100644 index 1984b281..00000000 --- a/node_modules/.cache/babel-loader/7eb68a87c9153084b47a2542ac41d638.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/NavigationBar.js\";\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\n\nvar NavigationBar = /*#__PURE__*/function (_Component) {\n _inherits(NavigationBar, _Component);\n\n function NavigationBar() {\n _classCallCheck(this, NavigationBar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(NavigationBar).apply(this, arguments));\n }\n\n _createClass(NavigationBar, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 11,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Brand, {\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 12,\n columnNumber: 11\n }\n }, \"Tutorial\"), /*#__PURE__*/React.createElement(Navbar.Toggle, {\n \"aria-controls\": \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 13,\n columnNumber: 11\n }\n }), /*#__PURE__*/React.createElement(Form, {\n className: \"form-center\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 14,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(FormControl, {\n type: \"text\",\n placeholder: \"Search\",\n className: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(Nav.Item, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 25\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(Nav.Item, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/about\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 25\n }\n }, \"Tasks\")))));\n }\n }]);\n\n return NavigationBar;\n}(Component);\n\nexport default NavigationBar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/NavigationBar.js"],"names":["React","Nav","Navbar","Form","FormControl","styled","NavigationBar","Component"],"mappings":";;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,OAAOC,MAAP,MAAmB,mBAAnB;;IAIMC,a;;;;;;;;;;;6BACO;AACP,0BAEE,oBAAC,MAAD;AAAQ,QAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD,CAAQ,KAAR;AAAc,QAAA,IAAI,EAAC,GAAnB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBADF,eAEE,oBAAC,MAAD,CAAQ,MAAR;AAAe,yBAAc,kBAA7B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAFF,eAGE,oBAAC,IAAD;AAAM,QAAA,SAAS,EAAC,aAAhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,WAAD;AAAa,QAAA,IAAI,EAAC,MAAlB;AAAyB,QAAA,WAAW,EAAC,QAArC;AAA8C,QAAA,SAAS,EAAC,EAAxD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CAHF,eAME,oBAAC,MAAD,CAAQ,QAAR;AAAiB,QAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,GAAD;AAAK,QAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,GAAD,CAAK,IAAL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAU,oBAAC,GAAD,CAAK,IAAL;AAAU,QAAA,IAAI,EAAC,GAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAV,CADF,eAEE,oBAAC,GAAD,CAAK,IAAL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAU,oBAAC,GAAD,CAAK,IAAL;AAAU,QAAA,IAAI,EAAC,QAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAV,CAFF,CADF,CANF,CAFF;AAgBD;;;;EAlBuBC,S;;AAqB5B,eAAeD,aAAf","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\n\n \n\nclass NavigationBar extends Component{\n render() {\n return (\n \n \n Tutorial\n \n
\n \n \n \n \n \n
\n );\n }\n }\n \nexport default NavigationBar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/bb608edd18ac1fa90fb40028a05bf069.json b/node_modules/.cache/babel-loader/7ebef68d3ae55fbde5103dce47bab997.json similarity index 100% rename from node_modules/.cache/babel-loader/bb608edd18ac1fa90fb40028a05bf069.json rename to node_modules/.cache/babel-loader/7ebef68d3ae55fbde5103dce47bab997.json diff --git a/node_modules/.cache/babel-loader/7eec6c989ab72658a981f53f753206f6.json b/node_modules/.cache/babel-loader/7eec6c989ab72658a981f53f753206f6.json deleted file mode 100644 index fd47fec5..00000000 --- a/node_modules/.cache/babel-loader/7eec6c989ab72658a981f53f753206f6.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"right_side\",\n src: \"\",\n width: \"100%\",\n height: \"50%\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:4200\",\n target: \"right_side\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 17\n }\n }, \" Home \"));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;AACA,OAAO,iBAAP;;IAEMC,S;;;;;;;;;;;;;;;UAKAC,K,GAAQ;AACNC,MAAAA,SAAS,EAAE,IADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,SAAS,EAAED;AAJL,K;;;;;;6BAQR;AACE,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAQ,QAAA,IAAI,EAAC,YAAb;AAA0B,QAAA,GAAG,EAAC,EAA9B;AAAiC,QAAA,KAAK,EAAC,MAAvC;AACJ,QAAA,MAAM,EAAC,KADH;AACS,QAAA,WAAW,EAAC,GADrB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,eAIM;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,YAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAJN,CADF;AAWD;;;;EAzBiBf,S;;AAAlBU,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAET,UAAU,CAACD,OAAD,CAAV,CAAoBW;AADd,C;AA2BvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n \n \n Home \n\n \n \n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/7eed87b3dc8295459f6a23bbe76aa4e2.json b/node_modules/.cache/babel-loader/7eed87b3dc8295459f6a23bbe76aa4e2.json deleted file mode 100644 index 2d731998..00000000 --- a/node_modules/.cache/babel-loader/7eed87b3dc8295459f6a23bbe76aa4e2.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _jsxFileName = \"/home/riddhi/frontend/src/index.js\";\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport './index.css';\nimport * as serviceWorker from './serviceWorker';\nimport Routing from './Routing';\nimport Navigationbar from './components/Navigationbar';\nReactDOM.render( /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 10,\n columnNumber: 5\n }\n}, /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 11,\n columnNumber: 5\n }\n}, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 12,\n columnNumber: 5\n }\n}), /*#__PURE__*/React.createElement(Routing, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 13,\n columnNumber: 5\n }\n}))), document.getElementById('root')); //ReactDOM.render(, document.getElementById('root'));\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\n\nserviceWorker.unregister();","map":{"version":3,"sources":["/home/riddhi/frontend/src/index.js"],"names":["React","ReactDOM","NavLink","Switch","BrowserRouter","Router","Route","serviceWorker","Routing","Navigationbar","render","document","getElementById","unregister"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,QAAP,MAAqB,WAArB;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAO,aAAP;AACA,OAAO,KAAKC,aAAZ,MAA+B,iBAA/B;AACA,OAAOC,OAAP,MAAoB,WAApB;AACA,OAAOC,aAAP,MAA0B,4BAA1B;AAEAR,QAAQ,CAACS,MAAT,eACI,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBACA,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EADA,eAEA,oBAAC,OAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAFA,CADA,CADJ,EAOMC,QAAQ,CAACC,cAAT,CAAwB,MAAxB,CAPN,E,CAQA;AAGA;AACA;AACA;;AACAL,aAAa,CAACM,UAAd","sourcesContent":["import React from 'react';\nimport ReactDOM from 'react-dom';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport './index.css';\nimport * as serviceWorker from './serviceWorker';\nimport Routing from './Routing';\nimport Navigationbar from './components/Navigationbar';\n\nReactDOM.render(\n \n
\n \n \n
\n
\n , document.getElementById('root'));\n//ReactDOM.render(, document.getElementById('root'));\n\n\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\nserviceWorker.unregister();"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/7f066dbcfcde88004ff2ece05ca42e66.json b/node_modules/.cache/babel-loader/7f066dbcfcde88004ff2ece05ca42e66.json deleted file mode 100644 index 2269a2b5..00000000 --- a/node_modules/.cache/babel-loader/7f066dbcfcde88004ff2ece05ca42e66.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport Navigationbar from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 21\n }\n })));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,OAAOC,aAAP,MAA2B,4BAA3B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACU,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,eAEI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEL,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAFJ,eAGI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHJ,eAII,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJJ,eAKI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEL,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALJ,CADV,CADF;AAWD;;;;EAbmBN,S;;AAgBtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport Navigationbar from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() { \n return ( \n \n \n \n \n \n \n \n \n \n )\n };\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/7f601d5f619a83fc0db7e4c9e69b1ce6.json b/node_modules/.cache/babel-loader/7f601d5f619a83fc0db7e4c9e69b1ce6.json deleted file mode 100644 index 63b8b1da..00000000 --- a/node_modules/.cache/babel-loader/7f601d5f619a83fc0db7e4c9e69b1ce6.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/progress-bar.js\";\n\nimport React from 'react';\nimport Filler from './filler';\nimport './progress-bar.css';\n\nvar ProgressBar = function ProgressBar(props) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"progress-bar\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 7,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Filler, {\n percentage: props.percentage,\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 8,\n columnNumber: 13\n }\n }));\n};\n\nexport default ProgressBar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/progress-bar.js"],"names":["React","Filler","ProgressBar","props","percentage"],"mappings":";;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,MAAP,MAAmB,UAAnB;AACA,OAAO,oBAAP;;AAEA,IAAMC,WAAW,GAAG,SAAdA,WAAc,CAACC,KAAD,EAAW;AAC3B,sBACI;AAAK,IAAA,SAAS,EAAC,cAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,MAAD;AAAQ,IAAA,UAAU,EAAEA,KAAK,CAACC,UAA1B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IADJ,CADJ;AAKH,CAND;;AAQA,eAAeF,WAAf","sourcesContent":["import React from 'react';\nimport Filler from './filler';\nimport './progress-bar.css';\n\nconst ProgressBar = (props) => {\n return (\n
\n \n
\n )\n}\n\nexport default ProgressBar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/a329b8e19cac31aa211de583db96cab9.json b/node_modules/.cache/babel-loader/7f69dde7c30c8554ab78ead1515d5460.json similarity index 100% rename from node_modules/.cache/babel-loader/a329b8e19cac31aa211de583db96cab9.json rename to node_modules/.cache/babel-loader/7f69dde7c30c8554ab78ead1515d5460.json diff --git a/node_modules/.cache/babel-loader/5121a56fa67a0587e9b0098c88350258.json b/node_modules/.cache/babel-loader/7ff63336624a1a035698671055be6cff.json similarity index 100% rename from node_modules/.cache/babel-loader/5121a56fa67a0587e9b0098c88350258.json rename to node_modules/.cache/babel-loader/7ff63336624a1a035698671055be6cff.json diff --git a/node_modules/.cache/babel-loader/a788f1572ea1872bb73089ab8bcc6a8c.json b/node_modules/.cache/babel-loader/7ffe88fd08ac05efe2bac59c4f62e73e.json similarity index 100% rename from node_modules/.cache/babel-loader/a788f1572ea1872bb73089ab8bcc6a8c.json rename to node_modules/.cache/babel-loader/7ffe88fd08ac05efe2bac59c4f62e73e.json diff --git a/node_modules/.cache/babel-loader/c7ba29ebe0b3fd4850e5b043230a9222.json b/node_modules/.cache/babel-loader/800a86d80897b1d0918d1679b594487f.json similarity index 100% rename from node_modules/.cache/babel-loader/c7ba29ebe0b3fd4850e5b043230a9222.json rename to node_modules/.cache/babel-loader/800a86d80897b1d0918d1679b594487f.json diff --git a/node_modules/.cache/babel-loader/fe2bd8c828a82e017f309b4f61bb10e8.json b/node_modules/.cache/babel-loader/800e392166846596be0de64499343259.json similarity index 100% rename from node_modules/.cache/babel-loader/fe2bd8c828a82e017f309b4f61bb10e8.json rename to node_modules/.cache/babel-loader/800e392166846596be0de64499343259.json diff --git a/node_modules/.cache/babel-loader/3646d461daa79f7b24eadf40f051a026.json b/node_modules/.cache/babel-loader/8045455e0bb9db47687233d8be3fd147.json similarity index 100% rename from node_modules/.cache/babel-loader/3646d461daa79f7b24eadf40f051a026.json rename to node_modules/.cache/babel-loader/8045455e0bb9db47687233d8be3fd147.json diff --git a/node_modules/.cache/babel-loader/807ba43dd8a0e3c7af78bcf731f46475.json b/node_modules/.cache/babel-loader/807ba43dd8a0e3c7af78bcf731f46475.json deleted file mode 100644 index 4fa09567..00000000 --- a/node_modules/.cache/babel-loader/807ba43dd8a0e3c7af78bcf731f46475.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 226,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 227,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 228,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 24\n }\n }, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 237,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 238,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 240,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 241,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n isLoggedIn: this.state.isAuthenticated,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 11\n }\n }), mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","isNavbar","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,aAAP,MAA2B,iBAA3B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AASJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UARlBC,KAQkB,GARV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE,KAJF;AAKNC,MAAAA,QAAQ,EAAE;AALJ,KAQU;AAAA,QAETC,OAFS,GAEER,KAF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,QAAA,SAAS,EAAC,uBAAb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAH/B,EAIO,CAAC,KAAKD,KAAL,CAAWK,MAAZ,iBAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAJ7B,EAKO,KAAKL,KAAL,CAAWK,MAAX,iBAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAL5B,CAFF,CADS,GAYL,IAZd;AAcE,UAAMoE,QAAQ,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAEdD,SAFc,eAGf;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAEhF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAHe,eAMf;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CANe,eASf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QATe,CAAjB;AAcA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAe,QAAA,UAAU,EAAE,KAAKQ,KAAL,CAAWE,eAAtC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,EAEIuE,QAFJ,CAFF;AASH;;;;EAhPe7F,S;;AAkPlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n \n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n \n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n \n {mainBody}\n \n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/ee01bfa6444bc565eb48d1f38b457f46.json b/node_modules/.cache/babel-loader/8089d6b01966929f2a72e69de259a91e.json similarity index 100% rename from node_modules/.cache/babel-loader/ee01bfa6444bc565eb48d1f38b457f46.json rename to node_modules/.cache/babel-loader/8089d6b01966929f2a72e69de259a91e.json diff --git a/node_modules/.cache/babel-loader/3d81a8d921b910e81c3808af100a8901.json b/node_modules/.cache/babel-loader/80dbb09d5ae8072b72a5e2cadbe7f860.json similarity index 100% rename from node_modules/.cache/babel-loader/3d81a8d921b910e81c3808af100a8901.json rename to node_modules/.cache/babel-loader/80dbb09d5ae8072b72a5e2cadbe7f860.json diff --git a/node_modules/.cache/babel-loader/bc2692ce7c14112d1571b15b34df04bb.json b/node_modules/.cache/babel-loader/80e5f5cf3fdc18bfde9de5e8e3425311.json similarity index 100% rename from node_modules/.cache/babel-loader/bc2692ce7c14112d1571b15b34df04bb.json rename to node_modules/.cache/babel-loader/80e5f5cf3fdc18bfde9de5e8e3425311.json diff --git a/node_modules/.cache/babel-loader/811ec0959785e5a0f5df5c48fd3e828b.json b/node_modules/.cache/babel-loader/811ec0959785e5a0f5df5c48fd3e828b.json deleted file mode 100644 index 75204735..00000000 --- a/node_modules/.cache/babel-loader/811ec0959785e5a0f5df5c48fd3e828b.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 225,\n columnNumber: 16\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 237,\n columnNumber: 19\n }\n }, \"Login\")))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 248,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 252,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 253,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 24\n }\n }, options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 275,\n columnNumber: 9\n }\n }, mainBody, /*#__PURE__*/React.createElement(Navigationbar, {\n isLoggedIn: this.state.isAuthenticated,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 277,\n columnNumber: 12\n }\n }));\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","isNavbar","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,IAAP,MAAiB,qBAAjB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AAAA;AAAA,SACImF,QADJ,eAEG,oBAAC,aAAD;AAAe,QAAA,UAAU,EAAE,KAAK3E,KAAL,CAAWE,eAAtC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAFH,CAFF;AAQH;;;;EAxQetB,S;;AA0QlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n \n
\n \n
    \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n \n
\n
    \n
  • \n \n Login\n \n \n
  • \n
\n
\n
\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n {mainBody}\n \n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/7efe6dd9589961d9ea59733ce697ea1b.json b/node_modules/.cache/babel-loader/8271084cd63381c7b7f47baaeb70cf44.json similarity index 100% rename from node_modules/.cache/babel-loader/7efe6dd9589961d9ea59733ce697ea1b.json rename to node_modules/.cache/babel-loader/8271084cd63381c7b7f47baaeb70cf44.json diff --git a/node_modules/.cache/babel-loader/437db098364abe300887970af093b50f.json b/node_modules/.cache/babel-loader/82874e413156e6ecf52c6b33892af8da.json similarity index 100% rename from node_modules/.cache/babel-loader/437db098364abe300887970af093b50f.json rename to node_modules/.cache/babel-loader/82874e413156e6ecf52c6b33892af8da.json diff --git a/node_modules/.cache/babel-loader/6432a08a647dd5cb077edc26b49a9181.json b/node_modules/.cache/babel-loader/82e2001252440cf4e5e22d0275508ebd.json similarity index 100% rename from node_modules/.cache/babel-loader/6432a08a647dd5cb077edc26b49a9181.json rename to node_modules/.cache/babel-loader/82e2001252440cf4e5e22d0275508ebd.json diff --git a/node_modules/.cache/babel-loader/8366daf4f8cc9d6f2914d8f63c9b8d10.json b/node_modules/.cache/babel-loader/8366daf4f8cc9d6f2914d8f63c9b8d10.json deleted file mode 100644 index ba5121d0..00000000 --- a/node_modules/.cache/babel-loader/8366daf4f8cc9d6f2914d8f63c9b8d10.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink, Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var isLoggedIn = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 7\n }\n }, isLoggedIn ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 41\n }\n }, \"Simulator\")))))) : null);\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","Link","styled","header","Styles","div","Navigationbar","isLoggedIn","props","textDecoration"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,EAAiBC,IAAjB,QAA6B,kBAA7B;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AACN,UAAMC,UAAU,GAAG,KAAKC,KAAL,CAAWD,UAA9B;AACA,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACAA,UAAU,gBACV,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACQ,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACc;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GA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eAAeW,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink,Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const isLoggedIn = this.props.isLoggedIn;\n return (\n
\n { isLoggedIn ? \n \n \n
\n \n \n \n
\n
\n \n \n \n
    \n
  • \n \n Progress\n \n
  • \n \n
  • \n \n Tasks\n \n
  • \n
  • \n \n Simulator\n \n
  • \n \n
\n \n \n
\n
\n
\n \n :\n null\n }\n \n \n\n
\n); \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/836c4e03c9cd831839cc106d81c77707.json b/node_modules/.cache/babel-loader/836c4e03c9cd831839cc106d81c77707.json deleted file mode 100644 index 3589cadb..00000000 --- a/node_modules/.cache/babel-loader/836c4e03c9cd831839cc106d81c77707.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink, Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var isLoggedIn = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 7\n }\n }, isLoggedIn ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 41\n }\n }, \"Simulator\"))))) : null);\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","Link","styled","header","Styles","div","Navigationbar","isLoggedIn","props","textDecoration"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,EAAiBC,IAAjB,QAA6B,kBAA7B;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AACN,UAAMC,UAAU,GAAG,KAAKC,KAAL,CAAWD,UAA9B;AACA,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACAA,UAAU,gBACV,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAEQ;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACc;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAAA,KAAK,EAAC,MAAX;AAAkB,QAAA,GAAG,EAAEJ,MAAvB;AAA+B,QAAA,KAAK,EAAE,MAAtC;AAA8C,QAAA,MAAM,EAAE,MAAtD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CADd,CAFR,eAOkB;AAAK,QAAA,EAAE,EAAC,QAAR;AAAiB,QAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAIQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEM,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,UAAhD;AAA2D,QAAA,EAAE,EAAC,WAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBADJ,CADJ,eAOI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,OAAhD;AAAwD,QAAA,EAAE,EAAC,QAA3D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CAPJ,eAYI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,OAAhD;AAAwD,QAAA,EAAE,EAAC,GAA3D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADJ,CAZJ,CAJR,CAPlB,CADU,GAsCV,IAvCA,CADF;AA+CH;;;;EAlD2Bd,S;;AAoD5B,eAAeW,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink,Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const isLoggedIn = this.props.isLoggedIn;\n return (\n
\n { isLoggedIn ? \n \n \n
\n \n \n \n
\n
\n \n \n \n
    \n
  • \n \n Progress\n \n
  • \n \n
  • \n \n Tasks\n \n
  • \n
  • \n \n Simulator\n \n
  • \n \n
\n \n \n
\n \n
\n \n :\n null\n }\n \n \n\n
\n); \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/7268176495a1c244c290624e0b0a5123.json b/node_modules/.cache/babel-loader/8374739fce69672f8c9f5209d58c13af.json similarity index 100% rename from node_modules/.cache/babel-loader/7268176495a1c244c290624e0b0a5123.json rename to node_modules/.cache/babel-loader/8374739fce69672f8c9f5209d58c13af.json diff --git a/node_modules/.cache/babel-loader/81c7556c92f08231b0a4cf536f611229.json b/node_modules/.cache/babel-loader/83ca6908c4304b1acd46dac9521b0b04.json similarity index 100% rename from node_modules/.cache/babel-loader/81c7556c92f08231b0a4cf536f611229.json rename to node_modules/.cache/babel-loader/83ca6908c4304b1acd46dac9521b0b04.json diff --git a/node_modules/.cache/babel-loader/c4074f4064c41aa01359e126ae7d95a0.json b/node_modules/.cache/babel-loader/84559befd6b40a0410ceae520c77a774.json similarity index 100% rename from node_modules/.cache/babel-loader/c4074f4064c41aa01359e126ae7d95a0.json rename to node_modules/.cache/babel-loader/84559befd6b40a0410ceae520c77a774.json diff --git a/node_modules/.cache/babel-loader/92fd7867e58ebbed643c8209d166f0fc.json b/node_modules/.cache/babel-loader/84995317f480cefb48f11867ce4818a0.json similarity index 100% rename from node_modules/.cache/babel-loader/92fd7867e58ebbed643c8209d166f0fc.json rename to node_modules/.cache/babel-loader/84995317f480cefb48f11867ce4818a0.json diff --git a/node_modules/.cache/babel-loader/1fcac8ae089766da3299197f62440faf.json b/node_modules/.cache/babel-loader/84d6e54b79f31afa1cb012103f131f2d.json similarity index 100% rename from node_modules/.cache/babel-loader/1fcac8ae089766da3299197f62440faf.json rename to node_modules/.cache/babel-loader/84d6e54b79f31afa1cb012103f131f2d.json diff --git a/node_modules/.cache/babel-loader/51ff39b728db5fbe3262ab688c8c839d.json b/node_modules/.cache/babel-loader/851a73d8fd43509886eda676ee54fdff.json similarity index 100% rename from node_modules/.cache/babel-loader/51ff39b728db5fbe3262ab688c8c839d.json rename to node_modules/.cache/babel-loader/851a73d8fd43509886eda676ee54fdff.json diff --git a/node_modules/.cache/babel-loader/db446643772205d300165e282667a886.json b/node_modules/.cache/babel-loader/85636bd8a5bd98f1f2dc29faa0c14da2.json similarity index 100% rename from node_modules/.cache/babel-loader/db446643772205d300165e282667a886.json rename to node_modules/.cache/babel-loader/85636bd8a5bd98f1f2dc29faa0c14da2.json diff --git a/node_modules/.cache/babel-loader/85a97aa65a0965aafdc4bc3f68e1eddf.json b/node_modules/.cache/babel-loader/85a97aa65a0965aafdc4bc3f68e1eddf.json deleted file mode 100644 index 29eb4bfb..00000000 --- a/node_modules/.cache/babel-loader/85a97aa65a0965aafdc4bc3f68e1eddf.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var authenticated = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 25\n }\n }, authenticated ? /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 53,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 58,\n columnNumber: 41\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 63,\n columnNumber: 41\n }\n }, \"Logout\"))) : null));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","authenticated","props","isLoggedIn","textDecoration","submit"],"mappings":";;;;;;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AAA;AAAA;AAAA;AAAA,oBADJ,CADJ,eAOI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA6C,QAAA,KAAK,EAAC,OAAnD;AAA2D,QAAA,EAAE,EAAC,QAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CAPJ,eAYI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA6C,QAAA,KAAK,EAAC,OAAnD;AAA2D,QAAA,EAAE,EAAC,GAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADJ,CAZJ,eAiBI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKF,KAAL,CAAWG,MAAhE;AAAwE,QAAA,KAAK,EAAC,QAA9E;AAAuF,QAAA,EAAE,EAAC,GAA1F;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBADJ,CAjBJ,CAFU,GA4BZ,IA9BN,CAVpB,CADF;AAqDD;;;;EAzD2Bf,S;;AA2D5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const authenticated = this.props.isLoggedIn;\n \n return (\n
\n \n \n \n \n
\n \n \n \n
\n
\n \n {authenticated ? ( \n \n
    \n
  • \n \n Progress\n \n
  • \n \n
  • \n \n Tasks\n \n
  • \n
  • \n \n Simulator\n \n
  • \n
  • \n \n Logout\n \n
  • \n
\n )\n :\n (\n null\n )\n }\n \n
\n \n \n \n \n
\n \n )\n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/927faa8cfe6e7489e1ee4176631e06c7.json b/node_modules/.cache/babel-loader/85b2a98b108c1d857b66005d95ef6cdb.json similarity index 100% rename from node_modules/.cache/babel-loader/927faa8cfe6e7489e1ee4176631e06c7.json rename to node_modules/.cache/babel-loader/85b2a98b108c1d857b66005d95ef6cdb.json diff --git a/node_modules/.cache/babel-loader/861badcf0c9e163c588aa22b00965f2a.json b/node_modules/.cache/babel-loader/861badcf0c9e163c588aa22b00965f2a.json deleted file mode 100644 index 0b55bae5..00000000 --- a/node_modules/.cache/babel-loader/861badcf0c9e163c588aa22b00965f2a.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 19\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 19\n }\n }, \"Login\"), /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 237,\n columnNumber: 19\n }\n }))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 248,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 249,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 256,\n columnNumber: 24\n }\n }, options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 272,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAAS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;;;EAnQe9F,S;;AAqQlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n\n
\n
    \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n \n
  • \n
\n
\n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/861d5281295d1c8ae0eb5bcf39301a6d.json b/node_modules/.cache/babel-loader/861d5281295d1c8ae0eb5bcf39301a6d.json deleted file mode 100644 index 145c0d18..00000000 --- a/node_modules/.cache/babel-loader/861d5281295d1c8ae0eb5bcf39301a6d.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var options = this.props.isLoggedIn ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 49,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 54,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 41\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 59,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 60,\n columnNumber: 41\n }\n }, \"Logout\"))))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 73,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 74,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 75,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 76,\n columnNumber: 11\n }\n }, \"Login\"))));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 84,\n columnNumber: 9\n }\n }, options);\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","options","props","isLoggedIn","textDecoration","submit","login"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AAGT,UAAMC,OAAO,GAAG,KAAKC,KAAL,CAAWC,UAAX,gBACX,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAEQ;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACc;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAAA,KAAK,EAAC,MAAX;AAAkB,QAAA,GAAG,EAAEN,MAAvB;AAA+B,QAAA,KAAK,EAAE,MAAtC;AAA8C,QAAA,MAAM,EAAE,MAAtD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CADd,CAFR,eAOkB;AAA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lB,CADW,gBA2CT;AAAK,QAAA,EAAE,EAAC,QAAR;AAAiB,QAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAED,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKF,KAAL,CAAWI,KAAhE;AAAuE,QAAA,KAAK,EAAC,OAA7E;AAAqF,QAAA,EAAE,EAAC,EAAxF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADA,CADF,CADA,CA3CP;AAqDD,0BACQ;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIL,OADJ,CADR;AAKC;;;;EA9D2BX,S;;AAgE5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n \n \n const options = this.props.isLoggedIn ? \n \n \n
\n \n \n \n
\n
\n \n \n \n
    \n
  • \n \n Progress\n \n
  • \n \n
  • \n \n Tasks\n \n
  • \n
  • \n \n Simulator\n \n
  • \n
  • \n \n Logout\n \n
  • \n
\n \n \n
\n \n
\n \n :\n \n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n \nreturn (\n
\n {options}\n
\n) \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/07ba2792a95ba597b5a68d6193b4d054.json b/node_modules/.cache/babel-loader/86612184f3cedd068a1d1413cea7abb9.json similarity index 100% rename from node_modules/.cache/babel-loader/07ba2792a95ba597b5a68d6193b4d054.json rename to node_modules/.cache/babel-loader/86612184f3cedd068a1d1413cea7abb9.json diff --git a/node_modules/.cache/babel-loader/86840bd404e933bf8e03d2ece54f8839.json b/node_modules/.cache/babel-loader/86840bd404e933bf8e03d2ece54f8839.json deleted file mode 100644 index 4414fbc9..00000000 --- a/node_modules/.cache/babel-loader/86840bd404e933bf8e03d2ece54f8839.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n id: \"top\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(\"h1\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 13\n }\n }, \"About US\"), /*#__PURE__*/React.createElement(\"p\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }\n }, \"About US page body content\")), /*#__PURE__*/React.createElement(\"div\", {\n id: \"bottom\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(\"h1\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 11\n }\n }, \"About US\"), /*#__PURE__*/React.createElement(\"p\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 11\n }\n }, \"About US Bottom page body content\")));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;;IAEMC,S;;;;;;;;;;;;;;;UAKAC,K,GAAQ;AACNC,MAAAA,SAAS,EAAE,IADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,SAAS,EAAED;AAJL,K;;;;;;6BAQR;AACE,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA;AAAK,QAAA,EAAE,EAAC,KAAR;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBADF,eAEE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sCAFF,CADA,eAMA;AAAK,QAAA,EAAE,EAAC,QAAR;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBADA,eAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6CAFA,CANA,CADF;AAaD;;;;EA3BiBf,S;;AAAlBU,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAET,UAAU,CAACD,OAAD,CAAV,CAAoBW;AADd,C;AA6BvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n
\n

About US

\n

About US page body content

\n
\n\n
\n

About US

\n

About US Bottom page body content

\n
\n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/86adad3eb0218f740411d2bf890dcafc.json b/node_modules/.cache/babel-loader/86adad3eb0218f740411d2bf890dcafc.json deleted file mode 100644 index 6db423e4..00000000 --- a/node_modules/.cache/babel-loader/86adad3eb0218f740411d2bf890dcafc.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport NavigationBar from './components/NavigationBar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 14,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Switch, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 15\n }\n })))));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","NavigationBar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,OAAQC,aAAR,MAA4B,4BAA5B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CACA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAGE,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEN,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHF,eAIE,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEC,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJF,eAKE,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALF,eAME,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANF,CADF,CADF,CADF,CADF;AAgBD;;;;EAlBmBX,S;;AAqBtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport NavigationBar from './components/NavigationBar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() {\n return (\n \n \n
\n \n {/* \n */}\n \n \n \n \n \n
\n
\n
\n );\n }\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/67869a729b85b9116a66e9cc800ed22e.json b/node_modules/.cache/babel-loader/86c870b2c4bc81fc1a1dfc37d54cb47b.json similarity index 100% rename from node_modules/.cache/babel-loader/67869a729b85b9116a66e9cc800ed22e.json rename to node_modules/.cache/babel-loader/86c870b2c4bc81fc1a1dfc37d54cb47b.json diff --git a/node_modules/.cache/babel-loader/86e8e5568f3e16f77b14b107d536e7e7.json b/node_modules/.cache/babel-loader/86e8e5568f3e16f77b14b107d536e7e7.json new file mode 100644 index 00000000..e95fc145 --- /dev/null +++ b/node_modules/.cache/babel-loader/86e8e5568f3e16f77b14b107d536e7e7.json @@ -0,0 +1 @@ +{"ast":null,"code":"// This optional code is used to register a service worker.\n// register() is not called by default.\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on subsequent visits to a page, after all the\n// existing tabs open on the page have been closed, since previously cached\n// resources are updated in the background.\n// To learn more about the benefits of this model and instructions on how to\n// opt-in, read https://bit.ly/CRA-PWA\nvar isLocalhost = Boolean( //window.location.hostname === '157.245.211.190' ||\nwindow.location.hostname === 'localhost' || // [::1] is the IPv6 localhost address.\nwindow.location.hostname === '[::1]' || // 127.0.0.0/8 are considered localhost for IPv4.\nwindow.location.hostname.match(/^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)\n/*|| \nwindow.location.hostname.match(\n /^157(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n)*/\n);\nexport function register(config) {\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\n // The URL constructor is available in all browsers that support SW.\n var publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\n\n if (publicUrl.origin !== window.location.origin) {\n // Our service worker won't work if PUBLIC_URL is on a different origin\n // from what our page is served on. This might happen if a CDN is used to\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\n return;\n }\n\n window.addEventListener('load', function () {\n var swUrl = \"\".concat(process.env.PUBLIC_URL, \"/service-worker.js\");\n\n if (isLocalhost) {\n // This is running on localhost. Let's check if a service worker still exists or not.\n checkValidServiceWorker(swUrl, config); // Add some additional logging to localhost, pointing developers to the\n // service worker/PWA documentation.\n\n navigator.serviceWorker.ready.then(function () {\n console.log('This web app is being served cache-first by a service ' + 'worker. To learn more, visit https://bit.ly/CRA-PWA');\n });\n } else {\n // Is not localhost. Just register service worker\n registerValidSW(swUrl, config);\n }\n });\n }\n}\n\nfunction registerValidSW(swUrl, config) {\n navigator.serviceWorker.register(swUrl).then(function (registration) {\n registration.onupdatefound = function () {\n var installingWorker = registration.installing;\n\n if (installingWorker == null) {\n return;\n }\n\n installingWorker.onstatechange = function () {\n if (installingWorker.state === 'installed') {\n if (navigator.serviceWorker.controller) {\n // At this point, the updated precached content has been fetched,\n // but the previous service worker will still serve the older\n // content until all client tabs are closed.\n console.log('New content is available and will be used when all ' + 'tabs for this page are closed. See https://bit.ly/CRA-PWA.'); // Execute callback\n\n if (config && config.onUpdate) {\n config.onUpdate(registration);\n }\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a\n // \"Content is cached for offline use.\" message.\n console.log('Content is cached for offline use.'); // Execute callback\n\n if (config && config.onSuccess) {\n config.onSuccess(registration);\n }\n }\n }\n };\n };\n }).catch(function (error) {\n console.error('Error during service worker registration:', error);\n });\n}\n\nfunction checkValidServiceWorker(swUrl, config) {\n // Check if the service worker can be found. If it can't reload the page.\n fetch(swUrl, {\n headers: {\n 'Service-Worker': 'script'\n }\n }).then(function (response) {\n // Ensure service worker exists, and that we really are getting a JS file.\n var contentType = response.headers.get('content-type');\n\n if (response.status === 404 || contentType != null && contentType.indexOf('javascript') === -1) {\n // No service worker found. Probably a different app. Reload the page.\n navigator.serviceWorker.ready.then(function (registration) {\n registration.unregister().then(function () {\n window.location.reload();\n });\n });\n } else {\n // Service worker found. Proceed as normal.\n registerValidSW(swUrl, config);\n }\n }).catch(function () {\n console.log('No internet connection found. App is running in offline mode.');\n });\n}\n\nexport function unregister() {\n if ('serviceWorker' in navigator) {\n navigator.serviceWorker.ready.then(function (registration) {\n registration.unregister();\n });\n }\n}","map":{"version":3,"sources":["/home/riddhi/simulation/Gazebo_simulation-Frontend/src/serviceWorker.js"],"names":["isLocalhost","Boolean","window","location","hostname","match","register","config","process","env","NODE_ENV","navigator","publicUrl","URL","PUBLIC_URL","href","origin","addEventListener","swUrl","checkValidServiceWorker","serviceWorker","ready","then","console","log","registerValidSW","registration","onupdatefound","installingWorker","installing","onstatechange","state","controller","onUpdate","onSuccess","catch","error","fetch","headers","response","contentType","get","status","indexOf","unregister","reload"],"mappings":"AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEA,IAAMA,WAAW,GAAGC,OAAO,EACzB;AACAC,MAAM,CAACC,QAAP,CAAgBC,QAAhB,KAA6B,WAA7B,IACE;AACAF,MAAM,CAACC,QAAP,CAAgBC,QAAhB,KAA6B,OAF/B,IAGE;AACAF,MAAM,CAACC,QAAP,CAAgBC,QAAhB,CAAyBC,KAAzB,CACE,wDADF;AAGA;;;;AATuB,CAA3B;AAeA,OAAO,SAASC,QAAT,CAAkBC,MAAlB,EAA0B;AAC/B,MAAIC,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAAzB,IAAyC,mBAAmBC,SAAhE,EAA2E;AACzE;AACA,QAAMC,SAAS,GAAG,IAAIC,GAAJ,CAAQL,OAAO,CAACC,GAAR,CAAYK,UAApB,EAAgCZ,MAAM,CAACC,QAAP,CAAgBY,IAAhD,CAAlB;;AAEA,QAAIH,SAAS,CAACI,MAAV,KAAqBd,MAAM,CAACC,QAAP,CAAgBa,MAAzC,EAAiD;AAC/C;AACA;AACA;AACA;AACD;;AAEDd,IAAAA,MAAM,C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CAAmC,UAAAI,YAAY,EAAI;AACjDA,MAAAA,YAAY,CAACkB,UAAb;AACD,KAFD;AAGD;AACF","sourcesContent":["// This optional code is used to register a service worker.\n// register() is not called by default.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on subsequent visits to a page, after all the\n// existing tabs open on the page have been closed, since previously cached\n// resources are updated in the background.\n\n// To learn more about the benefits of this model and instructions on how to\n// opt-in, read https://bit.ly/CRA-PWA\n\nconst isLocalhost = Boolean(\n //window.location.hostname === '157.245.211.190' ||\n window.location.hostname === 'localhost' ||\n // [::1] is the IPv6 localhost address.\n window.location.hostname === '[::1]' ||\n // 127.0.0.0/8 are considered localhost for IPv4.\n window.location.hostname.match(\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n ) \n /*|| \n window.location.hostname.match(\n /^157(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n )*/\n);\n\nexport function register(config) {\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\n // The URL constructor is available in all browsers that support SW.\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\n \n if (publicUrl.origin !== window.location.origin) {\n // Our service worker won't work if PUBLIC_URL is on a different origin\n // from what our page is served on. This might happen if a CDN is used to\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\n return;\n }\n\n window.addEventListener('load', () => {\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\n\n if (isLocalhost) {\n // This is running on localhost. Let's check if a service worker still exists or not.\n checkValidServiceWorker(swUrl, config);\n\n // Add some additional logging to localhost, pointing developers to the\n // service worker/PWA documentation.\n navigator.serviceWorker.ready.then(() => {\n console.log(\n 'This web app is being served cache-first by a service ' +\n 'worker. To learn more, visit https://bit.ly/CRA-PWA'\n );\n });\n } else {\n // Is not localhost. Just register service worker\n registerValidSW(swUrl, config);\n }\n });\n }\n}\n\nfunction registerValidSW(swUrl, config) {\n navigator.serviceWorker\n .register(swUrl)\n .then(registration => {\n registration.onupdatefound = () => {\n const installingWorker = registration.installing;\n if (installingWorker == null) {\n return;\n }\n installingWorker.onstatechange = () => {\n if (installingWorker.state === 'installed') {\n if (navigator.serviceWorker.controller) {\n // At this point, the updated precached content has been fetched,\n // but the previous service worker will still serve the older\n // content until all client tabs are closed.\n console.log(\n 'New content is available and will be used when all ' +\n 'tabs for this page are closed. See https://bit.ly/CRA-PWA.'\n );\n\n // Execute callback\n if (config && config.onUpdate) {\n config.onUpdate(registration);\n }\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a\n // \"Content is cached for offline use.\" message.\n console.log('Content is cached for offline use.');\n\n // Execute callback\n if (config && config.onSuccess) {\n config.onSuccess(registration);\n }\n }\n }\n };\n };\n })\n .catch(error => {\n console.error('Error during service worker registration:', error);\n });\n}\n\nfunction checkValidServiceWorker(swUrl, config) {\n // Check if the service worker can be found. If it can't reload the page.\n fetch(swUrl, {\n headers: { 'Service-Worker': 'script' }\n })\n .then(response => {\n // Ensure service worker exists, and that we really are getting a JS file.\n const contentType = response.headers.get('content-type');\n if (\n response.status === 404 ||\n (contentType != null && contentType.indexOf('javascript') === -1)\n ) {\n // No service worker found. Probably a different app. Reload the page.\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister().then(() => {\n window.location.reload();\n });\n });\n } else {\n // Service worker found. Proceed as normal.\n registerValidSW(swUrl, config);\n }\n })\n .catch(() => {\n console.log(\n 'No internet connection found. App is running in offline mode.'\n );\n });\n}\n\nexport function unregister() {\n if ('serviceWorker' in navigator) {\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister();\n });\n }\n}\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/87045604c9711b0ec332ef9f4989763b.json b/node_modules/.cache/babel-loader/87045604c9711b0ec332ef9f4989763b.json deleted file mode 100644 index 8d2bf35a..00000000 --- a/node_modules/.cache/babel-loader/87045604c9711b0ec332ef9f4989763b.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 229,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 230,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 256,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 272,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 280,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 283,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 284,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 287,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 295,\n columnNumber: 9\n }\n }, mainBody, /*#__PURE__*/React.createElement(React.Fragment, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 298,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 299,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 300,\n columnNumber: 13\n }\n }))));\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,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A;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CADF,CAHA,CADF;AAaH;;;;EAjSe9F,S;;AAmSlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n
\n {mainBody}\n \n \n \n \n \n \n
\n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/8723345a7866626aa1862aed19840dc7.json b/node_modules/.cache/babel-loader/8723345a7866626aa1862aed19840dc7.json deleted file mode 100644 index 1fb3412b..00000000 --- a/node_modules/.cache/babel-loader/8723345a7866626aa1862aed19840dc7.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var authenticated = this.props.isLoggedIn;\n console.log(\"riddhi\", authenticated);\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 5\n }\n }, authenticated ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 33\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 33\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 33\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 61,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"this.props.iflogin\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 33\n }\n }, \"Logout\")))))))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 75,\n columnNumber: 4\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 76,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 77,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"this.props.iflogout\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 78,\n columnNumber: 9\n }\n }, \"Login\")))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","authenticated","props","isLoggedIn","console","log","textDecoration","submit","login"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C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C,OAAD;AAAS,QAAA,KAAK,EAAE;AAAED,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKE,KAA1D;AAAiE,QAAA,KAAK,EAAC,qBAAvE;AAA6F,QAAA,EAAE,EAAC,EAAhG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CADF,CADC,CA3CC,CADF;AAyDD;;;;EA9D2BlB,S;;AAgE5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const authenticated = this.props.isLoggedIn;\n console.log(\"riddhi\",authenticated);\n \n return (\n
\n {authenticated ? ( \n \n \n \n \n \n \n \n )\n :\n (
\n
    \n
  • \n \n Login\n \n \n
  • \n
\n
) }\n \n
\n )\n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/59f9041cc7c61fc01889a9bfe7ffa095.json b/node_modules/.cache/babel-loader/872a75a9635892191dd5770a144c14e5.json similarity index 100% rename from node_modules/.cache/babel-loader/59f9041cc7c61fc01889a9bfe7ffa095.json rename to node_modules/.cache/babel-loader/872a75a9635892191dd5770a144c14e5.json diff --git a/node_modules/.cache/babel-loader/388fe3a498742073966cea2566e9b8f1.json b/node_modules/.cache/babel-loader/883708114260a43171fe71e5517408a4.json similarity index 100% rename from node_modules/.cache/babel-loader/388fe3a498742073966cea2566e9b8f1.json rename to node_modules/.cache/babel-loader/883708114260a43171fe71e5517408a4.json diff --git a/node_modules/.cache/babel-loader/68956ed214e411a1af3df08009a03e01.json b/node_modules/.cache/babel-loader/88b133e2e313cd30a8e745c27ac6c36d.json similarity index 100% rename from node_modules/.cache/babel-loader/68956ed214e411a1af3df08009a03e01.json rename to node_modules/.cache/babel-loader/88b133e2e313cd30a8e745c27ac6c36d.json diff --git a/node_modules/.cache/babel-loader/4e6c0378e3479946cd493c49eef59277.json b/node_modules/.cache/babel-loader/88dda885aa3818ae80f7dd5a4d75b882.json similarity index 100% rename from node_modules/.cache/babel-loader/4e6c0378e3479946cd493c49eef59277.json rename to node_modules/.cache/babel-loader/88dda885aa3818ae80f7dd5a4d75b882.json diff --git a/node_modules/.cache/babel-loader/07e3546d2c96f2feaa22daba256b071b.json b/node_modules/.cache/babel-loader/89056729a4d807652656593e53490c86.json similarity index 100% rename from node_modules/.cache/babel-loader/07e3546d2c96f2feaa22daba256b071b.json rename to node_modules/.cache/babel-loader/89056729a4d807652656593e53490c86.json diff --git a/node_modules/.cache/babel-loader/1baa0c86e0251c382c34e73dbcdf2ea6.json b/node_modules/.cache/babel-loader/893a5bd6fcf9186daff6a638013eed52.json similarity index 100% rename from node_modules/.cache/babel-loader/1baa0c86e0251c382c34e73dbcdf2ea6.json rename to node_modules/.cache/babel-loader/893a5bd6fcf9186daff6a638013eed52.json diff --git a/node_modules/.cache/babel-loader/8525ba4056b38186ffa35be75ca16340.json b/node_modules/.cache/babel-loader/89d3a545de44cdb3a452d1f491aed6bc.json similarity index 100% rename from node_modules/.cache/babel-loader/8525ba4056b38186ffa35be75ca16340.json rename to node_modules/.cache/babel-loader/89d3a545de44cdb3a452d1f491aed6bc.json diff --git a/node_modules/.cache/babel-loader/89d7703e660a99fe7bfa3b011ce00ccd.json b/node_modules/.cache/babel-loader/89d7703e660a99fe7bfa3b011ce00ccd.json deleted file mode 100644 index 442d76d4..00000000 --- a/node_modules/.cache/babel-loader/89d7703e660a99fe7bfa3b011ce00ccd.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n console.log(\"riddhi\", this.isLoggedIn);\n var options = this.props.isLoggedIn ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 49,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 54,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 41\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 59,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 60,\n columnNumber: 41\n }\n }, \"Logout\"))))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 73,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 74,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 75,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 76,\n columnNumber: 11\n }\n }, \"Login\"))));\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 84,\n columnNumber: 9\n }\n }, options);\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","console","log","isLoggedIn","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cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKD,KAAL,CAAWG,KAAhE;AAAuE,QAAA,KAAK,EAAC,OAA7E;AAAqF,QAAA,EAAE,EAAC,EAAxF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADA,CADF,CADA,CA3CP;AAqDD,0BACQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIJ,OADJ,CADR;AAKC;;;;EA9D2Bd,S;;AAgE5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n \n console.log(\"riddhi\",this.isLoggedIn);\n const options = this.props.isLoggedIn ? \n \n \n
\n \n \n \n
\n
\n \n \n \n
    \n
  • \n \n Progress\n \n
  • \n \n
  • \n \n Tasks\n \n
  • \n
  • \n \n Simulator\n \n
  • \n
  • \n \n Logout\n \n
  • \n
\n \n \n
\n \n
\n \n :\n \n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n \nreturn (\n
\n {options}\n
\n) \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/109217aa882134995b529206594658bd.json b/node_modules/.cache/babel-loader/8a706d1217e538bee873aa4dfd8434bd.json similarity index 100% rename from node_modules/.cache/babel-loader/109217aa882134995b529206594658bd.json rename to node_modules/.cache/babel-loader/8a706d1217e538bee873aa4dfd8434bd.json diff --git a/node_modules/.cache/babel-loader/545eb5c73967a8a9ce502cef631d7eaa.json b/node_modules/.cache/babel-loader/8a8b8b24d47141a1d5fe3c30b2c6590f.json similarity index 100% rename from node_modules/.cache/babel-loader/545eb5c73967a8a9ce502cef631d7eaa.json rename to node_modules/.cache/babel-loader/8a8b8b24d47141a1d5fe3c30b2c6590f.json diff --git a/node_modules/.cache/babel-loader/8a94a73712acd778bd4e113561aa0567.json b/node_modules/.cache/babel-loader/8a94a73712acd778bd4e113561aa0567.json deleted file mode 100644 index bdd1224d..00000000 --- a/node_modules/.cache/babel-loader/8a94a73712acd778bd4e113561aa0567.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var authenticated = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 25\n }\n }, authenticated ? /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 48,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 53,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 54,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 58,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 59,\n columnNumber: 41\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 63,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 64,\n columnNumber: 41\n }\n }, \"Logout\"))) : /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 72,\n columnNumber: 31\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 73,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 74,\n columnNumber: 33\n }\n }, \"Login\")))))))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","authenticated","props","isLoggedIn","textDecoration","submit","login"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AACN,UAAMC,aAAa,GAAG,KAAKC,KAAL,CAAWC,UAAjC;AAEF,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAQ,QAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD,CAAQ,Q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eAYI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA6C,QAAA,KAAK,EAAC,OAAnD;AAA2D,QAAA,EAAE,EAAC,GAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADJ,CAZJ,eAiBI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKF,KAAL,CAAWG,MAAhE;AAAwE,QAAA,KAAK,EAAC,QAA9E;AAAuF,QAAA,EAAE,EAAC,GAA1F;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBADJ,CAjBJ,CAHU,gBA6BZ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAED,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKF,KAAL,CAAWI,KAAhE;AAAuE,QAAA,KAAK,EAAC,OAA7E;AAAqF,QAAA,EAAE,EAAC,EAAxF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADA,CADF,CA/BN,CANV,CADJ,CADF,CADF,CADF,CADF;AA4DD;;;;EAhE2BhB,S;;AAkE5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const authenticated = this.props.isLoggedIn;\n \n return (\n
\n \n \n \n \n \n \n \n
\n \n )\n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/150fb7369f20d6d6eb7725d366c5680d.json b/node_modules/.cache/babel-loader/8aa22f9a5b0fa7115752e9862bb11fd1.json similarity index 100% rename from node_modules/.cache/babel-loader/150fb7369f20d6d6eb7725d366c5680d.json rename to node_modules/.cache/babel-loader/8aa22f9a5b0fa7115752e9862bb11fd1.json diff --git a/node_modules/.cache/babel-loader/c2854b4177f82f664326786061270021.json b/node_modules/.cache/babel-loader/8aca209ddb1b12b1167a2a1c30edd917.json similarity index 100% rename from node_modules/.cache/babel-loader/c2854b4177f82f664326786061270021.json rename to node_modules/.cache/babel-loader/8aca209ddb1b12b1167a2a1c30edd917.json diff --git a/node_modules/.cache/babel-loader/e20796682a22116ba65992a200b42065.json b/node_modules/.cache/babel-loader/8b03a72a6a2336677671a679d3cc95df.json similarity index 100% rename from node_modules/.cache/babel-loader/e20796682a22116ba65992a200b42065.json rename to node_modules/.cache/babel-loader/8b03a72a6a2336677671a679d3cc95df.json diff --git a/node_modules/.cache/babel-loader/a155b97432e35aae298b3c7033d1bc02.json b/node_modules/.cache/babel-loader/8b04614bd0aaa4eee64ed405fae437f4.json similarity index 100% rename from node_modules/.cache/babel-loader/a155b97432e35aae298b3c7033d1bc02.json rename to node_modules/.cache/babel-loader/8b04614bd0aaa4eee64ed405fae437f4.json diff --git a/node_modules/.cache/babel-loader/8b78964f26b881ec4730bf4c1b5dd1e0.json b/node_modules/.cache/babel-loader/8b78964f26b881ec4730bf4c1b5dd1e0.json deleted file mode 100644 index 24fc1e71..00000000 --- a/node_modules/.cache/babel-loader/8b78964f26b881ec4730bf4c1b5dd1e0.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\nexport var Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 25\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 28\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 48,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 49,\n columnNumber: 28\n }\n }, \"Back\"))))))));\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","textDecoration"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;AAiBA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;AAAA,sBAC3B,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD;AAAQ,IAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACA,oBAAC,MAAD,CAAQ,QAAR;AAAiB,IAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,GAAD;AAAK,IAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACU;AAAK,IAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI;AAAG,IAAA,KAAK,EAAC,OAAT;AAAiB,IAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE;AAAK,IAAA,KAAK,EAAC,MAAX;AAAkB,IAAA,GAAG,EAAEH,MAAvB;AAA+B,IAAA,KAAK,EAAE,MAAtC;AAA8C,IAAA,MAAM,EAAE,MAAtD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IADF,CADJ,CADV,eAMU;AAAK,IAAA,EAAE,EAAC,QAAR;AAAiB,IAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEI,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,UAAnD;AAA8D,IAAA,EAAE,EAAC,WAAjE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBADJ,CADF,eAOE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,QAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aADJ,CAPF,eAYE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,QAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YADJ,CAZF,CADH,CANV,CADJ,CADA,CADF,CAD2B;AAAA,CAAtB","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nexport const Navigationbar = () => (\n \n \n \n \n \n \n \n)"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/8b8a303e07a06cf5efb2dc0923c485ff.json b/node_modules/.cache/babel-loader/8b8a303e07a06cf5efb2dc0923c485ff.json deleted file mode 100644 index 755f5e14..00000000 --- a/node_modules/.cache/babel-loader/8b8a303e07a06cf5efb2dc0923c485ff.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"/**\r\n * Returns the object type of the given payload\r\n *\r\n * @param {*} payload\r\n * @returns {string}\r\n */\nfunction getType(payload) {\n return Object.prototype.toString.call(payload).slice(8, -1);\n}\n/**\r\n * Returns whether the payload is undefined\r\n *\r\n * @param {*} payload\r\n * @returns {payload is undefined}\r\n */\n\n\nfunction isUndefined(payload) {\n return getType(payload) === 'Undefined';\n}\n/**\r\n * Returns whether the payload is null\r\n *\r\n * @param {*} payload\r\n * @returns {payload is null}\r\n */\n\n\nfunction isNull(payload) {\n return getType(payload) === 'Null';\n}\n/**\r\n * Returns whether the payload is a plain JavaScript object (excluding special classes or objects with other prototypes)\r\n *\r\n * @param {*} payload\r\n * @returns {payload is Record}\r\n */\n\n\nfunction isPlainObject(payload) {\n if (getType(payload) !== 'Object') return false;\n return payload.constructor === Object && Object.getPrototypeOf(payload) === Object.prototype;\n}\n/**\r\n * Returns whether the payload is a plain JavaScript object (excluding special classes or objects with other prototypes)\r\n *\r\n * @param {*} payload\r\n * @returns {payload is Record}\r\n */\n\n\nfunction isObject(payload) {\n return isPlainObject(payload);\n}\n/**\r\n * Returns whether the payload is a an empty object (excluding special classes or objects with other prototypes)\r\n *\r\n * @param {*} payload\r\n * @returns {payload is { [K in any]: never }}\r\n */\n\n\nfunction isEmptyObject(payload) {\n return isPlainObject(payload) && Object.keys(payload).length === 0;\n}\n/**\r\n * Returns whether the payload is an any kind of object (including special classes or objects with different prototypes)\r\n *\r\n * @param {*} payload\r\n * @returns {payload is Record}\r\n */\n\n\nfunction isAnyObject(payload) {\n return getType(payload) === 'Object';\n}\n/**\r\n * Returns whether the payload is an object like a type passed in < >\r\n *\r\n * Usage: isObjectLike<{id: any}>(payload) // will make sure it's an object and has an `id` prop.\r\n *\r\n * @template T this must be passed in < >\r\n * @param {*} payload\r\n * @returns {payload is T}\r\n */\n\n\nfunction isObjectLike(payload) {\n return isAnyObject(payload);\n}\n/**\r\n * Returns whether the payload is a function (regular or async)\r\n *\r\n * @param {*} payload\r\n * @returns {payload is AnyFunction}\r\n */\n\n\nfunction isFunction(payload) {\n return typeof payload === \"function\";\n}\n/**\r\n * Returns whether the payload is an array\r\n *\r\n * @param {any} payload\r\n * @returns {payload is any[]}\r\n */\n\n\nfunction isArray(payload) {\n return getType(payload) === 'Array';\n}\n/**\r\n * Returns whether the payload is a an array with at least 1 item\r\n *\r\n * @param {*} payload\r\n * @returns {payload is any[]}\r\n */\n\n\nfunction isFullArray(payload) {\n return isArray(payload) && payload.length > 0;\n}\n/**\r\n * Returns whether the payload is a an empty array\r\n *\r\n * @param {*} payload\r\n * @returns {payload is []}\r\n */\n\n\nfunction isEmptyArray(payload) {\n return isArray(payload) && payload.length === 0;\n}\n/**\r\n * Returns whether the payload is a string\r\n *\r\n * @param {*} payload\r\n * @returns {payload is string}\r\n */\n\n\nfunction isString(payload) {\n return getType(payload) === 'String';\n}\n/**\r\n * Returns whether the payload is a string, BUT returns false for ''\r\n *\r\n * @param {*} payload\r\n * @returns {payload is string}\r\n */\n\n\nfunction isFullString(payload) {\n return isString(payload) && payload !== '';\n}\n/**\r\n * Returns whether the payload is ''\r\n *\r\n * @param {*} payload\r\n * @returns {payload is string}\r\n */\n\n\nfunction isEmptyString(payload) {\n return payload === '';\n}\n/**\r\n * Returns whether the payload is a number (but not NaN)\r\n *\r\n * This will return `false` for `NaN`!!\r\n *\r\n * @param {*} payload\r\n * @returns {payload is number}\r\n */\n\n\nfunction isNumber(payload) {\n return getType(payload) === 'Number' && !isNaN(payload);\n}\n/**\r\n * Returns whether the payload is a boolean\r\n *\r\n * @param {*} payload\r\n * @returns {payload is boolean}\r\n */\n\n\nfunction isBoolean(payload) {\n return getType(payload) === 'Boolean';\n}\n/**\r\n * Returns whether the payload is a regular expression (RegExp)\r\n *\r\n * @param {*} payload\r\n * @returns {payload is RegExp}\r\n */\n\n\nfunction isRegExp(payload) {\n return getType(payload) === 'RegExp';\n}\n/**\r\n * Returns whether the payload is a Map\r\n *\r\n * @param {*} payload\r\n * @returns {payload is Map}\r\n */\n\n\nfunction isMap(payload) {\n return getType(payload) === 'Map';\n}\n/**\r\n * Returns whether the payload is a WeakMap\r\n *\r\n * @param {*} payload\r\n * @returns {payload is WeakMap}\r\n */\n\n\nfunction isWeakMap(payload) {\n return getType(payload) === 'WeakMap';\n}\n/**\r\n * Returns whether the payload is a Set\r\n *\r\n * @param {*} payload\r\n * @returns {payload is Set}\r\n */\n\n\nfunction isSet(payload) {\n return getType(payload) === 'Set';\n}\n/**\r\n * Returns whether the payload is a WeakSet\r\n *\r\n * @param {*} payload\r\n * @returns {payload is WeakSet}\r\n */\n\n\nfunction isWeakSet(payload) {\n return getType(payload) === 'WeakSet';\n}\n/**\r\n * Returns whether the payload is a Symbol\r\n *\r\n * @param {*} payload\r\n * @returns {payload is symbol}\r\n */\n\n\nfunction isSymbol(payload) {\n return getType(payload) === 'Symbol';\n}\n/**\r\n * Returns whether the payload is a Date, and that the date is valid\r\n *\r\n * @param {*} payload\r\n * @returns {payload is Date}\r\n */\n\n\nfunction isDate(payload) {\n return getType(payload) === 'Date' && !isNaN(payload);\n}\n/**\r\n * Returns whether the payload is a Blob\r\n *\r\n * @param {*} payload\r\n * @returns {payload is Blob}\r\n */\n\n\nfunction isBlob(payload) {\n return getType(payload) === 'Blob';\n}\n/**\r\n * Returns whether the payload is a File\r\n *\r\n * @param {*} payload\r\n * @returns {payload is File}\r\n */\n\n\nfunction isFile(payload) {\n return getType(payload) === 'File';\n}\n/**\r\n * Returns whether the payload is a Promise\r\n *\r\n * @param {*} payload\r\n * @returns {payload is Promise}\r\n */\n\n\nfunction isPromise(payload) {\n return getType(payload) === 'Promise';\n}\n/**\r\n * Returns whether the payload is an Error\r\n *\r\n * @param {*} payload\r\n * @returns {payload is Error}\r\n */\n\n\nfunction isError(payload) {\n return getType(payload) === 'Error';\n}\n/**\r\n * Returns whether the payload is literally the value `NaN` (it's `NaN` and also a `number`)\r\n *\r\n * @param {*} payload\r\n * @returns {payload is typeof NaN}\r\n */\n\n\nfunction isNaNValue(payload) {\n return getType(payload) === 'Number' && isNaN(payload);\n}\n/**\r\n * Returns whether the payload is a primitive type (eg. Boolean | Null | Undefined | Number | String | Symbol)\r\n *\r\n * @param {*} payload\r\n * @returns {(payload is boolean | null | undefined | number | string | symbol)}\r\n */\n\n\nfunction isPrimitive(payload) {\n return isBoolean(payload) || isNull(payload) || isUndefined(payload) || isNumber(payload) || isString(payload) || isSymbol(payload);\n}\n/**\r\n * Returns true whether the payload is null or undefined\r\n *\r\n * @param {*} payload\r\n * @returns {(payload is null | undefined)}\r\n */\n\n\nfunction isNullOrUndefined(payload) {\n return isNull(payload) || isUndefined(payload);\n}\n/**\r\n * Does a generic check to check that the given payload is of a given type.\r\n * In cases like Number, it will return true for NaN as NaN is a Number (thanks javascript!);\r\n * It will, however, differentiate between object and null\r\n *\r\n * @template T\r\n * @param {*} payload\r\n * @param {T} type\r\n * @throws {TypeError} Will throw type error if type is an invalid type\r\n * @returns {payload is T}\r\n */\n\n\nfunction isType(payload, type) {\n if (!(type instanceof Function)) {\n throw new TypeError('Type must be a function');\n }\n\n if (!Object.prototype.hasOwnProperty.call(type, 'prototype')) {\n throw new TypeError('Type is not a class');\n } // Classes usually have names (as functions usually have names)\n\n\n var name = type.name;\n return getType(payload) === name || Boolean(payload && payload.constructor === type);\n}\n\nexport { getType, isAnyObject, isArray, isBlob, isBoolean, isDate, isEmptyArray, isEmptyObject, isEmptyString, isError, isFile, isFullArray, isFullString, isFunction, isMap, isNaNValue, isNull, isNullOrUndefined, isNumber, isObject, isObjectLike, isPlainObject, isPrimitive, isPromise, isRegExp, isSet, isString, isSymbol, isType, isUndefined, isWeakMap, isWeakSet };","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/7953fc002904e3bd6f7ec4363a7c40af.json b/node_modules/.cache/babel-loader/8bd6bcf74c1b3ed2baf64214be382749.json similarity index 100% rename from node_modules/.cache/babel-loader/7953fc002904e3bd6f7ec4363a7c40af.json rename to node_modules/.cache/babel-loader/8bd6bcf74c1b3ed2baf64214be382749.json diff --git a/node_modules/.cache/babel-loader/15f4a77aee997a9159d56045e56c33e4.json b/node_modules/.cache/babel-loader/8befcf7c5fb5a516af5e387573c59f80.json similarity index 100% rename from node_modules/.cache/babel-loader/15f4a77aee997a9159d56045e56c33e4.json rename to node_modules/.cache/babel-loader/8befcf7c5fb5a516af5e387573c59f80.json diff --git a/node_modules/.cache/babel-loader/927742c1bf30af8544907eb09e86bd6f.json b/node_modules/.cache/babel-loader/8c193a4068b7187b735fc7afe915d7d7.json similarity index 100% rename from node_modules/.cache/babel-loader/927742c1bf30af8544907eb09e86bd6f.json rename to node_modules/.cache/babel-loader/8c193a4068b7187b735fc7afe915d7d7.json diff --git a/node_modules/.cache/babel-loader/8c23073b703f52891b8738959add1e6d.json b/node_modules/.cache/babel-loader/8c23073b703f52891b8738959add1e6d.json deleted file mode 100644 index ce7ec1f5..00000000 --- a/node_modules/.cache/babel-loader/8c23073b703f52891b8738959add1e6d.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 15\n }\n })), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 226,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 227,\n columnNumber: 19\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 237,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 238,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 239,\n columnNumber: 19\n }\n }, \"Login\")))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 248,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 253,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 254,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 264,\n columnNumber: 16\n }\n }))), options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 272,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 273,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 275,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 282,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE;AAJF,KAOU;AAAA,QAETC,OAFS,GAEEP,KAFF,CAETO,OAFS;AAGhBC,IAAAA,OAAO,CAACC,GAAR,CAAYF,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B,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n\n
\n \n
    \n
  • \n \n
  • \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n \n
\n
    \n
  • \n \n Login\n \n \n
  • \n
\n
\n
\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n
\n \n \n \n
\n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/8c50e9f3bc991eac7eddc02e8999eca4.json b/node_modules/.cache/babel-loader/8c50e9f3bc991eac7eddc02e8999eca4.json deleted file mode 100644 index c579bfe7..00000000 --- a/node_modules/.cache/babel-loader/8c50e9f3bc991eac7eddc02e8999eca4.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nvar Styles = styled.div(_templateObject());\nexport var Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 16\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 28\n }\n }, \"Tasks\")))), \":\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 18\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 53,\n columnNumber: 18\n }\n }))))));\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","Styles","div","Navigationbar","textDecoration"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,IAAMC,MAAM,GAAGD,MAAM,CAACE,GAAV,mBAAZ;AAiBA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;AAAA,sBAC3B,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD;AAAQ,IAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACA,oBAAC,MAAD,CAAQ,QAAR;AAAiB,IAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,GAAD;AAAK,IAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACA;AAAK,IAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI;AAAG,IAAA,KAAK,EAAC,OAAT;AAAiB,IAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACG;AAAO,IAAA,KAAK,EAAE,MAAd;AAAsB,IAAA,MAAM,EAAE,MAA9B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IADH,CADJ,CADA,eAQU;AAAK,IAAA,EAAE,EAAC,QAAR;AAAiB,IAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEC,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,UAAnD;AAA8D,IAAA,EAAE,EAAC,WAAjE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBADJ,CADF,eAOE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,QAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aADJ,CAPF,CADH,CARV,oBA0BS;AAAK,IAAA,EAAE,EAAC,QAAR;AAAiB,IAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IADA,CA1BT,CADJ,CADA,CADF,CAD2B;AAAA,CAAtB","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nexport const Navigationbar = () => (\n \n \n \n \n \n \n \n)"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/38cd435c5ce82f92ec3161eb7ab317c3.json b/node_modules/.cache/babel-loader/8c7712fe12e06916518b0f0f73d7012b.json similarity index 100% rename from node_modules/.cache/babel-loader/38cd435c5ce82f92ec3161eb7ab317c3.json rename to node_modules/.cache/babel-loader/8c7712fe12e06916518b0f0f73d7012b.json diff --git a/node_modules/.cache/babel-loader/8ca07280cea3aaf538152894d2440b36.json b/node_modules/.cache/babel-loader/8ca07280cea3aaf538152894d2440b36.json deleted file mode 100644 index e2aad68c..00000000 --- a/node_modules/.cache/babel-loader/8ca07280cea3aaf538152894d2440b36.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = function Navigationbar() {\n var navbar_options = /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 25\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 28\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 28\n }\n }, \"Simulator\"))))))));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"Navigationbar\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 64,\n columnNumber: 5\n }\n }, _this.state.isAuthenticated ? navbar_options : null);\n};\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","navbar_options","textDecoration","state","isAuthenticated"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;AAkBA,IAAMC,aAAa,GAAG,SAAhBA,aAAgB,GAAM;AAC1B,MAAMC,cAAc,gBAClB,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACA,oBAAC,MAAD;AAAQ,IAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,k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ADJ,CAPF,eAYE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,GAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CAZF,CADH,CANV,CADJ,CADA,CADA,CADF;AAoCA,sBACE;AAAK,IAAA,SAAS,EAAC,eAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACI,KAAI,CAACC,KAAL,CAAWC,eAAX,GACAH,cADA,GAIF,IALF,CADF;AAUD,CA/CD;;AAgDA,eAAeD,aAAf","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nconst Navigationbar = () => {\n const navbar_options = (\n \n \n \n \n \n \n \n );\n return (\n
\n { this.state.isAuthenticated ? (\n navbar_options\n )\n :\n null\n }\n
\n )\n};\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/f9b9c9b6e2e4c5a26e93dce6b9a87e8b.json b/node_modules/.cache/babel-loader/8cdb57472aa29b0a4991988d38d8d65d.json similarity index 100% rename from node_modules/.cache/babel-loader/f9b9c9b6e2e4c5a26e93dce6b9a87e8b.json rename to node_modules/.cache/babel-loader/8cdb57472aa29b0a4991988d38d8d65d.json diff --git a/node_modules/.cache/babel-loader/8aba4e3b9d7095b980156cf7e9d1fc70.json b/node_modules/.cache/babel-loader/8d1a9c30d867b052ce2b4e16d8eb1218.json similarity index 100% rename from node_modules/.cache/babel-loader/8aba4e3b9d7095b980156cf7e9d1fc70.json rename to node_modules/.cache/babel-loader/8d1a9c30d867b052ce2b4e16d8eb1218.json diff --git a/node_modules/.cache/babel-loader/33e2d243ad8402436feffd8948f906f2.json b/node_modules/.cache/babel-loader/8df4ab1d5653d37872fd406a3a921cda.json similarity index 100% rename from node_modules/.cache/babel-loader/33e2d243ad8402436feffd8948f906f2.json rename to node_modules/.cache/babel-loader/8df4ab1d5653d37872fd406a3a921cda.json diff --git a/node_modules/.cache/babel-loader/8e8727bd1c09428f7d4a52822a1b542e.json b/node_modules/.cache/babel-loader/8e8727bd1c09428f7d4a52822a1b542e.json deleted file mode 100644 index ad7d32d8..00000000 --- a/node_modules/.cache/babel-loader/8e8727bd1c09428f7d4a52822a1b542e.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink, Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var isLoggedIn = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 13,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 14,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 41\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 45\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 49\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 45\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 49\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 45\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 49\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 45\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 47\n }\n }, \"Logout\"))))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","Link","styled","header","Navigationbar","isLoggedIn","props","textDecoration","submit"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,EAAiBC,IAAjB,QAA6B,kBAA7B;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;IAEzCC,a;;;;;;;;;;;6BACI;AACN,UAAMC,UAAU,GAAG,KAAKC,KAAL,CAAWD,UAA9B;AAEA,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACY,oBAAC,GAAD;AAAK,QAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAEc;AAAK,QAAA,EAAE,EAAC,QAAR;AAAiB,QAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAEI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEE,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,UAAhD;AAA2D,QAAA,EAAE,EAAC,WAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBADJ,CAFJ,eAQI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,OAAhD;AAAwD,QAAA,EAAE,EAAC,QAA3D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CARJ,eAaI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,OAAhD;AAAwD,QAAA,EAAE,EAAC,GAA3D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADJ,CAbJ,eAkBI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKC,MAA1D;AAAkE,QAAA,KAAK,EAAC,QAAxE;AAAiF,QAAA,EAAE,EAAC,GAApF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBADF,CAlBJ,CADR,CAFd,CADZ,CADF;AAkCH;;;;EAtC2Bb,S;;AAwC5B,eAAeS,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink,Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nclass Navigationbar extends Component { \n render(){\n const isLoggedIn = this.props.isLoggedIn;\n \n return (\n
\n \n \n
\n); \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/bb789d84174568522fd1299185036599.json b/node_modules/.cache/babel-loader/8e9fe750bcf96c4c856edbd3105f829b.json similarity index 100% rename from node_modules/.cache/babel-loader/bb789d84174568522fd1299185036599.json rename to node_modules/.cache/babel-loader/8e9fe750bcf96c4c856edbd3105f829b.json diff --git a/node_modules/.cache/babel-loader/1b7fbab6f50e5475d6ba54abc3621313.json b/node_modules/.cache/babel-loader/8ece08ed3f97bd98b4b4e6e7f6cdffec.json similarity index 100% rename from node_modules/.cache/babel-loader/1b7fbab6f50e5475d6ba54abc3621313.json rename to node_modules/.cache/babel-loader/8ece08ed3f97bd98b4b4e6e7f6cdffec.json diff --git a/node_modules/.cache/babel-loader/eec082ae174cd055f6029d33506a97bf.json b/node_modules/.cache/babel-loader/8eeabad8c4cc47ab2a823fd8b4b90d19.json similarity index 100% rename from node_modules/.cache/babel-loader/eec082ae174cd055f6029d33506a97bf.json rename to node_modules/.cache/babel-loader/8eeabad8c4cc47ab2a823fd8b4b90d19.json diff --git a/node_modules/.cache/babel-loader/8f1b1c04c401ea1e26e41996499c49f4.json b/node_modules/.cache/babel-loader/8f1b1c04c401ea1e26e41996499c49f4.json deleted file mode 100644 index f88ab9ac..00000000 --- a/node_modules/.cache/babel-loader/8f1b1c04c401ea1e26e41996499c49f4.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink, Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var isLoggedIn = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 7\n }\n }, isLoggedIn ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(NavItem, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 41\n }\n }, \"Progress\"))), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 41\n }\n }, \"Simulator\")))))) : null);\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","Link","styled","header","Styles","div","Navigationbar","isLoggedIn","props","textDecoration"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,EAAiBC,IAAjB,QAA6B,kBAA7B;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AACN,UAAMC,UAAU,GAAG,KAAKC,KAAL,CAAWD,UAA9B;AACA,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACAA,UAAU,gBACV,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACQ,oBAAC,GAAD;AAAK,QAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACc;AAAG,QAAA,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AAA;AAAA;AAAA;AAAA,qBADJ,CAbJ,CAJR,CANV,CADR,CADU,GAuCV,IAxCA,CADF;AAgDH;;;;EAnD2Bd,S;;AAqD5B,eAAeW,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink,Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const isLoggedIn = this.props.isLoggedIn;\n return (\n
\n { isLoggedIn ? \n \n \n \n \n :\n null\n }\n \n \n\n
\n); \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/4f6d026bea27706d0b39a3b5b6ced316.json b/node_modules/.cache/babel-loader/8f6c052f3bd472adf06992b0ba5b5cf1.json similarity index 100% rename from node_modules/.cache/babel-loader/4f6d026bea27706d0b39a3b5b6ced316.json rename to node_modules/.cache/babel-loader/8f6c052f3bd472adf06992b0ba5b5cf1.json diff --git a/node_modules/.cache/babel-loader/c7f9c53dbe730d213564cb21a6146388.json b/node_modules/.cache/babel-loader/8f7b2e495d1c2ff1adb2471283e3b6c8.json similarity index 100% rename from node_modules/.cache/babel-loader/c7f9c53dbe730d213564cb21a6146388.json rename to node_modules/.cache/babel-loader/8f7b2e495d1c2ff1adb2471283e3b6c8.json diff --git a/node_modules/.cache/babel-loader/ee5240c9a9da777016e5554a9054d809.json b/node_modules/.cache/babel-loader/8fb07042beaec94b518bb6b80fa60a01.json similarity index 100% rename from node_modules/.cache/babel-loader/ee5240c9a9da777016e5554a9054d809.json rename to node_modules/.cache/babel-loader/8fb07042beaec94b518bb6b80fa60a01.json diff --git a/node_modules/.cache/babel-loader/56b99db333e3534c45a63fb12de65fed.json b/node_modules/.cache/babel-loader/8fffa7f5a624ffa2e54ddb8dc9b8c8ab.json similarity index 100% rename from node_modules/.cache/babel-loader/56b99db333e3534c45a63fb12de65fed.json rename to node_modules/.cache/babel-loader/8fffa7f5a624ffa2e54ddb8dc9b8c8ab.json diff --git a/node_modules/.cache/babel-loader/901d4977df223c9b70f5cf05aa9946d9.json b/node_modules/.cache/babel-loader/901d4977df223c9b70f5cf05aa9946d9.json deleted file mode 100644 index 645ee6da..00000000 --- a/node_modules/.cache/babel-loader/901d4977df223c9b70f5cf05aa9946d9.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var authenticated = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 25\n }\n }, authenticated ? /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 53,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 58,\n columnNumber: 41\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 63,\n columnNumber: 41\n }\n }, \"Logout\"))) : /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 71,\n columnNumber: 31\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 72,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 73,\n columnNumber: 33\n }\n }, \"Login\")))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","authenticated","props","isLoggedIn","textDecoration","submit","login"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AACN,UAAMC,aAAa,GAAG,KAAKC,KAAL,CAAWC,UAAjC;AAEF,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAKU;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACc;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAAA,KAAK,EAAC,MAAX;AAAkB,QAAA,GAAG,EAAEN,MAAvB;AAA+B,QAAA,KAAK,EAAE,MAAtC;AAA8C,QAAA,MAAM,EAAE,MAAtD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CADd,CALV,eAUoB;AAAK,QAAA,EAAE,EAAC,QAAR;AAAiB,QAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAEKI,aAAa,gBAEV;AAAA;AAAA;AAAA;AAAA;AAAA;A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AED,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKF,KAAL,CAAWI,KAAhE;AAAuE,QAAA,KAAK,EAAC,OAA7E;AAAqF,QAAA,EAAE,EAAC,EAAxF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADA,CADF,CA9BN,CAVpB,CADF;AA2DD;;;;EA/D2BhB,S;;AAiE5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const authenticated = this.props.isLoggedIn;\n \n return (\n
\n \n \n \n \n
\n \n \n \n
\n
\n \n {authenticated ? ( \n \n
    \n
  • \n \n Progress\n \n
  • \n \n
  • \n \n Tasks\n \n
  • \n
  • \n \n Simulator\n \n
  • \n
  • \n \n Logout\n \n
  • \n
\n )\n :\n (\n
    \n
  • \n \n Login\n \n
  • \n
\n )\n }\n \n
\n \n \n \n \n
\n \n )\n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/9a38600ab3b14c0159b5f3f42084252b.json b/node_modules/.cache/babel-loader/90dd2dd421d1301d6b075fd40718ad75.json similarity index 100% rename from node_modules/.cache/babel-loader/9a38600ab3b14c0159b5f3f42084252b.json rename to node_modules/.cache/babel-loader/90dd2dd421d1301d6b075fd40718ad75.json diff --git a/node_modules/.cache/babel-loader/6d6cc74dbe04885b16c1d92663a37730.json b/node_modules/.cache/babel-loader/90eff54ea380f34d76229cb559a7539a.json similarity index 100% rename from node_modules/.cache/babel-loader/6d6cc74dbe04885b16c1d92663a37730.json rename to node_modules/.cache/babel-loader/90eff54ea380f34d76229cb559a7539a.json diff --git a/node_modules/.cache/babel-loader/4f289fbb85be6fdb4c3e553691f21b78.json b/node_modules/.cache/babel-loader/9105aa22867e6f2284a6b7c3ef7f0173.json similarity index 100% rename from node_modules/.cache/babel-loader/4f289fbb85be6fdb4c3e553691f21b78.json rename to node_modules/.cache/babel-loader/9105aa22867e6f2284a6b7c3ef7f0173.json diff --git a/node_modules/.cache/babel-loader/9150ec9fb8a64dfa4d66e721190ab259.json b/node_modules/.cache/babel-loader/91ab1d81e65b81abc5cd831422239a24.json similarity index 100% rename from node_modules/.cache/babel-loader/9150ec9fb8a64dfa4d66e721190ab259.json rename to node_modules/.cache/babel-loader/91ab1d81e65b81abc5cd831422239a24.json diff --git a/node_modules/.cache/babel-loader/921c1418ba6f4d2103fa2b639807cf4e.json b/node_modules/.cache/babel-loader/921c1418ba6f4d2103fa2b639807cf4e.json deleted file mode 100644 index 3febf1e6..00000000 --- a/node_modules/.cache/babel-loader/921c1418ba6f4d2103fa2b639807cf4e.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 229,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 230,\n columnNumber: 28\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 242,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 277,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 278,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 281,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 282,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 285,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 294,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE;AAJF,KAOU;AAAA,QAETC,OAFS,GAEEP,KAFF,CAETO,OAFS;AAGhB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S,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAbe,eAiBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAjBe,CAAjB;AAwBA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIkF,QADJ,CAFF;AAOH;;;;EAzRe9F,S;;AA2RlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n\n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n \n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/bb707da5dc29cc3df6bc77e52eed248e.json b/node_modules/.cache/babel-loader/922d0f9462aa924603eec1ada65a44ce.json similarity index 100% rename from node_modules/.cache/babel-loader/bb707da5dc29cc3df6bc77e52eed248e.json rename to node_modules/.cache/babel-loader/922d0f9462aa924603eec1ada65a44ce.json diff --git a/node_modules/.cache/babel-loader/81f51e164946fd612a4fd47505a9d3dd.json b/node_modules/.cache/babel-loader/923eff222436826ff01c252139bb86ae.json similarity index 100% rename from node_modules/.cache/babel-loader/81f51e164946fd612a4fd47505a9d3dd.json rename to node_modules/.cache/babel-loader/923eff222436826ff01c252139bb86ae.json diff --git a/node_modules/.cache/babel-loader/92741dc8b4a9b42e1dc230844bccaad7.json b/node_modules/.cache/babel-loader/92741dc8b4a9b42e1dc230844bccaad7.json deleted file mode 100644 index ec48272d..00000000 --- a/node_modules/.cache/babel-loader/92741dc8b4a9b42e1dc230844bccaad7.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var authenticated = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 25\n }\n }, authenticated ? /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 53,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 58,\n columnNumber: 41\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 63,\n columnNumber: 41\n }\n }, \"Logout\"))) : /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 71,\n columnNumber: 31\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 72,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 73,\n columnNumber: 33\n }\n }, \"Login\"))))))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","authenticated","props","isLoggedIn","textDecoration","submit","login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OAAD;AAAS,QAAA,KAAK,EAAE;AAAED,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKF,KAAL,CAAWI,KAAhE;AAAuE,QAAA,KAAK,EAAC,OAA7E;AAAqF,QAAA,EAAE,EAAC,EAAxF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADA,CADF,CA9BN,CANV,CAFN,CADF,CADF,CADF;AA2DD;;;;EA/D2BhB,S;;AAiE5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const authenticated = this.props.isLoggedIn;\n \n return (\n
\n \n \n \n \n \n \n \n
\n \n )\n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/27021d2f199b0de9a376885dafdad86f.json b/node_modules/.cache/babel-loader/92a37834545d879bcb074056195bc724.json similarity index 100% rename from node_modules/.cache/babel-loader/27021d2f199b0de9a376885dafdad86f.json rename to node_modules/.cache/babel-loader/92a37834545d879bcb074056195bc724.json diff --git a/node_modules/.cache/babel-loader/d50aaefde09dd4cf41b164f7c37a1fa6.json b/node_modules/.cache/babel-loader/92db46674ed54e4be6cb305fea0f8211.json similarity index 100% rename from node_modules/.cache/babel-loader/d50aaefde09dd4cf41b164f7c37a1fa6.json rename to node_modules/.cache/babel-loader/92db46674ed54e4be6cb305fea0f8211.json diff --git a/node_modules/.cache/babel-loader/93036b11f95cb1833d294629b166d875.json b/node_modules/.cache/babel-loader/93036b11f95cb1833d294629b166d875.json deleted file mode 100644 index 4c3507a0..00000000 --- a/node_modules/.cache/babel-loader/93036b11f95cb1833d294629b166d875.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport Navigationbar from './Navigationbar';\nimport './Simulator.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(\"div\", {\n class: \"sim\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"http://localhost:4200\",\n target: \"top_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 13\n }\n }, \" Console \"), /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"http://localhost:8888\",\n target: \"bottom_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 13\n }\n }, \" Simulator \"), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"top_\",\n src: \"\",\n width: \"100%\",\n height: \"375px\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"bottom_\",\n src: \"\",\n width: \"100%\",\n height: \"375px\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 15\n }\n })));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Navigationbar","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,S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C,OAAlD;AAA0D,QAAA,WAAW,EAAC,GAAtE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALF,CAFF,CADF;AAYD;;;;EA1BiBhB,S;;AAAlBW,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAEV,UAAU,CAACD,OAAD,CAAV,CAAoBY;AADd,C;AA4BvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport Navigationbar from './Navigationbar';\nimport './Simulator.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n \n
\n Console \n Simulator \n \n \n \n
\n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/c1500a64890ca17622949530eb7e075c.json b/node_modules/.cache/babel-loader/938c6e1c07e0119c5ea4dcde4330272b.json similarity index 100% rename from node_modules/.cache/babel-loader/c1500a64890ca17622949530eb7e075c.json rename to node_modules/.cache/babel-loader/938c6e1c07e0119c5ea4dcde4330272b.json diff --git a/node_modules/.cache/babel-loader/18cd279d04017674daf49f1488a61c5e.json b/node_modules/.cache/babel-loader/93c30f6b210213682d28645bc98d8a76.json similarity index 100% rename from node_modules/.cache/babel-loader/18cd279d04017674daf49f1488a61c5e.json rename to node_modules/.cache/babel-loader/93c30f6b210213682d28645bc98d8a76.json diff --git a/node_modules/.cache/babel-loader/5ff5959faae1fb79ee0d78b77eceb809.json b/node_modules/.cache/babel-loader/93d8f5d036e7025d7dc305c23c26bfb1.json similarity index 100% rename from node_modules/.cache/babel-loader/5ff5959faae1fb79ee0d78b77eceb809.json rename to node_modules/.cache/babel-loader/93d8f5d036e7025d7dc305c23c26bfb1.json diff --git a/node_modules/.cache/babel-loader/93de526e1381026b87a3058e91a7a223.json b/node_modules/.cache/babel-loader/93de526e1381026b87a3058e91a7a223.json deleted file mode 100644 index f65ded25..00000000 --- a/node_modules/.cache/babel-loader/93de526e1381026b87a3058e91a7a223.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 225,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 226,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 248,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 252,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 253,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 273,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 274,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 277,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 285,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAC/C,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAwC;;AACxC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA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A;AAAA,SACIkF,QADJ,CADF;AAMH;;;;EAhRe9F,S;;AAkRlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n \n
\n
    \n \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/b8b7267d31ac50c792c0ee1b33054e7a.json b/node_modules/.cache/babel-loader/93feec2dd36122ec1af0df779d175e8b.json similarity index 100% rename from node_modules/.cache/babel-loader/b8b7267d31ac50c792c0ee1b33054e7a.json rename to node_modules/.cache/babel-loader/93feec2dd36122ec1af0df779d175e8b.json diff --git a/node_modules/.cache/babel-loader/583562c5cfd674bfe3a691340e82d305.json b/node_modules/.cache/babel-loader/94494c578d33eed4d2856cbe7ae758a4.json similarity index 100% rename from node_modules/.cache/babel-loader/583562c5cfd674bfe3a691340e82d305.json rename to node_modules/.cache/babel-loader/94494c578d33eed4d2856cbe7ae758a4.json diff --git a/node_modules/.cache/babel-loader/bfd9b7e73e051f591696f10e2cb26d1d.json b/node_modules/.cache/babel-loader/94d70339ff53e50a34ba78f91d334424.json similarity index 100% rename from node_modules/.cache/babel-loader/bfd9b7e73e051f591696f10e2cb26d1d.json rename to node_modules/.cache/babel-loader/94d70339ff53e50a34ba78f91d334424.json diff --git a/node_modules/.cache/babel-loader/f579e5afeec69a275498bab36fea68f4.json b/node_modules/.cache/babel-loader/96235097b3f4b68138115526d105e7d8.json similarity index 100% rename from node_modules/.cache/babel-loader/f579e5afeec69a275498bab36fea68f4.json rename to node_modules/.cache/babel-loader/96235097b3f4b68138115526d105e7d8.json diff --git a/node_modules/.cache/babel-loader/9631ad19d9c330c5d5a3692c34949152.json b/node_modules/.cache/babel-loader/9631ad19d9c330c5d5a3692c34949152.json deleted file mode 100644 index 3854dc8e..00000000 --- a/node_modules/.cache/babel-loader/9631ad19d9c330c5d5a3692c34949152.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\nvar options = this.state.isAuthenticated ? Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 25\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 28\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 28\n }\n }, \"Simulator\"))))))));\n} : null;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","options","state","isAuthenticated","Navigationbar","textDecoration"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;AAiBA,IAAMC,OAAO,GAAG,KAAKC,KAAL,CAAWC,eAAX,GACbC,aAAa,GAAG;AAAA,sBAEjB,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD;AAAQ,IAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACA,oBAAC,MAAD,CAAQ,QAAR;AAAiB,IAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,GAAD;AAAK,IAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACU;AAAK,IAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI;AAAG,IAAA,KAAK,EAAC,OAAT;AAAiB,IAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE;AAAK,IAAA,KAAK,EAAC,MAAX;AAAkB,IAAA,GAAG,EAAEN,MAAvB;AAA+B,IAAA,KAAK,EAAE,MAAtC;AAA8C,IAAA,MAAM,EAAE,MAAtD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IADF,CADJ,CADV,eAMU;AAAK,IAAA,EAAE,EAAC,QAAR;AAAiB,IAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEO,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,UAAnD;AAA8D,IAAA,EAAE,EAAC,WAAjE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBADJ,CADF,eAOE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,QAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aADJ,CAPF,eAYE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,GAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CAZF,CADH,CANV,CADJ,CADA,CADF,CAFiB;AAAA,CADH,GAuChB,IAvCA","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nconst options = this.state.isAuthenticated ?\n Navigationbar = () => (\n \n \n \n \n \n \n \n \n)\n:\nnull"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/23995c9b5a98a4520e2161d13f4dbaa5.json b/node_modules/.cache/babel-loader/967559056c476ebdd48cf621251853da.json similarity index 100% rename from node_modules/.cache/babel-loader/23995c9b5a98a4520e2161d13f4dbaa5.json rename to node_modules/.cache/babel-loader/967559056c476ebdd48cf621251853da.json diff --git a/node_modules/.cache/babel-loader/925c500c8adbec5565a0020ea59a97db.json b/node_modules/.cache/babel-loader/968ef509daca7c5e972e5eec9ec2dca2.json similarity index 100% rename from node_modules/.cache/babel-loader/925c500c8adbec5565a0020ea59a97db.json rename to node_modules/.cache/babel-loader/968ef509daca7c5e972e5eec9ec2dca2.json diff --git a/node_modules/.cache/babel-loader/f13b1f350254da6200c9ab3742226134.json b/node_modules/.cache/babel-loader/96b4c3e050f44669cefa7390b975eead.json similarity index 100% rename from node_modules/.cache/babel-loader/f13b1f350254da6200c9ab3742226134.json rename to node_modules/.cache/babel-loader/96b4c3e050f44669cefa7390b975eead.json diff --git a/node_modules/.cache/babel-loader/9723db98d6bfeabece96cca3dda27458.json b/node_modules/.cache/babel-loader/9723db98d6bfeabece96cca3dda27458.json deleted file mode 100644 index 05613e60..00000000 --- a/node_modules/.cache/babel-loader/9723db98d6bfeabece96cca3dda27458.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport Navigationbar from './components/Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 228,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 229,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 242,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 19\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 278,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 282,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 283,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 286,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 294,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 295,\n columnNumber: 11\n }\n }), mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,OAAOC,aAAP,MAA0B,4BAA1B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAC/C,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAwC;;AACxC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,M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AAAkC,QAAA,MAAM,EAAE,MAA1C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADH,CADJ,EAIKgF,OAJL,CADa,EAQZE,SARY,eAUb;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAEjF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAVa,eAcb;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAda,eAkBb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAlBa,CAAjB;AAyBE,0BACE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,EAEIkF,QAFJ,CADF;AASH;;;;EA5Re9F,S;;AA8RlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport Navigationbar from './components/Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n
\n \n {mainBody}\n
\n \n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/9e04d4b4d3395999b2a8c578077ccb17.json b/node_modules/.cache/babel-loader/97873d89ceed5e40eae5b174690cbb9b.json similarity index 100% rename from node_modules/.cache/babel-loader/9e04d4b4d3395999b2a8c578077ccb17.json rename to node_modules/.cache/babel-loader/97873d89ceed5e40eae5b174690cbb9b.json diff --git a/node_modules/.cache/babel-loader/97b7a10d58a03f36af4baeaf26790c7e.json b/node_modules/.cache/babel-loader/97b7a10d58a03f36af4baeaf26790c7e.json deleted file mode 100644 index b797fc5f..00000000 --- a/node_modules/.cache/babel-loader/97b7a10d58a03f36af4baeaf26790c7e.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"function areInputsEqual(newInputs, lastInputs) {\n if (newInputs.length !== lastInputs.length) {\n return false;\n }\n\n for (var i = 0; i < newInputs.length; i++) {\n if (newInputs[i] !== lastInputs[i]) {\n return false;\n }\n }\n\n return true;\n}\n\nfunction memoizeOne(resultFn, isEqual) {\n if (isEqual === void 0) {\n isEqual = areInputsEqual;\n }\n\n var lastThis;\n var lastArgs = [];\n var lastResult;\n var calledOnce = false;\n\n function memoized() {\n var newArgs = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n newArgs[_i] = arguments[_i];\n }\n\n if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {\n return lastResult;\n }\n\n lastResult = resultFn.apply(this, newArgs);\n calledOnce = true;\n lastThis = this;\n lastArgs = newArgs;\n return lastResult;\n }\n\n return memoized;\n}\n\nexport default memoizeOne;","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/14681f8d4fb858e1a10c40fb2d14a943.json b/node_modules/.cache/babel-loader/97fcfc6fd0872f1bb6e610335dcfc6d3.json similarity index 100% rename from node_modules/.cache/babel-loader/14681f8d4fb858e1a10c40fb2d14a943.json rename to node_modules/.cache/babel-loader/97fcfc6fd0872f1bb6e610335dcfc6d3.json diff --git a/node_modules/.cache/babel-loader/f93a59dd4b5dd320bb9011497c54f452.json b/node_modules/.cache/babel-loader/981c4dda8db05d9bd56109f4a4e6e3cf.json similarity index 100% rename from node_modules/.cache/babel-loader/f93a59dd4b5dd320bb9011497c54f452.json rename to node_modules/.cache/babel-loader/981c4dda8db05d9bd56109f4a4e6e3cf.json diff --git a/node_modules/.cache/babel-loader/59974ac2314efcee16292900e4e39c30.json b/node_modules/.cache/babel-loader/981e2ed5155d655a76c8cbf54090f5dc.json similarity index 100% rename from node_modules/.cache/babel-loader/59974ac2314efcee16292900e4e39c30.json rename to node_modules/.cache/babel-loader/981e2ed5155d655a76c8cbf54090f5dc.json diff --git a/node_modules/.cache/babel-loader/985efec65f56d52e7bfbe3a110b60dd8.json b/node_modules/.cache/babel-loader/985efec65f56d52e7bfbe3a110b60dd8.json deleted file mode 100644 index 8cef97f4..00000000 --- a/node_modules/.cache/babel-loader/985efec65f56d52e7bfbe3a110b60dd8.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 19\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 19\n }\n }, \"Login\")))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 247,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 252,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 16\n }\n }))), options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 267,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 272,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,IAAP,MAAi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AAAK,QAAA,GAAG,EAAEjF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CARe,eAWf;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAXe,eAcf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAde,CAAjB;AAmBA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIkF,QADJ,CAFF;AAOH;;;;EA3Qe9F,S;;AA6QlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n\n
\n \n
    \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n \n
\n
    \n
  • \n \n Login\n \n \n
  • \n
\n
\n
\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n
\n \n \n \n
\n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/7c56a833708e3f0b318b843a3604f1e8.json b/node_modules/.cache/babel-loader/986a502239f1260a15a83a2f6e88de9a.json similarity index 100% rename from node_modules/.cache/babel-loader/7c56a833708e3f0b318b843a3604f1e8.json rename to node_modules/.cache/babel-loader/986a502239f1260a15a83a2f6e88de9a.json diff --git a/node_modules/.cache/babel-loader/897b387d504e86ca6547e25c6188c28b.json b/node_modules/.cache/babel-loader/987e22980f885e0451aab0a512d9f218.json similarity index 100% rename from node_modules/.cache/babel-loader/897b387d504e86ca6547e25c6188c28b.json rename to node_modules/.cache/babel-loader/987e22980f885e0451aab0a512d9f218.json diff --git a/node_modules/.cache/babel-loader/98824d0ea60939d7212edfec7058e1f4.json b/node_modules/.cache/babel-loader/98824d0ea60939d7212edfec7058e1f4.json deleted file mode 100644 index fbe969b0..00000000 --- a/node_modules/.cache/babel-loader/98824d0ea60939d7212edfec7058e1f4.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"\"use strict\";\n\nvar _toConsumableArray = require(\"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/toConsumableArray\");\n\nvar _utils = _interopRequireWildcard(require(\"./utils\"));\n\nvar _placeholders = require(\"./placeholders\");\n\nfunction _getRequireWildcardCache() {\n if (typeof WeakMap !== \"function\") return null;\n var cache = new WeakMap();\n\n _getRequireWildcardCache = function _getRequireWildcardCache() {\n return cache;\n };\n\n return cache;\n}\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n }\n\n if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") {\n return {\n default: obj\n };\n }\n\n var cache = _getRequireWildcardCache();\n\n if (cache && cache.has(obj)) {\n return cache.get(obj);\n }\n\n var newObj = {};\n var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;\n\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;\n\n if (desc && (desc.get || desc.set)) {\n Object.defineProperty(newObj, key, desc);\n } else {\n newObj[key] = obj[key];\n }\n }\n }\n\n newObj.default = obj;\n\n if (cache) {\n cache.set(obj, newObj);\n }\n\n return newObj;\n}\n\n(0, _utils.default)(\"Noop\", {\n visitor: []\n});\n(0, _utils.default)(\"Placeholder\", {\n visitor: [],\n builder: [\"expectedNode\", \"name\"],\n fields: {\n name: {\n validate: (0, _utils.assertNodeType)(\"Identifier\")\n },\n expectedNode: {\n validate: (0, _utils.assertOneOf).apply(void 0, _toConsumableArray(_placeholders.PLACEHOLDERS))\n }\n }\n});\n(0, _utils.default)(\"V8IntrinsicIdentifier\", {\n builder: [\"name\"],\n fields: {\n name: {\n validate: (0, _utils.assertValueType)(\"string\")\n }\n }\n});","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/73274c8279f4e4a665d3b77e6864b94a.json b/node_modules/.cache/babel-loader/98bcf27385134c7c214f14bd3a72264e.json similarity index 100% rename from node_modules/.cache/babel-loader/73274c8279f4e4a665d3b77e6864b94a.json rename to node_modules/.cache/babel-loader/98bcf27385134c7c214f14bd3a72264e.json diff --git a/node_modules/.cache/babel-loader/98cbeb76b26b2eade86ca437fc8161e1.json b/node_modules/.cache/babel-loader/98cbeb76b26b2eade86ca437fc8161e1.json deleted file mode 100644 index e6f23007..00000000 --- a/node_modules/.cache/babel-loader/98cbeb76b26b2eade86ca437fc8161e1.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var authenticated = this.props.isLoggedIn;\n var options = authenticated ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 41\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 61,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 41\n }\n }, \"Logout\")))))))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 77,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 78,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 79,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 80,\n columnNumber: 11\n }\n }, \"Login\"))));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 88,\n columnNumber: 9\n }\n }, options);\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","authenticated","props","isLoggedIn","options","textDecoration","submit","login"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AACN,UAAMC,aAAa,GAAG,KAAKC,KAAL,CAAWC,UAAjC;AAEH,UAAMC,OAAO,GAAGH,aAAa,gBACxB,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAQ,QAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD,CAAQ,QAAR;AAAiB,QAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,GAAD;AAAK,QAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACc;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAAA,KAAK,EAAC,MAAX;AAAkB,QAAA,GAAG,EAAEJ,MAAvB;AAA+B,QAAA,KAAK,EAAE,MAAtC;AAA8C,QAAA,MAAM,EAAE,MAAtD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,C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,CAjBJ,CAJR,CANV,CADJ,CADF,CADF,CADwB,gBA+CtB;AAAK,QAAA,EAAE,EAAC,QAAR;AAAiB,QAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAED,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKH,KAAL,CAAWK,KAAhE;AAAuE,QAAA,KAAK,EAAC,OAA7E;AAAqF,QAAA,EAAE,EAAC,EAAxF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADA,CADF,CADA,CA/CP;AAyDD,0BACQ;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIH,OADJ,CADR;AAKC;;;;EAlE2Bd,S;;AAoE5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const authenticated = this.props.isLoggedIn;\n \n const options = authenticated ? \n \n \n \n \n \n \n \n \n :\n \n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n \nreturn (\n
\n {options}\n
\n) \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/6b733225d2819abfe7792267890709b1.json b/node_modules/.cache/babel-loader/99b49515423645d53ed2e2952e7decd1.json similarity index 100% rename from node_modules/.cache/babel-loader/6b733225d2819abfe7792267890709b1.json rename to node_modules/.cache/babel-loader/99b49515423645d53ed2e2952e7decd1.json diff --git a/node_modules/.cache/babel-loader/5eceb7c1a6080b9af0fcb95b74dbddb3.json b/node_modules/.cache/babel-loader/99ee30bc9a18975f55898193ccbc1177.json similarity index 100% rename from node_modules/.cache/babel-loader/5eceb7c1a6080b9af0fcb95b74dbddb3.json rename to node_modules/.cache/babel-loader/99ee30bc9a18975f55898193ccbc1177.json diff --git a/node_modules/.cache/babel-loader/3393fc7a7e5576d15af3993e53614644.json b/node_modules/.cache/babel-loader/9a3c4d97d96ce32e693d022972495218.json similarity index 100% rename from node_modules/.cache/babel-loader/3393fc7a7e5576d15af3993e53614644.json rename to node_modules/.cache/babel-loader/9a3c4d97d96ce32e693d022972495218.json diff --git a/node_modules/.cache/babel-loader/8a741a8d1e1104c13c428f83a0afe7ed.json b/node_modules/.cache/babel-loader/9a3e4134052b255ae670771982f96111.json similarity index 100% rename from node_modules/.cache/babel-loader/8a741a8d1e1104c13c428f83a0afe7ed.json rename to node_modules/.cache/babel-loader/9a3e4134052b255ae670771982f96111.json diff --git a/node_modules/.cache/babel-loader/9a5b95eda927958b7ba129a940ecbd28.json b/node_modules/.cache/babel-loader/9a5b95eda927958b7ba129a940ecbd28.json deleted file mode 100644 index 44b6923f..00000000 --- a/node_modules/.cache/babel-loader/9a5b95eda927958b7ba129a940ecbd28.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink, Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var isLoggedIn = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 48,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 53,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 54,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 58,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 59,\n columnNumber: 41\n }\n }, \"Simulator\")))))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","Link","styled","header","Styles","div","Navigationbar","isLoggedIn","props","textDecoration"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,EAAiBC,IAAjB,QAA6B,kBAA7B;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AACN,UAAMC,UAAU,GAAG,KAAKC,KAAL,CAAWD,UAA9B;AAEA,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAGA,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACQ,oBAAC,GAAD;AAAK,QAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACc;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAAA,KAAK,EAAC,MAAX;AAAkB,QAAA,GAAG,EAAEJ,MAAvB;AAA+B,QAAA,KAAK,EAAE,MAAtC;AAA8C,QAAA,MAAM,EAAE,MAAtD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CADd,CADA,eAMU;AAAK,QAAA,EAAE,EAAC,QAAR;AAAiB,QAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAIQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAEI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEM,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,UAAhD;AAA2D,QAAA,EAAE,EAAC,WAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBADJ,CAFJ,eAQI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,OAAhD;AAAwD,QAAA,EAAE,EAAC,QAA3D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CARJ,eAaI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,OAAhD;AAAwD,QAAA,EAAE,EAAC,GAA3D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADJ,CAbJ,CAJR,CANV,CADR,CAHA,CADF;AA+CH;;;;EAnD2Bd,S;;AAqD5B,eAAeW,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink,Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const isLoggedIn = this.props.isLoggedIn;\n \n return (\n
\n \n \n \n \n \n \n \n \n \n\n
\n); \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/a1b289735bf1335b0d0e2b806d5d6dba.json b/node_modules/.cache/babel-loader/9a5e4c5ad4e818650c1c18dd3af01545.json similarity index 100% rename from node_modules/.cache/babel-loader/a1b289735bf1335b0d0e2b806d5d6dba.json rename to node_modules/.cache/babel-loader/9a5e4c5ad4e818650c1c18dd3af01545.json diff --git a/node_modules/.cache/babel-loader/9a8a835d4cdf154ddd7e48859f266d4f.json b/node_modules/.cache/babel-loader/9a8a835d4cdf154ddd7e48859f266d4f.json deleted file mode 100644 index 4801e2ab..00000000 --- a/node_modules/.cache/babel-loader/9a8a835d4cdf154ddd7e48859f266d4f.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/NavigationBar.js\";\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\n\nvar NavigationBar = /*#__PURE__*/function (_Component) {\n _inherits(NavigationBar, _Component);\n\n function NavigationBar() {\n _classCallCheck(this, NavigationBar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(NavigationBar).apply(this, arguments));\n }\n\n _createClass(NavigationBar, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 10,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 11,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Brand, {\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 12,\n columnNumber: 11\n }\n }, \"Tutorial\"), /*#__PURE__*/React.createElement(Navbar.Toggle, {\n \"aria-controls\": \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 13,\n columnNumber: 11\n }\n }), /*#__PURE__*/React.createElement(Form, {\n className: \"form-center\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 14,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(FormControl, {\n type: \"text\",\n placeholder: \"Search\",\n className: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(Nav.Item, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 25\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(Nav.Item, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/about\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 25\n }\n }, \"Tasks\"))))));\n }\n }]);\n\n return NavigationBar;\n}(Component);\n\nexport default NavigationBar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/NavigationBar.js"],"names":["React","Nav","Navbar","Form","FormControl","styled","NavigationBar","Component"],"mappings":";;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,OAAOC,MAAP,MAAmB,mBAAnB;;IAIMC,a;;;;;;;;;;;6BACO;AACP,0BACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA,oBAAC,MAAD;AAAQ,QAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD,CAAQ,KAAR;AAAc,QAAA,IAAI,EAAC,GAAnB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBADF,eAEE,oBAAC,MAAD,CAAQ,MAAR;AAAe,yBAAc,kBAA7B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAFF,eAGE,oBAAC,IAAD;AAAM,QAAA,SAAS,EAAC,aAAhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,WAAD;AAAa,QAAA,IAAI,EAAC,MAAlB;AAAyB,QAAA,WAAW,EAAC,QAArC;AAA8C,QAAA,SAAS,EAAC,EAAxD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CAHF,eAME,oBAAC,MAAD,CAAQ,QAAR;AAAiB,QAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,GAAD;AAAK,QAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,GAAD,CAAK,IAAL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAU,oBAAC,GAAD,CAAK,IAAL;AAAU,QAAA,IAAI,EAAC,GAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAV,CADF,eAEE,oBAAC,GAAD,CAAK,IAAL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAU,oBAAC,GAAD,CAAK,IAAL;AAAU,QAAA,IAAI,EAAC,QAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAV,CAFF,CADF,CANF,CADA,CADF;AAiBD;;;;EAnBuBC,S;;AAsB5B,eAAeD,aAAf","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\n\n \n\nclass NavigationBar extends Component{\n render() {\n return (\n \n \n Tutorial\n \n
\n \n \n \n \n \n
\n
\n );\n }\n }\n \nexport default NavigationBar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/12ee1524f17ed358057f2c01b8b16bd3.json b/node_modules/.cache/babel-loader/9aa401e5e2d11032900770b85747fd16.json similarity index 100% rename from node_modules/.cache/babel-loader/12ee1524f17ed358057f2c01b8b16bd3.json rename to node_modules/.cache/babel-loader/9aa401e5e2d11032900770b85747fd16.json diff --git a/node_modules/.cache/babel-loader/0f60de50c10d010c1ba8d0ab1dcee159.json b/node_modules/.cache/babel-loader/9b3b436142d95d0be0460e14dcaa1d7c.json similarity index 100% rename from node_modules/.cache/babel-loader/0f60de50c10d010c1ba8d0ab1dcee159.json rename to node_modules/.cache/babel-loader/9b3b436142d95d0be0460e14dcaa1d7c.json diff --git a/node_modules/.cache/babel-loader/f181689a1b7a646349a3d6a3eaaeed79.json b/node_modules/.cache/babel-loader/9b762b9a3a536efe6a2a17984a29f2de.json similarity index 100% rename from node_modules/.cache/babel-loader/f181689a1b7a646349a3d6a3eaaeed79.json rename to node_modules/.cache/babel-loader/9b762b9a3a536efe6a2a17984a29f2de.json diff --git a/node_modules/.cache/babel-loader/9b87c5dd1b4beefd23474627f3e03c8b.json b/node_modules/.cache/babel-loader/9b87c5dd1b4beefd23474627f3e03c8b.json deleted file mode 100644 index 634b57f6..00000000 --- a/node_modules/.cache/babel-loader/9b87c5dd1b4beefd23474627f3e03c8b.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport Navigationbar from './';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 229,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 230,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 256,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 272,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 280,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 283,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 284,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 287,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(React.Fragment, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 295,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 296,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 297,\n columnNumber: 13\n }\n })));\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,OAAOC,aAAP,MAA0B,IAA1B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAC/C,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAwC;;AACxC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE;AAJF,KAOU;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;AAAA;AAAA;AAAA,QADJ,CAVa,eAcb;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAda,eAkBb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAlBa,CAAjB;AAyBE,0BACE,oBAAC,KAAD,CAAO,QAAP;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CADF,CADF;AAUH;;;;EA9ReZ,S;;AAgSlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport Navigationbar from './';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n \n \n \n \n \n \n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/b778fe9befaf69fa5979572bdecdf0cd.json b/node_modules/.cache/babel-loader/9bcc5da66af274c1ef5718d00c1288c2.json similarity index 100% rename from node_modules/.cache/babel-loader/b778fe9befaf69fa5979572bdecdf0cd.json rename to node_modules/.cache/babel-loader/9bcc5da66af274c1ef5718d00c1288c2.json diff --git a/node_modules/.cache/babel-loader/9c2b62382190b90f94790668bca8bd15.json b/node_modules/.cache/babel-loader/9c2b62382190b90f94790668bca8bd15.json new file mode 100644 index 00000000..68bd5bdb --- /dev/null +++ b/node_modules/.cache/babel-loader/9c2b62382190b90f94790668bca8bd15.json @@ -0,0 +1 @@ +{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/simulation/Gazebo_simulation-Frontend/src/components/TaskList.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport Navigationbar from './Navigationbar';\n\nvar TaskList = /*#__PURE__*/function (_Component) {\n _inherits(TaskList, _Component);\n\n function TaskList(props) {\n var _this;\n\n _classCallCheck(this, TaskList);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(TaskList).call(this, props));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n var cookies = props.cookies;\n _this.state = {\n tasks: [],\n csrfToken: cookies.get('XSRF-TOKEN'),\n isLoading: true,\n simulator: \"\",\n timeoutActionTaken: false\n };\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.simulatorWindow = null;\n return _this;\n }\n\n _createClass(TaskList, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.loadUser();\n }\n }, {\n key: \"loadUser\",\n value: function () {\n var _loadUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var _this2 = this;\n\n var response, body, userId, userName;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 2:\n response = _context.sent;\n _context.next = 5;\n return response.text();\n\n case 5:\n body = _context.sent;\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(\"())))))))))))))))))))))))))\");\n console.log(this.state.isAuthenticated);\n userId = this.state.user.sub;\n userName = this.state.user.given_name;\n fetch(\"http://\".concat(this.ip, \"/competition/progress/\").concat(userId, \"/13\"), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (data) {\n return _this2.setState({\n tasks: data,\n isLoading: false\n });\n }).catch(function () {\n return _this2.props.history.push('/');\n });\n\n case 12:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function loadUser() {\n return _loadUser.apply(this, arguments);\n }\n\n return loadUser;\n }()\n }, {\n key: \"openAutoTimeout\",\n value: function openAutoTimeout() {\n setTimeout(function () {\n console.log('auto close start now...');\n }.bind(this), 60 * 1000);\n }\n }, {\n key: \"openTimeout\",\n value: function openTimeout() {\n setTimeout(function () {\n var win = window.open(null, '_blank');\n this.state.timeoutActionTaken = false;\n win.focus();\n\n if (win.confirm(\"Do you want to keep simulator open and in-use? \\nClick 'Ok' for Yes and 'Cancel' for No.\\nIf nothing selected, simulator will be shut down automatically.\")) {\n // Do nothing, keep simulator alive\n this.state.timeoutActionTaken = true; //alert('ok clicked');\n\n win.close();\n } else {\n // send api to backend to stop task\n this.state.timeoutActionTaken = true; //alert('cancel clicked');\n\n win.close();\n }\n }.bind(this), 60 * 60 * 1000);\n this.openAutoTimeout();\n }\n }, {\n key: \"updateTask\",\n value: function updateTask(userId, compId, taskId) {\n var _this3 = this;\n\n fetch(\"http://\".concat(this.ip, \"/competition/update/\").concat(userId, \"/\").concat(compId, \"/\").concat(taskId), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (data) {\n return _this3.setState({\n tasks: data,\n isLoading: false\n });\n }).catch(function () {\n return _this3.props.history.push('/');\n });\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this4 = this;\n\n var _this$state = this.state,\n tasks = _this$state.tasks,\n isLoading = _this$state.isLoading;\n\n if (isLoading) {\n return /*#__PURE__*/React.createElement(\"p\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 97,\n columnNumber: 14\n }\n }, \"Loading...\");\n }\n\n var taskList = tasks.map(function (task) {\n return /*#__PURE__*/React.createElement(\"tr\", {\n key: task.task_id,\n __self: _this4,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 101,\n columnNumber: 14\n }\n }, /*#__PURE__*/React.createElement(\"td\", {\n style: {\n wordWrap: 'break-word'\n },\n __self: _this4,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 102,\n columnNumber: 9\n }\n }, task.task_name), /*#__PURE__*/React.createElement(\"td\", {\n style: {\n whiteSpace: 'nowrap'\n },\n __self: _this4,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 103,\n columnNumber: 9\n }\n }, task.task_progress), /*#__PURE__*/React.createElement(\"td\", {\n __self: _this4,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 104,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(ButtonGroup, {\n __self: _this4,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 105,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Button, {\n size: \"sm\",\n color: \"primary\",\n onClick: function onClick() {\n _this4.openTimeout();\n\n _this4.updateTask(_this4.state.user.sub, 13, task.task_id);\n },\n __self: _this4,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 106,\n columnNumber: 11\n }\n }, task.task_action))));\n });\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 116,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 117,\n columnNumber: 9\n }\n }), /*#__PURE__*/React.createElement(Container, {\n fluid: true,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 118,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"h3\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 119,\n columnNumber: 11\n }\n }, \"My Competition Tasks\"), /*#__PURE__*/React.createElement(Table, {\n style: {\n tableLayout: 'fixed'\n },\n className: \"mt-3\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 120,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(\"thead\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 121,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"tr\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 122,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"th\", {\n width: \"30%\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 123,\n columnNumber: 15\n }\n }, \"Task Name\"), /*#__PURE__*/React.createElement(\"th\", {\n width: \"20%\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 124,\n columnNumber: 15\n }\n }, \"Progress\"), /*#__PURE__*/React.createElement(\"th\", {\n width: \"30%\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 125,\n columnNumber: 15\n }\n }, \"Action\"))), /*#__PURE__*/React.createElement(\"tbody\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 128,\n columnNumber: 13\n }\n }, taskList))));\n }\n }]);\n\n return TaskList;\n}(Component);\n\nTaskList.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default withCookies(withRouter(TaskList));","map":{"version":3,"sources":["/home/riddhi/simulation/Gazebo_simulation-Frontend/src/components/TaskList.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Navigationbar","TaskList","props","state","isLoading","isAuthenticated","user","undefined","simulator","cookies","tasks","csrfToken","get","timeoutActionTaken","local","prod","status","ip","simulatorWindow","loadUser","fetch","credentials","response","text","body","setState","JSON","parse","console","log","userId","sub","userName","given_name","then","json","data","catch","history","push","setTimeout","bind","win","window","open","focus","confirm","close","openAutoTimeout","compId","taskId","taskList","map","task","task_id","wordWrap","task_name","whiteSpace","task_progress","openTimeout","updateTask","task_action","tableLayout","propTypes","isRequired"],"mappings":";;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;AACA,OAAOC,aAAP,MAA2B,iBAA3B;;IAEMC,Q;;;AAYJ,oBAAYC,KAAZ,EAAmB;AAAA;;AAAA;;AACjB,kFAAMA,KAAN;AADiB,UAPnBC,KAOmB,GAPX;AACNC,MAAAA,SAAS,EAAE,IADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,SAAS,EAAED;AAJL,KAOW;AAAA,QAEVE,OAFU,GAECP,KAFD,CAEVO,OAFU;AAGjB,UAAKN,KA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eAQE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACCX,QADD,CARF,CAFF,CAFF,CADF;AAoBD;;;;EA/HoB7D,S;;AAAjBW,Q,CACG8D,S,GAAY;AACjBtD,EAAAA,OAAO,EAAEV,UAAU,CAACD,OAAD,CAAV,CAAoBkE;AADZ,C;AAiIrB,eAAenE,WAAW,CAACD,UAAU,CAACK,QAAD,CAAX,CAA1B","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport Navigationbar from './Navigationbar'; \n\nclass TaskList extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n\n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n\n constructor(props) {\n super(props);\n const {cookies} = props;\n this.state = {tasks: [], csrfToken: cookies.get('XSRF-TOKEN'), isLoading: true, simulator: \"\", timeoutActionTaken: false};\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.simulatorWindow = null;\n }\n\n componentDidMount() {\n this.loadUser();\n }\n\n async loadUser() {\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n const body = await response.text();\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(\"())))))))))))))))))))))))))\")\n console.log(this.state.isAuthenticated);\n\n const userId = this.state.user.sub;\n const userName = this.state.user.given_name;\n \n fetch(`http://${this.ip}/competition/progress/${userId}/13`, {credentials: 'include'})\n .then(response => response.json())\n .then(data => this.setState({tasks: data, isLoading: false}))\n .catch(() => this.props.history.push('/'));\n \n }\n \n \n openAutoTimeout(){\n setTimeout(function(){\n console.log('auto close start now...');\n }.bind(this), 60*1000);\n }\n\n openTimeout(){\n setTimeout(function(){\n var win = window.open(null, '_blank');\n this.state.timeoutActionTaken = false;\n win.focus();\n\n if(win.confirm(\"Do you want to keep simulator open and in-use? \\nClick 'Ok' for Yes and 'Cancel' for No.\\nIf nothing selected, simulator will be shut down automatically.\")){\n // Do nothing, keep simulator alive\n this.state.timeoutActionTaken = true;\n //alert('ok clicked');\n win.close();\n } else {\n // send api to backend to stop task\n this.state.timeoutActionTaken = true;\n //alert('cancel clicked');\n win.close();\n }}.bind(this), 60*60*1000);\n this.openAutoTimeout();\n }\n\n \n updateTask(userId, compId, taskId){\n fetch(`http://${this.ip}/competition/update/${userId}/${compId}/${taskId}`, {credentials: 'include'})\n .then(response => response.json())\n .then(data => this.setState({tasks: data, isLoading: false}))\n .catch(() => this.props.history.push('/'));\n }\n\n render() {\n const {tasks, isLoading} = this.state;\n \n if (isLoading) {\n return

Loading...

;\n }\n \n const taskList = tasks.map(task => {\n return \n {task.task_name}\n {task.task_progress}\n \n \n \n \n \n \n });\n\n return (\n
\n \n \n

My Competition Tasks

\n \n \n \n \n \n \n \n \n \n {taskList}\n \n
Task NameProgressAction
\n
\n
\n );\n }\n}\n\nexport default withCookies(withRouter(TaskList));"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/9c5947d5949113f4846425d5256381d7.json b/node_modules/.cache/babel-loader/9c5947d5949113f4846425d5256381d7.json deleted file mode 100644 index 9e86ad49..00000000 --- a/node_modules/.cache/babel-loader/9c5947d5949113f4846425d5256381d7.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport Navigationbar from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 23\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 23\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 23\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 23\n }\n })));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,OAAOC,aAAP,MAA2B,4BAA3B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACU,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,eAKM,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEL,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALN,eAMM,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANN,eAOM,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAPN,eAQM,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEL,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QARN,CADV,CADF;AAgBD;;;;EAlBmBN,S;;AAqBtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport Navigationbar from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() { \n return ( \n \n \n \n \n {/* \n */} \n \n \n \n \n \n \n \n \n )\n };\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/9c7088ed89abbae1817129863dc03aef.json b/node_modules/.cache/babel-loader/9c7088ed89abbae1817129863dc03aef.json deleted file mode 100644 index 73ed5b58..00000000 --- a/node_modules/.cache/babel-loader/9c7088ed89abbae1817129863dc03aef.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"!function (e) {\n \"object\" == typeof exports && \"undefined\" != typeof module ? module.exports = e(null) : \"function\" == typeof define && define.amd ? define(e(null)) : window.stylis = e(null);\n}(function e(a) {\n \"use strict\";\n\n var r = /^\\0+/g,\n c = /[\\0\\r\\f]/g,\n s = /: */g,\n t = /zoo|gra/,\n i = /([,: ])(transform)/g,\n f = /,+\\s*(?![^(]*[)])/g,\n n = / +\\s*(?![^(]*[)])/g,\n l = / *[\\0] */g,\n o = /,\\r+?/g,\n h = /([\\t\\r\\n ])*\\f?&/g,\n u = /:global\\(((?:[^\\(\\)\\[\\]]*|\\[.*\\]|\\([^\\(\\)]*\\))*)\\)/g,\n d = /\\W+/g,\n b = /@(k\\w+)\\s*(\\S*)\\s*/,\n p = /::(place)/g,\n k = /:(read-only)/g,\n g = /\\s+(?=[{\\];=:>])/g,\n A = /([[}=:>])\\s+/g,\n C = /(\\{[^{]+?);(?=\\})/g,\n w = /\\s{2,}/g,\n v = /([^\\(])(:+) */g,\n m = /[svh]\\w+-[tblr]{2}/,\n x = /\\(\\s*(.*)\\s*\\)/g,\n $ = /([\\s\\S]*?);/g,\n y = /-self|flex-/g,\n O = /[^]*?(:[rp][el]a[\\w-]+)[^]*/,\n j = /stretch|:\\s*\\w+\\-(?:conte|avail)/,\n z = /([^-])(image-set\\()/,\n N = \"-webkit-\",\n S = \"-moz-\",\n F = \"-ms-\",\n W = 59,\n q = 125,\n B = 123,\n D = 40,\n E = 41,\n G = 91,\n H = 93,\n I = 10,\n J = 13,\n K = 9,\n L = 64,\n M = 32,\n P = 38,\n Q = 45,\n R = 95,\n T = 42,\n U = 44,\n V = 58,\n X = 39,\n Y = 34,\n Z = 47,\n _ = 62,\n ee = 43,\n ae = 126,\n re = 0,\n ce = 12,\n se = 11,\n te = 107,\n ie = 109,\n fe = 115,\n ne = 112,\n le = 111,\n oe = 105,\n he = 99,\n ue = 100,\n de = 112,\n be = 1,\n pe = 1,\n ke = 0,\n ge = 1,\n Ae = 1,\n Ce = 1,\n we = 0,\n ve = 0,\n me = 0,\n xe = [],\n $e = [],\n ye = 0,\n Oe = null,\n je = -2,\n ze = -1,\n Ne = 0,\n Se = 1,\n Fe = 2,\n We = 3,\n qe = 0,\n Be = 1,\n De = \"\",\n Ee = \"\",\n Ge = \"\";\n\n function He(e, a, s, t, i) {\n for (var f, n, o = 0, h = 0, u = 0, d = 0, g = 0, A = 0, C = 0, w = 0, m = 0, $ = 0, y = 0, O = 0, j = 0, z = 0, R = 0, we = 0, $e = 0, Oe = 0, je = 0, ze = s.length, Je = ze - 1, Re = \"\", Te = \"\", Ue = \"\", Ve = \"\", Xe = \"\", Ye = \"\"; R < ze;) {\n if (C = s.charCodeAt(R), R === Je) if (h + d + u + o !== 0) {\n if (0 !== h) C = h === Z ? I : Z;\n d = u = o = 0, ze++, Je++;\n }\n\n if (h + d + u + o === 0) {\n if (R === Je) {\n if (we > 0) Te = Te.replace(c, \"\");\n\n if (Te.trim().length > 0) {\n switch (C) {\n case M:\n case K:\n case W:\n case J:\n case I:\n break;\n\n default:\n Te += s.charAt(R);\n }\n\n C = W;\n }\n }\n\n if (1 === $e) switch (C) {\n case B:\n case q:\n case W:\n case Y:\n case X:\n case D:\n case E:\n case U:\n $e = 0;\n\n case K:\n case J:\n case I:\n case M:\n break;\n\n default:\n for ($e = 0, je = R, g = C, R--, C = W; je < ze;) {\n switch (s.charCodeAt(je++)) {\n case I:\n case J:\n case W:\n ++R, C = g, je = ze;\n break;\n\n case V:\n if (we > 0) ++R, C = g;\n\n case B:\n je = ze;\n }\n }\n\n }\n\n switch (C) {\n case B:\n for (g = (Te = Te.trim()).charCodeAt(0), y = 1, je = ++R; R < ze;) {\n switch (C = s.charCodeAt(R)) {\n case B:\n y++;\n break;\n\n case q:\n y--;\n break;\n\n case Z:\n switch (A = s.charCodeAt(R + 1)) {\n case T:\n case Z:\n R = Qe(A, R, Je, s);\n }\n\n break;\n\n case G:\n C++;\n\n case D:\n C++;\n\n case Y:\n case X:\n for (; R++ < Je && s.charCodeAt(R) !== C;) {\n ;\n }\n\n }\n\n if (0 === y) break;\n R++;\n }\n\n if (Ue = s.substring(je, R), g === re) g = (Te = Te.replace(r, \"\").trim()).charCodeAt(0);\n\n switch (g) {\n case L:\n if (we > 0) Te = Te.replace(c, \"\");\n\n switch (A = Te.charCodeAt(1)) {\n case ue:\n case ie:\n case fe:\n case Q:\n f = a;\n break;\n\n default:\n f = xe;\n }\n\n if (je = (Ue = He(a, f, Ue, A, i + 1)).length, me > 0 && 0 === je) je = Te.length;\n if (ye > 0) if (f = Ie(xe, Te, Oe), n = Pe(We, Ue, f, a, pe, be, je, A, i, t), Te = f.join(\"\"), void 0 !== n) if (0 === (je = (Ue = n.trim()).length)) A = 0, Ue = \"\";\n if (je > 0) switch (A) {\n case fe:\n Te = Te.replace(x, Me);\n\n case ue:\n case ie:\n case Q:\n Ue = Te + \"{\" + Ue + \"}\";\n break;\n\n case te:\n if (Ue = (Te = Te.replace(b, \"$1 $2\" + (Be > 0 ? De : \"\"))) + \"{\" + Ue + \"}\", 1 === Ae || 2 === Ae && Le(\"@\" + Ue, 3)) Ue = \"@\" + N + Ue + \"@\" + Ue;else Ue = \"@\" + Ue;\n break;\n\n default:\n if (Ue = Te + Ue, t === de) Ve += Ue, Ue = \"\";\n } else Ue = \"\";\n break;\n\n default:\n Ue = He(a, Ie(a, Te, Oe), Ue, t, i + 1);\n }\n\n Xe += Ue, O = 0, $e = 0, z = 0, we = 0, Oe = 0, j = 0, Te = \"\", Ue = \"\", C = s.charCodeAt(++R);\n break;\n\n case q:\n case W:\n if ((je = (Te = (we > 0 ? Te.replace(c, \"\") : Te).trim()).length) > 1) {\n if (0 === z) if ((g = Te.charCodeAt(0)) === Q || g > 96 && g < 123) je = (Te = Te.replace(\" \", \":\")).length;\n if (ye > 0) if (void 0 !== (n = Pe(Se, Te, a, e, pe, be, Ve.length, t, i, t))) if (0 === (je = (Te = n.trim()).length)) Te = \"\\0\\0\";\n\n switch (g = Te.charCodeAt(0), A = Te.charCodeAt(1), g) {\n case re:\n break;\n\n case L:\n if (A === oe || A === he) {\n Ye += Te + s.charAt(R);\n break;\n }\n\n default:\n if (Te.charCodeAt(je - 1) === V) break;\n Ve += Ke(Te, g, A, Te.charCodeAt(2));\n }\n }\n\n O = 0, $e = 0, z = 0, we = 0, Oe = 0, Te = \"\", C = s.charCodeAt(++R);\n }\n }\n\n switch (C) {\n case J:\n case I:\n if (h + d + u + o + ve === 0) switch ($) {\n case E:\n case X:\n case Y:\n case L:\n case ae:\n case _:\n case T:\n case ee:\n case Z:\n case Q:\n case V:\n case U:\n case W:\n case B:\n case q:\n break;\n\n default:\n if (z > 0) $e = 1;\n }\n if (h === Z) h = 0;else if (ge + O === 0 && t !== te && Te.length > 0) we = 1, Te += \"\\0\";\n if (ye * qe > 0) Pe(Ne, Te, a, e, pe, be, Ve.length, t, i, t);\n be = 1, pe++;\n break;\n\n case W:\n case q:\n if (h + d + u + o === 0) {\n be++;\n break;\n }\n\n default:\n switch (be++, Re = s.charAt(R), C) {\n case K:\n case M:\n if (d + o + h === 0) switch (w) {\n case U:\n case V:\n case K:\n case M:\n Re = \"\";\n break;\n\n default:\n if (C !== M) Re = \" \";\n }\n break;\n\n case re:\n Re = \"\\\\0\";\n break;\n\n case ce:\n Re = \"\\\\f\";\n break;\n\n case se:\n Re = \"\\\\v\";\n break;\n\n case P:\n if (d + h + o === 0 && ge > 0) Oe = 1, we = 1, Re = \"\\f\" + Re;\n break;\n\n case 108:\n if (d + h + o + ke === 0 && z > 0) switch (R - z) {\n case 2:\n if (w === ne && s.charCodeAt(R - 3) === V) ke = w;\n\n case 8:\n if (m === le) ke = m;\n }\n break;\n\n case V:\n if (d + h + o === 0) z = R;\n break;\n\n case U:\n if (h + u + d + o === 0) we = 1, Re += \"\\r\";\n break;\n\n case Y:\n case X:\n if (0 === h) d = d === C ? 0 : 0 === d ? C : d;\n break;\n\n case G:\n if (d + h + u === 0) o++;\n break;\n\n case H:\n if (d + h + u === 0) o--;\n break;\n\n case E:\n if (d + h + o === 0) u--;\n break;\n\n case D:\n if (d + h + o === 0) {\n if (0 === O) switch (2 * w + 3 * m) {\n case 533:\n break;\n\n default:\n y = 0, O = 1;\n }\n u++;\n }\n\n break;\n\n case L:\n if (h + u + d + o + z + j === 0) j = 1;\n break;\n\n case T:\n case Z:\n if (d + o + u > 0) break;\n\n switch (h) {\n case 0:\n switch (2 * C + 3 * s.charCodeAt(R + 1)) {\n case 235:\n h = Z;\n break;\n\n case 220:\n je = R, h = T;\n }\n\n break;\n\n case T:\n if (C === Z && w === T && je + 2 !== R) {\n if (33 === s.charCodeAt(je + 2)) Ve += s.substring(je, R + 1);\n Re = \"\", h = 0;\n }\n\n }\n\n }\n\n if (0 === h) {\n if (ge + d + o + j === 0 && t !== te && C !== W) switch (C) {\n case U:\n case ae:\n case _:\n case ee:\n case E:\n case D:\n if (0 === O) {\n switch (w) {\n case K:\n case M:\n case I:\n case J:\n Re += \"\\0\";\n break;\n\n default:\n Re = \"\\0\" + Re + (C === U ? \"\" : \"\\0\");\n }\n\n we = 1;\n } else switch (C) {\n case D:\n if (z + 7 === R && 108 === w) z = 0;\n O = ++y;\n break;\n\n case E:\n if (0 == (O = --y)) we = 1, Re += \"\\0\";\n }\n\n break;\n\n case K:\n case M:\n switch (w) {\n case re:\n case B:\n case q:\n case W:\n case U:\n case ce:\n case K:\n case M:\n case I:\n case J:\n break;\n\n default:\n if (0 === O) we = 1, Re += \"\\0\";\n }\n\n }\n if (Te += Re, C !== M && C !== K) $ = C;\n }\n\n }\n\n m = w, w = C, R++;\n }\n\n if (je = Ve.length, me > 0) if (0 === je && 0 === Xe.length && 0 === a[0].length == false) if (t !== ie || 1 === a.length && (ge > 0 ? Ee : Ge) === a[0]) je = a.join(\",\").length + 2;\n\n if (je > 0) {\n if (f = 0 === ge && t !== te ? function (e) {\n for (var a, r, s = 0, t = e.length, i = Array(t); s < t; ++s) {\n for (var f = e[s].split(l), n = \"\", o = 0, h = 0, u = 0, d = 0, b = f.length; o < b; ++o) {\n if (0 === (h = (r = f[o]).length) && b > 1) continue;\n if (u = n.charCodeAt(n.length - 1), d = r.charCodeAt(0), a = \"\", 0 !== o) switch (u) {\n case T:\n case ae:\n case _:\n case ee:\n case M:\n case D:\n break;\n\n default:\n a = \" \";\n }\n\n switch (d) {\n case P:\n r = a + Ee;\n\n case ae:\n case _:\n case ee:\n case M:\n case E:\n case D:\n break;\n\n case G:\n r = a + r + Ee;\n break;\n\n case V:\n switch (2 * r.charCodeAt(1) + 3 * r.charCodeAt(2)) {\n case 530:\n if (Ce > 0) {\n r = a + r.substring(8, h - 1);\n break;\n }\n\n default:\n if (o < 1 || f[o - 1].length < 1) r = a + Ee + r;\n }\n\n break;\n\n case U:\n a = \"\";\n\n default:\n if (h > 1 && r.indexOf(\":\") > 0) r = a + r.replace(v, \"$1\" + Ee + \"$2\");else r = a + r + Ee;\n }\n\n n += r;\n }\n\n i[s] = n.replace(c, \"\").trim();\n }\n\n return i;\n }(a) : a, ye > 0) if (void 0 !== (n = Pe(Fe, Ve, f, e, pe, be, je, t, i, t)) && 0 === (Ve = n).length) return Ye + Ve + Xe;\n\n if (Ve = f.join(\",\") + \"{\" + Ve + \"}\", Ae * ke != 0) {\n if (2 === Ae && !Le(Ve, 2)) ke = 0;\n\n switch (ke) {\n case le:\n Ve = Ve.replace(k, \":\" + S + \"$1\") + Ve;\n break;\n\n case ne:\n Ve = Ve.replace(p, \"::\" + N + \"input-$1\") + Ve.replace(p, \"::\" + S + \"$1\") + Ve.replace(p, \":\" + F + \"input-$1\") + Ve;\n }\n\n ke = 0;\n }\n }\n\n return Ye + Ve + Xe;\n }\n\n function Ie(e, a, r) {\n var c = a.trim().split(o),\n s = c,\n t = c.length,\n i = e.length;\n\n switch (i) {\n case 0:\n case 1:\n for (var f = 0, n = 0 === i ? \"\" : e[0] + \" \"; f < t; ++f) {\n s[f] = Je(n, s[f], r, i).trim();\n }\n\n break;\n\n default:\n f = 0;\n var l = 0;\n\n for (s = []; f < t; ++f) {\n for (var h = 0; h < i; ++h) {\n s[l++] = Je(e[h] + \" \", c[f], r, i).trim();\n }\n }\n\n }\n\n return s;\n }\n\n function Je(e, a, r, c) {\n var s = a,\n t = s.charCodeAt(0);\n if (t < 33) t = (s = s.trim()).charCodeAt(0);\n\n switch (t) {\n case P:\n switch (ge + c) {\n case 0:\n case 1:\n if (0 === e.trim().length) break;\n\n default:\n return s.replace(h, \"$1\" + e.trim());\n }\n\n break;\n\n case V:\n switch (s.charCodeAt(1)) {\n case 103:\n if (Ce > 0 && ge > 0) return s.replace(u, \"$1\").replace(h, \"$1\" + Ge);\n break;\n\n default:\n return e.trim() + s.replace(h, \"$1\" + e.trim());\n }\n\n default:\n if (r * ge > 0 && s.indexOf(\"\\f\") > 0) return s.replace(h, (e.charCodeAt(0) === V ? \"\" : \"$1\") + e.trim());\n }\n\n return e + s;\n }\n\n function Ke(e, a, r, c) {\n var l,\n o = 0,\n h = e + \";\",\n u = 2 * a + 3 * r + 4 * c;\n if (944 === u) return function (e) {\n var a = e.length,\n r = e.indexOf(\":\", 9) + 1,\n c = e.substring(0, r).trim(),\n s = e.substring(r, a - 1).trim();\n\n switch (e.charCodeAt(9) * Be) {\n case 0:\n break;\n\n case Q:\n if (110 !== e.charCodeAt(10)) break;\n\n default:\n for (var t = s.split((s = \"\", f)), i = 0, r = 0, a = t.length; i < a; r = 0, ++i) {\n for (var l = t[i], o = l.split(n); l = o[r];) {\n var h = l.charCodeAt(0);\n if (1 === Be && (h > L && h < 90 || h > 96 && h < 123 || h === R || h === Q && l.charCodeAt(1) !== Q)) switch (isNaN(parseFloat(l)) + (-1 !== l.indexOf(\"(\"))) {\n case 1:\n switch (l) {\n case \"infinite\":\n case \"alternate\":\n case \"backwards\":\n case \"running\":\n case \"normal\":\n case \"forwards\":\n case \"both\":\n case \"none\":\n case \"linear\":\n case \"ease\":\n case \"ease-in\":\n case \"ease-out\":\n case \"ease-in-out\":\n case \"paused\":\n case \"reverse\":\n case \"alternate-reverse\":\n case \"inherit\":\n case \"initial\":\n case \"unset\":\n case \"step-start\":\n case \"step-end\":\n break;\n\n default:\n l += De;\n }\n\n }\n o[r++] = l;\n }\n\n s += (0 === i ? \"\" : \",\") + o.join(\" \");\n }\n\n }\n\n if (s = c + s + \";\", 1 === Ae || 2 === Ae && Le(s, 1)) return N + s + s;\n return s;\n }(h);else if (0 === Ae || 2 === Ae && !Le(h, 1)) return h;\n\n switch (u) {\n case 1015:\n return 97 === h.charCodeAt(10) ? N + h + h : h;\n\n case 951:\n return 116 === h.charCodeAt(3) ? N + h + h : h;\n\n case 963:\n return 110 === h.charCodeAt(5) ? N + h + h : h;\n\n case 1009:\n if (100 !== h.charCodeAt(4)) break;\n\n case 969:\n case 942:\n return N + h + h;\n\n case 978:\n return N + h + S + h + h;\n\n case 1019:\n case 983:\n return N + h + S + h + F + h + h;\n\n case 883:\n if (h.charCodeAt(8) === Q) return N + h + h;\n if (h.indexOf(\"image-set(\", 11) > 0) return h.replace(z, \"$1\" + N + \"$2\") + h;\n return h;\n\n case 932:\n if (h.charCodeAt(4) === Q) switch (h.charCodeAt(5)) {\n case 103:\n return N + \"box-\" + h.replace(\"-grow\", \"\") + N + h + F + h.replace(\"grow\", \"positive\") + h;\n\n case 115:\n return N + h + F + h.replace(\"shrink\", \"negative\") + h;\n\n case 98:\n return N + h + F + h.replace(\"basis\", \"preferred-size\") + h;\n }\n return N + h + F + h + h;\n\n case 964:\n return N + h + F + \"flex-\" + h + h;\n\n case 1023:\n if (99 !== h.charCodeAt(8)) break;\n return l = h.substring(h.indexOf(\":\", 15)).replace(\"flex-\", \"\").replace(\"space-between\", \"justify\"), N + \"box-pack\" + l + N + h + F + \"flex-pack\" + l + h;\n\n case 1005:\n return t.test(h) ? h.replace(s, \":\" + N) + h.replace(s, \":\" + S) + h : h;\n\n case 1e3:\n switch (o = (l = h.substring(13).trim()).indexOf(\"-\") + 1, l.charCodeAt(0) + l.charCodeAt(o)) {\n case 226:\n l = h.replace(m, \"tb\");\n break;\n\n case 232:\n l = h.replace(m, \"tb-rl\");\n break;\n\n case 220:\n l = h.replace(m, \"lr\");\n break;\n\n default:\n return h;\n }\n\n return N + h + F + l + h;\n\n case 1017:\n if (-1 === h.indexOf(\"sticky\", 9)) return h;\n\n case 975:\n switch (o = (h = e).length - 10, u = (l = (33 === h.charCodeAt(o) ? h.substring(0, o) : h).substring(e.indexOf(\":\", 7) + 1).trim()).charCodeAt(0) + (0 | l.charCodeAt(7))) {\n case 203:\n if (l.charCodeAt(8) < 111) break;\n\n case 115:\n h = h.replace(l, N + l) + \";\" + h;\n break;\n\n case 207:\n case 102:\n h = h.replace(l, N + (u > 102 ? \"inline-\" : \"\") + \"box\") + \";\" + h.replace(l, N + l) + \";\" + h.replace(l, F + l + \"box\") + \";\" + h;\n }\n\n return h + \";\";\n\n case 938:\n if (h.charCodeAt(5) === Q) switch (h.charCodeAt(6)) {\n case 105:\n return l = h.replace(\"-items\", \"\"), N + h + N + \"box-\" + l + F + \"flex-\" + l + h;\n\n case 115:\n return N + h + F + \"flex-item-\" + h.replace(y, \"\") + h;\n\n default:\n return N + h + F + \"flex-line-pack\" + h.replace(\"align-content\", \"\").replace(y, \"\") + h;\n }\n break;\n\n case 973:\n case 989:\n if (h.charCodeAt(3) !== Q || 122 === h.charCodeAt(4)) break;\n\n case 931:\n case 953:\n if (true === j.test(e)) if (115 === (l = e.substring(e.indexOf(\":\") + 1)).charCodeAt(0)) return Ke(e.replace(\"stretch\", \"fill-available\"), a, r, c).replace(\":fill-available\", \":stretch\");else return h.replace(l, N + l) + h.replace(l, S + l.replace(\"fill-\", \"\")) + h;\n break;\n\n case 962:\n if (h = N + h + (102 === h.charCodeAt(5) ? F + h : \"\") + h, r + c === 211 && 105 === h.charCodeAt(13) && h.indexOf(\"transform\", 10) > 0) return h.substring(0, h.indexOf(\";\", 27) + 1).replace(i, \"$1\" + N + \"$2\") + h;\n }\n\n return h;\n }\n\n function Le(e, a) {\n var r = e.indexOf(1 === a ? \":\" : \"{\"),\n c = e.substring(0, 3 !== a ? r : 10),\n s = e.substring(r + 1, e.length - 1);\n return Oe(2 !== a ? c : c.replace(O, \"$1\"), s, a);\n }\n\n function Me(e, a) {\n var r = Ke(a, a.charCodeAt(0), a.charCodeAt(1), a.charCodeAt(2));\n return r !== a + \";\" ? r.replace($, \" or ($1)\").substring(4) : \"(\" + a + \")\";\n }\n\n function Pe(e, a, r, c, s, t, i, f, n, l) {\n for (var o, h = 0, u = a; h < ye; ++h) {\n switch (o = $e[h].call(Te, e, u, r, c, s, t, i, f, n, l)) {\n case void 0:\n case false:\n case true:\n case null:\n break;\n\n default:\n u = o;\n }\n }\n\n if (u !== a) return u;\n }\n\n function Qe(e, a, r, c) {\n for (var s = a + 1; s < r; ++s) {\n switch (c.charCodeAt(s)) {\n case Z:\n if (e === T) if (c.charCodeAt(s - 1) === T && a + 2 !== s) return s + 1;\n break;\n\n case I:\n if (e === Z) return s + 1;\n }\n }\n\n return s;\n }\n\n function Re(e) {\n for (var a in e) {\n var r = e[a];\n\n switch (a) {\n case \"keyframe\":\n Be = 0 | r;\n break;\n\n case \"global\":\n Ce = 0 | r;\n break;\n\n case \"cascade\":\n ge = 0 | r;\n break;\n\n case \"compress\":\n we = 0 | r;\n break;\n\n case \"semicolon\":\n ve = 0 | r;\n break;\n\n case \"preserve\":\n me = 0 | r;\n break;\n\n case \"prefix\":\n if (Oe = null, !r) Ae = 0;else if (\"function\" != typeof r) Ae = 1;else Ae = 2, Oe = r;\n }\n }\n\n return Re;\n }\n\n function Te(a, r) {\n if (void 0 !== this && this.constructor === Te) return e(a);\n var s = a,\n t = s.charCodeAt(0);\n if (t < 33) t = (s = s.trim()).charCodeAt(0);\n if (Be > 0) De = s.replace(d, t === G ? \"\" : \"-\");\n if (t = 1, 1 === ge) Ge = s;else Ee = s;\n var i,\n f = [Ge];\n if (ye > 0) if (void 0 !== (i = Pe(ze, r, f, f, pe, be, 0, 0, 0, 0)) && \"string\" == typeof i) r = i;\n var n = He(xe, f, r, 0, 0);\n if (ye > 0) if (void 0 !== (i = Pe(je, n, f, f, pe, be, n.length, 0, 0, 0)) && \"string\" != typeof (n = i)) t = 0;\n return De = \"\", Ge = \"\", Ee = \"\", ke = 0, pe = 1, be = 1, we * t == 0 ? n : n.replace(c, \"\").replace(g, \"\").replace(A, \"$1\").replace(C, \"$1\").replace(w, \" \");\n }\n\n if (Te.use = function e(a) {\n switch (a) {\n case void 0:\n case null:\n ye = $e.length = 0;\n break;\n\n default:\n if (\"function\" == typeof a) $e[ye++] = a;else if (\"object\" == typeof a) for (var r = 0, c = a.length; r < c; ++r) {\n e(a[r]);\n } else qe = 0 | !!a;\n }\n\n return e;\n }, Te.set = Re, void 0 !== a) Re(a);\n return Te;\n});","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/e42a353c692c7071ffbfab03837dbb94.json b/node_modules/.cache/babel-loader/9c823f5c0be6a37cef26e543b3a4c4f6.json similarity index 100% rename from node_modules/.cache/babel-loader/e42a353c692c7071ffbfab03837dbb94.json rename to node_modules/.cache/babel-loader/9c823f5c0be6a37cef26e543b3a4c4f6.json diff --git a/node_modules/.cache/babel-loader/01731e5295b8c2f4e3f00e0e846e5221.json b/node_modules/.cache/babel-loader/9cfccc89c51ba02c00fef7173618425e.json similarity index 100% rename from node_modules/.cache/babel-loader/01731e5295b8c2f4e3f00e0e846e5221.json rename to node_modules/.cache/babel-loader/9cfccc89c51ba02c00fef7173618425e.json diff --git a/node_modules/.cache/babel-loader/ef304774f19e36561967fe3fa4a65e9d.json b/node_modules/.cache/babel-loader/9d4c03c57cd9632b08e5ff530d15c0e0.json similarity index 100% rename from node_modules/.cache/babel-loader/ef304774f19e36561967fe3fa4a65e9d.json rename to node_modules/.cache/babel-loader/9d4c03c57cd9632b08e5ff530d15c0e0.json diff --git a/node_modules/.cache/babel-loader/9d5e5ad5dcc6c5e9073785854f40f143.json b/node_modules/.cache/babel-loader/9d5e5ad5dcc6c5e9073785854f40f143.json deleted file mode 100644 index 469b7d54..00000000 --- a/node_modules/.cache/babel-loader/9d5e5ad5dcc6c5e9073785854f40f143.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 228,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 229,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 242,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 278,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 282,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 283,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 286,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 294,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 295,\n columnNumber: 11\n }\n }), mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,OAAOC,aAAP,MAA0B,iBAA1B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAC/C,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAwC;;AACxC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAA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,SARY,eAUb;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAEjF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAVa,eAcb;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAda,eAkBb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAlBa,CAAjB;AAyBE,0BACE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,EAEIkF,QAFJ,CADF;AASH;;;;EA5Re9F,S;;AA8RlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n
\n \n {mainBody}\n
\n \n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/b07e8a7dd474b021813d80c40fdd97e9.json b/node_modules/.cache/babel-loader/9d7d98ca6915ed14ee3df932734af7c3.json similarity index 100% rename from node_modules/.cache/babel-loader/b07e8a7dd474b021813d80c40fdd97e9.json rename to node_modules/.cache/babel-loader/9d7d98ca6915ed14ee3df932734af7c3.json diff --git a/node_modules/.cache/babel-loader/61c569eb36c24f2b5f438336fa9d5e7c.json b/node_modules/.cache/babel-loader/9daeea6740a1e0a3a9a2d1a440ec0754.json similarity index 100% rename from node_modules/.cache/babel-loader/61c569eb36c24f2b5f438336fa9d5e7c.json rename to node_modules/.cache/babel-loader/9daeea6740a1e0a3a9a2d1a440ec0754.json diff --git a/node_modules/.cache/babel-loader/9dd6c45ad0a74a37c58561cda565008c.json b/node_modules/.cache/babel-loader/9dd6c45ad0a74a37c58561cda565008c.json deleted file mode 100644 index 6b6620a6..00000000 --- a/node_modules/.cache/babel-loader/9dd6c45ad0a74a37c58561cda565008c.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink, Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var isLoggedIn = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 7\n }\n }, isLoggedIn ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 48,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 53,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 54,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 58,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 59,\n columnNumber: 41\n }\n }, \"Simulator\")))))) : null);\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","Link","styled","header","Styles","div","Navigationbar","isLoggedIn","props","textDecoration"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,EAAiBC,IAAjB,QAA6B,kBAA7B;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CA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AAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,OAAhD;AAAwD,QAAA,EAAE,EAAC,QAA3D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CARJ,eAaI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,OAAhD;AAAwD,QAAA,EAAE,EAAC,GAA3D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADJ,CAbJ,CAJR,CANV,CADR,CADU,GAuCV,IAzCA,CADF;AAiDH;;;;EArD2Bd,S;;AAuD5B,eAAeW,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink,Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const isLoggedIn = this.props.isLoggedIn;\n \n return (\n
\n \n { isLoggedIn ? \n \n \n \n \n :\n null\n }\n \n \n\n
\n); \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/9e5363486292cfc9fade6e4da3c84a3f.json b/node_modules/.cache/babel-loader/9e5363486292cfc9fade6e4da3c84a3f.json deleted file mode 100644 index b9b48bd7..00000000 --- a/node_modules/.cache/babel-loader/9e5363486292cfc9fade6e4da3c84a3f.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport Navigationbar from '.Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 228,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 229,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 242,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 19\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 278,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 282,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 283,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 286,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 294,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 295,\n columnNumber: 11\n }\n }), mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,OAAOC,aAAP,MAA0B,gBAA1B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,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AAAA;AAAA,sBACI;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACG;AAAM,QAAA,GAAG,EAAEnF,MAAX;AAAmB,QAAA,KAAK,EAAE,MAA1B;AAAkC,QAAA,MAAM,EAAE,MAA1C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADH,CADJ,EAIKgF,OAJL,CADa,EAQZE,SARY,eAUb;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAEjF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAVa,eAcb;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAda,eAkBb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAlBa,CAAjB;AAyBE,0BACE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,EAEIkF,QAFJ,CADF;AASH;;;;EA5Re9F,S;;AA8RlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport Navigationbar from '.Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n
\n \n {mainBody}\n
\n \n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/999371ee612d80d2cbef896b57868638.json b/node_modules/.cache/babel-loader/9eb8ca0cdeaedf068d86b3716fd5ce8f.json similarity index 100% rename from node_modules/.cache/babel-loader/999371ee612d80d2cbef896b57868638.json rename to node_modules/.cache/babel-loader/9eb8ca0cdeaedf068d86b3716fd5ce8f.json diff --git a/node_modules/.cache/babel-loader/2c97a605d06d26859e8441f6aa3f2f5d.json b/node_modules/.cache/babel-loader/9eba1dff90db981fc33cbb9cb22e0c27.json similarity index 100% rename from node_modules/.cache/babel-loader/2c97a605d06d26859e8441f6aa3f2f5d.json rename to node_modules/.cache/babel-loader/9eba1dff90db981fc33cbb9cb22e0c27.json diff --git a/node_modules/.cache/babel-loader/6303388002b83e734b10ffd538a724b4.json b/node_modules/.cache/babel-loader/9ef05b5c636cb5bf7c04cdee5bd3ae7f.json similarity index 100% rename from node_modules/.cache/babel-loader/6303388002b83e734b10ffd538a724b4.json rename to node_modules/.cache/babel-loader/9ef05b5c636cb5bf7c04cdee5bd3ae7f.json diff --git a/node_modules/.cache/babel-loader/d791c765b54707cc70af44d25c9a0fc0.json b/node_modules/.cache/babel-loader/9ef4d5181b284207f6e768687db12d93.json similarity index 100% rename from node_modules/.cache/babel-loader/d791c765b54707cc70af44d25c9a0fc0.json rename to node_modules/.cache/babel-loader/9ef4d5181b284207f6e768687db12d93.json diff --git a/node_modules/.cache/babel-loader/d43e02051c90795c9e5832f02104b5c2.json b/node_modules/.cache/babel-loader/9fb918cd4c102e8ba22b17161805eb9f.json similarity index 100% rename from node_modules/.cache/babel-loader/d43e02051c90795c9e5832f02104b5c2.json rename to node_modules/.cache/babel-loader/9fb918cd4c102e8ba22b17161805eb9f.json diff --git a/node_modules/.cache/babel-loader/9fe0892d579077c05b0782158538aaa0.json b/node_modules/.cache/babel-loader/9fe0892d579077c05b0782158538aaa0.json deleted file mode 100644 index e04a7055..00000000 --- a/node_modules/.cache/babel-loader/9fe0892d579077c05b0782158538aaa0.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport NavigationBar from './components/NavigationBar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 228,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 229,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 242,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 19\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 278,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 282,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 283,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 286,\n columnNumber: 9\n }\n }));\n return (\n /*#__PURE__*/\n\n /*
\n {mainBody}\n
*/\n React.createElement(React.Fragment, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 297,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 298,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(NavigationBar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 299,\n columnNumber: 11\n }\n })))\n );\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","NavigationBar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,OAAQC,aAAR,MAA4B,4BAA5B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAn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esContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport NavigationBar from './components/NavigationBar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n /*
\n {mainBody}\n
*/\n \n \n \n \n \n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/9fedb43c0b83baf826e3fbae5acbb992.json b/node_modules/.cache/babel-loader/9fedb43c0b83baf826e3fbae5acbb992.json deleted file mode 100644 index 3599c136..00000000 --- a/node_modules/.cache/babel-loader/9fedb43c0b83baf826e3fbae5acbb992.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:4200\",\n target: \"top\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 13\n }\n }, \" Console \"), /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:8888\",\n target: \"bottom\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }\n }, \" Simulator \"), /*#__PURE__*/React.createElement(\"div\", {\n class: \"top\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"top_\",\n src: \"\",\n width: \"100%\",\n height: \"200px\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 15\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n class: \"bottom\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"bottom_\",\n src: \"\",\n width: \"100%\",\n height: \"512\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 15\n }\n })));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;AACA,OAAO,iBAAP;;IAEMC,S;;;;;;;;;;;;;;;UAKAC,K,GAAQ;AACNC,MAAAA,SAAS,EAAE,IADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,SAAS,EAAED;AAJL,K;;;;;;6BAQR;AACE,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,KAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADF,eAEE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,QAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAFF,eAGE;AAAK,QAAA,KAAK,EAAC,KAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAQ,QAAA,IAAI,EAAC,MAAb;AAAoB,QAAA,GAAG,EAAC,EAAxB;AAA2B,QAAA,KAAK,EAAC,MAAjC;AAAyC,QAAA,MAAM,EAAC,OAAhD;AAAwD,QAAA,WAAW,EAAC,GAApE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CAHF,eAME;AAAK,QAAA,KAAK,EAAC,QAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAQ,QAAA,IAAI,EAAC,SAAb;AAAuB,QAAA,GAAG,EAAC,EAA3B;AAA8B,QAAA,KAAK,EAAC,MAApC;AAA2C,QAAA,MAAM,EAAC,KAAlD;AAAwD,QAAA,WAAW,EAAC,GAApE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CANF,CADF;AAkBD;;;;EAhCiBf,S;;AAAlBU,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAET,UAAU,CAACD,OAAD,CAAV,CAAoBW;AADd,C;AAkCvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n Console \n Simulator \n
\n \n
\n
\n \n
\n \n \n \n \n \n \n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/9f4bb3c2bb112e8c7d9014760632d637.json b/node_modules/.cache/babel-loader/a01a3daed7cd3d0bc907bd8e7afe2eab.json similarity index 100% rename from node_modules/.cache/babel-loader/9f4bb3c2bb112e8c7d9014760632d637.json rename to node_modules/.cache/babel-loader/a01a3daed7cd3d0bc907bd8e7afe2eab.json diff --git a/node_modules/.cache/babel-loader/732d905efb1ccf18e00fb6c1209d3992.json b/node_modules/.cache/babel-loader/a06cd781becaaa0b0ced3196dbdf9b4d.json similarity index 100% rename from node_modules/.cache/babel-loader/732d905efb1ccf18e00fb6c1209d3992.json rename to node_modules/.cache/babel-loader/a06cd781becaaa0b0ced3196dbdf9b4d.json diff --git a/node_modules/.cache/babel-loader/a165732c2ab11f66f34abedba69092f2.json b/node_modules/.cache/babel-loader/a165732c2ab11f66f34abedba69092f2.json deleted file mode 100644 index 248cd8aa..00000000 --- a/node_modules/.cache/babel-loader/a165732c2ab11f66f34abedba69092f2.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 9\n }\n }), /*#__PURE__*/React.createElement(Switch, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 15\n }\n }), \"this.state.isAuthenticated ?\", /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 15\n }\n }))));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,SAASC,aAAT,QAA8B,4BAA9B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADA,eAEE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAGI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEN,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHJ,+CAKI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEC,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALJ,eAMI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANJ,eAOI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAPJ,CAFF,CADF,CADF;AAiBD;;;;EAnBmBX,S;;AAsBtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() {\n return (\n \n \n \n \n {/* \n */}\n \n this.state.isAuthenticated ? \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/a181070d6100b23c7cf01ecf5465ae81.json b/node_modules/.cache/babel-loader/a181070d6100b23c7cf01ecf5465ae81.json deleted file mode 100644 index a276ad71..00000000 --- a/node_modules/.cache/babel-loader/a181070d6100b23c7cf01ecf5465ae81.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl, NavItem } from 'react-bootstrap';\nimport { NavLink, Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var isLoggedIn = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 7\n }\n }, isLoggedIn ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavItem, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 46\n }\n }, \"Progress\"))), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavItem, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 46\n }\n }, \"Tasks\"))), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavItem, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 46\n }\n }, \"Simulator\"))))))) : null);\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavItem","NavLink","Link","styled","header","Styles","div","Navigationbar","isLoggedIn","props","textDecoration"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,EAAyCC,OAAzC,QAAwD,iBAAxD;AACA,SAASC,OAA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AA,KAAK,EAAC,UAAhD;AAA2D,QAAA,EAAE,EAAC,WAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAT,CADA,CAFJ,eAQI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA,oBAAC,OAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAS,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,OAAhD;AAAwD,QAAA,EAAE,EAAC,QAA3D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAT,CADA,CARJ,eAaI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA,oBAAC,OAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAS,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,OAAhD;AAAwD,QAAA,EAAE,EAAC,GAA3D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAAT,CADA,CAbJ,CAJR,CANV,CADR,CADU,GAuCV,IAxCA,CADF;AAgDH;;;;EAnD2Bf,S;;AAqD5B,eAAeY,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl, NavItem } from 'react-bootstrap';\nimport { NavLink,Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const isLoggedIn = this.props.isLoggedIn;\n return (\n
\n { isLoggedIn ? \n \n \n \n \n :\n null\n }\n \n \n\n
\n); \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/1f28b99be1b1cfb4c086506584879ad1.json b/node_modules/.cache/babel-loader/a1d868db37df015c03759b2c7518ce15.json similarity index 100% rename from node_modules/.cache/babel-loader/1f28b99be1b1cfb4c086506584879ad1.json rename to node_modules/.cache/babel-loader/a1d868db37df015c03759b2c7518ce15.json diff --git a/node_modules/.cache/babel-loader/179a7ebeea2e752744f40bb01841ad5b.json b/node_modules/.cache/babel-loader/a20607f74f0b03d9ccda89904745e5f7.json similarity index 100% rename from node_modules/.cache/babel-loader/179a7ebeea2e752744f40bb01841ad5b.json rename to node_modules/.cache/babel-loader/a20607f74f0b03d9ccda89904745e5f7.json diff --git a/node_modules/.cache/babel-loader/a2691acd2e9ccf9e1328f7849e360403.json b/node_modules/.cache/babel-loader/a2691acd2e9ccf9e1328f7849e360403.json deleted file mode 100644 index bdde88b8..00000000 --- a/node_modules/.cache/babel-loader/a2691acd2e9ccf9e1328f7849e360403.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = function Navigationbar() {\n var navbar_options = /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 25\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 28\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 28\n }\n }, \"Simulator\"))))))));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"Navigationbar\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 64,\n columnNumber: 5\n }\n }, _this.state.isAuthenticated ? navbar_options : null);\n};\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","navbar_options","textDecoration","state","isAuthenticated"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;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AA;AAAA;AAAA;AAAA;AAAA,gBADJ,CADF,eAOE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,QAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aADJ,CAPF,eAYE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,GAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CAZF,CADH,CANV,CADJ,CADA,CADA,CADF;AAoCA,sBACE;AAAK,IAAA,SAAS,EAAC,eAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACI,KAAI,CAACC,KAAL,CAAWC,eAAX,GACAH,cADA,GAIF,IALF,CADF;AAUD,CA/CD;;AAgDA,eAAeD,aAAf","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nconst Navigationbar = () => {\n const navbar_options = (\n \n \n \n \n \n \n \n );\n return (\n
\n { this.state.isAuthenticated ? (\n navbar_options\n )\n :\n null\n }\n
\n );\n};\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/df1d1bc89ca79f6c5bed5e83206b6b62.json b/node_modules/.cache/babel-loader/a2a1d5c2247d1d314686615ea66af73a.json similarity index 100% rename from node_modules/.cache/babel-loader/df1d1bc89ca79f6c5bed5e83206b6b62.json rename to node_modules/.cache/babel-loader/a2a1d5c2247d1d314686615ea66af73a.json diff --git a/node_modules/.cache/babel-loader/148ef000a209f6aad40d6d9af83995f8.json b/node_modules/.cache/babel-loader/a2cdd8552f2ae158a6a5925b98d9d51b.json similarity index 100% rename from node_modules/.cache/babel-loader/148ef000a209f6aad40d6d9af83995f8.json rename to node_modules/.cache/babel-loader/a2cdd8552f2ae158a6a5925b98d9d51b.json diff --git a/node_modules/.cache/babel-loader/a12da77a3cd92e01ad34c934d3190a72.json b/node_modules/.cache/babel-loader/a309e7dc9b7db79b838e55381864d401.json similarity index 100% rename from node_modules/.cache/babel-loader/a12da77a3cd92e01ad34c934d3190a72.json rename to node_modules/.cache/babel-loader/a309e7dc9b7db79b838e55381864d401.json diff --git a/node_modules/.cache/babel-loader/a36842fde239b1679bf3889c18d11a6d.json b/node_modules/.cache/babel-loader/a36842fde239b1679bf3889c18d11a6d.json deleted file mode 100644 index ff81b994..00000000 --- a/node_modules/.cache/babel-loader/a36842fde239b1679bf3889c18d11a6d.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 229,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 230,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 256,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 272,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 280,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 283,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 284,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 287,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(React.Fragment, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 295,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 296,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(NavigationBar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 297,\n columnNumber: 13\n }\n })));\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,OAAOC,aAAP,MAA0B,iBAA1B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAC/C,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAwC;;AACxC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,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CADJ,EAIKgF,OAJL,CADa,EAQZE,SARY,eAUb;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAEjF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAVa,eAcb;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAda,eAkBb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAlBa,CAAjB;AAyBE,0BACE,oBAAC,KAAD,CAAO,QAAP;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CADF,CADF;AAUH;;;;EA9ReZ,S;;AAgSlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n \n \n \n \n \n \n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/11c5ce7ba2ea56a4cf06833b28ba70fd.json b/node_modules/.cache/babel-loader/a36e4e9faee2af578dd2ca73b2535a02.json similarity index 100% rename from node_modules/.cache/babel-loader/11c5ce7ba2ea56a4cf06833b28ba70fd.json rename to node_modules/.cache/babel-loader/a36e4e9faee2af578dd2ca73b2535a02.json diff --git a/node_modules/.cache/babel-loader/a3ac8013d87eca0c12a11efe4dfa7e34.json b/node_modules/.cache/babel-loader/a3ac8013d87eca0c12a11efe4dfa7e34.json deleted file mode 100644 index 22049e9b..00000000 --- a/node_modules/.cache/babel-loader/a3ac8013d87eca0c12a11efe4dfa7e34.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var authenticated = this.props.isLoggedIn;\n var login = this.props.login;\n console.log(\"riddhi\", authenticated);\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 5\n }\n }, authenticated ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 33\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 53,\n columnNumber: 33\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 58,\n columnNumber: 33\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"login\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 63,\n columnNumber: 33\n }\n }, \"Logout\")))))))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 76,\n columnNumber: 4\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 77,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 78,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: this.props.login,\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 79,\n columnNumber: 9\n }\n }, \"Login\")))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","authenticated","props","isLoggedIn","login","console","log","textDecoration","submit"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AACN,UAAMC,aAAa,GAAG,KAAKC,KAAL,CAAWC,UAAjC;AACA,UAAMC,KAAK,GAAG,KAAKF,KAAL,CAAWE,KAAzB;AACAC,MAAAA,OAAO,CAACC,GAAR,CAAY,QAAZ,EAAqBL,aAArB;AAEF,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACKA,aAAa,gBACd,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA,oBAAC,MAAD;AAAQ,QAAA,MAAM,EAAC,I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bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const authenticated = this.props.isLoggedIn;\n const login = this.props.login;\n console.log(\"riddhi\",authenticated);\n \n return (\n
\n {authenticated ? ( \n \n \n \n \n \n \n \n )\n :\n (
\n
    \n
  • \n \n Login\n \n \n
  • \n
\n
) }\n \n
\n )\n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/a3d2dd1be4b6a95acd8b35e6dfb5cc65.json b/node_modules/.cache/babel-loader/a3d2dd1be4b6a95acd8b35e6dfb5cc65.json deleted file mode 100644 index 788dff62..00000000 --- a/node_modules/.cache/babel-loader/a3d2dd1be4b6a95acd8b35e6dfb5cc65.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 229,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 230,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 256,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 272,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 280,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 283,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 284,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 287,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(React.Fragment, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 295,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 296,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 297,\n columnNumber: 13\n }\n })));\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAC/C,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAwC;;AACxC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAO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AA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAEjF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAVa,eAcb;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAda,eAkBb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAlBa,CAAjB;AAyBE,0BACE,oBAAC,KAAD,CAAO,QAAP;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CADF,CADF;AAUH;;;;EA9ReZ,S;;AAgSlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n \n \n \n \n \n \n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/838c873955222e83672a7ec61af6c350.json b/node_modules/.cache/babel-loader/a4293b56da78f8280769c39aa886cabe.json similarity index 100% rename from node_modules/.cache/babel-loader/838c873955222e83672a7ec61af6c350.json rename to node_modules/.cache/babel-loader/a4293b56da78f8280769c39aa886cabe.json diff --git a/node_modules/.cache/babel-loader/4765458a3eebc7b46ee24e3444899f20.json b/node_modules/.cache/babel-loader/a4cc497c9618658de5daee928025ada9.json similarity index 100% rename from node_modules/.cache/babel-loader/4765458a3eebc7b46ee24e3444899f20.json rename to node_modules/.cache/babel-loader/a4cc497c9618658de5daee928025ada9.json diff --git a/node_modules/.cache/babel-loader/a5c30083170f42269b348249977affe4.json b/node_modules/.cache/babel-loader/a5c30083170f42269b348249977affe4.json deleted file mode 100644 index 04b17584..00000000 --- a/node_modules/.cache/babel-loader/a5c30083170f42269b348249977affe4.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n /*#__PURE__*/\n React.createElement(\"div\", {\n class: \"Mainclass\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 218,\n columnNumber: 5\n }\n }, \"const options = this.state.isAuthenticated ?\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 31\n }\n }, \"Logout\")))), \":\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, \"Login\")))), \"const simulator = this.state.isAuthenticated ?\", /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 249,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))), \" : null const mainBody = \", /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 9\n }\n })));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 275,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Mainclass, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 276,\n columnNumber: 12\n }\n }));\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","textDecoration"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE;AAJF,KAOU;AAAA,QAETC,OAFS,GAEEP,KAFF,CAETO,OAFS;AAGhBC,IAAAA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AAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACb;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAEb,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CADa,eAKb;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CALa,eASb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QATa,CAvCjB;AAuDE,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACG,oBAAC,SAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADH,CAFF;AAOH;;;;EAvQeX,S;;AAyQlB,eAAeI,UAAU,CAACQ,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n
\n const options = this.state.isAuthenticated ? \n \n
\n
    \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n
\n return (\n \n
\n \n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/b21326fcb18ae94b00dc062cbe1b83b8.json b/node_modules/.cache/babel-loader/a5f39fbe23e6433d60c33fc0383526e7.json similarity index 100% rename from node_modules/.cache/babel-loader/b21326fcb18ae94b00dc062cbe1b83b8.json rename to node_modules/.cache/babel-loader/a5f39fbe23e6433d60c33fc0383526e7.json diff --git a/node_modules/.cache/babel-loader/0155fc111d408be12453d743dfcd7436.json b/node_modules/.cache/babel-loader/a5f4859b5e2ee18e2989119926534c44.json similarity index 100% rename from node_modules/.cache/babel-loader/0155fc111d408be12453d743dfcd7436.json rename to node_modules/.cache/babel-loader/a5f4859b5e2ee18e2989119926534c44.json diff --git a/node_modules/.cache/babel-loader/a633327205d859189795f6b8b06ee210.json b/node_modules/.cache/babel-loader/a633327205d859189795f6b8b06ee210.json deleted file mode 100644 index fe89625e..00000000 --- a/node_modules/.cache/babel-loader/a633327205d859189795f6b8b06ee210.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Navigation, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 4\n }\n }), /*#__PURE__*/React.createElement(Switch, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 15\n }\n })))));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,SAASC,aAAT,QAA8B,4BAA9B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAEP,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAFO,eAGE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAGE,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEN,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHF,eAIE,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEC,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJF,eAKE,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALF,eAME,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANF,CAHF,CADF,CADF,CADF;AAkBD;;;;EApBmBX,S;;AAuBtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() {\n return (\n \n \n
\n \n \n \n {/* \n */}\n \n \n \n \n \n
\n
\n
\n );\n }\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/a646081dd3671447af932da2f26d12a2.json b/node_modules/.cache/babel-loader/a646081dd3671447af932da2f26d12a2.json deleted file mode 100644 index 99529d33..00000000 --- a/node_modules/.cache/babel-loader/a646081dd3671447af932da2f26d12a2.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink, Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var isLoggedIn = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 31\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 33\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 41\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 45\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 41\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 45\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 41\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 45\n }\n }, \"Simulator\")))))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","Link","styled","header","Navigationbar","isLoggedIn","props","textDecoration"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,EAAiBC,IAAjB,QAA6B,kBAA7B;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;IAIzCC,a;;;;;;;;;;;6BACI;AACN,UAAMC,UAAU,GAAG,KAAKC,KAAL,CAAWD,UAA9B;AAEA,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAGA,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACQ,oBAAC,GAAD;AAAK,QAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACc;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAAA,KAAK,E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,Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \n\n\nclass Navigationbar extends Component { \n render(){\n const isLoggedIn = this.props.isLoggedIn;\n \n return (\n
\n \n \n \n \n \n
\n); \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/d83904e42fc1e38716b5520f03346297.json b/node_modules/.cache/babel-loader/a66c01c3384638f350c7346d01fb95c0.json similarity index 100% rename from node_modules/.cache/babel-loader/d83904e42fc1e38716b5520f03346297.json rename to node_modules/.cache/babel-loader/a66c01c3384638f350c7346d01fb95c0.json diff --git a/node_modules/.cache/babel-loader/35d3a03fe2b0e0adba8a5aca2ac5ba70.json b/node_modules/.cache/babel-loader/a69ab601ca24aa44fee87e0b1b7da2ad.json similarity index 100% rename from node_modules/.cache/babel-loader/35d3a03fe2b0e0adba8a5aca2ac5ba70.json rename to node_modules/.cache/babel-loader/a69ab601ca24aa44fee87e0b1b7da2ad.json diff --git a/node_modules/.cache/babel-loader/d4da3301d24598033e7aa948b78bebe6.json b/node_modules/.cache/babel-loader/a7103f14963b39c15264d86e9bc75b1e.json similarity index 100% rename from node_modules/.cache/babel-loader/d4da3301d24598033e7aa948b78bebe6.json rename to node_modules/.cache/babel-loader/a7103f14963b39c15264d86e9bc75b1e.json diff --git a/node_modules/.cache/babel-loader/a714c6419eadde1cb53dd8dd33c60ad7.json b/node_modules/.cache/babel-loader/a714c6419eadde1cb53dd8dd33c60ad7.json deleted file mode 100644 index 6770b937..00000000 --- a/node_modules/.cache/babel-loader/a714c6419eadde1cb53dd8dd33c60ad7.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink, Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var isLoggedIn = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 13,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 35\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 37\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 41\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 45\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 49\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 45\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 49\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 45\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 49\n }\n }, \"Simulator\"))))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","Link","styled","header","Navigationbar","isLoggedIn","props","textDecoration"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,G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AQI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,OAAhD;AAAwD,QAAA,EAAE,EAAC,QAA3D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CARJ,eAaI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,OAAhD;AAAwD,QAAA,EAAE,EAAC,GAA3D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADJ,CAbJ,CADR,CANd,CAFZ,CADF;AAkCH;;;;EAtC2BZ,S;;AAwC5B,eAAeS,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink,Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nclass Navigationbar extends Component { \n render(){\n const isLoggedIn = this.props.isLoggedIn;\n \n return (\n
\n \n \n \n
\n); \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/a757fcdf1e11980b8a712d108277e841.json b/node_modules/.cache/babel-loader/a757fcdf1e11980b8a712d108277e841.json deleted file mode 100644 index 5e01cd66..00000000 --- a/node_modules/.cache/babel-loader/a757fcdf1e11980b8a712d108277e841.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n submit: this.submit,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 27\n }\n }))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 230,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 35\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 37\n }\n }))), /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 237,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 238,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 248,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 253,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 254,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 24\n }\n }, options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 278,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","isNavbar","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDeco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;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAElF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAJe,eAOf;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAPe,eAUf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAVe,CAAjB;AAeA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAGImF,QAHJ,CAFF;AAUH;;;;EA7Qe/F,S;;AA+QlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? (\n
\n
    \n \n \n\n
\n
\n ):(\n \n \n
\n
\n \n \n \n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n \n )\n \n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n \n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n \n \n {mainBody}\n \n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/a77a684570f597cec4f7b9ceedff17ca.json b/node_modules/.cache/babel-loader/a77a684570f597cec4f7b9ceedff17ca.json deleted file mode 100644 index 28acc3b1..00000000 --- a/node_modules/.cache/babel-loader/a77a684570f597cec4f7b9ceedff17ca.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }()\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator(urlAction) {\n //launchSimulator() {\n //const url = urlAction;\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8080\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_blank');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n this.setState({\n isLoading: true,\n launch: true\n });\n this.attach(this.state.launch);\n\n var _httpClient = axios.create();\n\n _httpClient.defaults.timeout = 600000;\n\n _httpClient.get(\"http://\".concat(this.ip, \"/simulator/start/\").concat(this.state.user.sub, \"/\").concat(this.state.user.given_name, \"/spiri-friend2019@\"), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n simulator: res.data,\n isLoading: false\n });\n\n _this5.launchSimulator(_this5.state.simulator.publicIp);\n }); //this.launchSimulator();\n\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 217,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 218,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 219,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 225,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 226,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 239,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 240,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 241,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 242,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 252,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 254,\n columnNumber: 19\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 267,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 275,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 276,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 280,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 283,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 291,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","urlAction","httpClient","create","defaults","timeout","withCredentials","res","given_name","simulator","data","publicIp","options","textDecoration","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAC/C,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAwC;;AACxC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AA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AD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n launchSimulator(urlAction) {\n //launchSimulator() {\n //const url = urlAction;\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8080\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_blank');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })\n //this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n
\n {mainBody}\n
\n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/13d25ffb7557790a09e271d21206141d.json b/node_modules/.cache/babel-loader/a780c99cbf156b03acce4c69cfc1d0fe.json similarity index 100% rename from node_modules/.cache/babel-loader/13d25ffb7557790a09e271d21206141d.json rename to node_modules/.cache/babel-loader/a780c99cbf156b03acce4c69cfc1d0fe.json diff --git a/node_modules/.cache/babel-loader/2678bdf1ca5c4b9f3c98139d37448689.json b/node_modules/.cache/babel-loader/a7844b85ea8c0556070b4b97e36f043a.json similarity index 100% rename from node_modules/.cache/babel-loader/2678bdf1ca5c4b9f3c98139d37448689.json rename to node_modules/.cache/babel-loader/a7844b85ea8c0556070b4b97e36f043a.json diff --git a/node_modules/.cache/babel-loader/c0f7855d10268fc9298f210ce00684cf.json b/node_modules/.cache/babel-loader/a7a46e6d2d573ea866e8989e783f0eee.json similarity index 100% rename from node_modules/.cache/babel-loader/c0f7855d10268fc9298f210ce00684cf.json rename to node_modules/.cache/babel-loader/a7a46e6d2d573ea866e8989e783f0eee.json diff --git a/node_modules/.cache/babel-loader/a7acecc3ffdf9c20149e6202cf808fa4.json b/node_modules/.cache/babel-loader/a7acecc3ffdf9c20149e6202cf808fa4.json deleted file mode 100644 index 447bd691..00000000 --- a/node_modules/.cache/babel-loader/a7acecc3ffdf9c20149e6202cf808fa4.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n /*#__PURE__*/\n React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 21\n }\n })));\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 7\n }\n }, options);\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing","options"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,SAASC,aAAT,QAA8B,4BAA9B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AAEG;AAAA,0BAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAGI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEL,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHJ,eAII,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJJ,eAKI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALJ,eAMI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEL,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANJ,CADF;AAYV,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACMO,OADN,CADF;AAUD;;;;EAzBmBb,S;;AA4BtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() {\n\n \n \n \n \n \n \n \n \n \n \n \n \n return ( \n
\n {options}\n
\n \n \n \n \n \n )\n };\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/fb3c7c2a98e65a1d2c51fce8b8c9b872.json b/node_modules/.cache/babel-loader/a822a49a0c5ef9025be95bba3b4ff332.json similarity index 100% rename from node_modules/.cache/babel-loader/fb3c7c2a98e65a1d2c51fce8b8c9b872.json rename to node_modules/.cache/babel-loader/a822a49a0c5ef9025be95bba3b4ff332.json diff --git a/node_modules/.cache/babel-loader/999275eaa48b157e5504023ed047af8f.json b/node_modules/.cache/babel-loader/a83e54638cbe0153868a633e9b4590c8.json similarity index 100% rename from node_modules/.cache/babel-loader/999275eaa48b157e5504023ed047af8f.json rename to node_modules/.cache/babel-loader/a83e54638cbe0153868a633e9b4590c8.json diff --git a/node_modules/.cache/babel-loader/5e2674b266313f47bbf0fd19d979b409.json b/node_modules/.cache/babel-loader/a899aa68af003b14390c4df02e63bdb7.json similarity index 100% rename from node_modules/.cache/babel-loader/5e2674b266313f47bbf0fd19d979b409.json rename to node_modules/.cache/babel-loader/a899aa68af003b14390c4df02e63bdb7.json diff --git a/node_modules/.cache/babel-loader/ecea0a64ba45715654ed477878ad2164.json b/node_modules/.cache/babel-loader/a8b55dcaec2515a4b676fd664d96b59f.json similarity index 100% rename from node_modules/.cache/babel-loader/ecea0a64ba45715654ed477878ad2164.json rename to node_modules/.cache/babel-loader/a8b55dcaec2515a4b676fd664d96b59f.json diff --git a/node_modules/.cache/babel-loader/bc314959f48a812bad73d2a80c2efab3.json b/node_modules/.cache/babel-loader/a8be2807027ff34b314103238f9b1600.json similarity index 100% rename from node_modules/.cache/babel-loader/bc314959f48a812bad73d2a80c2efab3.json rename to node_modules/.cache/babel-loader/a8be2807027ff34b314103238f9b1600.json diff --git a/node_modules/.cache/babel-loader/67d208adb4a0b7cad23513887bd6ff97.json b/node_modules/.cache/babel-loader/a8dfe0ea9d8247378ee9a961241c05ff.json similarity index 100% rename from node_modules/.cache/babel-loader/67d208adb4a0b7cad23513887bd6ff97.json rename to node_modules/.cache/babel-loader/a8dfe0ea9d8247378ee9a961241c05ff.json diff --git a/node_modules/.cache/babel-loader/3e7811d1a7ef9df1eac24bcb8ccdc268.json b/node_modules/.cache/babel-loader/a8ef373cfcbf62a5c65ec6c11b4744ff.json similarity index 100% rename from node_modules/.cache/babel-loader/3e7811d1a7ef9df1eac24bcb8ccdc268.json rename to node_modules/.cache/babel-loader/a8ef373cfcbf62a5c65ec6c11b4744ff.json diff --git a/node_modules/.cache/babel-loader/a9204ef77f8e3ddcea1947d7dd6a8f2a.json b/node_modules/.cache/babel-loader/a9204ef77f8e3ddcea1947d7dd6a8f2a.json deleted file mode 100644 index 5f0cc84e..00000000 --- a/node_modules/.cache/babel-loader/a9204ef77f8e3ddcea1947d7dd6a8f2a.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport Navigationbar from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 18\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(\"switch\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 23\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 23\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 23\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 23\n }\n })))));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,OAAOC,aAAP,MAA2B,4BAA3B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACU,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACG,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADH,eAEK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAGA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEL,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHA,eAIA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJA,eAKA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALA,eAMA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEL,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANA,CAFL,CADD,CADV,CADF;AAmBD;;;;EArBmBN,S;;AAwBtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport Navigationbar from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() { \n return ( \n \n \n
\n \n \n {/* \n */} \n \n \n \n \n \n
\n\n
\n
\n \n )\n };\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/a92f2eab474c93f14c7fb433e5c2c0b4.json b/node_modules/.cache/babel-loader/a92f2eab474c93f14c7fb433e5c2c0b4.json deleted file mode 100644 index b035fe5f..00000000 --- a/node_modules/.cache/babel-loader/a92f2eab474c93f14c7fb433e5c2c0b4.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink, Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var isLoggedIn = this.props.isLoggedIn;\n console.log(\"Riddhi\", isLoggedIn);\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 14,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 35\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 37\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 41\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 45\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 49\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 45\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 49\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 45\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 49\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 45\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 47\n }\n }, \"Logout\"))))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","Link","styled","header","Navigationbar","isLoggedIn","props","console","log","textDecoration","submit"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,EAAiBC,IAAjB,QAA6B,kBAA7B;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;IAEzCC,a;;;;;;;;;;;6BACI;AACN,UAAMC,UAAU,GAAG,KAAKC,KAAL,CAAWD,UAA9B;AACAE,MAAAA,OAAO,CAACC,GAAR,CAAY,QAAZ,EAAqBH,UAArB;AAEA,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACY,oBAAC,GAAD;AAAK,QAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACc;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAAA,KAAK,EAAC,MAAX;AAAkB,QAAA,GAAG,EAAEF,MAAvB;AAA+B,QAAA,KAAK,EAAE,MAAtC;AAA8C,QAAA,MAAM,EAAE,MAAtD;AAAA;A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AA;AAAA;AAAA,kBADF,CAlBJ,CADR,CANd,CADZ,CADF;AAsCH;;;;EA3C2Bf,S;;AA6C5B,eAAeS,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink,Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nclass Navigationbar extends Component { \n render(){\n const isLoggedIn = this.props.isLoggedIn;\n console.log(\"Riddhi\",isLoggedIn);\n \n return (\n
\n \n \n
\n); \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/9676b2e7676719b131c2671a538e2b48.json b/node_modules/.cache/babel-loader/a99c5f53f8ae5469f8385573e50db969.json similarity index 100% rename from node_modules/.cache/babel-loader/9676b2e7676719b131c2671a538e2b48.json rename to node_modules/.cache/babel-loader/a99c5f53f8ae5469f8385573e50db969.json diff --git a/node_modules/.cache/babel-loader/61575effa1a8d3cecb4ff4044648542b.json b/node_modules/.cache/babel-loader/a9b1ce521eda6d8d13205a2914aff9a0.json similarity index 100% rename from node_modules/.cache/babel-loader/61575effa1a8d3cecb4ff4044648542b.json rename to node_modules/.cache/babel-loader/a9b1ce521eda6d8d13205a2914aff9a0.json diff --git a/node_modules/.cache/babel-loader/3f79c0e437798097eacbc0ded86ed736.json b/node_modules/.cache/babel-loader/a9ca066a1340330d9ba59c2b251716a2.json similarity index 100% rename from node_modules/.cache/babel-loader/3f79c0e437798097eacbc0ded86ed736.json rename to node_modules/.cache/babel-loader/a9ca066a1340330d9ba59c2b251716a2.json diff --git a/node_modules/.cache/babel-loader/a9e58a7648121719c19e4a3335811031.json b/node_modules/.cache/babel-loader/a9e58a7648121719c19e4a3335811031.json deleted file mode 100644 index 71c3fc95..00000000 --- a/node_modules/.cache/babel-loader/a9e58a7648121719c19e4a3335811031.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport Navigationbar from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 9\n }\n }), /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 18\n }\n }, /*#__PURE__*/React.createElement(\"switch\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 23\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 23\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 23\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 23\n }\n })))));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,OAAOC,aAAP,MAA2B,4BAA3B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,eAEU,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAEK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAGA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEL,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHA,eAIA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJA,eAKA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALA,eAMA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEL,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANA,CAFL,CADD,CAFV,CADF;AAoBD;;;;EAtBmBN,S;;AAyBtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport Navigationbar from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() { \n return ( \n \n \n \n
\n \n \n {/* \n */} \n \n \n \n \n \n
\n\n
\n
\n \n )\n };\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/79a8dc1741c0d4fb19138b4543dd894b.json b/node_modules/.cache/babel-loader/aa0c4e545b012f592d36511a5d445807.json similarity index 100% rename from node_modules/.cache/babel-loader/79a8dc1741c0d4fb19138b4543dd894b.json rename to node_modules/.cache/babel-loader/aa0c4e545b012f592d36511a5d445807.json diff --git a/node_modules/.cache/babel-loader/d302ed30934de647e3df13f1d87f1efe.json b/node_modules/.cache/babel-loader/aa6d36906cc7b4ada8ae9fead03f8bc1.json similarity index 100% rename from node_modules/.cache/babel-loader/d302ed30934de647e3df13f1d87f1efe.json rename to node_modules/.cache/babel-loader/aa6d36906cc7b4ada8ae9fead03f8bc1.json diff --git a/node_modules/.cache/babel-loader/b94e57ebac0b0783033030ec3b7ea3bd.json b/node_modules/.cache/babel-loader/aa7f05f18be8021b3193cda7ad203855.json similarity index 100% rename from node_modules/.cache/babel-loader/b94e57ebac0b0783033030ec3b7ea3bd.json rename to node_modules/.cache/babel-loader/aa7f05f18be8021b3193cda7ad203855.json diff --git a/node_modules/.cache/babel-loader/6033a825046be70bde27982f3e27a9b0.json b/node_modules/.cache/babel-loader/aa993ed3625f75c11ae3daa0a6fca544.json similarity index 100% rename from node_modules/.cache/babel-loader/6033a825046be70bde27982f3e27a9b0.json rename to node_modules/.cache/babel-loader/aa993ed3625f75c11ae3daa0a6fca544.json diff --git a/node_modules/.cache/babel-loader/837f6762239a8984462b7cc3d79cb90c.json b/node_modules/.cache/babel-loader/aaa2760eec5ff6c3646fe14dbf327ef3.json similarity index 100% rename from node_modules/.cache/babel-loader/837f6762239a8984462b7cc3d79cb90c.json rename to node_modules/.cache/babel-loader/aaa2760eec5ff6c3646fe14dbf327ef3.json diff --git a/node_modules/.cache/babel-loader/0af56541da36dec908419d9413e99fc3.json b/node_modules/.cache/babel-loader/aade7ceb953445fd49b5cf03a9525cdf.json similarity index 100% rename from node_modules/.cache/babel-loader/0af56541da36dec908419d9413e99fc3.json rename to node_modules/.cache/babel-loader/aade7ceb953445fd49b5cf03a9525cdf.json diff --git a/node_modules/.cache/babel-loader/bc2d09ae881be3955e6e683f9823a774.json b/node_modules/.cache/babel-loader/aafe60cb1c54fcd3e33941de5d8d72fd.json similarity index 100% rename from node_modules/.cache/babel-loader/bc2d09ae881be3955e6e683f9823a774.json rename to node_modules/.cache/babel-loader/aafe60cb1c54fcd3e33941de5d8d72fd.json diff --git a/node_modules/.cache/babel-loader/ab22d9501ac18e2804fec099a80e693c.json b/node_modules/.cache/babel-loader/ab22d9501ac18e2804fec099a80e693c.json deleted file mode 100644 index 2485194f..00000000 --- a/node_modules/.cache/babel-loader/ab22d9501ac18e2804fec099a80e693c.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport Navigationbar from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 18\n }\n }, /*#__PURE__*/React.createElement(\"switch\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 23\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 23\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 23\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 23\n }\n })))));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,OAAOC,aAAP,MAA2B,4BAA3B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACU,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAGA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEL,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHA,eAIA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJA,eAKA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALA,eAMA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEL,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANA,CADL,CADD,CADV,CADF;AAkBD;;;;EApBmBN,S;;AAuBtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport Navigationbar from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() { \n return ( \n \n \n
\n \n {/* \n */} \n \n \n \n \n \n
\n\n
\n
\n \n )\n };\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/aba4999c9b40cbfc025c4c5b598a2934.json b/node_modules/.cache/babel-loader/aba4999c9b40cbfc025c4c5b598a2934.json deleted file mode 100644 index 8cd0438d..00000000 --- a/node_modules/.cache/babel-loader/aba4999c9b40cbfc025c4c5b598a2934.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var authenticated = this.props.isLoggedIn;\n console.log(\"riddhi\", authenticated);\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 5\n }\n }, authenticated ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 33\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 33\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 33\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 61,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: this.props.logout,\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 33\n }\n }, \"Logout\")))))))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 75,\n columnNumber: 4\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 76,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 77,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: this.props.login,\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 78,\n columnNumber: 9\n }\n }, \"Login\")))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","authenticated","props","isLoggedIn","console","log","textDecoration","submit","logout","login"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AACN,UAAMC,aAAa,GAAG,KAAKC,KAAL,CAAWC,UAAjC;AACAC,MAAAA,OAAO,CAACC,GAAR,CAAY,QAAZ,EAAqBJ,aAArB;AAEF,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACKA,aAAa,gBACd,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AA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;;AAgE5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const authenticated = this.props.isLoggedIn;\n console.log(\"riddhi\",authenticated);\n \n return (\n
\n {authenticated ? ( \n \n \n \n \n \n \n \n )\n :\n (
\n
    \n
  • \n \n Login\n \n \n
  • \n
\n
) }\n \n
\n )\n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/c258a5c6514a07ff9042a42b29ede22c.json b/node_modules/.cache/babel-loader/aba851e63035f702f61d0483885ac272.json similarity index 100% rename from node_modules/.cache/babel-loader/c258a5c6514a07ff9042a42b29ede22c.json rename to node_modules/.cache/babel-loader/aba851e63035f702f61d0483885ac272.json diff --git a/node_modules/.cache/babel-loader/8275fc92de8fca8e915edb5641a5dddf.json b/node_modules/.cache/babel-loader/abcc6654e9183f10ea927759918de860.json similarity index 100% rename from node_modules/.cache/babel-loader/8275fc92de8fca8e915edb5641a5dddf.json rename to node_modules/.cache/babel-loader/abcc6654e9183f10ea927759918de860.json diff --git a/node_modules/.cache/babel-loader/abf93438aa71d79e66383e42c6aa1a15.json b/node_modules/.cache/babel-loader/abf93438aa71d79e66383e42c6aa1a15.json deleted file mode 100644 index 1d79808e..00000000 --- a/node_modules/.cache/babel-loader/abf93438aa71d79e66383e42c6aa1a15.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/NavigationBar.js\";\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nimport './NavigationBar.css';\n\nvar navigationBar = function navigationBar(props) {\n return /*#__PURE__*/React.createElement(\"header\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 7,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"logo\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 9,\n columnNumber: 11\n }\n }), /*#__PURE__*/React.createElement(\"nav\", {\n className: \"navigation-items\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 12,\n columnNumber: 11\n }\n }));\n};\n\nexport default navigationBar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/NavigationBar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","styled","navigationBar","props"],"mappings":";;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,qBAAP;;AACA,IAAMC,aAAa,GAAE,SAAfA,aAAe,CAAAC,KAAK;AAAA,sBAEpB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAEI;AAAK,IAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAFJ,eAKI;AAAK,IAAA,SAAS,EAAC,kBAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IALJ,CAFoB;AAAA,CAA1B;;AAcE,eAAeD,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nimport './NavigationBar.css';\nconst navigationBar= props => (\n \n
\n \n
\n {/* your logo */}\n
\n \n \n
\n \n );\n export default navigationBar;\n "]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/f169ffb45e0d0e14ad2ed3330642a35e.json b/node_modules/.cache/babel-loader/ad197c4397f547b3ecae2f1e79871503.json similarity index 100% rename from node_modules/.cache/babel-loader/f169ffb45e0d0e14ad2ed3330642a35e.json rename to node_modules/.cache/babel-loader/ad197c4397f547b3ecae2f1e79871503.json diff --git a/node_modules/.cache/babel-loader/ad2f7d6c8f8aad2fa77b854833efaa27.json b/node_modules/.cache/babel-loader/ad2f7d6c8f8aad2fa77b854833efaa27.json deleted file mode 100644 index 43265003..00000000 --- a/node_modules/.cache/babel-loader/ad2f7d6c8f8aad2fa77b854833efaa27.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"top_side\",\n src: \"\",\n width: \"100%\",\n height: \"50%\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:4200\",\n target: \"right_side\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 9\n }\n }, \" Console \"));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;AACA,OAAO,iBAAP;;IAEMC,S;;;;;;;;;;;;;;;UAKAC,K,GAAQ;AACNC,MAAAA,SAAS,EAAE,IADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,SAAS,EAAED;AAJL,K;;;;;;6BAQR;AACE,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAGE;AAAQ,QAAA,IAAI,EAAC,UAAb;AAAwB,QAAA,GAAG,EAAC,EAA5B;AAA+B,QAAA,KAAK,EAAC,MAArC;AACJ,QAAA,MAAM,EAAC,KADH;AACS,QAAA,WAAW,EAAC,GADrB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHF,eAKF;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,YAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBALE,CADF;AAgBD;;;;EA9BiBf,S;;AAAlBU,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAET,UAAU,CAACD,OAAD,CAAV,CAAoBW;AADd,C;AAgCvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n \n \n \n Console \n \n \n \n \n\n \n \n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/9c941be023182330c2d5b3dcc809c49e.json b/node_modules/.cache/babel-loader/ad632ec23cadc0c65c5cf7e753445f35.json similarity index 100% rename from node_modules/.cache/babel-loader/9c941be023182330c2d5b3dcc809c49e.json rename to node_modules/.cache/babel-loader/ad632ec23cadc0c65c5cf7e753445f35.json diff --git a/node_modules/.cache/babel-loader/4e8560d7ed26c80789fd19b49eb10f2d.json b/node_modules/.cache/babel-loader/ad76c6c9524818645665160ff98650f5.json similarity index 100% rename from node_modules/.cache/babel-loader/4e8560d7ed26c80789fd19b49eb10f2d.json rename to node_modules/.cache/babel-loader/ad76c6c9524818645665160ff98650f5.json diff --git a/node_modules/.cache/babel-loader/adfbabfb969eacbffc590d64d75d2b27.json b/node_modules/.cache/babel-loader/adfbabfb969eacbffc590d64d75d2b27.json deleted file mode 100644 index aac7e1f2..00000000 --- a/node_modules/.cache/babel-loader/adfbabfb969eacbffc590d64d75d2b27.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 9\n }\n }), /*#__PURE__*/React.createElement(Switch, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 15\n }\n }))));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,SAASC,aAAT,QAA8B,4BAA9B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADA,eAEE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAGI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEN,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHJ,eAII,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEC,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJJ,eAKI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALJ,eAMI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANJ,CAFF,CADF,CADF;AAgBD;;;;EAlBmBX,S;;AAqBtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() {\n return (\n \n \n \n \n {/* \n */}\n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/ae21bd574e13d8f031efd1770b5b723f.json b/node_modules/.cache/babel-loader/ae21bd574e13d8f031efd1770b5b723f.json deleted file mode 100644 index 99f58bb8..00000000 --- a/node_modules/.cache/babel-loader/ae21bd574e13d8f031efd1770b5b723f.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"// This optional code is used to register a service worker.\n// register() is not called by default.\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on subsequent visits to a page, after all the\n// existing tabs open on the page have been closed, since previously cached\n// resources are updated in the background.\n// To learn more about the benefits of this model and instructions on how to\n// opt-in, read https://bit.ly/CRA-PWA\nvar isLocalhost = Boolean( //window.location.hostname === '157.245.211.190' ||\nwindow.location.hostname === 'localhost' || // [::1] is the IPv6 localhost address.\nwindow.location.hostname === '[::1]' || // 127.0.0.0/8 are considered localhost for IPv4.\nwindow.location.hostname.match(/^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)\n/*|| \nwindow.location.hostname.match(\n /^157(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n)*/\n);\nexport function register(config) {\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\n // The URL constructor is available in all browsers that support SW.\n var publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\n\n if (publicUrl.origin !== window.location.origin) {\n // Our service worker won't work if PUBLIC_URL is on a different origin\n // from what our page is served on. This might happen if a CDN is used to\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\n return;\n }\n\n window.addEventListener('load', function () {\n var swUrl = \"\".concat(process.env.PUBLIC_URL, \"/service-worker.js\");\n\n if (isLocalhost) {\n // This is running on localhost. Let's check if a service worker still exists or not.\n checkValidServiceWorker(swUrl, config); // Add some additional logging to localhost, pointing developers to the\n // service worker/PWA documentation.\n\n navigator.serviceWorker.ready.then(function () {\n console.log('This web app is being served cache-first by a service ' + 'worker. To learn more, visit https://bit.ly/CRA-PWA');\n });\n } else {\n // Is not localhost. Just register service worker\n registerValidSW(swUrl, config);\n }\n });\n }\n}\n\nfunction registerValidSW(swUrl, config) {\n navigator.serviceWorker.register(swUrl).then(function (registration) {\n registration.onupdatefound = function () {\n var installingWorker = registration.installing;\n\n if (installingWorker == null) {\n return;\n }\n\n installingWorker.onstatechange = function () {\n if (installingWorker.state === 'installed') {\n if (navigator.serviceWorker.controller) {\n // At this point, the updated precached content has been fetched,\n // but the previous service worker will still serve the older\n // content until all client tabs are closed.\n console.log('New content is available and will be used when all ' + 'tabs for this page are closed. See https://bit.ly/CRA-PWA.'); // Execute callback\n\n if (config && config.onUpdate) {\n config.onUpdate(registration);\n }\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a\n // \"Content is cached for offline use.\" message.\n console.log('Content is cached for offline use.'); // Execute callback\n\n if (config && config.onSuccess) {\n config.onSuccess(registration);\n }\n }\n }\n };\n };\n }).catch(function (error) {\n console.error('Error during service worker registration:', error);\n });\n}\n\nfunction checkValidServiceWorker(swUrl, config) {\n // Check if the service worker can be found. If it can't reload the page.\n fetch(swUrl, {\n headers: {\n 'Service-Worker': 'script'\n }\n }).then(function (response) {\n // Ensure service worker exists, and that we really are getting a JS file.\n var contentType = response.headers.get('content-type');\n\n if (response.status === 404 || contentType != null && contentType.indexOf('javascript') === -1) {\n // No service worker found. Probably a different app. Reload the page.\n navigator.serviceWorker.ready.then(function (registration) {\n registration.unregister().then(function () {\n window.location.reload();\n });\n });\n } else {\n // Service worker found. Proceed as normal.\n registerValidSW(swUrl, config);\n }\n }).catch(function () {\n console.log('No internet connection found. App is running in offline mode.');\n });\n}\n\nexport function unregister() {\n if ('serviceWorker' in navigator) {\n navigator.serviceWorker.ready.then(function (registration) {\n registration.unregister();\n });\n }\n}","map":{"version":3,"sources":["/home/riddhi/frontend/src/serviceWorker.js"],"names":["isLocalhost","Boolean","window","location","hostname","match","register","config","process","env","NODE_ENV","navigator","publicUrl","URL","PUBLIC_URL","href","origin","addEventListener","swUrl","checkValidServiceWorker","serviceWorker","ready","then","console","log","registerValidSW","registration","onupdatefound","installingWorker","installing","onstatechange","state","controller","onUpdate","onSuccess","catch","error","fetch","headers","response","contentType","get","status","indexOf","unregister","reload"],"mappings":"AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEA,IAAMA,WAAW,GAAGC,OAAO,EACzB;AACAC,MAAM,CAACC,QAAP,CAAgBC,QAAhB,KAA6B,WAA7B,IACE;AACAF,MAAM,CAACC,QAAP,CAAgBC,QAAhB,KAA6B,OAF/B,IAGE;AACAF,MAAM,CAACC,QAAP,CAAgBC,QAAhB,CAAyBC,KAAzB,CACE,wDADF;AAGA;;;;AATuB,CAA3B;AAeA,OAAO,SAASC,QAAT,CAAkBC,MAAlB,EAA0B;AAC/B,MAAIC,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAAzB,IAAyC,mBAAmBC,SAAhE,EAA2E;AACzE;AACA,QAAMC,SAAS,GAAG,IAAIC,GAAJ,CAAQL,OAAO,CAACC,GAAR,CAAYK,UAApB,EAAgCZ,MAAM,CAACC,QAAP,CAAgBY,IAAhD,CAAlB;;AAEA,QAAIH,SAAS,CAACI,MAAV,KAAqBd,MAAM,CAACC,QAAP,CAAgBa,MAAzC,EAAiD;AAC/C;AACA;AACA;AACA;AACD;;AAEDd,IAAAA,MAAM,CAACe,gBAAP,CAAwB,MAAxB,EAAgC,YAAM;AACpC,UAAMC,KAAK,aAAMV,OAAO,CAACC,GAAR,CAAYK,UAAlB,uBAAX;;AAEA,UAAId,WAAJ,EAAiB;AACf;AACAmB,QAAAA,uBAAuB,C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EAAI;AACdb,IAAAA,OAAO,CAACa,KAAR,CAAc,2CAAd,EAA2DA,KAA3D;AACD,GAxCH;AAyCD;;AAED,SAASjB,uBAAT,CAAiCD,KAAjC,EAAwCX,MAAxC,EAAgD;AAC9C;AACA8B,EAAAA,KAAK,CAACnB,KAAD,EAAQ;AACXoB,IAAAA,OAAO,EAAE;AAAE,wBAAkB;AAApB;AADE,GAAR,CAAL,CAGGhB,IAHH,CAGQ,UAAAiB,QAAQ,EAAI;AAChB;AACA,QAAMC,WAAW,GAAGD,QAAQ,CAACD,OAAT,CAAiBG,GAAjB,CAAqB,cAArB,CAApB;;AACA,QACEF,QAAQ,CAACG,MAAT,KAAoB,GAApB,IACCF,WAAW,IAAI,IAAf,IAAuBA,WAAW,CAACG,OAAZ,CAAoB,YAApB,MAAsC,CAAC,CAFjE,EAGE;AACA;AACAhC,MAAAA,SAAS,CAACS,aAAV,CAAwBC,KAAxB,CAA8BC,IAA9B,CAAmC,UAAAI,YAAY,EAAI;AACjDA,QAAAA,YAAY,CAACkB,UAAb,GAA0BtB,IAA1B,CAA+B,YAAM;AACnCpB,UAAAA,MAAM,CAACC,QAAP,CAAgB0C,MAAhB;AACD,SAFD;AAGD,OAJD;AAKD,KAVD,MAUO;AACL;AACApB,MAAAA,eAAe,CAACP,KAAD,EAAQX,MAAR,CAAf;AACD;AACF,GApBH,EAqBG4B,KArBH,CAqBS,YAAM;AACXZ,IAAAA,OAAO,CAACC,GAAR,CACE,+DADF;AAGD,GAzBH;AA0BD;;AAED,OAAO,SAASoB,UAAT,GAAsB;AAC3B,MAAI,mBAAmBjC,SAAvB,EAAkC;AAChCA,IAAAA,SAAS,CAACS,aAAV,CAAwBC,KAAxB,CAA8BC,IAA9B,CAAmC,UAAAI,YAAY,EAAI;AACjDA,MAAAA,YAAY,CAACkB,UAAb;AACD,KAFD;AAGD;AACF","sourcesContent":["// This optional code is used to register a service worker.\n// register() is not called by default.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on subsequent visits to a page, after all the\n// existing tabs open on the page have been closed, since previously cached\n// resources are updated in the background.\n\n// To learn more about the benefits of this model and instructions on how to\n// opt-in, read https://bit.ly/CRA-PWA\n\nconst isLocalhost = Boolean(\n //window.location.hostname === '157.245.211.190' ||\n window.location.hostname === 'localhost' ||\n // [::1] is the IPv6 localhost address.\n window.location.hostname === '[::1]' ||\n // 127.0.0.0/8 are considered localhost for IPv4.\n window.location.hostname.match(\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n ) \n /*|| \n window.location.hostname.match(\n /^157(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n )*/\n);\n\nexport function register(config) {\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\n // The URL constructor is available in all browsers that support SW.\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\n \n if (publicUrl.origin !== window.location.origin) {\n // Our service worker won't work if PUBLIC_URL is on a different origin\n // from what our page is served on. This might happen if a CDN is used to\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\n return;\n }\n\n window.addEventListener('load', () => {\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\n\n if (isLocalhost) {\n // This is running on localhost. Let's check if a service worker still exists or not.\n checkValidServiceWorker(swUrl, config);\n\n // Add some additional logging to localhost, pointing developers to the\n // service worker/PWA documentation.\n navigator.serviceWorker.ready.then(() => {\n console.log(\n 'This web app is being served cache-first by a service ' +\n 'worker. To learn more, visit https://bit.ly/CRA-PWA'\n );\n });\n } else {\n // Is not localhost. Just register service worker\n registerValidSW(swUrl, config);\n }\n });\n }\n}\n\nfunction registerValidSW(swUrl, config) {\n navigator.serviceWorker\n .register(swUrl)\n .then(registration => {\n registration.onupdatefound = () => {\n const installingWorker = registration.installing;\n if (installingWorker == null) {\n return;\n }\n installingWorker.onstatechange = () => {\n if (installingWorker.state === 'installed') {\n if (navigator.serviceWorker.controller) {\n // At this point, the updated precached content has been fetched,\n // but the previous service worker will still serve the older\n // content until all client tabs are closed.\n console.log(\n 'New content is available and will be used when all ' +\n 'tabs for this page are closed. See https://bit.ly/CRA-PWA.'\n );\n\n // Execute callback\n if (config && config.onUpdate) {\n config.onUpdate(registration);\n }\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a\n // \"Content is cached for offline use.\" message.\n console.log('Content is cached for offline use.');\n\n // Execute callback\n if (config && config.onSuccess) {\n config.onSuccess(registration);\n }\n }\n }\n };\n };\n })\n .catch(error => {\n console.error('Error during service worker registration:', error);\n });\n}\n\nfunction checkValidServiceWorker(swUrl, config) {\n // Check if the service worker can be found. If it can't reload the page.\n fetch(swUrl, {\n headers: { 'Service-Worker': 'script' }\n })\n .then(response => {\n // Ensure service worker exists, and that we really are getting a JS file.\n const contentType = response.headers.get('content-type');\n if (\n response.status === 404 ||\n (contentType != null && contentType.indexOf('javascript') === -1)\n ) {\n // No service worker found. Probably a different app. Reload the page.\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister().then(() => {\n window.location.reload();\n });\n });\n } else {\n // Service worker found. Proceed as normal.\n registerValidSW(swUrl, config);\n }\n })\n .catch(() => {\n console.log(\n 'No internet connection found. App is running in offline mode.'\n );\n });\n}\n\nexport function unregister() {\n if ('serviceWorker' in navigator) {\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister();\n });\n }\n}\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/dc774438964e67c7317f08cc105a445b.json b/node_modules/.cache/babel-loader/ae8fbc4e889d7a06245875db48a72fd3.json similarity index 100% rename from node_modules/.cache/babel-loader/dc774438964e67c7317f08cc105a445b.json rename to node_modules/.cache/babel-loader/ae8fbc4e889d7a06245875db48a72fd3.json diff --git a/node_modules/.cache/babel-loader/009c5544c2e014090d2741288b448e8c.json b/node_modules/.cache/babel-loader/ae91a03516d3bbbed21c4f9dc9f7be01.json similarity index 100% rename from node_modules/.cache/babel-loader/009c5544c2e014090d2741288b448e8c.json rename to node_modules/.cache/babel-loader/ae91a03516d3bbbed21c4f9dc9f7be01.json diff --git a/node_modules/.cache/babel-loader/b67f8da0eeb7a053e813d424ec1619ef.json b/node_modules/.cache/babel-loader/af42bc9de853f4104098fe08dd6a7197.json similarity index 100% rename from node_modules/.cache/babel-loader/b67f8da0eeb7a053e813d424ec1619ef.json rename to node_modules/.cache/babel-loader/af42bc9de853f4104098fe08dd6a7197.json diff --git a/node_modules/.cache/babel-loader/a4251d30c05c11144105af4263810cc7.json b/node_modules/.cache/babel-loader/af58f7644b11f6556e05e11fc5bb6b15.json similarity index 100% rename from node_modules/.cache/babel-loader/a4251d30c05c11144105af4263810cc7.json rename to node_modules/.cache/babel-loader/af58f7644b11f6556e05e11fc5bb6b15.json diff --git a/node_modules/.cache/babel-loader/aff398d9dfe2f4a4a19ce2ec96ab261a.json b/node_modules/.cache/babel-loader/aff398d9dfe2f4a4a19ce2ec96ab261a.json deleted file mode 100644 index c6f00cdc..00000000 --- a/node_modules/.cache/babel-loader/aff398d9dfe2f4a4a19ce2ec96ab261a.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nvar Styles = styled.div(_templateObject());\nexport var Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Nav.Item, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 21\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(Nav.Item, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 21\n }\n }, \"Task\"))))));\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","styled","Styles","div","Navigationbar"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,IAAMC,MAAM,GAAGD,MAAM,CAACE,GAAV,mBAAZ;AAiBA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;AAAA,sBAC3B,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD;AAAQ,IAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAIE,oBAAC,MAAD,CAAQ,QAAR;AAAiB,IAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,GAAD;AAAK,IAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,GAAD,CAAK,IAAL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAU,oBAAC,GAAD,CAAK,IAAL;AAAU,IAAA,IAAI,EAAC,WAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAAV,CADF,eAEE,oBAAC,GAAD,CAAK,IAAL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAU,oBAAC,GAAD,CAAK,IAAL;AAAU,IAAA,IAAI,EAAC,QAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAAV,CAFF,CADF,CAJF,CADF,CAD2B;AAAA,CAAtB","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nexport const Navigationbar = () => (\n \n \n \n \n \n \n \n \n \n \n)"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/2cc2b4224f06c45bb571613a6331d8cc.json b/node_modules/.cache/babel-loader/b011413e06ae52261c9bec2c7c27a173.json similarity index 100% rename from node_modules/.cache/babel-loader/2cc2b4224f06c45bb571613a6331d8cc.json rename to node_modules/.cache/babel-loader/b011413e06ae52261c9bec2c7c27a173.json diff --git a/node_modules/.cache/babel-loader/9581611fea96b44a50b9b34b13b7350d.json b/node_modules/.cache/babel-loader/b0647292b44ce725e60479859012b1fd.json similarity index 100% rename from node_modules/.cache/babel-loader/9581611fea96b44a50b9b34b13b7350d.json rename to node_modules/.cache/babel-loader/b0647292b44ce725e60479859012b1fd.json diff --git a/node_modules/.cache/babel-loader/b0f3a38866b555845acac4985eae86b8.json b/node_modules/.cache/babel-loader/b0f3a38866b555845acac4985eae86b8.json deleted file mode 100644 index 3bcc9f56..00000000 --- a/node_modules/.cache/babel-loader/b0f3a38866b555845acac4985eae86b8.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink, Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var isLoggedIn = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 7\n }\n }, isLoggedIn ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavItem, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 46\n }\n }, \"Progress\"))), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 41\n }\n }, \"Simulator\")))))) : null);\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","Link","styled","header","Styles","div","Navigationbar","isLoggedIn","props","textDecoration"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,O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AA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAS,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEM,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,UAAhD;AAA2D,QAAA,EAAE,EAAC,WAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAT,CADA,CAFJ,eAQI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,OAAhD;AAAwD,QAAA,EAAE,EAAC,QAA3D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CARJ,eAaI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,OAAhD;AAAwD,QAAA,EAAE,EAAC,GAA3D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADJ,CAbJ,CAJR,CANV,CADR,CADU,GAuCV,IAxCA,CADF;AAgDH;;;;EAnD2Bd,S;;AAqD5B,eAAeW,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink,Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const isLoggedIn = this.props.isLoggedIn;\n return (\n
\n { isLoggedIn ? \n \n \n \n \n :\n null\n }\n \n \n\n
\n); \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/01a4364f809e57ee1236a94be0b83239.json b/node_modules/.cache/babel-loader/b0f53c5a3f7ea72ae2df2d4b79a1addb.json similarity index 100% rename from node_modules/.cache/babel-loader/01a4364f809e57ee1236a94be0b83239.json rename to node_modules/.cache/babel-loader/b0f53c5a3f7ea72ae2df2d4b79a1addb.json diff --git a/node_modules/.cache/babel-loader/b8278e517bbf6a7b2637cc052a962086.json b/node_modules/.cache/babel-loader/b1397d67b7b1e20843c653b4755ae8cf.json similarity index 100% rename from node_modules/.cache/babel-loader/b8278e517bbf6a7b2637cc052a962086.json rename to node_modules/.cache/babel-loader/b1397d67b7b1e20843c653b4755ae8cf.json diff --git a/node_modules/.cache/babel-loader/b18739246362fca639fea170b5de4b3a.json b/node_modules/.cache/babel-loader/b18739246362fca639fea170b5de4b3a.json deleted file mode 100644 index f6166abb..00000000 --- a/node_modules/.cache/babel-loader/b18739246362fca639fea170b5de4b3a.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\nexport var Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 25\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 28\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 48,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 49,\n columnNumber: 28\n }\n }, \"Simulator\"))))))));\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","textDecoration"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;AAiBA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;AAAA,sBAC3B,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAA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AAA2D,IAAA,EAAE,EAAC,QAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aADJ,CAPF,eAYE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,QAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CAZF,CADH,CANV,CADJ,CADA,CADF,CAD2B;AAAA,CAAtB","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nexport const Navigationbar = () => (\n \n \n \n \n \n \n \n)"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/83f175597f63731aea98d703f09f70f3.json b/node_modules/.cache/babel-loader/b19f27e762f459ce94299ef7dff93a51.json similarity index 100% rename from node_modules/.cache/babel-loader/83f175597f63731aea98d703f09f70f3.json rename to node_modules/.cache/babel-loader/b19f27e762f459ce94299ef7dff93a51.json diff --git a/node_modules/.cache/babel-loader/a8cda6e75ba8c9da75ae27b7c1c3f1af.json b/node_modules/.cache/babel-loader/b1c46ab524b699197e0d64f3df94b66d.json similarity index 100% rename from node_modules/.cache/babel-loader/a8cda6e75ba8c9da75ae27b7c1c3f1af.json rename to node_modules/.cache/babel-loader/b1c46ab524b699197e0d64f3df94b66d.json diff --git a/node_modules/.cache/babel-loader/6f26a971bb232881f102b4958d1efb5c.json b/node_modules/.cache/babel-loader/b29b3a7e1066dbc279b0d7e2a9c34d92.json similarity index 100% rename from node_modules/.cache/babel-loader/6f26a971bb232881f102b4958d1efb5c.json rename to node_modules/.cache/babel-loader/b29b3a7e1066dbc279b0d7e2a9c34d92.json diff --git a/node_modules/.cache/babel-loader/80013461b785e74b5bce714ee5e3cdfe.json b/node_modules/.cache/babel-loader/b31bc952612d651f0a82d70a1a50452a.json similarity index 100% rename from node_modules/.cache/babel-loader/80013461b785e74b5bce714ee5e3cdfe.json rename to node_modules/.cache/babel-loader/b31bc952612d651f0a82d70a1a50452a.json diff --git a/node_modules/.cache/babel-loader/b345e6a4c24ebc265eebceb439e3528b.json b/node_modules/.cache/babel-loader/b345e6a4c24ebc265eebceb439e3528b.json deleted file mode 100644 index f4c7d19f..00000000 --- a/node_modules/.cache/babel-loader/b345e6a4c24ebc265eebceb439e3528b.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:4200\",\n target: \"top_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 13\n }\n }, \" Console \"), /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:8888\",\n target: \"bottom_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }\n }, \" Simulator \"), /*#__PURE__*/React.createElement(\"div\", {\n class: \"top\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"top_\",\n src: \"\",\n width: \"100%\",\n height: \"200px\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 15\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n class: \"bottom\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"bottom_\",\n src: \"\",\n width: \"100%\",\n height: \"512\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 15\n }\n })));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;AACA,OAAO,iBAAP;;IAEMC,S;;;;;;;;;;;;;;;UAKAC,K,GAAQ;AACNC,MAAAA,SAAS,EAAE,IADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,SAAS,EAAED;AAJL,K;;;;;;6BAQR;AACE,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,MAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADF,eAEE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,SAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAFF,eAGE;AAAK,QAAA,KAAK,EAAC,KAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAQ,QAAA,IAAI,EAAC,MAAb;AAAoB,QAAA,GAAG,EAAC,EAAxB;AAA2B,QAAA,KAAK,EAAC,MAAjC;AAAyC,QAAA,MAAM,EAAC,OAAhD;AAAwD,QAAA,WAAW,EAAC,GAApE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CAHF,eAME;AAAK,QAAA,KAAK,EAAC,QAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAQ,QAAA,IAAI,EAAC,SAAb;AAAuB,QAAA,GAAG,EAAC,EAA3B;AAA8B,QAAA,KAAK,EAAC,MAApC;AAA2C,QAAA,MAAM,EAAC,KAAlD;AAAwD,QAAA,WAAW,EAAC,GAApE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CANF,CADF;AAkBD;;;;EAhCiBf,S;;AAAlBU,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAET,UAAU,CAACD,OAAD,CAAV,CAAoBW;AADd,C;AAkCvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n Console \n Simulator \n
\n \n
\n
\n \n
\n \n \n \n \n \n \n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/5080a26499f11c44a525fb607bb9a10d.json b/node_modules/.cache/babel-loader/b351762e62372a83e96c819df6aee2b3.json similarity index 100% rename from node_modules/.cache/babel-loader/5080a26499f11c44a525fb607bb9a10d.json rename to node_modules/.cache/babel-loader/b351762e62372a83e96c819df6aee2b3.json diff --git a/node_modules/.cache/babel-loader/6dd9a4338e5e483732ffa09d840add9a.json b/node_modules/.cache/babel-loader/b35db6d1f8c3670dcd6ad8e083023868.json similarity index 100% rename from node_modules/.cache/babel-loader/6dd9a4338e5e483732ffa09d840add9a.json rename to node_modules/.cache/babel-loader/b35db6d1f8c3670dcd6ad8e083023868.json diff --git a/node_modules/.cache/babel-loader/f8ba3d5da645f4bc8f46448b15573c49.json b/node_modules/.cache/babel-loader/b35e75c7296278d0fdb6396ab31189e9.json similarity index 100% rename from node_modules/.cache/babel-loader/f8ba3d5da645f4bc8f46448b15573c49.json rename to node_modules/.cache/babel-loader/b35e75c7296278d0fdb6396ab31189e9.json diff --git a/node_modules/.cache/babel-loader/b36bf24fc6426044eac709ae0479e018.json b/node_modules/.cache/babel-loader/b36bf24fc6426044eac709ae0479e018.json deleted file mode 100644 index 654528ef..00000000 --- a/node_modules/.cache/babel-loader/b36bf24fc6426044eac709ae0479e018.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport Navigationbar from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 18\n }\n }, /*#__PURE__*/React.createElement(\"switch\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 23\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 23\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 23\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 23\n }\n })))));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,OAAOC,aAAP,MAA2B,4BAA3B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACU,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAEK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAIA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEL,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJA,eAKA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALA,eAMA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANA,eAOA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEL,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAPA,CAFL,CADD,CADV,CADF;AAoBD;;;;EAtBmBN,S;;AAyBtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport Navigationbar from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() { \n return ( \n \n \n
\n \n \n \n {/* \n */} \n \n \n \n \n \n
\n\n
\n
\n \n )\n };\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/8f6f5142b7b41fcbfe5b5eb1a49e0f23.json b/node_modules/.cache/babel-loader/b3b1d8eb71ce1ec7e32e3f3808365260.json similarity index 100% rename from node_modules/.cache/babel-loader/8f6f5142b7b41fcbfe5b5eb1a49e0f23.json rename to node_modules/.cache/babel-loader/b3b1d8eb71ce1ec7e32e3f3808365260.json diff --git a/node_modules/.cache/babel-loader/b4810ba9d582029ddfb472bf5a8f01f6.json b/node_modules/.cache/babel-loader/b4810ba9d582029ddfb472bf5a8f01f6.json deleted file mode 100644 index cf3c2df1..00000000 --- a/node_modules/.cache/babel-loader/b4810ba9d582029ddfb472bf5a8f01f6.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:4200\",\n target: \"right_side\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 13\n }\n }, \" Console \"), /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:8888\",\n target: \"right_side\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }\n }, \" Simulator \"), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"top\",\n src: \"\",\n width: \"100%\",\n height: \"50%\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 13\n }\n }));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;AACA,OAAO,iBAAP;;IAEMC,S;;;;;;;;;;;;;;;UAKAC,K,GAAQ;AACNC,MAAAA,SAAS,EAAE,IADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,SAAS,EAAED;AAJL,K;;;;;;6BAQR;AACE,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,YAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADF,eAEE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,YAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAFF,eAGE;AAAQ,QAAA,IAAI,EAAC,KAAb;AAAmB,QAAA,GAAG,EAAC,EAAvB;AAA0B,QAAA,KAAK,EAAC,MAAhC;AACJ,QAAA,MAAM,EAAC,KADH;AACS,QAAA,WAAW,EAAC,GADrB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHF,CADF;AAcD;;;;EA5BiBf,S;;AAAlBU,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAET,UAAU,CAACD,OAAD,CAAV,CAAoBW;AADd,C;AA8BvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n Console \n Simulator \n \n \n \n \n\n \n \n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/dd877489b82a787dbc1b296ecfee29f2.json b/node_modules/.cache/babel-loader/b4ce09c8d7ff6e78d249b07a0c96e8a5.json similarity index 100% rename from node_modules/.cache/babel-loader/dd877489b82a787dbc1b296ecfee29f2.json rename to node_modules/.cache/babel-loader/b4ce09c8d7ff6e78d249b07a0c96e8a5.json diff --git a/node_modules/.cache/babel-loader/5083aa73ba4ed2d856e95d606605ef98.json b/node_modules/.cache/babel-loader/b535c7bd1f04cd481e8179a647e49805.json similarity index 100% rename from node_modules/.cache/babel-loader/5083aa73ba4ed2d856e95d606605ef98.json rename to node_modules/.cache/babel-loader/b535c7bd1f04cd481e8179a647e49805.json diff --git a/node_modules/.cache/babel-loader/d2add5a0df4af3286ecb0b325a601a02.json b/node_modules/.cache/babel-loader/b5768d6c7a85d8861444c161cabfd690.json similarity index 100% rename from node_modules/.cache/babel-loader/d2add5a0df4af3286ecb0b325a601a02.json rename to node_modules/.cache/babel-loader/b5768d6c7a85d8861444c161cabfd690.json diff --git a/node_modules/.cache/babel-loader/d19efc27b66b9eb4f6035e957c16d7a9.json b/node_modules/.cache/babel-loader/b589a029dc341cbf9abd540f977e2c63.json similarity index 100% rename from node_modules/.cache/babel-loader/d19efc27b66b9eb4f6035e957c16d7a9.json rename to node_modules/.cache/babel-loader/b589a029dc341cbf9abd540f977e2c63.json diff --git a/node_modules/.cache/babel-loader/b5d04d52709d248982494e47c21d7375.json b/node_modules/.cache/babel-loader/b5d04d52709d248982494e47c21d7375.json deleted file mode 100644 index 2445ad48..00000000 --- a/node_modules/.cache/babel-loader/b5d04d52709d248982494e47c21d7375.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\n\nvar TaskList = /*#__PURE__*/function (_Component) {\n _inherits(TaskList, _Component);\n\n function TaskList(props) {\n var _this;\n\n _classCallCheck(this, TaskList);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(TaskList).call(this, props));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n var cookies = props.cookies;\n _this.state = {\n tasks: [],\n csrfToken: cookies.get('XSRF-TOKEN'),\n isLoading: true,\n simulator: \"\",\n timeoutActionTaken: false\n };\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.simulatorWindow = null;\n return _this;\n }\n\n _createClass(TaskList, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.loadUser();\n }\n }, {\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(\"h1\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 11\n }\n }, \"About US\"), /*#__PURE__*/React.createElement(\"p\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 11\n }\n }, \"About US page body content\"));\n }\n }]);\n\n return TaskList;\n}(Component);\n\nTaskList.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","TaskList","props","state","isLoading","isAuthenticated","user","undefined","simulator","cookies","tasks","csrfToken","get","timeoutActionTaken","local","prod","status","ip","simulatorWindow","loadUser","propTypes","isRequired","Simulator"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;;IAEMC,Q;;;AAYA,oBAAYC,KAAZ,EAAmB;AAAA;;AAAA;;AACjB,kFAAMA,KAAN;AADiB,UAPnBC,KAOmB,GAPX;AACNC,MAAAA,SAAS,EAAE,IADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,SAAS,EAAED;AAJL,KAOW;AAAA,QAEVE,OAFU,GAECP,KAFD,CAEVO,OAFU;AAGjB,UAAKN,KAAL,GAAa;AAACO,MAAAA,KAAK,EAAE,EAAR;AAAYC,MAAAA,SAAS,EAAEF,OAAO,CAACG,GAAR,CAAY,YAAZ,CAAvB;AAAkDR,MAAAA,SAAS,EAAE,IAA7D;AAAmEI,MAAAA,SAAS,EAAE,EAA9E;AAAkFK,MAAAA,kBAAkB,EAAE;AAAtG,KAAb;AACA,UAAKC,KAAL,GAAa,gBAAb;AACA,UAAKC,IAAL,GAAY,qBAAZ;AACA,UAAKC,MAAL,GAAe,OAAf;;AACA,QAAI,MAAKA,MAAL,KAAgB,OAApB,EAA6B;AAC3B,YAAKC,EAAL,GAAU,MAAKH,KAAf;AACD;;AACD,UAAKI,eAAL,GAAuB,IAAvB;AAViB;AAWlB;;;;wCAEmB;AAClB,WAAKC,QAAL;AACD;;;6BACQ;AACP,0BAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACN;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBADM,eAEN;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sCAFM,CAAR;AAID;;;;EAjCgB5B,S;;AAAjBU,Q,CACKmB,S,GAAY;AACfX,EAAAA,OAAO,EAAET,UAAU,CAACD,OAAD,CAAV,CAAoBsB;AADd,C;AAmCvB,eAAeC,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\n\nclass TaskList extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n constructor(props) {\n super(props);\n const {cookies} = props;\n this.state = {tasks: [], csrfToken: cookies.get('XSRF-TOKEN'), isLoading: true, simulator: \"\", timeoutActionTaken: false};\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.simulatorWindow = null;\n }\n \n componentDidMount() {\n this.loadUser();\n }\n render() {\n return (
\n

About US

\n

About US page body content

\n
);\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/b65746610d92f8a49bac1d580c510d0f.json b/node_modules/.cache/babel-loader/b65746610d92f8a49bac1d580c510d0f.json deleted file mode 100644 index 761d4706..00000000 --- a/node_modules/.cache/babel-loader/b65746610d92f8a49bac1d580c510d0f.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nvar Styles = styled.div(_templateObject());\nexport var Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Brand, {\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 7\n }\n }, \"Tutorial\"), /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Nav.Item, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 21\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(Nav.Item, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 21\n }\n }, \"Task\"))))));\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","styled","Styles","div","Navigationbar"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,IAAMC,MAAM,GAAGD,MAAM,CAACE,GAAV,mBAAZ;AAiBA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;AAAA,sBAC3B,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD;AAAQ,IAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD,CAAQ,KAAR;AAAc,IAAA,IAAI,EAAC,GAAnB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBADF,eAIE,oBAAC,MAAD,CAAQ,QAAR;AAAiB,IAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,GAAD;AAAK,IAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,GAAD,CAAK,IAAL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAU,oBAAC,GAAD,CAAK,IAAL;AAAU,IAAA,IAAI,EAAC,WAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAAV,CADF,eAEE,oBAAC,GAAD,CAAK,IAAL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAU,oBAAC,GAAD,CAAK,IAAL;AAAU,IAAA,IAAI,EAAC,QAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAAV,CAFF,CADF,CAJF,CADF,CAD2B;AAAA,CAAtB","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nexport const Navigationbar = () => (\n \n \n Tutorial\n \n \n \n \n \n \n \n)"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/40742f08e2f4eab38eca470922a738fc.json b/node_modules/.cache/babel-loader/b740e7877110e2df446c53dca977ec0b.json similarity index 100% rename from node_modules/.cache/babel-loader/40742f08e2f4eab38eca470922a738fc.json rename to node_modules/.cache/babel-loader/b740e7877110e2df446c53dca977ec0b.json diff --git a/node_modules/.cache/babel-loader/b76b24ff2a6697ef0874dc41dba3dd41.json b/node_modules/.cache/babel-loader/b76b24ff2a6697ef0874dc41dba3dd41.json deleted file mode 100644 index 62c78332..00000000 --- a/node_modules/.cache/babel-loader/b76b24ff2a6697ef0874dc41dba3dd41.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport Navigationbar from './components/Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 228,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 229,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 242,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 19\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 278,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 282,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 283,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 286,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 294,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 295,\n columnNumber: 11\n }\n }), mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,OAAOC,aAAP,MAA2B,4BAA3B;AACA,OAAOC,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component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport Navigationbar from './components/Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n
\n \n {mainBody}\n
\n \n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/b77171f029f0044132a389904c10d663.json b/node_modules/.cache/babel-loader/b77171f029f0044132a389904c10d663.json deleted file mode 100644 index f4066000..00000000 --- a/node_modules/.cache/babel-loader/b77171f029f0044132a389904c10d663.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = function Navigationbar() {\n var authenticated = _this.props.isLoggedIn;\n console.log(authenticated);\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 5\n }\n }, navbar_options ? /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 33\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 33\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 33\n }\n }, \"Simulator\")))))))) : null);\n};\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","authenticated","props","isLoggedIn","console","log","navbar_options","textDecoration"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;AAkBA,IAAMC,aAAa,GAAG,SAAhBA,aAAgB,GAAM;AAE1B,MAAMC,aAAa,GAAG,KAAI,CAACC,KAAL,CAAWC,UAAjC;AACAC,EAAAA,OAAO,CAACC,GAAR,CAAYJ,aAAZ;AACA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACIK,cAAc,gBACd,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACA,oBAAC,MAAD;AA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,IAAA,EAAE,EAAC,QAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aADJ,CAPF,eAYE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,GAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CAZF,CADF,CANV,CADJ,CADF,CADA,CADc,GAoCd,IArCJ,CADF;AA4CD,CAhDD;;AAiDA,eAAeP,aAAf","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nconst Navigationbar = () => {\n \n const authenticated = this.props.isLoggedIn;\n console.log(authenticated);\n return (\n
\n { navbar_options ? (\n \n \n \n \n \n \n \n ) : (\n null\n ) \n \n }\n
\n );\n};\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/a81fb08f1b2fd83da1eae8d07eee9a5a.json b/node_modules/.cache/babel-loader/b77f17daab03c169759b878dcc1e2c1d.json similarity index 100% rename from node_modules/.cache/babel-loader/a81fb08f1b2fd83da1eae8d07eee9a5a.json rename to node_modules/.cache/babel-loader/b77f17daab03c169759b878dcc1e2c1d.json diff --git a/node_modules/.cache/babel-loader/07a2a03f5191d58ad8c653028ea9dbf1.json b/node_modules/.cache/babel-loader/b7acd2f2fc0eaa946eb68cd082c4ddfd.json similarity index 100% rename from node_modules/.cache/babel-loader/07a2a03f5191d58ad8c653028ea9dbf1.json rename to node_modules/.cache/babel-loader/b7acd2f2fc0eaa946eb68cd082c4ddfd.json diff --git a/node_modules/.cache/babel-loader/01e63e65ef56c79438cb9d7b118897a1.json b/node_modules/.cache/babel-loader/b875c3a66d4eda71a6b57fd8fceef9d2.json similarity index 100% rename from node_modules/.cache/babel-loader/01e63e65ef56c79438cb9d7b118897a1.json rename to node_modules/.cache/babel-loader/b875c3a66d4eda71a6b57fd8fceef9d2.json diff --git a/node_modules/.cache/babel-loader/b8f451b53d3023d1fa5cce6a793f373c.json b/node_modules/.cache/babel-loader/b8f451b53d3023d1fa5cce6a793f373c.json deleted file mode 100644 index 2069ac80..00000000 --- a/node_modules/.cache/babel-loader/b8f451b53d3023d1fa5cce6a793f373c.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport Navigationbar from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(BrowserRouter, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 18\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(\"switch\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 23\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 23\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 23\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 23\n }\n }))))));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,OAAOC,aAAP,MAA2B,4BAA3B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACU,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACG,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADH,eAEK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAGA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEL,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHA,eAIA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJA,eAKA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALA,eAMA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEL,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANA,CAFL,CADD,CADA,CADV,CADF;AAoBD;;;;EAtBmBN,S;;AAyBtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport Navigationbar from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() { \n return ( \n \n \n \n
\n \n \n {/* \n */} \n \n \n \n \n \n
\n
\n
\n
\n \n )\n };\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/b945d1cb6cd3ae78ddf826b6b6c0062a.json b/node_modules/.cache/babel-loader/b945d1cb6cd3ae78ddf826b6b6c0062a.json deleted file mode 100644 index 98d25f5e..00000000 --- a/node_modules/.cache/babel-loader/b945d1cb6cd3ae78ddf826b6b6c0062a.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = function Navigationbar() {\n var authenticated = _this.props.isLoggedIn;\n console.log(authenticated);\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 33\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 33\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 33\n }\n }, \"Simulator\")))))))));\n};\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","authenticated","props","isLoggedIn","console","log","textDecoration"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,Q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AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAES,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,UAAnD;AAA8D,IAAA,EAAE,EAAC,WAAjE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBADJ,CADF,eAOE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,QAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aADJ,CAPF,eAYE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,GAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CAZF,CADF,CANV,CADJ,CADF,CADA,CAFJ,CADF;AAyCD,CA7CD;;AA8CA,eAAeN,aAAf","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nconst Navigationbar = () => {\n \n const authenticated = this.props.isLoggedIn;\n console.log(authenticated);\n return (\n
\n \n \n \n \n \n \n \n \n \n \n
\n );\n};\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/b9b4896158a2af7aa0c9949b0d1a69da.json b/node_modules/.cache/babel-loader/b9b4896158a2af7aa0c9949b0d1a69da.json deleted file mode 100644 index 91059543..00000000 --- a/node_modules/.cache/babel-loader/b9b4896158a2af7aa0c9949b0d1a69da.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n id: \"top\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"h1\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 15\n }\n }, \"About US\"), /*#__PURE__*/React.createElement(\"p\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 15\n }\n }, \"About US page body content\")), /*#__PURE__*/React.createElement(\"div\", {\n id: \"bottom\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"h1\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 15\n }\n }, \"About US\"), /*#__PURE__*/React.createElement(\"p\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 15\n }\n }, \"About US Bottom page body content\")));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;AACA,OAAO,iBAAP;;IAEMC,S;;;;;;;;;;;;;;;UAKAC,K,GAAQ;AACNC,MAAAA,SAAS,EAAE,IADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,SAAS,EAAED;AAJL,K;;;;;;6BAQR;AACE,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAAA,EAAE,EAAC,KAAR;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBADF,eAEE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sCAFF,CADF,eAME;AAAK,QAAA,EAAE,EAAC,QAAR;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBADF,eAEE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6CAFF,CANF,CADF;AAaD;;;;EA3BiBf,S;;AAAlBU,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAET,UAAU,CAACD,OAAD,CAAV,CAAoBW;AADd,C;AA6BvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n
\n

About US

\n

About US page body content

\n
\n\n
\n

About US

\n

About US Bottom page body content

\n
\n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/7e2a8eda2fa614fcdfb2979c1788288a.json b/node_modules/.cache/babel-loader/b9f72249cb4b45527605703bb09d3777.json similarity index 100% rename from node_modules/.cache/babel-loader/7e2a8eda2fa614fcdfb2979c1788288a.json rename to node_modules/.cache/babel-loader/b9f72249cb4b45527605703bb09d3777.json diff --git a/node_modules/.cache/babel-loader/ba4345489ab48dec4087bddc46e3309d.json b/node_modules/.cache/babel-loader/ba4345489ab48dec4087bddc46e3309d.json deleted file mode 100644 index d41aa26a..00000000 --- a/node_modules/.cache/babel-loader/ba4345489ab48dec4087bddc46e3309d.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"\"use strict\";\n\nvar _toConsumableArray = require(\"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/toConsumableArray\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.patternLikeCommon = exports.functionDeclarationCommon = exports.functionTypeAnnotationCommon = exports.functionCommon = void 0;\n\nvar _isValidIdentifier = _interopRequireDefault(require(\"../validators/isValidIdentifier\"));\n\nvar _constants = require(\"../constants\");\n\nvar _utils = _interopRequireWildcard(require(\"./utils\"));\n\nfunction _getRequireWildcardCache() {\n if (typeof WeakMap !== \"function\") return null;\n var cache = new WeakMap();\n\n _getRequireWildcardCache = function _getRequireWildcardCache() {\n return cache;\n };\n\n return cache;\n}\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n }\n\n if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") {\n return {\n default: obj\n };\n }\n\n var cache = _getRequireWildcardCache();\n\n if (cache && cache.has(obj)) {\n return cache.get(obj);\n }\n\n var newObj = {};\n var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;\n\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;\n\n if (desc && (desc.get || desc.set)) {\n Object.defineProperty(newObj, key, desc);\n } else {\n newObj[key] = obj[key];\n }\n }\n }\n\n newObj.default = obj;\n\n if (cache) {\n cache.set(obj, newObj);\n }\n\n return newObj;\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\n(0, _utils.default)(\"ArrayExpression\", {\n fields: {\n elements: {\n validate: (0, _utils.chain)((0, _utils.assertValueType)(\"array\"), (0, _utils.assertEach)((0, _utils.assertNodeOrValueType)(\"null\", \"Expression\", \"SpreadElement\"))),\n default: []\n }\n },\n visitor: [\"elements\"],\n aliases: [\"Expression\"]\n});\n(0, _utils.default)(\"AssignmentExpression\", {\n fields: {\n operator: {\n validate: (0, _utils.assertValueType)(\"string\")\n },\n left: {\n validate: (0, _utils.assertNodeType)(\"LVal\")\n },\n right: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n }\n },\n builder: [\"operator\", \"left\", \"right\"],\n visitor: [\"left\", \"right\"],\n aliases: [\"Expression\"]\n});\n(0, _utils.default)(\"BinaryExpression\", {\n builder: [\"operator\", \"left\", \"right\"],\n fields: {\n operator: {\n validate: (0, _utils.assertOneOf).apply(void 0, _toConsumableArray(_constants.BINARY_OPERATORS))\n },\n left: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n },\n right: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n }\n },\n visitor: [\"left\", \"right\"],\n aliases: [\"Binary\", \"Expression\"]\n});\n(0, _utils.default)(\"InterpreterDirective\", {\n builder: [\"value\"],\n fields: {\n value: {\n validate: (0, _utils.assertValueType)(\"string\")\n }\n }\n});\n(0, _utils.default)(\"Directive\", {\n visitor: [\"value\"],\n fields: {\n value: {\n validate: (0, _utils.assertNodeType)(\"DirectiveLiteral\")\n }\n }\n});\n(0, _utils.default)(\"DirectiveLiteral\", {\n builder: [\"value\"],\n fields: {\n value: {\n validate: (0, _utils.assertValueType)(\"string\")\n }\n }\n});\n(0, _utils.default)(\"BlockStatement\", {\n builder: [\"body\", \"directives\"],\n visitor: [\"directives\", \"body\"],\n fields: {\n directives: {\n validate: (0, _utils.chain)((0, _utils.assertValueType)(\"array\"), (0, _utils.assertEach)((0, _utils.assertNodeType)(\"Directive\"))),\n default: []\n },\n body: {\n validate: (0, _utils.chain)((0, _utils.assertValueType)(\"array\"), (0, _utils.assertEach)((0, _utils.assertNodeType)(\"Statement\")))\n }\n },\n aliases: [\"Scopable\", \"BlockParent\", \"Block\", \"Statement\"]\n});\n(0, _utils.default)(\"BreakStatement\", {\n visitor: [\"label\"],\n fields: {\n label: {\n validate: (0, _utils.assertNodeType)(\"Identifier\"),\n optional: true\n }\n },\n aliases: [\"Statement\", \"Terminatorless\", \"CompletionStatement\"]\n});\n(0, _utils.default)(\"CallExpression\", {\n visitor: [\"callee\", \"arguments\", \"typeParameters\", \"typeArguments\"],\n builder: [\"callee\", \"arguments\"],\n aliases: [\"Expression\"],\n fields: {\n callee: {\n validate: (0, _utils.assertNodeType)(\"Expression\", \"V8IntrinsicIdentifier\")\n },\n arguments: {\n validate: (0, _utils.chain)((0, _utils.assertValueType)(\"array\"), (0, _utils.assertEach)((0, _utils.assertNodeType)(\"Expression\", \"SpreadElement\", \"JSXNamespacedName\", \"ArgumentPlaceholder\")))\n },\n optional: {\n validate: (0, _utils.assertOneOf)(true, false),\n optional: true\n },\n typeArguments: {\n validate: (0, _utils.assertNodeType)(\"TypeParameterInstantiation\"),\n optional: true\n },\n typeParameters: {\n validate: (0, _utils.assertNodeType)(\"TSTypeParameterInstantiation\"),\n optional: true\n }\n }\n});\n(0, _utils.default)(\"CatchClause\", {\n visitor: [\"param\", \"body\"],\n fields: {\n param: {\n validate: (0, _utils.assertNodeType)(\"Identifier\"),\n optional: true\n },\n body: {\n validate: (0, _utils.assertNodeType)(\"BlockStatement\")\n }\n },\n aliases: [\"Scopable\", \"BlockParent\"]\n});\n(0, _utils.default)(\"ConditionalExpression\", {\n visitor: [\"test\", \"consequent\", \"alternate\"],\n fields: {\n test: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n },\n consequent: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n },\n alternate: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n }\n },\n aliases: [\"Expression\", \"Conditional\"]\n});\n(0, _utils.default)(\"ContinueStatement\", {\n visitor: [\"label\"],\n fields: {\n label: {\n validate: (0, _utils.assertNodeType)(\"Identifier\"),\n optional: true\n }\n },\n aliases: [\"Statement\", \"Terminatorless\", \"CompletionStatement\"]\n});\n(0, _utils.default)(\"DebuggerStatement\", {\n aliases: [\"Statement\"]\n});\n(0, _utils.default)(\"DoWhileStatement\", {\n visitor: [\"test\", \"body\"],\n fields: {\n test: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n },\n body: {\n validate: (0, _utils.assertNodeType)(\"Statement\")\n }\n },\n aliases: [\"Statement\", \"BlockParent\", \"Loop\", \"While\", \"Scopable\"]\n});\n(0, _utils.default)(\"EmptyStatement\", {\n aliases: [\"Statement\"]\n});\n(0, _utils.default)(\"ExpressionStatement\", {\n visitor: [\"expression\"],\n fields: {\n expression: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n }\n },\n aliases: [\"Statement\", \"ExpressionWrapper\"]\n});\n(0, _utils.default)(\"File\", {\n builder: [\"program\", \"comments\", \"tokens\"],\n visitor: [\"program\"],\n fields: {\n program: {\n validate: (0, _utils.assertNodeType)(\"Program\")\n }\n }\n});\n(0, _utils.default)(\"ForInStatement\", {\n visitor: [\"left\", \"right\", \"body\"],\n aliases: [\"Scopable\", \"Statement\", \"For\", \"BlockParent\", \"Loop\", \"ForXStatement\"],\n fields: {\n left: {\n validate: (0, _utils.assertNodeType)(\"VariableDeclaration\", \"LVal\")\n },\n right: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n },\n body: {\n validate: (0, _utils.assertNodeType)(\"Statement\")\n }\n }\n});\n(0, _utils.default)(\"ForStatement\", {\n visitor: [\"init\", \"test\", \"update\", \"body\"],\n aliases: [\"Scopable\", \"Statement\", \"For\", \"BlockParent\", \"Loop\"],\n fields: {\n init: {\n validate: (0, _utils.assertNodeType)(\"VariableDeclaration\", \"Expression\"),\n optional: true\n },\n test: {\n validate: (0, _utils.assertNodeType)(\"Expression\"),\n optional: true\n },\n update: {\n validate: (0, _utils.assertNodeType)(\"Expression\"),\n optional: true\n },\n body: {\n validate: (0, _utils.assertNodeType)(\"Statement\")\n }\n }\n});\nvar functionCommon = {\n params: {\n validate: (0, _utils.chain)((0, _utils.assertValueType)(\"array\"), (0, _utils.assertEach)((0, _utils.assertNodeType)(\"Identifier\", \"Pattern\", \"RestElement\", \"TSParameterProperty\")))\n },\n generator: {\n default: false,\n validate: (0, _utils.assertValueType)(\"boolean\")\n },\n async: {\n validate: (0, _utils.assertValueType)(\"boolean\"),\n default: false\n }\n};\nexports.functionCommon = functionCommon;\nvar functionTypeAnnotationCommon = {\n returnType: {\n validate: (0, _utils.assertNodeType)(\"TypeAnnotation\", \"TSTypeAnnotation\", \"Noop\"),\n optional: true\n },\n typeParameters: {\n validate: (0, _utils.assertNodeType)(\"TypeParameterDeclaration\", \"TSTypeParameterDeclaration\", \"Noop\"),\n optional: true\n }\n};\nexports.functionTypeAnnotationCommon = functionTypeAnnotationCommon;\nvar functionDeclarationCommon = Object.assign({}, functionCommon, {\n declare: {\n validate: (0, _utils.assertValueType)(\"boolean\"),\n optional: true\n },\n id: {\n validate: (0, _utils.assertNodeType)(\"Identifier\"),\n optional: true\n }\n});\nexports.functionDeclarationCommon = functionDeclarationCommon;\n(0, _utils.default)(\"FunctionDeclaration\", {\n builder: [\"id\", \"params\", \"body\", \"generator\", \"async\"],\n visitor: [\"id\", \"params\", \"body\", \"returnType\", \"typeParameters\"],\n fields: Object.assign({}, functionDeclarationCommon, {}, functionTypeAnnotationCommon, {\n body: {\n validate: (0, _utils.assertNodeType)(\"BlockStatement\")\n }\n }),\n aliases: [\"Scopable\", \"Function\", \"BlockParent\", \"FunctionParent\", \"Statement\", \"Pureish\", \"Declaration\"]\n});\n(0, _utils.default)(\"FunctionExpression\", {\n inherits: \"FunctionDeclaration\",\n aliases: [\"Scopable\", \"Function\", \"BlockParent\", \"FunctionParent\", \"Expression\", \"Pureish\"],\n fields: Object.assign({}, functionCommon, {}, functionTypeAnnotationCommon, {\n id: {\n validate: (0, _utils.assertNodeType)(\"Identifier\"),\n optional: true\n },\n body: {\n validate: (0, _utils.assertNodeType)(\"BlockStatement\")\n }\n })\n});\nvar patternLikeCommon = {\n typeAnnotation: {\n validate: (0, _utils.assertNodeType)(\"TypeAnnotation\", \"TSTypeAnnotation\", \"Noop\"),\n optional: true\n },\n decorators: {\n validate: (0, _utils.chain)((0, _utils.assertValueType)(\"array\"), (0, _utils.assertEach)((0, _utils.assertNodeType)(\"Decorator\")))\n }\n};\nexports.patternLikeCommon = patternLikeCommon;\n(0, _utils.default)(\"Identifier\", {\n builder: [\"name\"],\n visitor: [\"typeAnnotation\", \"decorators\"],\n aliases: [\"Expression\", \"PatternLike\", \"LVal\", \"TSEntityName\"],\n fields: Object.assign({}, patternLikeCommon, {\n name: {\n validate: (0, _utils.chain)(function (node, key, val) {\n if (!(0, _isValidIdentifier.default)(val)) {}\n }, (0, _utils.assertValueType)(\"string\"))\n },\n optional: {\n validate: (0, _utils.assertValueType)(\"boolean\"),\n optional: true\n }\n })\n});\n(0, _utils.default)(\"IfStatement\", {\n visitor: [\"test\", \"consequent\", \"alternate\"],\n aliases: [\"Statement\", \"Conditional\"],\n fields: {\n test: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n },\n consequent: {\n validate: (0, _utils.assertNodeType)(\"Statement\")\n },\n alternate: {\n optional: true,\n validate: (0, _utils.assertNodeType)(\"Statement\")\n }\n }\n});\n(0, _utils.default)(\"LabeledStatement\", {\n visitor: [\"label\", \"body\"],\n aliases: [\"Statement\"],\n fields: {\n label: {\n validate: (0, _utils.assertNodeType)(\"Identifier\")\n },\n body: {\n validate: (0, _utils.assertNodeType)(\"Statement\")\n }\n }\n});\n(0, _utils.default)(\"StringLiteral\", {\n builder: [\"value\"],\n fields: {\n value: {\n validate: (0, _utils.assertValueType)(\"string\")\n }\n },\n aliases: [\"Expression\", \"Pureish\", \"Literal\", \"Immutable\"]\n});\n(0, _utils.default)(\"NumericLiteral\", {\n builder: [\"value\"],\n deprecatedAlias: \"NumberLiteral\",\n fields: {\n value: {\n validate: (0, _utils.assertValueType)(\"number\")\n }\n },\n aliases: [\"Expression\", \"Pureish\", \"Literal\", \"Immutable\"]\n});\n(0, _utils.default)(\"NullLiteral\", {\n aliases: [\"Expression\", \"Pureish\", \"Literal\", \"Immutable\"]\n});\n(0, _utils.default)(\"BooleanLiteral\", {\n builder: [\"value\"],\n fields: {\n value: {\n validate: (0, _utils.assertValueType)(\"boolean\")\n }\n },\n aliases: [\"Expression\", \"Pureish\", \"Literal\", \"Immutable\"]\n});\n(0, _utils.default)(\"RegExpLiteral\", {\n builder: [\"pattern\", \"flags\"],\n deprecatedAlias: \"RegexLiteral\",\n aliases: [\"Expression\", \"Literal\"],\n fields: {\n pattern: {\n validate: (0, _utils.assertValueType)(\"string\")\n },\n flags: {\n validate: (0, _utils.assertValueType)(\"string\"),\n default: \"\"\n }\n }\n});\n(0, _utils.default)(\"LogicalExpression\", {\n builder: [\"operator\", \"left\", \"right\"],\n visitor: [\"left\", \"right\"],\n aliases: [\"Binary\", \"Expression\"],\n fields: {\n operator: {\n validate: (0, _utils.assertOneOf).apply(void 0, _toConsumableArray(_constants.LOGICAL_OPERATORS))\n },\n left: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n },\n right: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n }\n }\n});\n(0, _utils.default)(\"MemberExpression\", {\n builder: [\"object\", \"property\", \"computed\", \"optional\"],\n visitor: [\"object\", \"property\"],\n aliases: [\"Expression\", \"LVal\"],\n fields: {\n object: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n },\n property: {\n validate: function () {\n var normal = (0, _utils.assertNodeType)(\"Identifier\", \"PrivateName\");\n var computed = (0, _utils.assertNodeType)(\"Expression\");\n return function (node, key, val) {\n var validator = node.computed ? computed : normal;\n validator(node, key, val);\n };\n }()\n },\n computed: {\n default: false\n },\n optional: {\n validate: (0, _utils.assertOneOf)(true, false),\n optional: true\n }\n }\n});\n(0, _utils.default)(\"NewExpression\", {\n inherits: \"CallExpression\"\n});\n(0, _utils.default)(\"Program\", {\n visitor: [\"directives\", \"body\"],\n builder: [\"body\", \"directives\", \"sourceType\", \"interpreter\"],\n fields: {\n sourceFile: {\n validate: (0, _utils.assertValueType)(\"string\")\n },\n sourceType: {\n validate: (0, _utils.assertOneOf)(\"script\", \"module\"),\n default: \"script\"\n },\n interpreter: {\n validate: (0, _utils.assertNodeType)(\"InterpreterDirective\"),\n default: null,\n optional: true\n },\n directives: {\n validate: (0, _utils.chain)((0, _utils.assertValueType)(\"array\"), (0, _utils.assertEach)((0, _utils.assertNodeType)(\"Directive\"))),\n default: []\n },\n body: {\n validate: (0, _utils.chain)((0, _utils.assertValueType)(\"array\"), (0, _utils.assertEach)((0, _utils.assertNodeType)(\"Statement\")))\n }\n },\n aliases: [\"Scopable\", \"BlockParent\", \"Block\"]\n});\n(0, _utils.default)(\"ObjectExpression\", {\n visitor: [\"properties\"],\n aliases: [\"Expression\"],\n fields: {\n properties: {\n validate: (0, _utils.chain)((0, _utils.assertValueType)(\"array\"), (0, _utils.assertEach)((0, _utils.assertNodeType)(\"ObjectMethod\", \"ObjectProperty\", \"SpreadElement\")))\n }\n }\n});\n(0, _utils.default)(\"ObjectMethod\", {\n builder: [\"kind\", \"key\", \"params\", \"body\", \"computed\"],\n fields: Object.assign({}, functionCommon, {}, functionTypeAnnotationCommon, {\n kind: {\n validate: (0, _utils.chain)((0, _utils.assertValueType)(\"string\"), (0, _utils.assertOneOf)(\"method\", \"get\", \"set\")),\n default: \"method\"\n },\n computed: {\n validate: (0, _utils.assertValueType)(\"boolean\"),\n default: false\n },\n key: {\n validate: function () {\n var normal = (0, _utils.assertNodeType)(\"Identifier\", \"StringLiteral\", \"NumericLiteral\");\n var computed = (0, _utils.assertNodeType)(\"Expression\");\n return function (node, key, val) {\n var validator = node.computed ? computed : normal;\n validator(node, key, val);\n };\n }()\n },\n decorators: {\n validate: (0, _utils.chain)((0, _utils.assertValueType)(\"array\"), (0, _utils.assertEach)((0, _utils.assertNodeType)(\"Decorator\")))\n },\n body: {\n validate: (0, _utils.assertNodeType)(\"BlockStatement\")\n }\n }),\n visitor: [\"key\", \"params\", \"body\", \"decorators\", \"returnType\", \"typeParameters\"],\n aliases: [\"UserWhitespacable\", \"Function\", \"Scopable\", \"BlockParent\", \"FunctionParent\", \"Method\", \"ObjectMember\"]\n});\n(0, _utils.default)(\"ObjectProperty\", {\n builder: [\"key\", \"value\", \"computed\", \"shorthand\", \"decorators\"],\n fields: {\n computed: {\n validate: (0, _utils.assertValueType)(\"boolean\"),\n default: false\n },\n key: {\n validate: function () {\n var normal = (0, _utils.assertNodeType)(\"Identifier\", \"StringLiteral\", \"NumericLiteral\");\n var computed = (0, _utils.assertNodeType)(\"Expression\");\n return function (node, key, val) {\n var validator = node.computed ? computed : normal;\n validator(node, key, val);\n };\n }()\n },\n value: {\n validate: (0, _utils.assertNodeType)(\"Expression\", \"PatternLike\")\n },\n shorthand: {\n validate: (0, _utils.assertValueType)(\"boolean\"),\n default: false\n },\n decorators: {\n validate: (0, _utils.chain)((0, _utils.assertValueType)(\"array\"), (0, _utils.assertEach)((0, _utils.assertNodeType)(\"Decorator\"))),\n optional: true\n }\n },\n visitor: [\"key\", \"value\", \"decorators\"],\n aliases: [\"UserWhitespacable\", \"Property\", \"ObjectMember\"]\n});\n(0, _utils.default)(\"RestElement\", {\n visitor: [\"argument\", \"typeAnnotation\"],\n builder: [\"argument\"],\n aliases: [\"LVal\", \"PatternLike\"],\n deprecatedAlias: \"RestProperty\",\n fields: Object.assign({}, patternLikeCommon, {\n argument: {\n validate: (0, _utils.assertNodeType)(\"LVal\")\n }\n })\n});\n(0, _utils.default)(\"ReturnStatement\", {\n visitor: [\"argument\"],\n aliases: [\"Statement\", \"Terminatorless\", \"CompletionStatement\"],\n fields: {\n argument: {\n validate: (0, _utils.assertNodeType)(\"Expression\"),\n optional: true\n }\n }\n});\n(0, _utils.default)(\"SequenceExpression\", {\n visitor: [\"expressions\"],\n fields: {\n expressions: {\n validate: (0, _utils.chain)((0, _utils.assertValueType)(\"array\"), (0, _utils.assertEach)((0, _utils.assertNodeType)(\"Expression\")))\n }\n },\n aliases: [\"Expression\"]\n});\n(0, _utils.default)(\"ParenthesizedExpression\", {\n visitor: [\"expression\"],\n aliases: [\"Expression\", \"ExpressionWrapper\"],\n fields: {\n expression: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n }\n }\n});\n(0, _utils.default)(\"SwitchCase\", {\n visitor: [\"test\", \"consequent\"],\n fields: {\n test: {\n validate: (0, _utils.assertNodeType)(\"Expression\"),\n optional: true\n },\n consequent: {\n validate: (0, _utils.chain)((0, _utils.assertValueType)(\"array\"), (0, _utils.assertEach)((0, _utils.assertNodeType)(\"Statement\")))\n }\n }\n});\n(0, _utils.default)(\"SwitchStatement\", {\n visitor: [\"discriminant\", \"cases\"],\n aliases: [\"Statement\", \"BlockParent\", \"Scopable\"],\n fields: {\n discriminant: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n },\n cases: {\n validate: (0, _utils.chain)((0, _utils.assertValueType)(\"array\"), (0, _utils.assertEach)((0, _utils.assertNodeType)(\"SwitchCase\")))\n }\n }\n});\n(0, _utils.default)(\"ThisExpression\", {\n aliases: [\"Expression\"]\n});\n(0, _utils.default)(\"ThrowStatement\", {\n visitor: [\"argument\"],\n aliases: [\"Statement\", \"Terminatorless\", \"CompletionStatement\"],\n fields: {\n argument: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n }\n }\n});\n(0, _utils.default)(\"TryStatement\", {\n visitor: [\"block\", \"handler\", \"finalizer\"],\n aliases: [\"Statement\"],\n fields: {\n block: {\n validate: (0, _utils.assertNodeType)(\"BlockStatement\")\n },\n handler: {\n optional: true,\n validate: (0, _utils.assertNodeType)(\"CatchClause\")\n },\n finalizer: {\n optional: true,\n validate: (0, _utils.assertNodeType)(\"BlockStatement\")\n }\n }\n});\n(0, _utils.default)(\"UnaryExpression\", {\n builder: [\"operator\", \"argument\", \"prefix\"],\n fields: {\n prefix: {\n default: true\n },\n argument: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n },\n operator: {\n validate: (0, _utils.assertOneOf).apply(void 0, _toConsumableArray(_constants.UNARY_OPERATORS))\n }\n },\n visitor: [\"argument\"],\n aliases: [\"UnaryLike\", \"Expression\"]\n});\n(0, _utils.default)(\"UpdateExpression\", {\n builder: [\"operator\", \"argument\", \"prefix\"],\n fields: {\n prefix: {\n default: false\n },\n argument: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n },\n operator: {\n validate: (0, _utils.assertOneOf).apply(void 0, _toConsumableArray(_constants.UPDATE_OPERATORS))\n }\n },\n visitor: [\"argument\"],\n aliases: [\"Expression\"]\n});\n(0, _utils.default)(\"VariableDeclaration\", {\n builder: [\"kind\", \"declarations\"],\n visitor: [\"declarations\"],\n aliases: [\"Statement\", \"Declaration\"],\n fields: {\n declare: {\n validate: (0, _utils.assertValueType)(\"boolean\"),\n optional: true\n },\n kind: {\n validate: (0, _utils.chain)((0, _utils.assertValueType)(\"string\"), (0, _utils.assertOneOf)(\"var\", \"let\", \"const\"))\n },\n declarations: {\n validate: (0, _utils.chain)((0, _utils.assertValueType)(\"array\"), (0, _utils.assertEach)((0, _utils.assertNodeType)(\"VariableDeclarator\")))\n }\n }\n});\n(0, _utils.default)(\"VariableDeclarator\", {\n visitor: [\"id\", \"init\"],\n fields: {\n id: {\n validate: (0, _utils.assertNodeType)(\"LVal\")\n },\n definite: {\n optional: true,\n validate: (0, _utils.assertValueType)(\"boolean\")\n },\n init: {\n optional: true,\n validate: (0, _utils.assertNodeType)(\"Expression\")\n }\n }\n});\n(0, _utils.default)(\"WhileStatement\", {\n visitor: [\"test\", \"body\"],\n aliases: [\"Statement\", \"BlockParent\", \"Loop\", \"While\", \"Scopable\"],\n fields: {\n test: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n },\n body: {\n validate: (0, _utils.assertNodeType)(\"BlockStatement\", \"Statement\")\n }\n }\n});\n(0, _utils.default)(\"WithStatement\", {\n visitor: [\"object\", \"body\"],\n aliases: [\"Statement\"],\n fields: {\n object: {\n validate: (0, _utils.assertNodeType)(\"Expression\")\n },\n body: {\n validate: (0, _utils.assertNodeType)(\"BlockStatement\", \"Statement\")\n }\n }\n});","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/bac043842d3d5d3747b95d107ee97102.json b/node_modules/.cache/babel-loader/bac043842d3d5d3747b95d107ee97102.json deleted file mode 100644 index a1105359..00000000 --- a/node_modules/.cache/babel-loader/bac043842d3d5d3747b95d107ee97102.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 225,\n columnNumber: 16\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 237,\n columnNumber: 19\n }\n }, \"Login\")))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 248,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 252,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 253,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 24\n }\n }, options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 275,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","isNavbar","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB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from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n \n
\n \n
    \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n \n
\n
    \n
  • \n \n Login\n \n \n
  • \n
\n
\n
\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/d5c20cc1a217dafcd1e312e233fc3c89.json b/node_modules/.cache/babel-loader/bb352023d763df5d3f9f71ca78bbcbea.json similarity index 100% rename from node_modules/.cache/babel-loader/d5c20cc1a217dafcd1e312e233fc3c89.json rename to node_modules/.cache/babel-loader/bb352023d763df5d3f9f71ca78bbcbea.json diff --git a/node_modules/.cache/babel-loader/0675623f5f6faeea4cf45664dde105bf.json b/node_modules/.cache/babel-loader/bb5bae71c941fa5474e5effa4d4e9145.json similarity index 100% rename from node_modules/.cache/babel-loader/0675623f5f6faeea4cf45664dde105bf.json rename to node_modules/.cache/babel-loader/bb5bae71c941fa5474e5effa4d4e9145.json diff --git a/node_modules/.cache/babel-loader/bb86ea9260a1a373583fbe05a629f92a.json b/node_modules/.cache/babel-loader/bb86ea9260a1a373583fbe05a629f92a.json deleted file mode 100644 index 36ab81aa..00000000 --- a/node_modules/.cache/babel-loader/bb86ea9260a1a373583fbe05a629f92a.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var isLoggedIn = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 7\n }\n }, isLoggedIn ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 41\n }\n }, \"Simulator\"))))) : null);\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","isLoggedIn","props","textDecoration"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA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AAAA;AAAA;AAAA;AAAA;AAAA,oBADJ,CADJ,eAOI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,GAAD,CAAK,IAAL;AAAU,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAjB;AAA8C,QAAA,KAAK,EAAC,OAApD;AAA4D,QAAA,EAAE,EAAC,QAA/D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CAPJ,eAYI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,GAAD,CAAK,IAAL;AAAU,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAjB;AAA8C,QAAA,KAAK,EAAC,OAApD;AAA4D,QAAA,EAAE,EAAC,GAA/D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADJ,CAZJ,CAJR,CAPlB,CADU,GAsCV,IAvCA,CADF;AA+CH;;;;EAlD2Bb,S;;AAoD5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const isLoggedIn = this.props.isLoggedIn;\n return (\n
\n { isLoggedIn ? \n \n \n
\n \n \n \n
\n
\n \n \n \n
    \n
  • \n \n Progress\n \n
  • \n \n
  • \n \n Tasks\n \n
  • \n
  • \n \n Simulator\n \n
  • \n \n
\n \n \n
\n \n
\n \n :\n null\n }\n \n \n\n
\n); \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/39f898c3f02211ff9537fd7661cbc698.json b/node_modules/.cache/babel-loader/bba73ec9900a9fc0a2bfe1c848eab0f1.json similarity index 100% rename from node_modules/.cache/babel-loader/39f898c3f02211ff9537fd7661cbc698.json rename to node_modules/.cache/babel-loader/bba73ec9900a9fc0a2bfe1c848eab0f1.json diff --git a/node_modules/.cache/babel-loader/c3b78ab7b9a36f569694f26578a1d780.json b/node_modules/.cache/babel-loader/bbf9800ec9f305d21a2c64f873c6a1e6.json similarity index 100% rename from node_modules/.cache/babel-loader/c3b78ab7b9a36f569694f26578a1d780.json rename to node_modules/.cache/babel-loader/bbf9800ec9f305d21a2c64f873c6a1e6.json diff --git a/node_modules/.cache/babel-loader/bd6c873465050502bd5ec071a280cd9c.json b/node_modules/.cache/babel-loader/bd6c873465050502bd5ec071a280cd9c.json new file mode 100644 index 00000000..4e88d7cc --- /dev/null +++ b/node_modules/.cache/babel-loader/bd6c873465050502bd5ec071a280cd9c.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _this = this,\n _jsxFileName = \"/home/riddhi/simulation/Gazebo_simulation-Frontend/src/components/filler.js\";\n\nimport React from 'react';\nimport './filler.css';\n\nvar Filler = function Filler(props) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"filler\",\n style: {\n width: \"\".concat(props.percentage, \"%\")\n },\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 5,\n columnNumber: 12\n }\n });\n};\n\nexport default Filler;","map":{"version":3,"sources":["/home/riddhi/simulation/Gazebo_simulation-Frontend/src/components/filler.js"],"names":["React","Filler","props","width","percentage"],"mappings":";;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAO,cAAP;;AAEA,IAAMC,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD,EAAW;AACtB,sBAAO;AAAK,IAAA,SAAS,EAAC,QAAf;AAAwB,IAAA,KAAK,EAAE;AAAEC,MAAAA,KAAK,YAAKD,KAAK,CAACE,UAAX;AAAP,KAA/B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAP;AACH,CAFD;;AAIA,eAAeH,MAAf","sourcesContent":["import React from 'react';\nimport './filler.css';\n\nconst Filler = (props) => {\n return
\n}\n\nexport default Filler;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/bd6d698097cbd9e5f0a1eef1f2f9588c.json b/node_modules/.cache/babel-loader/bd6d698097cbd9e5f0a1eef1f2f9588c.json new file mode 100644 index 00000000..f1948a04 --- /dev/null +++ b/node_modules/.cache/babel-loader/bd6d698097cbd9e5f0a1eef1f2f9588c.json @@ -0,0 +1 @@ +{"ast":null,"code":"\"use strict\";\n\nvar _toConsumableArray = require(\"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/toConsumableArray\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.NOT_LOCAL_BINDING = exports.BLOCK_SCOPED_SYMBOL = exports.INHERIT_KEYS = exports.UNARY_OPERATORS = exports.STRING_UNARY_OPERATORS = exports.NUMBER_UNARY_OPERATORS = exports.BOOLEAN_UNARY_OPERATORS = exports.BINARY_OPERATORS = exports.NUMBER_BINARY_OPERATORS = exports.BOOLEAN_BINARY_OPERATORS = exports.COMPARISON_BINARY_OPERATORS = exports.EQUALITY_BINARY_OPERATORS = exports.BOOLEAN_NUMBER_BINARY_OPERATORS = exports.UPDATE_OPERATORS = exports.LOGICAL_OPERATORS = exports.COMMENT_KEYS = exports.FOR_INIT_KEYS = exports.FLATTENABLE_KEYS = exports.STATEMENT_OR_BLOCK_KEYS = void 0;\nvar STATEMENT_OR_BLOCK_KEYS = [\"consequent\", \"body\", \"alternate\"];\nexports.STATEMENT_OR_BLOCK_KEYS = STATEMENT_OR_BLOCK_KEYS;\nvar FLATTENABLE_KEYS = [\"body\", \"expressions\"];\nexports.FLATTENABLE_KEYS = FLATTENABLE_KEYS;\nvar FOR_INIT_KEYS = [\"left\", \"init\"];\nexports.FOR_INIT_KEYS = FOR_INIT_KEYS;\nvar COMMENT_KEYS = [\"leadingComments\", \"trailingComments\", \"innerComments\"];\nexports.COMMENT_KEYS = COMMENT_KEYS;\nvar LOGICAL_OPERATORS = [\"||\", \"&&\", \"??\"];\nexports.LOGICAL_OPERATORS = LOGICAL_OPERATORS;\nvar UPDATE_OPERATORS = [\"++\", \"--\"];\nexports.UPDATE_OPERATORS = UPDATE_OPERATORS;\nvar BOOLEAN_NUMBER_BINARY_OPERATORS = [\">\", \"<\", \">=\", \"<=\"];\nexports.BOOLEAN_NUMBER_BINARY_OPERATORS = BOOLEAN_NUMBER_BINARY_OPERATORS;\nvar EQUALITY_BINARY_OPERATORS = [\"==\", \"===\", \"!=\", \"!==\"];\nexports.EQUALITY_BINARY_OPERATORS = EQUALITY_BINARY_OPERATORS;\nvar COMPARISON_BINARY_OPERATORS = [].concat(EQUALITY_BINARY_OPERATORS, [\"in\", \"instanceof\"]);\nexports.COMPARISON_BINARY_OPERATORS = COMPARISON_BINARY_OPERATORS;\nvar BOOLEAN_BINARY_OPERATORS = [].concat(_toConsumableArray(COMPARISON_BINARY_OPERATORS), BOOLEAN_NUMBER_BINARY_OPERATORS);\nexports.BOOLEAN_BINARY_OPERATORS = BOOLEAN_BINARY_OPERATORS;\nvar NUMBER_BINARY_OPERATORS = [\"-\", \"/\", \"%\", \"*\", \"**\", \"&\", \"|\", \">>\", \">>>\", \"<<\", \"^\"];\nexports.NUMBER_BINARY_OPERATORS = NUMBER_BINARY_OPERATORS;\nvar BINARY_OPERATORS = [\"+\"].concat(NUMBER_BINARY_OPERATORS, _toConsumableArray(BOOLEAN_BINARY_OPERATORS));\nexports.BINARY_OPERATORS = BINARY_OPERATORS;\nvar BOOLEAN_UNARY_OPERATORS = [\"delete\", \"!\"];\nexports.BOOLEAN_UNARY_OPERATORS = BOOLEAN_UNARY_OPERATORS;\nvar NUMBER_UNARY_OPERATORS = [\"+\", \"-\", \"~\"];\nexports.NUMBER_UNARY_OPERATORS = NUMBER_UNARY_OPERATORS;\nvar STRING_UNARY_OPERATORS = [\"typeof\"];\nexports.STRING_UNARY_OPERATORS = STRING_UNARY_OPERATORS;\nvar UNARY_OPERATORS = [\"void\", \"throw\"].concat(BOOLEAN_UNARY_OPERATORS, NUMBER_UNARY_OPERATORS, STRING_UNARY_OPERATORS);\nexports.UNARY_OPERATORS = UNARY_OPERATORS;\nvar INHERIT_KEYS = {\n optional: [\"typeAnnotation\", \"typeParameters\", \"returnType\"],\n force: [\"start\", \"loc\", \"end\"]\n};\nexports.INHERIT_KEYS = INHERIT_KEYS;\nvar BLOCK_SCOPED_SYMBOL = Symbol.for(\"var used to be block scoped\");\nexports.BLOCK_SCOPED_SYMBOL = BLOCK_SCOPED_SYMBOL;\nvar NOT_LOCAL_BINDING = Symbol.for(\"should not be considered a local binding\");\nexports.NOT_LOCAL_BINDING = NOT_LOCAL_BINDING;","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/4fa67653e55334901be2b6d2541a7de6.json b/node_modules/.cache/babel-loader/bd9633538c7274a0717cb1ba99826289.json similarity index 100% rename from node_modules/.cache/babel-loader/4fa67653e55334901be2b6d2541a7de6.json rename to node_modules/.cache/babel-loader/bd9633538c7274a0717cb1ba99826289.json diff --git a/node_modules/.cache/babel-loader/bdb7b406e8819fd285be08127f72c61c.json b/node_modules/.cache/babel-loader/bdb7b406e8819fd285be08127f72c61c.json deleted file mode 100644 index 52520d20..00000000 --- a/node_modules/.cache/babel-loader/bdb7b406e8819fd285be08127f72c61c.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var authenticated = this.props.isLoggedIn;\n authenticated ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 41\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 61,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 41\n }\n }, \"Logout\")))))))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 77,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 78,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 79,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 80,\n columnNumber: 11\n }\n }, \"Login\"))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink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,CANV,CADJ,CADF,CADF,CADQ,gBA+CN;AAAK,QAAA,EAAE,EAAC,QAAR;AAAiB,QAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAED,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKF,KAAL,CAAWI,KAAhE;AAAuE,QAAA,KAAK,EAAC,OAA7E;AAAqF,QAAA,EAAE,EAAC,EAAxF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADA,CADF,CADA,CA/CP;AA0DA;;;;EA9D2BhB,S;;AAgE5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const authenticated = this.props.isLoggedIn;\n \n authenticated ? (\n \n \n \n \n \n \n \n )\n :\n (\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n )\n \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/dfc4241c599b82c300869cb198c15c52.json b/node_modules/.cache/babel-loader/bdcc381f881d4fb82ca7f76f8853b312.json similarity index 100% rename from node_modules/.cache/babel-loader/dfc4241c599b82c300869cb198c15c52.json rename to node_modules/.cache/babel-loader/bdcc381f881d4fb82ca7f76f8853b312.json diff --git a/node_modules/.cache/babel-loader/b4e42c4102aeb7ae7db8af2bbff25ec9.json b/node_modules/.cache/babel-loader/bdfa466c9b82e1a56b6d5016205b8c3a.json similarity index 100% rename from node_modules/.cache/babel-loader/b4e42c4102aeb7ae7db8af2bbff25ec9.json rename to node_modules/.cache/babel-loader/bdfa466c9b82e1a56b6d5016205b8c3a.json diff --git a/node_modules/.cache/babel-loader/959243ade770f4ca88dbbffc4f00c050.json b/node_modules/.cache/babel-loader/be0d5ca7bdccff12ff7afb609624979b.json similarity index 100% rename from node_modules/.cache/babel-loader/959243ade770f4ca88dbbffc4f00c050.json rename to node_modules/.cache/babel-loader/be0d5ca7bdccff12ff7afb609624979b.json diff --git a/node_modules/.cache/babel-loader/aebbc30bd07324b8d1f3984c47e94ce0.json b/node_modules/.cache/babel-loader/bf3bb3cddbb1ea3d8ea3712dfada894d.json similarity index 100% rename from node_modules/.cache/babel-loader/aebbc30bd07324b8d1f3984c47e94ce0.json rename to node_modules/.cache/babel-loader/bf3bb3cddbb1ea3d8ea3712dfada894d.json diff --git a/node_modules/.cache/babel-loader/bf4e7832a3712ae9024c989c90ae5e43.json b/node_modules/.cache/babel-loader/bf4e7832a3712ae9024c989c90ae5e43.json new file mode 100644 index 00000000..287acbb9 --- /dev/null +++ b/node_modules/.cache/babel-loader/bf4e7832a3712ae9024c989c90ae5e43.json @@ -0,0 +1 @@ +{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/simulation/Gazebo_simulation-Frontend/src/components/Navigationbar.js\";\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink, Link } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var isLoggedIn = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 14,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 35\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 37\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 41\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 45\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 49\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 45\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 49\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 45\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 49\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 45\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 47\n }\n }, \"Logout\"))))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/simulation/Gazebo_simulation-Frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","Link","header","Navigationbar","isLoggedIn","props","textDecoration","submit"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,EAAiBC,IAAjB,QAA6B,kBAA7B;AAEA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;IAEzCC,a;;;;;;;;;;;6BACI;AACN,UAAMC,UAAU,GAAG,KAAKC,KAAL,CAAWD,UAA9B;AAGA,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACY,oBAAC,GAAD;AAAK,QAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACc;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAAA,KAAK,EAAC,MAAX;AAAkB,QAAA,GAAG,EAAEF,MAAvB;AAA+B,QAAA,KAAK,EAAE,MAAtC;AAA8C,QAAA,MAAM,EAAE,MAAtD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CADd,CADF,eAMc;AAAK,QAAA,EAAE,EAAC,QAAR;AAAiB,QAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAEI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEI,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,UAAhD;AAA2D,QAAA,EAAE,EAAC,WAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBADJ,CAFJ,eAQI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,OAAhD;AAAwD,QAAA,EAAE,EAAC,QAA3D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CARJ,eAaI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,OAAhD;AAAwD,QAAA,EAAE,EAAC,GAA3D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADJ,CAbJ,eAkBI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKD,KAAL,CAAWE,MAAhE;AAAwE,QAAA,KAAK,EAAC,QAA9E;AAAuF,QAAA,EAAE,EAAC,GAA1F;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBADF,CAlBJ,CADR,CANd,CADZ,CADF;AAsCH;;;;EA3C2BZ,S;;AA6C5B,eAAeQ,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink,Link } from 'react-router-dom';\n\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nclass Navigationbar extends Component { \n render(){\n const isLoggedIn = this.props.isLoggedIn;\n \n \n return (\n
\n \n \n
\n); \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/344111aaa1ac6db876446b64c91d90c0.json b/node_modules/.cache/babel-loader/bf59a6bf0bfb99a7fafe375c905037ba.json similarity index 100% rename from node_modules/.cache/babel-loader/344111aaa1ac6db876446b64c91d90c0.json rename to node_modules/.cache/babel-loader/bf59a6bf0bfb99a7fafe375c905037ba.json diff --git a/node_modules/.cache/babel-loader/bf9f562b9d3ef1a14a6561b935ff771f.json b/node_modules/.cache/babel-loader/bf9f562b9d3ef1a14a6561b935ff771f.json deleted file mode 100644 index 7dea85ca..00000000 --- a/node_modules/.cache/babel-loader/bf9f562b9d3ef1a14a6561b935ff771f.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8080\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_blank');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 217,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 218,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 219,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 225,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 226,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 239,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 240,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 241,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 242,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 252,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 254,\n columnNumber: 19\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 267,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 275,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 276,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 280,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 283,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 291,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAC/C,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAwC;;AACxC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE;AAJF,KAOU;AAAA,QAETC,OAFS,GAEEP,KAFF,CAETO,OAFS;AAGhBC,IAAAA,OAAO,CAACC,GAAR,CAAYF,OAAZ;AACA,UAAKN,KAAL,CAAWS,SAAX,GAAuBH,OAAO,CAACI,GAAR,CAAY,YAAZ,CAAvB;AACAH,IAAAA,OAAO,CAACC,GAAR,CAAY,MAAKR,KAAL,CAAWS,SAAvB;AACA,UAAKE,KAAL,GAAa,gBAAb;AACA,UAAKC,IAAL,GAAY,qBAAZ;AACA,UAAKC,MAAL,GAAe,OAAf;;AACA,QAAI,MAAKA,MAAL,KAAgB,OAApB,EAA6B;AAC3B,YAA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U,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8080\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_blank');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n
\n {mainBody}\n
\n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/bc2b2eb3247dcbd8726a859ca2744011.json b/node_modules/.cache/babel-loader/bfd9b265a3bad604979f9b4229ca5a82.json similarity index 100% rename from node_modules/.cache/babel-loader/bc2b2eb3247dcbd8726a859ca2744011.json rename to node_modules/.cache/babel-loader/bfd9b265a3bad604979f9b4229ca5a82.json diff --git a/node_modules/.cache/babel-loader/5871b8c1878c6d11cb1495a2f24d8243.json b/node_modules/.cache/babel-loader/c0134387f136e7cfe93b7ee4d1664006.json similarity index 100% rename from node_modules/.cache/babel-loader/5871b8c1878c6d11cb1495a2f24d8243.json rename to node_modules/.cache/babel-loader/c0134387f136e7cfe93b7ee4d1664006.json diff --git a/node_modules/.cache/babel-loader/c83c4a77f14b1ee99966e965b37d08c8.json b/node_modules/.cache/babel-loader/c028cb857c5b7774c008f42fa82498b6.json similarity index 100% rename from node_modules/.cache/babel-loader/c83c4a77f14b1ee99966e965b37d08c8.json rename to node_modules/.cache/babel-loader/c028cb857c5b7774c008f42fa82498b6.json diff --git a/node_modules/.cache/babel-loader/ca807f0d9a1ed95cd4cb872ff0630544.json b/node_modules/.cache/babel-loader/c05d16d8b9e0f3dbd8965851661f2179.json similarity index 100% rename from node_modules/.cache/babel-loader/ca807f0d9a1ed95cd4cb872ff0630544.json rename to node_modules/.cache/babel-loader/c05d16d8b9e0f3dbd8965851661f2179.json diff --git a/node_modules/.cache/babel-loader/fbfa3f7b8a11b1ad1cae954ed10f4ea2.json b/node_modules/.cache/babel-loader/c0754d1320143213877164c29fd9acd6.json similarity index 100% rename from node_modules/.cache/babel-loader/fbfa3f7b8a11b1ad1cae954ed10f4ea2.json rename to node_modules/.cache/babel-loader/c0754d1320143213877164c29fd9acd6.json diff --git a/node_modules/.cache/babel-loader/d311921291a2fc2a880412cefafec7b6.json b/node_modules/.cache/babel-loader/c13b30f470539bee1f38069a4cf628d6.json similarity index 100% rename from node_modules/.cache/babel-loader/d311921291a2fc2a880412cefafec7b6.json rename to node_modules/.cache/babel-loader/c13b30f470539bee1f38069a4cf628d6.json diff --git a/node_modules/.cache/babel-loader/49674b3d411550bba848eb5224f82b09.json b/node_modules/.cache/babel-loader/c1edbf9df7d4d63ff9fb99ba32d079c6.json similarity index 100% rename from node_modules/.cache/babel-loader/49674b3d411550bba848eb5224f82b09.json rename to node_modules/.cache/babel-loader/c1edbf9df7d4d63ff9fb99ba32d079c6.json diff --git a/node_modules/.cache/babel-loader/c25d7d2453614635875db6d59a87b655.json b/node_modules/.cache/babel-loader/c25d7d2453614635875db6d59a87b655.json deleted file mode 100644 index 17ad3cff..00000000 --- a/node_modules/.cache/babel-loader/c25d7d2453614635875db6d59a87b655.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 225,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 247,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 252,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 267,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 272,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 275,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 284,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AAC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A;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CATe,eAaf;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAbe,eAiBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAjBe,CAAjB;AAwBA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIkF,QADJ,CAFF;AAOH;;;;EA/Qe9F,S;;AAiRlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n\n
\n
    \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n \n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/c2c1ff2cd7f886a85e07a077893860da.json b/node_modules/.cache/babel-loader/c2c1ff2cd7f886a85e07a077893860da.json deleted file mode 100644 index 29476098..00000000 --- a/node_modules/.cache/babel-loader/c2c1ff2cd7f886a85e07a077893860da.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 228,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 229,\n columnNumber: 28\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 241,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 242,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 254,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 256,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 267,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 272,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 273,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 276,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 285,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"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AAA;AAAA,8BAJ7B,EAKO,KAAKL,KAAL,CAAWK,MAAX,iBAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAL5B,CAFF,CADS,GAYL,IAZd;AAcE,UAAMqE,QAAQ,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACf;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAElF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CADe,eAKf;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CALe,eASf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QATe,CAAjB;AAgBA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIkF,QADJ,CAFF;AAOH;;;;EAjRe7F,S;;AAmRlB,eAAeI,UAAU,CAACQ,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n\n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n \n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/bb4d41019f0ca7aa4b003d54dc6f568d.json b/node_modules/.cache/babel-loader/c30bbe2f1c823b55b7c8f6eda0ec3172.json similarity index 100% rename from node_modules/.cache/babel-loader/bb4d41019f0ca7aa4b003d54dc6f568d.json rename to node_modules/.cache/babel-loader/c30bbe2f1c823b55b7c8f6eda0ec3172.json diff --git a/node_modules/.cache/babel-loader/9565463368185d0e494d854047d7c0fa.json b/node_modules/.cache/babel-loader/c32dfe1d9930de1d117c117dd06d2d11.json similarity index 100% rename from node_modules/.cache/babel-loader/9565463368185d0e494d854047d7c0fa.json rename to node_modules/.cache/babel-loader/c32dfe1d9930de1d117c117dd06d2d11.json diff --git a/node_modules/.cache/babel-loader/96929174cf020011046bef558a39bf2f.json b/node_modules/.cache/babel-loader/c3a32e7ec0db8351bc7469bc1b1ad99c.json similarity index 100% rename from node_modules/.cache/babel-loader/96929174cf020011046bef558a39bf2f.json rename to node_modules/.cache/babel-loader/c3a32e7ec0db8351bc7469bc1b1ad99c.json diff --git a/node_modules/.cache/babel-loader/b068afac6251bb560f6937e99840695b.json b/node_modules/.cache/babel-loader/c42d28f69ae462d52a6922cda9a13319.json similarity index 100% rename from node_modules/.cache/babel-loader/b068afac6251bb560f6937e99840695b.json rename to node_modules/.cache/babel-loader/c42d28f69ae462d52a6922cda9a13319.json diff --git a/node_modules/.cache/babel-loader/da277c8d434a4fb69e6bf6e823d41eb3.json b/node_modules/.cache/babel-loader/c44688f1f3787ffcddcb11e3e8b56b36.json similarity index 100% rename from node_modules/.cache/babel-loader/da277c8d434a4fb69e6bf6e823d41eb3.json rename to node_modules/.cache/babel-loader/c44688f1f3787ffcddcb11e3e8b56b36.json diff --git a/node_modules/.cache/babel-loader/c46a72cc9c10f13615e662042cb26128.json b/node_modules/.cache/babel-loader/c46a72cc9c10f13615e662042cb26128.json new file mode 100644 index 00000000..fff7a1df --- /dev/null +++ b/node_modules/.cache/babel-loader/c46a72cc9c10f13615e662042cb26128.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _this = this,\n _jsxFileName = \"/home/riddhi/simulation/Gazebo_simulation-Frontend/src/components/progress-bar.js\";\n\nimport React from 'react';\nimport Filler from './filler';\nimport Navigationbar from './Navigationbar';\nimport './progress-bar.css';\n\nvar ProgressBar = function ProgressBar(props) {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 8,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 9,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(\"div\", {\n className: \"progress-bar\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 10,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Filler, {\n percentage: props.percentage,\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 12,\n columnNumber: 13\n }\n })));\n};\n\nexport default ProgressBar;","map":{"version":3,"sources":["/home/riddhi/simulation/Gazebo_simulation-Frontend/src/components/progress-bar.js"],"names":["React","Filler","Navigationbar","ProgressBar","props","percentage"],"mappings":";;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,MAAP,MAAmB,UAAnB;AACA,OAAOC,aAAP,MAA0B,iBAA1B;AACA,OAAO,oBAAP;;AAEA,IAAMC,WAAW,GAAG,SAAdA,WAAc,CAACC,KAAD,EAAW;AAC3B,sBACI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IADJ,eAEA;AAAK,IAAA,SAAS,EAAC,cAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAEI,oBAAC,MAAD;AAAQ,IAAA,UAAU,EAAEA,KAAK,CAACC,UAA1B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAFJ,CAFA,CADJ;AASH,CAVD;;AAYA,eAAeF,WAAf","sourcesContent":["import React from 'react';\nimport Filler from './filler';\nimport Navigationbar from './Navigationbar';\nimport './progress-bar.css';\n\nconst ProgressBar = (props) => {\n return (\n
\n \n
\n \n \n
\n
\n )\n}\n\nexport default ProgressBar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/695e52cdf295780426717ee907605168.json b/node_modules/.cache/babel-loader/c473d39d7af3e04c106cb612e40a68ec.json similarity index 100% rename from node_modules/.cache/babel-loader/695e52cdf295780426717ee907605168.json rename to node_modules/.cache/babel-loader/c473d39d7af3e04c106cb612e40a68ec.json diff --git a/node_modules/.cache/babel-loader/940ba26eba650d296aae18f1f0484db1.json b/node_modules/.cache/babel-loader/c5218f7581bcc7968822e8f20c46cf3b.json similarity index 100% rename from node_modules/.cache/babel-loader/940ba26eba650d296aae18f1f0484db1.json rename to node_modules/.cache/babel-loader/c5218f7581bcc7968822e8f20c46cf3b.json diff --git a/node_modules/.cache/babel-loader/c527dddc775b927bc00d84ea2d37cb05.json b/node_modules/.cache/babel-loader/c527dddc775b927bc00d84ea2d37cb05.json deleted file mode 100644 index 2d51a146..00000000 --- a/node_modules/.cache/babel-loader/c527dddc775b927bc00d84ea2d37cb05.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport Navigationbar from './Navigationbar';\nimport './App.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:4200\",\n target: \"top_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 13\n }\n }, \" Console \"), /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:8888\",\n target: \"bottom_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 13\n }\n }, \" Simulator \"), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"top_\",\n src: \"\",\n width: \"100%\",\n height: \"200px\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"bottom_\",\n src: \"\",\n width: \"100%\",\n height: \"512\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 15\n }\n }));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Navigationbar","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;AACA,OAAOC,aAAP,MAA0B,iBAA1B;AACA,OAAO,WAAP;;IAEMC,S;;;;;;;;;;;;;;;UAKAC,K,GAAQ;AACNC,MAAAA,SAAS,EAAE,IADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,SAAS,EAAED;AAJL,K;;;;;;6BAQR;AACE,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,eAEE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,MAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAFF,eAGE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,SAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAHF,eAKI;AAAQ,QAAA,IAAI,EAAC,MAAb;AAAoB,QAAA,GAAG,EAAC,EAAxB;AAA2B,QAAA,KAAK,EAAC,MAAjC;AAAyC,QAAA,MAAM,EAAC,OAAhD;AAAwD,QAAA,WAAW,EAAC,GAApE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALJ,eAMI;AAAQ,QAAA,IAAI,EAAC,SAAb;AAAuB,QAAA,GAAG,EAAC,EAA3B;AAA8B,QAAA,KAAK,EAAC,MAApC;AAA2C,QAAA,MAAM,EAAC,KAAlD;AAAwD,QAAA,WAAW,EAAC,GAApE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANJ,CADF;AAUD;;;;EAxBiBhB,S;;AAAlBW,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAEV,UAAU,CAACD,OAAD,CAAV,CAAoBY;AADd,C;AA0BvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport Navigationbar from './Navigationbar';\nimport './App.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n \n Console \n Simulator \n \n \n \n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/1bdef1a54f9fc533af5ebc50c02252d9.json b/node_modules/.cache/babel-loader/c5547cbfdaf2101c8c22cf46a6aba38b.json similarity index 100% rename from node_modules/.cache/babel-loader/1bdef1a54f9fc533af5ebc50c02252d9.json rename to node_modules/.cache/babel-loader/c5547cbfdaf2101c8c22cf46a6aba38b.json diff --git a/node_modules/.cache/babel-loader/82f8c948d717ec79b7ec44c82b4c0640.json b/node_modules/.cache/babel-loader/c5bb95c29291276d5e100d70f09524c0.json similarity index 100% rename from node_modules/.cache/babel-loader/82f8c948d717ec79b7ec44c82b4c0640.json rename to node_modules/.cache/babel-loader/c5bb95c29291276d5e100d70f09524c0.json diff --git a/node_modules/.cache/babel-loader/26b3f13e9acf6583ed70642a45b21fa0.json b/node_modules/.cache/babel-loader/c7087ac0f117cfa23cffa3b0707514ad.json similarity index 100% rename from node_modules/.cache/babel-loader/26b3f13e9acf6583ed70642a45b21fa0.json rename to node_modules/.cache/babel-loader/c7087ac0f117cfa23cffa3b0707514ad.json diff --git a/node_modules/.cache/babel-loader/084ed3b6e731d0371e362dd6ebac6e7d.json b/node_modules/.cache/babel-loader/c72dea7ae954f5dbfafc628ec0f6243b.json similarity index 100% rename from node_modules/.cache/babel-loader/084ed3b6e731d0371e362dd6ebac6e7d.json rename to node_modules/.cache/babel-loader/c72dea7ae954f5dbfafc628ec0f6243b.json diff --git a/node_modules/.cache/babel-loader/4d8310b7fa0111ab292e7ee95eb02101.json b/node_modules/.cache/babel-loader/c74a4fa6de58413d28b7017427e7e5bd.json similarity index 100% rename from node_modules/.cache/babel-loader/4d8310b7fa0111ab292e7ee95eb02101.json rename to node_modules/.cache/babel-loader/c74a4fa6de58413d28b7017427e7e5bd.json diff --git a/node_modules/.cache/babel-loader/5e3e75a5f6929a8bc06b23504822d6f6.json b/node_modules/.cache/babel-loader/c76dc0f07eb8455949600a18f83c43bb.json similarity index 100% rename from node_modules/.cache/babel-loader/5e3e75a5f6929a8bc06b23504822d6f6.json rename to node_modules/.cache/babel-loader/c76dc0f07eb8455949600a18f83c43bb.json diff --git a/node_modules/.cache/babel-loader/c8d39e59e2b1778073ba60140eb9ac5e.json b/node_modules/.cache/babel-loader/c7c4e203339669ae3da05e59f22120f4.json similarity index 100% rename from node_modules/.cache/babel-loader/c8d39e59e2b1778073ba60140eb9ac5e.json rename to node_modules/.cache/babel-loader/c7c4e203339669ae3da05e59f22120f4.json diff --git a/node_modules/.cache/babel-loader/c3a72a9355a65277d9ded1cf03e51bea.json b/node_modules/.cache/babel-loader/c7c5a5584963cffa8eb2e4fc64a4514b.json similarity index 100% rename from node_modules/.cache/babel-loader/c3a72a9355a65277d9ded1cf03e51bea.json rename to node_modules/.cache/babel-loader/c7c5a5584963cffa8eb2e4fc64a4514b.json diff --git a/node_modules/.cache/babel-loader/c7de52afd676f7db754614bff55fea73.json b/node_modules/.cache/babel-loader/c7de52afd676f7db754614bff55fea73.json deleted file mode 100644 index f882c9ed..00000000 --- a/node_modules/.cache/babel-loader/c7de52afd676f7db754614bff55fea73.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/progress-bar.js\";\n\nimport React from 'react';\nimport Filler from './filler';\nimport Navigationbar from './Navigationbar';\nimport './progress-bar.css';\n\nvar ProgressBar = function ProgressBar(props) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"progress-bar\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 8,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 9,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(Filler, {\n percentage: props.percentage,\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 10,\n columnNumber: 13\n }\n }));\n};\n\nexport default ProgressBar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/progress-bar.js"],"names":["React","Filler","Navigationbar","ProgressBar","props","percentage"],"mappings":";;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,MAAP,MAAmB,UAAnB;AACA,OAAOC,aAAP,MAA0B,iBAA1B;AACA,OAAO,oBAAP;;AAEA,IAAMC,WAAW,GAAG,SAAdA,WAAc,CAACC,KAAD,EAAW;AAC3B,sBACI;AAAK,IAAA,SAAS,EAAC,cAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IADJ,eAEI,oBAAC,MAAD;AAAQ,IAAA,UAAU,EAAEA,KAAK,CAACC,UAA1B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAFJ,CADJ;AAMH,CAPD;;AASA,eAAeF,WAAf","sourcesContent":["import React from 'react';\nimport Filler from './filler';\nimport Navigationbar from './Navigationbar';\nimport './progress-bar.css';\n\nconst ProgressBar = (props) => {\n return (\n
\n \n \n
\n )\n}\n\nexport default ProgressBar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/763351ad9a5d77176d8610eb34578781.json b/node_modules/.cache/babel-loader/c82aa80867e4b4b4d0a04a9f38dfdf15.json similarity index 100% rename from node_modules/.cache/babel-loader/763351ad9a5d77176d8610eb34578781.json rename to node_modules/.cache/babel-loader/c82aa80867e4b4b4d0a04a9f38dfdf15.json diff --git a/node_modules/.cache/babel-loader/c82f20f288c955c6962af592d368b61b.json b/node_modules/.cache/babel-loader/c82f20f288c955c6962af592d368b61b.json deleted file mode 100644 index 6274b453..00000000 --- a/node_modules/.cache/babel-loader/c82f20f288c955c6962af592d368b61b.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var authenticated = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 5\n }\n }, authenticated ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 48,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 53,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 54,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 58,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 59,\n columnNumber: 41\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 63,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 64,\n columnNumber: 41\n }\n }, \"Logout\")))))))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 79,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 80,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 81,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 82,\n columnNumber: 11\n }\n }, \"Login\")))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","authenticated","props","isLoggedIn","textDecoration","submit","login"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;I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AAKF,KAAL,CAAWI,KAAhE;AAAuE,QAAA,KAAK,EAAC,OAA7E;AAAqF,QAAA,EAAE,EAAC,EAAxF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADA,CADF,CADA,CAhDJ,CADF;AA+DD;;;;EAnE2BhB,S;;AAqE5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const authenticated = this.props.isLoggedIn;\n \n return (\n
\n {authenticated ? (\n \n \n \n \n \n \n \n )\n :\n (\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n )\n } \n
\n \n )\n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/276e1f0299e97c4701a37fddb272d3ea.json b/node_modules/.cache/babel-loader/c844636ca05d4e5cfbe37e9e62d4b9b2.json similarity index 100% rename from node_modules/.cache/babel-loader/276e1f0299e97c4701a37fddb272d3ea.json rename to node_modules/.cache/babel-loader/c844636ca05d4e5cfbe37e9e62d4b9b2.json diff --git a/node_modules/.cache/babel-loader/0eeda7aaf80ef89ddf2d6886c0af1cd3.json b/node_modules/.cache/babel-loader/c853b6e83e9c609548923dc25ba1ecbf.json similarity index 100% rename from node_modules/.cache/babel-loader/0eeda7aaf80ef89ddf2d6886c0af1cd3.json rename to node_modules/.cache/babel-loader/c853b6e83e9c609548923dc25ba1ecbf.json diff --git a/node_modules/.cache/babel-loader/f9a58d29a96a18ca31969e98868f4540.json b/node_modules/.cache/babel-loader/c88100f7f0dcf0379c3d805e88616ed7.json similarity index 100% rename from node_modules/.cache/babel-loader/f9a58d29a96a18ca31969e98868f4540.json rename to node_modules/.cache/babel-loader/c88100f7f0dcf0379c3d805e88616ed7.json diff --git a/node_modules/.cache/babel-loader/c8d383269d791e515757fde2b711a5ea.json b/node_modules/.cache/babel-loader/c8d383269d791e515757fde2b711a5ea.json deleted file mode 100644 index 47b0163b..00000000 --- a/node_modules/.cache/babel-loader/c8d383269d791e515757fde2b711a5ea.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\nexport var Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 25\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 28\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 28\n }\n }, \"Simulator\"))))))));\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","textDecoration"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;AAkBA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;AAAA,sBAE3B,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD;AAAQ,IAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACA,oBAAC,MAAD,CAAQ,QAAR;AAAiB,IAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,GAAD;AAAK,IAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACU;AAAK,IAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI;AAAG,I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AF2B;AAAA,CAAtB","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nexport const Navigationbar = () => (\n \n \n \n \n \n \n \n \n)"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/c90482eeb856084a17ad0153ee626bf5.json b/node_modules/.cache/babel-loader/c90482eeb856084a17ad0153ee626bf5.json deleted file mode 100644 index e08f8d31..00000000 --- a/node_modules/.cache/babel-loader/c90482eeb856084a17ad0153ee626bf5.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 229,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 230,\n columnNumber: 28\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 242,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 277,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 278,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 281,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 282,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 285,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 294,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE;AAJF,KAOU;AAAA,QAETC,OAFS,GAEEP,KAFF,CAETO,OAFS;AAGhBC,IAAAA,OAAO,CAACC,GAAR,CAAYF,OAAZ;AACA,UAAKN,KAAL,CAAWS,SAAX,GAAuBH,OAAO,CAACI,GAAR,CAAY,YAAZ,CAAvB;AACAH,IAAAA,OA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AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAjBe,CAAjB;AAwBA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIkF,QADJ,CAFF;AAOH;;;;EAzRe9F,S;;AA2RlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n\n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n \n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/73b2a39892acc4183d552265e594e177.json b/node_modules/.cache/babel-loader/c92643022c970ff5e1e9445322fe0bd1.json similarity index 100% rename from node_modules/.cache/babel-loader/73b2a39892acc4183d552265e594e177.json rename to node_modules/.cache/babel-loader/c92643022c970ff5e1e9445322fe0bd1.json diff --git a/node_modules/.cache/babel-loader/f89579b06952671eba985c3e1a19e267.json b/node_modules/.cache/babel-loader/c9319a2b12a2808e0e0975c37df709ab.json similarity index 100% rename from node_modules/.cache/babel-loader/f89579b06952671eba985c3e1a19e267.json rename to node_modules/.cache/babel-loader/c9319a2b12a2808e0e0975c37df709ab.json diff --git a/node_modules/.cache/babel-loader/c94672232b0e8ce1c34c41aaf3b069e0.json b/node_modules/.cache/babel-loader/c94672232b0e8ce1c34c41aaf3b069e0.json new file mode 100644 index 00000000..86b5d639 --- /dev/null +++ b/node_modules/.cache/babel-loader/c94672232b0e8ce1c34c41aaf3b069e0.json @@ -0,0 +1 @@ +{"ast":null,"code":"\"use strict\";\n\nvar _toConsumableArray = require(\"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/toConsumableArray\");\n\nfunction _createForOfIteratorHelper(o) { if (typeof Symbol === \"undefined\" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.validate = validate;\nexports.typeIs = typeIs;\nexports.validateType = validateType;\nexports.validateOptional = validateOptional;\nexports.validateOptionalType = validateOptionalType;\nexports.arrayOf = arrayOf;\nexports.arrayOfType = arrayOfType;\nexports.validateArrayOfType = validateArrayOfType;\nexports.assertEach = assertEach;\nexports.assertOneOf = assertOneOf;\nexports.assertNodeType = assertNodeType;\nexports.assertNodeOrValueType = assertNodeOrValueType;\nexports.assertValueType = assertValueType;\nexports.assertShape = assertShape;\nexports.chain = chain;\nexports.default = defineType;\nexports.DEPRECATED_KEYS = exports.BUILDER_KEYS = exports.NODE_FIELDS = exports.FLIPPED_ALIAS_KEYS = exports.ALIAS_KEYS = exports.VISITOR_KEYS = void 0;\n\nvar _is = _interopRequireDefault(require(\"../validators/is\"));\n\nvar _validate = require(\"../validators/validate\");\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nvar VISITOR_KEYS = {};\nexports.VISITOR_KEYS = VISITOR_KEYS;\nvar ALIAS_KEYS = {};\nexports.ALIAS_KEYS = ALIAS_KEYS;\nvar FLIPPED_ALIAS_KEYS = {};\nexports.FLIPPED_ALIAS_KEYS = FLIPPED_ALIAS_KEYS;\nvar NODE_FIELDS = {};\nexports.NODE_FIELDS = NODE_FIELDS;\nvar BUILDER_KEYS = {};\nexports.BUILDER_KEYS = BUILDER_KEYS;\nvar DEPRECATED_KEYS = {};\nexports.DEPRECATED_KEYS = DEPRECATED_KEYS;\n\nfunction getType(val) {\n if (Array.isArray(val)) {\n return \"array\";\n } else if (val === null) {\n return \"null\";\n } else if (val === undefined) {\n return \"undefined\";\n } else {\n return typeof val;\n }\n}\n\nfunction validate(validate) {\n return {\n validate: validate\n };\n}\n\nfunction typeIs(typeName) {\n return typeof typeName === \"string\" ? assertNodeType(typeName) : assertNodeType.apply(void 0, _toConsumableArray(typeName));\n}\n\nfunction validateType(typeName) {\n return validate(typeIs(typeName));\n}\n\nfunction validateOptional(validate) {\n return {\n validate: validate,\n optional: true\n };\n}\n\nfunction validateOptionalType(typeName) {\n return {\n validate: typeIs(typeName),\n optional: true\n };\n}\n\nfunction arrayOf(elementType) {\n return chain(assertValueType(\"array\"), assertEach(elementType));\n}\n\nfunction arrayOfType(typeName) {\n return arrayOf(typeIs(typeName));\n}\n\nfunction validateArrayOfType(typeName) {\n return validate(arrayOfType(typeName));\n}\n\nfunction assertEach(callback) {\n function validator(node, key, val) {\n if (!Array.isArray(val)) return;\n\n for (var i = 0; i < val.length; i++) {\n callback(node, \"\".concat(key, \"[\").concat(i, \"]\"), val[i]);\n }\n }\n\n validator.each = callback;\n return validator;\n}\n\nfunction assertOneOf() {\n for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) {\n values[_key] = arguments[_key];\n }\n\n function validate(node, key, val) {\n if (values.indexOf(val) < 0) {\n throw new TypeError(\"Property \".concat(key, \" expected value to be one of \").concat(JSON.stringify(values), \" but got \").concat(JSON.stringify(val)));\n }\n }\n\n validate.oneOf = values;\n return validate;\n}\n\nfunction assertNodeType() {\n for (var _len2 = arguments.length, types = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n types[_key2] = arguments[_key2];\n }\n\n function validate(node, key, val) {\n var valid = false;\n\n var _iterator = _createForOfIteratorHelper(types),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var type = _step.value;\n\n if ((0, _is.default)(type, val)) {\n valid = true;\n break;\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n if (!valid) {\n throw new TypeError(\"Property \".concat(key, \" of \").concat(node.type, \" expected node to be of a type \").concat(JSON.stringify(types), \" \") + \"but instead got \".concat(JSON.stringify(val && val.type)));\n }\n }\n\n validate.oneOfNodeTypes = types;\n return validate;\n}\n\nfunction assertNodeOrValueType() {\n for (var _len3 = arguments.length, types = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n types[_key3] = arguments[_key3];\n }\n\n function validate(node, key, val) {\n var valid = false;\n\n var _iterator2 = _createForOfIteratorHelper(types),\n _step2;\n\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var type = _step2.value;\n\n if (getType(val) === type || (0, _is.default)(type, val)) {\n valid = true;\n break;\n }\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n\n if (!valid) {\n throw new TypeError(\"Property \".concat(key, \" of \").concat(node.type, \" expected node to be of a type \").concat(JSON.stringify(types), \" \") + \"but instead got \".concat(JSON.stringify(val && val.type)));\n }\n }\n\n validate.oneOfNodeOrValueTypes = types;\n return validate;\n}\n\nfunction assertValueType(type) {\n function validate(node, key, val) {\n var valid = getType(val) === type;\n\n if (!valid) {\n throw new TypeError(\"Property \".concat(key, \" expected type of \").concat(type, \" but got \").concat(getType(val)));\n }\n }\n\n validate.type = type;\n return validate;\n}\n\nfunction assertShape(shape) {\n function validate(node, key, val) {\n var errors = [];\n\n for (var _i = 0, _Object$keys = Object.keys(shape); _i < _Object$keys.length; _i++) {\n var property = _Object$keys[_i];\n\n try {\n (0, _validate.validateField)(node, property, val[property], shape[property]);\n } catch (error) {\n if (error instanceof TypeError) {\n errors.push(error.message);\n continue;\n }\n\n throw error;\n }\n }\n\n if (errors.length) {\n throw new TypeError(\"Property \".concat(key, \" of \").concat(node.type, \" expected to have the following:\\n\").concat(errors.join(\"\\n\")));\n }\n }\n\n validate.shapeOf = shape;\n return validate;\n}\n\nfunction chain() {\n for (var _len4 = arguments.length, fns = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {\n fns[_key4] = arguments[_key4];\n }\n\n function validate() {\n var _iterator3 = _createForOfIteratorHelper(fns),\n _step3;\n\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var fn = _step3.value;\n fn.apply(void 0, arguments);\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n }\n\n validate.chainOf = fns;\n return validate;\n}\n\nfunction defineType(type) {\n var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var inherits = opts.inherits && store[opts.inherits] || {};\n var fields = opts.fields || inherits.fields || {};\n var visitor = opts.visitor || inherits.visitor || [];\n var aliases = opts.aliases || inherits.aliases || [];\n var builder = opts.builder || inherits.builder || opts.visitor || [];\n\n if (opts.deprecatedAlias) {\n DEPRECATED_KEYS[opts.deprecatedAlias] = type;\n }\n\n var _iterator4 = _createForOfIteratorHelper(visitor.concat(builder)),\n _step4;\n\n try {\n for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {\n var _key5 = _step4.value;\n fields[_key5] = fields[_key5] || {};\n }\n } catch (err) {\n _iterator4.e(err);\n } finally {\n _iterator4.f();\n }\n\n for (var _i2 = 0, _Object$keys2 = Object.keys(fields); _i2 < _Object$keys2.length; _i2++) {\n var key = _Object$keys2[_i2];\n var field = fields[key];\n\n if (builder.indexOf(key) === -1) {\n field.optional = true;\n }\n\n if (field.default === undefined) {\n field.default = null;\n } else if (!field.validate) {\n field.validate = assertValueType(getType(field.default));\n }\n }\n\n VISITOR_KEYS[type] = opts.visitor = visitor;\n BUILDER_KEYS[type] = opts.builder = builder;\n NODE_FIELDS[type] = opts.fields = fields;\n ALIAS_KEYS[type] = opts.aliases = aliases;\n aliases.forEach(function (alias) {\n FLIPPED_ALIAS_KEYS[alias] = FLIPPED_ALIAS_KEYS[alias] || [];\n FLIPPED_ALIAS_KEYS[alias].push(type);\n });\n store[type] = opts;\n}\n\nvar store = {};","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/d5b0c918ce0f57f21c7dfb175029dc2d.json b/node_modules/.cache/babel-loader/c94f165553643e731af1d5355131dc26.json similarity index 100% rename from node_modules/.cache/babel-loader/d5b0c918ce0f57f21c7dfb175029dc2d.json rename to node_modules/.cache/babel-loader/c94f165553643e731af1d5355131dc26.json diff --git a/node_modules/.cache/babel-loader/c96495966ec958bfc2d471e33ede7c46.json b/node_modules/.cache/babel-loader/c96495966ec958bfc2d471e33ede7c46.json deleted file mode 100644 index f384f210..00000000 --- a/node_modules/.cache/babel-loader/c96495966ec958bfc2d471e33ede7c46.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var authenticated = this.props.isLoggedIn;\n console.log(\"riddhi\", authenticated);\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 5\n }\n }, authenticated ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 33\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 33\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 33\n }\n }, \"Simulator\")))))))) : null);\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","authenticated","props","isLoggedIn","console","log","textDecoration"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AACN,UAAMC,aAAa,GAAG,KAAKC,KAAL,CAAWC,UAAjC;AACAC,MAAAA,OAAO,CAACC,GAAR,CAAY,QAAZ,EAAqBJ,aAArB;AAEF,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACKA,aAAa,gBACd,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA,oBAAC,MAAD;AAAQ,QAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MA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E;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA6C,QAAA,KAAK,EAAC,OAAnD;AAA2D,QAAA,EAAE,EAAC,GAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADJ,CAZF,CADF,CANV,CADJ,CADF,CADA,CADc,GAqCnB,IAtCC,CADF;AA2CD;;;;EAhD2BhB,S;;AAkD5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const authenticated = this.props.isLoggedIn;\n console.log(\"riddhi\",authenticated);\n \n return (\n
\n {authenticated ? ( \n \n \n \n \n \n \n \n )\n :\n (null) }\n \n
\n )\n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/c9c7afc501814f91837b7b81ab1cd6be.json b/node_modules/.cache/babel-loader/c9c7afc501814f91837b7b81ab1cd6be.json deleted file mode 100644 index af5846de..00000000 --- a/node_modules/.cache/babel-loader/c9c7afc501814f91837b7b81ab1cd6be.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 225,\n columnNumber: 19\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 237,\n columnNumber: 19\n }\n }, \"Login\")))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 248,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 252,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 253,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 24\n }\n }, options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 275,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","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AA,GAAG,EAAEjF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAHe,eAMf;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CANe,eASf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QATe,CAAjB;AAcA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIkF,QADJ,CAFF;AAOH;;;;EAtQe9F,S;;AAwQlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n\n
\n \n
    \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n \n
\n
    \n
  • \n \n Login\n \n \n
  • \n
\n
\n
\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/0ebf473762e77728bdc49747281eba51.json b/node_modules/.cache/babel-loader/ca28f97ebf9ebdddae0d45afd42df098.json similarity index 100% rename from node_modules/.cache/babel-loader/0ebf473762e77728bdc49747281eba51.json rename to node_modules/.cache/babel-loader/ca28f97ebf9ebdddae0d45afd42df098.json diff --git a/node_modules/.cache/babel-loader/49f72590690381ac3ed135c1d6a8e323.json b/node_modules/.cache/babel-loader/ca823233e18055b61181d31c73f47c3f.json similarity index 100% rename from node_modules/.cache/babel-loader/49f72590690381ac3ed135c1d6a8e323.json rename to node_modules/.cache/babel-loader/ca823233e18055b61181d31c73f47c3f.json diff --git a/node_modules/.cache/babel-loader/caec989a8717451658033d86bdccf1be.json b/node_modules/.cache/babel-loader/caec989a8717451658033d86bdccf1be.json deleted file mode 100644 index eedd568f..00000000 --- a/node_modules/.cache/babel-loader/caec989a8717451658033d86bdccf1be.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _jsxFileName = \"/home/riddhi/frontend/src/index.js\";\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport './index.css';\nimport * as serviceWorker from './serviceWorker';\nimport Routing from './Routing';\nimport Navigationbar from './components/Navigationbar';\nReactDOM.render( /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 9,\n columnNumber: 5\n }\n}, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 10,\n columnNumber: 5\n }\n}), /*#__PURE__*/React.createElement(Routing, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 11,\n columnNumber: 5\n }\n})), document.getElementById('root')); //ReactDOM.render(, document.getElementById('root'));\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\n\nserviceWorker.unregister();","map":{"version":3,"sources":["/home/riddhi/frontend/src/index.js"],"names":["React","ReactDOM","serviceWorker","Routing","Navigationbar","render","document","getElementById","unregister"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,QAAP,MAAqB,WAArB;AACA,OAAO,aAAP;AACA,OAAO,KAAKC,aAAZ,MAA+B,iBAA/B;AACA,OAAOC,OAAP,MAAoB,WAApB;AACA,OAAOC,aAAP,MAA0B,4BAA1B;AAEAH,QAAQ,CAACI,MAAT,eACI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBACA,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EADA,eAEA,oBAAC,OAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAFA,CADJ,EAKMC,QAAQ,CAACC,cAAT,CAAwB,MAAxB,CALN,E,CAMA;AAGA;AACA;AACA;;AACAL,aAAa,CAACM,UAAd","sourcesContent":["import React from 'react';\nimport ReactDOM from 'react-dom';\nimport './index.css';\nimport * as serviceWorker from './serviceWorker';\nimport Routing from './Routing';\nimport Navigationbar from './components/Navigationbar';\n\nReactDOM.render(\n
\n \n \n
\n , document.getElementById('root'));\n//ReactDOM.render(, document.getElementById('root'));\n\n\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\nserviceWorker.unregister();"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/979da922fe7ca6df8a253f19987e5e1f.json b/node_modules/.cache/babel-loader/caff18ce85f36c9274e6c0a58643bb76.json similarity index 100% rename from node_modules/.cache/babel-loader/979da922fe7ca6df8a253f19987e5e1f.json rename to node_modules/.cache/babel-loader/caff18ce85f36c9274e6c0a58643bb76.json diff --git a/node_modules/.cache/babel-loader/6831ca33ac4a824dd300aeacf1fbb7d3.json b/node_modules/.cache/babel-loader/cb04f58267ade693f9e4a30e893221a2.json similarity index 100% rename from node_modules/.cache/babel-loader/6831ca33ac4a824dd300aeacf1fbb7d3.json rename to node_modules/.cache/babel-loader/cb04f58267ade693f9e4a30e893221a2.json diff --git a/node_modules/.cache/babel-loader/cbcd5995b98accf2d9fb689e999888dc.json b/node_modules/.cache/babel-loader/cbcd5995b98accf2d9fb689e999888dc.json deleted file mode 100644 index c406473b..00000000 --- a/node_modules/.cache/babel-loader/cbcd5995b98accf2d9fb689e999888dc.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\n\nvar TaskList = /*#__PURE__*/function (_Component) {\n _inherits(TaskList, _Component);\n\n function TaskList(props) {\n var _this;\n\n _classCallCheck(this, TaskList);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(TaskList).call(this, props));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n var cookies = props.cookies;\n _this.state = {\n tasks: [],\n csrfToken: cookies.get('XSRF-TOKEN'),\n isLoading: true,\n simulator: \"\",\n timeoutActionTaken: false\n };\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.simulatorWindow = null;\n return _this;\n }\n\n _createClass(TaskList, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.loadUser();\n }\n }, {\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(\"h1\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 11\n }\n }, \"About US\"), /*#__PURE__*/React.createElement(\"p\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 11\n }\n }, \"About US page body content\"));\n }\n }]);\n\n return TaskList;\n}(Component); //export default Simulator;\n\n\nTaskList.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","TaskList","props","state","isLoading","isAuthenticated","user","undefined","simulator","cookies","tasks","csrfToken","get","timeoutActionTaken","local","prod","status","ip","simulatorWindow","loadUser","propTypes","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;;IAEMC,Q;;;AAYA,oBAAYC,KAAZ,EAAmB;AAAA;;AAAA;;AACjB,kFAAMA,KAAN;AADiB,UAPnBC,KAOmB,GAPX;AACNC,MAAAA,SAAS,EAAE,IADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,SAAS,EAAED;AAJL,KAOW;AAAA,QAEVE,OAFU,GAECP,KAFD,CAEVO,OAFU;AAGjB,UAAKN,KAAL,GAAa;AAACO,MAAAA,KAAK,EAAE,EAAR;AAAYC,MAAAA,SAAS,EAAEF,OAAO,CAACG,GAAR,CAAY,YAAZ,CAAvB;AAAkDR,MAAAA,SAAS,EAAE,IAA7D;AAAmEI,MAAAA,SAAS,EAAE,EAA9E;AAAkFK,MAAAA,kBAAkB,EAAE;AAAtG,KAAb;AACA,UAAKC,KAAL,GAAa,gBAAb;AACA,UAAKC,IAAL,GAAY,qBAAZ;AACA,UAAKC,MAAL,GAAe,OAAf;;AACA,QAAI,MAAKA,MAAL,KAAgB,OAApB,EAA6B;AAC3B,YAAKC,EAAL,GAAU,MAAKH,KAAf;AACD;;AACD,UAAKI,eAAL,GAAuB,IAAvB;AAViB;AAWlB;;;;wCAEmB;AAClB,WAAKC,QAAL;AACD;;;6BACQ;AACP,0BAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACN;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBADM,eAEN;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sCAFM,CAAR;AAID;;;;EAjCgB5B,S,GAoCvB;;;AApCMU,Q,CACKmB,S,GAAY;AACfX,EAAAA,OAAO,EAAET,UAAU,CAACD,OAAD,CAAV,CAAoBsB;AADd,C","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\n\nclass TaskList extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n constructor(props) {\n super(props);\n const {cookies} = props;\n this.state = {tasks: [], csrfToken: cookies.get('XSRF-TOKEN'), isLoading: true, simulator: \"\", timeoutActionTaken: false};\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.simulatorWindow = null;\n }\n \n componentDidMount() {\n this.loadUser();\n }\n render() {\n return (
\n

About US

\n

About US page body content

\n
);\n }\n\n}\n//export default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/cc16250075ca481be812be61eeb6ebbf.json b/node_modules/.cache/babel-loader/cc16250075ca481be812be61eeb6ebbf.json deleted file mode 100644 index 85a79ad7..00000000 --- a/node_modules/.cache/babel-loader/cc16250075ca481be812be61eeb6ebbf.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 11\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Switch, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 15\n }\n })))));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,SAASC,aAAT,QAA8B,4BAA9B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAEA,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAFA,eAKI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEN,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALJ,eAMI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEC,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANJ,eAOI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAPJ,eASE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CATF,CADF,CADF,CADF;AAmBD;;;;EArBmBX,S;;AAwBtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() {\n return (\n \n \n
\n \n \n {/* \n */}\n \n \n \n \n \n \n \n
\n
\n
\n );\n }\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/03829b38557e416ada9144fccde37807.json b/node_modules/.cache/babel-loader/cc23d6734e1150ce7fb1ad85c782435d.json similarity index 100% rename from node_modules/.cache/babel-loader/03829b38557e416ada9144fccde37807.json rename to node_modules/.cache/babel-loader/cc23d6734e1150ce7fb1ad85c782435d.json diff --git a/node_modules/.cache/babel-loader/cc78148ebee4fbf2edcd46499d2ded29.json b/node_modules/.cache/babel-loader/cc78148ebee4fbf2edcd46499d2ded29.json deleted file mode 100644 index a555b40b..00000000 --- a/node_modules/.cache/babel-loader/cc78148ebee4fbf2edcd46499d2ded29.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport Navigationbar from './Navigationbar';\nimport './App.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"http://localhost:4200\",\n target: \"top_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 13\n }\n }, \" Console \"), /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"http://localhost:8888\",\n target: \"bottom_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 13\n }\n }, \" Simulator \"), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"top_\",\n src: \"\",\n width: \"100%\",\n height: \"375px\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"bottom_\",\n src: \"\",\n width: \"100%\",\n height: \"375px\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 15\n }\n }));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Navigationbar","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAt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hB,S;;AAAlBW,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAEV,UAAU,CAACD,OAAD,CAAV,CAAoBY;AADd,C;AA0BvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport Navigationbar from './Navigationbar';\nimport './App.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n \n Console \n Simulator \n \n \n \n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/4f00beaf64debb787d69dbe8e045ad8d.json b/node_modules/.cache/babel-loader/ccd3a4ebd7081b026bf2a64cf7547e2a.json similarity index 100% rename from node_modules/.cache/babel-loader/4f00beaf64debb787d69dbe8e045ad8d.json rename to node_modules/.cache/babel-loader/ccd3a4ebd7081b026bf2a64cf7547e2a.json diff --git a/node_modules/.cache/babel-loader/cd0aa9f87e32b688a8cd83989bb03092.json b/node_modules/.cache/babel-loader/cd0aa9f87e32b688a8cd83989bb03092.json deleted file mode 100644 index d322db97..00000000 --- a/node_modules/.cache/babel-loader/cd0aa9f87e32b688a8cd83989bb03092.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 17\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 21\n }\n }))) : /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 17\n }\n })));\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 7\n }\n }, options);\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing","options","state","isAuthenticated"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,SAASC,aAAT,QAA8B,4BAA9B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,UAAMC,OAAO,GAAG,KAAKC,KAAL,CAAWC,eAAX,gBACN,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADA,eAGI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAER,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHJ,eAII,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJJ,eAKI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALJ,CADF,CADM,gBAWd,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACU,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEL,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADV,CADA,CAXF;AAiBA,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACMO,OADN,CADF;AAUD;;;;EA7BmBb,S;;AAgCtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() {\n const options = this.state.isAuthenticated ? \n \n \n \n \n \n \n \n \n \n :\n \n \n \n \n \n \n return ( \n
\n {options}\n
\n \n \n \n \n \n )\n };\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/148e25a6b17363395fb9b7ed1ac34413.json b/node_modules/.cache/babel-loader/cd76ae95994bb806c9f078028c99c894.json similarity index 100% rename from node_modules/.cache/babel-loader/148e25a6b17363395fb9b7ed1ac34413.json rename to node_modules/.cache/babel-loader/cd76ae95994bb806c9f078028c99c894.json diff --git a/node_modules/.cache/babel-loader/ce46a7c10f1a54e2d6304b08817a2340.json b/node_modules/.cache/babel-loader/ce46a7c10f1a54e2d6304b08817a2340.json deleted file mode 100644 index 8d8b6d6b..00000000 --- a/node_modules/.cache/babel-loader/ce46a7c10f1a54e2d6304b08817a2340.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _jsxFileName = \"/home/riddhi/frontend/src/index.js\";\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport './index.css';\nimport * as serviceWorker from './serviceWorker';\nimport Routing from './Routing';\nimport Navigationbar from './components/Navigationbar';\nReactDOM.render( /*#__PURE__*/React.createElement(Routing, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 9,\n columnNumber: 17\n }\n}), document.getElementById('root')); //ReactDOM.render(, document.getElementById('root'));\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\n\nserviceWorker.unregister();","map":{"version":3,"sources":["/home/riddhi/frontend/src/index.js"],"names":["React","ReactDOM","NavLink","Switch","BrowserRouter","Router","Route","serviceWorker","Routing","Navigationbar","render","document","getElementById","unregister"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,QAAP,MAAqB,WAArB;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAO,aAAP;AACA,OAAO,KAAKC,aAAZ,MAA+B,iBAA/B;AACA,OAAOC,OAAP,MAAoB,WAApB;AACA,OAAOC,aAAP,MAA0B,4BAA1B;AAEAR,QAAQ,CAACS,MAAT,eAAgB,oBAAC,OAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAhB,EAA4BC,QAAQ,CAACC,cAAT,CAAwB,MAAxB,CAA5B,E,CACA;AAGA;AACA;AACA;;AACAL,aAAa,CAACM,UAAd","sourcesContent":["import React from 'react';\nimport ReactDOM from 'react-dom';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport './index.css';\nimport * as serviceWorker from './serviceWorker';\nimport Routing from './Routing';\nimport Navigationbar from './components/Navigationbar';\n\nReactDOM.render(, document.getElementById('root'));\n//ReactDOM.render(, document.getElementById('root'));\n\n\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\nserviceWorker.unregister();"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/ce560f6e5e3bd7cbad920d139a91a9f3.json b/node_modules/.cache/babel-loader/ce560f6e5e3bd7cbad920d139a91a9f3.json deleted file mode 100644 index de08c9fd..00000000 --- a/node_modules/.cache/babel-loader/ce560f6e5e3bd7cbad920d139a91a9f3.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:4200\",\n target: \"top\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 13\n }\n }, \" Home \"), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"top\",\n src: \"\",\n width: \"100%\",\n height: \"50%\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"bottom\",\n src: \"\",\n width: \"100%\",\n height: \"50%\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 9\n }\n }));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;AACA,OAAO,iBAAP;;IAEMC,S;;;;;;;;;;;;;;;UAKAC,K,GAAQ;AACNC,MAAAA,SAAS,EAAE,IADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,SAAS,EAAED;AAJL,K;;;;;;6BAQR;AACE,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,KAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBADF,eAGE;AAAQ,QAAA,IAAI,EAAC,KAAb;AAAmB,QAAA,GAAG,EAAC,EAAvB;AAA0B,QAAA,KAAK,EAAC,MAAhC;AACJ,QAAA,MAAM,EAAC,KADH;AACS,QAAA,WAAW,EAAC,GADrB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHF,eAKF;AAAQ,QAAA,IAAI,EAAC,QAAb;AAAsB,QAAA,GAAG,EAAC,EAA1B;AAA6B,QAAA,KAAK,EAAC,MAAnC;AACA,QAAA,MAAM,EAAC,KADP;AACa,QAAA,WAAW,EAAC,GADzB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALE,CADF;AAcD;;;;EA5BiBf,S;;AAAlBU,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAET,UAAU,CAACD,OAAD,CAAV,CAAoBW;AADd,C;AA8BvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n Home \n\n \n \n \n \n \n \n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/ce60fa2c8abd560516e7ccc277e98bdb.json b/node_modules/.cache/babel-loader/ce60fa2c8abd560516e7ccc277e98bdb.json deleted file mode 100644 index d32b4b23..00000000 --- a/node_modules/.cache/babel-loader/ce60fa2c8abd560516e7ccc277e98bdb.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/NavigationBar.js\";\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nimport './NavigationBar.css';\n\nvar NavigationBar = /*#__PURE__*/function (_Component) {\n _inherits(NavigationBar, _Component);\n\n function NavigationBar() {\n _classCallCheck(this, NavigationBar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(NavigationBar).apply(this, arguments));\n }\n\n _createClass(NavigationBar, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 11,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Brand, {\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 12,\n columnNumber: 11\n }\n }, \"Tutorial\"), /*#__PURE__*/React.createElement(Navbar.Toggle, {\n \"aria-controls\": \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 13,\n columnNumber: 11\n }\n }), /*#__PURE__*/React.createElement(Form, {\n className: \"form-center\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 14,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(FormControl, {\n type: \"text\",\n placeholder: \"Search\",\n className: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(Nav.Item, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 25\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(Nav.Item, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/about\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 25\n }\n }, \"Tasks\")))));\n }\n }]);\n\n return NavigationBar;\n}(Component);\n\nexport default NavigationBar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/NavigationBar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","styled","NavigationBar"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,qBAAP;;IAGMC,a;;;;;;;;;;;6BACO;AACP,0BAEE,oBAAC,MAAD;AAAQ,QAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD,CAAQ,KAAR;AAAc,QAAA,IAAI,EAAC,GAAnB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBADF,eAEE,oBAAC,MAAD,CAAQ,MAAR;AAAe,yBAAc,kBAA7B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAFF,eAGE,oBAAC,IAAD;AAAM,QAAA,SAAS,EAAC,aAAhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,WAAD;AAAa,QAAA,IAAI,EAAC,MAAlB;AAAyB,QAAA,WAAW,EAAC,QAArC;AAA8C,QAAA,SAAS,EAAC,EAAxD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CAHF,eAME,oBAAC,MAAD,CAAQ,QAAR;AAAiB,QAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,GAAD;AAAK,QAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,GAAD,CAAK,IAAL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAU,oBAAC,GAAD,CAAK,IAAL;AAAU,QAAA,IAAI,EAAC,GAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAV,CADF,eAEE,oBAAC,GAAD,CAAK,IAAL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAU,oBAAC,GAAD,CAAK,IAAL;AAAU,QAAA,IAAI,EAAC,QAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAV,CAFF,CADF,CANF,CAFF;AAgBD;;;;EAlBuBN,S;;AAqB5B,eAAeM,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nimport './NavigationBar.css';\n \n\nclass NavigationBar extends Component{\n render() {\n return (\n \n \n Tutorial\n \n
\n \n \n \n \n \n
\n );\n }\n }\n \nexport default NavigationBar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/ce7031a7877ed0b702a3a354b4812504.json b/node_modules/.cache/babel-loader/ce7031a7877ed0b702a3a354b4812504.json deleted file mode 100644 index 9d9cff6c..00000000 --- a/node_modules/.cache/babel-loader/ce7031a7877ed0b702a3a354b4812504.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = function Navigationbar() {\n var navbar_options = /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 25\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 28\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 28\n }\n }, \"Simulator\"))))))));\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 64,\n columnNumber: 5\n }\n }, _this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"navbar_options\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 66,\n columnNumber: 9\n }\n }) : null);\n};\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","navbar_options","textDecoration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AAA;AAAA;AAAA,kBACG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEK,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,UAAnD;AAA8D,IAAA,EAAE,EAAC,WAAjE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBADJ,CADF,eAOE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,QAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aADJ,CAPF,eAYE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,GAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CAZF,CADH,CANV,CADJ,CADA,CADA,CADF;AAoCA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACI,KAAI,CAACC,KAAL,CAAWC,eAAX,gBACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IADA,GAIF,IALF,CADF;AAUD,CA/CD;;AAgDA,eAAeJ,aAAf","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nconst Navigationbar = () => {\n const navbar_options = (\n \n \n \n \n \n \n \n );\n return (\n
\n { this.state.isAuthenticated ? (\n \n )\n :\n null\n }\n
\n )\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/4488c73c921ab0024c22a8ff723f1058.json b/node_modules/.cache/babel-loader/ceffda915158adaf9561a160d755cd8f.json similarity index 100% rename from node_modules/.cache/babel-loader/4488c73c921ab0024c22a8ff723f1058.json rename to node_modules/.cache/babel-loader/ceffda915158adaf9561a160d755cd8f.json diff --git a/node_modules/.cache/babel-loader/f20b299480c8882aef68af250061809d.json b/node_modules/.cache/babel-loader/cf861bf8d64b46dec57b301169bc811c.json similarity index 100% rename from node_modules/.cache/babel-loader/f20b299480c8882aef68af250061809d.json rename to node_modules/.cache/babel-loader/cf861bf8d64b46dec57b301169bc811c.json diff --git a/node_modules/.cache/babel-loader/94abda62a83536774e49a3b5972f71c8.json b/node_modules/.cache/babel-loader/cf992360b8ace03cc4ff70f32bfda4da.json similarity index 100% rename from node_modules/.cache/babel-loader/94abda62a83536774e49a3b5972f71c8.json rename to node_modules/.cache/babel-loader/cf992360b8ace03cc4ff70f32bfda4da.json diff --git a/node_modules/.cache/babel-loader/cfb39a0355044235646f82d4eba4b8d2.json b/node_modules/.cache/babel-loader/cfb39a0355044235646f82d4eba4b8d2.json deleted file mode 100644 index 30c4b669..00000000 --- a/node_modules/.cache/babel-loader/cfb39a0355044235646f82d4eba4b8d2.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var authenticated = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 5\n }\n }, authenticated ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 48,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 53,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 54,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 58,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 59,\n columnNumber: 41\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 63,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 64,\n columnNumber: 41\n }\n }, \"Logout\")))))))) : /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 79,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 80,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 81,\n columnNumber: 11\n }\n }, \"Login\"))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","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AAAA;AAAA;AAAA;AAAA,kBADJ,CAjBJ,CAJR,CANV,CADJ,CADF,CADF,CADc,gBA+CZ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAED,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKF,KAAL,CAAWI,KAAhE;AAAuE,QAAA,KAAK,EAAC,OAA7E;AAAqF,QAAA,EAAE,EAAC,EAAxF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADA,CADF,CAhDJ,CADF;AA6DD;;;;EAjE2BhB,S;;AAmE5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const authenticated = this.props.isLoggedIn;\n \n return (\n
\n {authenticated ? (\n \n \n \n \n \n \n \n )\n :\n (\n
    \n
  • \n \n Login\n \n
  • \n
\n )\n } \n
\n \n )\n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/cfcfca31dc06f38f1a210f6652f18f20.json b/node_modules/.cache/babel-loader/cfcfca31dc06f38f1a210f6652f18f20.json deleted file mode 100644 index 1fdef1b9..00000000 --- a/node_modules/.cache/babel-loader/cfcfca31dc06f38f1a210f6652f18f20.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport Navigationbar from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(Switch, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 21\n }\n }))));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,OAAOC,aAAP,MAA2B,4BAA3B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACU,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,eAEI,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAGA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEL,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHA,eAIA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJA,eAKA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALA,eAMA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEL,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANA,CAFJ,CADV,CADF;AAgBD;;;;EAlBmBN,S;;AAqBtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport Navigationbar from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() { \n return ( \n \n \n \n \n {/* \n */} \n \n \n \n \n \n \n \n \n )\n };\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/d036efa43c395a62e2e9f2c89263bcea.json b/node_modules/.cache/babel-loader/d036efa43c395a62e2e9f2c89263bcea.json deleted file mode 100644 index 675da23e..00000000 --- a/node_modules/.cache/babel-loader/d036efa43c395a62e2e9f2c89263bcea.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 218,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"script\", {\n type: \"text/javascript\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 219,\n columnNumber: 5\n }\n }, \" const options = this.state.isAuthenticated ?\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 31\n }\n }, \"Logout\")))), \":\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, \"Login\")))), \"const simulator = this.state.isAuthenticated ?\", /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 249,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))), \" : null\"), /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 275,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","http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;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CA5Ca,eAgDb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAhDa,CAAjB;AAuDE,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACI+E,QADJ,CAFF;AAOH;;;;EAvQe1F,S;;AAyQlB,eAAeI,UAAU,CAACQ,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const mainBody =
\n \n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/b7f98137404faca29d3a9fc83d7bf152.json b/node_modules/.cache/babel-loader/d0586a242cf9d08ca63932245bf187d8.json similarity index 100% rename from node_modules/.cache/babel-loader/b7f98137404faca29d3a9fc83d7bf152.json rename to node_modules/.cache/babel-loader/d0586a242cf9d08ca63932245bf187d8.json diff --git a/node_modules/.cache/babel-loader/d08004137435313f7addc2072c078d04.json b/node_modules/.cache/babel-loader/d08004137435313f7addc2072c078d04.json deleted file mode 100644 index 57208304..00000000 --- a/node_modules/.cache/babel-loader/d08004137435313f7addc2072c078d04.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n var url = \"http://localhost\"; //window.location.href = \"http://localhost:3000/simulator\";\n\n this.simulatorWindow = window.open(url + \":8080\", '_blank');\n this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 218,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 219,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 226,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 227,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 240,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 241,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 242,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 253,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 19\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 267,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 276,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 277,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 280,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 281,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 284,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 292,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","url","open","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAC/C,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAwC;;AACxC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE;AAJF,KAOU;AAAA,QAETC,OAFS,GAEEP,KAFF,CAETO,OAFS;AAGhBC,IAAAA,OAAO,CAACC,GAAR,CAAYF,OAAZ;AACA,UAAKN,KAAL,CAAWS,SAAX,GAAuBH,OAAO,CAACI,GAAR,CAAY,YAAZ,CAAvB;AACAH,IAAAA,OAAO,CAACC,GAAR,CAAY,MAAKR,KAAL,CAAWS,SAAvB;AACA,UAAKE,KAAL,GAAa,gBAAb;AACA,UAAKC,IAAL,GAAY,qBAAZ;AACA,UAAKC,MAAL,GAAe,OAAf;;AACA,QAAI,MAAKA,MAAL,KAAgB,OAApB,EAA6B;AAC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,QAlBa,CAAjB;AAyBE,0BACE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIoF,QADJ,CADF;AAOH;;;;EA1Re/F,S;;AA4RlB,eAAeG,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n const url = \"http://localhost\";\n //window.location.href = \"http://localhost:3000/simulator\";\n this.simulatorWindow = window.open(url + \":8080\", '_blank');\n this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n
\n {mainBody}\n
\n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/8d41cad10c8b28443eb70409f62cc341.json b/node_modules/.cache/babel-loader/d11da18bc794df898783d8b1389da999.json similarity index 100% rename from node_modules/.cache/babel-loader/8d41cad10c8b28443eb70409f62cc341.json rename to node_modules/.cache/babel-loader/d11da18bc794df898783d8b1389da999.json diff --git a/node_modules/.cache/babel-loader/4ca10953ef88ca5843b8930a7d1606dd.json b/node_modules/.cache/babel-loader/d1212b3b5d5133cd995abb13dbd67307.json similarity index 100% rename from node_modules/.cache/babel-loader/4ca10953ef88ca5843b8930a7d1606dd.json rename to node_modules/.cache/babel-loader/d1212b3b5d5133cd995abb13dbd67307.json diff --git a/node_modules/.cache/babel-loader/d163748892b6d145f6a75c83dc1c4165.json b/node_modules/.cache/babel-loader/d163748892b6d145f6a75c83dc1c4165.json deleted file mode 100644 index 1103cc7b..00000000 --- a/node_modules/.cache/babel-loader/d163748892b6d145f6a75c83dc1c4165.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 16\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 19\n }\n }, \"Login\")))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 247,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 252,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 16\n }\n }))), options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 267,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 272,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE;AAJF,KAOU;AAAA,QAETC,OAFS,GAEEP,KAFF,CAETO,OAFS;AAGhBC,IAAAA,OAAO,CAACC,GAAR,CAAYF,OAAZ;AACA,UAAKN,KAAL,CAAWS,SAAX,GAAuBH,OAAO,CAACI,GAAR,CAAY,YAAZ,CAAvB;AACAH,IAAAA,OAAO,CAACC,GAAR,CAAY,MAAKR,KAAL,CAAWS,SAAvB;AACA,UAAKE,KAAL,GAAa,gBAAb;AACA,UAAKC,IAAL,GAAY,qBAAZ;AACA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EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACG;AAAK,QAAA,KAAK,EAAC,MAAX;AAAkB,QAAA,GAAG,EAAEnF,MAAvB;AAA+B,QAAA,KAAK,EAAE,MAAtC;AAA8C,QAAA,MAAM,EAAE,MAAtD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADH,CADJ,CADe,EAMdgF,OANc,EAOdE,SAPc,eAQf;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAEjF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CARe,eAWf;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAXe,eAcf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAde,CAAjB;AAmBA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIkF,QADJ,CAFF;AAOH;;;;EA3Qe9F,S;;AA6QlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n\n
\n \n
    \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n \n
\n
    \n
  • \n \n Login\n \n \n
  • \n
\n
\n
\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n
\n \n \n \n
\n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/5a1549193aabc9ff3a057007f00ba7ac.json b/node_modules/.cache/babel-loader/d17ae8aa5d26b93e864f7a6afde1e71a.json similarity index 100% rename from node_modules/.cache/babel-loader/5a1549193aabc9ff3a057007f00ba7ac.json rename to node_modules/.cache/babel-loader/d17ae8aa5d26b93e864f7a6afde1e71a.json diff --git a/node_modules/.cache/babel-loader/c2a33099d8460a2b60c0b577d1f8e280.json b/node_modules/.cache/babel-loader/d1f526a88e6c4e1adcd1178b87210fd2.json similarity index 100% rename from node_modules/.cache/babel-loader/c2a33099d8460a2b60c0b577d1f8e280.json rename to node_modules/.cache/babel-loader/d1f526a88e6c4e1adcd1178b87210fd2.json diff --git a/node_modules/.cache/babel-loader/34b23a70884eca922612a96deab8bd22.json b/node_modules/.cache/babel-loader/d203ee67b637d8e77b7cd9e5a5b432be.json similarity index 100% rename from node_modules/.cache/babel-loader/34b23a70884eca922612a96deab8bd22.json rename to node_modules/.cache/babel-loader/d203ee67b637d8e77b7cd9e5a5b432be.json diff --git a/node_modules/.cache/babel-loader/d293b787163fa3769735f960d305f55a.json b/node_modules/.cache/babel-loader/d293b787163fa3769735f960d305f55a.json deleted file mode 100644 index 9747a8fb..00000000 --- a/node_modules/.cache/babel-loader/d293b787163fa3769735f960d305f55a.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var authenticated = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 25\n }\n }, authenticated ? /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 53,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 58,\n columnNumber: 41\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 63,\n columnNumber: 41\n }\n }, \"Logout\"))) : /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 71,\n columnNumber: 31\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 72,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 73,\n columnNumber: 33\n }\n }, \"Login hihihihi\")))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","authenticated","props","isLoggedIn","textDecoration","submit","login"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AACN,UAAMC,aAAa,GAAG,KAAKC,KAAL,CAAWC,UAAjC;AAEF,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAKU;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACc;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAAA,KAAK,EAAC,MAAX;AAAkB,QAAA,GAAG,EAAEN,MAAvB;AAA+B,QAAA,KAAK,EAAE,MAAtC;AAA8C,QAAA,MAAM,EAAE,MAAtD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CAD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AAA,kBADJ,CAjBJ,CAFU,gBA4BZ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAED,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKF,KAAL,CAAWI,KAAhE;AAAuE,QAAA,KAAK,EAAC,OAA7E;AAAqF,QAAA,EAAE,EAAC,EAAxF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BADA,CADF,CA9BN,CAVpB,CADF;AA2DD;;;;EA/D2BhB,S;;AAiE5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const authenticated = this.props.isLoggedIn;\n \n return (\n
\n \n \n \n \n
\n \n \n \n
\n
\n \n {authenticated ? ( \n \n
    \n
  • \n \n Progress\n \n
  • \n \n
  • \n \n Tasks\n \n
  • \n
  • \n \n Simulator\n \n
  • \n
  • \n \n Logout\n \n
  • \n
\n )\n :\n (\n
    \n
  • \n \n Login hihihihi\n \n
  • \n
\n )\n }\n \n
\n \n \n \n \n
\n \n )\n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/fb51c4c20214edc3585ee5976baf6d7d.json b/node_modules/.cache/babel-loader/d30a506548b70ef3afcc13d4be8704e7.json similarity index 100% rename from node_modules/.cache/babel-loader/fb51c4c20214edc3585ee5976baf6d7d.json rename to node_modules/.cache/babel-loader/d30a506548b70ef3afcc13d4be8704e7.json diff --git a/node_modules/.cache/babel-loader/31d843e756bd76a06cb48f70c1708031.json b/node_modules/.cache/babel-loader/d318658714afc277e4a288c3b574f136.json similarity index 100% rename from node_modules/.cache/babel-loader/31d843e756bd76a06cb48f70c1708031.json rename to node_modules/.cache/babel-loader/d318658714afc277e4a288c3b574f136.json diff --git a/node_modules/.cache/babel-loader/fdbf8c8e26d7630e07cf80ca6fc8685d.json b/node_modules/.cache/babel-loader/d3289bba5dded94fbaace46efd6df3fe.json similarity index 100% rename from node_modules/.cache/babel-loader/fdbf8c8e26d7630e07cf80ca6fc8685d.json rename to node_modules/.cache/babel-loader/d3289bba5dded94fbaace46efd6df3fe.json diff --git a/node_modules/.cache/babel-loader/1a2b09333293213aa3392cba6f5219ad.json b/node_modules/.cache/babel-loader/d39069a6878fea632c1c82106f24b956.json similarity index 100% rename from node_modules/.cache/babel-loader/1a2b09333293213aa3392cba6f5219ad.json rename to node_modules/.cache/babel-loader/d39069a6878fea632c1c82106f24b956.json diff --git a/node_modules/.cache/babel-loader/579d2f916b0984df379c6d9913cd99e4.json b/node_modules/.cache/babel-loader/d3f5ce233f5321acc22913f93d27fe75.json similarity index 100% rename from node_modules/.cache/babel-loader/579d2f916b0984df379c6d9913cd99e4.json rename to node_modules/.cache/babel-loader/d3f5ce233f5321acc22913f93d27fe75.json diff --git a/node_modules/.cache/babel-loader/486bf80253ded2621400ee34466b143c.json b/node_modules/.cache/babel-loader/d3f67664fbd71d903aa50abb3c3b8973.json similarity index 100% rename from node_modules/.cache/babel-loader/486bf80253ded2621400ee34466b143c.json rename to node_modules/.cache/babel-loader/d3f67664fbd71d903aa50abb3c3b8973.json diff --git a/node_modules/.cache/babel-loader/bd64724b013296c694c2dd41d629d7cb.json b/node_modules/.cache/babel-loader/d3f7017fa928d888f42163a2200dee7c.json similarity index 100% rename from node_modules/.cache/babel-loader/bd64724b013296c694c2dd41d629d7cb.json rename to node_modules/.cache/babel-loader/d3f7017fa928d888f42163a2200dee7c.json diff --git a/node_modules/.cache/babel-loader/d473cba7de8766d184c59403367f11d7.json b/node_modules/.cache/babel-loader/d473cba7de8766d184c59403367f11d7.json deleted file mode 100644 index a507b62e..00000000 --- a/node_modules/.cache/babel-loader/d473cba7de8766d184c59403367f11d7.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 27\n }\n }))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 230,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 249,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 24\n }\n }, options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 264,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 267,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 274,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","isNavbar","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,aAAP,MAA2B,iBAA3B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AASJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UARlBC,KAQkB,GARV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE,KAJF;AAKNC,MAAAA,QAAQ,EAAE;AALJ,KAQU;AAAA,QAETC,OAFS,GAEER,KAFF,CAETQ,OAFS;AAGhBC,IAAAA,OAAO,CAACC,GAAR,CAAYF,OAAZ;AACA,UAAKP,KAAL,CAAWU,SAAX,GAAuBH,OAAO,CAACI,GAAR,CAAY,YAAZ,CAAvB;AACAH,IAAAA,OAAO,CAACC,GAAR,CAAY,MAAKT,KAAL,CAAWU,SAAvB;AACA,UAAKE,KAAL,GAAa,gBAAb;AACA,UAAKC,IAAL,GAAY,qBA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AA;AAAA;AAAA;AAAA;AAAA,QADJ,CAPe,eAUf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAVe,CAAjB;AAeA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAGImF,QAHJ,CAFF;AAUH;;;;EAzQe/F,S;;AA2QlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? (\n
\n
    \n \n \n\n
\n
\n ):(\n \n \n
\n \n
    \n
  • \n \n Login\n \n
  • \n
\n
\n \n )\n \n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n \n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n \n \n {mainBody}\n \n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/d4df31d1122bd4cc2562f74379b1744b.json b/node_modules/.cache/babel-loader/d4df31d1122bd4cc2562f74379b1744b.json deleted file mode 100644 index 6b2840d7..00000000 --- a/node_modules/.cache/babel-loader/d4df31d1122bd4cc2562f74379b1744b.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var authenticated = this.props.isLoggedIn;\n var login = this.props.login;\n console.log(\"riddhi\", login);\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 5\n }\n }, authenticated ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 33\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 53,\n columnNumber: 33\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 58,\n columnNumber: 33\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 63,\n columnNumber: 33\n }\n }, \"Logout\")))))))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 76,\n columnNumber: 4\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 77,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 78,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 79,\n columnNumber: 9\n }\n }, \"Login\")))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","authenticated","props","isLoggedIn","login","console","log","textDecoration","submit"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAAC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;AAAA;AAAA,sBACI,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAED,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKL,KAAL,CAAWE,KAAhE;AAAuE,QAAA,KAAK,EAAC,OAA7E;AAAqF,QAAA,EAAE,EAAC,EAAxF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CADF,CADC,CA3CC,CADF;AAyDD;;;;EA/D2Bd,S;;AAiE5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const authenticated = this.props.isLoggedIn;\n const login = this.props.login;\n console.log(\"riddhi\",login);\n \n return (\n
\n {authenticated ? ( \n \n \n \n \n \n \n \n )\n :\n (
\n
    \n
  • \n \n Login\n \n \n
  • \n
\n
) }\n \n
\n )\n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/5cad41169d44d1ce82198f87a94ab00e.json b/node_modules/.cache/babel-loader/d551f6542bfe114574aa7b0dcc0afb67.json similarity index 100% rename from node_modules/.cache/babel-loader/5cad41169d44d1ce82198f87a94ab00e.json rename to node_modules/.cache/babel-loader/d551f6542bfe114574aa7b0dcc0afb67.json diff --git a/node_modules/.cache/babel-loader/02fa12b3b50d0918dfed30bdb9b58f60.json b/node_modules/.cache/babel-loader/d5891841fe76d73bf753befc7747967f.json similarity index 100% rename from node_modules/.cache/babel-loader/02fa12b3b50d0918dfed30bdb9b58f60.json rename to node_modules/.cache/babel-loader/d5891841fe76d73bf753befc7747967f.json diff --git a/node_modules/.cache/babel-loader/d453ce4a68625771e64f1bc58f3c2509.json b/node_modules/.cache/babel-loader/d59f5e6ca9899b9de8038ca7cfaad76f.json similarity index 100% rename from node_modules/.cache/babel-loader/d453ce4a68625771e64f1bc58f3c2509.json rename to node_modules/.cache/babel-loader/d59f5e6ca9899b9de8038ca7cfaad76f.json diff --git a/node_modules/.cache/babel-loader/d60503010797ec3f3ecfbe507a475331.json b/node_modules/.cache/babel-loader/d60503010797ec3f3ecfbe507a475331.json deleted file mode 100644 index f6f9b9f1..00000000 --- a/node_modules/.cache/babel-loader/d60503010797ec3f3ecfbe507a475331.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = function Navigationbar() {\n _this.state.isAuthenticated ? /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 29\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 31\n }\n }, \"Simulator\")))))))) : null;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"Navigationbar\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 67,\n columnNumber: 5\n }\n }, navbar_options);\n};\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","state","isAuthenticated","textDecoration","navbar_options"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;AAkBA,IAAMC,aAAa,GAAG,SAAhBA,aAAgB,GAAM;AACzB,EAAA,KAAI,CAACC,KAAL,CAAWC,eAAX,gBACC,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD;AAAQ,IAAA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AAE,EAAC,QAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aADJ,CAPF,eAYE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,GAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CAZF,CADF,CANV,CADJ,CADF,CADF,CADD,GAqCD,IArCC;AAuCD,sBACE;AAAK,IAAA,SAAS,EAAC,eAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACIC,cADJ,CADF;AAKD,CA7CD;;AA8CA,eAAeJ,aAAf","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nconst Navigationbar = () => {\n this.state.isAuthenticated ? (\n \n \n \n \n \n \n \n )\n :(\n null\n )\n return (\n
\n { navbar_options }\n
\n )\n};\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/fccfa7f8cd15c4f6ff9ef97b386cb864.json b/node_modules/.cache/babel-loader/d61478b2ace3f5e9febb4aa8739d8385.json similarity index 100% rename from node_modules/.cache/babel-loader/fccfa7f8cd15c4f6ff9ef97b386cb864.json rename to node_modules/.cache/babel-loader/d61478b2ace3f5e9febb4aa8739d8385.json diff --git a/node_modules/.cache/babel-loader/6e3afaf7f5560df253175af437d3b924.json b/node_modules/.cache/babel-loader/d66a72ca13d1d8ab290cccb2fbe520b3.json similarity index 100% rename from node_modules/.cache/babel-loader/6e3afaf7f5560df253175af437d3b924.json rename to node_modules/.cache/babel-loader/d66a72ca13d1d8ab290cccb2fbe520b3.json diff --git a/node_modules/.cache/babel-loader/d6ff2bb0de43620ada91f1d6d8c8132b.json b/node_modules/.cache/babel-loader/d6ff2bb0de43620ada91f1d6d8c8132b.json deleted file mode 100644 index 86191e10..00000000 --- a/node_modules/.cache/babel-loader/d6ff2bb0de43620ada91f1d6d8c8132b.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 27\n }\n }), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 249,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 24\n }\n }, options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 264,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 273,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","isNavbar","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,aAAP,MAA2B,iBAA3B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AASJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UARlBC,KAQkB,GARV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA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IO,CAAC,KAAKD,KAAL,CAAWK,MAAZ,iBAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAJ7B,EAKO,KAAKL,KAAL,CAAWK,MAAX,iBAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAL5B,CAFF,CADS,GAYL,IAZd;AAcE,UAAMsE,QAAQ,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACdH,OADc,EAEdE,SAFc,eAGf;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAElF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAHe,eAMf;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CANe,eASf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QATe,CAAjB;AAcA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAGImF,QAHJ,CAFF;AAUH;;;;EAxQe/F,S;;AA0QlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ?\n
\n
    \n \n
  • \n \n Logout\n \n
  • \n\n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n \n \n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n \n \n {mainBody}\n \n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/f2fd56fc714e87e2fc0d4fd8c728f8a2.json b/node_modules/.cache/babel-loader/d7c81858eb66e78b1dfbcd011547c012.json similarity index 100% rename from node_modules/.cache/babel-loader/f2fd56fc714e87e2fc0d4fd8c728f8a2.json rename to node_modules/.cache/babel-loader/d7c81858eb66e78b1dfbcd011547c012.json diff --git a/node_modules/.cache/babel-loader/d81fa7dfce3c83a08a8c8b93c505813a.json b/node_modules/.cache/babel-loader/d81fa7dfce3c83a08a8c8b93c505813a.json deleted file mode 100644 index f56b4d2a..00000000 --- a/node_modules/.cache/babel-loader/d81fa7dfce3c83a08a8c8b93c505813a.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = function Navigationbar() {\n var navbar_options = _this.state.isAuthenticated;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 5\n }\n }, navbar_options ? /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 33\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 48,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 49,\n columnNumber: 33\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 53,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 54,\n columnNumber: 33\n }\n }, \"Simulator\")))))))) : null);\n};\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","navbar_options","state","isAuthenticated","textDecoration"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;AAkBA,IAAMC,aAAa,GAAG,SAAhBA,aAAgB,GAAM;AAC5B,MAAMC,cAAc,GAAG,KAAI,CAACC,KAAL,CAAWC,eAAlC;AACE,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACIF,cAAc,gBACd,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACA,oBAAC,MAAD;AAAQ,IAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD,CAAQ,QAAR;AAAiB,IAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,GAAD;AAAK,IAAA,SAAS,EAAC,SA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AAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,GAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CAZF,CADF,CANV,CADJ,CADF,CADA,CADc,GAoCd,IArCJ,CADF;AA4CD,CA9CD;;AA+CA,eAAeJ,aAAf","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nconst Navigationbar = () => {\nconst navbar_options = this.state.isAuthenticated; \n return (\n
\n { navbar_options ? (\n \n \n \n \n \n \n \n ) : (\n null\n ) \n \n }\n
\n );\n};\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/d870341812bf6f4ba9687993726563f3.json b/node_modules/.cache/babel-loader/d870341812bf6f4ba9687993726563f3.json deleted file mode 100644 index fc4e3c41..00000000 --- a/node_modules/.cache/babel-loader/d870341812bf6f4ba9687993726563f3.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 12,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 13,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 14,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Switch, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 15\n }\n })))));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","CookiesProvider","TaskList","Routing","Simulator"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB,C,CACA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAGE,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEJ,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHF,eAIE,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEC,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJF,eAKE,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEE,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALF,eAME,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEE,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANF,CADF,CADF,CADF,CADF;AAgBD;;;;EAlBmBX,S;;AAqBtB,eAAeU,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() {\n return (\n \n \n
\n \n {/* \n */}\n \n \n \n \n \n
\n
\n
\n );\n }\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/d7c16b0180af7ef0e5cd2d7d823b78b3.json b/node_modules/.cache/babel-loader/d913331097a7f7982d179a65247bd43e.json similarity index 100% rename from node_modules/.cache/babel-loader/d7c16b0180af7ef0e5cd2d7d823b78b3.json rename to node_modules/.cache/babel-loader/d913331097a7f7982d179a65247bd43e.json diff --git a/node_modules/.cache/babel-loader/d914005373ced778af30de64cd22fdf2.json b/node_modules/.cache/babel-loader/d914005373ced778af30de64cd22fdf2.json deleted file mode 100644 index 27ee3e1b..00000000 --- a/node_modules/.cache/babel-loader/d914005373ced778af30de64cd22fdf2.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nvar Styles = styled.div(_templateObject());\nexport var Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 16\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 28\n }\n }, \"Tasks\")))), \":\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 54,\n columnNumber: 18\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 18\n }\n }))))));\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","Styles","div","Navigationbar","logo","textDecoration"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,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AA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEC,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,UAAnD;AAA8D,IAAA,EAAE,EAAC,WAAjE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBADJ,CADF,eAOE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,QAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aADJ,CAPF,CADH,CAVV,oBA4BS;AAAK,IAAA,EAAE,EAAC,QAAR;AAAiB,IAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IADA,CA5BT,CADJ,CADA,CADF,CAD2B;AAAA,CAAtB","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nexport const Navigationbar = () => (\n \n \n \n \n \n \n \n)"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/da1726a641760823306581746c2dd2c6.json b/node_modules/.cache/babel-loader/da1726a641760823306581746c2dd2c6.json deleted file mode 100644 index e9f4f5e6..00000000 --- a/node_modules/.cache/babel-loader/da1726a641760823306581746c2dd2c6.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var authenticated = this.props.isLoggedIn;\n console.log(\"riddhi\", authenticated);\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 5\n }\n }, authenticated ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 33\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 33\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 33\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 61,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"iflogin\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 33\n }\n }, \"Logout\")))))))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 75,\n columnNumber: 4\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 76,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 77,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"iflogout\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 78,\n columnNumber: 9\n }\n }, \"Login\")))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","authenticated","props","isLoggedIn","console","log","textDecoration","submit","login"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AACN,UAAMC,aAAa,GAAG,KAAKC,KAAL,CAAWC,UAAjC;AACAC,MAAAA,OAAO,CAACC,GAAR,CAAY,QAAZ,EAAqBJ,aAArB;AAEF,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACKA,aAAa,gBACd,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA,oBAAC,MAAD;AAAQ,QAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD,CAAQ,QAAR;AAAiB,QAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,GAAD;AAAK,QAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACU;A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9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADJ,CAZF,eAiBE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKC,MAA1D;AAAkE,QAAA,KAAK,EAAC,SAAxE;AAAkF,QAAA,EAAE,EAAC,GAArF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBADJ,CAjBF,CADF,CANV,CADJ,CADF,CADA,CADc,gBA0CnB;AAAK,QAAA,EAAE,EAAC,QAAR;AAAiB,QAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAED,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKE,KAA1D;AAAiE,QAAA,KAAK,EAAC,UAAvE;AAAkF,QAAA,EAAE,EAAC,EAArF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CADF,CADC,CA3CC,CADF;AAyDD;;;;EA9D2BlB,S;;AAgE5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const authenticated = this.props.isLoggedIn;\n console.log(\"riddhi\",authenticated);\n \n return (\n
\n {authenticated ? ( \n \n \n \n \n \n \n \n )\n :\n (
\n
    \n
  • \n \n Login\n \n \n
  • \n
\n
) }\n \n
\n )\n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/bd64497a82740425f5625b7a5dcb58fa.json b/node_modules/.cache/babel-loader/da9aee5df81583bafce70b1aa7427801.json similarity index 100% rename from node_modules/.cache/babel-loader/bd64497a82740425f5625b7a5dcb58fa.json rename to node_modules/.cache/babel-loader/da9aee5df81583bafce70b1aa7427801.json diff --git a/node_modules/.cache/babel-loader/ae1a7902b6993fd74bd7320ef0a521d2.json b/node_modules/.cache/babel-loader/db01e0f86a634dc6bded791bd9ac06ba.json similarity index 100% rename from node_modules/.cache/babel-loader/ae1a7902b6993fd74bd7320ef0a521d2.json rename to node_modules/.cache/babel-loader/db01e0f86a634dc6bded791bd9ac06ba.json diff --git a/node_modules/.cache/babel-loader/08a12b3337c81d5926bfc85cd1cb190e.json b/node_modules/.cache/babel-loader/db2bcea6abd488194e733c5c8b8234f6.json similarity index 100% rename from node_modules/.cache/babel-loader/08a12b3337c81d5926bfc85cd1cb190e.json rename to node_modules/.cache/babel-loader/db2bcea6abd488194e733c5c8b8234f6.json diff --git a/node_modules/.cache/babel-loader/852fa38758a7e99cc1bdd6998223fa1a.json b/node_modules/.cache/babel-loader/db5a719a44b83245f538b2543de11812.json similarity index 100% rename from node_modules/.cache/babel-loader/852fa38758a7e99cc1bdd6998223fa1a.json rename to node_modules/.cache/babel-loader/db5a719a44b83245f538b2543de11812.json diff --git a/node_modules/.cache/babel-loader/0463faaeb6ea78017c98fb0b7db6414d.json b/node_modules/.cache/babel-loader/db5ff83c237ec524308a625b6b62bbbc.json similarity index 100% rename from node_modules/.cache/babel-loader/0463faaeb6ea78017c98fb0b7db6414d.json rename to node_modules/.cache/babel-loader/db5ff83c237ec524308a625b6b62bbbc.json diff --git a/node_modules/.cache/babel-loader/778e0dddbfb2e1e0af66bd61a68d7277.json b/node_modules/.cache/babel-loader/db62f44a68e5e4b4a6f27f4813af68a5.json similarity index 100% rename from node_modules/.cache/babel-loader/778e0dddbfb2e1e0af66bd61a68d7277.json rename to node_modules/.cache/babel-loader/db62f44a68e5e4b4a6f27f4813af68a5.json diff --git a/node_modules/.cache/babel-loader/1c0efe1949bba472b92807ebf8ebd2ec.json b/node_modules/.cache/babel-loader/db763a8471bd44caefc31f1dff92969f.json similarity index 100% rename from node_modules/.cache/babel-loader/1c0efe1949bba472b92807ebf8ebd2ec.json rename to node_modules/.cache/babel-loader/db763a8471bd44caefc31f1dff92969f.json diff --git a/node_modules/.cache/babel-loader/dbc0e8da77b0c0bcff2ff0762c6001d0.json b/node_modules/.cache/babel-loader/dbc0e8da77b0c0bcff2ff0762c6001d0.json new file mode 100644 index 00000000..a00b746a --- /dev/null +++ b/node_modules/.cache/babel-loader/dbc0e8da77b0c0bcff2ff0762c6001d0.json @@ -0,0 +1 @@ +{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/simulation/Gazebo_simulation-Frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n var url = urlAction; //const url = \"http://localhost\";\n\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n this.setState({\n isLoading: true,\n launch: true\n });\n this.attach(this.state.launch);\n\n var _httpClient = axios.create();\n\n _httpClient.defaults.timeout = 600000;\n\n _httpClient.get(\"http://\".concat(this.ip, \"/simulator/start/\").concat(this.state.user.sub, \"/\").concat(this.state.user.given_name, \"/spiri-friend2019@\"), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n simulator: res.data,\n isLoading: false\n });\n\n _this5.launchSimulator(_this5.state.simulator.publicIp);\n }); //this.launchSimulator();\n\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n submit: this.submit,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 27\n }\n }))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 230,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 35\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 37\n }\n }))), /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 237,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 238,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 248,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 253,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 254,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 24\n }\n }, options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 278,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/simulation/Gazebo_simulation-Frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","isNavbar","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","url","urlAction","httpClient","create","defaults","timeout","withCredentials","res","given_name","simulator","data","publicIp","options","textDecoration","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,aAAP,MAA2B,iBAA3B;AACA,OAAOC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,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })\n //this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? (\n
\n
    \n \n \n\n
\n
\n ):(\n \n \n
\n
\n \n \n \n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n \n )\n \n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n \n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n \n \n {mainBody}\n \n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/dbdcdd3847a191fff9c9f26b808fcef3.json b/node_modules/.cache/babel-loader/dbdcdd3847a191fff9c9f26b808fcef3.json deleted file mode 100644 index 075fad29..00000000 --- a/node_modules/.cache/babel-loader/dbdcdd3847a191fff9c9f26b808fcef3.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 11\n }\n }, \"style=\\\"width:200px; height:90px;\", /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:4200\",\n target: \"top\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 13\n }\n }, \" Console \"), /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:8888\",\n target: \"bottom\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }\n }, \" Simulator \"), /*#__PURE__*/React.createElement(\"div\", {\n class: \"top\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"top_\",\n src: \"\",\n width: \"100%\",\n height: \"200px\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 15\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n class: \"bottom\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"bottom_\",\n src: \"\",\n width: \"100%\",\n height: \"512\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 15\n }\n })));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Simulator","state","isLoading","isAuthentic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B;AAA8B,QAAA,KAAK,EAAC,MAApC;AAA2C,QAAA,MAAM,EAAC,KAAlD;AAAwD,QAAA,WAAW,EAAC,GAApE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CANF,CADF;AAkBD;;;;EAhCiBf,S;;AAAlBU,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAET,UAAU,CAACD,OAAD,CAAV,CAAoBW;AADd,C;AAkCvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
style=\"width:200px; height:90px;\n Console \n Simulator \n
\n \n
\n
\n \n
\n \n \n \n \n \n \n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/179ada4052769d06bc5c2d9305d5657b.json b/node_modules/.cache/babel-loader/dbe1b4c7104208c9d84ffee65b275e3e.json similarity index 100% rename from node_modules/.cache/babel-loader/179ada4052769d06bc5c2d9305d5657b.json rename to node_modules/.cache/babel-loader/dbe1b4c7104208c9d84ffee65b275e3e.json diff --git a/node_modules/.cache/babel-loader/dbf788bb1ac4025bdf430e2f61641041.json b/node_modules/.cache/babel-loader/dbf788bb1ac4025bdf430e2f61641041.json deleted file mode 100644 index bdc26f1e..00000000 --- a/node_modules/.cache/babel-loader/dbf788bb1ac4025bdf430e2f61641041.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:4200\",\n target: \"top_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 13\n }\n }, \" Console \"), /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:8888\",\n target: \"bottom_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }\n }, \" Simulator \"), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"top_\",\n src: \"\",\n width: \"100%\",\n height: \"50%\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"bottom_\",\n src: \"\",\n width: \"100%\",\n height: \"50%\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 9\n }\n }));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;AACA,OAAO,iBAAP;;IAEMC,S;;;;;;;;;;;;;;;UAKAC,K,GAAQ;AACNC,MAAAA,SAAS,EAAE,IADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,SAAS,EAAED;AAJL,K;;;;;;6BAQR;AACE,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,MAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADF,eAEE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,SAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAFF,eAGE;AAAQ,QAAA,IAAI,EAAC,MAAb;AAAoB,QAAA,GAAG,EAAC,EAAxB;AAA2B,QAAA,KAAK,EAAC,MAAjC;AACJ,QAAA,MAAM,EAAC,KADH;AACS,QAAA,WAAW,EAAC,GADrB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHF,eAKF;AAAQ,QAAA,IAAI,EAAC,SAAb;AAAuB,QAAA,GAAG,EAAC,EAA3B;AAA8B,QAAA,KAAK,EAAC,MAApC;AACA,QAAA,MAAM,EAAC,KADP;AACa,QAAA,WAAW,EAAC,GADzB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALE,CADF;AAcD;;;;EA5BiBf,S;;AAAlBU,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAET,UAAU,CAACD,OAAD,CAAV,CAAoBW;AADd,C;AA8BvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n Console \n Simulator \n \n \n \n \n \n \n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/dc38bf284b31d01a9a5c2edbf1f6cd17.json b/node_modules/.cache/babel-loader/dc38bf284b31d01a9a5c2edbf1f6cd17.json deleted file mode 100644 index 905cdce2..00000000 --- a/node_modules/.cache/babel-loader/dc38bf284b31d01a9a5c2edbf1f6cd17.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n isLoggedin: this.submit,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 27\n }\n }))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 230,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 249,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 24\n }\n }, options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 264,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 267,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 274,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","isNavbar","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,aAAP,MAA2B,iBAA3B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,S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ImF,QAHJ,CAFF;AAUH;;;;EAzQe/F,S;;AA2QlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? (\n
\n
    \n \n \n\n
\n
\n ):(\n \n \n
\n \n
    \n
  • \n \n Login\n \n
  • \n
\n
\n \n )\n \n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n \n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n \n \n {mainBody}\n \n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/dc5ce533c2fd1f818637a9eb78a0895b.json b/node_modules/.cache/babel-loader/dc5ce533c2fd1f818637a9eb78a0895b.json new file mode 100644 index 00000000..a3db884c --- /dev/null +++ b/node_modules/.cache/babel-loader/dc5ce533c2fd1f818637a9eb78a0895b.json @@ -0,0 +1 @@ +{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/simulation/Gazebo_simulation-Frontend/src/components/Navigationbar.js\";\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink, Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var isLoggedIn = this.props.isLoggedIn;\n console.log(\"Riddhi\", isLoggedIn);\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 14,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 35\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 37\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 41\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 45\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 49\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 45\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 49\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 45\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 49\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 45\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 47\n }\n }, \"Logout\"))))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/simulation/Gazebo_simulation-Frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","Link","styled","header","Navigationbar","isLoggedIn","props","console","log","textDecoration","submit"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,EAAiBC,IAAjB,QAA6B,kBAA7B;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;IAEzCC,a;;;;;;;;;;;6BACI;AACN,UAAMC,UAAU,GAAG,KAAKC,KAAL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AA;AAAA;AAAA;AAAA,iBADJ,CARJ,eAaI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,OAAhD;AAAwD,QAAA,EAAE,EAAC,GAA3D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADJ,CAbJ,eAkBI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKH,KAAL,CAAWI,MAAhE;AAAwE,QAAA,KAAK,EAAC,QAA9E;AAAuF,QAAA,EAAE,EAAC,GAA1F;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBADF,CAlBJ,CADR,CANd,CADZ,CADF;AAsCH;;;;EA3C2Bf,S;;AA6C5B,eAAeS,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink,Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nclass Navigationbar extends Component { \n render(){\n const isLoggedIn = this.props.isLoggedIn;\n console.log(\"Riddhi\",isLoggedIn);\n \n return (\n
\n \n \n
\n); \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/c020ffcf6025a229f35a42b96232a8ad.json b/node_modules/.cache/babel-loader/dc900f5fc33e46ed5e8ca10b4fb6c2fd.json similarity index 100% rename from node_modules/.cache/babel-loader/c020ffcf6025a229f35a42b96232a8ad.json rename to node_modules/.cache/babel-loader/dc900f5fc33e46ed5e8ca10b4fb6c2fd.json diff --git a/node_modules/.cache/babel-loader/02a6ff75861d9f309b3fe6eeb5f02eea.json b/node_modules/.cache/babel-loader/dcad70e590f7fb9cc97bb32f96af8a7b.json similarity index 100% rename from node_modules/.cache/babel-loader/02a6ff75861d9f309b3fe6eeb5f02eea.json rename to node_modules/.cache/babel-loader/dcad70e590f7fb9cc97bb32f96af8a7b.json diff --git a/node_modules/.cache/babel-loader/dcca40655717ab6089f90cbd5ab74b20.json b/node_modules/.cache/babel-loader/dcca40655717ab6089f90cbd5ab74b20.json deleted file mode 100644 index 33931073..00000000 --- a/node_modules/.cache/babel-loader/dcca40655717ab6089f90cbd5ab74b20.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 225,\n columnNumber: 19\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 237,\n columnNumber: 19\n }\n }, \"Login\")))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 248,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 252,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 253,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 24\n }\n }, options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 275,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,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AAC,uBAAb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAH/B,EAIO,CAAC,KAAKD,KAAL,CAAWK,MAAZ,iBAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAJ7B,EAKO,KAAKL,KAAL,CAAWK,MAAX,iBAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAL5B,CAFF,CADS,GAYL,IAZd;AAcE,UAAMqE,QAAQ,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACdH,OADc,EAEdE,SAFc,eAGf;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAEjF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAHe,eAMf;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CANe,eASf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QATe,CAAjB;AAcA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIkF,QADJ,CAFF;AAOH;;;;EAtQe9F,S;;AAwQlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n\n
\n \n
    \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n \n
\n
    \n
  • \n \n Login\n \n \n
  • \n
\n
\n
\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/e999b5b6cddc8d3cf0f59a0dda685655.json b/node_modules/.cache/babel-loader/dcf4b4e5085dad4a3200c6be207c33dc.json similarity index 100% rename from node_modules/.cache/babel-loader/e999b5b6cddc8d3cf0f59a0dda685655.json rename to node_modules/.cache/babel-loader/dcf4b4e5085dad4a3200c6be207c33dc.json diff --git a/node_modules/.cache/babel-loader/ed88e507ce534ad84bc91b00002f48b2.json b/node_modules/.cache/babel-loader/dd6cdd4e80b909cc3db48e0ea31ae250.json similarity index 100% rename from node_modules/.cache/babel-loader/ed88e507ce534ad84bc91b00002f48b2.json rename to node_modules/.cache/babel-loader/dd6cdd4e80b909cc3db48e0ea31ae250.json diff --git a/node_modules/.cache/babel-loader/dd9b5e78bfaa4717869a71f574223dfa.json b/node_modules/.cache/babel-loader/dd9b5e78bfaa4717869a71f574223dfa.json deleted file mode 100644 index 1b83330e..00000000 --- a/node_modules/.cache/babel-loader/dd9b5e78bfaa4717869a71f574223dfa.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport NavigationBar from './components/Navbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 228,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 229,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 242,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 19\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 278,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 282,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 283,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 286,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 294,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(NavigationBar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 295,\n columnNumber: 11\n }\n }), mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","NavigationBar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,OAAOC,aAAP,MAA2B,qBAA3B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAC/C,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAwC;;AACxC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE;AAJF,KAOU;AAAA,QAETC,OAFS,GAEEP,KAFF,CAETO,OAFS;AAGhBC,IAAAA,OAAO,CAACC,GAAR,CAAYF,OAAZ;AACA,UAAKN,KAAL,CAAWS,SAAX,GAAuBH,OAAO,CAACI,GAAR,CAAY,YAAZ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A;AAAA,QADJ,CAda,eAkBb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAlBa,CAAjB;AAyBE,0BACE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,EAEIkF,QAFJ,CADF;AASH;;;;EA5Re9F,S;;AA8RlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport NavigationBar from './components/Navbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n
\n \n {mainBody}\n
\n \n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/1444927d9d615d97aba24008429b4a43.json b/node_modules/.cache/babel-loader/ddb1907f063b8fee798fac8fab686ffa.json similarity index 100% rename from node_modules/.cache/babel-loader/1444927d9d615d97aba24008429b4a43.json rename to node_modules/.cache/babel-loader/ddb1907f063b8fee798fac8fab686ffa.json diff --git a/node_modules/.cache/babel-loader/3d74832c8ed1a72d961213adc1379b9f.json b/node_modules/.cache/babel-loader/de3ed95b674ad0ff673e0952b270ecb1.json similarity index 100% rename from node_modules/.cache/babel-loader/3d74832c8ed1a72d961213adc1379b9f.json rename to node_modules/.cache/babel-loader/de3ed95b674ad0ff673e0952b270ecb1.json diff --git a/node_modules/.cache/babel-loader/6be7b8d48fac06d574ea1fd77c43683a.json b/node_modules/.cache/babel-loader/de673dcb5598d50e0c150caf8f2cd20d.json similarity index 100% rename from node_modules/.cache/babel-loader/6be7b8d48fac06d574ea1fd77c43683a.json rename to node_modules/.cache/babel-loader/de673dcb5598d50e0c150caf8f2cd20d.json diff --git a/node_modules/.cache/babel-loader/de86928823a70870890fa570356e24d5.json b/node_modules/.cache/babel-loader/de86928823a70870890fa570356e24d5.json deleted file mode 100644 index f570d00b..00000000 --- a/node_modules/.cache/babel-loader/de86928823a70870890fa570356e24d5.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 21\n }\n })));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,SAASC,aAAT,QAA8B,4BAA9B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACU,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEL,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,eAEI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAFJ,eAGI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHJ,eAII,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEL,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJJ,CADV,CADF;AAUD;;;;EAZmBN,S;;AAetB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() { \n return ( \n \n \n \n \n \n \n \n \n )\n };\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/debab50def026ce79cae5bb39afaea3b.json b/node_modules/.cache/babel-loader/debab50def026ce79cae5bb39afaea3b.json deleted file mode 100644 index 18a06931..00000000 --- a/node_modules/.cache/babel-loader/debab50def026ce79cae5bb39afaea3b.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, NavLink, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nvar Styles = styled.div(_templateObject());\nexport var Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 5\n }\n }, \"const options = this.state.isAuthenticated ?\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 28\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: _this.submit,\n class: \"logout\",\n to: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 28\n }\n }, \"Logout\")))), \":\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 48,\n columnNumber: 18\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 49,\n columnNumber: 18\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 20\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: _this.login,\n class: \"login\",\n to: \"\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 24\n }\n }, \"Login\")))), /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 59,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 60,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Nav.Item, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 61,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 61,\n columnNumber: 21\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(Nav.Item, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 21\n }\n }, \"Task\"))))));\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","NavLink","Navbar","Form","FormControl","styled","Styles","div","Navigationbar","textDecoration","submit","login"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,OAAd,EAAuBC,MAAvB,EAA+BC,IAA/B,EAAqCC,WAArC,QAAwD,iBAAxD;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,IAAMC,MAAM,GAAGD,MAAM,CAACE,GAAV,mBAAZ;AAiBA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;AAAA,sBAC3B,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD;AAAQ,IAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kEAGc;AAAK,IAAA,EAAE,EAAC,QAAR;AAAiB,IAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEC,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,UAAnD;AAA8D,IAAA,EAAE,EAAC,WAAjE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBADJ,CADF,eAOE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,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,GAAD,CAAK,IAAL;AAAU,IAAA,IAAI,EAAC,WAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAAV,CADF,eAEE,oBAAC,GAAD,CAAK,IAAL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAU,oBAAC,GAAD,CAAK,IAAL;AAAU,IAAA,IAAI,EAAC,QAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAAV,CAFF,CADF,CApCF,CADF,CAD2B;AAAA,CAAtB","sourcesContent":["import React from 'react';\nimport { Nav, NavLink, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nexport const Navigationbar = () => (\n \n \n const options = this.state.isAuthenticated ? \n \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n \n \n \n \n \n
\n
\n)"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/dec5a9f21942ae51b833b4c3bf38eaa3.json b/node_modules/.cache/babel-loader/dec5a9f21942ae51b833b4c3bf38eaa3.json deleted file mode 100644 index e072e7f9..00000000 --- a/node_modules/.cache/babel-loader/dec5a9f21942ae51b833b4c3bf38eaa3.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 27\n }\n }), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 248,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 252,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 253,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 35\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 37\n }\n }))), options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 267,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 273,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 280,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","isNavbar","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,aAAP,MAA2B,iBAA3B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AASJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UARlBC,KAQkB,GARV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE,KAJF;AAKNC,MAAAA,QAAQ,EAAE;AALJ,KAQU;AAAA,QAETC,OAFS,GAEER,KAFF,CAETQ,OAFS;AAGhBC,IAAAA,OAAO,CAACC,GAAR,CAAYF,OAAZ;AACA,UAAKP,KAAL,CAAWU,SAAX,GAAuBH,OAAO,CAACI,GAAR,CAAY,YAAZ,CA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AG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACf;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAC0B;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAAA,KAAK,EAAC,MAAX;AAAkB,QAAA,GAAG,EAAEpF,MAAvB;AAA+B,QAAA,KAAK,EAAE,MAAtC;AAA8C,QAAA,MAAM,EAAE,MAAtD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CAD1B,CADe,EAMdiF,OANc,EAOdE,SAPc,eAQf;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAElF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CARe,eAWf;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAXe,eAcf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAde,CAAjB;AAmBA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAGImF,QAHJ,CAFF;AAUH;;;;EA/Qe/F,S;;AAiRlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? (\n
\n
    \n \n
  • \n \n Logout\n \n
  • \n\n
\n
\n ):(\n \n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n \n )\n \n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n
\n \n \n \n
\n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n \n \n {mainBody}\n \n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/59ce133103c34317b06c143aa7469ba4.json b/node_modules/.cache/babel-loader/def963cfcd58011181c80e7e2873289b.json similarity index 100% rename from node_modules/.cache/babel-loader/59ce133103c34317b06c143aa7469ba4.json rename to node_modules/.cache/babel-loader/def963cfcd58011181c80e7e2873289b.json diff --git a/node_modules/.cache/babel-loader/d819caf48f7b1ad6043a9f70c176a273.json b/node_modules/.cache/babel-loader/df08dc8a23c111e325dd234fea34a0d6.json similarity index 100% rename from node_modules/.cache/babel-loader/d819caf48f7b1ad6043a9f70c176a273.json rename to node_modules/.cache/babel-loader/df08dc8a23c111e325dd234fea34a0d6.json diff --git a/node_modules/.cache/babel-loader/29c2539ae31d8a115cee5dac72991091.json b/node_modules/.cache/babel-loader/dfbe5719fbbeee6a5940e34bdf11d83a.json similarity index 100% rename from node_modules/.cache/babel-loader/29c2539ae31d8a115cee5dac72991091.json rename to node_modules/.cache/babel-loader/dfbe5719fbbeee6a5940e34bdf11d83a.json diff --git a/node_modules/.cache/babel-loader/9e3ac406b5b7a4cdbb20a706ef5fe72a.json b/node_modules/.cache/babel-loader/e00d16df5b587d72d472ce3c44937e04.json similarity index 100% rename from node_modules/.cache/babel-loader/9e3ac406b5b7a4cdbb20a706ef5fe72a.json rename to node_modules/.cache/babel-loader/e00d16df5b587d72d472ce3c44937e04.json diff --git a/node_modules/.cache/babel-loader/e011e7481784735a629cd5933f746655.json b/node_modules/.cache/babel-loader/e011e7481784735a629cd5933f746655.json deleted file mode 100644 index 33912ad1..00000000 --- a/node_modules/.cache/babel-loader/e011e7481784735a629cd5933f746655.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport Navigationbar from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(Switch, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 23\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 23\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 23\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 23\n }\n }))));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,OAAOC,aAAP,MAA2B,4BAA3B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACU,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,eAEI,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAGE,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEL,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHF,eAIE,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJF,eAKE,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALF,eAME,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEL,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANF,CAFJ,CADV,CADF;AAgBD;;;;EAlBmBN,S;;AAqBtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport Navigationbar from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() { \n return ( \n \n \n \n \n {/* \n */} \n \n \n \n \n \n \n \n \n )\n };\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/ee4b4c25a0ba7941916ba4792d33ae16.json b/node_modules/.cache/babel-loader/e077198c964409bc8bbb135532b5fc53.json similarity index 100% rename from node_modules/.cache/babel-loader/ee4b4c25a0ba7941916ba4792d33ae16.json rename to node_modules/.cache/babel-loader/e077198c964409bc8bbb135532b5fc53.json diff --git a/node_modules/.cache/babel-loader/e0eb49bcc6be1d8bf70939ea08b7c7c4.json b/node_modules/.cache/babel-loader/e0eb49bcc6be1d8bf70939ea08b7c7c4.json deleted file mode 100644 index 513178e7..00000000 --- a/node_modules/.cache/babel-loader/e0eb49bcc6be1d8bf70939ea08b7c7c4.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png';\nvar Styles = styled.div(_templateObject());\nexport var Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 16\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 28\n }\n }, \"Tasks\")))), \":\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 18\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 18\n }\n }))))));\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","header","logo","Styles","div","Navigationbar","textDecoration"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAC/C,OAAOC,IAAP,MAAiB,qBAAjB;AACA,IAAMC,MAAM,GAAGH,MAAM,CAACI,GAAV,mBAAZ;AAiBA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;AAAA,sBAC3B,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD;AAAQ,IAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACA,oBAAC,MAAD,CAAQ,QAAR;AAAiB,IAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,GAAD;AAAK,IAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACA;AAAK,IAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI;AAAG,IAAA,KAAK,EAAC,OAAT;AAAiB,IAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACG;AAAO,IAAA,KAAK,EAAE,MAAd;AAAsB,IAAA,MAAM,EAAE,MAA9B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IADH,CADJ,CADA,eAOA;AAAK,IAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI;AAAK,IAAA,GAAG,EAAEH,IAAV;AAAgB,IAAA,KAAK,EAAE,QAAvB;AAAiC,IAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IADJ,CAPA,eAUU;AAAK,IAAA,EAAE,EAAC,QAAR;AAAiB,IAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEI,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,UAAnD;AAA8D,IAAA,EAAE,EAAC,WAAjE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBADJ,CADF,eAOE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,QAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aADJ,CAPF,CADH,CAVV,oBA4BS;AAAK,IAAA,EAAE,EAAC,QAAR;AAAiB,IAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IADA,CA5BT,CADJ,CADA,CADF,CAD2B;AAAA,CAAtB","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nexport const Navigationbar = () => (\n \n \n \n \n \n \n \n)"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/0cc0622dee52e7783b11e65b481e1b1c.json b/node_modules/.cache/babel-loader/e151f766b359b1279e277c214adadd50.json similarity index 100% rename from node_modules/.cache/babel-loader/0cc0622dee52e7783b11e65b481e1b1c.json rename to node_modules/.cache/babel-loader/e151f766b359b1279e277c214adadd50.json diff --git a/node_modules/.cache/babel-loader/60d459851eb69297b9543d24200cf1f4.json b/node_modules/.cache/babel-loader/e187f10c543094cf017f41028f56d05c.json similarity index 100% rename from node_modules/.cache/babel-loader/60d459851eb69297b9543d24200cf1f4.json rename to node_modules/.cache/babel-loader/e187f10c543094cf017f41028f56d05c.json diff --git a/node_modules/.cache/babel-loader/e18d3e3d1ffa4fb933da6822061715cf.json b/node_modules/.cache/babel-loader/e18d3e3d1ffa4fb933da6822061715cf.json deleted file mode 100644 index 72d30813..00000000 --- a/node_modules/.cache/babel-loader/e18d3e3d1ffa4fb933da6822061715cf.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var authenticated = this.props.isLoggedIn;\n var options = authenticated ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 41\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 61,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 41\n }\n }, \"Logout\")))))))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 77,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 78,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 79,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 80,\n columnNumber: 11\n }\n }, \"Login\"))));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 88,\n columnNumber: 9\n }\n }, options);\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","authenticated","props","is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,CADF,CADwB,gBA+CtB;AAAK,QAAA,EAAE,EAAC,QAAR;AAAiB,QAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAED,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKH,KAAL,CAAWK,KAAhE;AAAuE,QAAA,KAAK,EAAC,OAA7E;AAAqF,QAAA,EAAE,EAAC,EAAxF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADA,CADF,CADA,CA/CP;AAyDD,0BACQ;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIH,OADJ,CADR;AAKC;;;;EAlE2Bd,S;;AAoE5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const authenticated = this.props.isLoggedIn;\n \n const options = authenticated ? (\n \n \n \n \n \n \n \n )\n :\n (\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n )\nreturn (\n
\n {options}\n
\n) \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/39aa308aa5c049ec849d48dec94ce944.json b/node_modules/.cache/babel-loader/e1ee3cb4f77781b4ab53a1929da7d751.json similarity index 100% rename from node_modules/.cache/babel-loader/39aa308aa5c049ec849d48dec94ce944.json rename to node_modules/.cache/babel-loader/e1ee3cb4f77781b4ab53a1929da7d751.json diff --git a/node_modules/.cache/babel-loader/5adaa1f919178d6c973c0dce9d88e8aa.json b/node_modules/.cache/babel-loader/e20a1903c87fc0e17b55b93faa75647a.json similarity index 100% rename from node_modules/.cache/babel-loader/5adaa1f919178d6c973c0dce9d88e8aa.json rename to node_modules/.cache/babel-loader/e20a1903c87fc0e17b55b93faa75647a.json diff --git a/node_modules/.cache/babel-loader/e2aacdc85eed2c02392d6a6a250edfd2.json b/node_modules/.cache/babel-loader/e2aacdc85eed2c02392d6a6a250edfd2.json deleted file mode 100644 index 04f74804..00000000 --- a/node_modules/.cache/babel-loader/e2aacdc85eed2c02392d6a6a250edfd2.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink, Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var isLoggedIn = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 31\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 33\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 41\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 45\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 41\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 45\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 41\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 45\n }\n }, \"Simulator\")))))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","Link","styled","header","Styles","div","Navigationbar","isLoggedIn","props","textDecoration"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC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lB,SAAb;AAA0C,QAAA,KAAK,EAAC,UAAhD;AAA2D,QAAA,EAAE,EAAC,WAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBADJ,CAFJ,eAQI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,OAAhD;AAAwD,QAAA,EAAE,EAAC,QAA3D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CARJ,eAaI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,IAAD;AAAM,QAAA,KAAK,EAAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAb;AAA0C,QAAA,KAAK,EAAC,OAAhD;AAAwD,QAAA,EAAE,EAAC,GAA3D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADJ,CAbJ,CADR,CANd,CADR,CAHA,CADF;AAoCH;;;;EAxC2Bd,S;;AA0C5B,eAAeW,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink,Link } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const isLoggedIn = this.props.isLoggedIn;\n \n return (\n
\n \n \n \n \n \n
\n); \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/d43725e79652a80ac43af96befa49bc3.json b/node_modules/.cache/babel-loader/e2bfcbfdd020fd5234f7ae81ae1f8e39.json similarity index 100% rename from node_modules/.cache/babel-loader/d43725e79652a80ac43af96befa49bc3.json rename to node_modules/.cache/babel-loader/e2bfcbfdd020fd5234f7ae81ae1f8e39.json diff --git a/node_modules/.cache/babel-loader/9556989980033bf369aaaf5d2542b2a2.json b/node_modules/.cache/babel-loader/e2d1986e02ef791bb8941ad80de20f6a.json similarity index 100% rename from node_modules/.cache/babel-loader/9556989980033bf369aaaf5d2542b2a2.json rename to node_modules/.cache/babel-loader/e2d1986e02ef791bb8941ad80de20f6a.json diff --git a/node_modules/.cache/babel-loader/cf6d232fb5c45d32bf03aac16d745f9a.json b/node_modules/.cache/babel-loader/e34b32106e5997c6224e6274e18fe5e5.json similarity index 100% rename from node_modules/.cache/babel-loader/cf6d232fb5c45d32bf03aac16d745f9a.json rename to node_modules/.cache/babel-loader/e34b32106e5997c6224e6274e18fe5e5.json diff --git a/node_modules/.cache/babel-loader/e36926a587e6e11b68bf4a7a334ebd6b.json b/node_modules/.cache/babel-loader/e36926a587e6e11b68bf4a7a334ebd6b.json deleted file mode 100644 index c73bf5a2..00000000 --- a/node_modules/.cache/babel-loader/e36926a587e6e11b68bf4a7a334ebd6b.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 27\n }\n }), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 248,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 252,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 253,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 24\n }\n }, options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 275,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","isNavbar","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,aAAP,MAA2B,iBAA3B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AAC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AA;AAAA,SAGImF,QAHJ,CAFF;AAUH;;;;EA1Qe/F,S;;AA4QlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? (\n
\n
    \n \n
  • \n \n Logout\n \n
  • \n\n
\n
\n ):(\n \n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n \n )\n \n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n \n \n {mainBody}\n \n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/ad9167e623acddca13bfb6b814bdb0ca.json b/node_modules/.cache/babel-loader/e3de9553ebe4d298df4345ac44e91ab2.json similarity index 100% rename from node_modules/.cache/babel-loader/ad9167e623acddca13bfb6b814bdb0ca.json rename to node_modules/.cache/babel-loader/e3de9553ebe4d298df4345ac44e91ab2.json diff --git a/node_modules/.cache/babel-loader/e3e2e580b6e9a68d2a464c2f82d0acf7.json b/node_modules/.cache/babel-loader/e3e2e580b6e9a68d2a464c2f82d0acf7.json deleted file mode 100644 index 989a540d..00000000 --- a/node_modules/.cache/babel-loader/e3e2e580b6e9a68d2a464c2f82d0acf7.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Switch, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 15\n }\n })))));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,SAASC,aAAT,QAA8B,4BAA9B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAKI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEN,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALJ,eAMI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEC,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANJ,eAOI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAPJ,eAQI,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QARJ,eASE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CATF,CADF,CADF,CADF;AAmBD;;;;EArBmBX,S;;AAwBtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() {\n return (\n \n \n
\n \n \n {/* \n */}\n \n \n \n \n \n \n \n
\n
\n
\n );\n }\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/3c0bec20a17830f55fd52044adbe8ce2.json b/node_modules/.cache/babel-loader/e3ec98c32d39d95feb1846871e7c24f6.json similarity index 100% rename from node_modules/.cache/babel-loader/3c0bec20a17830f55fd52044adbe8ce2.json rename to node_modules/.cache/babel-loader/e3ec98c32d39d95feb1846871e7c24f6.json diff --git a/node_modules/.cache/babel-loader/c7f482775e07a8f7dfa4e63ee288557e.json b/node_modules/.cache/babel-loader/e435ac43746f5d33f6232fa156650438.json similarity index 100% rename from node_modules/.cache/babel-loader/c7f482775e07a8f7dfa4e63ee288557e.json rename to node_modules/.cache/babel-loader/e435ac43746f5d33f6232fa156650438.json diff --git a/node_modules/.cache/babel-loader/d7145429601e4fd757529354395da065.json b/node_modules/.cache/babel-loader/e43a89637b3bbaf369ceb00f3f1e262e.json similarity index 100% rename from node_modules/.cache/babel-loader/d7145429601e4fd757529354395da065.json rename to node_modules/.cache/babel-loader/e43a89637b3bbaf369ceb00f3f1e262e.json diff --git a/node_modules/.cache/babel-loader/97f038bacfc793909e61c6b96bd3f249.json b/node_modules/.cache/babel-loader/e46f04a257fdebb8afe18c3880700d7e.json similarity index 100% rename from node_modules/.cache/babel-loader/97f038bacfc793909e61c6b96bd3f249.json rename to node_modules/.cache/babel-loader/e46f04a257fdebb8afe18c3880700d7e.json diff --git a/node_modules/.cache/babel-loader/e49a084f03db129940d4190db8738b4a.json b/node_modules/.cache/babel-loader/e49a084f03db129940d4190db8738b4a.json new file mode 100644 index 00000000..9b5f32b1 --- /dev/null +++ b/node_modules/.cache/babel-loader/e49a084f03db129940d4190db8738b4a.json @@ -0,0 +1 @@ +{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/simulation/Gazebo_simulation-Frontend/src/components/Comp_image.js\";\nimport React, { Component } from 'react';\nimport './Comp_image.css';\nimport { withRouter } from 'react-router-dom';\n\nvar Comp_image = /*#__PURE__*/function (_Component) {\n _inherits(Comp_image, _Component);\n\n function Comp_image() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Comp_image);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Comp_image)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _this.handleClick = function (e) {\n e.preventDefault();\n console.log('The link was clicked.');\n };\n\n return _this;\n }\n\n _createClass(Comp_image, [{\n key: \"constuctor\",\n value: function constuctor() {\n this.handleClick = this.handleClick.bind(this);\n }\n }, {\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"Comp_image\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"SpiriText\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"br\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 19\n }\n }), /*#__PURE__*/React.createElement(\"b\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 19\n }\n }, \" Concours de drones, ENVOL\"), /*#__PURE__*/React.createElement(\"br\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 19\n }\n }), /*#__PURE__*/React.createElement(\"b\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 19\n }\n }, \"2019-2020\"), /*#__PURE__*/React.createElement(\"br\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 19\n }\n }), /*#__PURE__*/React.createElement(\"br\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 19\n }\n }), /*#__PURE__*/React.createElement(\"text\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 19\n }\n }, \"Hello, and welcome to the Spiri simulator! Here you will learn to program your Spiri robot, and run test scripts before trying your code in real life. To get started you will need to enter the login name and password provided to you by Spiri Robotics. If you wish to sign up, have lost your login info or want to report a bug, please\", /*#__PURE__*/React.createElement(\"a\", {\n href: \"https://spirirobotics.com/simulator-contact-form\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 21\n }\n }, \" contact us\"), \".\")));\n }\n }]);\n\n return Comp_image;\n}(Component);\n\nexport default withRouter(Comp_image);","map":{"version":3,"sources":["/home/riddhi/simulation/Gazebo_simulation-Frontend/src/components/Comp_image.js"],"names":["React","Component","withRouter","Comp_image","handleClick","e","preventDefault","console","log","bind"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAeC,SAAf,QAA+B,OAA/B;AACA,OAAO,kBAAP;AAEA,SAASC,UAAT,QAA2B,kBAA3B;;IAEMC,U;;;;;;;;;;;;;;;;UAKAC,W,GAAc,UAACC,CAAD,EAAO;AACnBA,MAAAA,CAAC,CAACC,cAAF;AACAC,MAAAA,OAAO,CAACC,GAAR,CAAY,uBAAZ;AACD,K;;;;;;;iCAPU;AACT,WAAKJ,WAAL,GAAmB,KAAKA,WAAL,CAAiBK,IAAjB,CAAsB,IAAtB,CAAnB;AACD;;;6BAOM;AACL,0BACE;AAAK,QAAA,SAAS,EAAC,YAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,SAAS,EAAC,WAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,eAEI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sCAFJ,eAGI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHJ,eAII;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAJJ,eAKI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALJ,eAMI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANJ,eAOI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uWAIE;AAAG,QAAA,IAAI,EAAC,kDAAR;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAJF,MAPJ,CADJ,CADF;AAkBH;;;;EA7BoBR,S;;AAgCzB,eAAeC,UAAU,CAACC,UAAD,CAAzB","sourcesContent":["import React, {Component} from 'react';\nimport './Comp_image.css';\n\nimport { withRouter } from 'react-router-dom';\n\nclass Comp_image extends Component{\n constuctor() {\n this.handleClick = this.handleClick.bind(this);\n }\n \n handleClick = (e) => {\n e.preventDefault();\n console.log('The link was clicked.');\n }\n\n render() {\n return(\n
\n
\n
\n Concours de drones, ENVOL\n
\n 2019-2020\n
\n
\n \n Hello, and welcome to the Spiri simulator! Here you will learn to program your Spiri robot, and run test scripts before\n trying your code in real life. To get started you will need to enter the login name and password provided to you by\n Spiri Robotics. If you wish to sign up, have lost your login info or want to report a bug, please\n contact us.\n \n
\n
\n );\n }\n}\n\nexport default withRouter(Comp_image);"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/e4a3ec15668fb11c2059a9a04a7ab1ae.json b/node_modules/.cache/babel-loader/e4a3ec15668fb11c2059a9a04a7ab1ae.json deleted file mode 100644 index 339849d2..00000000 --- a/node_modules/.cache/babel-loader/e4a3ec15668fb11c2059a9a04a7ab1ae.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #9FFFCB;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nvar Styles = styled.div(_templateObject());\nexport var Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Brand, {\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 7\n }\n }, \"Tutorial\"), /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Nav.Item, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 21\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(Nav.Item, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 21\n }\n }, \"Task\"))))));\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","styled","Styles","div","Navigationbar"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,IAAMC,MAAM,GAAGD,MAAM,CAACE,GAAV,mBAAZ;AAiBA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;AAAA,sBAC3B,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD;AAAQ,IAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD,CAAQ,KAAR;AAAc,IAAA,IAAI,EAAC,GAAnB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBADF,eAIE,oBAAC,MAAD,CAAQ,QAAR;AAAiB,IAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,GAAD;AAAK,IAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,GAAD,CAAK,IAAL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAU,oBAAC,GAAD,CAAK,IAAL;AAAU,IAAA,IAAI,EAAC,WAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAAV,CADF,eAEE,oBAAC,GAAD,CAAK,IAAL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAU,oBAAC,GAAD,CAAK,IAAL;AAAU,IAAA,IAAI,EAAC,QAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAAV,CAFF,CADF,CAJF,CADF,CAD2B;AAAA,CAAtB","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #9FFFCB;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nexport const Navigationbar = () => (\n \n \n Tutorial\n \n \n \n \n \n \n \n)"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/e4e6595e8e57fc893d97a8261acb05fa.json b/node_modules/.cache/babel-loader/e4e6595e8e57fc893d97a8261acb05fa.json deleted file mode 100644 index 2663373c..00000000 --- a/node_modules/.cache/babel-loader/e4e6595e8e57fc893d97a8261acb05fa.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport Navigationbar from './Navigationbar';\nimport './App.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:4200\",\n target: \"top_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 13\n }\n }, \" Console \"), /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:8888\",\n target: \"bottom_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 13\n }\n }, \" Simulator \"), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"top_\",\n src: \"\",\n width: \"100%\",\n height: \"50%\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"bottom_\",\n src: \"\",\n width: \"100%\",\n height: \"50%\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 15\n }\n }));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Navigationbar","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;AACA,OAAOC,aAAP,MAA0B,iBAA1B;AACA,OAAO,WAAP;;IAEMC,S;;;;;;;;;;;;;;;UAKAC,K,GAAQ;AACNC,MAAAA,SAAS,EAAE,IADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,SAAS,EAAED;AAJL,K;;;;;;6BAQR;AACE,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,eAEE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,MAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAFF,eAGE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,SAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAHF,eAKI;AAAQ,QAAA,IAAI,EAAC,MAAb;AAAoB,QAAA,GAAG,EAAC,EAAxB;AAA2B,QAAA,KAAK,EAAC,MAAjC;AAAyC,QAAA,MAAM,EAAC,KAAhD;AAAsD,QAAA,WAAW,EAAC,GAAlE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALJ,eAMI;AAAQ,QAAA,IAAI,EAAC,SAAb;AAAuB,QAAA,GAAG,EAAC,EAA3B;AAA8B,QAAA,KAAK,EAAC,MAApC;AAA2C,QAAA,MAAM,EAAC,KAAlD;AAAwD,QAAA,WAAW,EAAC,GAApE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANJ,CADF;AAUD;;;;EAxBiBhB,S;;AAAlBW,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAEV,UAAU,CAACD,OAAD,CAAV,CAAoBY;AADd,C;AA0BvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport Navigationbar from './Navigationbar';\nimport './App.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n \n Console \n Simulator \n \n \n \n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/980ec165ca64c90a4d33c25aba4ba455.json b/node_modules/.cache/babel-loader/e50d2ed59dd2966cecfccc13f51b627c.json similarity index 100% rename from node_modules/.cache/babel-loader/980ec165ca64c90a4d33c25aba4ba455.json rename to node_modules/.cache/babel-loader/e50d2ed59dd2966cecfccc13f51b627c.json diff --git a/node_modules/.cache/babel-loader/c5347b1dcee0e171f6199d9bf7b6702a.json b/node_modules/.cache/babel-loader/e5127edd469a5410d8b7d5bc064696ab.json similarity index 100% rename from node_modules/.cache/babel-loader/c5347b1dcee0e171f6199d9bf7b6702a.json rename to node_modules/.cache/babel-loader/e5127edd469a5410d8b7d5bc064696ab.json diff --git a/node_modules/.cache/babel-loader/0c9e2db84ce77493a315373c6b4b5f18.json b/node_modules/.cache/babel-loader/e53b2e3303ce37f3dfdde1924761b0a1.json similarity index 100% rename from node_modules/.cache/babel-loader/0c9e2db84ce77493a315373c6b4b5f18.json rename to node_modules/.cache/babel-loader/e53b2e3303ce37f3dfdde1924761b0a1.json diff --git a/node_modules/.cache/babel-loader/8aebbda800e8be0c2b5ca5aa258fd8a0.json b/node_modules/.cache/babel-loader/e5540e5877299a1491a0e55f1fecb359.json similarity index 100% rename from node_modules/.cache/babel-loader/8aebbda800e8be0c2b5ca5aa258fd8a0.json rename to node_modules/.cache/babel-loader/e5540e5877299a1491a0e55f1fecb359.json diff --git a/node_modules/.cache/babel-loader/924c1a106e843a0b7796af278093546c.json b/node_modules/.cache/babel-loader/e55ea3b9ba8fa4fcc040d043e4043368.json similarity index 100% rename from node_modules/.cache/babel-loader/924c1a106e843a0b7796af278093546c.json rename to node_modules/.cache/babel-loader/e55ea3b9ba8fa4fcc040d043e4043368.json diff --git a/node_modules/.cache/babel-loader/d48f976b9f5db23328ae92c7c12e6014.json b/node_modules/.cache/babel-loader/e5815e670e38b937ee08c5a9733df2b5.json similarity index 100% rename from node_modules/.cache/babel-loader/d48f976b9f5db23328ae92c7c12e6014.json rename to node_modules/.cache/babel-loader/e5815e670e38b937ee08c5a9733df2b5.json diff --git a/node_modules/.cache/babel-loader/4e1bbe9387f852869dc2f1f0dd2b55c9.json b/node_modules/.cache/babel-loader/e5adf38ad52ac7c36a25d7a2132e9140.json similarity index 100% rename from node_modules/.cache/babel-loader/4e1bbe9387f852869dc2f1f0dd2b55c9.json rename to node_modules/.cache/babel-loader/e5adf38ad52ac7c36a25d7a2132e9140.json diff --git a/node_modules/.cache/babel-loader/e60eed194e5dc35ac067da970ce83a5d.json b/node_modules/.cache/babel-loader/e60eed194e5dc35ac067da970ce83a5d.json deleted file mode 100644 index dca401b0..00000000 --- a/node_modules/.cache/babel-loader/e60eed194e5dc35ac067da970ce83a5d.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 228,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 229,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 242,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 15\n }\n }, \"/* \", /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 21\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 278,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 282,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 283,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 286,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 294,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 295,\n columnNumber: 11\n }\n }), mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,OAAOC,aAAP,MAA0B,iBAA1B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAC/C,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAwC;;AACxC,SAASC,WAAT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AAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACG;AAAM,QAAA,GAAG,EAAEnF,MAAX;AAAmB,QAAA,KAAK,EAAE,MAA1B;AAAkC,QAAA,MAAM,EAAE,MAA1C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADH,CADJ,EAIKgF,OAJL,CADa,EAQZE,SARY,eAUb;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAEjF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAVa,eAcb;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAda,eAkBb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAlBa,CAAjB;AAyBE,0BACE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,EAEIkF,QAFJ,CADF;AASH;;;;EA5Re9F,S;;AA8RlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n /* < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n
\n \n {mainBody}\n
\n \n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/8c0c80fba2cd6dfd7a4a333f20e0321f.json b/node_modules/.cache/babel-loader/e67af508925305629c4156b245aa2244.json similarity index 100% rename from node_modules/.cache/babel-loader/8c0c80fba2cd6dfd7a4a333f20e0321f.json rename to node_modules/.cache/babel-loader/e67af508925305629c4156b245aa2244.json diff --git a/node_modules/.cache/babel-loader/d84890504084d06dff7c7cd91f030dee.json b/node_modules/.cache/babel-loader/e67cd3395173ba4f943bf6f17ea761d0.json similarity index 100% rename from node_modules/.cache/babel-loader/d84890504084d06dff7c7cd91f030dee.json rename to node_modules/.cache/babel-loader/e67cd3395173ba4f943bf6f17ea761d0.json diff --git a/node_modules/.cache/babel-loader/5b82373275b02d828891ffb333c2c9c6.json b/node_modules/.cache/babel-loader/e697de1b3cd6181ca3c7e7d93dd6c353.json similarity index 100% rename from node_modules/.cache/babel-loader/5b82373275b02d828891ffb333c2c9c6.json rename to node_modules/.cache/babel-loader/e697de1b3cd6181ca3c7e7d93dd6c353.json diff --git a/node_modules/.cache/babel-loader/e6d9aea75368fdc548dd959fbe5ba84a.json b/node_modules/.cache/babel-loader/e6d9aea75368fdc548dd959fbe5ba84a.json deleted file mode 100644 index 78b726b6..00000000 --- a/node_modules/.cache/babel-loader/e6d9aea75368fdc548dd959fbe5ba84a.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n /*const options = this.state.isAuthenticated ? \n
\n
    \n
  • \n \n Progress\n \n
  • \n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n \n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/\n //}\n\n /* < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n
:\n null\n const mainBody =
\n
\n \n \n \n {options}\n
\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
*/\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 294,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 295,\n columnNumber: 11\n }\n }));\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,OAAOC,aAAP,MAA0B,iBAA1B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAC/C,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAwC;;AACxC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE;AAJF,KAOU;AAAA,QAETC,OAFS,GAEEP,KAFF,CAETO,OAFS;AAGhBC,IAAAA,OAAO,CAACC,GAAR,CAAYF,OAAZ;AACA,UAAKN,KAAL,CAAWS,SAAX,GAAuBH,OAAO,CAACI,GAAR,CAAY,YAAZ,CAAvB;AACAH,IAAAA,OAAO,CAACC,GAAR,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MAAAA,MAAM,CAACC,QAAP,CAAgBC,IAAhB,GAAuB,iCAAvB,CAHkB,CAIlB;AACA;AACD;;;sCAEiBvC,M,EAAQ;AAAA;;AACxB,UAAIA,MAAJ,EAAW;AACT,YAAM4D,UAAU,GAAGtE,KAAK,CAACuE,MAAN,EAAnB;AACAD,QAAAA,UAAU,CAACE,QAAX,CAAoBC,OAApB,GAA8B,MAA9B,CAFS,CAIT;;AAEAH,QAAAA,UAAU,CAACvD,GAAX,kBAAyB,KAAKI,EAA9B,6BAAmD,KAAKd,KAAL,CAAWG,IAAX,CAAgB0D,GAAnE,GAA0E;AAAEQ,UAAAA,eAAe,EAAE;AAAnB,SAA1E,EACKlB,IADL,CACU,UAAAmB,GAAG,EAAI;AACX,UAAA,MAAI,CAAClC,QAAL,CAAc;AAAC/B,YAAAA,MAAM,EAAE;AAAT,WAAd;AACD,SAHL;AAIC,OAVH,MAWK;AACH;;;;;;;;;AAWI,aAAKqB,eAAL;AACL;AAEF;;;6BAIQ;AACP;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCwD;;AAC9C;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCR,0BACE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CADF;AASH;;;;EA5Re9C,S;;AA8RlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n /*const options = this.state.isAuthenticated ? \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*///}\n /* < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
*/\n\n \n return (\n
\n \n \n
\n \n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/4ad43ee2cdac6c87b6144c1746634d7b.json b/node_modules/.cache/babel-loader/e7307d0b29b6493ef73268ffd84433d4.json similarity index 100% rename from node_modules/.cache/babel-loader/4ad43ee2cdac6c87b6144c1746634d7b.json rename to node_modules/.cache/babel-loader/e7307d0b29b6493ef73268ffd84433d4.json diff --git a/node_modules/.cache/babel-loader/7e3b08828134a21d830520d219d622c2.json b/node_modules/.cache/babel-loader/e734bad198be0240d7739570a4ab88a0.json similarity index 100% rename from node_modules/.cache/babel-loader/7e3b08828134a21d830520d219d622c2.json rename to node_modules/.cache/babel-loader/e734bad198be0240d7739570a4ab88a0.json diff --git a/node_modules/.cache/babel-loader/e7750eae7820777e8d8cfa71a592cdc1.json b/node_modules/.cache/babel-loader/e7750eae7820777e8d8cfa71a592cdc1.json deleted file mode 100644 index a53c71be..00000000 --- a/node_modules/.cache/babel-loader/e7750eae7820777e8d8cfa71a592cdc1.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:4200\",\n target: \"top\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 13\n }\n }, \" Console \"), /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:8888\",\n target: \"bottom\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }\n }, \" Simulator \"), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"top_\",\n src: \"\",\n width: \"100%\",\n height: \"50%\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"bottom_\",\n src: \"\",\n width: \"100%\",\n height: \"50%\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 9\n }\n }));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","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AY;AACfC,EAAAA,OAAO,EAAET,UAAU,CAACD,OAAD,CAAV,CAAoBW;AADd,C;AA8BvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n Console \n Simulator \n \n \n \n \n \n \n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/55e26ac8ce75becc80ff7558e6b8382b.json b/node_modules/.cache/babel-loader/e786f4df37667b34fa2c040a9b7ddd23.json similarity index 100% rename from node_modules/.cache/babel-loader/55e26ac8ce75becc80ff7558e6b8382b.json rename to node_modules/.cache/babel-loader/e786f4df37667b34fa2c040a9b7ddd23.json diff --git a/node_modules/.cache/babel-loader/199cf8781aa371bd690cf5b29c4b8d60.json b/node_modules/.cache/babel-loader/e7937e657e7fd841c08f047b167f0224.json similarity index 100% rename from node_modules/.cache/babel-loader/199cf8781aa371bd690cf5b29c4b8d60.json rename to node_modules/.cache/babel-loader/e7937e657e7fd841c08f047b167f0224.json diff --git a/node_modules/.cache/babel-loader/e7adba541778ee72922c19e5e636ac42.json b/node_modules/.cache/babel-loader/e7adba541778ee72922c19e5e636ac42.json deleted file mode 100644 index a3aa61ff..00000000 --- a/node_modules/.cache/babel-loader/e7adba541778ee72922c19e5e636ac42.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var authenticated = this.props.isLoggedIn;\n console.log(\"riddhi\", authenticated);\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 5\n }\n }, authenticated ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 33\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 33\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 33\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 61,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 33\n }\n }, \"Logout\")))))))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 75,\n columnNumber: 4\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 76,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 77,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 78,\n columnNumber: 9\n }\n }, \"Login\")))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","authenticated","props","isLoggedIn","console","log","textDecoration","submit","login"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AACN,UAAMC,aAAa,GAAG,KAAKC,KAAL,CAAWC,UAAjC;AACAC,MAAAA,OAAO,CAACC,GAAR,CAAY,QAAZ,EAAqBJ,aAArB;AAEF,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACKA,aAAa,gBACd,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA,oBAAC,MAAD;AAAQ,QAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD,CAAQ,QAAR;AAAiB,QAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,GAAD;AAAK,QAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACU;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GAAtB;AAAA;A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AAE;AAAEA,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKC,MAA1D;AAAkE,QAAA,KAAK,EAAC,QAAxE;AAAiF,QAAA,EAAE,EAAC,GAApF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBADJ,CAjBF,CADF,CANV,CADJ,CADF,CADA,CADc,gBA0CnB;AAAK,QAAA,EAAE,EAAC,QAAR;AAAiB,QAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAED,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKE,KAA1D;AAAiE,QAAA,KAAK,EAAC,OAAvE;AAA+E,QAAA,EAAE,EAAC,EAAlF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CADF,CADC,CA3CC,CADF;AAyDD;;;;EA9D2BlB,S;;AAgE5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const authenticated = this.props.isLoggedIn;\n console.log(\"riddhi\",authenticated);\n \n return (\n
\n {authenticated ? ( \n \n \n \n \n \n \n \n )\n :\n (
\n
    \n
  • \n \n Login\n \n \n
  • \n
\n
) }\n \n
\n )\n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/fb7b493565fe3778885b3aea6090794e.json b/node_modules/.cache/babel-loader/e7f1f186c7fb7a0a73086dfc3249aa7b.json similarity index 100% rename from node_modules/.cache/babel-loader/fb7b493565fe3778885b3aea6090794e.json rename to node_modules/.cache/babel-loader/e7f1f186c7fb7a0a73086dfc3249aa7b.json diff --git a/node_modules/.cache/babel-loader/7d7ed0f65f7a16211889c3b33f18c3ea.json b/node_modules/.cache/babel-loader/e825e4f168b39d8405a0b5dad5f66d06.json similarity index 100% rename from node_modules/.cache/babel-loader/7d7ed0f65f7a16211889c3b33f18c3ea.json rename to node_modules/.cache/babel-loader/e825e4f168b39d8405a0b5dad5f66d06.json diff --git a/node_modules/.cache/babel-loader/e85d034f7d0a65f71db0f3197ccee23c.json b/node_modules/.cache/babel-loader/e85d034f7d0a65f71db0f3197ccee23c.json deleted file mode 100644 index eba21bb2..00000000 --- a/node_modules/.cache/babel-loader/e85d034f7d0a65f71db0f3197ccee23c.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport Navigationbar from './Navigationbar';\nimport './Simulator.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(\"div\", {\n id: \"sim\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"http://localhost:4200\",\n target: \"top_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 15\n }\n }, \" Console \"), /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"http://localhost:8888\",\n target: \"bottom_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 15\n }\n }, \" Simulator \"), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"top_\",\n src: \"\",\n width: \"100%\",\n height: \"375px\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 17\n }\n }), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"bottom_\",\n src: \"\",\n width: \"100%\",\n height: \"375px\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 17\n }\n })));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Navigationbar","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;AACA,OAAOC,aAAP,MAA0B,iBAA1B;AACA,OAAO,iBAAP;;IAEMC,S;;;;;;;;;;;;;;;UAKAC,K,GAAQ;AACNC,MAAAA,SAAS,EAAE,IADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,SAAS,EAAED;AAJL,K;;;;;;6BAQR;AACE,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,eAEE;AAAK,QAAA,EAAE,EAAC,KAAR;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,uBAAtB;AAA8C,QAAA,MAAM,EAAC,MAArD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADF,eAEE;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,uBAAtB;AAA8C,QAAA,MAAM,EAAC,SAArD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAFF,eAII;AAAQ,QAAA,IAAI,EAAC,MAAb;AAAoB,QAAA,GAAG,EAAC,EAAxB;AAA2B,QAAA,KAAK,EAAC,MAAjC;AAAyC,QAAA,MAAM,EAAC,OAAhD;AAAwD,QAAA,WAAW,EAAC,GAApE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJJ,eAKI;AAAQ,QAAA,IAAI,EAAC,SAAb;AAAuB,QAAA,GAAG,EAAC,EAA3B;AAA8B,QAAA,KAAK,EAAC,MAApC;AAA2C,QAAA,MAAM,EAAC,OAAlD;AAA0D,QAAA,WAAW,EAAC,GAAtE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALJ,CAFF,CADF;AAYD;;;;EA1BiBhB,S;;AAAlBW,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAEV,UAAU,CAACD,OAAD,CAAV,CAAoBY;AADd,C;AA4BvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport Navigationbar from './Navigationbar';\nimport './Simulator.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n \n
\n Console \n Simulator \n \n \n \n
\n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/185fcb1dbe754531ae12d5fd5385f3b2.json b/node_modules/.cache/babel-loader/e85d27fc81ea0978212d62ae5c0a5187.json similarity index 100% rename from node_modules/.cache/babel-loader/185fcb1dbe754531ae12d5fd5385f3b2.json rename to node_modules/.cache/babel-loader/e85d27fc81ea0978212d62ae5c0a5187.json diff --git a/node_modules/.cache/babel-loader/474d43de9fe26b184f8aeb756db79d37.json b/node_modules/.cache/babel-loader/e885fd2b73f5ba863c0242b21a612ffc.json similarity index 100% rename from node_modules/.cache/babel-loader/474d43de9fe26b184f8aeb756db79d37.json rename to node_modules/.cache/babel-loader/e885fd2b73f5ba863c0242b21a612ffc.json diff --git a/node_modules/.cache/babel-loader/e8d8604f419e6c29263abb44ebe29743.json b/node_modules/.cache/babel-loader/e8d8604f419e6c29263abb44ebe29743.json deleted file mode 100644 index c300c066..00000000 --- a/node_modules/.cache/babel-loader/e8d8604f419e6c29263abb44ebe29743.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:4200\",\n target: \"top_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 13\n }\n }, \" Console \"), /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:8888\",\n target: \"bottom_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }\n }, \" Simulator \"), /*#__PURE__*/React.createElement(\"div\", {\n class: \"top\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"top_\",\n src: \"\",\n width: \"100%\",\n height: \"200px\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 15\n }\n })), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"bottom_\",\n src: \"\",\n width: \"100%\",\n height: \"512\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 15\n }\n }));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;AACA,OAAO,iBAAP;;IAEMC,S;;;;;;;;;;;;;;;UAKAC,K,GAAQ;AACNC,MAAAA,SAAS,EAAE,IADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,SAAS,EAAED;AAJL,K;;;;;;6BAQR;AACE,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,MAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADF,eAEE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,SAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAFF,eAGE;AAAK,QAAA,KAAK,EAAC,KAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAQ,QAAA,IAAI,EAAC,MAAb;AAAoB,QAAA,GAAG,EAAC,EAAxB;AAA2B,QAAA,KAAK,EAAC,MAAjC;AAAyC,QAAA,MAAM,EAAC,OAAhD;AAAwD,QAAA,WAAW,EAAC,GAApE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,CAHF,eAOI;AAAQ,QAAA,IAAI,EAAC,SAAb;AAAuB,QAAA,GAAG,EAAC,EAA3B;AAA8B,QAAA,KAAK,EAAC,MAApC;AAA2C,QAAA,MAAM,EAAC,KAAlD;AAAwD,QAAA,WAAW,EAAC,GAApE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAPJ,CADF;AAkBD;;;;EAhCiBf,S;;AAAlBU,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAET,UAAU,CAACD,OAAD,CAAV,CAAoBW;AADd,C;AAkCvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n Console \n Simulator \n
\n \n
\n \n \n \n \n \n \n \n \n \n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/db6458a747536270293bd51837a0e5f3.json b/node_modules/.cache/babel-loader/e91bc26a428334fae848c61082a71eec.json similarity index 100% rename from node_modules/.cache/babel-loader/db6458a747536270293bd51837a0e5f3.json rename to node_modules/.cache/babel-loader/e91bc26a428334fae848c61082a71eec.json diff --git a/node_modules/.cache/babel-loader/e9a0d6250ba028c9eb74a6f54b1d6f37.json b/node_modules/.cache/babel-loader/e9a0d6250ba028c9eb74a6f54b1d6f37.json deleted file mode 100644 index 24fb0466..00000000 --- a/node_modules/.cache/babel-loader/e9a0d6250ba028c9eb74a6f54b1d6f37.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import memoize from '@emotion/memoize';\nvar reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23\n\nvar index = memoize(function (prop) {\n return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111\n /* o */\n && prop.charCodeAt(1) === 110\n /* n */\n && prop.charCodeAt(2) < 91;\n}\n/* Z+1 */\n);\nexport default index;","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/e9a2b1a4ecfa9973b53dfa4b4eb0b8c5.json b/node_modules/.cache/babel-loader/e9a2b1a4ecfa9973b53dfa4b4eb0b8c5.json deleted file mode 100644 index 6965f69e..00000000 --- a/node_modules/.cache/babel-loader/e9a2b1a4ecfa9973b53dfa4b4eb0b8c5.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 226,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 227,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 228,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 24\n }\n }, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 237,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 238,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 240,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 241,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n isLoggedIn: this.state.isAuthenticated,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 11\n }\n }), /*#__PURE__*/React.createElement(Navigationbar, {\n iflogin: this.logout,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 252,\n columnNumber: 11\n }\n }), /*#__PURE__*/React.createElement(Navigationbar, {\n iflogout: this.login,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 253,\n columnNumber: 11\n }\n }), mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","isNavbar","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,aAAP,MAA2B,iBAA3B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OA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AC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CANe,eASf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QATe,CAAjB;AAcA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAe,QAAA,UAAU,EAAE,KAAKQ,KAAL,CAAWE,eAAtC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,eAEE,oBAAC,aAAD;AAAe,QAAA,OAAO,EAAE,KAAKoB,MAA7B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAFF,eAGE,oBAAC,aAAD;AAAe,QAAA,QAAQ,EAAE,KAAKD,KAA9B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHF,EAIIoD,QAJJ,CAFF;AAWH;;;;EAlPe7F,S;;AAoPlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n \n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n \n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n \n \n \n {mainBody}\n \n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/50178c9f2f5bdba93df50635b9d3a7a0.json b/node_modules/.cache/babel-loader/e9b6be8d90ace42ab7b99809fc97a6e6.json similarity index 100% rename from node_modules/.cache/babel-loader/50178c9f2f5bdba93df50635b9d3a7a0.json rename to node_modules/.cache/babel-loader/e9b6be8d90ace42ab7b99809fc97a6e6.json diff --git a/node_modules/.cache/babel-loader/e9ef3d832fcd9bb29badf589dab8da05.json b/node_modules/.cache/babel-loader/e9ef3d832fcd9bb29badf589dab8da05.json deleted file mode 100644 index adb4d5d7..00000000 --- a/node_modules/.cache/babel-loader/e9ef3d832fcd9bb29badf589dab8da05.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:4200\",\n target: \"right_side\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 13\n }\n }, \" Console \"), /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:8888\",\n target: \"right_side\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }\n }, \" Simulator \"), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"top\",\n src: \"\",\n width: \"100%\",\n height: \"50%\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"bottom\",\n src: \"\",\n width: \"100%\",\n height: \"50%\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 9\n }\n }));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;AACA,OAAO,iBAAP;;IAEMC,S;;;;;;;;;;;;;;;UAKAC,K,GAAQ;AACNC,MAAAA,SAAS,EAAE,IADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,SAAS,EAAED;AAJL,K;;;;;;6BAQR;AACE,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,YAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADF,eAEE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,YAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAFF,eAGE;AAAQ,QAAA,IAAI,EAAC,KAAb;AAAmB,QAAA,GAAG,EAAC,EAAvB;AAA0B,QAAA,KAAK,EAAC,MAAhC;AACJ,QAAA,MAAM,EAAC,KADH;AACS,QAAA,WAAW,EAAC,GADrB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHF,eAKF;AAAQ,QAAA,IAAI,EAAC,QAAb;AAAsB,QAAA,GAAG,EAAC,EAA1B;AAA6B,QAAA,KAAK,EAAC,MAAnC;AACA,QAAA,MAAM,EAAC,KADP;AACa,QAAA,WAAW,EAAC,GADzB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALE,CADF;AAeD;;;;EA7BiBf,S;;AAAlBU,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAET,UAAU,CAACD,OAAD,CAAV,CAAoBW;AADd,C;AA+BvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n Console \n Simulator \n \n \n \n \n\n \n \n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/ea50606e439cb049296ef379368c0ea5.json b/node_modules/.cache/babel-loader/ea50606e439cb049296ef379368c0ea5.json deleted file mode 100644 index 87f8c301..00000000 --- a/node_modules/.cache/babel-loader/ea50606e439cb049296ef379368c0ea5.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/NavigationBar.js\";\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nimport './NavigationBar.css';\n\nvar NavigationBar = function NavigationBar() {\n return /*#__PURE__*/React.createElement(\"header\", {\n className: navbarClasses.join(\" \"),\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 7,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"logo\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 9,\n columnNumber: 11\n }\n }), /*#__PURE__*/React.createElement(\"nav\", {\n className: \"navigation-items\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 12,\n columnNumber: 11\n }\n }));\n};\n\nexport default NavigationBar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/NavigationBar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","styled","NavigationBar","navbarClasses","join"],"mappings":";;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,qBAAP;;AACA,IAAMC,aAAa,GAAC,SAAdA,aAAc,GAAM;AACtB,sBACE;AAAQ,IAAA,SAAS,EAAEC,aAAa,CAACC,IAAd,CAAmB,GAAnB,CAAnB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAEI;AAAK,IAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAFJ,eAKI;AAAK,IAAA,SAAS,EAAC,kBAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IALJ,CADF;AAYD,CAbH;;AAcE,eAAeF,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nimport './NavigationBar.css';\nconst NavigationBar=() => {\n return (\n
\n \n
\n {/* your logo */}\n
\n \n \n
\n )\n };\n export default NavigationBar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/abebd75db0e565ee4a92356e17bfb5f2.json b/node_modules/.cache/babel-loader/ea5f87492ecb74ee1df738ac6513dbba.json similarity index 100% rename from node_modules/.cache/babel-loader/abebd75db0e565ee4a92356e17bfb5f2.json rename to node_modules/.cache/babel-loader/ea5f87492ecb74ee1df738ac6513dbba.json diff --git a/node_modules/.cache/babel-loader/8676f3d5e7a6528254a944816ff7fe87.json b/node_modules/.cache/babel-loader/ea7149b394578e3132c1370cb6a1a524.json similarity index 100% rename from node_modules/.cache/babel-loader/8676f3d5e7a6528254a944816ff7fe87.json rename to node_modules/.cache/babel-loader/ea7149b394578e3132c1370cb6a1a524.json diff --git a/node_modules/.cache/babel-loader/ea8992bd5295863794841bc14189d25a.json b/node_modules/.cache/babel-loader/ea8992bd5295863794841bc14189d25a.json deleted file mode 100644 index 8db45c6b..00000000 --- a/node_modules/.cache/babel-loader/ea8992bd5295863794841bc14189d25a.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 13,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 14,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Switch, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 15\n }\n })))));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CACA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAGE,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEL,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHF,eAIE,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEC,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJF,eAKE,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEE,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALF,eAME,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANF,CADF,CADF,CADF,CADF;AAgBD;;;;EAlBmBV,S;;AAqBtB,eAAeW,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() {\n return (\n \n \n
\n \n {/* \n */}\n \n \n \n \n \n
\n
\n
\n );\n }\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/3e1d8c40ea37963b7f660649ec4ca39d.json b/node_modules/.cache/babel-loader/ea9fec68e1ce7141520e2990d6ad0371.json similarity index 100% rename from node_modules/.cache/babel-loader/3e1d8c40ea37963b7f660649ec4ca39d.json rename to node_modules/.cache/babel-loader/ea9fec68e1ce7141520e2990d6ad0371.json diff --git a/node_modules/.cache/babel-loader/eaf4e8c10d7b7f5bf34ec32e31dfeb2a.json b/node_modules/.cache/babel-loader/eaf4e8c10d7b7f5bf34ec32e31dfeb2a.json deleted file mode 100644 index b0c14d2c..00000000 --- a/node_modules/.cache/babel-loader/eaf4e8c10d7b7f5bf34ec32e31dfeb2a.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = function Navigationbar() {\n console.log(_this.state.isAuthenticated);\n var navbar_options = _this.state.isAuthenticated;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 5\n }\n }, navbar_options ? /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 33\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 49,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 33\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 54,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 33\n }\n }, \"Simulator\")))))))) : null);\n};\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","console","log","state","isAuthenticated","navbar_options","textDecoration"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MA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EAAC,QAAR;AAAiB,IAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAES,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,UAAnD;AAA8D,IAAA,EAAE,EAAC,WAAjE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBADJ,CADF,eAOE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,QAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aADJ,CAPF,eAYE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,GAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CAZF,CADF,CANV,CADJ,CADF,CADA,CADc,GAoCd,IArCJ,CADF;AA4CD,CA/CD;;AAgDA,eAAeN,aAAf","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nconst Navigationbar = () => {\n console.log(this.state.isAuthenticated);\nconst navbar_options = this.state.isAuthenticated; \n return (\n
\n { navbar_options ? (\n \n \n \n \n \n \n \n ) : (\n null\n ) \n \n }\n
\n );\n};\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/9fc817b1779b1fe22ac9de69b2656e98.json b/node_modules/.cache/babel-loader/eb6df799c3db2f86884daa0dc81db8b2.json similarity index 100% rename from node_modules/.cache/babel-loader/9fc817b1779b1fe22ac9de69b2656e98.json rename to node_modules/.cache/babel-loader/eb6df799c3db2f86884daa0dc81db8b2.json diff --git a/node_modules/.cache/babel-loader/8affe0cd588305f55e9ed0b0a9d2b67e.json b/node_modules/.cache/babel-loader/ec04237745525ca1b2d28cd82c9855de.json similarity index 100% rename from node_modules/.cache/babel-loader/8affe0cd588305f55e9ed0b0a9d2b67e.json rename to node_modules/.cache/babel-loader/ec04237745525ca1b2d28cd82c9855de.json diff --git a/node_modules/.cache/babel-loader/ec92422442e6f74352ba323ee37e0b92.json b/node_modules/.cache/babel-loader/ec92422442e6f74352ba323ee37e0b92.json deleted file mode 100644 index e318b135..00000000 --- a/node_modules/.cache/babel-loader/ec92422442e6f74352ba323ee37e0b92.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #222; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #9FFFCB;\\n &:hover { color: white; }\\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #9FFFCB;\\n &:hover { color: white; }\\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nvar Styles = styled.div(_templateObject());\nexport var Navigationbar = function Navigationbar() {\n return /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Brand, {\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 7\n }\n }, \"Tutorial\"), /*#__PURE__*/React.createElement(Navbar.Toggle, {\n \"aria-controls\": \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 7\n }\n }), /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Nav.Item, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 21\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(Nav.Item, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav.Link, {\n href: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 21\n }\n }, \"Task\"))))));\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","styled","Styles","div","Navigationbar"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,IAAMC,MAAM,GAAGD,MAAM,CAACE,GAAV,mBAAZ;AAiBA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;AAAA,sBAC3B,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD;AAAQ,IAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,MAAD,CAAQ,KAAR;AAAc,IAAA,IAAI,EAAC,GAAnB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBADF,eAEE,oBAAC,MAAD,CAAQ,MAAR;AAAe,qBAAc,kBAA7B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAFF,eAIE,oBAAC,MAAD,CAAQ,QAAR;AAAiB,IAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,GAAD;AAAK,IAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACE,oBAAC,GAAD,CAAK,IAAL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAU,oBAAC,GAAD,CAAK,IAAL;AAAU,IAAA,IAAI,EAAC,WAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAAV,CADF,eAEE,oBAAC,GAAD,CAAK,IAAL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAU,oBAAC,GAAD,CAAK,IAAL;AAAU,IAAA,IAAI,EAAC,QAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAAV,CAFF,CADF,CAJF,CADF,CAD2B;AAAA,CAAtB","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nconst Styles = styled.div`\n .navbar { background-color: #222; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #9FFFCB;\n &:hover { color: white; }\n }\n .navbar-brand {\n font-size: 1.4em;\n color: #9FFFCB;\n &:hover { color: white; }\n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\nexport const Navigationbar = () => (\n \n \n Tutorial\n \n \n \n \n \n \n \n)"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/829dfa43d4c3895bfbaf1a9b26940c6c.json b/node_modules/.cache/babel-loader/ecb50f3fb4a783cbb1f5045f93ed9c84.json similarity index 100% rename from node_modules/.cache/babel-loader/829dfa43d4c3895bfbaf1a9b26940c6c.json rename to node_modules/.cache/babel-loader/ecb50f3fb4a783cbb1f5045f93ed9c84.json diff --git a/node_modules/.cache/babel-loader/ecc2306778d6822d40bb7eab621fa902.json b/node_modules/.cache/babel-loader/ecc2306778d6822d40bb7eab621fa902.json deleted file mode 100644 index 3db67348..00000000 --- a/node_modules/.cache/babel-loader/ecc2306778d6822d40bb7eab621fa902.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 248,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 249,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 256,\n columnNumber: 24\n }\n }, options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 272,\n columnNumber: 9\n }\n }, mainBody, /*#__PURE__*/React.createElement(Navigationbar, {\n isLoggedIn: this.state.isAuthenticated,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 276,\n columnNumber: 12\n }\n }));\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","isNavbar","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,aAAP,MAA2B,iBAA3B;AACA,OAAOC,UAAP,M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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CANe,eASf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QATe,CAAjB;AAcA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAGImF,QAHJ,eAIG,oBAAC,aAAD;AAAe,QAAA,UAAU,EAAE,KAAK3E,KAAL,CAAWE,eAAtC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJH,CAFF;AAUH;;;;EAvQetB,S;;AAyQlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ?\n
\n
    \n
  • \n \n Logout\n \n
  • \n\n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n \n \n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n \n \n {mainBody}\n \n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/ed208daac1b1313ad2eea7c33ea28f63.json b/node_modules/.cache/babel-loader/ed208daac1b1313ad2eea7c33ea28f63.json deleted file mode 100644 index c0dc0223..00000000 --- a/node_modules/.cache/babel-loader/ed208daac1b1313ad2eea7c33ea28f63.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 16\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 19\n }\n }, \"Login\")))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 247,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 252,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 24\n }\n }, \"hey\", options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 275,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC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} from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n\n
\n \n
    \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n \n
\n
    \n
  • \n \n Login\n \n \n
  • \n
\n
\n
\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n hey\n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/e3592d20db3f8c7946c293c74b985bec.json b/node_modules/.cache/babel-loader/ee1f5c8e6aaaa5030634cd37ae2186c1.json similarity index 100% rename from node_modules/.cache/babel-loader/e3592d20db3f8c7946c293c74b985bec.json rename to node_modules/.cache/babel-loader/ee1f5c8e6aaaa5030634cd37ae2186c1.json diff --git a/node_modules/.cache/babel-loader/249d93b2e7cd95b77859465d91bb640c.json b/node_modules/.cache/babel-loader/ee7104c8b1df5ca36ff55f477e66ebee.json similarity index 100% rename from node_modules/.cache/babel-loader/249d93b2e7cd95b77859465d91bb640c.json rename to node_modules/.cache/babel-loader/ee7104c8b1df5ca36ff55f477e66ebee.json diff --git a/node_modules/.cache/babel-loader/99088771f82d3ec0009ce854441073aa.json b/node_modules/.cache/babel-loader/ee76a8efa9a1ed7f2e14dfff729e88a7.json similarity index 100% rename from node_modules/.cache/babel-loader/99088771f82d3ec0009ce854441073aa.json rename to node_modules/.cache/babel-loader/ee76a8efa9a1ed7f2e14dfff729e88a7.json diff --git a/node_modules/.cache/babel-loader/d531aa74e6f9a716e03d53342a8938fa.json b/node_modules/.cache/babel-loader/ee7c93c479d0845023c35645d6bb984f.json similarity index 100% rename from node_modules/.cache/babel-loader/d531aa74e6f9a716e03d53342a8938fa.json rename to node_modules/.cache/babel-loader/ee7c93c479d0845023c35645d6bb984f.json diff --git a/node_modules/.cache/babel-loader/eeeddb108cf0c382f46628d92f68c468.json b/node_modules/.cache/babel-loader/eeeddb108cf0c382f46628d92f68c468.json deleted file mode 100644 index e5d077f6..00000000 --- a/node_modules/.cache/babel-loader/eeeddb108cf0c382f46628d92f68c468.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 228,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 229,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 242,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 19\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 278,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 282,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 283,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 286,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 294,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 295,\n columnNumber: 11\n }\n }), mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,OAAOC,aAAP,MAA0B,iBAA1B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAC/C,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAwC;;AACxC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QA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AAA,sBACG;AAAM,QAAA,GAAG,EAAEnF,MAAX;AAAmB,QAAA,KAAK,EAAE,MAA1B;AAAkC,QAAA,MAAM,EAAE,MAA1C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADH,CADJ,EAIKgF,OAJL,CADa,EAQZE,SARY,eAUb;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAEjF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAVa,eAcb;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAda,eAkBb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAlBa,CAAjB;AAyBE,0BACE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,EAEIkF,QAFJ,CADF;AASH;;;;EA5Re9F,S;;AA8RlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n
\n \n {mainBody}\n
\n \n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/6e35f3acd8eba3780fc2d970f9f8f8c6.json b/node_modules/.cache/babel-loader/ef3cd8a3d711875bfebb03e815315067.json similarity index 100% rename from node_modules/.cache/babel-loader/6e35f3acd8eba3780fc2d970f9f8f8c6.json rename to node_modules/.cache/babel-loader/ef3cd8a3d711875bfebb03e815315067.json diff --git a/node_modules/.cache/babel-loader/28d26bff9819a7fc6693e0d244ceaf22.json b/node_modules/.cache/babel-loader/ef9593558024aaf73cdd1b23628e50c0.json similarity index 100% rename from node_modules/.cache/babel-loader/28d26bff9819a7fc6693e0d244ceaf22.json rename to node_modules/.cache/babel-loader/ef9593558024aaf73cdd1b23628e50c0.json diff --git a/node_modules/.cache/babel-loader/cab2427127d8ce060d6e945b02be8e2d.json b/node_modules/.cache/babel-loader/ef97310ecea047501f2379504674a966.json similarity index 100% rename from node_modules/.cache/babel-loader/cab2427127d8ce060d6e945b02be8e2d.json rename to node_modules/.cache/babel-loader/ef97310ecea047501f2379504674a966.json diff --git a/node_modules/.cache/babel-loader/efdffdeb4cf73ba30d4116f5f1eec5a5.json b/node_modules/.cache/babel-loader/efdffdeb4cf73ba30d4116f5f1eec5a5.json deleted file mode 100644 index ea16b8f9..00000000 --- a/node_modules/.cache/babel-loader/efdffdeb4cf73ba30d4116f5f1eec5a5.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n /* const options = this.state.isAuthenticated ? \n
\n
    \n
  • \n \n Progress\n \n
  • \n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n \n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

}\n /* < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
*/\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 294,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 295,\n columnNumber: 11\n }\n }), mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,OAAOC,aAAP,MAA0B,iBAA1B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAC/C,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAwC;;AACxC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE;AAJF,KAOU;AAAA,QAETC,OAFS,GAEEP,KAFF,CAETO,OAFS;AAGhBC,IAAAA,OAAO,CAACC,GAAR,CAAYF,OAAZ;AACA,UAAKN,KAAL,CAAWS,SAAX,GAAuBH,OAAO,CAACI,GAAR,CAAY,YAAZ,CAAvB;AACAH,IAAAA,OAAO,CAACC,GAAR,CAAY,MA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AAM,CAACC,QAAP,CAAgBC,IAAhB,GAAuB,iCAAvB,CAHkB,CAIlB;AACA;AACD;;;sCAEiBvC,M,EAAQ;AAAA;;AACxB,UAAIA,MAAJ,EAAW;AACT,YAAM4D,UAAU,GAAGtE,KAAK,CAACuE,MAAN,EAAnB;AACAD,QAAAA,UAAU,CAACE,QAAX,CAAoBC,OAApB,GAA8B,MAA9B,CAFS,CAIT;;AAEAH,QAAAA,UAAU,CAACvD,GAAX,kBAAyB,KAAKI,EAA9B,6BAAmD,KAAKd,KAAL,CAAWG,IAAX,CAAgB0D,GAAnE,GAA0E;AAAEQ,UAAAA,eAAe,EAAE;AAAnB,SAA1E,EACKlB,IADL,CACU,UAAAmB,GAAG,EAAI;AACX,UAAA,MAAI,CAAClC,QAAL,CAAc;AAAC/B,YAAAA,MAAM,EAAE;AAAT,WAAd;AACD,SAHL;AAIC,OAVH,MAWK;AACH;;;;;;;;;AAWI,aAAKqB,eAAL;AACL;AAEF;;;6BAIQ;AACR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0EG,0BACE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,EAEI6C,QAFJ,CADF;AASH;;;;EA5Re3F,S;;AA8RlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n /* const options = this.state.isAuthenticated ? \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

}\n /* < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
*/\n\n \n return (\n
\n \n {mainBody}\n
\n \n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/efe59d78fd92c1332fe5c62b6c4745f8.json b/node_modules/.cache/babel-loader/efe59d78fd92c1332fe5c62b6c4745f8.json deleted file mode 100644 index cc734856..00000000 --- a/node_modules/.cache/babel-loader/efe59d78fd92c1332fe5c62b6c4745f8.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n submit: this.submit,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 27\n }\n }))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 230,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 249,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 24\n }\n }, options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 264,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 267,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 274,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","isNavbar","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAA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;AAeA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAGImF,QAHJ,CAFF;AAUH;;;;EAzQe/F,S;;AA2QlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? (\n
\n
    \n \n \n\n
\n
\n ):(\n \n \n
\n \n
    \n
  • \n \n Login\n \n
  • \n
\n
\n \n )\n \n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n \n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n \n \n {mainBody}\n \n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/f00337aa69d32e0870ed938c2049c776.json b/node_modules/.cache/babel-loader/f00337aa69d32e0870ed938c2049c776.json deleted file mode 100644 index 1d3e49f7..00000000 --- a/node_modules/.cache/babel-loader/f00337aa69d32e0870ed938c2049c776.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 248,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 249,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 256,\n columnNumber: 24\n }\n }, options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 272,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n isLoggedIn: this.state.isAuthenticated,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 273,\n columnNumber: 11\n }\n }), mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","isNavbar","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,aAAP,MAA2B,iBAA3B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AASJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UARlBC,KAQkB,GARV;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AAA;AAAA;AAAA,QAH/B,EAIO,CAAC,KAAKD,KAAL,CAAWK,MAAZ,iBAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAJ7B,EAKO,KAAKL,KAAL,CAAWK,MAAX,iBAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAL5B,CAFF,CADS,GAYL,IAZd;AAcE,UAAMsE,QAAQ,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACdH,OADc,EAEdE,SAFc,eAGf;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAElF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAHe,eAMf;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CANe,eASf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QATe,CAAjB;AAcA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAe,QAAA,UAAU,EAAE,KAAKQ,KAAL,CAAWE,eAAtC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,EAGIyE,QAHJ,CAFF;AAUH;;;;EAvQe/F,S;;AAyQlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ?\n
\n
    \n
  • \n \n Logout\n \n
  • \n\n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n \n \n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n \n \n {mainBody}\n \n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/3a5156209fa58ab9430e320b47414fd5.json b/node_modules/.cache/babel-loader/f0066e9bbf11597d1c71489a16ce6ec1.json similarity index 100% rename from node_modules/.cache/babel-loader/3a5156209fa58ab9430e320b47414fd5.json rename to node_modules/.cache/babel-loader/f0066e9bbf11597d1c71489a16ce6ec1.json diff --git a/node_modules/.cache/babel-loader/0d4a45d48c7723f6cc51624ef74c6c74.json b/node_modules/.cache/babel-loader/f00c8efdd514bbc42ad6f6610fc916fb.json similarity index 100% rename from node_modules/.cache/babel-loader/0d4a45d48c7723f6cc51624ef74c6c74.json rename to node_modules/.cache/babel-loader/f00c8efdd514bbc42ad6f6610fc916fb.json diff --git a/node_modules/.cache/babel-loader/f12d7db790af886b862e09b860fa59a1.json b/node_modules/.cache/babel-loader/f12d7db790af886b862e09b860fa59a1.json deleted file mode 100644 index 30734623..00000000 --- a/node_modules/.cache/babel-loader/f12d7db790af886b862e09b860fa59a1.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var authenticated = this.props.isLoggedIn;\n console.log(\"riddhi\", authenticated);\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 33\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 33\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 33\n }\n }, \"Simulator\")))))))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","authenticated","props","isLoggedIn","console","log","textDecoration"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AACN,UAAMC,aAAa,GAAG,KAAKC,KAAL,CAAWC,UAAjC;AACAC,MAAAA,OAAO,CAACC,GAAR,CAAY,QAAZ,EAAqBJ,aAArB;AAEF,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA,oBAAC,MAAD;AAAQ,QAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD,CAAQ,QAAR;AAAiB,QAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,GAAD;AAAK,QAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACU;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAA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-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const authenticated = this.props.isLoggedIn;\n console.log(\"riddhi\",authenticated);\n \n return (\n
\n \n \n \n \n \n \n \n \n \n
\n )\n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/7af19756f02bf2886cd004fac85d8d27.json b/node_modules/.cache/babel-loader/f1fbfddcdf6514b9196c41b5b7eed578.json similarity index 100% rename from node_modules/.cache/babel-loader/7af19756f02bf2886cd004fac85d8d27.json rename to node_modules/.cache/babel-loader/f1fbfddcdf6514b9196c41b5b7eed578.json diff --git a/node_modules/.cache/babel-loader/f21a3e05083cb651512fe407d51648b1.json b/node_modules/.cache/babel-loader/f21a3e05083cb651512fe407d51648b1.json deleted file mode 100644 index 697508bf..00000000 --- a/node_modules/.cache/babel-loader/f21a3e05083cb651512fe407d51648b1.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 19\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 19\n }\n }, \"Login\")))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 247,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 252,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 16\n }\n }))), options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 267,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 272,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE;AAJF,KAOU;AAAA,QAETC,OAFS,GAEEP,KAFF,CAETO,OAFS;AAGhBC,IAAAA,OAAO,CAACC,GAAR,CAAYF,OAAZ;AACA,UAAKN,KAAL,CAAWS,SAAX,GAAuBH,OAAO,CAACI,GAAR,CAAY,YAAZ,CAAvB;AACAH,IAAAA,OAAO,CAACC,GAAR,CAAY,MAAKR,KAAL,CAAWS,SAAvB;AACA,UAAKE,KAAL,GAAa,gBAAb;AACA,UAAKC,IAAL,GAAY,qBAAZ;AACA,UAAKC,MAAL,GAAe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,QAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACG;AAAK,QAAA,KAAK,EAAC,MAAX;AAAkB,QAAA,GAAG,EAAEnF,MAAvB;AAA+B,QAAA,KAAK,EAAE,MAAtC;AAA8C,QAAA,MAAM,EAAE,MAAtD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADH,CADJ,CADe,EAMdgF,OANc,EAOdE,SAPc,eAQf;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAEjF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CARe,eAWf;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAXe,eAcf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAde,CAAjB;AAmBA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIkF,QADJ,CAFF;AAOH;;;;EA3Qe9F,S;;AA6QlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n\n
\n \n
    \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n \n
\n
    \n
  • \n \n Login\n \n \n
  • \n
\n
\n
\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n
\n \n \n \n
\n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/f2748244a2de6094e02f1a7e388bcc7d.json b/node_modules/.cache/babel-loader/f2748244a2de6094e02f1a7e388bcc7d.json deleted file mode 100644 index ce883f02..00000000 --- a/node_modules/.cache/babel-loader/f2748244a2de6094e02f1a7e388bcc7d.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var isLoggedIn = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 7\n }\n }, isLoggedIn ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(Link, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 41\n }\n }, \"Simulator\"))))) : null);\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","isLoggedIn","props","textDecoration"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AACN,UAAMC,UAAU,GAAG,KAAKC,KAAL,CAAWD,UAA9B;AACA,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACAA,UAAU,gBACV,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAEQ;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACc;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAAA,KAAK,EAAC,MAAX;AAAkB,QAAA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router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const isLoggedIn = this.props.isLoggedIn;\n return (\n
\n { isLoggedIn ? \n \n \n
\n \n \n \n
\n
\n \n \n \n
    \n
  • \n \n Progress\n \n
  • \n \n
  • \n \n Tasks\n \n
  • \n
  • \n \n Simulator\n \n
  • \n \n
\n \n \n
\n \n
\n \n :\n null\n }\n \n \n\n
\n); \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/e99112b77c6070ef41090254eb28c85c.json b/node_modules/.cache/babel-loader/f29da27172b5a79bfe1c3799c9775943.json similarity index 100% rename from node_modules/.cache/babel-loader/e99112b77c6070ef41090254eb28c85c.json rename to node_modules/.cache/babel-loader/f29da27172b5a79bfe1c3799c9775943.json diff --git a/node_modules/.cache/babel-loader/0fd63265001d132d4fb02d7e84ee1a16.json b/node_modules/.cache/babel-loader/f2fb50f81b869b20ba45ab1e54d7f4e9.json similarity index 100% rename from node_modules/.cache/babel-loader/0fd63265001d132d4fb02d7e84ee1a16.json rename to node_modules/.cache/babel-loader/f2fb50f81b869b20ba45ab1e54d7f4e9.json diff --git a/node_modules/.cache/babel-loader/f323f061825d228073aff6ebd091d699.json b/node_modules/.cache/babel-loader/f323f061825d228073aff6ebd091d699.json new file mode 100644 index 00000000..84bb15a7 --- /dev/null +++ b/node_modules/.cache/babel-loader/f323f061825d228073aff6ebd091d699.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/home/riddhi/simulation/Gazebo_simulation-Frontend/src/index.js\";\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport './index.css';\nimport * as serviceWorker from './serviceWorker';\nimport Routing from './Routing';\nimport Navigationbar from './components/Navigationbar';\nReactDOM.render( /*#__PURE__*/React.createElement(Routing, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 9,\n columnNumber: 17\n }\n}), document.getElementById('root')); //ReactDOM.render(, document.getElementById('root'));\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\n\nserviceWorker.unregister();","map":{"version":3,"sources":["/home/riddhi/simulation/Gazebo_simulation-Frontend/src/index.js"],"names":["React","ReactDOM","NavLink","Switch","BrowserRouter","Router","Route","serviceWorker","Routing","Navigationbar","render","document","getElementById","unregister"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,QAAP,MAAqB,WAArB;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAO,aAAP;AACA,OAAO,KAAKC,aAAZ,MAA+B,iBAA/B;AACA,OAAOC,OAAP,MAAoB,WAApB;AACA,OAAOC,aAAP,MAA0B,4BAA1B;AAEAR,QAAQ,CAACS,MAAT,eAAgB,oBAAC,OAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAhB,EAA4BC,QAAQ,CAACC,cAAT,CAAwB,MAAxB,CAA5B,E,CACA;AAGA;AACA;AACA;;AACAL,aAAa,CAACM,UAAd","sourcesContent":["import React from 'react';\nimport ReactDOM from 'react-dom';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport './index.css';\nimport * as serviceWorker from './serviceWorker';\nimport Routing from './Routing';\nimport Navigationbar from './components/Navigationbar';\n\nReactDOM.render(, document.getElementById('root'));\n//ReactDOM.render(, document.getElementById('root'));\n\n\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\nserviceWorker.unregister();"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/f3420c02adbdb2d2f5266719bcce26f1.json b/node_modules/.cache/babel-loader/f3420c02adbdb2d2f5266719bcce26f1.json new file mode 100644 index 00000000..edc8a094 --- /dev/null +++ b/node_modules/.cache/babel-loader/f3420c02adbdb2d2f5266719bcce26f1.json @@ -0,0 +1 @@ +{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/simulation/Gazebo_simulation-Frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport Navigationbar from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 18\n }\n }, /*#__PURE__*/React.createElement(\"switch\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 23\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 23\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 23\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 23\n }\n })))));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/simulation/Gazebo_simulation-Frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,OAAOC,aAAP,MAA2B,4BAA3B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACU,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAGA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEL,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHA,eAIA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJA,eAKA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALA,eAMA,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEL,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANA,CADL,CADD,CADV,CADF;AAkBD;;;;EApBmBN,S;;AAuBtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport Navigationbar from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() { \n return ( \n \n \n
\n \n {/* \n */} \n \n \n \n \n \n
\n\n
\n
\n \n )\n };\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/f575ecc31315ed4a4183a09c47dd1f2f.json b/node_modules/.cache/babel-loader/f3d1edc271e0e9855ec7d5d19ae3cbd1.json similarity index 100% rename from node_modules/.cache/babel-loader/f575ecc31315ed4a4183a09c47dd1f2f.json rename to node_modules/.cache/babel-loader/f3d1edc271e0e9855ec7d5d19ae3cbd1.json diff --git a/node_modules/.cache/babel-loader/2964df4c65d9429513481b7f9f8ce24d.json b/node_modules/.cache/babel-loader/f3eb5020dab909a7f4df445e1a872250.json similarity index 100% rename from node_modules/.cache/babel-loader/2964df4c65d9429513481b7f9f8ce24d.json rename to node_modules/.cache/babel-loader/f3eb5020dab909a7f4df445e1a872250.json diff --git a/node_modules/.cache/babel-loader/0cc94e81a76d5f8c91ac89a11004b63d.json b/node_modules/.cache/babel-loader/f40b06a1cc95d512070e1493fad1cffe.json similarity index 100% rename from node_modules/.cache/babel-loader/0cc94e81a76d5f8c91ac89a11004b63d.json rename to node_modules/.cache/babel-loader/f40b06a1cc95d512070e1493fad1cffe.json diff --git a/node_modules/.cache/babel-loader/f40fc9cefabb90be1460526fce7e36b1.json b/node_modules/.cache/babel-loader/f40fc9cefabb90be1460526fce7e36b1.json deleted file mode 100644 index 36008864..00000000 --- a/node_modules/.cache/babel-loader/f40fc9cefabb90be1460526fce7e36b1.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var authenticated = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 5\n }\n }, authenticated ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 33\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 33\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 33\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 60,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 61,\n columnNumber: 33\n }\n }, \"Logout\")))))))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 74,\n columnNumber: 4\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 75,\n columnNumber: 3\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 76,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 77,\n columnNumber: 9\n }\n }, \"Login\")))));\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","authenticated","props","isLoggedIn","textDecoration","submit","login"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AACN,UAAMC,aAAa,GAAG,KAAKC,KAAL,CAAWC,UAAjC;AAEF,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACKF,aAAa,gBACd,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA,oBAAC,MAAD;AAAQ,QAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD,CAAQ,QAAR;AAAiB,QAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,GAAD;AAAK,QAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACU;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAAA,KAAK,EAAC,MAAX;AAAkB,QAAA,GAAG,EAAEJ,MAAvB;A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QAAA,KAAK,EAAC,QAA9E;AAAuF,QAAA,EAAE,EAAC,GAA1F;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBADJ,CAjBF,CADF,CANV,CADJ,CADF,CADA,CADc,gBA0CnB;AAAK,QAAA,EAAE,EAAC,QAAR;AAAiB,QAAA,KAAK,EAAC,iBAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,OAAD;AAAS,QAAA,KAAK,EAAE;AAAED,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKF,KAAL,CAAWI,KAAhE;AAAuE,QAAA,KAAK,EAAC,OAA7E;AAAqF,QAAA,EAAE,EAAC,EAAxF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CADF,CADC,CA3CC,CADF;AAyDD;;;;EA7D2BhB,S;;AA+D5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const authenticated = this.props.isLoggedIn;\n \n return (\n
\n {authenticated ? ( \n \n \n \n \n \n \n \n )\n :\n (
\n
    \n
  • \n \n Login\n \n \n
  • \n
\n
) }\n \n
\n )\n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/ddf1a0024d9856fe0e35a4ca259b22b9.json b/node_modules/.cache/babel-loader/f4130eb25f600d9dc688964b4a68be2b.json similarity index 100% rename from node_modules/.cache/babel-loader/ddf1a0024d9856fe0e35a4ca259b22b9.json rename to node_modules/.cache/babel-loader/f4130eb25f600d9dc688964b4a68be2b.json diff --git a/node_modules/.cache/babel-loader/f45a61820264cc7f3217508a5272e22a.json b/node_modules/.cache/babel-loader/f45a61820264cc7f3217508a5272e22a.json deleted file mode 100644 index 937f7ea9..00000000 --- a/node_modules/.cache/babel-loader/f45a61820264cc7f3217508a5272e22a.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Switch, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 15\n }\n }))));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,SAASC,aAAT,QAA8B,4BAA9B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAEE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAGI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEN,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHJ,eAII,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEC,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJJ,eAKI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALJ,eAMI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANJ,CADF,CAFF,CADF;AAgBD;;;;EAlBmBX,S;;AAqBtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() {\n return (\n \n \n \n \n {/* \n */}\n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/f46f9e96e2f423a9e7174921225bdbd7.json b/node_modules/.cache/babel-loader/f46f9e96e2f423a9e7174921225bdbd7.json deleted file mode 100644 index 2977e6b0..00000000 --- a/node_modules/.cache/babel-loader/f46f9e96e2f423a9e7174921225bdbd7.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 21\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 21\n }\n })));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,SAASC,aAAT,QAA8B,4BAA9B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AAKP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACU,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEL,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,eAEI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAFJ,eAGI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHJ,eAII,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEL,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJJ,CADV,CADF;AAeD;;;;EArBmBN,S;;AAwBtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() {\n\n \n \n \n return ( \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n };\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/f47b7174504ae654a29390c024ddf51b.json b/node_modules/.cache/babel-loader/f47b7174504ae654a29390c024ddf51b.json deleted file mode 100644 index 4ad9981d..00000000 --- a/node_modules/.cache/babel-loader/f47b7174504ae654a29390c024ddf51b.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"\"use strict\";\n\nvar _toConsumableArray = require(\"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/toConsumableArray\");\n\nfunction _createForOfIteratorHelper(o) { if (typeof Symbol === \"undefined\" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.validate = validate;\nexports.typeIs = typeIs;\nexports.validateType = validateType;\nexports.validateOptional = validateOptional;\nexports.validateOptionalType = validateOptionalType;\nexports.arrayOf = arrayOf;\nexports.arrayOfType = arrayOfType;\nexports.validateArrayOfType = validateArrayOfType;\nexports.assertEach = assertEach;\nexports.assertOneOf = assertOneOf;\nexports.assertNodeType = assertNodeType;\nexports.assertNodeOrValueType = assertNodeOrValueType;\nexports.assertValueType = assertValueType;\nexports.assertShape = assertShape;\nexports.chain = chain;\nexports.default = defineType;\nexports.DEPRECATED_KEYS = exports.BUILDER_KEYS = exports.NODE_FIELDS = exports.FLIPPED_ALIAS_KEYS = exports.ALIAS_KEYS = exports.VISITOR_KEYS = void 0;\n\nvar _is = _interopRequireDefault(require(\"../validators/is\"));\n\nvar _validate = require(\"../validators/validate\");\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nvar VISITOR_KEYS = {};\nexports.VISITOR_KEYS = VISITOR_KEYS;\nvar ALIAS_KEYS = {};\nexports.ALIAS_KEYS = ALIAS_KEYS;\nvar FLIPPED_ALIAS_KEYS = {};\nexports.FLIPPED_ALIAS_KEYS = FLIPPED_ALIAS_KEYS;\nvar NODE_FIELDS = {};\nexports.NODE_FIELDS = NODE_FIELDS;\nvar BUILDER_KEYS = {};\nexports.BUILDER_KEYS = BUILDER_KEYS;\nvar DEPRECATED_KEYS = {};\nexports.DEPRECATED_KEYS = DEPRECATED_KEYS;\n\nfunction getType(val) {\n if (Array.isArray(val)) {\n return \"array\";\n } else if (val === null) {\n return \"null\";\n } else if (val === undefined) {\n return \"undefined\";\n } else {\n return typeof val;\n }\n}\n\nfunction validate(validate) {\n return {\n validate: validate\n };\n}\n\nfunction typeIs(typeName) {\n return typeof typeName === \"string\" ? assertNodeType(typeName) : assertNodeType.apply(void 0, _toConsumableArray(typeName));\n}\n\nfunction validateType(typeName) {\n return validate(typeIs(typeName));\n}\n\nfunction validateOptional(validate) {\n return {\n validate: validate,\n optional: true\n };\n}\n\nfunction validateOptionalType(typeName) {\n return {\n validate: typeIs(typeName),\n optional: true\n };\n}\n\nfunction arrayOf(elementType) {\n return chain(assertValueType(\"array\"), assertEach(elementType));\n}\n\nfunction arrayOfType(typeName) {\n return arrayOf(typeIs(typeName));\n}\n\nfunction validateArrayOfType(typeName) {\n return validate(arrayOfType(typeName));\n}\n\nfunction assertEach(callback) {\n function validator(node, key, val) {\n if (!Array.isArray(val)) return;\n\n for (var i = 0; i < val.length; i++) {\n callback(node, \"\".concat(key, \"[\").concat(i, \"]\"), val[i]);\n }\n }\n\n validator.each = callback;\n return validator;\n}\n\nfunction assertOneOf() {\n for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) {\n values[_key] = arguments[_key];\n }\n\n function validate(node, key, val) {\n if (values.indexOf(val) < 0) {\n throw new TypeError(\"Property \".concat(key, \" expected value to be one of \").concat(JSON.stringify(values), \" but got \").concat(JSON.stringify(val)));\n }\n }\n\n validate.oneOf = values;\n return validate;\n}\n\nfunction assertNodeType() {\n for (var _len2 = arguments.length, types = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n types[_key2] = arguments[_key2];\n }\n\n function validate(node, key, val) {\n var valid = false;\n\n var _iterator = _createForOfIteratorHelper(types),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var type = _step.value;\n\n if ((0, _is.default)(type, val)) {\n valid = true;\n break;\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n if (!valid) {\n throw new TypeError(\"Property \".concat(key, \" of \").concat(node.type, \" expected node to be of a type \").concat(JSON.stringify(types), \" \") + \"but instead got \".concat(JSON.stringify(val && val.type)));\n }\n }\n\n validate.oneOfNodeTypes = types;\n return validate;\n}\n\nfunction assertNodeOrValueType() {\n for (var _len3 = arguments.length, types = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n types[_key3] = arguments[_key3];\n }\n\n function validate(node, key, val) {\n var valid = false;\n\n var _iterator2 = _createForOfIteratorHelper(types),\n _step2;\n\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var type = _step2.value;\n\n if (getType(val) === type || (0, _is.default)(type, val)) {\n valid = true;\n break;\n }\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n\n if (!valid) {\n throw new TypeError(\"Property \".concat(key, \" of \").concat(node.type, \" expected node to be of a type \").concat(JSON.stringify(types), \" \") + \"but instead got \".concat(JSON.stringify(val && val.type)));\n }\n }\n\n validate.oneOfNodeOrValueTypes = types;\n return validate;\n}\n\nfunction assertValueType(type) {\n function validate(node, key, val) {\n var valid = getType(val) === type;\n\n if (!valid) {\n throw new TypeError(\"Property \".concat(key, \" expected type of \").concat(type, \" but got \").concat(getType(val)));\n }\n }\n\n validate.type = type;\n return validate;\n}\n\nfunction assertShape(shape) {\n function validate(node, key, val) {\n var errors = [];\n\n for (var _i = 0, _Object$keys = Object.keys(shape); _i < _Object$keys.length; _i++) {\n var property = _Object$keys[_i];\n\n try {\n (0, _validate.validateField)(node, property, val[property], shape[property]);\n } catch (error) {\n if (error instanceof TypeError) {\n errors.push(error.message);\n continue;\n }\n\n throw error;\n }\n }\n\n if (errors.length) {\n throw new TypeError(\"Property \".concat(key, \" of \").concat(node.type, \" expected to have the following:\\n\").concat(errors.join(\"\\n\")));\n }\n }\n\n validate.shapeOf = shape;\n return validate;\n}\n\nfunction chain() {\n for (var _len4 = arguments.length, fns = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {\n fns[_key4] = arguments[_key4];\n }\n\n function validate() {\n var _iterator3 = _createForOfIteratorHelper(fns),\n _step3;\n\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var fn = _step3.value;\n fn.apply(void 0, arguments);\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n }\n\n validate.chainOf = fns;\n return validate;\n}\n\nfunction defineType(type) {\n var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var inherits = opts.inherits && store[opts.inherits] || {};\n var fields = opts.fields || inherits.fields || {};\n var visitor = opts.visitor || inherits.visitor || [];\n var aliases = opts.aliases || inherits.aliases || [];\n var builder = opts.builder || inherits.builder || opts.visitor || [];\n\n if (opts.deprecatedAlias) {\n DEPRECATED_KEYS[opts.deprecatedAlias] = type;\n }\n\n var _iterator4 = _createForOfIteratorHelper(visitor.concat(builder)),\n _step4;\n\n try {\n for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {\n var _key5 = _step4.value;\n fields[_key5] = fields[_key5] || {};\n }\n } catch (err) {\n _iterator4.e(err);\n } finally {\n _iterator4.f();\n }\n\n for (var _i2 = 0, _Object$keys2 = Object.keys(fields); _i2 < _Object$keys2.length; _i2++) {\n var key = _Object$keys2[_i2];\n var field = fields[key];\n\n if (builder.indexOf(key) === -1) {\n field.optional = true;\n }\n\n if (field.default === undefined) {\n field.default = null;\n } else if (!field.validate) {\n field.validate = assertValueType(getType(field.default));\n }\n }\n\n VISITOR_KEYS[type] = opts.visitor = visitor;\n BUILDER_KEYS[type] = opts.builder = builder;\n NODE_FIELDS[type] = opts.fields = fields;\n ALIAS_KEYS[type] = opts.aliases = aliases;\n aliases.forEach(function (alias) {\n FLIPPED_ALIAS_KEYS[alias] = FLIPPED_ALIAS_KEYS[alias] || [];\n FLIPPED_ALIAS_KEYS[alias].push(type);\n });\n store[type] = opts;\n}\n\nvar store = {};","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/2039cba72814c7bf521ee344e98a19df.json b/node_modules/.cache/babel-loader/f517df0f833803d4744f8beed0683ab5.json similarity index 100% rename from node_modules/.cache/babel-loader/2039cba72814c7bf521ee344e98a19df.json rename to node_modules/.cache/babel-loader/f517df0f833803d4744f8beed0683ab5.json diff --git a/node_modules/.cache/babel-loader/f54b128d4ea092ead40e28499dd71e3c.json b/node_modules/.cache/babel-loader/f54b128d4ea092ead40e28499dd71e3c.json deleted file mode 100644 index bc13526f..00000000 --- a/node_modules/.cache/babel-loader/f54b128d4ea092ead40e28499dd71e3c.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/NavigationBar.js\";\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nimport './NavigationBar.css';\n\nvar NavigationBar = function NavigationBar() {\n return /*#__PURE__*/React.createElement(\"header\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 7,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"logo\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 9,\n columnNumber: 11\n }\n }), /*#__PURE__*/React.createElement(\"nav\", {\n className: \"navigation-items\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 12,\n columnNumber: 11\n }\n }));\n};\n\nexport default NavigationBar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/NavigationBar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","styled","NavigationBar"],"mappings":";;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,qBAAP;;AACA,IAAMC,aAAa,GAAC,SAAdA,aAAc,GAAM;AACtB,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAEI;AAAK,IAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAFJ,eAKI;AAAK,IAAA,SAAS,EAAC,kBAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IALJ,CADF;AAYD,CAbH;;AAcE,eAAeA,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport styled from 'styled-components';\nimport './NavigationBar.css';\nconst NavigationBar=() => {\n return (\n
\n \n
\n {/* your logo */}\n
\n \n \n
\n )\n };\n export default NavigationBar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/467d272b55476cb81b79843854bf1578.json b/node_modules/.cache/babel-loader/f5555e4bdf32c718a5e3e46714442872.json similarity index 100% rename from node_modules/.cache/babel-loader/467d272b55476cb81b79843854bf1578.json rename to node_modules/.cache/babel-loader/f5555e4bdf32c718a5e3e46714442872.json diff --git a/node_modules/.cache/babel-loader/f5d4a609c573bc2937b43af094d9d7d4.json b/node_modules/.cache/babel-loader/f5d4a609c573bc2937b43af094d9d7d4.json deleted file mode 100644 index 509677b2..00000000 --- a/node_modules/.cache/babel-loader/f5d4a609c573bc2937b43af094d9d7d4.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = !this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 21\n }\n }, \"Login\")))) : null;\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 239,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 240,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 241,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 247,\n columnNumber: 24\n }\n }, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 253,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 254,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 256,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n logout: this.logout,\n submit: this.submit,\n login: this.login,\n isLoggedIn: this.state.isAuthenticated,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 264,\n columnNumber: 11\n }\n }), mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","isNavbar","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,aAAP,MAA2B,iBAA3B;AACA,OAAOC,UAAP,MAAuB,c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pe/F,S;;AAgQlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = !this.state.isAuthenticated ?\n \n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n :null\n \n \n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n \n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n \n \n {mainBody}\n \n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/482fecb35683467ce34377e5d9016fac.json b/node_modules/.cache/babel-loader/f60bc89ca207637620964b00a63af500.json similarity index 100% rename from node_modules/.cache/babel-loader/482fecb35683467ce34377e5d9016fac.json rename to node_modules/.cache/babel-loader/f60bc89ca207637620964b00a63af500.json diff --git a/node_modules/.cache/babel-loader/5036aa35644ee1965454f4fd41c708f7.json b/node_modules/.cache/babel-loader/f6200dfff70dd438f79fef871df32866.json similarity index 100% rename from node_modules/.cache/babel-loader/5036aa35644ee1965454f4fd41c708f7.json rename to node_modules/.cache/babel-loader/f6200dfff70dd438f79fef871df32866.json diff --git a/node_modules/.cache/babel-loader/5b5c90dd45469b7904691eac4dd638cb.json b/node_modules/.cache/babel-loader/f6271067e8dfacb32150ca79140dc37d.json similarity index 100% rename from node_modules/.cache/babel-loader/5b5c90dd45469b7904691eac4dd638cb.json rename to node_modules/.cache/babel-loader/f6271067e8dfacb32150ca79140dc37d.json diff --git a/node_modules/.cache/babel-loader/f62c3d4aea89a73fd78b850453af2ea2.json b/node_modules/.cache/babel-loader/f62c3d4aea89a73fd78b850453af2ea2.json deleted file mode 100644 index b67fd263..00000000 --- a/node_modules/.cache/babel-loader/f62c3d4aea89a73fd78b850453af2ea2.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 16\n }\n }))), /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Switch, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 15\n }\n }))));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing","header"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,SAASC,aAAT,QAA8B,4BAA9B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACG;AAAK,QAAA,KAAK,EAAC,MAAX;AAAkB,QAAA,GAAG,EAAEC,MAAvB;AAA+B,QAAA,KAAK,EAAE,MAAtC;AAA8C,QAAA,MAAM,EAAE,MAAtD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADH,CADJ,CADF,eAME,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAEE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAII,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEP,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJJ,eAKI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEC,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALJ,eAMI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANJ,eAOI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAPJ,CAFF,CANF,CADF;AAsBD;;;;EAxBmBX,S;;AA2BtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() {\n return (\n \n
\n \n \n \n
\n \n \n \n \n {/* \n */}\n \n \n \n \n \n \n \n
\n );\n }\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/f6512e0f69326d7223e6101d18c09ad0.json b/node_modules/.cache/babel-loader/f6512e0f69326d7223e6101d18c09ad0.json deleted file mode 100644 index 5adb90ee..00000000 --- a/node_modules/.cache/babel-loader/f6512e0f69326d7223e6101d18c09ad0.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:4200\",\n target: \"top_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 13\n }\n }, \" Console \"), /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:8888\",\n target: \"bottom_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }\n }, \" Simulator \"), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"top_\",\n src: \"\",\n width: \"100%\",\n height: \"100%\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"bottom_\",\n src: \"\",\n width: \"100%\",\n height: \"100%\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 9\n }\n }));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;AACA,OAAO,iBAAP;;IAEMC,S;;;;;;;;;;;;;;;UAKAC,K,GAAQ;AACNC,MAAAA,SAAS,EAAE,IADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,SAAS,EAAED;AAJL,K;;;;;;6BAQR;AACE,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,MAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBADF,eAEE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,SAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAFF,eAGE;AAAQ,QAAA,IAAI,EAAC,MAAb;AAAoB,QAAA,GAAG,EAAC,EAAxB;AAA2B,QAAA,KAAK,EAAC,MAAjC;AACJ,QAAA,MAAM,EAAC,MADH;AACU,QAAA,WAAW,EAAC,GADtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHF,eAKF;AAAQ,QAAA,IAAI,EAAC,SAAb;AAAuB,QAAA,GAAG,EAAC,EAA3B;AAA8B,QAAA,KAAK,EAAC,MAApC;AACA,QAAA,MAAM,EAAC,MADP;AACc,QAAA,WAAW,EAAC,GAD1B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALE,CADF;AAcD;;;;EA5BiBf,S;;AAAlBU,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAET,UAAU,CAACD,OAAD,CAAV,CAAoBW;AADd,C;AA8BvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n Console \n Simulator \n \n \n \n \n \n \n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/f656167833b954566ac06dc4ba859980.json b/node_modules/.cache/babel-loader/f656167833b954566ac06dc4ba859980.json deleted file mode 100644 index 943700d7..00000000 --- a/node_modules/.cache/babel-loader/f656167833b954566ac06dc4ba859980.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = function Navigationbar() {\n var navbar_options = _this.state.isAuthenticated;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 5\n }\n }, navbar_options ? /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 33\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 49,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 33\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 54,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 33\n }\n }, \"Simulator\")))))))) : null);\n};\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","navbar_options","state","isAuthenticated","textDecoration"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;AAkBA,IAAMC,aAAa,GAAG,SAAhBA,aAAgB,GAAM;AAC1B,MAAMC,cAAc,GAAG,KAAI,CAACC,KAAL,CAAWC,eAAlC;AAEA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACIF,cAAc,gBACd,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACA,oBAAC,MAAD;AAAQ,IAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA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;AAAA,aADJ,CAPF,eAYE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,OAAD;AAAS,IAAA,KAAK,EAAE;AAAEA,MAAAA,cAAc,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,GAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CAZF,CADF,CANV,CADJ,CADF,CADA,CADc,GAoCd,IArCJ,CADF;AA4CD,CA/CD;;AAgDA,eAAeJ,aAAf","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nconst Navigationbar = () => {\n const navbar_options = this.state.isAuthenticated; \n \n return (\n
\n { navbar_options ? (\n \n \n \n \n \n \n \n ) : (\n null\n ) \n \n }\n
\n );\n};\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/ff8c5f33d86b4dffd0a71a40b4337aae.json b/node_modules/.cache/babel-loader/f6a7a7614d051918b63cf26fa2cd4f6d.json similarity index 100% rename from node_modules/.cache/babel-loader/ff8c5f33d86b4dffd0a71a40b4337aae.json rename to node_modules/.cache/babel-loader/f6a7a7614d051918b63cf26fa2cd4f6d.json diff --git a/node_modules/.cache/babel-loader/f6c03e160d45016203e771ee194a19b2.json b/node_modules/.cache/babel-loader/f6c03e160d45016203e771ee194a19b2.json deleted file mode 100644 index af320b3d..00000000 --- a/node_modules/.cache/babel-loader/f6c03e160d45016203e771ee194a19b2.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"\"use strict\";\n\nvar _toConsumableArray = require(\"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/toConsumableArray\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.NOT_LOCAL_BINDING = exports.BLOCK_SCOPED_SYMBOL = exports.INHERIT_KEYS = exports.UNARY_OPERATORS = exports.STRING_UNARY_OPERATORS = exports.NUMBER_UNARY_OPERATORS = exports.BOOLEAN_UNARY_OPERATORS = exports.BINARY_OPERATORS = exports.NUMBER_BINARY_OPERATORS = exports.BOOLEAN_BINARY_OPERATORS = exports.COMPARISON_BINARY_OPERATORS = exports.EQUALITY_BINARY_OPERATORS = exports.BOOLEAN_NUMBER_BINARY_OPERATORS = exports.UPDATE_OPERATORS = exports.LOGICAL_OPERATORS = exports.COMMENT_KEYS = exports.FOR_INIT_KEYS = exports.FLATTENABLE_KEYS = exports.STATEMENT_OR_BLOCK_KEYS = void 0;\nvar STATEMENT_OR_BLOCK_KEYS = [\"consequent\", \"body\", \"alternate\"];\nexports.STATEMENT_OR_BLOCK_KEYS = STATEMENT_OR_BLOCK_KEYS;\nvar FLATTENABLE_KEYS = [\"body\", \"expressions\"];\nexports.FLATTENABLE_KEYS = FLATTENABLE_KEYS;\nvar FOR_INIT_KEYS = [\"left\", \"init\"];\nexports.FOR_INIT_KEYS = FOR_INIT_KEYS;\nvar COMMENT_KEYS = [\"leadingComments\", \"trailingComments\", \"innerComments\"];\nexports.COMMENT_KEYS = COMMENT_KEYS;\nvar LOGICAL_OPERATORS = [\"||\", \"&&\", \"??\"];\nexports.LOGICAL_OPERATORS = LOGICAL_OPERATORS;\nvar UPDATE_OPERATORS = [\"++\", \"--\"];\nexports.UPDATE_OPERATORS = UPDATE_OPERATORS;\nvar BOOLEAN_NUMBER_BINARY_OPERATORS = [\">\", \"<\", \">=\", \"<=\"];\nexports.BOOLEAN_NUMBER_BINARY_OPERATORS = BOOLEAN_NUMBER_BINARY_OPERATORS;\nvar EQUALITY_BINARY_OPERATORS = [\"==\", \"===\", \"!=\", \"!==\"];\nexports.EQUALITY_BINARY_OPERATORS = EQUALITY_BINARY_OPERATORS;\nvar COMPARISON_BINARY_OPERATORS = [].concat(EQUALITY_BINARY_OPERATORS, [\"in\", \"instanceof\"]);\nexports.COMPARISON_BINARY_OPERATORS = COMPARISON_BINARY_OPERATORS;\nvar BOOLEAN_BINARY_OPERATORS = [].concat(_toConsumableArray(COMPARISON_BINARY_OPERATORS), BOOLEAN_NUMBER_BINARY_OPERATORS);\nexports.BOOLEAN_BINARY_OPERATORS = BOOLEAN_BINARY_OPERATORS;\nvar NUMBER_BINARY_OPERATORS = [\"-\", \"/\", \"%\", \"*\", \"**\", \"&\", \"|\", \">>\", \">>>\", \"<<\", \"^\"];\nexports.NUMBER_BINARY_OPERATORS = NUMBER_BINARY_OPERATORS;\nvar BINARY_OPERATORS = [\"+\"].concat(NUMBER_BINARY_OPERATORS, _toConsumableArray(BOOLEAN_BINARY_OPERATORS));\nexports.BINARY_OPERATORS = BINARY_OPERATORS;\nvar BOOLEAN_UNARY_OPERATORS = [\"delete\", \"!\"];\nexports.BOOLEAN_UNARY_OPERATORS = BOOLEAN_UNARY_OPERATORS;\nvar NUMBER_UNARY_OPERATORS = [\"+\", \"-\", \"~\"];\nexports.NUMBER_UNARY_OPERATORS = NUMBER_UNARY_OPERATORS;\nvar STRING_UNARY_OPERATORS = [\"typeof\"];\nexports.STRING_UNARY_OPERATORS = STRING_UNARY_OPERATORS;\nvar UNARY_OPERATORS = [\"void\", \"throw\"].concat(BOOLEAN_UNARY_OPERATORS, NUMBER_UNARY_OPERATORS, STRING_UNARY_OPERATORS);\nexports.UNARY_OPERATORS = UNARY_OPERATORS;\nvar INHERIT_KEYS = {\n optional: [\"typeAnnotation\", \"typeParameters\", \"returnType\"],\n force: [\"start\", \"loc\", \"end\"]\n};\nexports.INHERIT_KEYS = INHERIT_KEYS;\nvar BLOCK_SCOPED_SYMBOL = Symbol.for(\"var used to be block scoped\");\nexports.BLOCK_SCOPED_SYMBOL = BLOCK_SCOPED_SYMBOL;\nvar NOT_LOCAL_BINDING = Symbol.for(\"should not be considered a local binding\");\nexports.NOT_LOCAL_BINDING = NOT_LOCAL_BINDING;","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/4a4d0db10cfc5091e5f858d1665d3f3b.json b/node_modules/.cache/babel-loader/f70ac69314458971551b2319666487a8.json similarity index 100% rename from node_modules/.cache/babel-loader/4a4d0db10cfc5091e5f858d1665d3f3b.json rename to node_modules/.cache/babel-loader/f70ac69314458971551b2319666487a8.json diff --git a/node_modules/.cache/babel-loader/b17527ce1c54295f735846eb87f49dbe.json b/node_modules/.cache/babel-loader/f7508f601622e6823fae91ebbb834077.json similarity index 100% rename from node_modules/.cache/babel-loader/b17527ce1c54295f735846eb87f49dbe.json rename to node_modules/.cache/babel-loader/f7508f601622e6823fae91ebbb834077.json diff --git a/node_modules/.cache/babel-loader/f7adfde3db23132fa8c6ddaf315d4dac.json b/node_modules/.cache/babel-loader/f7adfde3db23132fa8c6ddaf315d4dac.json deleted file mode 100644 index 793d8b8d..00000000 --- a/node_modules/.cache/babel-loader/f7adfde3db23132fa8c6ddaf315d4dac.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 15\n }\n }))));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","Navigationbar","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,SAASC,aAAT,QAA8B,4BAA9B;AACA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CAEA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAKI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEN,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALJ,eAMI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEC,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANJ,eAOI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEG,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAPJ,eAQI,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QARJ,CADF,CADF,CADF;AAiBD;;;;EAnBmBX,S;;AAsBtB,eAAeY,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { Navigationbar } from './components/Navigationbar';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() {\n return (\n \n \n
\n \n \n {/* \n */}\n \n \n \n \n \n
\n
\n
\n );\n }\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/69ff6450819b7fbeb20c438b4dfefca1.json b/node_modules/.cache/babel-loader/f7d5c6e8591ec8321c77b18edd685bce.json similarity index 100% rename from node_modules/.cache/babel-loader/69ff6450819b7fbeb20c438b4dfefca1.json rename to node_modules/.cache/babel-loader/f7d5c6e8591ec8321c77b18edd685bce.json diff --git a/node_modules/.cache/babel-loader/a05663f7c59da6fb864cfe0e92e7159a.json b/node_modules/.cache/babel-loader/f7f2f9719af494ab84b5fb65861a9f0d.json similarity index 100% rename from node_modules/.cache/babel-loader/a05663f7c59da6fb864cfe0e92e7159a.json rename to node_modules/.cache/babel-loader/f7f2f9719af494ab84b5fb65861a9f0d.json diff --git a/node_modules/.cache/babel-loader/ba49d5898cab62acfcbdf322673dae66.json b/node_modules/.cache/babel-loader/f8082ac0f38ed91b82f5bc4e24fcda06.json similarity index 100% rename from node_modules/.cache/babel-loader/ba49d5898cab62acfcbdf322673dae66.json rename to node_modules/.cache/babel-loader/f8082ac0f38ed91b82f5bc4e24fcda06.json diff --git a/node_modules/.cache/babel-loader/ac97c8dba946c2bec84ce681dab47e1a.json b/node_modules/.cache/babel-loader/f81d948e5224cc31f6b12b2977dbabb5.json similarity index 100% rename from node_modules/.cache/babel-loader/ac97c8dba946c2bec84ce681dab47e1a.json rename to node_modules/.cache/babel-loader/f81d948e5224cc31f6b12b2977dbabb5.json diff --git a/node_modules/.cache/babel-loader/f862dae617d8a3624a4bb9f705b55b6b.json b/node_modules/.cache/babel-loader/f862dae617d8a3624a4bb9f705b55b6b.json deleted file mode 100644 index dbac029a..00000000 --- a/node_modules/.cache/babel-loader/f862dae617d8a3624a4bb9f705b55b6b.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\n\nvar _this = this,\n _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = function Navigationbar() {\n var navbar_options = /*#__PURE__*/React.createElement(Styles, {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 25\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 19\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 28\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 28\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 28\n }\n }, \"Simulator\"))))))));\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 64,\n columnNumber: 5\n }\n }, _this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"navbar_options\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 66,\n columnNumber: 9\n }\n }) : null);\n};","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","navbar_options","textDecoration","state","isAuthenticated"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;AAkBA,IAAMC,aAAa,GAAG,SAAhBA,aAAgB,GAAM;AAC1B,MAAMC,cAAc,gBAClB,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACA,oBAAC,MAAD;AAAQ,IAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACA,oBAAC,MAAD,CAAQ,QAAR;AAAiB,IAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBACI,oBAAC,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Ac,EAAE;AAAlB,KAAhB;AAA6C,IAAA,KAAK,EAAC,OAAnD;AAA2D,IAAA,EAAE,EAAC,GAA9D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADJ,CAZF,CADH,CANV,CADJ,CADA,CADA,CADF;AAoCA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACI,KAAI,CAACC,KAAL,CAAWC,eAAX,gBACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IADA,GAIF,IALF,CADF;AAaD,CAlDD","sourcesContent":["import React from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nconst Navigationbar = () => {\n const navbar_options = (\n \n \n \n \n \n \n \n );\n return (\n
\n { this.state.isAuthenticated ? (\n \n )\n :\n null\n }\n
\n )\n\n \n\n}"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/f8659222979a9712dcc2e5ff1319345f.json b/node_modules/.cache/babel-loader/f8659222979a9712dcc2e5ff1319345f.json new file mode 100644 index 00000000..bddbfe60 --- /dev/null +++ b/node_modules/.cache/babel-loader/f8659222979a9712dcc2e5ff1319345f.json @@ -0,0 +1 @@ +{"ast":null,"code":"\"use strict\";\n\nvar _toConsumableArray = require(\"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/toConsumableArray\");\n\nvar _utils = _interopRequireWildcard(require(\"./utils\"));\n\nvar _placeholders = require(\"./placeholders\");\n\nfunction _getRequireWildcardCache() {\n if (typeof WeakMap !== \"function\") return null;\n var cache = new WeakMap();\n\n _getRequireWildcardCache = function _getRequireWildcardCache() {\n return cache;\n };\n\n return cache;\n}\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n }\n\n if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") {\n return {\n default: obj\n };\n }\n\n var cache = _getRequireWildcardCache();\n\n if (cache && cache.has(obj)) {\n return cache.get(obj);\n }\n\n var newObj = {};\n var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;\n\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;\n\n if (desc && (desc.get || desc.set)) {\n Object.defineProperty(newObj, key, desc);\n } else {\n newObj[key] = obj[key];\n }\n }\n }\n\n newObj.default = obj;\n\n if (cache) {\n cache.set(obj, newObj);\n }\n\n return newObj;\n}\n\n(0, _utils.default)(\"Noop\", {\n visitor: []\n});\n(0, _utils.default)(\"Placeholder\", {\n visitor: [],\n builder: [\"expectedNode\", \"name\"],\n fields: {\n name: {\n validate: (0, _utils.assertNodeType)(\"Identifier\")\n },\n expectedNode: {\n validate: (0, _utils.assertOneOf).apply(void 0, _toConsumableArray(_placeholders.PLACEHOLDERS))\n }\n }\n});\n(0, _utils.default)(\"V8IntrinsicIdentifier\", {\n builder: [\"name\"],\n fields: {\n name: {\n validate: (0, _utils.assertValueType)(\"string\")\n }\n }\n});","map":null,"metadata":{},"sourceType":"script"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/f87dc29d2f1de1ac34a4917b8327a94a.json b/node_modules/.cache/babel-loader/f87dc29d2f1de1ac34a4917b8327a94a.json deleted file mode 100644 index c4f8a644..00000000 --- a/node_modules/.cache/babel-loader/f87dc29d2f1de1ac34a4917b8327a94a.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import Stylis from 'stylis/stylis.min';\nimport _insertRulePlugin from 'stylis-rule-sheet';\nimport React, { cloneElement, createContext, Component, createElement } from 'react';\nimport unitless from '@emotion/unitless';\nimport { isElement, isValidElementType, ForwardRef } from 'react-is';\nimport memoize from 'memoize-one';\nimport PropTypes from 'prop-types';\nimport validAttr from '@emotion/is-prop-valid';\nimport merge from 'merge-anything'; // \n\nvar interleave = function interleave(strings, interpolations) {\n var result = [strings[0]];\n\n for (var i = 0, len = interpolations.length; i < len; i += 1) {\n result.push(interpolations[i], strings[i + 1]);\n }\n\n return result;\n};\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n} : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n};\n\nvar classCallCheck = function classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\nvar createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n\nvar inherits = function inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n};\n\nvar objectWithoutProperties = function objectWithoutProperties(obj, keys) {\n var target = {};\n\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n\n return target;\n};\n\nvar possibleConstructorReturn = function possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}; // \n\n\nvar isPlainObject = function isPlainObject(x) {\n return (typeof x === 'undefined' ? 'undefined' : _typeof(x)) === 'object' && x.constructor === Object;\n}; // \n\n\nvar EMPTY_ARRAY = Object.freeze([]);\nvar EMPTY_OBJECT = Object.freeze({}); // \n\nfunction isFunction(test) {\n return typeof test === 'function';\n} // \n\n\nfunction getComponentName(target) {\n return (process.env.NODE_ENV !== 'production' ? typeof target === 'string' && target : false) || target.displayName || target.name || 'Component';\n} // \n\n\nfunction isStatelessFunction(test) {\n return typeof test === 'function' && !(test.prototype && test.prototype.isReactComponent);\n} // \n\n\nfunction isStyledComponent(target) {\n return target && typeof target.styledComponentId === 'string';\n} // \n\n\nvar SC_ATTR = typeof process !== 'undefined' && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || 'data-styled';\nvar SC_VERSION_ATTR = 'data-styled-version';\nvar SC_STREAM_ATTR = 'data-styled-streamed';\nvar IS_BROWSER = typeof window !== 'undefined' && 'HTMLElement' in window;\nvar DISABLE_SPEEDY = typeof SC_DISABLE_SPEEDY === 'boolean' && SC_DISABLE_SPEEDY || typeof process !== 'undefined' && (process.env.REACT_APP_SC_DISABLE_SPEEDY || process.env.SC_DISABLE_SPEEDY) || process.env.NODE_ENV !== 'production'; // Shared empty execution context when generating static styles\n\nvar STATIC_EXECUTION_CONTEXT = {}; // \n\n/**\n * Parse errors.md and turn it into a simple hash of code: message\n */\n\nvar ERRORS = process.env.NODE_ENV !== 'production' ? {\n \"1\": \"Cannot create styled-component for component: %s.\\n\\n\",\n \"2\": \"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\\n\\n- Are you trying to reuse it across renders?\\n- Are you accidentally calling collectStyles twice?\\n\\n\",\n \"3\": \"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\\n\\n\",\n \"4\": \"The `StyleSheetManager` expects a valid target or sheet prop!\\n\\n- Does this error occur on the client and is your target falsy?\\n- Does this error occur on the server and is the sheet falsy?\\n\\n\",\n \"5\": \"The clone method cannot be used on the client!\\n\\n- Are you running in a client-like environment on the server?\\n- Are you trying to run SSR on the client?\\n\\n\",\n \"6\": \"Trying to insert a new style tag, but the given Node is unmounted!\\n\\n- Are you using a custom target that isn't mounted?\\n- Does your document not have a valid head element?\\n- Have you accidentally removed a style tag manually?\\n\\n\",\n \"7\": \"ThemeProvider: Please return an object from your \\\"theme\\\" prop function, e.g.\\n\\n```js\\ntheme={() => ({})}\\n```\\n\\n\",\n \"8\": \"ThemeProvider: Please make your \\\"theme\\\" prop an object.\\n\\n\",\n \"9\": \"Missing document ``\\n\\n\",\n \"10\": \"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\\n\\n\",\n \"11\": \"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\\n\\n\",\n \"12\": \"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\\\`\\\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\\n\\n\",\n \"13\": \"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\\n\"\n} : {};\n/**\n * super basic version of sprintf\n */\n\nfunction format() {\n var a = arguments.length <= 0 ? undefined : arguments[0];\n var b = [];\n\n for (var c = 1, len = arguments.length; c < len; c += 1) {\n b.push(arguments.length <= c ? undefined : arguments[c]);\n }\n\n b.forEach(function (d) {\n a = a.replace(/%[a-z]/, d);\n });\n return a;\n}\n/**\n * Create an error file out of errors.md for development and a simple web link to the full errors\n * in production mode.\n */\n\n\nvar StyledComponentsError = function (_Error) {\n inherits(StyledComponentsError, _Error);\n\n function StyledComponentsError(code) {\n classCallCheck(this, StyledComponentsError);\n\n for (var _len = arguments.length, interpolations = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n interpolations[_key - 1] = arguments[_key];\n }\n\n if (process.env.NODE_ENV === 'production') {\n var _this = possibleConstructorReturn(this, _Error.call(this, 'An error occurred. See https://github.com/styled-components/styled-components/blob/master/packages/styled-components/src/utils/errors.md#' + code + ' for more information.' + (interpolations.length > 0 ? ' Additional arguments: ' + interpolations.join(', ') : '')));\n } else {\n var _this = possibleConstructorReturn(this, _Error.call(this, format.apply(undefined, [ERRORS[code]].concat(interpolations)).trim()));\n }\n\n return possibleConstructorReturn(_this);\n }\n\n return StyledComponentsError;\n}(Error); // \n\n\nvar SC_COMPONENT_ID = /^[^\\S\\n]*?\\/\\* sc-component-id:\\s*(\\S+)\\s+\\*\\//gm;\n\nvar extractComps = function extractComps(maybeCSS) {\n var css = '' + (maybeCSS || ''); // Definitely a string, and a clone\n\n var existingComponents = [];\n css.replace(SC_COMPONENT_ID, function (match, componentId, matchIndex) {\n existingComponents.push({\n componentId: componentId,\n matchIndex: matchIndex\n });\n return match;\n });\n return existingComponents.map(function (_ref, i) {\n var componentId = _ref.componentId,\n matchIndex = _ref.matchIndex;\n var nextComp = existingComponents[i + 1];\n var cssFromDOM = nextComp ? css.slice(matchIndex, nextComp.matchIndex) : css.slice(matchIndex);\n return {\n componentId: componentId,\n cssFromDOM: cssFromDOM\n };\n });\n}; // \n\n\nvar COMMENT_REGEX = /^\\s*\\/\\/.*$/gm; // NOTE: This stylis instance is only used to split rules from SSR'd style tags\n\nvar stylisSplitter = new Stylis({\n global: false,\n cascade: true,\n keyframe: false,\n prefix: false,\n compress: false,\n semicolon: true\n});\nvar stylis = new Stylis({\n global: false,\n cascade: true,\n keyframe: false,\n prefix: true,\n compress: false,\n semicolon: false // NOTE: This means \"autocomplete missing semicolons\"\n\n}); // Wrap `insertRulePlugin to build a list of rules,\n// and then make our own plugin to return the rules. This\n// makes it easier to hook into the existing SSR architecture\n\nvar parsingRules = []; // eslint-disable-next-line consistent-return\n\nvar returnRulesPlugin = function returnRulesPlugin(context) {\n if (context === -2) {\n var parsedRules = parsingRules;\n parsingRules = [];\n return parsedRules;\n }\n};\n\nvar parseRulesPlugin = _insertRulePlugin(function (rule) {\n parsingRules.push(rule);\n});\n\nvar _componentId = void 0;\n\nvar _selector = void 0;\n\nvar _selectorRegexp = void 0;\n\nvar selfReferenceReplacer = function selfReferenceReplacer(match, offset, string) {\n if ( // the first self-ref is always untouched\n offset > 0 && // there should be at least two self-refs to do a replacement (.b > .b)\n string.slice(0, offset).indexOf(_selector) !== -1 && // no consecutive self refs (.b.b); that is a precedence boost and treated differently\n string.slice(offset - _selector.length, offset) !== _selector) {\n return '.' + _componentId;\n }\n\n return match;\n};\n/**\n * When writing a style like\n *\n * & + & {\n * color: red;\n * }\n *\n * The second ampersand should be a reference to the static component class. stylis\n * has no knowledge of static class so we have to intelligently replace the base selector.\n */\n\n\nvar selfReferenceReplacementPlugin = function selfReferenceReplacementPlugin(context, _, selectors) {\n if (context === 2 && selectors.length && selectors[0].lastIndexOf(_selector) > 0) {\n // eslint-disable-next-line no-param-reassign\n selectors[0] = selectors[0].replace(_selectorRegexp, selfReferenceReplacer);\n }\n};\n\nstylis.use([selfReferenceReplacementPlugin, parseRulesPlugin, returnRulesPlugin]);\nstylisSplitter.use([parseRulesPlugin, returnRulesPlugin]);\n\nvar splitByRules = function splitByRules(css) {\n return stylisSplitter('', css);\n};\n\nfunction stringifyRules(rules, selector, prefix) {\n var componentId = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '&';\n var flatCSS = rules.join('').replace(COMMENT_REGEX, ''); // replace JS comments\n\n var cssStr = selector && prefix ? prefix + ' ' + selector + ' { ' + flatCSS + ' }' : flatCSS; // stylis has no concept of state to be passed to plugins\n // but since JS is single=threaded, we can rely on that to ensure\n // these properties stay in sync with the current stylis run\n\n _componentId = componentId;\n _selector = selector;\n _selectorRegexp = new RegExp('\\\\' + _selector + '\\\\b', 'g');\n return stylis(prefix || !selector ? '' : selector, cssStr);\n} // \n\n/* eslint-disable camelcase, no-undef */\n\n\nvar getNonce = function getNonce() {\n return typeof __webpack_nonce__ !== 'undefined' ? __webpack_nonce__ : null;\n}; // \n\n/* These are helpers for the StyleTags to keep track of the injected\n * rule names for each (component) ID that they're keeping track of.\n * They're crucial for detecting whether a name has already been\n * injected.\n * (This excludes rehydrated names) */\n\n/* adds a new ID:name pairing to a names dictionary */\n\n\nvar addNameForId = function addNameForId(names, id, name) {\n if (name) {\n // eslint-disable-next-line no-param-reassign\n var namesForId = names[id] || (names[id] = Object.create(null));\n namesForId[name] = true;\n }\n};\n/* resets an ID entirely by overwriting it in the dictionary */\n\n\nvar resetIdNames = function resetIdNames(names, id) {\n // eslint-disable-next-line no-param-reassign\n names[id] = Object.create(null);\n};\n/* factory for a names dictionary checking the existance of an ID:name pairing */\n\n\nvar hasNameForId = function hasNameForId(names) {\n return function (id, name) {\n return names[id] !== undefined && names[id][name];\n };\n};\n/* stringifies names for the html/element output */\n\n\nvar stringifyNames = function stringifyNames(names) {\n var str = ''; // eslint-disable-next-line guard-for-in\n\n for (var id in names) {\n str += Object.keys(names[id]).join(' ') + ' ';\n }\n\n return str.trim();\n};\n/* clones the nested names dictionary */\n\n\nvar cloneNames = function cloneNames(names) {\n var clone = Object.create(null); // eslint-disable-next-line guard-for-in\n\n for (var id in names) {\n clone[id] = _extends({}, names[id]);\n }\n\n return clone;\n}; // \n\n/* These are helpers that deal with the insertRule (aka speedy) API\n * They are used in the StyleTags and specifically the speedy tag\n */\n\n/* retrieve a sheet for a given style tag */\n\n\nvar sheetForTag = function sheetForTag(tag) {\n // $FlowFixMe\n if (tag.sheet) return tag.sheet;\n /* Firefox quirk requires us to step through all stylesheets to find one owned by the given tag */\n\n var size = tag.ownerDocument.styleSheets.length;\n\n for (var i = 0; i < size; i += 1) {\n var sheet = tag.ownerDocument.styleSheets[i]; // $FlowFixMe\n\n if (sheet.ownerNode === tag) return sheet;\n }\n /* we should always be able to find a tag */\n\n\n throw new StyledComponentsError(10);\n};\n/* insert a rule safely and return whether it was actually injected */\n\n\nvar safeInsertRule = function safeInsertRule(sheet, cssRule, index) {\n /* abort early if cssRule string is falsy */\n if (!cssRule) return false;\n var maxIndex = sheet.cssRules.length;\n\n try {\n /* use insertRule and cap passed index with maxIndex (no of cssRules) */\n sheet.insertRule(cssRule, index <= maxIndex ? index : maxIndex);\n } catch (err) {\n /* any error indicates an invalid rule */\n return false;\n }\n\n return true;\n};\n/* deletes `size` rules starting from `removalIndex` */\n\n\nvar deleteRules = function deleteRules(sheet, removalIndex, size) {\n var lowerBound = removalIndex - size;\n\n for (var i = removalIndex; i > lowerBound; i -= 1) {\n sheet.deleteRule(i);\n }\n}; // \n\n/* this marker separates component styles and is important for rehydration */\n\n\nvar makeTextMarker = function makeTextMarker(id) {\n return '\\n/* sc-component-id: ' + id + ' */\\n';\n};\n/* add up all numbers in array up until and including the index */\n\n\nvar addUpUntilIndex = function addUpUntilIndex(sizes, index) {\n var totalUpToIndex = 0;\n\n for (var i = 0; i <= index; i += 1) {\n totalUpToIndex += sizes[i];\n }\n\n return totalUpToIndex;\n};\n/* create a new style tag after lastEl */\n\n\nvar makeStyleTag = function makeStyleTag(target, tagEl, insertBefore) {\n var targetDocument = document;\n if (target) targetDocument = target.ownerDocument;else if (tagEl) targetDocument = tagEl.ownerDocument;\n var el = targetDocument.createElement('style');\n el.setAttribute(SC_ATTR, '');\n el.setAttribute(SC_VERSION_ATTR, \"4.4.1\");\n var nonce = getNonce();\n\n if (nonce) {\n el.setAttribute('nonce', nonce);\n }\n /* Work around insertRule quirk in EdgeHTML */\n\n\n el.appendChild(targetDocument.createTextNode(''));\n\n if (target && !tagEl) {\n /* Append to target when no previous element was passed */\n target.appendChild(el);\n } else {\n if (!tagEl || !target || !tagEl.parentNode) {\n throw new StyledComponentsError(6);\n }\n /* Insert new style tag after the previous one */\n\n\n tagEl.parentNode.insertBefore(el, insertBefore ? tagEl : tagEl.nextSibling);\n }\n\n return el;\n};\n/* takes a css factory function and outputs an html styled tag factory */\n\n\nvar wrapAsHtmlTag = function wrapAsHtmlTag(css, names) {\n return function (additionalAttrs) {\n var nonce = getNonce();\n var attrs = [nonce && 'nonce=\"' + nonce + '\"', SC_ATTR + '=\"' + stringifyNames(names) + '\"', SC_VERSION_ATTR + '=\"' + \"4.4.1\" + '\"', additionalAttrs];\n var htmlAttr = attrs.filter(Boolean).join(' ');\n return '';\n };\n};\n/* takes a css factory function and outputs an element factory */\n\n\nvar wrapAsElement = function wrapAsElement(css, names) {\n return function () {\n var _props;\n\n var props = (_props = {}, _props[SC_ATTR] = stringifyNames(names), _props[SC_VERSION_ATTR] = \"4.4.1\", _props);\n var nonce = getNonce();\n\n if (nonce) {\n // $FlowFixMe\n props.nonce = nonce;\n } // eslint-disable-next-line react/no-danger\n\n\n return React.createElement('style', _extends({}, props, {\n dangerouslySetInnerHTML: {\n __html: css()\n }\n }));\n };\n};\n\nvar getIdsFromMarkersFactory = function getIdsFromMarkersFactory(markers) {\n return function () {\n return Object.keys(markers);\n };\n};\n/* speedy tags utilise insertRule */\n\n\nvar makeSpeedyTag = function makeSpeedyTag(el, getImportRuleTag) {\n var names = Object.create(null);\n var markers = Object.create(null);\n var sizes = [];\n var extractImport = getImportRuleTag !== undefined;\n /* indicates whether getImportRuleTag was called */\n\n var usedImportRuleTag = false;\n\n var insertMarker = function insertMarker(id) {\n var prev = markers[id];\n\n if (prev !== undefined) {\n return prev;\n }\n\n markers[id] = sizes.length;\n sizes.push(0);\n resetIdNames(names, id);\n return markers[id];\n };\n\n var insertRules = function insertRules(id, cssRules, name) {\n var marker = insertMarker(id);\n var sheet = sheetForTag(el);\n var insertIndex = addUpUntilIndex(sizes, marker);\n var injectedRules = 0;\n var importRules = [];\n var cssRulesSize = cssRules.length;\n\n for (var i = 0; i < cssRulesSize; i += 1) {\n var cssRule = cssRules[i];\n var mayHaveImport = extractImport;\n /* @import rules are reordered to appear first */\n\n if (mayHaveImport && cssRule.indexOf('@import') !== -1) {\n importRules.push(cssRule);\n } else if (safeInsertRule(sheet, cssRule, insertIndex + injectedRules)) {\n mayHaveImport = false;\n injectedRules += 1;\n }\n }\n\n if (extractImport && importRules.length > 0) {\n usedImportRuleTag = true; // $FlowFixMe\n\n getImportRuleTag().insertRules(id + '-import', importRules);\n }\n\n sizes[marker] += injectedRules;\n /* add up no of injected rules */\n\n addNameForId(names, id, name);\n };\n\n var removeRules = function removeRules(id) {\n var marker = markers[id];\n if (marker === undefined) return; // $FlowFixMe\n\n if (el.isConnected === false) return;\n var size = sizes[marker];\n var sheet = sheetForTag(el);\n var removalIndex = addUpUntilIndex(sizes, marker) - 1;\n deleteRules(sheet, removalIndex, size);\n sizes[marker] = 0;\n resetIdNames(names, id);\n\n if (extractImport && usedImportRuleTag) {\n // $FlowFixMe\n getImportRuleTag().removeRules(id + '-import');\n }\n };\n\n var css = function css() {\n var _sheetForTag = sheetForTag(el),\n cssRules = _sheetForTag.cssRules;\n\n var str = ''; // eslint-disable-next-line guard-for-in\n\n for (var id in markers) {\n str += makeTextMarker(id);\n var marker = markers[id];\n var end = addUpUntilIndex(sizes, marker);\n var size = sizes[marker];\n\n for (var i = end - size; i < end; i += 1) {\n var rule = cssRules[i];\n\n if (rule !== undefined) {\n str += rule.cssText;\n }\n }\n }\n\n return str;\n };\n\n return {\n clone: function clone() {\n throw new StyledComponentsError(5);\n },\n css: css,\n getIds: getIdsFromMarkersFactory(markers),\n hasNameForId: hasNameForId(names),\n insertMarker: insertMarker,\n insertRules: insertRules,\n removeRules: removeRules,\n sealed: false,\n styleTag: el,\n toElement: wrapAsElement(css, names),\n toHTML: wrapAsHtmlTag(css, names)\n };\n};\n\nvar makeTextNode = function makeTextNode(targetDocument, id) {\n return targetDocument.createTextNode(makeTextMarker(id));\n};\n\nvar makeBrowserTag = function makeBrowserTag(el, getImportRuleTag) {\n var names = Object.create(null);\n var markers = Object.create(null);\n var extractImport = getImportRuleTag !== undefined;\n /* indicates whether getImportRuleTag was called */\n\n var usedImportRuleTag = false;\n\n var insertMarker = function insertMarker(id) {\n var prev = markers[id];\n\n if (prev !== undefined) {\n return prev;\n }\n\n markers[id] = makeTextNode(el.ownerDocument, id);\n el.appendChild(markers[id]);\n names[id] = Object.create(null);\n return markers[id];\n };\n\n var insertRules = function insertRules(id, cssRules, name) {\n var marker = insertMarker(id);\n var importRules = [];\n var cssRulesSize = cssRules.length;\n\n for (var i = 0; i < cssRulesSize; i += 1) {\n var rule = cssRules[i];\n var mayHaveImport = extractImport;\n\n if (mayHaveImport && rule.indexOf('@import') !== -1) {\n importRules.push(rule);\n } else {\n mayHaveImport = false;\n var separator = i === cssRulesSize - 1 ? '' : ' ';\n marker.appendData('' + rule + separator);\n }\n }\n\n addNameForId(names, id, name);\n\n if (extractImport && importRules.length > 0) {\n usedImportRuleTag = true; // $FlowFixMe\n\n getImportRuleTag().insertRules(id + '-import', importRules);\n }\n };\n\n var removeRules = function removeRules(id) {\n var marker = markers[id];\n if (marker === undefined) return;\n /* create new empty text node and replace the current one */\n\n var newMarker = makeTextNode(el.ownerDocument, id);\n el.replaceChild(newMarker, marker);\n markers[id] = newMarker;\n resetIdNames(names, id);\n\n if (extractImport && usedImportRuleTag) {\n // $FlowFixMe\n getImportRuleTag().removeRules(id + '-import');\n }\n };\n\n var css = function css() {\n var str = ''; // eslint-disable-next-line guard-for-in\n\n for (var id in markers) {\n str += markers[id].data;\n }\n\n return str;\n };\n\n return {\n clone: function clone() {\n throw new StyledComponentsError(5);\n },\n css: css,\n getIds: getIdsFromMarkersFactory(markers),\n hasNameForId: hasNameForId(names),\n insertMarker: insertMarker,\n insertRules: insertRules,\n removeRules: removeRules,\n sealed: false,\n styleTag: el,\n toElement: wrapAsElement(css, names),\n toHTML: wrapAsHtmlTag(css, names)\n };\n};\n\nvar makeServerTag = function makeServerTag(namesArg, markersArg) {\n var names = namesArg === undefined ? Object.create(null) : namesArg;\n var markers = markersArg === undefined ? Object.create(null) : markersArg;\n\n var insertMarker = function insertMarker(id) {\n var prev = markers[id];\n\n if (prev !== undefined) {\n return prev;\n }\n\n return markers[id] = [''];\n };\n\n var insertRules = function insertRules(id, cssRules, name) {\n var marker = insertMarker(id);\n marker[0] += cssRules.join(' ');\n addNameForId(names, id, name);\n };\n\n var removeRules = function removeRules(id) {\n var marker = markers[id];\n if (marker === undefined) return;\n marker[0] = '';\n resetIdNames(names, id);\n };\n\n var css = function css() {\n var str = ''; // eslint-disable-next-line guard-for-in\n\n for (var id in markers) {\n var cssForId = markers[id][0];\n\n if (cssForId) {\n str += makeTextMarker(id) + cssForId;\n }\n }\n\n return str;\n };\n\n var clone = function clone() {\n var namesClone = cloneNames(names);\n var markersClone = Object.create(null); // eslint-disable-next-line guard-for-in\n\n for (var id in markers) {\n markersClone[id] = [markers[id][0]];\n }\n\n return makeServerTag(namesClone, markersClone);\n };\n\n var tag = {\n clone: clone,\n css: css,\n getIds: getIdsFromMarkersFactory(markers),\n hasNameForId: hasNameForId(names),\n insertMarker: insertMarker,\n insertRules: insertRules,\n removeRules: removeRules,\n sealed: false,\n styleTag: null,\n toElement: wrapAsElement(css, names),\n toHTML: wrapAsHtmlTag(css, names)\n };\n return tag;\n};\n\nvar makeTag = function makeTag(target, tagEl, forceServer, insertBefore, getImportRuleTag) {\n if (IS_BROWSER && !forceServer) {\n var el = makeStyleTag(target, tagEl, insertBefore);\n\n if (DISABLE_SPEEDY) {\n return makeBrowserTag(el, getImportRuleTag);\n } else {\n return makeSpeedyTag(el, getImportRuleTag);\n }\n }\n\n return makeServerTag();\n};\n\nvar rehydrate = function rehydrate(tag, els, extracted) {\n /* add all extracted components to the new tag */\n for (var i = 0, len = extracted.length; i < len; i += 1) {\n var _extracted$i = extracted[i],\n componentId = _extracted$i.componentId,\n cssFromDOM = _extracted$i.cssFromDOM;\n var cssRules = splitByRules(cssFromDOM);\n tag.insertRules(componentId, cssRules);\n }\n /* remove old HTMLStyleElements, since they have been rehydrated */\n\n\n for (var _i = 0, _len = els.length; _i < _len; _i += 1) {\n var el = els[_i];\n\n if (el.parentNode) {\n el.parentNode.removeChild(el);\n }\n }\n}; // \n\n\nvar SPLIT_REGEX = /\\s+/;\n/* determine the maximum number of components before tags are sharded */\n\nvar MAX_SIZE = void 0;\n\nif (IS_BROWSER) {\n /* in speedy mode we can keep a lot more rules in a sheet before a slowdown can be expected */\n MAX_SIZE = DISABLE_SPEEDY ? 40 : 1000;\n} else {\n /* for servers we do not need to shard at all */\n MAX_SIZE = -1;\n}\n\nvar sheetRunningId = 0;\nvar master = void 0;\n\nvar StyleSheet = function () {\n /* a map from ids to tags */\n\n /* deferred rules for a given id */\n\n /* this is used for not reinjecting rules via hasNameForId() */\n\n /* when rules for an id are removed using remove() we have to ignore rehydratedNames for it */\n\n /* a list of tags belonging to this StyleSheet */\n\n /* a tag for import rules */\n\n /* current capacity until a new tag must be created */\n\n /* children (aka clones) of this StyleSheet inheriting all and future injections */\n function StyleSheet() {\n var _this = this;\n\n var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : IS_BROWSER ? document.head : null;\n var forceServer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n classCallCheck(this, StyleSheet);\n\n this.getImportRuleTag = function () {\n var importRuleTag = _this.importRuleTag;\n\n if (importRuleTag !== undefined) {\n return importRuleTag;\n }\n\n var firstTag = _this.tags[0];\n var insertBefore = true;\n return _this.importRuleTag = makeTag(_this.target, firstTag ? firstTag.styleTag : null, _this.forceServer, insertBefore);\n };\n\n sheetRunningId += 1;\n this.id = sheetRunningId;\n this.forceServer = forceServer;\n this.target = forceServer ? null : target;\n this.tagMap = {};\n this.deferred = {};\n this.rehydratedNames = {};\n this.ignoreRehydratedNames = {};\n this.tags = [];\n this.capacity = 1;\n this.clones = [];\n }\n /* rehydrate all SSR'd style tags */\n\n\n StyleSheet.prototype.rehydrate = function rehydrate$$1() {\n if (!IS_BROWSER || this.forceServer) return this;\n var els = [];\n var extracted = [];\n var isStreamed = false;\n /* retrieve all of our SSR style elements from the DOM */\n\n var nodes = document.querySelectorAll('style[' + SC_ATTR + '][' + SC_VERSION_ATTR + '=\"' + \"4.4.1\" + '\"]');\n var nodesSize = nodes.length;\n /* abort rehydration if no previous style tags were found */\n\n if (!nodesSize) return this;\n\n for (var i = 0; i < nodesSize; i += 1) {\n var el = nodes[i];\n /* check if style tag is a streamed tag */\n\n if (!isStreamed) isStreamed = !!el.getAttribute(SC_STREAM_ATTR);\n /* retrieve all component names */\n\n var elNames = (el.getAttribute(SC_ATTR) || '').trim().split(SPLIT_REGEX);\n var elNamesSize = elNames.length;\n\n for (var j = 0, name; j < elNamesSize; j += 1) {\n name = elNames[j];\n /* add rehydrated name to sheet to avoid re-adding styles */\n\n this.rehydratedNames[name] = true;\n }\n /* extract all components and their CSS */\n\n\n extracted.push.apply(extracted, extractComps(el.textContent));\n /* store original HTMLStyleElement */\n\n els.push(el);\n }\n /* abort rehydration if nothing was extracted */\n\n\n var extractedSize = extracted.length;\n if (!extractedSize) return this;\n /* create a tag to be used for rehydration */\n\n var tag = this.makeTag(null);\n rehydrate(tag, els, extracted);\n /* reset capacity and adjust MAX_SIZE by the initial size of the rehydration */\n\n this.capacity = Math.max(1, MAX_SIZE - extractedSize);\n this.tags.push(tag);\n /* retrieve all component ids */\n\n for (var _j = 0; _j < extractedSize; _j += 1) {\n this.tagMap[extracted[_j].componentId] = tag;\n }\n\n return this;\n };\n /* retrieve a \"master\" instance of StyleSheet which is typically used when no other is available\n * The master StyleSheet is targeted by createGlobalStyle, keyframes, and components outside of any\n * StyleSheetManager's context */\n\n /* reset the internal \"master\" instance */\n\n\n StyleSheet.reset = function reset() {\n var forceServer = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n master = new StyleSheet(undefined, forceServer).rehydrate();\n };\n /* adds \"children\" to the StyleSheet that inherit all of the parents' rules\n * while their own rules do not affect the parent */\n\n\n StyleSheet.prototype.clone = function clone() {\n var sheet = new StyleSheet(this.target, this.forceServer);\n /* add to clone array */\n\n this.clones.push(sheet);\n /* clone all tags */\n\n sheet.tags = this.tags.map(function (tag) {\n var ids = tag.getIds();\n var newTag = tag.clone();\n /* reconstruct tagMap */\n\n for (var i = 0; i < ids.length; i += 1) {\n sheet.tagMap[ids[i]] = newTag;\n }\n\n return newTag;\n });\n /* clone other maps */\n\n sheet.rehydratedNames = _extends({}, this.rehydratedNames);\n sheet.deferred = _extends({}, this.deferred);\n return sheet;\n };\n /* force StyleSheet to create a new tag on the next injection */\n\n\n StyleSheet.prototype.sealAllTags = function sealAllTags() {\n this.capacity = 1;\n this.tags.forEach(function (tag) {\n // eslint-disable-next-line no-param-reassign\n tag.sealed = true;\n });\n };\n\n StyleSheet.prototype.makeTag = function makeTag$$1(tag) {\n var lastEl = tag ? tag.styleTag : null;\n var insertBefore = false;\n return makeTag(this.target, lastEl, this.forceServer, insertBefore, this.getImportRuleTag);\n };\n /* get a tag for a given componentId, assign the componentId to one, or shard */\n\n\n StyleSheet.prototype.getTagForId = function getTagForId(id) {\n /* simply return a tag, when the componentId was already assigned one */\n var prev = this.tagMap[id];\n\n if (prev !== undefined && !prev.sealed) {\n return prev;\n }\n\n var tag = this.tags[this.tags.length - 1];\n /* shard (create a new tag) if the tag is exhausted (See MAX_SIZE) */\n\n this.capacity -= 1;\n\n if (this.capacity === 0) {\n this.capacity = MAX_SIZE;\n tag = this.makeTag(tag);\n this.tags.push(tag);\n }\n\n return this.tagMap[id] = tag;\n };\n /* mainly for createGlobalStyle to check for its id */\n\n\n StyleSheet.prototype.hasId = function hasId(id) {\n return this.tagMap[id] !== undefined;\n };\n /* caching layer checking id+name to already have a corresponding tag and injected rules */\n\n\n StyleSheet.prototype.hasNameForId = function hasNameForId(id, name) {\n /* exception for rehydrated names which are checked separately */\n if (this.ignoreRehydratedNames[id] === undefined && this.rehydratedNames[name]) {\n return true;\n }\n\n var tag = this.tagMap[id];\n return tag !== undefined && tag.hasNameForId(id, name);\n };\n /* registers a componentId and registers it on its tag */\n\n\n StyleSheet.prototype.deferredInject = function deferredInject(id, cssRules) {\n /* don't inject when the id is already registered */\n if (this.tagMap[id] !== undefined) return;\n var clones = this.clones;\n\n for (var i = 0; i < clones.length; i += 1) {\n clones[i].deferredInject(id, cssRules);\n }\n\n this.getTagForId(id).insertMarker(id);\n this.deferred[id] = cssRules;\n };\n /* injects rules for a given id with a name that will need to be cached */\n\n\n StyleSheet.prototype.inject = function inject(id, cssRules, name) {\n var clones = this.clones;\n\n for (var i = 0; i < clones.length; i += 1) {\n clones[i].inject(id, cssRules, name);\n }\n\n var tag = this.getTagForId(id);\n /* add deferred rules for component */\n\n if (this.deferred[id] !== undefined) {\n // Combine passed cssRules with previously deferred CSS rules\n // NOTE: We cannot mutate the deferred array itself as all clones\n // do the same (see clones[i].inject)\n var rules = this.deferred[id].concat(cssRules);\n tag.insertRules(id, rules, name);\n this.deferred[id] = undefined;\n } else {\n tag.insertRules(id, cssRules, name);\n }\n };\n /* removes all rules for a given id, which doesn't remove its marker but resets it */\n\n\n StyleSheet.prototype.remove = function remove(id) {\n var tag = this.tagMap[id];\n if (tag === undefined) return;\n var clones = this.clones;\n\n for (var i = 0; i < clones.length; i += 1) {\n clones[i].remove(id);\n }\n /* remove all rules from the tag */\n\n\n tag.removeRules(id);\n /* ignore possible rehydrated names */\n\n this.ignoreRehydratedNames[id] = true;\n /* delete possible deferred rules */\n\n this.deferred[id] = undefined;\n };\n\n StyleSheet.prototype.toHTML = function toHTML() {\n return this.tags.map(function (tag) {\n return tag.toHTML();\n }).join('');\n };\n\n StyleSheet.prototype.toReactElements = function toReactElements() {\n var id = this.id;\n return this.tags.map(function (tag, i) {\n var key = 'sc-' + id + '-' + i;\n return cloneElement(tag.toElement(), {\n key: key\n });\n });\n };\n\n createClass(StyleSheet, null, [{\n key: 'master',\n get: function get$$1() {\n return master || (master = new StyleSheet().rehydrate());\n }\n /* NOTE: This is just for backwards-compatibility with jest-styled-components */\n\n }, {\n key: 'instance',\n get: function get$$1() {\n return StyleSheet.master;\n }\n }]);\n return StyleSheet;\n}(); // \n\n\nvar Keyframes = function () {\n function Keyframes(name, rules) {\n var _this = this;\n\n classCallCheck(this, Keyframes);\n\n this.inject = function (styleSheet) {\n if (!styleSheet.hasNameForId(_this.id, _this.name)) {\n styleSheet.inject(_this.id, _this.rules, _this.name);\n }\n };\n\n this.toString = function () {\n throw new StyledComponentsError(12, String(_this.name));\n };\n\n this.name = name;\n this.rules = rules;\n this.id = 'sc-keyframes-' + name;\n }\n\n Keyframes.prototype.getName = function getName() {\n return this.name;\n };\n\n return Keyframes;\n}(); // \n\n/**\n * inlined version of\n * https://github.com/facebook/fbjs/blob/master/packages/fbjs/src/core/hyphenateStyleName.js\n */\n\n\nvar uppercasePattern = /([A-Z])/g;\nvar msPattern = /^ms-/;\n/**\n * Hyphenates a camelcased CSS property name, for example:\n *\n * > hyphenateStyleName('backgroundColor')\n * < \"background-color\"\n * > hyphenateStyleName('MozTransition')\n * < \"-moz-transition\"\n * > hyphenateStyleName('msTransition')\n * < \"-ms-transition\"\n *\n * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix\n * is converted to `-ms-`.\n *\n * @param {string} string\n * @return {string}\n */\n\nfunction hyphenateStyleName(string) {\n return string.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-');\n} // \n// Taken from https://github.com/facebook/react/blob/b87aabdfe1b7461e7331abb3601d9e6bb27544bc/packages/react-dom/src/shared/dangerousStyleValue.js\n\n\nfunction addUnitIfNeeded(name, value) {\n // https://github.com/amilajack/eslint-plugin-flowtype-errors/issues/133\n // $FlowFixMe\n if (value == null || typeof value === 'boolean' || value === '') {\n return '';\n }\n\n if (typeof value === 'number' && value !== 0 && !(name in unitless)) {\n return value + 'px'; // Presumes implicit 'px' suffix for unitless numbers\n }\n\n return String(value).trim();\n} // \n\n/**\n * It's falsish not falsy because 0 is allowed.\n */\n\n\nvar isFalsish = function isFalsish(chunk) {\n return chunk === undefined || chunk === null || chunk === false || chunk === '';\n};\n\nvar objToCssArray = function objToCssArray(obj, prevKey) {\n var rules = [];\n var keys = Object.keys(obj);\n keys.forEach(function (key) {\n if (!isFalsish(obj[key])) {\n if (isPlainObject(obj[key])) {\n rules.push.apply(rules, objToCssArray(obj[key], key));\n return rules;\n } else if (isFunction(obj[key])) {\n rules.push(hyphenateStyleName(key) + ':', obj[key], ';');\n return rules;\n }\n\n rules.push(hyphenateStyleName(key) + ': ' + addUnitIfNeeded(key, obj[key]) + ';');\n }\n\n return rules;\n });\n return prevKey ? [prevKey + ' {'].concat(rules, ['}']) : rules;\n};\n\nfunction flatten(chunk, executionContext, styleSheet) {\n if (Array.isArray(chunk)) {\n var ruleSet = [];\n\n for (var i = 0, len = chunk.length, result; i < len; i += 1) {\n result = flatten(chunk[i], executionContext, styleSheet);\n if (result === null) continue;else if (Array.isArray(result)) ruleSet.push.apply(ruleSet, result);else ruleSet.push(result);\n }\n\n return ruleSet;\n }\n\n if (isFalsish(chunk)) {\n return null;\n }\n /* Handle other components */\n\n\n if (isStyledComponent(chunk)) {\n return '.' + chunk.styledComponentId;\n }\n /* Either execute or defer the function */\n\n\n if (isFunction(chunk)) {\n if (isStatelessFunction(chunk) && executionContext) {\n var _result = chunk(executionContext);\n\n if (process.env.NODE_ENV !== 'production' && isElement(_result)) {\n // eslint-disable-next-line no-console\n console.warn(getComponentName(chunk) + ' is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.');\n }\n\n return flatten(_result, executionContext, styleSheet);\n } else return chunk;\n }\n\n if (chunk instanceof Keyframes) {\n if (styleSheet) {\n chunk.inject(styleSheet);\n return chunk.getName();\n } else return chunk;\n }\n /* Handle objects */\n\n\n return isPlainObject(chunk) ? objToCssArray(chunk) : chunk.toString();\n} // \n\n\nfunction css(styles) {\n for (var _len = arguments.length, interpolations = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n interpolations[_key - 1] = arguments[_key];\n }\n\n if (isFunction(styles) || isPlainObject(styles)) {\n // $FlowFixMe\n return flatten(interleave(EMPTY_ARRAY, [styles].concat(interpolations)));\n } // $FlowFixMe\n\n\n return flatten(interleave(styles, interpolations));\n} // \n\n\nfunction constructWithOptions(componentConstructor, tag) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : EMPTY_OBJECT;\n\n if (!isValidElementType(tag)) {\n throw new StyledComponentsError(1, String(tag));\n }\n /* This is callable directly as a template function */\n // $FlowFixMe: Not typed to avoid destructuring arguments\n\n\n var templateFunction = function templateFunction() {\n return componentConstructor(tag, options, css.apply(undefined, arguments));\n };\n /* If config methods are called, wrap up a new template function and merge options */\n\n\n templateFunction.withConfig = function (config) {\n return constructWithOptions(componentConstructor, tag, _extends({}, options, config));\n };\n /* Modify/inject new props at runtime */\n\n\n templateFunction.attrs = function (attrs) {\n return constructWithOptions(componentConstructor, tag, _extends({}, options, {\n attrs: Array.prototype.concat(options.attrs, attrs).filter(Boolean)\n }));\n };\n\n return templateFunction;\n} // \n// Source: https://github.com/garycourt/murmurhash-js/blob/master/murmurhash2_gc.js\n\n\nfunction murmurhash(c) {\n for (var e = c.length | 0, a = e | 0, d = 0, b; e >= 4;) {\n b = c.charCodeAt(d) & 255 | (c.charCodeAt(++d) & 255) << 8 | (c.charCodeAt(++d) & 255) << 16 | (c.charCodeAt(++d) & 255) << 24, b = 1540483477 * (b & 65535) + ((1540483477 * (b >>> 16) & 65535) << 16), b ^= b >>> 24, b = 1540483477 * (b & 65535) + ((1540483477 * (b >>> 16) & 65535) << 16), a = 1540483477 * (a & 65535) + ((1540483477 * (a >>> 16) & 65535) << 16) ^ b, e -= 4, ++d;\n }\n\n switch (e) {\n case 3:\n a ^= (c.charCodeAt(d + 2) & 255) << 16;\n\n case 2:\n a ^= (c.charCodeAt(d + 1) & 255) << 8;\n\n case 1:\n a ^= c.charCodeAt(d) & 255, a = 1540483477 * (a & 65535) + ((1540483477 * (a >>> 16) & 65535) << 16);\n }\n\n a ^= a >>> 13;\n a = 1540483477 * (a & 65535) + ((1540483477 * (a >>> 16) & 65535) << 16);\n return (a ^ a >>> 15) >>> 0;\n} // \n\n/* eslint-disable no-bitwise */\n\n/* This is the \"capacity\" of our alphabet i.e. 2x26 for all letters plus their capitalised\n * counterparts */\n\n\nvar charsLength = 52;\n/* start at 75 for 'a' until 'z' (25) and then start at 65 for capitalised letters */\n\nvar getAlphabeticChar = function getAlphabeticChar(code) {\n return String.fromCharCode(code + (code > 25 ? 39 : 97));\n};\n/* input a number, usually a hash and convert it to base-52 */\n\n\nfunction generateAlphabeticName(code) {\n var name = '';\n var x = void 0;\n /* get a char and divide by alphabet-length */\n\n for (x = code; x > charsLength; x = Math.floor(x / charsLength)) {\n name = getAlphabeticChar(x % charsLength) + name;\n }\n\n return getAlphabeticChar(x % charsLength) + name;\n} // \n\n\nfunction hasFunctionObjectKey(obj) {\n // eslint-disable-next-line guard-for-in, no-restricted-syntax\n for (var key in obj) {\n if (isFunction(obj[key])) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction isStaticRules(rules, attrs) {\n for (var i = 0; i < rules.length; i += 1) {\n var rule = rules[i]; // recursive case\n\n if (Array.isArray(rule) && !isStaticRules(rule, attrs)) {\n return false;\n } else if (isFunction(rule) && !isStyledComponent(rule)) {\n // functions are allowed to be static if they're just being\n // used to get the classname of a nested styled component\n return false;\n }\n }\n\n if (attrs.some(function (x) {\n return isFunction(x) || hasFunctionObjectKey(x);\n })) return false;\n return true;\n} // \n\n/* combines hashStr (murmurhash) and nameGenerator for convenience */\n\n\nvar hasher = function hasher(str) {\n return generateAlphabeticName(murmurhash(str));\n};\n/*\n ComponentStyle is all the CSS-specific stuff, not\n the React-specific stuff.\n */\n\n\nvar ComponentStyle = function () {\n function ComponentStyle(rules, attrs, componentId) {\n classCallCheck(this, ComponentStyle);\n this.rules = rules;\n this.isStatic = process.env.NODE_ENV === 'production' && isStaticRules(rules, attrs);\n this.componentId = componentId;\n\n if (!StyleSheet.master.hasId(componentId)) {\n StyleSheet.master.deferredInject(componentId, []);\n }\n }\n /*\n * Flattens a rule set into valid CSS\n * Hashes it, wraps the whole chunk in a .hash1234 {}\n * Returns the hash to be injected on render()\n * */\n\n\n ComponentStyle.prototype.generateAndInjectStyles = function generateAndInjectStyles(executionContext, styleSheet) {\n var isStatic = this.isStatic,\n componentId = this.componentId,\n lastClassName = this.lastClassName;\n\n if (IS_BROWSER && isStatic && typeof lastClassName === 'string' && styleSheet.hasNameForId(componentId, lastClassName)) {\n return lastClassName;\n }\n\n var flatCSS = flatten(this.rules, executionContext, styleSheet);\n var name = hasher(this.componentId + flatCSS.join(''));\n\n if (!styleSheet.hasNameForId(componentId, name)) {\n styleSheet.inject(this.componentId, stringifyRules(flatCSS, '.' + name, undefined, componentId), name);\n }\n\n this.lastClassName = name;\n return name;\n };\n\n ComponentStyle.generateName = function generateName(str) {\n return hasher(str);\n };\n\n return ComponentStyle;\n}(); // \n\n\nvar LIMIT = 200;\n\nvar createWarnTooManyClasses = function createWarnTooManyClasses(displayName) {\n var generatedClasses = {};\n var warningSeen = false;\n return function (className) {\n if (!warningSeen) {\n generatedClasses[className] = true;\n\n if (Object.keys(generatedClasses).length >= LIMIT) {\n // Unable to find latestRule in test environment.\n\n /* eslint-disable no-console, prefer-template */\n console.warn('Over ' + LIMIT + ' classes were generated for component ' + displayName + '. \\n' + 'Consider using the attrs method, together with a style object for frequently changed styles.\\n' + 'Example:\\n' + ' const Component = styled.div.attrs(props => ({\\n' + ' style: {\\n' + ' background: props.background,\\n' + ' },\\n' + ' }))`width: 100%;`\\n\\n' + ' ');\n warningSeen = true;\n generatedClasses = {};\n }\n }\n };\n}; // \n\n\nvar determineTheme = function determineTheme(props, fallbackTheme) {\n var defaultProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : EMPTY_OBJECT; // Props should take precedence over ThemeProvider, which should take precedence over\n // defaultProps, but React automatically puts defaultProps on props.\n\n /* eslint-disable react/prop-types, flowtype-errors/show-errors */\n\n var isDefaultTheme = defaultProps ? props.theme === defaultProps.theme : false;\n var theme = props.theme && !isDefaultTheme ? props.theme : fallbackTheme || defaultProps.theme;\n /* eslint-enable */\n\n return theme;\n}; // \n\n\nvar escapeRegex = /[[\\].#*$><+~=|^:(),\"'`-]+/g;\nvar dashesAtEnds = /(^-|-$)/g;\n/**\n * TODO: Explore using CSS.escape when it becomes more available\n * in evergreen browsers.\n */\n\nfunction escape(str) {\n return str // Replace all possible CSS selectors\n .replace(escapeRegex, '-') // Remove extraneous hyphens at the start and end\n .replace(dashesAtEnds, '');\n} // \n\n\nfunction isTag(target) {\n return typeof target === 'string' && (process.env.NODE_ENV !== 'production' ? target.charAt(0) === target.charAt(0).toLowerCase() : true);\n} // \n\n\nfunction generateDisplayName(target) {\n // $FlowFixMe\n return isTag(target) ? 'styled.' + target : 'Styled(' + getComponentName(target) + ')';\n}\n\nvar _TYPE_STATICS;\n\nvar REACT_STATICS = {\n childContextTypes: true,\n contextTypes: true,\n defaultProps: true,\n displayName: true,\n getDerivedStateFromProps: true,\n propTypes: true,\n type: true\n};\nvar KNOWN_STATICS = {\n name: true,\n length: true,\n prototype: true,\n caller: true,\n callee: true,\n arguments: true,\n arity: true\n};\nvar TYPE_STATICS = (_TYPE_STATICS = {}, _TYPE_STATICS[ForwardRef] = {\n $$typeof: true,\n render: true\n}, _TYPE_STATICS);\nvar defineProperty$1 = Object.defineProperty,\n getOwnPropertyNames = Object.getOwnPropertyNames,\n _Object$getOwnPropert = Object.getOwnPropertySymbols,\n getOwnPropertySymbols = _Object$getOwnPropert === undefined ? function () {\n return [];\n} : _Object$getOwnPropert,\n getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor,\n getPrototypeOf = Object.getPrototypeOf,\n objectPrototype = Object.prototype;\nvar arrayPrototype = Array.prototype;\n\nfunction hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {\n if (typeof sourceComponent !== 'string') {\n // don't hoist over string (html) components\n var inheritedComponent = getPrototypeOf(sourceComponent);\n\n if (inheritedComponent && inheritedComponent !== objectPrototype) {\n hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);\n }\n\n var keys = arrayPrototype.concat(getOwnPropertyNames(sourceComponent), // $FlowFixMe\n getOwnPropertySymbols(sourceComponent));\n var targetStatics = TYPE_STATICS[targetComponent.$$typeof] || REACT_STATICS;\n var sourceStatics = TYPE_STATICS[sourceComponent.$$typeof] || REACT_STATICS;\n var i = keys.length;\n var descriptor = void 0;\n var key = void 0; // eslint-disable-next-line no-plusplus\n\n while (i--) {\n key = keys[i];\n\n if ( // $FlowFixMe\n !KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && // $FlowFixMe\n !(targetStatics && targetStatics[key])) {\n descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n\n if (descriptor) {\n try {\n // Avoid failures from read-only properties\n defineProperty$1(targetComponent, key, descriptor);\n } catch (e) {\n /* fail silently */\n }\n }\n }\n }\n\n return targetComponent;\n }\n\n return targetComponent;\n} // \n\n\nfunction isDerivedReactComponent(fn) {\n return !!(fn && fn.prototype && fn.prototype.isReactComponent);\n} // \n// Helper to call a given function, only once\n\n\nvar once = function once(cb) {\n var called = false;\n return function () {\n if (!called) {\n called = true;\n cb.apply(undefined, arguments);\n }\n };\n}; // \n\n\nvar ThemeContext = createContext();\nvar ThemeConsumer = ThemeContext.Consumer;\n/**\n * Provide a theme to an entire react component tree via context\n */\n\nvar ThemeProvider = function (_Component) {\n inherits(ThemeProvider, _Component);\n\n function ThemeProvider(props) {\n classCallCheck(this, ThemeProvider);\n\n var _this = possibleConstructorReturn(this, _Component.call(this, props));\n\n _this.getContext = memoize(_this.getContext.bind(_this));\n _this.renderInner = _this.renderInner.bind(_this);\n return _this;\n }\n\n ThemeProvider.prototype.render = function render() {\n if (!this.props.children) return null;\n return React.createElement(ThemeContext.Consumer, null, this.renderInner);\n };\n\n ThemeProvider.prototype.renderInner = function renderInner(outerTheme) {\n var context = this.getContext(this.props.theme, outerTheme);\n return React.createElement(ThemeContext.Provider, {\n value: context\n }, this.props.children);\n };\n /**\n * Get the theme from the props, supporting both (outerTheme) => {}\n * as well as object notation\n */\n\n\n ThemeProvider.prototype.getTheme = function getTheme(theme, outerTheme) {\n if (isFunction(theme)) {\n var mergedTheme = theme(outerTheme);\n\n if (process.env.NODE_ENV !== 'production' && (mergedTheme === null || Array.isArray(mergedTheme) || (typeof mergedTheme === 'undefined' ? 'undefined' : _typeof(mergedTheme)) !== 'object')) {\n throw new StyledComponentsError(7);\n }\n\n return mergedTheme;\n }\n\n if (theme === null || Array.isArray(theme) || (typeof theme === 'undefined' ? 'undefined' : _typeof(theme)) !== 'object') {\n throw new StyledComponentsError(8);\n }\n\n return _extends({}, outerTheme, theme);\n };\n\n ThemeProvider.prototype.getContext = function getContext(theme, outerTheme) {\n return this.getTheme(theme, outerTheme);\n };\n\n return ThemeProvider;\n}(Component); // \n\n\nvar CLOSING_TAG_R = /^\\s*<\\/[a-z]/i;\n\nvar ServerStyleSheet = function () {\n function ServerStyleSheet() {\n classCallCheck(this, ServerStyleSheet);\n /* The master sheet might be reset, so keep a reference here */\n\n this.masterSheet = StyleSheet.master;\n this.instance = this.masterSheet.clone();\n this.sealed = false;\n }\n /**\n * Mark the ServerStyleSheet as being fully emitted and manually GC it from the\n * StyleSheet singleton.\n */\n\n\n ServerStyleSheet.prototype.seal = function seal() {\n if (!this.sealed) {\n /* Remove sealed StyleSheets from the master sheet */\n var index = this.masterSheet.clones.indexOf(this.instance);\n this.masterSheet.clones.splice(index, 1);\n this.sealed = true;\n }\n };\n\n ServerStyleSheet.prototype.collectStyles = function collectStyles(children) {\n if (this.sealed) {\n throw new StyledComponentsError(2);\n }\n\n return React.createElement(StyleSheetManager, {\n sheet: this.instance\n }, children);\n };\n\n ServerStyleSheet.prototype.getStyleTags = function getStyleTags() {\n this.seal();\n return this.instance.toHTML();\n };\n\n ServerStyleSheet.prototype.getStyleElement = function getStyleElement() {\n this.seal();\n return this.instance.toReactElements();\n };\n\n ServerStyleSheet.prototype.interleaveWithNodeStream = function interleaveWithNodeStream(readableStream) {\n var _this = this;\n\n {\n throw new StyledComponentsError(3);\n }\n /* the tag index keeps track of which tags have already been emitted */\n\n var instance = this.instance;\n var instanceTagIndex = 0;\n var streamAttr = SC_STREAM_ATTR + '=\"true\"';\n var transformer = new stream.Transform({\n transform: function appendStyleChunks(chunk,\n /* encoding */\n _, callback) {\n var tags = instance.tags;\n var html = '';\n /* retrieve html for each new style tag */\n\n for (; instanceTagIndex < tags.length; instanceTagIndex += 1) {\n var tag = tags[instanceTagIndex];\n html += tag.toHTML(streamAttr);\n }\n /* force our StyleSheets to emit entirely new tags */\n\n\n instance.sealAllTags();\n var renderedHtml = chunk.toString();\n /* prepend style html to chunk, unless the start of the chunk is a closing tag in which case append right after that */\n\n if (CLOSING_TAG_R.test(renderedHtml)) {\n var endOfClosingTag = renderedHtml.indexOf('>');\n this.push(renderedHtml.slice(0, endOfClosingTag + 1) + html + renderedHtml.slice(endOfClosingTag + 1));\n } else this.push(html + renderedHtml);\n\n callback();\n }\n });\n readableStream.on('end', function () {\n return _this.seal();\n });\n readableStream.on('error', function (err) {\n _this.seal(); // forward the error to the transform stream\n\n\n transformer.emit('error', err);\n });\n return readableStream.pipe(transformer);\n };\n\n return ServerStyleSheet;\n}(); // \n\n\nvar StyleSheetContext = createContext();\nvar StyleSheetConsumer = StyleSheetContext.Consumer;\n\nvar StyleSheetManager = function (_Component) {\n inherits(StyleSheetManager, _Component);\n\n function StyleSheetManager(props) {\n classCallCheck(this, StyleSheetManager);\n\n var _this = possibleConstructorReturn(this, _Component.call(this, props));\n\n _this.getContext = memoize(_this.getContext);\n return _this;\n }\n\n StyleSheetManager.prototype.getContext = function getContext(sheet, target) {\n if (sheet) {\n return sheet;\n } else if (target) {\n return new StyleSheet(target);\n } else {\n throw new StyledComponentsError(4);\n }\n };\n\n StyleSheetManager.prototype.render = function render() {\n var _props = this.props,\n children = _props.children,\n sheet = _props.sheet,\n target = _props.target;\n return React.createElement(StyleSheetContext.Provider, {\n value: this.getContext(sheet, target)\n }, process.env.NODE_ENV !== 'production' ? React.Children.only(children) : children);\n };\n\n return StyleSheetManager;\n}(Component);\n\nprocess.env.NODE_ENV !== \"production\" ? StyleSheetManager.propTypes = {\n sheet: PropTypes.oneOfType([PropTypes.instanceOf(StyleSheet), PropTypes.instanceOf(ServerStyleSheet)]),\n target: PropTypes.shape({\n appendChild: PropTypes.func.isRequired\n })\n} : void 0; // \n\nvar identifiers = {};\n/* We depend on components having unique IDs */\n\nfunction generateId(_ComponentStyle, _displayName, parentComponentId) {\n var displayName = typeof _displayName !== 'string' ? 'sc' : escape(_displayName);\n /**\n * This ensures uniqueness if two components happen to share\n * the same displayName.\n */\n\n var nr = (identifiers[displayName] || 0) + 1;\n identifiers[displayName] = nr;\n\n var componentId = displayName + '-' + _ComponentStyle.generateName(displayName + nr);\n\n return parentComponentId ? parentComponentId + '-' + componentId : componentId;\n} // $FlowFixMe\n\n\nvar StyledComponent = function (_Component) {\n inherits(StyledComponent, _Component);\n\n function StyledComponent() {\n classCallCheck(this, StyledComponent);\n\n var _this = possibleConstructorReturn(this, _Component.call(this));\n\n _this.attrs = {};\n _this.renderOuter = _this.renderOuter.bind(_this);\n _this.renderInner = _this.renderInner.bind(_this);\n\n if (process.env.NODE_ENV !== 'production') {\n _this.warnInnerRef = once(function (displayName) {\n return (// eslint-disable-next-line no-console\n console.warn('The \"innerRef\" API has been removed in styled-components v4 in favor of React 16 ref forwarding, use \"ref\" instead like a typical component. \"innerRef\" was detected on component \"' + displayName + '\".')\n );\n });\n _this.warnAttrsFnObjectKeyDeprecated = once(function (key, displayName) {\n return (// eslint-disable-next-line no-console\n console.warn('Functions as object-form attrs({}) keys are now deprecated and will be removed in a future version of styled-components. Switch to the new attrs(props => ({})) syntax instead for easier and more powerful composition. The attrs key in question is \"' + key + '\" on component \"' + displayName + '\".', '\\n ' + new Error().stack)\n );\n });\n _this.warnNonStyledComponentAttrsObjectKey = once(function (key, displayName) {\n return (// eslint-disable-next-line no-console\n console.warn('It looks like you\\'ve used a non styled-component as the value for the \"' + key + '\" prop in an object-form attrs constructor of \"' + displayName + '\".\\n' + 'You should use the new function-form attrs constructor which avoids this issue: attrs(props => ({ yourStuff }))\\n' + \"To continue using the deprecated object syntax, you'll need to wrap your component prop in a function to make it available inside the styled component (you'll still get the deprecation warning though.)\\n\" + ('For example, { ' + key + ': () => InnerComponent } instead of { ' + key + ': InnerComponent }'))\n );\n });\n }\n\n return _this;\n }\n\n StyledComponent.prototype.render = function render() {\n return React.createElement(StyleSheetConsumer, null, this.renderOuter);\n };\n\n StyledComponent.prototype.renderOuter = function renderOuter() {\n var styleSheet = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : StyleSheet.master;\n this.styleSheet = styleSheet; // No need to subscribe a static component to theme changes, it won't change anything\n\n if (this.props.forwardedComponent.componentStyle.isStatic) return this.renderInner();\n return React.createElement(ThemeConsumer, null, this.renderInner);\n };\n\n StyledComponent.prototype.renderInner = function renderInner(theme) {\n var _props$forwardedCompo = this.props.forwardedComponent,\n componentStyle = _props$forwardedCompo.componentStyle,\n defaultProps = _props$forwardedCompo.defaultProps,\n displayName = _props$forwardedCompo.displayName,\n foldedComponentIds = _props$forwardedCompo.foldedComponentIds,\n styledComponentId = _props$forwardedCompo.styledComponentId,\n target = _props$forwardedCompo.target;\n var generatedClassName = void 0;\n\n if (componentStyle.isStatic) {\n generatedClassName = this.generateAndInjectStyles(EMPTY_OBJECT, this.props);\n } else {\n generatedClassName = this.generateAndInjectStyles(determineTheme(this.props, theme, defaultProps) || EMPTY_OBJECT, this.props);\n }\n\n var elementToBeCreated = this.props.as || this.attrs.as || target;\n var isTargetTag = isTag(elementToBeCreated);\n var propsForElement = {};\n\n var computedProps = _extends({}, this.props, this.attrs);\n\n var key = void 0; // eslint-disable-next-line guard-for-in\n\n for (key in computedProps) {\n if (process.env.NODE_ENV !== 'production' && key === 'innerRef' && isTargetTag) {\n this.warnInnerRef(displayName);\n }\n\n if (key === 'forwardedComponent' || key === 'as') {\n continue;\n } else if (key === 'forwardedRef') propsForElement.ref = computedProps[key];else if (key === 'forwardedAs') propsForElement.as = computedProps[key];else if (!isTargetTag || validAttr(key)) {\n // Don't pass through non HTML tags through to HTML elements\n propsForElement[key] = computedProps[key];\n }\n }\n\n if (this.props.style && this.attrs.style) {\n propsForElement.style = _extends({}, this.attrs.style, this.props.style);\n }\n\n propsForElement.className = Array.prototype.concat(foldedComponentIds, styledComponentId, generatedClassName !== styledComponentId ? generatedClassName : null, this.props.className, this.attrs.className).filter(Boolean).join(' ');\n return createElement(elementToBeCreated, propsForElement);\n };\n\n StyledComponent.prototype.buildExecutionContext = function buildExecutionContext(theme, props, attrs) {\n var _this2 = this;\n\n var context = _extends({}, props, {\n theme: theme\n });\n\n if (!attrs.length) return context;\n this.attrs = {};\n attrs.forEach(function (attrDef) {\n var resolvedAttrDef = attrDef;\n var attrDefWasFn = false;\n var attr = void 0;\n var key = void 0;\n\n if (isFunction(resolvedAttrDef)) {\n // $FlowFixMe\n resolvedAttrDef = resolvedAttrDef(context);\n attrDefWasFn = true;\n }\n /* eslint-disable guard-for-in */\n // $FlowFixMe\n\n\n for (key in resolvedAttrDef) {\n attr = resolvedAttrDef[key];\n\n if (!attrDefWasFn) {\n if (isFunction(attr) && !isDerivedReactComponent(attr) && !isStyledComponent(attr)) {\n if (process.env.NODE_ENV !== 'production') {\n _this2.warnAttrsFnObjectKeyDeprecated(key, props.forwardedComponent.displayName);\n }\n\n attr = attr(context);\n\n if (process.env.NODE_ENV !== 'production' && React.isValidElement(attr)) {\n _this2.warnNonStyledComponentAttrsObjectKey(key, props.forwardedComponent.displayName);\n }\n }\n }\n\n _this2.attrs[key] = attr;\n context[key] = attr;\n }\n /* eslint-enable */\n\n });\n return context;\n };\n\n StyledComponent.prototype.generateAndInjectStyles = function generateAndInjectStyles(theme, props) {\n var _props$forwardedCompo2 = props.forwardedComponent,\n attrs = _props$forwardedCompo2.attrs,\n componentStyle = _props$forwardedCompo2.componentStyle,\n warnTooManyClasses = _props$forwardedCompo2.warnTooManyClasses; // statically styled-components don't need to build an execution context object,\n // and shouldn't be increasing the number of class names\n\n if (componentStyle.isStatic && !attrs.length) {\n return componentStyle.generateAndInjectStyles(EMPTY_OBJECT, this.styleSheet);\n }\n\n var className = componentStyle.generateAndInjectStyles(this.buildExecutionContext(theme, props, attrs), this.styleSheet);\n if (process.env.NODE_ENV !== 'production' && warnTooManyClasses) warnTooManyClasses(className);\n return className;\n };\n\n return StyledComponent;\n}(Component);\n\nfunction createStyledComponent(target, options, rules) {\n var isTargetStyledComp = isStyledComponent(target);\n var isClass = !isTag(target);\n var _options$displayName = options.displayName,\n displayName = _options$displayName === undefined ? generateDisplayName(target) : _options$displayName,\n _options$componentId = options.componentId,\n componentId = _options$componentId === undefined ? generateId(ComponentStyle, options.displayName, options.parentComponentId) : _options$componentId,\n _options$ParentCompon = options.ParentComponent,\n ParentComponent = _options$ParentCompon === undefined ? StyledComponent : _options$ParentCompon,\n _options$attrs = options.attrs,\n attrs = _options$attrs === undefined ? EMPTY_ARRAY : _options$attrs;\n var styledComponentId = options.displayName && options.componentId ? escape(options.displayName) + '-' + options.componentId : options.componentId || componentId; // fold the underlying StyledComponent attrs up (implicit extend)\n\n var finalAttrs = // $FlowFixMe\n isTargetStyledComp && target.attrs ? Array.prototype.concat(target.attrs, attrs).filter(Boolean) : attrs;\n var componentStyle = new ComponentStyle(isTargetStyledComp ? // fold the underlying StyledComponent rules up (implicit extend)\n // $FlowFixMe\n target.componentStyle.rules.concat(rules) : rules, finalAttrs, styledComponentId);\n /**\n * forwardRef creates a new interim component, which we'll take advantage of\n * instead of extending ParentComponent to create _another_ interim class\n */\n\n var WrappedStyledComponent = void 0;\n\n var forwardRef = function forwardRef(props, ref) {\n return React.createElement(ParentComponent, _extends({}, props, {\n forwardedComponent: WrappedStyledComponent,\n forwardedRef: ref\n }));\n };\n\n forwardRef.displayName = displayName;\n WrappedStyledComponent = React.forwardRef(forwardRef);\n WrappedStyledComponent.displayName = displayName; // $FlowFixMe\n\n WrappedStyledComponent.attrs = finalAttrs; // $FlowFixMe\n\n WrappedStyledComponent.componentStyle = componentStyle; // $FlowFixMe\n\n WrappedStyledComponent.foldedComponentIds = isTargetStyledComp ? // $FlowFixMe\n Array.prototype.concat(target.foldedComponentIds, target.styledComponentId) : EMPTY_ARRAY; // $FlowFixMe\n\n WrappedStyledComponent.styledComponentId = styledComponentId; // fold the underlying StyledComponent target up since we folded the styles\n // $FlowFixMe\n\n WrappedStyledComponent.target = isTargetStyledComp ? target.target : target; // $FlowFixMe\n\n WrappedStyledComponent.withComponent = function withComponent(tag) {\n var previousComponentId = options.componentId,\n optionsToCopy = objectWithoutProperties(options, ['componentId']);\n var newComponentId = previousComponentId && previousComponentId + '-' + (isTag(tag) ? tag : escape(getComponentName(tag)));\n\n var newOptions = _extends({}, optionsToCopy, {\n attrs: finalAttrs,\n componentId: newComponentId,\n ParentComponent: ParentComponent\n });\n\n return createStyledComponent(tag, newOptions, rules);\n }; // $FlowFixMe\n\n\n Object.defineProperty(WrappedStyledComponent, 'defaultProps', {\n get: function get$$1() {\n return this._foldedDefaultProps;\n },\n set: function set$$1(obj) {\n // $FlowFixMe\n this._foldedDefaultProps = isTargetStyledComp ? merge(target.defaultProps, obj) : obj;\n }\n });\n\n if (process.env.NODE_ENV !== 'production') {\n // $FlowFixMe\n WrappedStyledComponent.warnTooManyClasses = createWarnTooManyClasses(displayName);\n } // $FlowFixMe\n\n\n WrappedStyledComponent.toString = function () {\n return '.' + WrappedStyledComponent.styledComponentId;\n };\n\n if (isClass) {\n hoistNonReactStatics(WrappedStyledComponent, target, {\n // all SC-specific things should not be hoisted\n attrs: true,\n componentStyle: true,\n displayName: true,\n foldedComponentIds: true,\n styledComponentId: true,\n target: true,\n withComponent: true\n });\n }\n\n return WrappedStyledComponent;\n} // \n// Thanks to ReactDOMFactories for this handy list!\n\n\nvar domElements = ['a', 'abbr', 'address', 'area', 'article', 'aside', 'audio', 'b', 'base', 'bdi', 'bdo', 'big', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'cite', 'code', 'col', 'colgroup', 'data', 'datalist', 'dd', 'del', 'details', 'dfn', 'dialog', 'div', 'dl', 'dt', 'em', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'iframe', 'img', 'input', 'ins', 'kbd', 'keygen', 'label', 'legend', 'li', 'link', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meta', 'meter', 'nav', 'noscript', 'object', 'ol', 'optgroup', 'option', 'output', 'p', 'param', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'script', 'section', 'select', 'small', 'source', 'span', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'textarea', 'tfoot', 'th', 'thead', 'time', 'title', 'tr', 'track', 'u', 'ul', 'var', 'video', 'wbr', // SVG\n'circle', 'clipPath', 'defs', 'ellipse', 'foreignObject', 'g', 'image', 'line', 'linearGradient', 'marker', 'mask', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'stop', 'svg', 'text', 'tspan']; // \n\nvar styled = function styled(tag) {\n return constructWithOptions(createStyledComponent, tag);\n}; // Shorthands for all valid HTML Elements\n\n\ndomElements.forEach(function (domElement) {\n styled[domElement] = styled(domElement);\n}); // \n\nvar GlobalStyle = function () {\n function GlobalStyle(rules, componentId) {\n classCallCheck(this, GlobalStyle);\n this.rules = rules;\n this.componentId = componentId;\n this.isStatic = isStaticRules(rules, EMPTY_ARRAY);\n\n if (!StyleSheet.master.hasId(componentId)) {\n StyleSheet.master.deferredInject(componentId, []);\n }\n }\n\n GlobalStyle.prototype.createStyles = function createStyles(executionContext, styleSheet) {\n var flatCSS = flatten(this.rules, executionContext, styleSheet);\n var css = stringifyRules(flatCSS, '');\n styleSheet.inject(this.componentId, css);\n };\n\n GlobalStyle.prototype.removeStyles = function removeStyles(styleSheet) {\n var componentId = this.componentId;\n\n if (styleSheet.hasId(componentId)) {\n styleSheet.remove(componentId);\n }\n }; // TODO: overwrite in-place instead of remove+create?\n\n\n GlobalStyle.prototype.renderStyles = function renderStyles(executionContext, styleSheet) {\n this.removeStyles(styleSheet);\n this.createStyles(executionContext, styleSheet);\n };\n\n return GlobalStyle;\n}(); // \n// place our cache into shared context so it'll persist between HMRs\n\n\nif (IS_BROWSER) {\n window.scCGSHMRCache = {};\n}\n\nfunction createGlobalStyle(strings) {\n for (var _len = arguments.length, interpolations = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n interpolations[_key - 1] = arguments[_key];\n }\n\n var rules = css.apply(undefined, [strings].concat(interpolations));\n var id = 'sc-global-' + murmurhash(JSON.stringify(rules));\n var style = new GlobalStyle(rules, id);\n\n var GlobalStyleComponent = function (_React$Component) {\n inherits(GlobalStyleComponent, _React$Component);\n\n function GlobalStyleComponent(props) {\n classCallCheck(this, GlobalStyleComponent);\n\n var _this = possibleConstructorReturn(this, _React$Component.call(this, props));\n\n var _this$constructor = _this.constructor,\n globalStyle = _this$constructor.globalStyle,\n styledComponentId = _this$constructor.styledComponentId;\n\n if (IS_BROWSER) {\n window.scCGSHMRCache[styledComponentId] = (window.scCGSHMRCache[styledComponentId] || 0) + 1;\n }\n /**\n * This fixes HMR compatibility. Don't ask me why, but this combination of\n * caching the closure variables via statics and then persisting the statics in\n * state works across HMR where no other combination did. ¯\\_(ツ)_/¯\n */\n\n\n _this.state = {\n globalStyle: globalStyle,\n styledComponentId: styledComponentId\n };\n return _this;\n }\n\n GlobalStyleComponent.prototype.componentWillUnmount = function componentWillUnmount() {\n if (window.scCGSHMRCache[this.state.styledComponentId]) {\n window.scCGSHMRCache[this.state.styledComponentId] -= 1;\n }\n /**\n * Depending on the order \"render\" is called this can cause the styles to be lost\n * until the next render pass of the remaining instance, which may\n * not be immediate.\n */\n\n\n if (window.scCGSHMRCache[this.state.styledComponentId] === 0) {\n this.state.globalStyle.removeStyles(this.styleSheet);\n }\n };\n\n GlobalStyleComponent.prototype.render = function render() {\n var _this2 = this;\n\n if (process.env.NODE_ENV !== 'production' && React.Children.count(this.props.children)) {\n // eslint-disable-next-line no-console\n console.warn('The global style component ' + this.state.styledComponentId + ' was given child JSX. createGlobalStyle does not render children.');\n }\n\n return React.createElement(StyleSheetConsumer, null, function (styleSheet) {\n _this2.styleSheet = styleSheet || StyleSheet.master;\n var globalStyle = _this2.state.globalStyle;\n\n if (globalStyle.isStatic) {\n globalStyle.renderStyles(STATIC_EXECUTION_CONTEXT, _this2.styleSheet);\n return null;\n } else {\n return React.createElement(ThemeConsumer, null, function (theme) {\n // $FlowFixMe\n var defaultProps = _this2.constructor.defaultProps;\n\n var context = _extends({}, _this2.props);\n\n if (typeof theme !== 'undefined') {\n context.theme = determineTheme(_this2.props, theme, defaultProps);\n }\n\n globalStyle.renderStyles(context, _this2.styleSheet);\n return null;\n });\n }\n });\n };\n\n return GlobalStyleComponent;\n }(React.Component);\n\n GlobalStyleComponent.globalStyle = style;\n GlobalStyleComponent.styledComponentId = id;\n return GlobalStyleComponent;\n} // \n\n\nvar replaceWhitespace = function replaceWhitespace(str) {\n return str.replace(/\\s|\\\\n/g, '');\n};\n\nfunction keyframes(strings) {\n /* Warning if you've used keyframes on React Native */\n if (process.env.NODE_ENV !== 'production' && typeof navigator !== 'undefined' && navigator.product === 'ReactNative') {\n // eslint-disable-next-line no-console\n console.warn('`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.');\n }\n\n for (var _len = arguments.length, interpolations = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n interpolations[_key - 1] = arguments[_key];\n }\n\n var rules = css.apply(undefined, [strings].concat(interpolations));\n var name = generateAlphabeticName(murmurhash(replaceWhitespace(JSON.stringify(rules))));\n return new Keyframes(name, stringifyRules(rules, name, '@keyframes'));\n} // \n\n\nvar withTheme = function withTheme(Component$$1) {\n var WithTheme = React.forwardRef(function (props, ref) {\n return React.createElement(ThemeConsumer, null, function (theme) {\n // $FlowFixMe\n var defaultProps = Component$$1.defaultProps;\n var themeProp = determineTheme(props, theme, defaultProps);\n\n if (process.env.NODE_ENV !== 'production' && themeProp === undefined) {\n // eslint-disable-next-line no-console\n console.warn('[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class \"' + getComponentName(Component$$1) + '\"');\n }\n\n return React.createElement(Component$$1, _extends({}, props, {\n theme: themeProp,\n ref: ref\n }));\n });\n });\n hoistNonReactStatics(WithTheme, Component$$1);\n WithTheme.displayName = 'WithTheme(' + getComponentName(Component$$1) + ')';\n return WithTheme;\n}; // \n\n/* eslint-disable */\n\n\nvar __DO_NOT_USE_OR_YOU_WILL_BE_HAUNTED_BY_SPOOKY_GHOSTS = {\n StyleSheet: StyleSheet\n}; // \n\n/* Warning if you've imported this file on React Native */\n\nif (process.env.NODE_ENV !== 'production' && typeof navigator !== 'undefined' && navigator.product === 'ReactNative') {\n // eslint-disable-next-line no-console\n console.warn(\"It looks like you've imported 'styled-components' on React Native.\\n\" + \"Perhaps you're looking to import 'styled-components/native'?\\n\" + 'Read more about this at https://www.styled-components.com/docs/basics#react-native');\n}\n/* Warning if there are several instances of styled-components */\n\n\nif (process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'test' && typeof window !== 'undefined' && typeof navigator !== 'undefined' && typeof navigator.userAgent === 'string' && navigator.userAgent.indexOf('Node.js') === -1 && navigator.userAgent.indexOf('jsdom') === -1) {\n window['__styled-components-init__'] = window['__styled-components-init__'] || 0;\n\n if (window['__styled-components-init__'] === 1) {\n // eslint-disable-next-line no-console\n console.warn(\"It looks like there are several instances of 'styled-components' initialized in this application. \" + 'This may cause dynamic styles not rendering properly, errors happening during rehydration process ' + 'and makes your application bigger without a good reason.\\n\\n' + 'See https://s-c.sh/2BAXzed for more info.');\n }\n\n window['__styled-components-init__'] += 1;\n} //\n\n\nexport default styled;\nexport { createGlobalStyle, css, isStyledComponent, keyframes, ServerStyleSheet, StyleSheetConsumer, StyleSheetContext, StyleSheetManager, ThemeConsumer, ThemeContext, ThemeProvider, withTheme, __DO_NOT_USE_OR_YOU_WILL_BE_HAUNTED_BY_SPOOKY_GHOSTS };","map":null,"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/b5eb7c5f66eb9fefff7712d22fceebc4.json b/node_modules/.cache/babel-loader/f89073dc7afd7c62869318bb84679352.json similarity index 100% rename from node_modules/.cache/babel-loader/b5eb7c5f66eb9fefff7712d22fceebc4.json rename to node_modules/.cache/babel-loader/f89073dc7afd7c62869318bb84679352.json diff --git a/node_modules/.cache/babel-loader/73db0c19da4c7aac79041876c4117049.json b/node_modules/.cache/babel-loader/f8b2c61ff2c3584bfc91bfbe99625799.json similarity index 100% rename from node_modules/.cache/babel-loader/73db0c19da4c7aac79041876c4117049.json rename to node_modules/.cache/babel-loader/f8b2c61ff2c3584bfc91bfbe99625799.json diff --git a/node_modules/.cache/babel-loader/e464bbc63fb642ca35fa25eb89fe12e1.json b/node_modules/.cache/babel-loader/f8e5c62f60af99a5f44347fdacaca3d5.json similarity index 100% rename from node_modules/.cache/babel-loader/e464bbc63fb642ca35fa25eb89fe12e1.json rename to node_modules/.cache/babel-loader/f8e5c62f60af99a5f44347fdacaca3d5.json diff --git a/node_modules/.cache/babel-loader/d3ff739122466d7718420114d742c797.json b/node_modules/.cache/babel-loader/f9494db94d87595dc4d9b59a70a0a93f.json similarity index 100% rename from node_modules/.cache/babel-loader/d3ff739122466d7718420114d742c797.json rename to node_modules/.cache/babel-loader/f9494db94d87595dc4d9b59a70a0a93f.json diff --git a/node_modules/.cache/babel-loader/f98f0c46f1e28e5f93116fff8dff9774.json b/node_modules/.cache/babel-loader/f98f0c46f1e28e5f93116fff8dff9774.json deleted file mode 100644 index a765e428..00000000 --- a/node_modules/.cache/babel-loader/f98f0c46f1e28e5f93116fff8dff9774.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:4200\",\n target: \"top_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 13\n }\n }, \" Console \"), /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:8888\",\n target: \"bottom_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }\n }, \" Simulator \"), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"top_\",\n src: \"\",\n width: \"100%\",\n height: \"200px\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"bottom_\",\n src: \"\",\n width: \"100%\",\n height: \"512\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 15\n }\n }));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC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actstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport './Simulator.css';\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n Console \n Simulator \n \n \n \n \n \n \n \n \n \n \n \n \n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/f9c4f1476bf8dad7e782886ac12bface.json b/node_modules/.cache/babel-loader/f9c4f1476bf8dad7e782886ac12bface.json deleted file mode 100644 index 4ddead22..00000000 --- a/node_modules/.cache/babel-loader/f9c4f1476bf8dad7e782886ac12bface.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Simulator.js\";\nimport React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport Navigationbar from './Navigationbar';\n\nvar Simulator = /*#__PURE__*/function (_Component) {\n _inherits(Simulator, _Component);\n\n function Simulator() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Simulator);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Simulator)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n return _this;\n }\n\n _createClass(Simulator, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }\n }), /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:4200\",\n target: \"top_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 13\n }\n }, \" Console \"), /*#__PURE__*/React.createElement(\"a\", {\n href: \"http://localhost:8888\",\n target: \"bottom_\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 13\n }\n }, \" Simulator \"), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"top_\",\n src: \"\",\n width: \"100%\",\n height: \"375px\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(\"iframe\", {\n name: \"bottom_\",\n src: \"\",\n width: \"100%\",\n height: \"375px\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 15\n }\n }));\n }\n }]);\n\n return Simulator;\n}(Component);\n\nSimulator.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n};\nexport default Simulator;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Simulator.js"],"names":["React","Component","Button","ButtonGroup","Container","Table","Link","withRouter","withCookies","Cookies","instanceOf","Navigationbar","Simulator","state","isLoading","isAuthenticated","user","undefined","simulator","propTypes","cookies","isRequired"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,MAAT,EAAiBC,WAAjB,EAA8BC,SAA9B,EAAyCC,KAAzC,QAAsD,YAAtD;AACA,SAASC,IAAT,EAAeC,UAAf,QAAiC,kBAAjC;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,cAArC;AACA,SAASC,UAAT,QAA2B,YAA3B;AACA,OAAOC,aAAP,MAA0B,iBAA1B;;IAGMC,S;;;;;;;;;;;;;;;UAKAC,K,GAAQ;AACNC,MAAAA,SAAS,EAAE,IADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,SAAS,EAAED;AAJL,K;;;;;;6BAQR;AACE,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADF,eAEE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,MAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAFF,eAGE;AAAG,QAAA,IAAI,EAAC,uBAAR;AAAgC,QAAA,MAAM,EAAC,SAAvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAHF,eAKI;AAAQ,QAAA,IAAI,EAAC,MAAb;AAAoB,QAAA,GAAG,EAAC,EAAxB;AAA2B,QAAA,KAAK,EAAC,MAAjC;AAAyC,QAAA,MAAM,EAAC,OAAhD;AAAwD,QAAA,WAAW,EAAC,GAApE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALJ,eAMI;AAAQ,QAAA,IAAI,EAAC,SAAb;AAAuB,QAAA,GAAG,EAAC,EAA3B;AAA8B,QAAA,KAAK,EAAC,MAApC;AAA2C,QAAA,MAAM,EAAC,OAAlD;AAA0D,QAAA,WAAW,EAAC,GAAtE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANJ,CADF;AAUD;;;;EAxBiBhB,S;;AAAlBW,S,CACKO,S,GAAY;AACfC,EAAAA,OAAO,EAAEV,UAAU,CAACD,OAAD,CAAV,CAAoBY;AADd,C;AA0BvB,eAAeT,SAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Button, ButtonGroup, Container, Table } from 'reactstrap';\nimport { Link, withRouter } from 'react-router-dom';\nimport { withCookies, Cookies } from 'react-cookie';\nimport { instanceOf } from 'prop-types';\nimport Navigationbar from './Navigationbar';\n\n\nclass Simulator extends Component {\n static propTypes = {\n cookies: instanceOf(Cookies).isRequired\n };\n \n state = {\n isLoading: true,\n isAuthenticated: false,\n user: undefined,\n simulator: undefined\n };\n \n render() \n {\n return (\n
\n \n Console \n Simulator \n \n \n \n
\n );\n }\n\n}\nexport default Simulator;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/c5a8e48431b2a5d4636e6b0f77957393.json b/node_modules/.cache/babel-loader/fa3db94376cc02807e6af7c0f2fa6327.json similarity index 100% rename from node_modules/.cache/babel-loader/c5a8e48431b2a5d4636e6b0f77957393.json rename to node_modules/.cache/babel-loader/fa3db94376cc02807e6af7c0f2fa6327.json diff --git a/node_modules/.cache/babel-loader/d34f56b69c6b0f3a3bb2da6dd3dc3e43.json b/node_modules/.cache/babel-loader/fba574cbebf0d5a3c9d32db08f9e6148.json similarity index 100% rename from node_modules/.cache/babel-loader/d34f56b69c6b0f3a3bb2da6dd3dc3e43.json rename to node_modules/.cache/babel-loader/fba574cbebf0d5a3c9d32db08f9e6148.json diff --git a/node_modules/.cache/babel-loader/fc4ee7eb52080e758138f7393399af5d.json b/node_modules/.cache/babel-loader/fc4ee7eb52080e758138f7393399af5d.json deleted file mode 100644 index d443f796..00000000 --- a/node_modules/.cache/babel-loader/fc4ee7eb52080e758138f7393399af5d.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 249,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 36\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 275,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE;AAJF,KAOU;AAAA,QAETC,OAFS,GAEEP,KAFF,CAETO,OAFS;AAGhBC,IAAAA,OAAO,CAACC,GAAR,CAAYF,OAAZ;AACA,UAAKN,KAAL,CAAWS,SAAX,GAAuBH,OAAO,CAACI,GAAR,CAAY,YAAZ,CAAvB;AACAH,IAAAA,OAAO,CAACC,GAAR,CAAY,MAAKR,KAAL,CAAWS,SAAvB;AACA,UAAKE,KAAL,GAAa,gBAAb;AACA,UAAKC,IAAL,GAAY,qBAAZ;AACA,UAAKC,MAAL,GAAe,OAAf;;AACA,QAAI,MAAKA,MAAL,KAAgB,OAApB,EAA6B;AAC3B,YAAKC,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AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAL2B,eAS3B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAT2B,CAAjB;AAgBZ,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIkF,QADJ,CAFF;AAOH;;;;EAvQe7F,S;;AAyQlB,eAAeI,UAAU,CAACQ,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n \n const options = this.state.isAuthenticated ? \n \n
\n
    \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n \n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/fc57a595a80d46cb062c4b22a406dde8.json b/node_modules/.cache/babel-loader/fc57a595a80d46cb062c4b22a406dde8.json deleted file mode 100644 index 35378865..00000000 --- a/node_modules/.cache/babel-loader/fc57a595a80d46cb062c4b22a406dde8.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var authenticated = this.props.isLoggedIn;\n authenticated ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 41\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 52,\n columnNumber: 41\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 41\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 61,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 41\n }\n }, \"Logout\")))))))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 77,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 78,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 79,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 80,\n columnNumber: 11\n }\n }, \"Login\"))));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 88,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","authenticated","props","isLoggedIn","textDecoration","submit","login","mainBody"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,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;AAAED,UAAAA,cAAc,EAAE;AAAlB,SAAhB;AAA4C,QAAA,OAAO,EAAE,KAAKF,KAAL,CAAWI,KAAhE;AAAuE,QAAA,KAAK,EAAC,OAA7E;AAAqF,QAAA,EAAE,EAAC,EAAxF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBADA,CADF,CADA,CA/CP;AAyDD,0BACQ;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIC,QADJ,CADR;AAKC;;;;EAlE2BjB,S;;AAoE5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const authenticated = this.props.isLoggedIn;\n \n authenticated ? (\n \n \n \n \n \n \n \n )\n :\n (\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n )\nreturn (\n
\n {mainBody}\n
\n) \n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/fc5a245986a0949142bf2032c6962290.json b/node_modules/.cache/babel-loader/fc5a245986a0949142bf2032c6962290.json deleted file mode 100644 index b5318a56..00000000 --- a/node_modules/.cache/babel-loader/fc5a245986a0949142bf2032c6962290.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(Navigationbar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 15\n }\n }), \" \", /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 32\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 19\n }\n }, \"Login\")))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 247,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 252,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 24\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 16\n }\n }))), options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 267,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 272,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE;AAJF,KAOU;AAAA,QAETC,OAFS,GAEEP,KAFF,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AAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n\n
\n \n
    \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n \n
\n
    \n
  • \n \n Login\n \n \n
  • \n
\n
\n
\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n
\n \n \n \n
\n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/94a43985b2d923e8286b6c8c43d21c1f.json b/node_modules/.cache/babel-loader/fc9693ce3d9222ccf338221ab75af1bf.json similarity index 100% rename from node_modules/.cache/babel-loader/94a43985b2d923e8286b6c8c43d21c1f.json rename to node_modules/.cache/babel-loader/fc9693ce3d9222ccf338221ab75af1bf.json diff --git a/node_modules/.cache/babel-loader/fd3a74c757ea2db3ac675907d0c9351e.json b/node_modules/.cache/babel-loader/fd3a74c757ea2db3ac675907d0c9351e.json deleted file mode 100644 index 6456341a..00000000 --- a/node_modules/.cache/babel-loader/fd3a74c757ea2db3ac675907d0c9351e.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 230,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 248,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 249,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 256,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 274,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAuC;;AACvC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC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;AAAA;AAAA,8BAJ7B,EAKO,KAAKL,KAAL,CAAWK,MAAX,iBAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAL5B,CAFF,CADS,GAYL,IAZd;AAcA,UAAMqE,QAAQ,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACb;AAAK,QAAA,KAAK,EAAC,YAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAK,QAAA,GAAG,EAAElF,IAAV;AAAgB,QAAA,KAAK,EAAE,QAAvB;AAAiC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CADa,eAKb;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CALa,eASb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QATa,CAAjB;AAgBE,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACIkF,QADJ,CAFF;AAOH;;;;EAtQe7F,S;;AAwQlB,eAAeI,UAAU,CAACQ,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n \n
\n
    \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/f707b91cba73221a93a29797c3e0b840.json b/node_modules/.cache/babel-loader/fd4ac82a91403f4fa86e1e720378ded4.json similarity index 100% rename from node_modules/.cache/babel-loader/f707b91cba73221a93a29797c3e0b840.json rename to node_modules/.cache/babel-loader/fd4ac82a91403f4fa86e1e720378ded4.json diff --git a/node_modules/.cache/babel-loader/48504c55e1dae452dde1dc0596fb3afd.json b/node_modules/.cache/babel-loader/fd839f77aadb6b02ec4e0a60dae3b296.json similarity index 100% rename from node_modules/.cache/babel-loader/48504c55e1dae452dde1dc0596fb3afd.json rename to node_modules/.cache/babel-loader/fd839f77aadb6b02ec4e0a60dae3b296.json diff --git a/node_modules/.cache/babel-loader/fd92bd590a0e2408a5d8bb1480dbdc1f.json b/node_modules/.cache/babel-loader/fd92bd590a0e2408a5d8bb1480dbdc1f.json deleted file mode 100644 index d06dc94e..00000000 --- a/node_modules/.cache/babel-loader/fd92bd590a0e2408a5d8bb1480dbdc1f.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _taggedTemplateLiteral from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/Navigationbar.js\";\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n .navbar { background-color: #ffffff; }\\n a, .navbar-nav, .navbar-light .nav-link {\\n color: #000000;\\n \\n }\\n .navbar-brand {\\n font-size: 1.4em;\\n color: #000000;\\n \\n }\\n .form-center {\\n position: absolute !important;\\n left: 25%;\\n right: 25%;\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nimport React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nvar Styles = styled.div(_templateObject());\n\nvar Navigationbar = /*#__PURE__*/function (_Component) {\n _inherits(Navigationbar, _Component);\n\n function Navigationbar() {\n _classCallCheck(this, Navigationbar);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Navigationbar).apply(this, arguments));\n }\n\n _createClass(Navigationbar, [{\n key: \"render\",\n value: function render() {\n var authenticated = this.props.isLoggedIn;\n return /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 5\n }\n }, authenticated ? /*#__PURE__*/React.createElement(Styles, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar, {\n expand: \"lg\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Navbar.Collapse, {\n id: \"basic-navbar-nav\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Nav, {\n className: \"ml-auto\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n align: \"left\",\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 31\n }\n }))), /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 33\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 33\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 33\n }\n }, \"Simulator\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 60,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.props.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 61,\n columnNumber: 33\n }\n }, \"Logout\")))))))) : null);\n }\n }]);\n\n return Navigationbar;\n}(Component);\n\nexport default Navigationbar;","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/Navigationbar.js"],"names":["React","Component","Nav","Navbar","Form","FormControl","NavLink","styled","header","Styles","div","Navigationbar","authenticated","props","isLoggedIn","textDecoration","submit"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,GAAT,EAAcC,MAAd,EAAsBC,IAAtB,EAA4BC,WAA5B,QAA+C,iBAA/C;AACA,SAASC,OAAT,QAAwB,kBAAxB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAE/C,IAAMC,MAAM,GAAGF,MAAM,CAACG,GAAV,mBAAZ;;IAkBMC,a;;;;;;;;;;;6BACI;AACN,UAAMC,aAAa,GAAG,KAAKC,KAAL,CAAWC,UAAjC;AAEF,0BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACKF,aAAa,gBACd,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACA,oBAAC,MAAD;AAAQ,QAAA,MAAM,EAAC,IAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD,CAAQ,QAAR;AAAiB,QAAA,EAAE,EAAC,kBAApB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,GAAD;AAAK,QAAA,SAAS,EAAC,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACU;AAAK,QAAA,KAAK,EAAC,aAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI;AAAG,QAAA,KAAK,EAAC,OAAT;AAAiB,QAAA,IAAI,EAAC,GAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAK,QAAA,KAAK,EAAC,MAAX;AAAkB,QAAA,GAAG,E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,MAAhE;AAAwE,QAAA,KAAK,EAAC,QAA9E;AAAuF,QAAA,EAAE,EAAC,GAA1F;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBADJ,CAjBF,CADF,CANV,CADJ,CADF,CADA,CADc,GA0CnB,IA3CC,CADF;AAgDD;;;;EApD2Bf,S;;AAsD5B,eAAeU,aAAf","sourcesContent":["import React, { Component } from 'react';\nimport { Nav, Navbar, Form, FormControl } from 'react-bootstrap';\nimport { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n \nconst Styles = styled.div`\n .navbar { background-color: #ffffff; }\n a, .navbar-nav, .navbar-light .nav-link {\n color: #000000;\n \n }\n .navbar-brand {\n font-size: 1.4em;\n color: #000000;\n \n }\n .form-center {\n position: absolute !important;\n left: 25%;\n right: 25%;\n }\n`;\n\nclass Navigationbar extends Component { \n render(){\n const authenticated = this.props.isLoggedIn;\n \n return (\n
\n {authenticated ? ( \n \n \n \n \n \n \n \n )\n :\n (null) }\n \n
\n )\n};\n}\nexport default Navigationbar;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/bfd5a7f5a4004dbdf150eac93ba2afa4.json b/node_modules/.cache/babel-loader/fdad716af3da0caf783ba46fc183b398.json similarity index 100% rename from node_modules/.cache/babel-loader/bfd5a7f5a4004dbdf150eac93ba2afa4.json rename to node_modules/.cache/babel-loader/fdad716af3da0caf783ba46fc183b398.json diff --git a/node_modules/.cache/babel-loader/75841ff70b1e0e780ddcaf64429fbe02.json b/node_modules/.cache/babel-loader/fdd983d7655cd6ce5f01bc61a3a3243e.json similarity index 100% rename from node_modules/.cache/babel-loader/75841ff70b1e0e780ddcaf64429fbe02.json rename to node_modules/.cache/babel-loader/fdd983d7655cd6ce5f01bc61a3a3243e.json diff --git a/node_modules/.cache/babel-loader/ff3680405cc291ae5947de80ade757c7.json b/node_modules/.cache/babel-loader/fdda7f4f68fb2854c8c3c317fef0c65e.json similarity index 100% rename from node_modules/.cache/babel-loader/ff3680405cc291ae5947de80ade757c7.json rename to node_modules/.cache/babel-loader/fdda7f4f68fb2854c8c3c317fef0c65e.json diff --git a/node_modules/.cache/babel-loader/8b80d53444280b105847debaf4fc5d64.json b/node_modules/.cache/babel-loader/fe3d603b2d3d7b1817b0126012e7c82b.json similarity index 100% rename from node_modules/.cache/babel-loader/8b80d53444280b105847debaf4fc5d64.json rename to node_modules/.cache/babel-loader/fe3d603b2d3d7b1817b0126012e7c82b.json diff --git a/node_modules/.cache/babel-loader/0b8b1a4180e524834d030f1d91989a63.json b/node_modules/.cache/babel-loader/fea7517573a00e153c9cc118f5b83ea0.json similarity index 100% rename from node_modules/.cache/babel-loader/0b8b1a4180e524834d030f1d91989a63.json rename to node_modules/.cache/babel-loader/fea7517573a00e153c9cc118f5b83ea0.json diff --git a/node_modules/.cache/babel-loader/d673625dc9ebf7b95c98e9066935ad36.json b/node_modules/.cache/babel-loader/fec4df308bff49dcb02781f010320f1a.json similarity index 100% rename from node_modules/.cache/babel-loader/d673625dc9ebf7b95c98e9066935ad36.json rename to node_modules/.cache/babel-loader/fec4df308bff49dcb02781f010320f1a.json diff --git a/node_modules/.cache/babel-loader/fedf4234e1c1f72fcacb3bc400bd6549.json b/node_modules/.cache/babel-loader/fedf4234e1c1f72fcacb3bc400bd6549.json deleted file mode 100644 index ab3da6b5..00000000 --- a/node_modules/.cache/babel-loader/fedf4234e1c1f72fcacb3bc400bd6549.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { Navigationbar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 218,\n columnNumber: 22\n }\n }, \"const options = this.state.isAuthenticated ?\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 31\n }\n }, \"Logout\")))), \":\", /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, \"Login\")))), \"const simulator = this.state.isAuthenticated ?\", /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 249,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 250,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))), \" : null\", /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 258,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 275,\n columnNumber: 9\n }\n }, mainBody);\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","mainBody","textDecoration"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OA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bar } from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const mainBody =
\n const options = this.state.isAuthenticated ? \n \n
\n
    \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n \n
\n {mainBody}\n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/1722b704c7ed925efb5c4f43fcb0a744.json b/node_modules/.cache/babel-loader/ff047e99d280f7af5d5818d54645b9e8.json similarity index 100% rename from node_modules/.cache/babel-loader/1722b704c7ed925efb5c4f43fcb0a744.json rename to node_modules/.cache/babel-loader/ff047e99d280f7af5d5818d54645b9e8.json diff --git a/node_modules/.cache/babel-loader/ff31d79298153d49ae720cbd0f7b3d51.json b/node_modules/.cache/babel-loader/ff31d79298153d49ae720cbd0f7b3d51.json deleted file mode 100644 index 38147cb6..00000000 --- a/node_modules/.cache/babel-loader/ff31d79298153d49ae720cbd0f7b3d51.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react'; //import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport { NavigationBar } from './components/NavigationBar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\n\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 220,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 222,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"progress\",\n to: \"/progress\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 31\n }\n }, \"Progress\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 228,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n class: \"tasks\",\n to: \"/tasks\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 229,\n columnNumber: 31\n }\n }, \"Tasks\")), /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 27\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 31\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 242,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 243,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 244,\n columnNumber: 23\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 245,\n columnNumber: 27\n }\n }, \"Login\"))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 255,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 257,\n columnNumber: 19\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 260,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 261,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 22\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriHeader\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 269,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"a\", {\n class: \"Brand\",\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 270,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: header,\n width: '70cm',\n height: '70cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 271,\n columnNumber: 16\n }\n })), options), simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 278,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 279,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 282,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 283,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 286,\n columnNumber: 9\n }\n }));\n return (\n /*#__PURE__*/\n\n /*
\n {mainBody}\n
*/\n React.createElement(React.Fragment, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 297,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 298,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(NavigationBar, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 299,\n columnNumber: 11\n }\n })))\n );\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","NavigationBar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","simulator","mainBody"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC,C,CACA;;AACA,SAASC,aAAT,QAA8B,4BAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,KAA/B,EAAsCC,OAAtC,EAA+CC,MAA/C,EAAuDC,aAAa,IAAIC,MAAxE,EAAgFC,MAAhF,QAAiG,kBAAjG;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,0BAAnB,C,CAA+C;;AAC/C,OAAOC,IAAP,MAAiB,qBAAjB,C,CAAwC;;AACxC,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,YAAT,QAA6B,qBAA7B,C,CAAoD;;AACpD,OAAO,iDAAP,C,CAA0D;;AAC1D,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,uBAA3B;AACA,SAASC,cAAT,QAA+B,cAA/B,C,CACA;;IAGMC,G;;;AAQJ,eAAYC,KAAZ,EAAkB;AAAA;;AAAA;;AAChB,6EAAMA,KAAN;AADgB,UAPlBC,KAOkB,GAPV;AACNC,MAAAA,SAAS,EAAE,KADL;AAENC,MAAAA,eAAe,EAAE,KAFX;AAGNC,MAAAA,IAAI,EAAEC,SAHA;AAINC,MAAAA,MAAM,EAAE;AAJF,KAOU;AAAA,QAETC,OAFS,GAEEP,KAFF,CAETO,OAFS;AAGhBC,IAAAA,OAAO,CAACC,GAAR,CAAYF,OAAZ;AACA,UAAKN,KAAL,CAAWS,SAAX,GAAuBH,OAAO,CAACI,GAAR,C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;AAAA;AAAA;AAAA,QADJ,CAda,eAkBb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAlBa,CAAjB;AAyBE;AAAA;;AACE;;;AAGA,4BAAC,KAAD,CAAO,QAAP;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBACA,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBACE,oBAAC,aAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,UADF,CADA;AAJF;AAYH;;;;EA/ReZ,S;;AAiSlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\n//import '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport { NavigationBar } from './components/NavigationBar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg'; // Tell Webpack this JS file uses this image\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n
\n
    \n
  • \n \n Progress\n \n
  • \n\n
  • \n \n Tasks\n \n
  • \n \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n
    \n
  • \n \n Login\n \n
  • \n
\n
\n\n \n\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n\n const mainBody =
\n
\n \n \n \n {options}\n
\n \n {simulator}\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n\n \n return (\n /*
\n {mainBody}\n
*/\n \n \n \n \n \n\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/c0ebea2a8c84ebafd5a3fe761e4a7ec9.json b/node_modules/.cache/babel-loader/ff41ee82e4ca7064de4bda22284a9e60.json similarity index 100% rename from node_modules/.cache/babel-loader/c0ebea2a8c84ebafd5a3fe761e4a7ec9.json rename to node_modules/.cache/babel-loader/ff41ee82e4ca7064de4bda22284a9e60.json diff --git a/node_modules/.cache/babel-loader/ffe97983437c8241b26c7b3faa54e3c6.json b/node_modules/.cache/babel-loader/ffe97983437c8241b26c7b3faa54e3c6.json deleted file mode 100644 index ef08ea7a..00000000 --- a/node_modules/.cache/babel-loader/ffe97983437c8241b26c7b3faa54e3c6.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.wait.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(App, [{\n key: \"componentDidMount\",\n value: function () {\n var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var response, body;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n _context.next = 3;\n return fetch(\"http://\".concat(this.ip, \"/api/user\"), {\n credentials: 'include'\n });\n\n case 3:\n response = _context.sent;\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n _context.next = 8;\n return response.text();\n\n case 8:\n body = _context.sent;\n console.log(\"-----------------------\");\n console.log(response.ok);\n console.log(\"-----------------------\");\n\n if (body === '') {\n this.setState({\n isAuthenticated: false\n });\n } else {\n this.setState({\n isAuthenticated: true,\n user: JSON.parse(body)\n });\n }\n\n console.log(this.state.isAuthenticated);\n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function componentDidMount() {\n return _componentDidMount.apply(this, arguments);\n }\n\n return componentDidMount;\n }()\n }, {\n key: \"routeMain\",\n value: function routeMain() {\n var path = '/';\n this.props.history.push(path);\n }\n }, {\n key: \"login\",\n value: function login() {\n console.log(window.location);\n window.location.href = \"//\".concat(this.ip, \"/task/list\"); //window.location.href = `//${this.ip}/private`;\n }\n }, {\n key: \"wait\",\n value: function wait(ms) {\n var start = new Date().getTime();\n var end = start;\n\n while (end < start + ms) {\n end = new Date().getTime();\n }\n }\n }, {\n key: \"routeLogin\",\n value: function routeLogin() {\n var path = '/';\n this.props.history.push(path);\n } //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n\n }, {\n key: \"logout\",\n value: function () {\n var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var _this2 = this;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(\"https://\".concat(this.yourOktaDomain, \"/api/v1/sessions/me\"), {\n method: 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include'\n }).then(function (response) {\n return response;\n }).then(function (json) {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(_this2.state.isAuthenticated);\n\n if (json.status === 204) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n if (json.status === 200) {\n _this2.state.isAuthenticated = false;\n\n _this2.routeMain();\n }\n\n console.log(_this2.state.isAuthenticated);\n }).then(function (reponse) {\n window.location.href = \"http://localhost:8080/api/logout\";\n }).then(function (reponse) {\n _this2.wait(3000);\n\n window.location.href = \"http://localhost:3000/\";\n }); //window.location.href = `http://localhost:8080/api/logout`;\n\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n\n case 3:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function logout() {\n return _logout.apply(this, arguments);\n }\n\n return logout;\n }()\n }, {\n key: \"submit\",\n value: function submit() {\n var _this3 = this;\n\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [{\n label: 'Yes',\n onClick: function onClick() {\n return _this3.logout();\n }\n }, {\n label: 'No',\n onClick: function onClick() {\n return _this3.routeMain();\n }\n }]\n });\n }\n }, {\n key: \"attach\",\n value: function attach() {\n var _this4 = this;\n\n this.timer = setInterval(function () {\n return _this4.heartbeat();\n }, 10000);\n }\n }, {\n key: \"heartbeat\",\n value: function () {\n var _heartbeat = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n fetch(\"http://\".concat(this.ip, \"/simulator/logheartbeat/\").concat(this.state.user.sub), {\n credentials: 'include'\n }).then(function (response) {\n return response.json();\n }).then(function (responseData) {\n console.log(\"Heart Beating\");\n }).catch(function (error) {\n console.error(error);\n });\n\n case 1:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function heartbeat() {\n return _heartbeat.apply(this, arguments);\n }\n\n return heartbeat;\n }() //launchSimulator(urlAction) {\n\n }, {\n key: \"launchSimulator\",\n value: function launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\"; //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n }, {\n key: \"settingsSimulator\",\n value: function settingsSimulator(launch) {\n var _this5 = this;\n\n if (launch) {\n var httpClient = axios.create();\n httpClient.defaults.timeout = 600000; // TODO : detach the heartbeat\n\n httpClient.get(\"http://\".concat(this.ip, \"/simulator/stop/\").concat(this.state.user.sub), {\n withCredentials: true\n }).then(function (res) {\n _this5.setState({\n launch: false\n });\n });\n } else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var options = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 221,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 223,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.submit,\n class: \"logout\",\n to: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 225,\n columnNumber: 16\n }\n }, \"Logout\")))) : /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 232,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n id: \"navbar\",\n class: \"navbar-collapse\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 234,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"ul\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(NavLink, {\n style: {\n textDecoration: 'none'\n },\n onClick: this.login,\n class: \"login\",\n to: \"\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 237,\n columnNumber: 19\n }\n }, \"Login\")))));\n var simulator = this.state.isAuthenticated ? /*#__PURE__*/React.createElement(\"div\", {\n class: \"SimulatorButton\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 246,\n columnNumber: 15\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n className: \"SimulatorButton\",\n onClick: function onClick() {\n _this6.settingsSimulator(_this6.state.launch);\n },\n disabled: this.state.isLoading,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 248,\n columnNumber: 17\n }\n }, this.state.isLoading && /*#__PURE__*/React.createElement(\"i\", {\n className: \"fa fa-refresh fa-spin\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 251,\n columnNumber: 48\n }\n }), !this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 252,\n columnNumber: 46\n }\n }, \" Launch Simulator \"), this.state.launch && /*#__PURE__*/React.createElement(\"span\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 253,\n columnNumber: 45\n }\n }, \" Stop Simulator \"))) : null;\n var mainBody = /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 259,\n columnNumber: 24\n }\n }, options, simulator, /*#__PURE__*/React.createElement(\"div\", {\n class: \"SpiriImage\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 262,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n src: logo,\n width: '1000cm',\n height: '563cm',\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 263,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"Text\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 265,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(Comp_image, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 266,\n columnNumber: 13\n }\n })), /*#__PURE__*/React.createElement(\"footer\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 268,\n columnNumber: 9\n }\n }));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 275,\n columnNumber: 9\n }\n }, mainBody, /*#__PURE__*/React.createElement(Navigationbar, {\n isLoggedIn: this.state.isAuthenticated,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 277,\n columnNumber: 12\n }\n }));\n }\n }]);\n\n return App;\n}(Component);\n\nexport default withRouter(withCookies(App));","map":{"version":3,"sources":["/home/riddhi/frontend/src/components/App.js"],"names":["React","Component","Navigationbar","Comp_image","Redirect","withRouter","Route","NavLink","Navbar","BrowserRouter","Router","Switch","header","logo","withCookies","confirmAlert","axios","LoadingOverlay","thisExpression","App","props","state","isLoading","isAuthenticated","user","undefined","launch","isNavbar","cookies","console","log","csrfToken","get","local","prod","status","ip","yourOktaDomain","simulatorWindow","shellWindow","routeLogin","bind","login","logout","routeMain","submit","getSimulator","settingsSimulator","launchSimulator","attach","heartbeat","wait","fetch","credentials","response","ok","text","body","setState","JSON","parse","path","history","push","window","location","href","ms","start","Date","getTime","end","method","then","json","reponse","title","message","buttons","label","onClick","timer","setInterval","sub","responseData","catch","error","httpClient","create","defaults","timeout","withCredentials","res","options","textDecoration","sim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iC,QAAA,MAAM,EAAE,OAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CAHe,eAMf;AAAK,QAAA,SAAS,EAAC,MAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,UAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QADJ,CANe,eASf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QATe,CAAjB;AAcA,0BAEE;AAAK,QAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SACImF,QADJ,eAEG,oBAAC,aAAD;AAAe,QAAA,UAAU,EAAE,KAAK3E,KAAL,CAAWE,eAAtC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAFH,CAFF;AAQH;;;;EAxQetB,S;;AA0QlB,eAAeI,UAAU,CAACS,WAAW,CAACK,GAAD,CAAZ,CAAzB","sourcesContent":["import React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom'\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png';// Tell Webpack this JS file uses this image\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types';\n//import { withAuth } from '@okta/okta-react';\n\n\nclass App extends Component{\n state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n\n constructor(props){\n super(props);\n const {cookies} = props;\n console.log(cookies);\n this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(this.state.csrfToken);\n this.local = \"localhost:8080\";\n this.prod = \"174.138.41.124:8080\";\n this.status = \"local\"\n if (this.status === \"local\") {\n this.ip = this.local;\n }\n this.yourOktaDomain = \"dev-125890.okta.com\";\n this.simulatorWindow = null;\n this.shellWindow = null;\n this.routeLogin = this.routeLogin.bind(this);\n this.login = this.login.bind(this);\n this.logout = this.logout.bind(this);\n this.routeMain =this.routeMain.bind(this);\n this.submit = this.submit.bind(this);\n this.getSimulator = this.settingsSimulator.bind(this);\n this.launchSimulator = this.launchSimulator.bind(this);\n this.attach = this.attach.bind(this);\n this.heartbeat = this.heartbeat.bind(this);\n this.wait = this.wait.bind(this);\n }\n\n async componentDidMount() {\n console.log(\"hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\");\n const response = await fetch(`http://${this.ip}/api/user`, {credentials: 'include'});\n console.log(response.ok);\n console.log(\"999999999999999999999999999999999999999\");\n const body = await response.text();\n console.log(\"-----------------------\");\n console.log(response.ok)\n console.log(\"-----------------------\");\n if (body === '') {\n this.setState(({isAuthenticated: false}))\n } else {\n this.setState({isAuthenticated: true, user: JSON.parse(body)})\n }\n console.log(this.state.isAuthenticated);\n \n console.log(this.state.user);\n console.log(\"########################################\");\n console.log(this.state.isAuthenticated);\n }\n\n routeMain() {\n let path = '/';\n this.props.history.push(path);\n }\n\n login() {\n console.log(window.location)\n window.location.href = `//${this.ip}/task/list`;\n //window.location.href = `//${this.ip}/private`;\n }\n wait(ms){\n var start = new Date().getTime();\n var end = start;\n while(end < start + ms) {\n end = new Date().getTime();\n }\n }\n\n routeLogin() {\n let path = '/';\n this.props.history.push(path);\n }\n\n //http://174.138.41.124:8080/api/logout\n //https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions\n \n async logout() { \n //const proxyurl = `https://cors-anywhere.herokuapp.com/`;\n //const proxyurl = `https://arcane-beach-51923.herokuapp.com/`;\n \n //fetch(`https://${this.yourOktaDomain}/api/v1/users/${this.state.user.sub}/sessions`,\n fetch(`https://${this.yourOktaDomain}/api/v1/sessions/me`,\n {\n method : 'DELETE',\n //credentials: 'same-origin'\n credentials: 'include',\n })\n .then((response) => response) \n .then((json) => {\n console.log('Gotcha');\n console.log(json.status === 204);\n console.log(json.status);\n console.log(this.state.isAuthenticated);\n if (json.status === 204) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n if (json.status === 200) {\n this.state.isAuthenticated = false;\n this.routeMain();\n }\n console.log(this.state.isAuthenticated);\n })\n .then(reponse => {\n window.location.href = \"http://localhost:8080/api/logout\";\n })\n .then(reponse => {\n this.wait(3000);\n window.location.href = \"http://localhost:3000/\";\n });\n\n \n\n //window.location.href = `http://localhost:8080/api/logout`;\n \n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n console.log(\"YYYYYYYYYYYYYYYYYYYYYYYYYY\");\n }\n\n submit() {\n confirmAlert({\n title: 'Confirm to logout',\n message: 'Are you sure?',\n buttons: [\n {\n label: 'Yes',\n onClick: () => this.logout()\n },\n {\n label: 'No',\n onClick: () => this.routeMain()\n }\n ]\n });\n };\n\n \n attach() {\n this.timer = setInterval(()=> this.heartbeat(), 10000);\n }\n \n async heartbeat(){\n fetch(`http://${this.ip}/simulator/logheartbeat/${this.state.user.sub}`, {credentials: 'include'})\n .then((response) => response.json())\n .then((responseData) =>\n {\n \n console.log(\"Heart Beating\")\n })\n .catch((error) => {\n console.error(error);\n });\n }\n\n //launchSimulator(urlAction) {\n launchSimulator() {\n //const url = urlAction;\n //const url = \"http://localhost\";\n window.location.href = \"http://localhost:3000/simulator\";\n //this.simulatorWindow = window.open(url + \":8888\", '_blank');\n //this.shellWindow = window.open(url + \":4200\", '_self');\n }\n\n settingsSimulator(launch) {\n if (launch){\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n \n // TODO : detach the heartbeat\n \n httpClient.get(`http://${this.ip}/simulator/stop/${this.state.user.sub}`, { withCredentials: true })\n .then(res => {\n this.setState({launch: false});\n })\n }\n else {\n /*this.setState({isLoading : true, launch: true});\n this.attach(this.state.launch);\n\n const httpClient = axios.create();\n httpClient.defaults.timeout = 600000;\n\n httpClient.get(`http://${this.ip}/simulator/start/${this.state.user.sub}/${this.state.user.given_name}/spiri-friend2019@`, { withCredentials: true })\n .then(res => {\n this.setState({simulator: res.data, isLoading: false});\n this.launchSimulator(this.state.simulator.publicIp);\n })*/\n this.launchSimulator();\n }\n \n }\n \n \n\n render() {\n const options = this.state.isAuthenticated ? \n \n
\n \n
    \n
  • \n \n Logout\n \n
  • \n
\n
\n :\n
\n \n
\n
    \n
  • \n \n Login\n \n \n
  • \n
\n
\n
\n const simulator = this.state.isAuthenticated ?\n
\n {/*

Welcome, {this.state.user.name}!

*/}\n < button className=\"SimulatorButton\" onClick={() =>{\n this.settingsSimulator(this.state.launch);\n }} disabled={this.state.isLoading} >\n {this.state.isLoading && }\n {!this.state.launch && Launch Simulator }\n {this.state.launch && Stop Simulator }\n \n \n
:\n null\n \n const mainBody =
\n {options}\n {simulator}\n
\n \n
\n
\n \n
\n
\n
\n
\n\n \n return (\n \n
\n {mainBody}\n \n
\n )\n\n };\n}\nexport default withRouter(withCookies(App));\n"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/.cache/babel-loader/ffffd0af385ef02d678b617f51557b5f.json b/node_modules/.cache/babel-loader/ffffd0af385ef02d678b617f51557b5f.json deleted file mode 100644 index a73d1bf9..00000000 --- a/node_modules/.cache/babel-loader/ffffd0af385ef02d678b617f51557b5f.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _classCallCheck from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/home/riddhi/frontend/src/Routing.js\";\nimport React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator'; //import Final_login from './components/Final_login';\n\nvar Routing = /*#__PURE__*/function (_Component) {\n _inherits(Routing, _Component);\n\n function Routing() {\n _classCallCheck(this, Routing);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Routing).apply(this, arguments));\n }\n\n _createClass(Routing, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(CookiesProvider, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 14,\n columnNumber: 7\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 11\n }\n }, /*#__PURE__*/React.createElement(Switch, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(Route, {\n path: \"/\",\n exact: true,\n component: App,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/progress\",\n component: Manager,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/tasks\",\n component: TaskList,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 15\n }\n }), /*#__PURE__*/React.createElement(Route, {\n path: \"/simulator\",\n component: Simulator,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 15\n }\n })))));\n }\n }]);\n\n return Routing;\n}(Component);\n\nexport default Routing;","map":{"version":3,"sources":["/home/riddhi/frontend/src/Routing.js"],"names":["React","Component","NavLink","Switch","BrowserRouter","Router","Route","App","Manager","CookiesProvider","TaskList","Simulator","Routing"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,OAAT,EAAmBC,MAAnB,EAA2BC,aAAa,IAAIC,MAA5C,EAAoDC,KAApD,QAAiE,kBAAjE;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AAEA,SAASC,eAAT,QAAgC,cAAhC;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,SAAP,MAAsB,wBAAtB,C,CACA;;IAEMC,O;;;;;;;;;;;6BACK;AACP,0BACE,oBAAC,eAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAGE,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,GAAZ;AAAgB,QAAA,KAAK,EAAG,IAAxB;AAA8B,QAAA,SAAS,EAAEL,GAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAHF,eAIE,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,WAAZ;AAAyB,QAAA,SAAS,EAAEC,OAApC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAJF,eAKE,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,QAAZ;AAAsB,QAAA,SAAS,EAAEE,QAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QALF,eAME,oBAAC,KAAD;AAAO,QAAA,IAAI,EAAC,YAAZ;AAA0B,QAAA,SAAS,EAAEC,SAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QANF,CADF,CADF,CADF,CADF;AAgBD;;;;EAlBmBV,S;;AAqBtB,eAAeW,OAAf","sourcesContent":["import React, { Component } from 'react';\nimport { NavLink, Switch, BrowserRouter as Router, Route } from 'react-router-dom';\nimport App from './components/App';\nimport Manager from './components/Manager';\n\nimport { CookiesProvider } from 'react-cookie';\nimport TaskList from './components/TaskList';\nimport Simulator from './components/Simulator';\n//import Final_login from './components/Final_login';\n\nclass Routing extends Component {\n render() {\n return (\n \n \n
\n \n {/* \n */}\n \n \n \n \n \n
\n
\n
\n );\n }\n}\n\nexport default Routing;"]},"metadata":{},"sourceType":"module"} \ No newline at end of file diff --git a/node_modules/@babel/code-frame/package.json b/node_modules/@babel/code-frame/package.json index c8c42f42..5677c83a 100644 --- a/node_modules/@babel/code-frame/package.json +++ b/node_modules/@babel/code-frame/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/code-frame@7.5.5", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/code-frame@7.5.5", @@ -31,7 +31,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", "_spec": "7.5.5", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@babel/compat-data/package.json b/node_modules/@babel/compat-data/package.json index aaa93236..adf77289 100644 --- a/node_modules/@babel/compat-data/package.json +++ b/node_modules/@babel/compat-data/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/compat-data@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/compat-data@7.9.6", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "The Babel Team", "url": "https://babeljs.io/team" diff --git a/node_modules/@babel/core/package.json b/node_modules/@babel/core/package.json index 562be20e..8b1961d3 100644 --- a/node_modules/@babel/core/package.json +++ b/node_modules/@babel/core/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/core@7.2.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/core@7.2.2", @@ -29,7 +29,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/core/-/core-7.2.2.tgz", "_spec": "7.2.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@babel/generator/node_modules/@babel/types/package.json b/node_modules/@babel/generator/node_modules/@babel/types/package.json index 1671da7d..1171377f 100644 --- a/node_modules/@babel/generator/node_modules/@babel/types/package.json +++ b/node_modules/@babel/generator/node_modules/@babel/types/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/types@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/types@7.9.6", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/types/-/types-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@babel/generator/package.json b/node_modules/@babel/generator/package.json index a8b3284a..8288738d 100644 --- a/node_modules/@babel/generator/package.json +++ b/node_modules/@babel/generator/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/generator@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/generator@7.9.6", @@ -33,7 +33,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@babel/helper-annotate-as-pure/node_modules/@babel/types/package.json b/node_modules/@babel/helper-annotate-as-pure/node_modules/@babel/types/package.json index f93c29a4..3b97513b 100644 --- a/node_modules/@babel/helper-annotate-as-pure/node_modules/@babel/types/package.json +++ b/node_modules/@babel/helper-annotate-as-pure/node_modules/@babel/types/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/types@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/types@7.9.6", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/types/-/types-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@babel/helper-annotate-as-pure/package.json b/node_modules/@babel/helper-annotate-as-pure/package.json index febf66c9..53dee570 100644 --- a/node_modules/@babel/helper-annotate-as-pure/package.json +++ b/node_modules/@babel/helper-annotate-as-pure/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/helper-annotate-as-pure@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/helper-annotate-as-pure@7.8.3", @@ -38,7 +38,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/types": "^7.8.3" }, diff --git a/node_modules/@babel/helper-builder-binary-assignment-operator-visitor/node_modules/@babel/types/package.json b/node_modules/@babel/helper-builder-binary-assignment-operator-visitor/node_modules/@babel/types/package.json index f428b248..9709b47c 100644 --- a/node_modules/@babel/helper-builder-binary-assignment-operator-visitor/node_modules/@babel/types/package.json +++ b/node_modules/@babel/helper-builder-binary-assignment-operator-visitor/node_modules/@babel/types/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/types@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/types@7.9.6", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/types/-/types-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@babel/helper-builder-binary-assignment-operator-visitor/package.json b/node_modules/@babel/helper-builder-binary-assignment-operator-visitor/package.json index 5bee1c43..15f09613 100644 --- a/node_modules/@babel/helper-builder-binary-assignment-operator-visitor/package.json +++ b/node_modules/@babel/helper-builder-binary-assignment-operator-visitor/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/helper-builder-binary-assignment-operator-visitor@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/helper-builder-binary-assignment-operator-visitor@7.8.3", @@ -31,7 +31,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-explode-assignable-expression": "^7.8.3", "@babel/types": "^7.8.3" diff --git a/node_modules/@babel/helper-builder-react-jsx-experimental/node_modules/@babel/helper-module-imports/package.json b/node_modules/@babel/helper-builder-react-jsx-experimental/node_modules/@babel/helper-module-imports/package.json index a5378d22..d0ec4ec2 100644 --- a/node_modules/@babel/helper-builder-react-jsx-experimental/node_modules/@babel/helper-module-imports/package.json +++ b/node_modules/@babel/helper-builder-react-jsx-experimental/node_modules/@babel/helper-module-imports/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/helper-module-imports@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/helper-module-imports@7.8.3", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Logan Smyth", "email": "loganfsmyth@gmail.com" diff --git a/node_modules/@babel/helper-builder-react-jsx-experimental/node_modules/@babel/types/package.json b/node_modules/@babel/helper-builder-react-jsx-experimental/node_modules/@babel/types/package.json index 33369f5d..ff7a3fd1 100644 --- a/node_modules/@babel/helper-builder-react-jsx-experimental/node_modules/@babel/types/package.json +++ b/node_modules/@babel/helper-builder-react-jsx-experimental/node_modules/@babel/types/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/types@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/types@7.9.6", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/types/-/types-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@babel/helper-builder-react-jsx-experimental/package.json b/node_modules/@babel/helper-builder-react-jsx-experimental/package.json index 9993068a..4c387cb9 100644 --- a/node_modules/@babel/helper-builder-react-jsx-experimental/package.json +++ b/node_modules/@babel/helper-builder-react-jsx-experimental/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/helper-builder-react-jsx-experimental@7.9.5", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/helper-builder-react-jsx-experimental@7.9.5", @@ -32,7 +32,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/helper-builder-react-jsx-experimental/-/helper-builder-react-jsx-experimental-7.9.5.tgz", "_spec": "7.9.5", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-annotate-as-pure": "^7.8.3", "@babel/helper-module-imports": "^7.8.3", diff --git a/node_modules/@babel/helper-builder-react-jsx/node_modules/@babel/types/package.json b/node_modules/@babel/helper-builder-react-jsx/node_modules/@babel/types/package.json index 7c8e41db..5ff570a3 100644 --- a/node_modules/@babel/helper-builder-react-jsx/node_modules/@babel/types/package.json +++ b/node_modules/@babel/helper-builder-react-jsx/node_modules/@babel/types/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/types@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/types@7.9.6", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/types/-/types-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@babel/helper-builder-react-jsx/package.json b/node_modules/@babel/helper-builder-react-jsx/package.json index 4a6a74d8..696895e1 100644 --- a/node_modules/@babel/helper-builder-react-jsx/package.json +++ b/node_modules/@babel/helper-builder-react-jsx/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/helper-builder-react-jsx@7.9.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/helper-builder-react-jsx@7.9.0", @@ -31,7 +31,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/helper-builder-react-jsx/-/helper-builder-react-jsx-7.9.0.tgz", "_spec": "7.9.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-annotate-as-pure": "^7.8.3", "@babel/types": "^7.9.0" diff --git a/node_modules/@babel/helper-compilation-targets/package.json b/node_modules/@babel/helper-compilation-targets/package.json index a06ad7ae..0d59b995 100644 --- a/node_modules/@babel/helper-compilation-targets/package.json +++ b/node_modules/@babel/helper-compilation-targets/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/helper-compilation-targets@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/helper-compilation-targets@7.9.6", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "The Babel Team", "url": "https://babeljs.io/team" diff --git a/node_modules/@babel/helper-create-class-features-plugin/package.json b/node_modules/@babel/helper-create-class-features-plugin/package.json index 07067940..9e13ed10 100644 --- a/node_modules/@babel/helper-create-class-features-plugin/package.json +++ b/node_modules/@babel/helper-create-class-features-plugin/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/helper-create-class-features-plugin@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/helper-create-class-features-plugin@7.9.6", @@ -29,7 +29,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "The Babel Team", "url": "https://babeljs.io/team" diff --git a/node_modules/@babel/helper-create-regexp-features-plugin/package.json b/node_modules/@babel/helper-create-regexp-features-plugin/package.json index 9abd5c95..b9ef48a6 100644 --- a/node_modules/@babel/helper-create-regexp-features-plugin/package.json +++ b/node_modules/@babel/helper-create-regexp-features-plugin/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/helper-create-regexp-features-plugin@7.8.8", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/helper-create-regexp-features-plugin@7.8.8", @@ -30,7 +30,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.8.8.tgz", "_spec": "7.8.8", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "The Babel Team", "url": "https://babeljs.io/team" diff --git a/node_modules/@babel/helper-define-map/node_modules/@babel/types/package.json b/node_modules/@babel/helper-define-map/node_modules/@babel/types/package.json index 366746f0..a4977d2a 100644 --- a/node_modules/@babel/helper-define-map/node_modules/@babel/types/package.json +++ b/node_modules/@babel/helper-define-map/node_modules/@babel/types/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/types@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/types@7.9.6", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/types/-/types-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@babel/helper-define-map/package.json b/node_modules/@babel/helper-define-map/package.json index d85ad559..b05bb028 100644 --- a/node_modules/@babel/helper-define-map/package.json +++ b/node_modules/@babel/helper-define-map/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/helper-define-map@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/helper-define-map@7.8.3", @@ -32,7 +32,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/helper-define-map/-/helper-define-map-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-function-name": "^7.8.3", "@babel/types": "^7.8.3", diff --git a/node_modules/@babel/helper-explode-assignable-expression/node_modules/@babel/types/package.json b/node_modules/@babel/helper-explode-assignable-expression/node_modules/@babel/types/package.json index 4d0d8eda..ea000609 100644 --- a/node_modules/@babel/helper-explode-assignable-expression/node_modules/@babel/types/package.json +++ b/node_modules/@babel/helper-explode-assignable-expression/node_modules/@babel/types/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/types@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/types@7.9.6", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/types/-/types-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@babel/helper-explode-assignable-expression/package.json b/node_modules/@babel/helper-explode-assignable-expression/package.json index ef2c621c..ee425040 100644 --- a/node_modules/@babel/helper-explode-assignable-expression/package.json +++ b/node_modules/@babel/helper-explode-assignable-expression/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/helper-explode-assignable-expression@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/helper-explode-assignable-expression@7.8.3", @@ -31,7 +31,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/traverse": "^7.8.3", "@babel/types": "^7.8.3" diff --git a/node_modules/@babel/helper-function-name/node_modules/@babel/types/package.json b/node_modules/@babel/helper-function-name/node_modules/@babel/types/package.json index 8e11452d..00740a9d 100644 --- a/node_modules/@babel/helper-function-name/node_modules/@babel/types/package.json +++ b/node_modules/@babel/helper-function-name/node_modules/@babel/types/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/types@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/types@7.9.6", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/types/-/types-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@babel/helper-function-name/package.json b/node_modules/@babel/helper-function-name/package.json index 3d91dee9..71675433 100644 --- a/node_modules/@babel/helper-function-name/package.json +++ b/node_modules/@babel/helper-function-name/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/helper-function-name@7.9.5", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/helper-function-name@7.9.5", @@ -37,7 +37,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.9.5.tgz", "_spec": "7.9.5", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-get-function-arity": "^7.8.3", "@babel/template": "^7.8.3", diff --git a/node_modules/@babel/helper-get-function-arity/node_modules/@babel/types/package.json b/node_modules/@babel/helper-get-function-arity/node_modules/@babel/types/package.json index 69c21072..58d61923 100644 --- a/node_modules/@babel/helper-get-function-arity/node_modules/@babel/types/package.json +++ b/node_modules/@babel/helper-get-function-arity/node_modules/@babel/types/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/types@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/types@7.9.6", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/types/-/types-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@babel/helper-get-function-arity/package.json b/node_modules/@babel/helper-get-function-arity/package.json index 11ee3a5a..a9cfa5d1 100644 --- a/node_modules/@babel/helper-get-function-arity/package.json +++ b/node_modules/@babel/helper-get-function-arity/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/helper-get-function-arity@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/helper-get-function-arity@7.8.3", @@ -32,7 +32,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/types": "^7.8.3" }, diff --git a/node_modules/@babel/helper-hoist-variables/node_modules/@babel/types/package.json b/node_modules/@babel/helper-hoist-variables/node_modules/@babel/types/package.json index bdc9943c..6e8a56b7 100644 --- a/node_modules/@babel/helper-hoist-variables/node_modules/@babel/types/package.json +++ b/node_modules/@babel/helper-hoist-variables/node_modules/@babel/types/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/types@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/types@7.9.6", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/types/-/types-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@babel/helper-hoist-variables/package.json b/node_modules/@babel/helper-hoist-variables/package.json index 02808fb0..bf291925 100644 --- a/node_modules/@babel/helper-hoist-variables/package.json +++ b/node_modules/@babel/helper-hoist-variables/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/helper-hoist-variables@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/helper-hoist-variables@7.8.3", @@ -31,7 +31,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/types": "^7.8.3" }, diff --git a/node_modules/@babel/helper-member-expression-to-functions/node_modules/@babel/types/package.json b/node_modules/@babel/helper-member-expression-to-functions/node_modules/@babel/types/package.json index cce4f538..72964498 100644 --- a/node_modules/@babel/helper-member-expression-to-functions/node_modules/@babel/types/package.json +++ b/node_modules/@babel/helper-member-expression-to-functions/node_modules/@babel/types/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/types@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/types@7.9.6", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/types/-/types-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@babel/helper-member-expression-to-functions/package.json b/node_modules/@babel/helper-member-expression-to-functions/package.json index cf777757..0f6b2792 100644 --- a/node_modules/@babel/helper-member-expression-to-functions/package.json +++ b/node_modules/@babel/helper-member-expression-to-functions/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/helper-member-expression-to-functions@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/helper-member-expression-to-functions@7.8.3", @@ -32,7 +32,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Justin Ridgewell", "email": "justin@ridgewell.name" diff --git a/node_modules/@babel/helper-module-imports/package.json b/node_modules/@babel/helper-module-imports/package.json index 4f051f6f..13c12fbe 100644 --- a/node_modules/@babel/helper-module-imports/package.json +++ b/node_modules/@babel/helper-module-imports/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/helper-module-imports@7.7.4", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/helper-module-imports@7.7.4", @@ -29,7 +29,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.7.4.tgz", "_spec": "7.7.4", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Logan Smyth", "email": "loganfsmyth@gmail.com" diff --git a/node_modules/@babel/helper-module-transforms/node_modules/@babel/helper-module-imports/package.json b/node_modules/@babel/helper-module-transforms/node_modules/@babel/helper-module-imports/package.json index 3e65ccf8..db07d736 100644 --- a/node_modules/@babel/helper-module-transforms/node_modules/@babel/helper-module-imports/package.json +++ b/node_modules/@babel/helper-module-transforms/node_modules/@babel/helper-module-imports/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/helper-module-imports@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/helper-module-imports@7.8.3", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Logan Smyth", "email": "loganfsmyth@gmail.com" diff --git a/node_modules/@babel/helper-module-transforms/node_modules/@babel/types/package.json b/node_modules/@babel/helper-module-transforms/node_modules/@babel/types/package.json index 943b915f..f9a13508 100644 --- a/node_modules/@babel/helper-module-transforms/node_modules/@babel/types/package.json +++ b/node_modules/@babel/helper-module-transforms/node_modules/@babel/types/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/types@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/types@7.9.6", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/types/-/types-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@babel/helper-module-transforms/package.json b/node_modules/@babel/helper-module-transforms/package.json index 6795fc77..c3c6b2a4 100644 --- a/node_modules/@babel/helper-module-transforms/package.json +++ b/node_modules/@babel/helper-module-transforms/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/helper-module-transforms@7.9.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/helper-module-transforms@7.9.0", @@ -35,7 +35,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.9.0.tgz", "_spec": "7.9.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Logan Smyth", "email": "loganfsmyth@gmail.com" diff --git a/node_modules/@babel/helper-optimise-call-expression/node_modules/@babel/types/package.json b/node_modules/@babel/helper-optimise-call-expression/node_modules/@babel/types/package.json index 73a441e4..523e6820 100644 --- a/node_modules/@babel/helper-optimise-call-expression/node_modules/@babel/types/package.json +++ b/node_modules/@babel/helper-optimise-call-expression/node_modules/@babel/types/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/types@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/types@7.9.6", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/types/-/types-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@babel/helper-optimise-call-expression/package.json b/node_modules/@babel/helper-optimise-call-expression/package.json index b9cb42d5..4798f2ed 100644 --- a/node_modules/@babel/helper-optimise-call-expression/package.json +++ b/node_modules/@babel/helper-optimise-call-expression/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/helper-optimise-call-expression@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/helper-optimise-call-expression@7.8.3", @@ -34,7 +34,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/types": "^7.8.3" }, diff --git a/node_modules/@babel/helper-plugin-utils/package.json b/node_modules/@babel/helper-plugin-utils/package.json index 3f631a9b..1876b523 100644 --- a/node_modules/@babel/helper-plugin-utils/package.json +++ b/node_modules/@babel/helper-plugin-utils/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/helper-plugin-utils@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/helper-plugin-utils@7.8.3", @@ -101,7 +101,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Logan Smyth", "email": "loganfsmyth@gmail.com" diff --git a/node_modules/@babel/helper-regex/package.json b/node_modules/@babel/helper-regex/package.json index 40cef62a..f3980cb1 100644 --- a/node_modules/@babel/helper-regex/package.json +++ b/node_modules/@babel/helper-regex/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/helper-regex@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/helper-regex@7.8.3", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/helper-regex/-/helper-regex-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "lodash": "^4.17.13" }, diff --git a/node_modules/@babel/helper-remap-async-to-generator/node_modules/@babel/types/package.json b/node_modules/@babel/helper-remap-async-to-generator/node_modules/@babel/types/package.json index 89ae90ab..c8bd5290 100644 --- a/node_modules/@babel/helper-remap-async-to-generator/node_modules/@babel/types/package.json +++ b/node_modules/@babel/helper-remap-async-to-generator/node_modules/@babel/types/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/types@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/types@7.9.6", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/types/-/types-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@babel/helper-remap-async-to-generator/package.json b/node_modules/@babel/helper-remap-async-to-generator/package.json index 60c5844c..e9fc90e4 100644 --- a/node_modules/@babel/helper-remap-async-to-generator/package.json +++ b/node_modules/@babel/helper-remap-async-to-generator/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/helper-remap-async-to-generator@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/helper-remap-async-to-generator@7.8.3", @@ -32,7 +32,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-annotate-as-pure": "^7.8.3", "@babel/helper-wrap-function": "^7.8.3", diff --git a/node_modules/@babel/helper-replace-supers/node_modules/@babel/types/package.json b/node_modules/@babel/helper-replace-supers/node_modules/@babel/types/package.json index 9e6e10b8..b9b775d2 100644 --- a/node_modules/@babel/helper-replace-supers/node_modules/@babel/types/package.json +++ b/node_modules/@babel/helper-replace-supers/node_modules/@babel/types/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/types@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/types@7.9.6", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/types/-/types-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@babel/helper-replace-supers/package.json b/node_modules/@babel/helper-replace-supers/package.json index 76037103..22d0773b 100644 --- a/node_modules/@babel/helper-replace-supers/package.json +++ b/node_modules/@babel/helper-replace-supers/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/helper-replace-supers@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/helper-replace-supers@7.9.6", @@ -35,7 +35,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-member-expression-to-functions": "^7.8.3", "@babel/helper-optimise-call-expression": "^7.8.3", diff --git a/node_modules/@babel/helper-simple-access/node_modules/@babel/types/package.json b/node_modules/@babel/helper-simple-access/node_modules/@babel/types/package.json index a00865ba..ce715255 100644 --- a/node_modules/@babel/helper-simple-access/node_modules/@babel/types/package.json +++ b/node_modules/@babel/helper-simple-access/node_modules/@babel/types/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/types@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/types@7.9.6", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/types/-/types-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@babel/helper-simple-access/package.json b/node_modules/@babel/helper-simple-access/package.json index 0a06f16b..21aef9ff 100644 --- a/node_modules/@babel/helper-simple-access/package.json +++ b/node_modules/@babel/helper-simple-access/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/helper-simple-access@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/helper-simple-access@7.8.3", @@ -32,7 +32,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Logan Smyth", "email": "loganfsmyth@gmail.com" diff --git a/node_modules/@babel/helper-split-export-declaration/node_modules/@babel/types/package.json b/node_modules/@babel/helper-split-export-declaration/node_modules/@babel/types/package.json index 558b599d..cade828a 100644 --- a/node_modules/@babel/helper-split-export-declaration/node_modules/@babel/types/package.json +++ b/node_modules/@babel/helper-split-export-declaration/node_modules/@babel/types/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/types@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/types@7.9.6", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/types/-/types-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@babel/helper-split-export-declaration/package.json b/node_modules/@babel/helper-split-export-declaration/package.json index ac04903c..af5c11b8 100644 --- a/node_modules/@babel/helper-split-export-declaration/package.json +++ b/node_modules/@babel/helper-split-export-declaration/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/helper-split-export-declaration@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/helper-split-export-declaration@7.8.3", @@ -35,7 +35,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/types": "^7.8.3" }, diff --git a/node_modules/@babel/helper-validator-identifier/package.json b/node_modules/@babel/helper-validator-identifier/package.json index 8766fc2d..a892572d 100644 --- a/node_modules/@babel/helper-validator-identifier/package.json +++ b/node_modules/@babel/helper-validator-identifier/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/helper-validator-identifier@7.9.5", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/helper-validator-identifier@7.9.5", @@ -53,7 +53,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.9.5.tgz", "_spec": "7.9.5", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "description": "Validate identifier/keywords name", "devDependencies": { "charcodes": "^0.2.0", diff --git a/node_modules/@babel/helper-wrap-function/node_modules/@babel/types/package.json b/node_modules/@babel/helper-wrap-function/node_modules/@babel/types/package.json index 2f44c687..6cf2e8e4 100644 --- a/node_modules/@babel/helper-wrap-function/node_modules/@babel/types/package.json +++ b/node_modules/@babel/helper-wrap-function/node_modules/@babel/types/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/types@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/types@7.9.6", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/types/-/types-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@babel/helper-wrap-function/package.json b/node_modules/@babel/helper-wrap-function/package.json index c65745b1..de20a09e 100644 --- a/node_modules/@babel/helper-wrap-function/package.json +++ b/node_modules/@babel/helper-wrap-function/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/helper-wrap-function@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/helper-wrap-function@7.8.3", @@ -31,7 +31,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-function-name": "^7.8.3", "@babel/template": "^7.8.3", diff --git a/node_modules/@babel/helpers/node_modules/@babel/types/package.json b/node_modules/@babel/helpers/node_modules/@babel/types/package.json index 2973a8bb..dd9d4a58 100644 --- a/node_modules/@babel/helpers/node_modules/@babel/types/package.json +++ b/node_modules/@babel/helpers/node_modules/@babel/types/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/types@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/types@7.9.6", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/types/-/types-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@babel/helpers/package.json b/node_modules/@babel/helpers/package.json index efe523a5..e5457b95 100644 --- a/node_modules/@babel/helpers/package.json +++ b/node_modules/@babel/helpers/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/helpers@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/helpers@7.9.6", @@ -32,7 +32,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@babel/highlight/package.json b/node_modules/@babel/highlight/package.json index b3b749b3..52c6e45c 100644 --- a/node_modules/@babel/highlight/package.json +++ b/node_modules/@babel/highlight/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/highlight@7.5.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/highlight@7.5.0", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", "_spec": "7.5.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "suchipi", "email": "me@suchipi.com" diff --git a/node_modules/@babel/parser/package.json b/node_modules/@babel/parser/package.json index 55e0348c..6e0fb395 100644 --- a/node_modules/@babel/parser/package.json +++ b/node_modules/@babel/parser/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/parser@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/parser@7.9.6", @@ -31,7 +31,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@babel/plugin-proposal-async-generator-functions/package.json b/node_modules/@babel/plugin-proposal-async-generator-functions/package.json index 791ded9d..a7cf0e8b 100644 --- a/node_modules/@babel/plugin-proposal-async-generator-functions/package.json +++ b/node_modules/@babel/plugin-proposal-async-generator-functions/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-proposal-async-generator-functions@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-proposal-async-generator-functions@7.8.3", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.3", "@babel/helper-remap-async-to-generator": "^7.8.3", diff --git a/node_modules/@babel/plugin-proposal-class-properties/package.json b/node_modules/@babel/plugin-proposal-class-properties/package.json index c5ed8276..b8f0d4dd 100644 --- a/node_modules/@babel/plugin-proposal-class-properties/package.json +++ b/node_modules/@babel/plugin-proposal-class-properties/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-proposal-class-properties@7.3.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-proposal-class-properties@7.3.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.3.0.tgz", "_spec": "7.3.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-create-class-features-plugin": "^7.3.0", "@babel/helper-plugin-utils": "^7.0.0" diff --git a/node_modules/@babel/plugin-proposal-decorators/package.json b/node_modules/@babel/plugin-proposal-decorators/package.json index 6e711c77..9e2e3314 100644 --- a/node_modules/@babel/plugin-proposal-decorators/package.json +++ b/node_modules/@babel/plugin-proposal-decorators/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-proposal-decorators@7.3.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-proposal-decorators@7.3.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.3.0.tgz", "_spec": "7.3.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Logan Smyth", "email": "loganfsmyth@gmail.com" diff --git a/node_modules/@babel/plugin-proposal-dynamic-import/package.json b/node_modules/@babel/plugin-proposal-dynamic-import/package.json index 41d7cfb3..696bb35c 100644 --- a/node_modules/@babel/plugin-proposal-dynamic-import/package.json +++ b/node_modules/@babel/plugin-proposal-dynamic-import/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-proposal-dynamic-import@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-proposal-dynamic-import@7.8.3", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.3", "@babel/plugin-syntax-dynamic-import": "^7.8.0" diff --git a/node_modules/@babel/plugin-proposal-json-strings/package.json b/node_modules/@babel/plugin-proposal-json-strings/package.json index 08f9f819..5365deb6 100644 --- a/node_modules/@babel/plugin-proposal-json-strings/package.json +++ b/node_modules/@babel/plugin-proposal-json-strings/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-proposal-json-strings@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-proposal-json-strings@7.8.3", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.3", "@babel/plugin-syntax-json-strings": "^7.8.0" diff --git a/node_modules/@babel/plugin-proposal-nullish-coalescing-operator/package.json b/node_modules/@babel/plugin-proposal-nullish-coalescing-operator/package.json index 0b6d0686..0923806d 100644 --- a/node_modules/@babel/plugin-proposal-nullish-coalescing-operator/package.json +++ b/node_modules/@babel/plugin-proposal-nullish-coalescing-operator/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-proposal-nullish-coalescing-operator@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-proposal-nullish-coalescing-operator@7.8.3", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.3", "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.0" diff --git a/node_modules/@babel/plugin-proposal-numeric-separator/package.json b/node_modules/@babel/plugin-proposal-numeric-separator/package.json index 6d2f6c6e..61cc8693 100644 --- a/node_modules/@babel/plugin-proposal-numeric-separator/package.json +++ b/node_modules/@babel/plugin-proposal-numeric-separator/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-proposal-numeric-separator@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-proposal-numeric-separator@7.8.3", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.3", "@babel/plugin-syntax-numeric-separator": "^7.8.3" diff --git a/node_modules/@babel/plugin-proposal-object-rest-spread/package.json b/node_modules/@babel/plugin-proposal-object-rest-spread/package.json index 3daca8fc..ba780dab 100644 --- a/node_modules/@babel/plugin-proposal-object-rest-spread/package.json +++ b/node_modules/@babel/plugin-proposal-object-rest-spread/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-proposal-object-rest-spread@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-proposal-object-rest-spread@7.9.6", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.3", "@babel/plugin-syntax-object-rest-spread": "^7.8.0", diff --git a/node_modules/@babel/plugin-proposal-optional-catch-binding/package.json b/node_modules/@babel/plugin-proposal-optional-catch-binding/package.json index 35f70d56..41eab100 100644 --- a/node_modules/@babel/plugin-proposal-optional-catch-binding/package.json +++ b/node_modules/@babel/plugin-proposal-optional-catch-binding/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-proposal-optional-catch-binding@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-proposal-optional-catch-binding@7.8.3", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.3", "@babel/plugin-syntax-optional-catch-binding": "^7.8.0" diff --git a/node_modules/@babel/plugin-proposal-optional-chaining/package.json b/node_modules/@babel/plugin-proposal-optional-chaining/package.json index f75dce06..62ce6bb1 100644 --- a/node_modules/@babel/plugin-proposal-optional-chaining/package.json +++ b/node_modules/@babel/plugin-proposal-optional-chaining/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-proposal-optional-chaining@7.9.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-proposal-optional-chaining@7.9.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.9.0.tgz", "_spec": "7.9.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.3", "@babel/plugin-syntax-optional-chaining": "^7.8.0" diff --git a/node_modules/@babel/plugin-proposal-unicode-property-regex/package.json b/node_modules/@babel/plugin-proposal-unicode-property-regex/package.json index 2233f349..299dc4dd 100644 --- a/node_modules/@babel/plugin-proposal-unicode-property-regex/package.json +++ b/node_modules/@babel/plugin-proposal-unicode-property-regex/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-proposal-unicode-property-regex@7.8.8", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-proposal-unicode-property-regex@7.8.8", @@ -29,7 +29,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.8.8.tgz", "_spec": "7.8.8", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/babel/babel/issues" }, diff --git a/node_modules/@babel/plugin-syntax-async-generators/package.json b/node_modules/@babel/plugin-syntax-async-generators/package.json index f091e6ff..ddfd95ef 100644 --- a/node_modules/@babel/plugin-syntax-async-generators/package.json +++ b/node_modules/@babel/plugin-syntax-async-generators/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-syntax-async-generators@7.8.4", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-syntax-async-generators@7.8.4", @@ -29,7 +29,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", "_spec": "7.8.4", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, diff --git a/node_modules/@babel/plugin-syntax-decorators/package.json b/node_modules/@babel/plugin-syntax-decorators/package.json index 09d4b563..0ecf9b6d 100644 --- a/node_modules/@babel/plugin-syntax-decorators/package.json +++ b/node_modules/@babel/plugin-syntax-decorators/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-syntax-decorators@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-syntax-decorators@7.8.3", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.3" }, diff --git a/node_modules/@babel/plugin-syntax-dynamic-import/package.json b/node_modules/@babel/plugin-syntax-dynamic-import/package.json index 8c5ed45b..fae09202 100644 --- a/node_modules/@babel/plugin-syntax-dynamic-import/package.json +++ b/node_modules/@babel/plugin-syntax-dynamic-import/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-syntax-dynamic-import@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-syntax-dynamic-import@7.8.3", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, diff --git a/node_modules/@babel/plugin-syntax-flow/package.json b/node_modules/@babel/plugin-syntax-flow/package.json index fe0a0978..19352a8c 100644 --- a/node_modules/@babel/plugin-syntax-flow/package.json +++ b/node_modules/@babel/plugin-syntax-flow/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-syntax-flow@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-syntax-flow@7.8.3", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.3" }, diff --git a/node_modules/@babel/plugin-syntax-json-strings/package.json b/node_modules/@babel/plugin-syntax-json-strings/package.json index 907fce36..320ae9ef 100644 --- a/node_modules/@babel/plugin-syntax-json-strings/package.json +++ b/node_modules/@babel/plugin-syntax-json-strings/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-syntax-json-strings@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-syntax-json-strings@7.8.3", @@ -29,7 +29,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, diff --git a/node_modules/@babel/plugin-syntax-jsx/package.json b/node_modules/@babel/plugin-syntax-jsx/package.json index 9a83344e..9ced27a0 100644 --- a/node_modules/@babel/plugin-syntax-jsx/package.json +++ b/node_modules/@babel/plugin-syntax-jsx/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-syntax-jsx@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-syntax-jsx@7.8.3", @@ -30,7 +30,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.3" }, diff --git a/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/package.json b/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/package.json index 96949d9f..cb22ad06 100644 --- a/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/package.json +++ b/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-syntax-nullish-coalescing-operator@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-syntax-nullish-coalescing-operator@7.8.3", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, diff --git a/node_modules/@babel/plugin-syntax-numeric-separator/package.json b/node_modules/@babel/plugin-syntax-numeric-separator/package.json index 07abdcf3..5b6b62ec 100644 --- a/node_modules/@babel/plugin-syntax-numeric-separator/package.json +++ b/node_modules/@babel/plugin-syntax-numeric-separator/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-syntax-numeric-separator@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-syntax-numeric-separator@7.8.3", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.3" }, diff --git a/node_modules/@babel/plugin-syntax-object-rest-spread/package.json b/node_modules/@babel/plugin-syntax-object-rest-spread/package.json index 49f0c97d..2c8853ae 100644 --- a/node_modules/@babel/plugin-syntax-object-rest-spread/package.json +++ b/node_modules/@babel/plugin-syntax-object-rest-spread/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-syntax-object-rest-spread@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-syntax-object-rest-spread@7.8.3", @@ -30,7 +30,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, diff --git a/node_modules/@babel/plugin-syntax-optional-catch-binding/package.json b/node_modules/@babel/plugin-syntax-optional-catch-binding/package.json index 81fe6e91..4c9a4fac 100644 --- a/node_modules/@babel/plugin-syntax-optional-catch-binding/package.json +++ b/node_modules/@babel/plugin-syntax-optional-catch-binding/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-syntax-optional-catch-binding@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-syntax-optional-catch-binding@7.8.3", @@ -29,7 +29,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, diff --git a/node_modules/@babel/plugin-syntax-optional-chaining/package.json b/node_modules/@babel/plugin-syntax-optional-chaining/package.json index 627a00a4..dadf35d5 100644 --- a/node_modules/@babel/plugin-syntax-optional-chaining/package.json +++ b/node_modules/@babel/plugin-syntax-optional-chaining/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-syntax-optional-chaining@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-syntax-optional-chaining@7.8.3", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, diff --git a/node_modules/@babel/plugin-syntax-top-level-await/package.json b/node_modules/@babel/plugin-syntax-top-level-await/package.json index 4d1f7ace..abe76935 100644 --- a/node_modules/@babel/plugin-syntax-top-level-await/package.json +++ b/node_modules/@babel/plugin-syntax-top-level-await/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-syntax-top-level-await@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-syntax-top-level-await@7.8.3", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.3" }, diff --git a/node_modules/@babel/plugin-syntax-typescript/package.json b/node_modules/@babel/plugin-syntax-typescript/package.json index 8b311844..c1e9ba87 100644 --- a/node_modules/@babel/plugin-syntax-typescript/package.json +++ b/node_modules/@babel/plugin-syntax-typescript/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-syntax-typescript@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-syntax-typescript@7.8.3", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.3" }, diff --git a/node_modules/@babel/plugin-transform-arrow-functions/package.json b/node_modules/@babel/plugin-transform-arrow-functions/package.json index 98e665cd..5e106fb0 100644 --- a/node_modules/@babel/plugin-transform-arrow-functions/package.json +++ b/node_modules/@babel/plugin-transform-arrow-functions/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-arrow-functions@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-arrow-functions@7.8.3", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.3" }, diff --git a/node_modules/@babel/plugin-transform-async-to-generator/node_modules/@babel/helper-module-imports/package.json b/node_modules/@babel/plugin-transform-async-to-generator/node_modules/@babel/helper-module-imports/package.json index 556b9c46..e2ab026f 100644 --- a/node_modules/@babel/plugin-transform-async-to-generator/node_modules/@babel/helper-module-imports/package.json +++ b/node_modules/@babel/plugin-transform-async-to-generator/node_modules/@babel/helper-module-imports/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/helper-module-imports@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/helper-module-imports@7.8.3", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Logan Smyth", "email": "loganfsmyth@gmail.com" diff --git a/node_modules/@babel/plugin-transform-async-to-generator/node_modules/@babel/types/package.json b/node_modules/@babel/plugin-transform-async-to-generator/node_modules/@babel/types/package.json index d39837d9..87847b4b 100644 --- a/node_modules/@babel/plugin-transform-async-to-generator/node_modules/@babel/types/package.json +++ b/node_modules/@babel/plugin-transform-async-to-generator/node_modules/@babel/types/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/types@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/types@7.9.6", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/types/-/types-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@babel/plugin-transform-async-to-generator/package.json b/node_modules/@babel/plugin-transform-async-to-generator/package.json index 32d9e788..bd5d6d89 100644 --- a/node_modules/@babel/plugin-transform-async-to-generator/package.json +++ b/node_modules/@babel/plugin-transform-async-to-generator/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-async-to-generator@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-async-to-generator@7.8.3", @@ -32,7 +32,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-module-imports": "^7.8.3", "@babel/helper-plugin-utils": "^7.8.3", diff --git a/node_modules/@babel/plugin-transform-block-scoped-functions/package.json b/node_modules/@babel/plugin-transform-block-scoped-functions/package.json index 331164d1..65293417 100644 --- a/node_modules/@babel/plugin-transform-block-scoped-functions/package.json +++ b/node_modules/@babel/plugin-transform-block-scoped-functions/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-block-scoped-functions@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-block-scoped-functions@7.8.3", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.3" }, diff --git a/node_modules/@babel/plugin-transform-block-scoping/package.json b/node_modules/@babel/plugin-transform-block-scoping/package.json index 6034a398..8182fb9e 100644 --- a/node_modules/@babel/plugin-transform-block-scoping/package.json +++ b/node_modules/@babel/plugin-transform-block-scoping/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-block-scoping@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-block-scoping@7.8.3", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.3", "lodash": "^4.17.13" diff --git a/node_modules/@babel/plugin-transform-classes/package.json b/node_modules/@babel/plugin-transform-classes/package.json index 055aa9ea..8035206e 100644 --- a/node_modules/@babel/plugin-transform-classes/package.json +++ b/node_modules/@babel/plugin-transform-classes/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-classes@7.9.5", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-classes@7.9.5", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.9.5.tgz", "_spec": "7.9.5", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-annotate-as-pure": "^7.8.3", "@babel/helper-define-map": "^7.8.3", diff --git a/node_modules/@babel/plugin-transform-computed-properties/package.json b/node_modules/@babel/plugin-transform-computed-properties/package.json index 20d8bf68..4650db14 100644 --- a/node_modules/@babel/plugin-transform-computed-properties/package.json +++ b/node_modules/@babel/plugin-transform-computed-properties/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-computed-properties@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-computed-properties@7.8.3", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.3" }, diff --git a/node_modules/@babel/plugin-transform-destructuring/package.json b/node_modules/@babel/plugin-transform-destructuring/package.json index 73fb7077..cc762c9b 100644 --- a/node_modules/@babel/plugin-transform-destructuring/package.json +++ b/node_modules/@babel/plugin-transform-destructuring/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-destructuring@7.9.5", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-destructuring@7.9.5", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.9.5.tgz", "_spec": "7.9.5", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.3" }, diff --git a/node_modules/@babel/plugin-transform-dotall-regex/package.json b/node_modules/@babel/plugin-transform-dotall-regex/package.json index 253c31b8..f2f443e0 100644 --- a/node_modules/@babel/plugin-transform-dotall-regex/package.json +++ b/node_modules/@babel/plugin-transform-dotall-regex/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-dotall-regex@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-dotall-regex@7.8.3", @@ -29,7 +29,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/babel/babel/issues" }, diff --git a/node_modules/@babel/plugin-transform-duplicate-keys/package.json b/node_modules/@babel/plugin-transform-duplicate-keys/package.json index b2298e82..74800cd6 100644 --- a/node_modules/@babel/plugin-transform-duplicate-keys/package.json +++ b/node_modules/@babel/plugin-transform-duplicate-keys/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-duplicate-keys@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-duplicate-keys@7.8.3", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.3" }, diff --git a/node_modules/@babel/plugin-transform-exponentiation-operator/package.json b/node_modules/@babel/plugin-transform-exponentiation-operator/package.json index 81d5d333..2e9a0f4b 100644 --- a/node_modules/@babel/plugin-transform-exponentiation-operator/package.json +++ b/node_modules/@babel/plugin-transform-exponentiation-operator/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-exponentiation-operator@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-exponentiation-operator@7.8.3", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-builder-binary-assignment-operator-visitor": "^7.8.3", "@babel/helper-plugin-utils": "^7.8.3" diff --git a/node_modules/@babel/plugin-transform-flow-strip-types/package.json b/node_modules/@babel/plugin-transform-flow-strip-types/package.json index b588bb37..21474ade 100644 --- a/node_modules/@babel/plugin-transform-flow-strip-types/package.json +++ b/node_modules/@babel/plugin-transform-flow-strip-types/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-flow-strip-types@7.2.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-flow-strip-types@7.2.3", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.2.3.tgz", "_spec": "7.2.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.0.0", "@babel/plugin-syntax-flow": "^7.2.0" diff --git a/node_modules/@babel/plugin-transform-for-of/package.json b/node_modules/@babel/plugin-transform-for-of/package.json index f3475ed0..e1929ae6 100644 --- a/node_modules/@babel/plugin-transform-for-of/package.json +++ b/node_modules/@babel/plugin-transform-for-of/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-for-of@7.9.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-for-of@7.9.0", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.9.0.tgz", "_spec": "7.9.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.3" }, diff --git a/node_modules/@babel/plugin-transform-function-name/package.json b/node_modules/@babel/plugin-transform-function-name/package.json index c79b0828..9168f221 100644 --- a/node_modules/@babel/plugin-transform-function-name/package.json +++ b/node_modules/@babel/plugin-transform-function-name/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-function-name@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-function-name@7.8.3", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-function-name": "^7.8.3", "@babel/helper-plugin-utils": "^7.8.3" diff --git a/node_modules/@babel/plugin-transform-literals/package.json b/node_modules/@babel/plugin-transform-literals/package.json index 3813ec51..6c790515 100644 --- a/node_modules/@babel/plugin-transform-literals/package.json +++ b/node_modules/@babel/plugin-transform-literals/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-literals@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-literals@7.8.3", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.3" }, diff --git a/node_modules/@babel/plugin-transform-member-expression-literals/package.json b/node_modules/@babel/plugin-transform-member-expression-literals/package.json index e74c1701..2ea7ba25 100644 --- a/node_modules/@babel/plugin-transform-member-expression-literals/package.json +++ b/node_modules/@babel/plugin-transform-member-expression-literals/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-member-expression-literals@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-member-expression-literals@7.8.3", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.3" }, diff --git a/node_modules/@babel/plugin-transform-modules-amd/package.json b/node_modules/@babel/plugin-transform-modules-amd/package.json index 36dfcd76..f2c7d488 100644 --- a/node_modules/@babel/plugin-transform-modules-amd/package.json +++ b/node_modules/@babel/plugin-transform-modules-amd/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-modules-amd@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-modules-amd@7.9.6", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-module-transforms": "^7.9.0", "@babel/helper-plugin-utils": "^7.8.3", diff --git a/node_modules/@babel/plugin-transform-modules-commonjs/package.json b/node_modules/@babel/plugin-transform-modules-commonjs/package.json index 9f5ec96b..9a128bb6 100644 --- a/node_modules/@babel/plugin-transform-modules-commonjs/package.json +++ b/node_modules/@babel/plugin-transform-modules-commonjs/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-modules-commonjs@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-modules-commonjs@7.9.6", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-module-transforms": "^7.9.0", "@babel/helper-plugin-utils": "^7.8.3", diff --git a/node_modules/@babel/plugin-transform-modules-systemjs/package.json b/node_modules/@babel/plugin-transform-modules-systemjs/package.json index 755c8542..cccf5813 100644 --- a/node_modules/@babel/plugin-transform-modules-systemjs/package.json +++ b/node_modules/@babel/plugin-transform-modules-systemjs/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-modules-systemjs@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-modules-systemjs@7.9.6", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-hoist-variables": "^7.8.3", "@babel/helper-module-transforms": "^7.9.0", diff --git a/node_modules/@babel/plugin-transform-modules-umd/package.json b/node_modules/@babel/plugin-transform-modules-umd/package.json index 0f92e024..8b383d6a 100644 --- a/node_modules/@babel/plugin-transform-modules-umd/package.json +++ b/node_modules/@babel/plugin-transform-modules-umd/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-modules-umd@7.9.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-modules-umd@7.9.0", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.9.0.tgz", "_spec": "7.9.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-module-transforms": "^7.9.0", "@babel/helper-plugin-utils": "^7.8.3" diff --git a/node_modules/@babel/plugin-transform-named-capturing-groups-regex/package.json b/node_modules/@babel/plugin-transform-named-capturing-groups-regex/package.json index 2d5de83e..7a17c67a 100644 --- a/node_modules/@babel/plugin-transform-named-capturing-groups-regex/package.json +++ b/node_modules/@babel/plugin-transform-named-capturing-groups-regex/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-named-capturing-groups-regex@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-named-capturing-groups-regex@7.8.3", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/babel/babel/issues" }, diff --git a/node_modules/@babel/plugin-transform-new-target/package.json b/node_modules/@babel/plugin-transform-new-target/package.json index 523fa7a9..a84ff292 100644 --- a/node_modules/@babel/plugin-transform-new-target/package.json +++ b/node_modules/@babel/plugin-transform-new-target/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-new-target@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-new-target@7.8.3", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.3" }, diff --git a/node_modules/@babel/plugin-transform-object-super/package.json b/node_modules/@babel/plugin-transform-object-super/package.json index 482ef7db..3574b12f 100644 --- a/node_modules/@babel/plugin-transform-object-super/package.json +++ b/node_modules/@babel/plugin-transform-object-super/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-object-super@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-object-super@7.8.3", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.3", "@babel/helper-replace-supers": "^7.8.3" diff --git a/node_modules/@babel/plugin-transform-parameters/package.json b/node_modules/@babel/plugin-transform-parameters/package.json index 68317f71..c923567e 100644 --- a/node_modules/@babel/plugin-transform-parameters/package.json +++ b/node_modules/@babel/plugin-transform-parameters/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-parameters@7.9.5", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-parameters@7.9.5", @@ -29,7 +29,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.9.5.tgz", "_spec": "7.9.5", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-get-function-arity": "^7.8.3", "@babel/helper-plugin-utils": "^7.8.3" diff --git a/node_modules/@babel/plugin-transform-property-literals/package.json b/node_modules/@babel/plugin-transform-property-literals/package.json index 8fd66edf..50713607 100644 --- a/node_modules/@babel/plugin-transform-property-literals/package.json +++ b/node_modules/@babel/plugin-transform-property-literals/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-property-literals@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-property-literals@7.8.3", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.3" }, diff --git a/node_modules/@babel/plugin-transform-react-constant-elements/package.json b/node_modules/@babel/plugin-transform-react-constant-elements/package.json index 69dbb0d7..fbacfd8a 100644 --- a/node_modules/@babel/plugin-transform-react-constant-elements/package.json +++ b/node_modules/@babel/plugin-transform-react-constant-elements/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-react-constant-elements@7.9.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-react-constant-elements@7.9.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-constant-elements/-/plugin-transform-react-constant-elements-7.9.0.tgz", "_spec": "7.9.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.3" }, diff --git a/node_modules/@babel/plugin-transform-react-display-name/package.json b/node_modules/@babel/plugin-transform-react-display-name/package.json index 80699cd6..8a35beeb 100644 --- a/node_modules/@babel/plugin-transform-react-display-name/package.json +++ b/node_modules/@babel/plugin-transform-react-display-name/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-react-display-name@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-react-display-name@7.8.3", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.3" }, diff --git a/node_modules/@babel/plugin-transform-react-jsx-development/package.json b/node_modules/@babel/plugin-transform-react-jsx-development/package.json index 3b70d9d2..7529c911 100644 --- a/node_modules/@babel/plugin-transform-react-jsx-development/package.json +++ b/node_modules/@babel/plugin-transform-react-jsx-development/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-react-jsx-development@7.9.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-react-jsx-development@7.9.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.9.0.tgz", "_spec": "7.9.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-builder-react-jsx-experimental": "^7.9.0", "@babel/helper-plugin-utils": "^7.8.3", diff --git a/node_modules/@babel/plugin-transform-react-jsx-self/package.json b/node_modules/@babel/plugin-transform-react-jsx-self/package.json index 530156dc..365930ac 100644 --- a/node_modules/@babel/plugin-transform-react-jsx-self/package.json +++ b/node_modules/@babel/plugin-transform-react-jsx-self/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-react-jsx-self@7.9.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-react-jsx-self@7.9.0", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.9.0.tgz", "_spec": "7.9.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.3", "@babel/plugin-syntax-jsx": "^7.8.3" diff --git a/node_modules/@babel/plugin-transform-react-jsx-source/package.json b/node_modules/@babel/plugin-transform-react-jsx-source/package.json index ccb04462..50994da3 100644 --- a/node_modules/@babel/plugin-transform-react-jsx-source/package.json +++ b/node_modules/@babel/plugin-transform-react-jsx-source/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-react-jsx-source@7.9.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-react-jsx-source@7.9.0", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.9.0.tgz", "_spec": "7.9.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.3", "@babel/plugin-syntax-jsx": "^7.8.3" diff --git a/node_modules/@babel/plugin-transform-react-jsx/package.json b/node_modules/@babel/plugin-transform-react-jsx/package.json index 9dbf63bf..46c6ad46 100644 --- a/node_modules/@babel/plugin-transform-react-jsx/package.json +++ b/node_modules/@babel/plugin-transform-react-jsx/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-react-jsx@7.9.4", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-react-jsx@7.9.4", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.9.4.tgz", "_spec": "7.9.4", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-builder-react-jsx": "^7.9.0", "@babel/helper-builder-react-jsx-experimental": "^7.9.0", diff --git a/node_modules/@babel/plugin-transform-regenerator/package.json b/node_modules/@babel/plugin-transform-regenerator/package.json index 019103ea..af39ef55 100644 --- a/node_modules/@babel/plugin-transform-regenerator/package.json +++ b/node_modules/@babel/plugin-transform-regenerator/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-regenerator@7.8.7", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-regenerator@7.8.7", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.8.7.tgz", "_spec": "7.8.7", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Ben Newman", "email": "bn@cs.stanford.edu" diff --git a/node_modules/@babel/plugin-transform-reserved-words/package.json b/node_modules/@babel/plugin-transform-reserved-words/package.json index c5eb5fb9..b3088074 100644 --- a/node_modules/@babel/plugin-transform-reserved-words/package.json +++ b/node_modules/@babel/plugin-transform-reserved-words/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-reserved-words@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-reserved-words@7.8.3", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.3" }, diff --git a/node_modules/@babel/plugin-transform-runtime/package.json b/node_modules/@babel/plugin-transform-runtime/package.json index 4bc7ce1c..b0bb5dd6 100644 --- a/node_modules/@babel/plugin-transform-runtime/package.json +++ b/node_modules/@babel/plugin-transform-runtime/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-runtime@7.2.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-runtime@7.2.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.2.0.tgz", "_spec": "7.2.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-module-imports": "^7.0.0", "@babel/helper-plugin-utils": "^7.0.0", diff --git a/node_modules/@babel/plugin-transform-shorthand-properties/package.json b/node_modules/@babel/plugin-transform-shorthand-properties/package.json index 78a4342e..81fbf5a5 100644 --- a/node_modules/@babel/plugin-transform-shorthand-properties/package.json +++ b/node_modules/@babel/plugin-transform-shorthand-properties/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-shorthand-properties@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-shorthand-properties@7.8.3", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.3" }, diff --git a/node_modules/@babel/plugin-transform-spread/package.json b/node_modules/@babel/plugin-transform-spread/package.json index 08dd11fd..c5495c3c 100644 --- a/node_modules/@babel/plugin-transform-spread/package.json +++ b/node_modules/@babel/plugin-transform-spread/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-spread@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-spread@7.8.3", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.3" }, diff --git a/node_modules/@babel/plugin-transform-sticky-regex/package.json b/node_modules/@babel/plugin-transform-sticky-regex/package.json index bf44e6ca..357f8cab 100644 --- a/node_modules/@babel/plugin-transform-sticky-regex/package.json +++ b/node_modules/@babel/plugin-transform-sticky-regex/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-sticky-regex@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-sticky-regex@7.8.3", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.3", "@babel/helper-regex": "^7.8.3" diff --git a/node_modules/@babel/plugin-transform-template-literals/package.json b/node_modules/@babel/plugin-transform-template-literals/package.json index 3d50e30e..798fb049 100644 --- a/node_modules/@babel/plugin-transform-template-literals/package.json +++ b/node_modules/@babel/plugin-transform-template-literals/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-template-literals@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-template-literals@7.8.3", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-annotate-as-pure": "^7.8.3", "@babel/helper-plugin-utils": "^7.8.3" diff --git a/node_modules/@babel/plugin-transform-typeof-symbol/package.json b/node_modules/@babel/plugin-transform-typeof-symbol/package.json index c28690f7..f88ad81b 100644 --- a/node_modules/@babel/plugin-transform-typeof-symbol/package.json +++ b/node_modules/@babel/plugin-transform-typeof-symbol/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-typeof-symbol@7.8.4", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-typeof-symbol@7.8.4", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.8.4.tgz", "_spec": "7.8.4", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.8.3" }, diff --git a/node_modules/@babel/plugin-transform-typescript/package.json b/node_modules/@babel/plugin-transform-typescript/package.json index f58c3ca1..502cf178 100644 --- a/node_modules/@babel/plugin-transform-typescript/package.json +++ b/node_modules/@babel/plugin-transform-typescript/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-typescript@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-typescript@7.9.6", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-create-class-features-plugin": "^7.9.6", "@babel/helper-plugin-utils": "^7.8.3", diff --git a/node_modules/@babel/plugin-transform-unicode-regex/package.json b/node_modules/@babel/plugin-transform-unicode-regex/package.json index 3345f123..c3900b2a 100644 --- a/node_modules/@babel/plugin-transform-unicode-regex/package.json +++ b/node_modules/@babel/plugin-transform-unicode-regex/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-unicode-regex@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-unicode-regex@7.8.3", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-create-regexp-features-plugin": "^7.8.3", "@babel/helper-plugin-utils": "^7.8.3" diff --git a/node_modules/@babel/preset-env/node_modules/@babel/helper-module-imports/package.json b/node_modules/@babel/preset-env/node_modules/@babel/helper-module-imports/package.json index 5d53690a..6ea8af68 100644 --- a/node_modules/@babel/preset-env/node_modules/@babel/helper-module-imports/package.json +++ b/node_modules/@babel/preset-env/node_modules/@babel/helper-module-imports/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/helper-module-imports@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/helper-module-imports@7.8.3", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Logan Smyth", "email": "loganfsmyth@gmail.com" diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/package.json b/node_modules/@babel/preset-env/node_modules/@babel/types/package.json index 2994fd1f..c50842ae 100644 --- a/node_modules/@babel/preset-env/node_modules/@babel/types/package.json +++ b/node_modules/@babel/preset-env/node_modules/@babel/types/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/types@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/types@7.9.6", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/types/-/types-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@babel/preset-env/package.json b/node_modules/@babel/preset-env/package.json index 55d2331c..683e1cc2 100644 --- a/node_modules/@babel/preset-env/package.json +++ b/node_modules/@babel/preset-env/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/preset-env@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/preset-env@7.9.6", @@ -31,7 +31,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Henry Zhu", "email": "hi@henryzoo.com" diff --git a/node_modules/@babel/preset-modules/package.json b/node_modules/@babel/preset-modules/package.json index 0773c53a..2964dc9f 100644 --- a/node_modules/@babel/preset-modules/package.json +++ b/node_modules/@babel/preset-modules/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/preset-modules@0.1.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/preset-modules@0.1.3", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.3.tgz", "_spec": "0.1.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "authors": [ "Jason Miller " ], diff --git a/node_modules/@babel/preset-react/package.json b/node_modules/@babel/preset-react/package.json index 6825cf90..770d9c2e 100644 --- a/node_modules/@babel/preset-react/package.json +++ b/node_modules/@babel/preset-react/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/preset-react@7.9.4", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/preset-react@7.9.4", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.9.4.tgz", "_spec": "7.9.4", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@babel/preset-typescript/package.json b/node_modules/@babel/preset-typescript/package.json index a3288225..27f0d1ea 100644 --- a/node_modules/@babel/preset-typescript/package.json +++ b/node_modules/@babel/preset-typescript/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/preset-typescript@7.1.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/preset-typescript@7.1.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.1.0.tgz", "_spec": "7.1.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.0.0", "@babel/plugin-transform-typescript": "^7.1.0" diff --git a/node_modules/@babel/runtime/package.json b/node_modules/@babel/runtime/package.json index fb929a75..48eb0577 100644 --- a/node_modules/@babel/runtime/package.json +++ b/node_modules/@babel/runtime/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/runtime@7.7.4", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/runtime@7.7.4", @@ -67,7 +67,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.7.4.tgz", "_spec": "7.7.4", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@babel/template/node_modules/@babel/code-frame/package.json b/node_modules/@babel/template/node_modules/@babel/code-frame/package.json index bbebe8bf..64d7f391 100644 --- a/node_modules/@babel/template/node_modules/@babel/code-frame/package.json +++ b/node_modules/@babel/template/node_modules/@babel/code-frame/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/code-frame@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/code-frame@7.8.3", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@babel/template/node_modules/@babel/highlight/package.json b/node_modules/@babel/template/node_modules/@babel/highlight/package.json index b1b11ece..627633ef 100644 --- a/node_modules/@babel/template/node_modules/@babel/highlight/package.json +++ b/node_modules/@babel/template/node_modules/@babel/highlight/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/highlight@7.9.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/highlight@7.9.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.9.0.tgz", "_spec": "7.9.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "suchipi", "email": "me@suchipi.com" diff --git a/node_modules/@babel/template/node_modules/@babel/types/package.json b/node_modules/@babel/template/node_modules/@babel/types/package.json index 0cc700fa..969c46df 100644 --- a/node_modules/@babel/template/node_modules/@babel/types/package.json +++ b/node_modules/@babel/template/node_modules/@babel/types/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/types@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/types@7.9.6", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/types/-/types-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@babel/template/package.json b/node_modules/@babel/template/package.json index f439830f..823a53bf 100644 --- a/node_modules/@babel/template/package.json +++ b/node_modules/@babel/template/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/template@7.8.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/template@7.8.6", @@ -40,7 +40,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/template/-/template-7.8.6.tgz", "_spec": "7.8.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@babel/traverse/node_modules/@babel/code-frame/package.json b/node_modules/@babel/traverse/node_modules/@babel/code-frame/package.json index a1213390..94d75e97 100644 --- a/node_modules/@babel/traverse/node_modules/@babel/code-frame/package.json +++ b/node_modules/@babel/traverse/node_modules/@babel/code-frame/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/code-frame@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/code-frame@7.8.3", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@babel/traverse/node_modules/@babel/highlight/package.json b/node_modules/@babel/traverse/node_modules/@babel/highlight/package.json index f4793e9a..845e2db5 100644 --- a/node_modules/@babel/traverse/node_modules/@babel/highlight/package.json +++ b/node_modules/@babel/traverse/node_modules/@babel/highlight/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/highlight@7.9.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/highlight@7.9.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.9.0.tgz", "_spec": "7.9.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "suchipi", "email": "me@suchipi.com" diff --git a/node_modules/@babel/traverse/node_modules/@babel/types/package.json b/node_modules/@babel/traverse/node_modules/@babel/types/package.json index 013dc012..19ae2645 100644 --- a/node_modules/@babel/traverse/node_modules/@babel/types/package.json +++ b/node_modules/@babel/traverse/node_modules/@babel/types/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/types@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/types@7.9.6", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/types/-/types-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@babel/traverse/package.json b/node_modules/@babel/traverse/package.json index b2b5c736..e573e2e0 100644 --- a/node_modules/@babel/traverse/package.json +++ b/node_modules/@babel/traverse/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/traverse@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/traverse@7.9.6", @@ -40,7 +40,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@babel/types/package.json b/node_modules/@babel/types/package.json index 2d4bff91..ea5bb844 100644 --- a/node_modules/@babel/types/package.json +++ b/node_modules/@babel/types/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/types@7.7.4", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/types@7.7.4", @@ -31,7 +31,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.4.tgz", "_spec": "7.7.4", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@csstools/convert-colors/package.json b/node_modules/@csstools/convert-colors/package.json index 7ae0344b..ef192dd9 100644 --- a/node_modules/@csstools/convert-colors/package.json +++ b/node_modules/@csstools/convert-colors/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@csstools/convert-colors@1.4.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@csstools/convert-colors@1.4.0", @@ -29,7 +29,7 @@ ], "_resolved": "https://registry.npmjs.org/@csstools/convert-colors/-/convert-colors-1.4.0.tgz", "_spec": "1.4.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jonathan Neal", "email": "jonathantneal@hotmail.com" diff --git a/node_modules/@emotion/cache/package.json b/node_modules/@emotion/cache/package.json index 194d8116..929304ea 100644 --- a/node_modules/@emotion/cache/package.json +++ b/node_modules/@emotion/cache/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@emotion/cache@10.0.27", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@emotion/cache@10.0.27", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@emotion/cache/-/cache-10.0.27.tgz", "_spec": "10.0.27", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "browser": { "./dist/cache.cjs.js": "./dist/cache.browser.cjs.js", "./dist/cache.esm.js": "./dist/cache.browser.esm.js" diff --git a/node_modules/@emotion/hash/package.json b/node_modules/@emotion/hash/package.json index a5a16d7a..89dd67ab 100644 --- a/node_modules/@emotion/hash/package.json +++ b/node_modules/@emotion/hash/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@emotion/hash@0.7.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@emotion/hash@0.7.3", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.7.3.tgz", "_spec": "0.7.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "browser": { "./dist/hash.cjs.js": "./dist/hash.browser.cjs.js", "./dist/hash.esm.js": "./dist/hash.browser.esm.js" diff --git a/node_modules/@emotion/is-prop-valid/CHANGELOG.md b/node_modules/@emotion/is-prop-valid/CHANGELOG.md deleted file mode 100644 index 64c1c2bf..00000000 --- a/node_modules/@emotion/is-prop-valid/CHANGELOG.md +++ /dev/null @@ -1,56 +0,0 @@ -# @emotion/is-prop-valid - -## 0.8.8 - -### Patch Changes - -- [`babbbe3`](https://github.com/emotion-js/emotion/commit/babbbe36844f26f6d7041f1d3aeb47d5dfb08d8a) [#1792](https://github.com/emotion-js/emotion/pull/1792) Thanks [@egdbear](https://github.com/egdbear)! - Adds `disablePictureInPicture` to the list of allowed props. - -## 0.8.7 - -### Patch Changes - -- [`12141c5`](https://github.com/emotion-js/emotion/commit/12141c54318c0738b60bf755e033cf6e12238a02) [#1736](https://github.com/emotion-js/emotion/pull/1736) Thanks [@bezoerb](https://github.com/bezoerb)! - Adds inert to the list of allowed props - -## 0.8.6 - -### Patch Changes - -- [`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968) [#1698](https://github.com/emotion-js/emotion/pull/1698) Thanks [@Andarist](https://github.com/Andarist)! - Add LICENSE file -- Updated dependencies [[`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968)]: - - @emotion/memoize@0.7.4 - -## 0.8.5 - -### Patch Changes - -- [`5e17e456`](https://github.com/emotion-js/emotion/commit/5e17e456a66857bb3a3a5b39c9cd8f8dd89301e5) [#1596](https://github.com/emotion-js/emotion/pull/1596) Thanks [@Andarist](https://github.com/Andarist)! - Added Flow types to the package. - -## 0.8.4 - -### Patch Changes - -- [`6cdb5695`](https://github.com/emotion-js/emotion/commit/6cdb56959bc4b64d7178604f1eb64a058c2e58c2) [#1584](https://github.com/emotion-js/emotion/pull/1584) Thanks [@probablyup](https://github.com/probablyup)! - add "on" amp html attribute to the whitelist - -## 0.8.3 - -- Updated dependencies [c81c0033]: - - @emotion/memoize@0.7.3 - -## 0.8.2 - -### Patch Changes - -- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Update build tool - -## 0.8.1 - -### Patch Changes - -- [52bd655b](https://github.com/emotion-js/emotion/commit/52bd655b) [#1379](https://github.com/emotion-js/emotion/pull/1379) Thanks [@Andarist](https://github.com/Andarist)! - Add decoding as valid prop - -## 0.8.0 - -### Minor Changes - -- [06426c95](https://github.com/emotion-js/emotion/commit/06426c95) [#1377](https://github.com/emotion-js/emotion/pull/1377) Thanks [@AjayPoshak](https://github.com/AjayPoshak)! - Mark loading as a valid property. This property is used to lazily load images and iFrames. diff --git a/node_modules/@emotion/is-prop-valid/LICENSE b/node_modules/@emotion/is-prop-valid/LICENSE deleted file mode 100644 index 56e808de..00000000 --- a/node_modules/@emotion/is-prop-valid/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) Emotion team and other contributors - -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. diff --git a/node_modules/@emotion/is-prop-valid/README.md b/node_modules/@emotion/is-prop-valid/README.md deleted file mode 100644 index 1fee3f4e..00000000 --- a/node_modules/@emotion/is-prop-valid/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# @emotion/is-prop-valid - -> Check whether a prop is valid for HTML and SVG elements - -```bash -yarn add @emotion/is-prop-valid -``` - -```jsx -import isPropValid from '@emotion/is-prop-valid' - -isPropValid('href') // true - -isPropValid('someRandomProp') // false -``` diff --git a/node_modules/@emotion/is-prop-valid/dist/is-prop-valid.browser.cjs.js b/node_modules/@emotion/is-prop-valid/dist/is-prop-valid.browser.cjs.js deleted file mode 100644 index 5d75df57..00000000 --- a/node_modules/@emotion/is-prop-valid/dist/is-prop-valid.browser.cjs.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } - -var memoize = _interopDefault(require('@emotion/memoize')); - -var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23 - -var index = memoize(function (prop) { - return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 - /* o */ - && prop.charCodeAt(1) === 110 - /* n */ - && prop.charCodeAt(2) < 91; -} -/* Z+1 */ -); - -exports.default = index; diff --git a/node_modules/@emotion/is-prop-valid/dist/is-prop-valid.browser.esm.js b/node_modules/@emotion/is-prop-valid/dist/is-prop-valid.browser.esm.js deleted file mode 100644 index 05023758..00000000 --- a/node_modules/@emotion/is-prop-valid/dist/is-prop-valid.browser.esm.js +++ /dev/null @@ -1,15 +0,0 @@ -import memoize from '@emotion/memoize'; - -var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23 - -var index = memoize(function (prop) { - return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 - /* o */ - && prop.charCodeAt(1) === 110 - /* n */ - && prop.charCodeAt(2) < 91; -} -/* Z+1 */ -); - -export default index; diff --git a/node_modules/@emotion/is-prop-valid/dist/is-prop-valid.cjs.dev.js b/node_modules/@emotion/is-prop-valid/dist/is-prop-valid.cjs.dev.js deleted file mode 100644 index 5d75df57..00000000 --- a/node_modules/@emotion/is-prop-valid/dist/is-prop-valid.cjs.dev.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } - -var memoize = _interopDefault(require('@emotion/memoize')); - -var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23 - -var index = memoize(function (prop) { - return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 - /* o */ - && prop.charCodeAt(1) === 110 - /* n */ - && prop.charCodeAt(2) < 91; -} -/* Z+1 */ -); - -exports.default = index; diff --git a/node_modules/@emotion/is-prop-valid/dist/is-prop-valid.cjs.js b/node_modules/@emotion/is-prop-valid/dist/is-prop-valid.cjs.js deleted file mode 100644 index 9369cd88..00000000 --- a/node_modules/@emotion/is-prop-valid/dist/is-prop-valid.cjs.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -if (process.env.NODE_ENV === "production") { - module.exports = require("./is-prop-valid.cjs.prod.js"); -} else { - module.exports = require("./is-prop-valid.cjs.dev.js"); -} diff --git a/node_modules/@emotion/is-prop-valid/dist/is-prop-valid.cjs.js.flow b/node_modules/@emotion/is-prop-valid/dist/is-prop-valid.cjs.js.flow deleted file mode 100644 index 71889637..00000000 --- a/node_modules/@emotion/is-prop-valid/dist/is-prop-valid.cjs.js.flow +++ /dev/null @@ -1,3 +0,0 @@ -// @flow -export * from "../src/index.js"; -export { default } from "../src/index.js"; diff --git a/node_modules/@emotion/is-prop-valid/dist/is-prop-valid.cjs.prod.js b/node_modules/@emotion/is-prop-valid/dist/is-prop-valid.cjs.prod.js deleted file mode 100644 index a1c71b96..00000000 --- a/node_modules/@emotion/is-prop-valid/dist/is-prop-valid.cjs.prod.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; - -function _interopDefault(ex) { - return ex && "object" == typeof ex && "default" in ex ? ex.default : ex; -} - -Object.defineProperty(exports, "__esModule", { - value: !0 -}); - -var memoize = _interopDefault(require("@emotion/memoize")), reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, index = memoize(function(prop) { - return reactPropsRegex.test(prop) || 111 === prop.charCodeAt(0) && 110 === prop.charCodeAt(1) && prop.charCodeAt(2) < 91; -}); - -exports.default = index; diff --git a/node_modules/@emotion/is-prop-valid/dist/is-prop-valid.esm.js b/node_modules/@emotion/is-prop-valid/dist/is-prop-valid.esm.js deleted file mode 100644 index 05023758..00000000 --- a/node_modules/@emotion/is-prop-valid/dist/is-prop-valid.esm.js +++ /dev/null @@ -1,15 +0,0 @@ -import memoize from '@emotion/memoize'; - -var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23 - -var index = memoize(function (prop) { - return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 - /* o */ - && prop.charCodeAt(1) === 110 - /* n */ - && prop.charCodeAt(2) < 91; -} -/* Z+1 */ -); - -export default index; diff --git a/node_modules/@emotion/is-prop-valid/package.json b/node_modules/@emotion/is-prop-valid/package.json deleted file mode 100644 index 85679906..00000000 --- a/node_modules/@emotion/is-prop-valid/package.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "_from": "@emotion/is-prop-valid@^0.8.1", - "_id": "@emotion/is-prop-valid@0.8.8", - "_inBundle": false, - "_integrity": "sha512-u5WtneEAr5IDG2Wv65yhunPSMLIpuKsbuOktRojfrEiEvRyC85LgPMZI63cr7NUqT8ZIGdSVg8ZKGxIug4lXcA==", - "_location": "/@emotion/is-prop-valid", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "@emotion/is-prop-valid@^0.8.1", - "name": "@emotion/is-prop-valid", - "escapedName": "@emotion%2fis-prop-valid", - "scope": "@emotion", - "rawSpec": "^0.8.1", - "saveSpec": null, - "fetchSpec": "^0.8.1" - }, - "_requiredBy": [ - "/styled-components" - ], - "_resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-0.8.8.tgz", - "_shasum": "db28b1c4368a259b60a97311d6a952d4fd01ac1a", - "_spec": "@emotion/is-prop-valid@^0.8.1", - "_where": "/home/riddhi/frontend/node_modules/styled-components", - "browser": { - "./dist/is-prop-valid.cjs.js": "./dist/is-prop-valid.browser.cjs.js", - "./dist/is-prop-valid.esm.js": "./dist/is-prop-valid.browser.esm.js" - }, - "bundleDependencies": false, - "dependencies": { - "@emotion/memoize": "0.7.4" - }, - "deprecated": false, - "description": "A function to check whether a prop is valid for HTML and SVG elements", - "devDependencies": { - "dtslint": "^0.3.0" - }, - "files": [ - "src", - "dist", - "types" - ], - "license": "MIT", - "main": "dist/is-prop-valid.cjs.js", - "module": "dist/is-prop-valid.esm.js", - "name": "@emotion/is-prop-valid", - "publishConfig": { - "access": "public" - }, - "repository": { - "type": "git", - "url": "https://github.com/emotion-js/emotion/tree/master/packages/is-prop-valid" - }, - "scripts": { - "test:typescript": "dtslint types" - }, - "types": "types/index.d.ts", - "version": "0.8.8" -} diff --git a/node_modules/@emotion/is-prop-valid/src/index.js b/node_modules/@emotion/is-prop-valid/src/index.js deleted file mode 100644 index 624447e5..00000000 --- a/node_modules/@emotion/is-prop-valid/src/index.js +++ /dev/null @@ -1,15 +0,0 @@ -// @flow -import memoize from '@emotion/memoize' - -declare var codegen: { require: string => RegExp } - -const reactPropsRegex = codegen.require('./props') - -// https://esbench.com/bench/5bfee68a4cd7e6009ef61d23 -export default memoize( - prop => - reactPropsRegex.test(prop) || - (prop.charCodeAt(0) === 111 /* o */ && - prop.charCodeAt(1) === 110 /* n */ && - prop.charCodeAt(2) < 91) /* Z+1 */ -) diff --git a/node_modules/@emotion/is-prop-valid/src/props.js b/node_modules/@emotion/is-prop-valid/src/props.js deleted file mode 100644 index d4bd3d39..00000000 --- a/node_modules/@emotion/is-prop-valid/src/props.js +++ /dev/null @@ -1,480 +0,0 @@ -// @flow -const props = { - // react props - // https://github.com/facebook/react/blob/5495a7f24aef85ba6937truetrue1ce962673ca9f5fde6/src/renderers/dom/shared/hooks/ReactDOMUnknownPropertyHook.js - children: true, - dangerouslySetInnerHTML: true, - key: true, - ref: true, - autoFocus: true, - defaultValue: true, - defaultChecked: true, - innerHTML: true, - suppressContentEditableWarning: true, - suppressHydrationWarning: true, - // deprecated react prop - valueLink: true, - - // https://github.com/facebook/react/blob/d7157651f7b72d9888ctrue123e191f9b88cd8f41e9/src/renderers/dom/shared/HTMLDOMPropertyConfig.js - /** - * Standard Properties - */ - - accept: true, - acceptCharset: true, - accessKey: true, - action: true, - allow: true, - allowUserMedia: true, - allowPaymentRequest: true, - allowFullScreen: true, - allowTransparency: true, - alt: true, - // specifies target context for links with `preload` type - // as: true, - async: true, - autoComplete: true, - // autoFocus is polyfilled/normalized by AutoFocusUtils - // autoFocus: true, - autoPlay: true, - capture: true, - cellPadding: true, - cellSpacing: true, - // keygen prop - challenge: true, - charSet: true, - checked: true, - cite: true, - classID: true, - className: true, - cols: true, - colSpan: true, - content: true, - contentEditable: true, - contextMenu: true, - controls: true, - controlsList: true, - coords: true, - crossOrigin: true, - data: true, // For `` acts as `src`. - dateTime: true, - decoding: true, - default: true, - defer: true, - dir: true, - disabled: true, - disablePictureInPicture: true, - download: true, - draggable: true, - encType: true, - form: true, - formAction: true, - formEncType: true, - formMethod: true, - formNoValidate: true, - formTarget: true, - frameBorder: true, - headers: true, - height: true, - hidden: true, - high: true, - href: true, - hrefLang: true, - htmlFor: true, - httpEquiv: true, - id: true, - inputMode: true, - integrity: true, - is: true, - keyParams: true, - keyType: true, - kind: true, - label: true, - lang: true, - list: true, - loading: true, - loop: true, - low: true, - // manifest: true, - marginHeight: true, - marginWidth: true, - max: true, - maxLength: true, - media: true, - mediaGroup: true, - method: true, - min: true, - minLength: true, - // Caution; `option.selected` is not updated if `select.multiple` is - // disabled with `removeAttribute`. - multiple: true, - muted: true, - name: true, - nonce: true, - noValidate: true, - open: true, - optimum: true, - pattern: true, - placeholder: true, - playsInline: true, - poster: true, - preload: true, - profile: true, - radioGroup: true, - readOnly: true, - referrerPolicy: true, - rel: true, - required: true, - reversed: true, - role: true, - rows: true, - rowSpan: true, - sandbox: true, - scope: true, - scoped: true, - scrolling: true, - seamless: true, - selected: true, - shape: true, - size: true, - sizes: true, - // support for projecting regular DOM Elements via V1 named slots ( shadow dom ) - slot: true, - span: true, - spellCheck: true, - src: true, - srcDoc: true, - srcLang: true, - srcSet: true, - start: true, - step: true, - style: true, - summary: true, - tabIndex: true, - target: true, - title: true, - // Setting .type throws on non- tags - type: true, - useMap: true, - value: true, - width: true, - wmode: true, - wrap: true, - - /** - * RDFa Properties - */ - about: true, - datatype: true, - inlist: true, - prefix: true, - // property is also supported for OpenGraph in meta tags. - property: true, - resource: true, - typeof: true, - vocab: true, - - /** - * Non-standard Properties - */ - // autoCapitalize and autoCorrect are supported in Mobile Safari for - // keyboard hints. - autoCapitalize: true, - autoCorrect: true, - // autoSave allows WebKit/Blink to persist values of input fields on page reloads - autoSave: true, - // color is for Safari mask-icon link - color: true, - // https://html.spec.whatwg.org/multipage/interaction.html#inert - inert: true, - // itemProp, itemScope, itemType are for - // Microdata support. See http://schema.org/docs/gs.html - itemProp: true, - itemScope: true, - itemType: true, - // itemID and itemRef are for Microdata support as well but - // only specified in the WHATWG spec document. See - // https://html.spec.whatwg.org/multipage/microdata.html#microdata-dom-api - itemID: true, - itemRef: true, - // used in amp html for eventing purposes - on: true, - // results show looking glass icon and recent searches on input - // search fields in WebKit/Blink - results: true, - // IE-only attribute that specifies security restrictions on an iframe - // as an alternative to the sandbox attribute on IE<1true - security: true, - // IE-only attribute that controls focus behavior - unselectable: true, - // - // SVG properties: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute - // The following "onX" events have been omitted: - // - // onabort - // onactivate - // onbegin - // onclick - // onend - // onerror - // onfocusin - // onfocusout - // onload - // onmousedown - // onmousemove - // onmouseout - // onmouseover - // onmouseup - // onrepeat - // onresize - // onscroll - // onunload - accentHeight: true, - accumulate: true, - additive: true, - alignmentBaseline: true, - allowReorder: true, - alphabetic: true, - amplitude: true, - arabicForm: true, - ascent: true, - attributeName: true, - attributeType: true, - autoReverse: true, - azimuth: true, - baseFrequency: true, - baselineShift: true, - baseProfile: true, - bbox: true, - begin: true, - bias: true, - by: true, - calcMode: true, - capHeight: true, - clip: true, - clipPathUnits: true, - clipPath: true, - clipRule: true, - colorInterpolation: true, - colorInterpolationFilters: true, - colorProfile: true, - colorRendering: true, - contentScriptType: true, - contentStyleType: true, - cursor: true, - cx: true, - cy: true, - d: true, - decelerate: true, - descent: true, - diffuseConstant: true, - direction: true, - display: true, - divisor: true, - dominantBaseline: true, - dur: true, - dx: true, - dy: true, - edgeMode: true, - elevation: true, - enableBackground: true, - end: true, - exponent: true, - externalResourcesRequired: true, - fill: true, - fillOpacity: true, - fillRule: true, - filter: true, - filterRes: true, - filterUnits: true, - floodColor: true, - floodOpacity: true, - focusable: true, - fontFamily: true, - fontSize: true, - fontSizeAdjust: true, - fontStretch: true, - fontStyle: true, - fontVariant: true, - fontWeight: true, - format: true, - from: true, - fr: true, // valid SVG element but React will ask for removal - fx: true, - fy: true, - g1: true, - g2: true, - glyphName: true, - glyphOrientationHorizontal: true, - glyphOrientationVertical: true, - glyphRef: true, - gradientTransform: true, - gradientUnits: true, - hanging: true, - horizAdvX: true, - horizOriginX: true, - ideographic: true, - imageRendering: true, - in: true, - in2: true, - intercept: true, - k: true, - k1: true, - k2: true, - k3: true, - k4: true, - kernelMatrix: true, - kernelUnitLength: true, - kerning: true, - keyPoints: true, - keySplines: true, - keyTimes: true, - lengthAdjust: true, - letterSpacing: true, - lightingColor: true, - limitingConeAngle: true, - local: true, - markerEnd: true, - markerMid: true, - markerStart: true, - markerHeight: true, - markerUnits: true, - markerWidth: true, - mask: true, - maskContentUnits: true, - maskUnits: true, - mathematical: true, - mode: true, - numOctaves: true, - offset: true, - opacity: true, - operator: true, - order: true, - orient: true, - orientation: true, - origin: true, - overflow: true, - overlinePosition: true, - overlineThickness: true, - panose1: true, - paintOrder: true, - pathLength: true, - patternContentUnits: true, - patternTransform: true, - patternUnits: true, - pointerEvents: true, - points: true, - pointsAtX: true, - pointsAtY: true, - pointsAtZ: true, - preserveAlpha: true, - preserveAspectRatio: true, - primitiveUnits: true, - r: true, - radius: true, - refX: true, - refY: true, - renderingIntent: true, - repeatCount: true, - repeatDur: true, - requiredExtensions: true, - requiredFeatures: true, - restart: true, - result: true, - rotate: true, - rx: true, - ry: true, - scale: true, - seed: true, - shapeRendering: true, - slope: true, - spacing: true, - specularConstant: true, - specularExponent: true, - speed: true, - spreadMethod: true, - startOffset: true, - stdDeviation: true, - stemh: true, - stemv: true, - stitchTiles: true, - stopColor: true, - stopOpacity: true, - strikethroughPosition: true, - strikethroughThickness: true, - string: true, - stroke: true, - strokeDasharray: true, - strokeDashoffset: true, - strokeLinecap: true, - strokeLinejoin: true, - strokeMiterlimit: true, - strokeOpacity: true, - strokeWidth: true, - surfaceScale: true, - systemLanguage: true, - tableValues: true, - targetX: true, - targetY: true, - textAnchor: true, - textDecoration: true, - textRendering: true, - textLength: true, - to: true, - transform: true, - u1: true, - u2: true, - underlinePosition: true, - underlineThickness: true, - unicode: true, - unicodeBidi: true, - unicodeRange: true, - unitsPerEm: true, - vAlphabetic: true, - vHanging: true, - vIdeographic: true, - vMathematical: true, - values: true, - vectorEffect: true, - version: true, - vertAdvY: true, - vertOriginX: true, - vertOriginY: true, - viewBox: true, - viewTarget: true, - visibility: true, - widths: true, - wordSpacing: true, - writingMode: true, - x: true, - xHeight: true, - x1: true, - x2: true, - xChannelSelector: true, - xlinkActuate: true, - xlinkArcrole: true, - xlinkHref: true, - xlinkRole: true, - xlinkShow: true, - xlinkTitle: true, - xlinkType: true, - xmlBase: true, - xmlns: true, - xmlnsXlink: true, - xmlLang: true, - xmlSpace: true, - y: true, - y1: true, - y2: true, - yChannelSelector: true, - z: true, - zoomAndPan: true, - // preact - for: true, - class: true, - autofocus: true -} -// eslint-disable-next-line import/no-commonjs -module.exports = `/^((${Object.keys(props).join( - '|' -)})|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/` diff --git a/node_modules/@emotion/is-prop-valid/types/index.d.ts b/node_modules/@emotion/is-prop-valid/types/index.d.ts deleted file mode 100644 index 91affa14..00000000 --- a/node_modules/@emotion/is-prop-valid/types/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -// Definitions by: Junyoung Clare Jang -// TypeScript Version: 2.1 - -declare function isPropValid(string: string): boolean -export default isPropValid diff --git a/node_modules/@emotion/is-prop-valid/types/tests.ts b/node_modules/@emotion/is-prop-valid/types/tests.ts deleted file mode 100644 index 3ae651e8..00000000 --- a/node_modules/@emotion/is-prop-valid/types/tests.ts +++ /dev/null @@ -1,12 +0,0 @@ -import isPropValid from '@emotion/is-prop-valid' - -isPropValid('ref') - -// $ExpectError -isPropValid() -// $ExpectError -isPropValid(5) -// $ExpectError -isPropValid({}) -// $ExpectError -isPropValid('ref', 'def') diff --git a/node_modules/@emotion/is-prop-valid/types/tsconfig.json b/node_modules/@emotion/is-prop-valid/types/tsconfig.json deleted file mode 100644 index 9ff7ed28..00000000 --- a/node_modules/@emotion/is-prop-valid/types/tsconfig.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "compilerOptions": { - "baseUrl": "../", - "forceConsistentCasingInFileNames": true, - "lib": [ - "es6", - "dom" - ], - "module": "commonjs", - "noEmit": true, - "noImplicitAny": true, - "noImplicitThis": true, - "strict": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "target": "es5", - "typeRoots": [ - "../" - ], - "types": [] - }, - "include": [ - "./*.ts", - "./*.tsx" - ] -} diff --git a/node_modules/@emotion/is-prop-valid/types/tslint.json b/node_modules/@emotion/is-prop-valid/types/tslint.json deleted file mode 100644 index b9706ef7..00000000 --- a/node_modules/@emotion/is-prop-valid/types/tslint.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "extends": "dtslint/dtslint.json", - "rules": { - "array-type": [ - true, - "generic" - ], - "import-spacing": false, - "semicolon": false, - "whitespace": [ - true, - "check-branch", - "check-decl", - "check-operator", - "check-module", - "check-rest-spread", - "check-type", - "check-typecast", - "check-type-operator", - "check-preblock" - ], - - "no-unnecessary-generics": false - } -} diff --git a/node_modules/@emotion/memoize/package.json b/node_modules/@emotion/memoize/package.json index 93afb74b..c7abf495 100644 --- a/node_modules/@emotion/memoize/package.json +++ b/node_modules/@emotion/memoize/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@emotion/memoize@0.7.4", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@emotion/memoize@0.7.4", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.7.4.tgz", "_spec": "0.7.4", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "browser": { "./dist/memoize.cjs.js": "./dist/memoize.browser.cjs.js", "./dist/memoize.esm.js": "./dist/memoize.browser.esm.js" diff --git a/node_modules/@emotion/serialize/node_modules/@emotion/hash/package.json b/node_modules/@emotion/serialize/node_modules/@emotion/hash/package.json index d6cdf8fa..7670e084 100644 --- a/node_modules/@emotion/serialize/node_modules/@emotion/hash/package.json +++ b/node_modules/@emotion/serialize/node_modules/@emotion/hash/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@emotion/hash@0.7.4", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@emotion/hash@0.7.4", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.7.4.tgz", "_spec": "0.7.4", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "browser": { "./dist/hash.cjs.js": "./dist/hash.browser.cjs.js", "./dist/hash.esm.js": "./dist/hash.browser.esm.js" diff --git a/node_modules/@emotion/serialize/package.json b/node_modules/@emotion/serialize/package.json index c1f6b836..a5c3555c 100644 --- a/node_modules/@emotion/serialize/package.json +++ b/node_modules/@emotion/serialize/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@emotion/serialize@0.11.15", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@emotion/serialize@0.11.15", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@emotion/serialize/-/serialize-0.11.15.tgz", "_spec": "0.11.15", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "browser": { "./dist/serialize.cjs.js": "./dist/serialize.browser.cjs.js", "./dist/serialize.esm.js": "./dist/serialize.browser.esm.js" diff --git a/node_modules/@emotion/sheet/package.json b/node_modules/@emotion/sheet/package.json index 2288efbc..42e8489b 100644 --- a/node_modules/@emotion/sheet/package.json +++ b/node_modules/@emotion/sheet/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@emotion/sheet@0.9.4", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@emotion/sheet@0.9.4", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@emotion/sheet/-/sheet-0.9.4.tgz", "_spec": "0.9.4", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "browser": { "./dist/sheet.cjs.js": "./dist/sheet.browser.cjs.js", "./dist/sheet.esm.js": "./dist/sheet.browser.esm.js" diff --git a/node_modules/@emotion/stylis/package.json b/node_modules/@emotion/stylis/package.json index ba734b7a..12e21d32 100644 --- a/node_modules/@emotion/stylis/package.json +++ b/node_modules/@emotion/stylis/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@emotion/stylis@0.8.5", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@emotion/stylis@0.8.5", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@emotion/stylis/-/stylis-0.8.5.tgz", "_spec": "0.8.5", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "browser": { "./dist/stylis.cjs.js": "./dist/stylis.browser.cjs.js", "./dist/stylis.esm.js": "./dist/stylis.browser.esm.js" diff --git a/node_modules/@emotion/unitless/package.json b/node_modules/@emotion/unitless/package.json index cbf64dcf..adcb0c56 100644 --- a/node_modules/@emotion/unitless/package.json +++ b/node_modules/@emotion/unitless/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@emotion/unitless@0.7.5", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@emotion/unitless@0.7.5", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.7.5.tgz", "_spec": "0.7.5", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "browser": { "./dist/unitless.cjs.js": "./dist/unitless.browser.cjs.js", "./dist/unitless.esm.js": "./dist/unitless.browser.esm.js" diff --git a/node_modules/@emotion/utils/package.json b/node_modules/@emotion/utils/package.json index b8174bb3..6010681b 100644 --- a/node_modules/@emotion/utils/package.json +++ b/node_modules/@emotion/utils/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@emotion/utils@0.11.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@emotion/utils@0.11.3", @@ -29,7 +29,7 @@ ], "_resolved": "https://registry.npmjs.org/@emotion/utils/-/utils-0.11.3.tgz", "_spec": "0.11.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "browser": { "./dist/utils.cjs.js": "./dist/utils.browser.cjs.js", "./dist/utils.esm.js": "./dist/utils.browser.esm.js" diff --git a/node_modules/@emotion/weak-memoize/package.json b/node_modules/@emotion/weak-memoize/package.json index 71099cf7..3587ee78 100644 --- a/node_modules/@emotion/weak-memoize/package.json +++ b/node_modules/@emotion/weak-memoize/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@emotion/weak-memoize@0.2.5", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@emotion/weak-memoize@0.2.5", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@emotion/weak-memoize/-/weak-memoize-0.2.5.tgz", "_spec": "0.2.5", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "browser": { "./dist/weak-memoize.cjs.js": "./dist/weak-memoize.browser.cjs.js", "./dist/weak-memoize.esm.js": "./dist/weak-memoize.browser.esm.js" diff --git a/node_modules/@jest/types/package.json b/node_modules/@jest/types/package.json index 8467f9e7..a00687f0 100644 --- a/node_modules/@jest/types/package.json +++ b/node_modules/@jest/types/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@jest/types@24.9.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@jest/types@24.9.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@jest/types/-/types-24.9.0.tgz", "_spec": "24.9.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/facebook/jest/issues" }, diff --git a/node_modules/@material-ui/core/node_modules/hoist-non-react-statics/package.json b/node_modules/@material-ui/core/node_modules/hoist-non-react-statics/package.json index 688c0fda..b15d1499 100644 --- a/node_modules/@material-ui/core/node_modules/hoist-non-react-statics/package.json +++ b/node_modules/@material-ui/core/node_modules/hoist-non-react-statics/package.json @@ -2,7 +2,7 @@ "_args": [ [ "hoist-non-react-statics@3.3.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "hoist-non-react-statics@3.3.1", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz", "_spec": "3.3.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Michael Ridgway", "email": "mcridgway@gmail.com" diff --git a/node_modules/@material-ui/core/package.json b/node_modules/@material-ui/core/package.json index 1f0d450d..527efa0b 100644 --- a/node_modules/@material-ui/core/package.json +++ b/node_modules/@material-ui/core/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@material-ui/core@4.7.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@material-ui/core@4.7.2", @@ -29,7 +29,7 @@ ], "_resolved": "https://registry.npmjs.org/@material-ui/core/-/core-4.7.2.tgz", "_spec": "4.7.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Material-UI Team" }, diff --git a/node_modules/@material-ui/icons/package.json b/node_modules/@material-ui/icons/package.json index 9c415b44..188208d6 100644 --- a/node_modules/@material-ui/icons/package.json +++ b/node_modules/@material-ui/icons/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@material-ui/icons@4.5.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@material-ui/icons@4.5.1", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@material-ui/icons/-/icons-4.5.1.tgz", "_spec": "4.5.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Material-UI Team" }, diff --git a/node_modules/@material-ui/styles/node_modules/hoist-non-react-statics/package.json b/node_modules/@material-ui/styles/node_modules/hoist-non-react-statics/package.json index 53db2f4d..37ca76bb 100644 --- a/node_modules/@material-ui/styles/node_modules/hoist-non-react-statics/package.json +++ b/node_modules/@material-ui/styles/node_modules/hoist-non-react-statics/package.json @@ -2,7 +2,7 @@ "_args": [ [ "hoist-non-react-statics@3.3.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "hoist-non-react-statics@3.3.1", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz", "_spec": "3.3.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Michael Ridgway", "email": "mcridgway@gmail.com" diff --git a/node_modules/@material-ui/styles/package.json b/node_modules/@material-ui/styles/package.json index 31e8e50f..417c762e 100644 --- a/node_modules/@material-ui/styles/package.json +++ b/node_modules/@material-ui/styles/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@material-ui/styles@4.7.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@material-ui/styles@4.7.1", @@ -30,7 +30,7 @@ ], "_resolved": "https://registry.npmjs.org/@material-ui/styles/-/styles-4.7.1.tgz", "_spec": "4.7.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Material-UI Team" }, diff --git a/node_modules/@material-ui/system/package.json b/node_modules/@material-ui/system/package.json index 8a19ed0e..20378a04 100644 --- a/node_modules/@material-ui/system/package.json +++ b/node_modules/@material-ui/system/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@material-ui/system@4.7.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@material-ui/system@4.7.1", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@material-ui/system/-/system-4.7.1.tgz", "_spec": "4.7.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Material-UI Team" }, diff --git a/node_modules/@material-ui/types/package.json b/node_modules/@material-ui/types/package.json index d11c14f7..e91bd899 100644 --- a/node_modules/@material-ui/types/package.json +++ b/node_modules/@material-ui/types/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@material-ui/types@4.1.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@material-ui/types@4.1.1", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@material-ui/types/-/types-4.1.1.tgz", "_spec": "4.1.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Material-UI Team" }, diff --git a/node_modules/@material-ui/utils/package.json b/node_modules/@material-ui/utils/package.json index 0a16c5c0..aa0f2cde 100644 --- a/node_modules/@material-ui/utils/package.json +++ b/node_modules/@material-ui/utils/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@material-ui/utils@4.7.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@material-ui/utils@4.7.1", @@ -29,7 +29,7 @@ ], "_resolved": "https://registry.npmjs.org/@material-ui/utils/-/utils-4.7.1.tgz", "_spec": "4.7.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Material-UI Team" }, diff --git a/node_modules/@mrmlnc/readdir-enhanced/package.json b/node_modules/@mrmlnc/readdir-enhanced/package.json index 51968dac..ffa77ebd 100644 --- a/node_modules/@mrmlnc/readdir-enhanced/package.json +++ b/node_modules/@mrmlnc/readdir-enhanced/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@mrmlnc/readdir-enhanced@2.2.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@mrmlnc/readdir-enhanced@2.2.1", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz", "_spec": "2.2.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "James Messinger", "url": "http://bigstickcarpet.com" diff --git a/node_modules/@nodelib/fs.stat/package.json b/node_modules/@nodelib/fs.stat/package.json index 09914b60..787f0b52 100644 --- a/node_modules/@nodelib/fs.stat/package.json +++ b/node_modules/@nodelib/fs.stat/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@nodelib/fs.stat@1.1.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@nodelib/fs.stat@1.1.3", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-1.1.3.tgz", "_spec": "1.1.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "description": "Get the status of a file with some features", "engines": { "node": ">= 6" diff --git a/node_modules/@okta/configuration-validation/package.json b/node_modules/@okta/configuration-validation/package.json index 6fc516fd..2d56fbb4 100644 --- a/node_modules/@okta/configuration-validation/package.json +++ b/node_modules/@okta/configuration-validation/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@okta/configuration-validation@0.3.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@okta/configuration-validation@0.3.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@okta/configuration-validation/-/configuration-validation-0.3.0.tgz", "_spec": "0.3.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/okta/okta-oidc-js/issues" }, diff --git a/node_modules/@okta/okta-react-native/package.json b/node_modules/@okta/okta-react-native/package.json index 0be0400d..b8dfc503 100644 --- a/node_modules/@okta/okta-react-native/package.json +++ b/node_modules/@okta/okta-react-native/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@okta/okta-react-native@1.3.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@okta/okta-react-native@1.3.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@okta/okta-react-native/-/okta-react-native-1.3.0.tgz", "_spec": "1.3.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "developer@okta.com" }, diff --git a/node_modules/@redux-saga/core/package.json b/node_modules/@redux-saga/core/package.json index a269e0ab..69d1e7ab 100644 --- a/node_modules/@redux-saga/core/package.json +++ b/node_modules/@redux-saga/core/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@redux-saga/core@1.1.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@redux-saga/core@1.1.3", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@redux-saga/core/-/core-1.1.3.tgz", "_spec": "1.1.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Yassine ELOUAFI", "email": "yelouafi@gmail.com" diff --git a/node_modules/@redux-saga/deferred/package.json b/node_modules/@redux-saga/deferred/package.json index 160e88b3..e22b525b 100644 --- a/node_modules/@redux-saga/deferred/package.json +++ b/node_modules/@redux-saga/deferred/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@redux-saga/deferred@1.1.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@redux-saga/deferred@1.1.2", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@redux-saga/deferred/-/deferred-1.1.2.tgz", "_spec": "1.1.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Yassine ELOUAFI", "email": "yelouafi@gmail.com" diff --git a/node_modules/@redux-saga/delay-p/package.json b/node_modules/@redux-saga/delay-p/package.json index d53389b2..af14a65f 100644 --- a/node_modules/@redux-saga/delay-p/package.json +++ b/node_modules/@redux-saga/delay-p/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@redux-saga/delay-p@1.1.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@redux-saga/delay-p@1.1.2", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@redux-saga/delay-p/-/delay-p-1.1.2.tgz", "_spec": "1.1.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Yassine ELOUAFI", "email": "yelouafi@gmail.com" diff --git a/node_modules/@redux-saga/is/package.json b/node_modules/@redux-saga/is/package.json index 839b386c..2f909034 100644 --- a/node_modules/@redux-saga/is/package.json +++ b/node_modules/@redux-saga/is/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@redux-saga/is@1.1.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@redux-saga/is@1.1.2", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@redux-saga/is/-/is-1.1.2.tgz", "_spec": "1.1.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Yassine ELOUAFI", "email": "yelouafi@gmail.com" diff --git a/node_modules/@redux-saga/symbols/package.json b/node_modules/@redux-saga/symbols/package.json index cbb1386d..74fd8a0d 100644 --- a/node_modules/@redux-saga/symbols/package.json +++ b/node_modules/@redux-saga/symbols/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@redux-saga/symbols@1.1.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@redux-saga/symbols@1.1.2", @@ -29,7 +29,7 @@ ], "_resolved": "https://registry.npmjs.org/@redux-saga/symbols/-/symbols-1.1.2.tgz", "_spec": "1.1.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Yassine ELOUAFI", "email": "yelouafi@gmail.com" diff --git a/node_modules/@redux-saga/types/package.json b/node_modules/@redux-saga/types/package.json index 0f3df70a..f5960ea3 100644 --- a/node_modules/@redux-saga/types/package.json +++ b/node_modules/@redux-saga/types/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@redux-saga/types@1.1.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@redux-saga/types@1.1.0", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@redux-saga/types/-/types-1.1.0.tgz", "_spec": "1.1.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Yassine ELOUAFI", "email": "yelouafi@gmail.com" diff --git a/node_modules/@restart/context/package.json b/node_modules/@restart/context/package.json index 998f63ae..0b1a4604 100644 --- a/node_modules/@restart/context/package.json +++ b/node_modules/@restart/context/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@restart/context@2.1.4", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@restart/context@2.1.4", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@restart/context/-/context-2.1.4.tgz", "_spec": "2.1.4", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "4Catalyzer" }, diff --git a/node_modules/@restart/hooks/package.json b/node_modules/@restart/hooks/package.json index 9c66e352..877dafb5 100644 --- a/node_modules/@restart/hooks/package.json +++ b/node_modules/@restart/hooks/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@restart/hooks@0.3.19", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@restart/hooks@0.3.19", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@restart/hooks/-/hooks-0.3.19.tgz", "_spec": "0.3.19", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jason Quense", "email": "monastic.panic@gmail.com" diff --git a/node_modules/@sheerun/mutationobserver-shim/package.json b/node_modules/@sheerun/mutationobserver-shim/package.json index 020bf615..a2359ef8 100644 --- a/node_modules/@sheerun/mutationobserver-shim/package.json +++ b/node_modules/@sheerun/mutationobserver-shim/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@sheerun/mutationobserver-shim@0.3.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@sheerun/mutationobserver-shim@0.3.2", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@sheerun/mutationobserver-shim/-/mutationobserver-shim-0.3.2.tgz", "_spec": "0.3.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "authors": [ { "name": "Graeme Yeates", diff --git a/node_modules/@svgr/babel-plugin-add-jsx-attribute/package.json b/node_modules/@svgr/babel-plugin-add-jsx-attribute/package.json index e2ec450f..1b1baed8 100644 --- a/node_modules/@svgr/babel-plugin-add-jsx-attribute/package.json +++ b/node_modules/@svgr/babel-plugin-add-jsx-attribute/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@svgr/babel-plugin-add-jsx-attribute@4.2.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@svgr/babel-plugin-add-jsx-attribute@4.2.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-4.2.0.tgz", "_spec": "4.2.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Greg Bergé", "email": "berge.greg@gmail.com" diff --git a/node_modules/@svgr/babel-plugin-remove-jsx-attribute/package.json b/node_modules/@svgr/babel-plugin-remove-jsx-attribute/package.json index eecf4da7..0aaa6918 100644 --- a/node_modules/@svgr/babel-plugin-remove-jsx-attribute/package.json +++ b/node_modules/@svgr/babel-plugin-remove-jsx-attribute/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@svgr/babel-plugin-remove-jsx-attribute@4.2.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@svgr/babel-plugin-remove-jsx-attribute@4.2.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-attribute/-/babel-plugin-remove-jsx-attribute-4.2.0.tgz", "_spec": "4.2.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Greg Bergé", "email": "berge.greg@gmail.com" diff --git a/node_modules/@svgr/babel-plugin-remove-jsx-empty-expression/package.json b/node_modules/@svgr/babel-plugin-remove-jsx-empty-expression/package.json index 257be452..2e523875 100644 --- a/node_modules/@svgr/babel-plugin-remove-jsx-empty-expression/package.json +++ b/node_modules/@svgr/babel-plugin-remove-jsx-empty-expression/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@svgr/babel-plugin-remove-jsx-empty-expression@4.2.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@svgr/babel-plugin-remove-jsx-empty-expression@4.2.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-empty-expression/-/babel-plugin-remove-jsx-empty-expression-4.2.0.tgz", "_spec": "4.2.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Greg Bergé", "email": "berge.greg@gmail.com" diff --git a/node_modules/@svgr/babel-plugin-replace-jsx-attribute-value/package.json b/node_modules/@svgr/babel-plugin-replace-jsx-attribute-value/package.json index 859c4844..d8776ab7 100644 --- a/node_modules/@svgr/babel-plugin-replace-jsx-attribute-value/package.json +++ b/node_modules/@svgr/babel-plugin-replace-jsx-attribute-value/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@svgr/babel-plugin-replace-jsx-attribute-value@4.2.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@svgr/babel-plugin-replace-jsx-attribute-value@4.2.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@svgr/babel-plugin-replace-jsx-attribute-value/-/babel-plugin-replace-jsx-attribute-value-4.2.0.tgz", "_spec": "4.2.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Greg Bergé", "email": "berge.greg@gmail.com" diff --git a/node_modules/@svgr/babel-plugin-svg-dynamic-title/package.json b/node_modules/@svgr/babel-plugin-svg-dynamic-title/package.json index 3f43ae28..65f5d430 100644 --- a/node_modules/@svgr/babel-plugin-svg-dynamic-title/package.json +++ b/node_modules/@svgr/babel-plugin-svg-dynamic-title/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@svgr/babel-plugin-svg-dynamic-title@4.3.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@svgr/babel-plugin-svg-dynamic-title@4.3.3", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-dynamic-title/-/babel-plugin-svg-dynamic-title-4.3.3.tgz", "_spec": "4.3.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Greg Bergé", "email": "berge.greg@gmail.com" diff --git a/node_modules/@svgr/babel-plugin-svg-em-dimensions/package.json b/node_modules/@svgr/babel-plugin-svg-em-dimensions/package.json index e7113581..d6143794 100644 --- a/node_modules/@svgr/babel-plugin-svg-em-dimensions/package.json +++ b/node_modules/@svgr/babel-plugin-svg-em-dimensions/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@svgr/babel-plugin-svg-em-dimensions@4.2.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@svgr/babel-plugin-svg-em-dimensions@4.2.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-em-dimensions/-/babel-plugin-svg-em-dimensions-4.2.0.tgz", "_spec": "4.2.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Greg Bergé", "email": "berge.greg@gmail.com" diff --git a/node_modules/@svgr/babel-plugin-transform-react-native-svg/package.json b/node_modules/@svgr/babel-plugin-transform-react-native-svg/package.json index 9b8b200d..f330f371 100644 --- a/node_modules/@svgr/babel-plugin-transform-react-native-svg/package.json +++ b/node_modules/@svgr/babel-plugin-transform-react-native-svg/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@svgr/babel-plugin-transform-react-native-svg@4.2.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@svgr/babel-plugin-transform-react-native-svg@4.2.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-react-native-svg/-/babel-plugin-transform-react-native-svg-4.2.0.tgz", "_spec": "4.2.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Greg Bergé", "email": "berge.greg@gmail.com" diff --git a/node_modules/@svgr/babel-plugin-transform-svg-component/package.json b/node_modules/@svgr/babel-plugin-transform-svg-component/package.json index ae441093..d3f8ee56 100644 --- a/node_modules/@svgr/babel-plugin-transform-svg-component/package.json +++ b/node_modules/@svgr/babel-plugin-transform-svg-component/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@svgr/babel-plugin-transform-svg-component@4.2.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@svgr/babel-plugin-transform-svg-component@4.2.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-svg-component/-/babel-plugin-transform-svg-component-4.2.0.tgz", "_spec": "4.2.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Greg Bergé", "email": "berge.greg@gmail.com" diff --git a/node_modules/@svgr/babel-preset/package.json b/node_modules/@svgr/babel-preset/package.json index 15deb079..41865329 100644 --- a/node_modules/@svgr/babel-preset/package.json +++ b/node_modules/@svgr/babel-preset/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@svgr/babel-preset@4.3.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@svgr/babel-preset@4.3.3", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@svgr/babel-preset/-/babel-preset-4.3.3.tgz", "_spec": "4.3.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Greg Bergé", "email": "berge.greg@gmail.com" diff --git a/node_modules/@svgr/core/package.json b/node_modules/@svgr/core/package.json index 6acea8a3..88b71272 100644 --- a/node_modules/@svgr/core/package.json +++ b/node_modules/@svgr/core/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@svgr/core@4.3.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@svgr/core@4.3.3", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@svgr/core/-/core-4.3.3.tgz", "_spec": "4.3.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Greg Bergé", "email": "berge.greg@gmail.com" diff --git a/node_modules/@svgr/hast-util-to-babel-ast/package.json b/node_modules/@svgr/hast-util-to-babel-ast/package.json index 764d1b55..32d1b863 100644 --- a/node_modules/@svgr/hast-util-to-babel-ast/package.json +++ b/node_modules/@svgr/hast-util-to-babel-ast/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@svgr/hast-util-to-babel-ast@4.3.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@svgr/hast-util-to-babel-ast@4.3.2", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@svgr/hast-util-to-babel-ast/-/hast-util-to-babel-ast-4.3.2.tgz", "_spec": "4.3.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Greg Bergé", "email": "berge.greg@gmail.com" diff --git a/node_modules/@svgr/plugin-jsx/node_modules/@babel/code-frame/package.json b/node_modules/@svgr/plugin-jsx/node_modules/@babel/code-frame/package.json index 42b54e48..0e29602c 100644 --- a/node_modules/@svgr/plugin-jsx/node_modules/@babel/code-frame/package.json +++ b/node_modules/@svgr/plugin-jsx/node_modules/@babel/code-frame/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/code-frame@7.8.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/code-frame@7.8.3", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz", "_spec": "7.8.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@svgr/plugin-jsx/node_modules/@babel/core/package.json b/node_modules/@svgr/plugin-jsx/node_modules/@babel/core/package.json index cd300bfe..f76cbe28 100644 --- a/node_modules/@svgr/plugin-jsx/node_modules/@babel/core/package.json +++ b/node_modules/@svgr/plugin-jsx/node_modules/@babel/core/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/core@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/core@7.9.6", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/core/-/core-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@svgr/plugin-jsx/node_modules/@babel/highlight/package.json b/node_modules/@svgr/plugin-jsx/node_modules/@babel/highlight/package.json index 55526025..4ccb0855 100644 --- a/node_modules/@svgr/plugin-jsx/node_modules/@babel/highlight/package.json +++ b/node_modules/@svgr/plugin-jsx/node_modules/@babel/highlight/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/highlight@7.9.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/highlight@7.9.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.9.0.tgz", "_spec": "7.9.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "suchipi", "email": "me@suchipi.com" diff --git a/node_modules/@svgr/plugin-jsx/node_modules/@babel/types/package.json b/node_modules/@svgr/plugin-jsx/node_modules/@babel/types/package.json index 0b8b6327..9cab2ff8 100644 --- a/node_modules/@svgr/plugin-jsx/node_modules/@babel/types/package.json +++ b/node_modules/@svgr/plugin-jsx/node_modules/@babel/types/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/types@7.9.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/types@7.9.6", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/types/-/types-7.9.6.tgz", "_spec": "7.9.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/@svgr/plugin-jsx/package.json b/node_modules/@svgr/plugin-jsx/package.json index 465474c0..d4116429 100644 --- a/node_modules/@svgr/plugin-jsx/package.json +++ b/node_modules/@svgr/plugin-jsx/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@svgr/plugin-jsx@4.3.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@svgr/plugin-jsx@4.3.3", @@ -47,7 +47,7 @@ ], "_resolved": "https://registry.npmjs.org/@svgr/plugin-jsx/-/plugin-jsx-4.3.3.tgz", "_spec": "4.3.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Greg Bergé", "email": "berge.greg@gmail.com" diff --git a/node_modules/@svgr/plugin-svgo/package.json b/node_modules/@svgr/plugin-svgo/package.json index 495ce594..f046888c 100644 --- a/node_modules/@svgr/plugin-svgo/package.json +++ b/node_modules/@svgr/plugin-svgo/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@svgr/plugin-svgo@4.3.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@svgr/plugin-svgo@4.3.1", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@svgr/plugin-svgo/-/plugin-svgo-4.3.1.tgz", "_spec": "4.3.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Greg Bergé", "email": "berge.greg@gmail.com" diff --git a/node_modules/@svgr/webpack/package.json b/node_modules/@svgr/webpack/package.json index 2d642786..d6a5d333 100644 --- a/node_modules/@svgr/webpack/package.json +++ b/node_modules/@svgr/webpack/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@svgr/webpack@4.1.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@svgr/webpack@4.1.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@svgr/webpack/-/webpack-4.1.0.tgz", "_spec": "4.1.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Greg Bergé", "email": "berge.greg@gmail.com" diff --git a/node_modules/@testing-library/dom/package.json b/node_modules/@testing-library/dom/package.json index 994135c8..8a373a54 100644 --- a/node_modules/@testing-library/dom/package.json +++ b/node_modules/@testing-library/dom/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@testing-library/dom@6.10.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@testing-library/dom@6.10.1", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-6.10.1.tgz", "_spec": "6.10.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Kent C. Dodds", "email": "kent@doddsfamily.us", diff --git a/node_modules/@testing-library/jest-dom/package.json b/node_modules/@testing-library/jest-dom/package.json index 548fc5de..671adb76 100644 --- a/node_modules/@testing-library/jest-dom/package.json +++ b/node_modules/@testing-library/jest-dom/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@testing-library/jest-dom@4.2.4", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@testing-library/jest-dom@4.2.4", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-4.2.4.tgz", "_spec": "4.2.4", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Ernesto Garcia", "email": "gnapse@gmail.com", diff --git a/node_modules/@testing-library/react/package.json b/node_modules/@testing-library/react/package.json index ea40e954..c862268a 100644 --- a/node_modules/@testing-library/react/package.json +++ b/node_modules/@testing-library/react/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@testing-library/react@9.3.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@testing-library/react@9.3.2", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@testing-library/react/-/react-9.3.2.tgz", "_spec": "9.3.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Kent C. Dodds", "email": "kent@doddsfamily.us", diff --git a/node_modules/@testing-library/user-event/package.json b/node_modules/@testing-library/user-event/package.json index 6149cf1b..28343e14 100644 --- a/node_modules/@testing-library/user-event/package.json +++ b/node_modules/@testing-library/user-event/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@testing-library/user-event@7.1.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@testing-library/user-event@7.1.2", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-7.1.2.tgz", "_spec": "7.1.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Giorgio Polvara", "email": "polvara@gmail.com" diff --git a/node_modules/@trust/keyto/node_modules/asn1.js/package.json b/node_modules/@trust/keyto/node_modules/asn1.js/package.json index 3b467b7b..3d6a53ca 100644 --- a/node_modules/@trust/keyto/node_modules/asn1.js/package.json +++ b/node_modules/@trust/keyto/node_modules/asn1.js/package.json @@ -2,7 +2,7 @@ "_args": [ [ "asn1.js@5.3.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "asn1.js@5.3.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-5.3.0.tgz", "_spec": "5.3.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Fedor Indutny" }, diff --git a/node_modules/@trust/keyto/package.json b/node_modules/@trust/keyto/package.json index 261504d7..6f2d5910 100644 --- a/node_modules/@trust/keyto/package.json +++ b/node_modules/@trust/keyto/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@trust/keyto@0.3.7", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@trust/keyto@0.3.7", @@ -32,7 +32,7 @@ ], "_resolved": "https://registry.npmjs.org/@trust/keyto/-/keyto-0.3.7.tgz", "_spec": "0.3.7", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/EternalDeiwos/keyto/issues" }, diff --git a/node_modules/@trust/webcrypto/package.json b/node_modules/@trust/webcrypto/package.json index 116d09f4..0ec033d5 100644 --- a/node_modules/@trust/webcrypto/package.json +++ b/node_modules/@trust/webcrypto/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@trust/webcrypto@0.9.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@trust/webcrypto@0.9.2", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@trust/webcrypto/-/webcrypto-0.9.2.tgz", "_spec": "0.9.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Anvil Research, Inc." }, diff --git a/node_modules/@types/cookie/package.json b/node_modules/@types/cookie/package.json index 0b5f6fdb..af23eae7 100644 --- a/node_modules/@types/cookie/package.json +++ b/node_modules/@types/cookie/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@types/cookie@0.3.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@types/cookie@0.3.3", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@types/cookie/-/cookie-0.3.3.tgz", "_spec": "0.3.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/DefinitelyTyped/DefinitelyTyped/issues" }, diff --git a/node_modules/@types/hoist-non-react-statics/node_modules/hoist-non-react-statics/package.json b/node_modules/@types/hoist-non-react-statics/node_modules/hoist-non-react-statics/package.json index c875bf05..a8bdc58b 100644 --- a/node_modules/@types/hoist-non-react-statics/node_modules/hoist-non-react-statics/package.json +++ b/node_modules/@types/hoist-non-react-statics/node_modules/hoist-non-react-statics/package.json @@ -2,7 +2,7 @@ "_args": [ [ "hoist-non-react-statics@3.3.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "hoist-non-react-statics@3.3.1", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz", "_spec": "3.3.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Michael Ridgway", "email": "mcridgway@gmail.com" diff --git a/node_modules/@types/hoist-non-react-statics/package.json b/node_modules/@types/hoist-non-react-statics/package.json index 497a56f7..cc5bcc78 100644 --- a/node_modules/@types/hoist-non-react-statics/package.json +++ b/node_modules/@types/hoist-non-react-statics/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@types/hoist-non-react-statics@3.3.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@types/hoist-non-react-statics@3.3.1", @@ -29,7 +29,7 @@ ], "_resolved": "https://registry.npmjs.org/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz", "_spec": "3.3.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/DefinitelyTyped/DefinitelyTyped/issues" }, diff --git a/node_modules/@types/istanbul-lib-coverage/package.json b/node_modules/@types/istanbul-lib-coverage/package.json index 7a3ea98c..d2243b87 100644 --- a/node_modules/@types/istanbul-lib-coverage/package.json +++ b/node_modules/@types/istanbul-lib-coverage/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@types/istanbul-lib-coverage@2.0.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@types/istanbul-lib-coverage@2.0.1", @@ -29,7 +29,7 @@ ], "_resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.1.tgz", "_spec": "2.0.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/DefinitelyTyped/DefinitelyTyped/issues" }, diff --git a/node_modules/@types/istanbul-lib-report/package.json b/node_modules/@types/istanbul-lib-report/package.json index 43eaa431..2dd0a6fb 100644 --- a/node_modules/@types/istanbul-lib-report/package.json +++ b/node_modules/@types/istanbul-lib-report/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@types/istanbul-lib-report@1.1.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@types/istanbul-lib-report@1.1.1", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-1.1.1.tgz", "_spec": "1.1.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/DefinitelyTyped/DefinitelyTyped/issues" }, diff --git a/node_modules/@types/istanbul-reports/package.json b/node_modules/@types/istanbul-reports/package.json index 18d2c951..60c26922 100644 --- a/node_modules/@types/istanbul-reports/package.json +++ b/node_modules/@types/istanbul-reports/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@types/istanbul-reports@1.1.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@types/istanbul-reports@1.1.1", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.1.tgz", "_spec": "1.1.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/DefinitelyTyped/DefinitelyTyped/issues" }, diff --git a/node_modules/@types/object-assign/package.json b/node_modules/@types/object-assign/package.json index a342305f..39e39a34 100644 --- a/node_modules/@types/object-assign/package.json +++ b/node_modules/@types/object-assign/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@types/object-assign@4.0.30", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@types/object-assign@4.0.30", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@types/object-assign/-/object-assign-4.0.30.tgz", "_spec": "4.0.30", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Christopher Brown", "email": "https://github.com/chbrown" diff --git a/node_modules/@types/parse-json/package.json b/node_modules/@types/parse-json/package.json index cd474507..2e27d60b 100644 --- a/node_modules/@types/parse-json/package.json +++ b/node_modules/@types/parse-json/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@types/parse-json@4.0.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@types/parse-json@4.0.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", "_spec": "4.0.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/DefinitelyTyped/DefinitelyTyped/issues" }, diff --git a/node_modules/@types/prop-types/package.json b/node_modules/@types/prop-types/package.json index f41cf07c..ed11830c 100644 --- a/node_modules/@types/prop-types/package.json +++ b/node_modules/@types/prop-types/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@types/prop-types@15.7.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@types/prop-types@15.7.3", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.3.tgz", "_spec": "15.7.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/DefinitelyTyped/DefinitelyTyped/issues" }, diff --git a/node_modules/@types/q/package.json b/node_modules/@types/q/package.json index d3d57513..6c8ac084 100644 --- a/node_modules/@types/q/package.json +++ b/node_modules/@types/q/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@types/q@1.5.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@types/q@1.5.2", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@types/q/-/q-1.5.2.tgz", "_spec": "1.5.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/DefinitelyTyped/DefinitelyTyped/issues" }, diff --git a/node_modules/@types/react-dom/package.json b/node_modules/@types/react-dom/package.json index 7c6915f7..24f9cef4 100644 --- a/node_modules/@types/react-dom/package.json +++ b/node_modules/@types/react-dom/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@types/react-dom@16.9.4", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@types/react-dom@16.9.4", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-16.9.4.tgz", "_spec": "16.9.4", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/DefinitelyTyped/DefinitelyTyped/issues" }, diff --git a/node_modules/@types/react-transition-group/package.json b/node_modules/@types/react-transition-group/package.json index 80187eb7..73a91dbc 100644 --- a/node_modules/@types/react-transition-group/package.json +++ b/node_modules/@types/react-transition-group/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@types/react-transition-group@4.2.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@types/react-transition-group@4.2.3", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-4.2.3.tgz", "_spec": "4.2.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/DefinitelyTyped/DefinitelyTyped/issues" }, diff --git a/node_modules/@types/react/package.json b/node_modules/@types/react/package.json index fab998b9..4d7d86c5 100644 --- a/node_modules/@types/react/package.json +++ b/node_modules/@types/react/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@types/react@16.9.15", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@types/react@16.9.15", @@ -32,7 +32,7 @@ ], "_resolved": "https://registry.npmjs.org/@types/react/-/react-16.9.15.tgz", "_spec": "16.9.15", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/DefinitelyTyped/DefinitelyTyped/issues" }, diff --git a/node_modules/@types/tapable/package.json b/node_modules/@types/tapable/package.json index 97d9852b..345d6b5e 100644 --- a/node_modules/@types/tapable/package.json +++ b/node_modules/@types/tapable/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@types/tapable@1.0.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@types/tapable@1.0.2", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@types/tapable/-/tapable-1.0.2.tgz", "_spec": "1.0.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/DefinitelyTyped/DefinitelyTyped/issues" }, diff --git a/node_modules/@types/testing-library__dom/package.json b/node_modules/@types/testing-library__dom/package.json index 323e7ba4..2ad46247 100644 --- a/node_modules/@types/testing-library__dom/package.json +++ b/node_modules/@types/testing-library__dom/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@types/testing-library__dom@6.10.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@types/testing-library__dom@6.10.0", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@types/testing-library__dom/-/testing-library__dom-6.10.0.tgz", "_spec": "6.10.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/DefinitelyTyped/DefinitelyTyped/issues" }, diff --git a/node_modules/@types/testing-library__react/package.json b/node_modules/@types/testing-library__react/package.json index 73c08576..39294756 100644 --- a/node_modules/@types/testing-library__react/package.json +++ b/node_modules/@types/testing-library__react/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@types/testing-library__react@9.1.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@types/testing-library__react@9.1.2", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@types/testing-library__react/-/testing-library__react-9.1.2.tgz", "_spec": "9.1.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/DefinitelyTyped/DefinitelyTyped/issues" }, diff --git a/node_modules/@types/yargs-parser/package.json b/node_modules/@types/yargs-parser/package.json index a7671748..3915f448 100644 --- a/node_modules/@types/yargs-parser/package.json +++ b/node_modules/@types/yargs-parser/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@types/yargs-parser@13.1.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@types/yargs-parser@13.1.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-13.1.0.tgz", "_spec": "13.1.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/DefinitelyTyped/DefinitelyTyped/issues" }, diff --git a/node_modules/@types/yargs/package.json b/node_modules/@types/yargs/package.json index 7e3157e1..a6474349 100644 --- a/node_modules/@types/yargs/package.json +++ b/node_modules/@types/yargs/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@types/yargs@13.0.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@types/yargs@13.0.3", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-13.0.3.tgz", "_spec": "13.0.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/DefinitelyTyped/DefinitelyTyped/issues" }, diff --git a/node_modules/@webassemblyjs/ast/package.json b/node_modules/@webassemblyjs/ast/package.json index d93e1270..349a3dd1 100644 --- a/node_modules/@webassemblyjs/ast/package.json +++ b/node_modules/@webassemblyjs/ast/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@webassemblyjs/ast@1.7.11", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@webassemblyjs/ast@1.7.11", @@ -34,7 +34,7 @@ ], "_resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.7.11.tgz", "_spec": "1.7.11", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sven Sauleau" }, diff --git a/node_modules/@webassemblyjs/floating-point-hex-parser/package.json b/node_modules/@webassemblyjs/floating-point-hex-parser/package.json index 3e9fa5bc..be3a5cce 100644 --- a/node_modules/@webassemblyjs/floating-point-hex-parser/package.json +++ b/node_modules/@webassemblyjs/floating-point-hex-parser/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@webassemblyjs/floating-point-hex-parser@1.7.11", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@webassemblyjs/floating-point-hex-parser@1.7.11", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.7.11.tgz", "_spec": "1.7.11", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Mauro Bringolf" }, diff --git a/node_modules/@webassemblyjs/helper-api-error/package.json b/node_modules/@webassemblyjs/helper-api-error/package.json index a3ba96ff..79a76a0e 100644 --- a/node_modules/@webassemblyjs/helper-api-error/package.json +++ b/node_modules/@webassemblyjs/helper-api-error/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@webassemblyjs/helper-api-error@1.7.11", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@webassemblyjs/helper-api-error@1.7.11", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.7.11.tgz", "_spec": "1.7.11", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sven Sauleau" }, diff --git a/node_modules/@webassemblyjs/helper-buffer/package.json b/node_modules/@webassemblyjs/helper-buffer/package.json index 4f372297..fc6f5812 100644 --- a/node_modules/@webassemblyjs/helper-buffer/package.json +++ b/node_modules/@webassemblyjs/helper-buffer/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@webassemblyjs/helper-buffer@1.7.11", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@webassemblyjs/helper-buffer@1.7.11", @@ -29,7 +29,7 @@ ], "_resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.7.11.tgz", "_spec": "1.7.11", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sven Sauleau" }, diff --git a/node_modules/@webassemblyjs/helper-code-frame/package.json b/node_modules/@webassemblyjs/helper-code-frame/package.json index 5cb6f101..6eaf71ae 100644 --- a/node_modules/@webassemblyjs/helper-code-frame/package.json +++ b/node_modules/@webassemblyjs/helper-code-frame/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@webassemblyjs/helper-code-frame@1.7.11", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@webassemblyjs/helper-code-frame@1.7.11", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@webassemblyjs/helper-code-frame/-/helper-code-frame-1.7.11.tgz", "_spec": "1.7.11", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sven Sauleau" }, diff --git a/node_modules/@webassemblyjs/helper-fsm/package.json b/node_modules/@webassemblyjs/helper-fsm/package.json index 07c16f2a..64db4f48 100644 --- a/node_modules/@webassemblyjs/helper-fsm/package.json +++ b/node_modules/@webassemblyjs/helper-fsm/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@webassemblyjs/helper-fsm@1.7.11", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@webassemblyjs/helper-fsm@1.7.11", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@webassemblyjs/helper-fsm/-/helper-fsm-1.7.11.tgz", "_spec": "1.7.11", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Mauro Bringolf" }, diff --git a/node_modules/@webassemblyjs/helper-module-context/package.json b/node_modules/@webassemblyjs/helper-module-context/package.json index 76204c1b..58f5785c 100644 --- a/node_modules/@webassemblyjs/helper-module-context/package.json +++ b/node_modules/@webassemblyjs/helper-module-context/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@webassemblyjs/helper-module-context@1.7.11", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@webassemblyjs/helper-module-context@1.7.11", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@webassemblyjs/helper-module-context/-/helper-module-context-1.7.11.tgz", "_spec": "1.7.11", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sven Sauleau" }, diff --git a/node_modules/@webassemblyjs/helper-wasm-bytecode/package.json b/node_modules/@webassemblyjs/helper-wasm-bytecode/package.json index 73b3317a..9d10390a 100644 --- a/node_modules/@webassemblyjs/helper-wasm-bytecode/package.json +++ b/node_modules/@webassemblyjs/helper-wasm-bytecode/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@webassemblyjs/helper-wasm-bytecode@1.7.11", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@webassemblyjs/helper-wasm-bytecode@1.7.11", @@ -31,7 +31,7 @@ ], "_resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.7.11.tgz", "_spec": "1.7.11", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sven Sauleau" }, diff --git a/node_modules/@webassemblyjs/helper-wasm-section/package.json b/node_modules/@webassemblyjs/helper-wasm-section/package.json index f7a29f0a..61327da7 100644 --- a/node_modules/@webassemblyjs/helper-wasm-section/package.json +++ b/node_modules/@webassemblyjs/helper-wasm-section/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@webassemblyjs/helper-wasm-section@1.7.11", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@webassemblyjs/helper-wasm-section@1.7.11", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.7.11.tgz", "_spec": "1.7.11", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sven Sauleau" }, diff --git a/node_modules/@webassemblyjs/ieee754/package.json b/node_modules/@webassemblyjs/ieee754/package.json index 8fb50b24..f9a7fd3f 100644 --- a/node_modules/@webassemblyjs/ieee754/package.json +++ b/node_modules/@webassemblyjs/ieee754/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@webassemblyjs/ieee754@1.7.11", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@webassemblyjs/ieee754@1.7.11", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.7.11.tgz", "_spec": "1.7.11", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@xtuc/ieee754": "^1.2.0" }, diff --git a/node_modules/@webassemblyjs/leb128/package.json b/node_modules/@webassemblyjs/leb128/package.json index 6bd83dea..fb4db8fb 100644 --- a/node_modules/@webassemblyjs/leb128/package.json +++ b/node_modules/@webassemblyjs/leb128/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@webassemblyjs/leb128@1.7.11", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@webassemblyjs/leb128@1.7.11", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.7.11.tgz", "_spec": "1.7.11", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@xtuc/long": "4.2.1" }, diff --git a/node_modules/@webassemblyjs/utf8/package.json b/node_modules/@webassemblyjs/utf8/package.json index 861aca09..457c3abe 100644 --- a/node_modules/@webassemblyjs/utf8/package.json +++ b/node_modules/@webassemblyjs/utf8/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@webassemblyjs/utf8@1.7.11", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@webassemblyjs/utf8@1.7.11", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.7.11.tgz", "_spec": "1.7.11", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sven Sauleau" }, diff --git a/node_modules/@webassemblyjs/wasm-edit/package.json b/node_modules/@webassemblyjs/wasm-edit/package.json index d13f8ffa..865238c8 100644 --- a/node_modules/@webassemblyjs/wasm-edit/package.json +++ b/node_modules/@webassemblyjs/wasm-edit/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@webassemblyjs/wasm-edit@1.7.11", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@webassemblyjs/wasm-edit@1.7.11", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.7.11.tgz", "_spec": "1.7.11", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sven Sauleau" }, diff --git a/node_modules/@webassemblyjs/wasm-gen/package.json b/node_modules/@webassemblyjs/wasm-gen/package.json index aa917572..a72c43d6 100644 --- a/node_modules/@webassemblyjs/wasm-gen/package.json +++ b/node_modules/@webassemblyjs/wasm-gen/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@webassemblyjs/wasm-gen@1.7.11", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@webassemblyjs/wasm-gen@1.7.11", @@ -29,7 +29,7 @@ ], "_resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.7.11.tgz", "_spec": "1.7.11", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sven Sauleau" }, diff --git a/node_modules/@webassemblyjs/wasm-opt/package.json b/node_modules/@webassemblyjs/wasm-opt/package.json index 1ed584db..5ee655ff 100644 --- a/node_modules/@webassemblyjs/wasm-opt/package.json +++ b/node_modules/@webassemblyjs/wasm-opt/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@webassemblyjs/wasm-opt@1.7.11", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@webassemblyjs/wasm-opt@1.7.11", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.7.11.tgz", "_spec": "1.7.11", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sven Sauleau" }, diff --git a/node_modules/@webassemblyjs/wasm-parser/package.json b/node_modules/@webassemblyjs/wasm-parser/package.json index 8eb03da5..67f36e07 100644 --- a/node_modules/@webassemblyjs/wasm-parser/package.json +++ b/node_modules/@webassemblyjs/wasm-parser/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@webassemblyjs/wasm-parser@1.7.11", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@webassemblyjs/wasm-parser@1.7.11", @@ -29,7 +29,7 @@ ], "_resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.7.11.tgz", "_spec": "1.7.11", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sven Sauleau" }, diff --git a/node_modules/@webassemblyjs/wast-parser/package.json b/node_modules/@webassemblyjs/wast-parser/package.json index 4c596aa3..0785c6c7 100644 --- a/node_modules/@webassemblyjs/wast-parser/package.json +++ b/node_modules/@webassemblyjs/wast-parser/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@webassemblyjs/wast-parser@1.7.11", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@webassemblyjs/wast-parser@1.7.11", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@webassemblyjs/wast-parser/-/wast-parser-1.7.11.tgz", "_spec": "1.7.11", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sven Sauleau" }, diff --git a/node_modules/@webassemblyjs/wast-printer/package.json b/node_modules/@webassemblyjs/wast-printer/package.json index b18aa23f..8a1224a1 100644 --- a/node_modules/@webassemblyjs/wast-printer/package.json +++ b/node_modules/@webassemblyjs/wast-printer/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@webassemblyjs/wast-printer@1.7.11", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@webassemblyjs/wast-printer@1.7.11", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.7.11.tgz", "_spec": "1.7.11", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sven Sauleau" }, diff --git a/node_modules/@xtuc/ieee754/package.json b/node_modules/@xtuc/ieee754/package.json index 5d2df4aa..e4689d6b 100644 --- a/node_modules/@xtuc/ieee754/package.json +++ b/node_modules/@xtuc/ieee754/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@xtuc/ieee754@1.2.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@xtuc/ieee754@1.2.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", "_spec": "1.2.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Feross Aboukhadijeh", "email": "feross@feross.org", diff --git a/node_modules/@xtuc/long/package.json b/node_modules/@xtuc/long/package.json index 83d6738e..8bf92117 100644 --- a/node_modules/@xtuc/long/package.json +++ b/node_modules/@xtuc/long/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@xtuc/long@4.2.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@xtuc/long@4.2.1", @@ -29,7 +29,7 @@ ], "_resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.1.tgz", "_spec": "4.2.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Daniel Wirtz", "email": "dcode@dcode.io" diff --git a/node_modules/abab/package.json b/node_modules/abab/package.json index b4651f56..8c9ab3b5 100644 --- a/node_modules/abab/package.json +++ b/node_modules/abab/package.json @@ -2,7 +2,7 @@ "_args": [ [ "abab@2.0.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "abab@2.0.3", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/abab/-/abab-2.0.3.tgz", "_spec": "2.0.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jeff Carpenter", "email": "gcarpenterv@gmail.com" diff --git a/node_modules/accepts/package.json b/node_modules/accepts/package.json index 089bc8a4..bcb8206b 100644 --- a/node_modules/accepts/package.json +++ b/node_modules/accepts/package.json @@ -2,7 +2,7 @@ "_args": [ [ "accepts@1.3.7", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "accepts@1.3.7", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", "_spec": "1.3.7", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/jshttp/accepts/issues" }, diff --git a/node_modules/acorn-dynamic-import/node_modules/acorn/package.json b/node_modules/acorn-dynamic-import/node_modules/acorn/package.json index c79fe714..edb3df2a 100644 --- a/node_modules/acorn-dynamic-import/node_modules/acorn/package.json +++ b/node_modules/acorn-dynamic-import/node_modules/acorn/package.json @@ -2,7 +2,7 @@ "_args": [ [ "acorn@5.7.4", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "acorn@5.7.4", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.4.tgz", "_spec": "5.7.4", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bin": { "acorn": "bin/acorn" }, diff --git a/node_modules/acorn-dynamic-import/package.json b/node_modules/acorn-dynamic-import/package.json index ab418bb6..8f480e1c 100644 --- a/node_modules/acorn-dynamic-import/package.json +++ b/node_modules/acorn-dynamic-import/package.json @@ -2,7 +2,7 @@ "_args": [ [ "acorn-dynamic-import@3.0.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "acorn-dynamic-import@3.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/acorn-dynamic-import/-/acorn-dynamic-import-3.0.0.tgz", "_spec": "3.0.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jordan Gensler", "email": "jordangens@gmail.com" diff --git a/node_modules/acorn-globals/package.json b/node_modules/acorn-globals/package.json index 8158291b..632a0075 100644 --- a/node_modules/acorn-globals/package.json +++ b/node_modules/acorn-globals/package.json @@ -2,7 +2,7 @@ "_args": [ [ "acorn-globals@4.3.4", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "acorn-globals@4.3.4", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-4.3.4.tgz", "_spec": "4.3.4", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "ForbesLindesay" }, diff --git a/node_modules/acorn-jsx/package.json b/node_modules/acorn-jsx/package.json index e1e8112e..cf98e4b8 100644 --- a/node_modules/acorn-jsx/package.json +++ b/node_modules/acorn-jsx/package.json @@ -2,7 +2,7 @@ "_args": [ [ "acorn-jsx@5.2.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "acorn-jsx@5.2.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.2.0.tgz", "_spec": "5.2.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/acornjs/acorn-jsx/issues" }, diff --git a/node_modules/acorn-walk/package.json b/node_modules/acorn-walk/package.json index 7bfb617d..b0c7cf3a 100644 --- a/node_modules/acorn-walk/package.json +++ b/node_modules/acorn-walk/package.json @@ -2,7 +2,7 @@ "_args": [ [ "acorn-walk@6.2.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "acorn-walk@6.2.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-6.2.0.tgz", "_spec": "6.2.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/acornjs/acorn/issues" }, diff --git a/node_modules/acorn/package.json b/node_modules/acorn/package.json index abaf5d44..6b48c778 100644 --- a/node_modules/acorn/package.json +++ b/node_modules/acorn/package.json @@ -2,7 +2,7 @@ "_args": [ [ "acorn@6.4.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "acorn@6.4.1", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/acorn/-/acorn-6.4.1.tgz", "_spec": "6.4.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bin": { "acorn": "bin/acorn" }, diff --git a/node_modules/address/package.json b/node_modules/address/package.json index af1f9062..c595f56a 100644 --- a/node_modules/address/package.json +++ b/node_modules/address/package.json @@ -2,7 +2,7 @@ "_args": [ [ "address@1.0.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "address@1.0.3", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/address/-/address-1.0.3.tgz", "_spec": "1.0.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "fengmk2", "email": "fengmk2@gmail.com" diff --git a/node_modules/ajv-errors/package.json b/node_modules/ajv-errors/package.json index 7cec1b03..cebb5889 100644 --- a/node_modules/ajv-errors/package.json +++ b/node_modules/ajv-errors/package.json @@ -2,7 +2,7 @@ "_args": [ [ "ajv-errors@1.0.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "ajv-errors@1.0.1", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-1.0.1.tgz", "_spec": "1.0.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": "", "bugs": { "url": "https://github.com/epoberezkin/ajv-errors/issues" diff --git a/node_modules/ajv-keywords/package.json b/node_modules/ajv-keywords/package.json index e551ed75..2e2b9b82 100644 --- a/node_modules/ajv-keywords/package.json +++ b/node_modules/ajv-keywords/package.json @@ -2,7 +2,7 @@ "_args": [ [ "ajv-keywords@3.4.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "ajv-keywords@3.4.1", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.4.1.tgz", "_spec": "3.4.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Evgeny Poberezkin" }, diff --git a/node_modules/ajv/package.json b/node_modules/ajv/package.json index ee901903..7a4bd436 100644 --- a/node_modules/ajv/package.json +++ b/node_modules/ajv/package.json @@ -2,7 +2,7 @@ "_args": [ [ "ajv@6.12.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "ajv@6.12.2", @@ -31,7 +31,7 @@ ], "_resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.2.tgz", "_spec": "6.12.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Evgeny Poberezkin" }, diff --git a/node_modules/alphanum-sort/package.json b/node_modules/alphanum-sort/package.json index b7ab5f6e..1a7cfda0 100644 --- a/node_modules/alphanum-sort/package.json +++ b/node_modules/alphanum-sort/package.json @@ -2,7 +2,7 @@ "_args": [ [ "alphanum-sort@1.0.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "alphanum-sort@1.0.2", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/alphanum-sort/-/alphanum-sort-1.0.2.tgz", "_spec": "1.0.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Bogdan Chadkin", "email": "trysound@yandex.ru" diff --git a/node_modules/ansi-colors/package.json b/node_modules/ansi-colors/package.json index 631f6a29..cce1f162 100644 --- a/node_modules/ansi-colors/package.json +++ b/node_modules/ansi-colors/package.json @@ -2,7 +2,7 @@ "_args": [ [ "ansi-colors@3.2.4", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "ansi-colors@3.2.4", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-3.2.4.tgz", "_spec": "3.2.4", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Brian Woodward", "url": "https://github.com/doowb" diff --git a/node_modules/ansi-escapes/package.json b/node_modules/ansi-escapes/package.json index 7ff972c8..9bef894f 100644 --- a/node_modules/ansi-escapes/package.json +++ b/node_modules/ansi-escapes/package.json @@ -2,7 +2,7 @@ "_args": [ [ "ansi-escapes@3.2.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "ansi-escapes@3.2.0", @@ -30,7 +30,7 @@ ], "_resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.2.0.tgz", "_spec": "3.2.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/ansi-html/package.json b/node_modules/ansi-html/package.json index aa484a92..293b087d 100644 --- a/node_modules/ansi-html/package.json +++ b/node_modules/ansi-html/package.json @@ -2,7 +2,7 @@ "_args": [ [ "ansi-html@0.0.7", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "ansi-html@0.0.7", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/ansi-html/-/ansi-html-0.0.7.tgz", "_spec": "0.0.7", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Tjatse" }, diff --git a/node_modules/ansi-regex/package.json b/node_modules/ansi-regex/package.json index f91561cb..2ae49746 100644 --- a/node_modules/ansi-regex/package.json +++ b/node_modules/ansi-regex/package.json @@ -2,7 +2,7 @@ "_args": [ [ "ansi-regex@2.1.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "ansi-regex@2.1.1", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", "_spec": "2.1.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/ansi-styles/package.json b/node_modules/ansi-styles/package.json index 4b075ec4..91b32b02 100644 --- a/node_modules/ansi-styles/package.json +++ b/node_modules/ansi-styles/package.json @@ -2,7 +2,7 @@ "_args": [ [ "ansi-styles@3.2.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "ansi-styles@3.2.1", @@ -36,7 +36,7 @@ ], "_resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "_spec": "3.2.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/anymatch/node_modules/arr-diff/package.json b/node_modules/anymatch/node_modules/arr-diff/package.json index 8fe840c8..d74b043f 100644 --- a/node_modules/anymatch/node_modules/arr-diff/package.json +++ b/node_modules/anymatch/node_modules/arr-diff/package.json @@ -2,7 +2,7 @@ "_args": [ [ "arr-diff@4.0.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "arr-diff@4.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", "_spec": "4.0.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/anymatch/node_modules/array-unique/package.json b/node_modules/anymatch/node_modules/array-unique/package.json index 985ca945..f811d555 100644 --- a/node_modules/anymatch/node_modules/array-unique/package.json +++ b/node_modules/anymatch/node_modules/array-unique/package.json @@ -2,7 +2,7 @@ "_args": [ [ "array-unique@0.3.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "array-unique@0.3.2", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", "_spec": "0.3.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/anymatch/node_modules/braces/node_modules/extend-shallow/package.json b/node_modules/anymatch/node_modules/braces/node_modules/extend-shallow/package.json index acf4fc6f..2b728f46 100644 --- a/node_modules/anymatch/node_modules/braces/node_modules/extend-shallow/package.json +++ b/node_modules/anymatch/node_modules/braces/node_modules/extend-shallow/package.json @@ -2,7 +2,7 @@ "_args": [ [ "extend-shallow@2.0.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "extend-shallow@2.0.1", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", "_spec": "2.0.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/anymatch/node_modules/braces/package.json b/node_modules/anymatch/node_modules/braces/package.json index aed1f7b2..f9d5f448 100644 --- a/node_modules/anymatch/node_modules/braces/package.json +++ b/node_modules/anymatch/node_modules/braces/package.json @@ -2,7 +2,7 @@ "_args": [ [ "braces@2.3.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "braces@2.3.2", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", "_spec": "2.3.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/anymatch/node_modules/debug/package.json b/node_modules/anymatch/node_modules/debug/package.json index 717db7bf..686c4402 100644 --- a/node_modules/anymatch/node_modules/debug/package.json +++ b/node_modules/anymatch/node_modules/debug/package.json @@ -2,7 +2,7 @@ "_args": [ [ "debug@2.6.9", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "debug@2.6.9", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "_spec": "2.6.9", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca" diff --git a/node_modules/anymatch/node_modules/expand-brackets/node_modules/define-property/package.json b/node_modules/anymatch/node_modules/expand-brackets/node_modules/define-property/package.json index 6395c1b0..9a5b41b5 100644 --- a/node_modules/anymatch/node_modules/expand-brackets/node_modules/define-property/package.json +++ b/node_modules/anymatch/node_modules/expand-brackets/node_modules/define-property/package.json @@ -2,7 +2,7 @@ "_args": [ [ "define-property@0.2.5", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "define-property@0.2.5", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", "_spec": "0.2.5", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/anymatch/node_modules/expand-brackets/node_modules/extend-shallow/package.json b/node_modules/anymatch/node_modules/expand-brackets/node_modules/extend-shallow/package.json index a40dcf27..d2dca7a1 100644 --- a/node_modules/anymatch/node_modules/expand-brackets/node_modules/extend-shallow/package.json +++ b/node_modules/anymatch/node_modules/expand-brackets/node_modules/extend-shallow/package.json @@ -2,7 +2,7 @@ "_args": [ [ "extend-shallow@2.0.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "extend-shallow@2.0.1", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", "_spec": "2.0.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/anymatch/node_modules/expand-brackets/node_modules/is-accessor-descriptor/node_modules/kind-of/package.json b/node_modules/anymatch/node_modules/expand-brackets/node_modules/is-accessor-descriptor/node_modules/kind-of/package.json index e5dfa699..d491a042 100644 --- a/node_modules/anymatch/node_modules/expand-brackets/node_modules/is-accessor-descriptor/node_modules/kind-of/package.json +++ b/node_modules/anymatch/node_modules/expand-brackets/node_modules/is-accessor-descriptor/node_modules/kind-of/package.json @@ -2,7 +2,7 @@ "_args": [ [ "kind-of@3.2.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "kind-of@3.2.2", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", "_spec": "3.2.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/anymatch/node_modules/expand-brackets/node_modules/is-accessor-descriptor/package.json b/node_modules/anymatch/node_modules/expand-brackets/node_modules/is-accessor-descriptor/package.json index 0488e032..12dfa1b7 100644 --- a/node_modules/anymatch/node_modules/expand-brackets/node_modules/is-accessor-descriptor/package.json +++ b/node_modules/anymatch/node_modules/expand-brackets/node_modules/is-accessor-descriptor/package.json @@ -2,7 +2,7 @@ "_args": [ [ "is-accessor-descriptor@0.1.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "is-accessor-descriptor@0.1.6", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", "_spec": "0.1.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/anymatch/node_modules/expand-brackets/node_modules/is-data-descriptor/node_modules/kind-of/package.json b/node_modules/anymatch/node_modules/expand-brackets/node_modules/is-data-descriptor/node_modules/kind-of/package.json index e8f46b8f..309b684a 100644 --- a/node_modules/anymatch/node_modules/expand-brackets/node_modules/is-data-descriptor/node_modules/kind-of/package.json +++ b/node_modules/anymatch/node_modules/expand-brackets/node_modules/is-data-descriptor/node_modules/kind-of/package.json @@ -2,7 +2,7 @@ "_args": [ [ "kind-of@3.2.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "kind-of@3.2.2", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", "_spec": "3.2.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/anymatch/node_modules/expand-brackets/node_modules/is-data-descriptor/package.json b/node_modules/anymatch/node_modules/expand-brackets/node_modules/is-data-descriptor/package.json index af3ac81e..2c86f017 100644 --- a/node_modules/anymatch/node_modules/expand-brackets/node_modules/is-data-descriptor/package.json +++ b/node_modules/anymatch/node_modules/expand-brackets/node_modules/is-data-descriptor/package.json @@ -2,7 +2,7 @@ "_args": [ [ "is-data-descriptor@0.1.4", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "is-data-descriptor@0.1.4", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", "_spec": "0.1.4", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/anymatch/node_modules/expand-brackets/node_modules/is-descriptor/package.json b/node_modules/anymatch/node_modules/expand-brackets/node_modules/is-descriptor/package.json index e558997d..bd7ce8c7 100644 --- a/node_modules/anymatch/node_modules/expand-brackets/node_modules/is-descriptor/package.json +++ b/node_modules/anymatch/node_modules/expand-brackets/node_modules/is-descriptor/package.json @@ -2,7 +2,7 @@ "_args": [ [ "is-descriptor@0.1.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "is-descriptor@0.1.6", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", "_spec": "0.1.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/anymatch/node_modules/expand-brackets/node_modules/kind-of/package.json b/node_modules/anymatch/node_modules/expand-brackets/node_modules/kind-of/package.json index 8b354ba2..14381df9 100644 --- a/node_modules/anymatch/node_modules/expand-brackets/node_modules/kind-of/package.json +++ b/node_modules/anymatch/node_modules/expand-brackets/node_modules/kind-of/package.json @@ -2,7 +2,7 @@ "_args": [ [ "kind-of@5.1.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "kind-of@5.1.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", "_spec": "5.1.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/anymatch/node_modules/expand-brackets/package.json b/node_modules/anymatch/node_modules/expand-brackets/package.json index 6397d650..b41489d9 100644 --- a/node_modules/anymatch/node_modules/expand-brackets/package.json +++ b/node_modules/anymatch/node_modules/expand-brackets/package.json @@ -2,7 +2,7 @@ "_args": [ [ "expand-brackets@2.1.4", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "expand-brackets@2.1.4", @@ -29,7 +29,7 @@ ], "_resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", "_spec": "2.1.4", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/anymatch/node_modules/extglob/node_modules/define-property/package.json b/node_modules/anymatch/node_modules/extglob/node_modules/define-property/package.json index af57ed80..20f73d15 100644 --- a/node_modules/anymatch/node_modules/extglob/node_modules/define-property/package.json +++ b/node_modules/anymatch/node_modules/extglob/node_modules/define-property/package.json @@ -2,7 +2,7 @@ "_args": [ [ "define-property@1.0.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "define-property@1.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", "_spec": "1.0.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/anymatch/node_modules/extglob/node_modules/extend-shallow/package.json b/node_modules/anymatch/node_modules/extglob/node_modules/extend-shallow/package.json index dca23a1b..7f22d043 100644 --- a/node_modules/anymatch/node_modules/extglob/node_modules/extend-shallow/package.json +++ b/node_modules/anymatch/node_modules/extglob/node_modules/extend-shallow/package.json @@ -2,7 +2,7 @@ "_args": [ [ "extend-shallow@2.0.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "extend-shallow@2.0.1", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", "_spec": "2.0.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/anymatch/node_modules/extglob/package.json b/node_modules/anymatch/node_modules/extglob/package.json index c6def363..120a03c3 100644 --- a/node_modules/anymatch/node_modules/extglob/package.json +++ b/node_modules/anymatch/node_modules/extglob/package.json @@ -2,7 +2,7 @@ "_args": [ [ "extglob@2.0.4", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "extglob@2.0.4", @@ -29,7 +29,7 @@ ], "_resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", "_spec": "2.0.4", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/anymatch/node_modules/fill-range/node_modules/extend-shallow/package.json b/node_modules/anymatch/node_modules/fill-range/node_modules/extend-shallow/package.json index b9156fdf..dc7aafe8 100644 --- a/node_modules/anymatch/node_modules/fill-range/node_modules/extend-shallow/package.json +++ b/node_modules/anymatch/node_modules/fill-range/node_modules/extend-shallow/package.json @@ -2,7 +2,7 @@ "_args": [ [ "extend-shallow@2.0.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "extend-shallow@2.0.1", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", "_spec": "2.0.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/anymatch/node_modules/fill-range/package.json b/node_modules/anymatch/node_modules/fill-range/package.json index b9092fcd..355541a1 100644 --- a/node_modules/anymatch/node_modules/fill-range/package.json +++ b/node_modules/anymatch/node_modules/fill-range/package.json @@ -2,7 +2,7 @@ "_args": [ [ "fill-range@4.0.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "fill-range@4.0.0", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", "_spec": "4.0.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/anymatch/node_modules/is-accessor-descriptor/package.json b/node_modules/anymatch/node_modules/is-accessor-descriptor/package.json index 91bf0b94..a425c0c4 100644 --- a/node_modules/anymatch/node_modules/is-accessor-descriptor/package.json +++ b/node_modules/anymatch/node_modules/is-accessor-descriptor/package.json @@ -2,7 +2,7 @@ "_args": [ [ "is-accessor-descriptor@1.0.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "is-accessor-descriptor@1.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", "_spec": "1.0.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/anymatch/node_modules/is-data-descriptor/package.json b/node_modules/anymatch/node_modules/is-data-descriptor/package.json index 4610d7bf..b9bec3a0 100644 --- a/node_modules/anymatch/node_modules/is-data-descriptor/package.json +++ b/node_modules/anymatch/node_modules/is-data-descriptor/package.json @@ -2,7 +2,7 @@ "_args": [ [ "is-data-descriptor@1.0.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "is-data-descriptor@1.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", "_spec": "1.0.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/anymatch/node_modules/is-descriptor/package.json b/node_modules/anymatch/node_modules/is-descriptor/package.json index 72eabec1..e5ae4f79 100644 --- a/node_modules/anymatch/node_modules/is-descriptor/package.json +++ b/node_modules/anymatch/node_modules/is-descriptor/package.json @@ -2,7 +2,7 @@ "_args": [ [ "is-descriptor@1.0.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "is-descriptor@1.0.2", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", "_spec": "1.0.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/anymatch/node_modules/is-number/node_modules/kind-of/package.json b/node_modules/anymatch/node_modules/is-number/node_modules/kind-of/package.json index cbae959b..eacd56b3 100644 --- a/node_modules/anymatch/node_modules/is-number/node_modules/kind-of/package.json +++ b/node_modules/anymatch/node_modules/is-number/node_modules/kind-of/package.json @@ -2,7 +2,7 @@ "_args": [ [ "kind-of@3.2.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "kind-of@3.2.2", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", "_spec": "3.2.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/anymatch/node_modules/is-number/package.json b/node_modules/anymatch/node_modules/is-number/package.json index 62a083f6..434afb02 100644 --- a/node_modules/anymatch/node_modules/is-number/package.json +++ b/node_modules/anymatch/node_modules/is-number/package.json @@ -2,7 +2,7 @@ "_args": [ [ "is-number@3.0.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "is-number@3.0.0", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", "_spec": "3.0.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/anymatch/node_modules/kind-of/package.json b/node_modules/anymatch/node_modules/kind-of/package.json index 01736c4e..12ec0279 100644 --- a/node_modules/anymatch/node_modules/kind-of/package.json +++ b/node_modules/anymatch/node_modules/kind-of/package.json @@ -2,7 +2,7 @@ "_args": [ [ "kind-of@6.0.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "kind-of@6.0.3", @@ -29,7 +29,7 @@ ], "_resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", "_spec": "6.0.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/anymatch/node_modules/micromatch/package.json b/node_modules/anymatch/node_modules/micromatch/package.json index 80f8f626..293a6018 100644 --- a/node_modules/anymatch/node_modules/micromatch/package.json +++ b/node_modules/anymatch/node_modules/micromatch/package.json @@ -2,7 +2,7 @@ "_args": [ [ "micromatch@3.1.10", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "micromatch@3.1.10", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", "_spec": "3.1.10", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/anymatch/node_modules/ms/package.json b/node_modules/anymatch/node_modules/ms/package.json index 44e864ff..f7fb5f46 100644 --- a/node_modules/anymatch/node_modules/ms/package.json +++ b/node_modules/anymatch/node_modules/ms/package.json @@ -2,7 +2,7 @@ "_args": [ [ "ms@2.0.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "ms@2.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "_spec": "2.0.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/zeit/ms/issues" }, diff --git a/node_modules/anymatch/package.json b/node_modules/anymatch/package.json index 79694b56..f100f5d8 100644 --- a/node_modules/anymatch/package.json +++ b/node_modules/anymatch/package.json @@ -2,7 +2,7 @@ "_args": [ [ "anymatch@2.0.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "anymatch@2.0.0", @@ -46,7 +46,7 @@ ], "_resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", "_spec": "2.0.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Elan Shanker", "url": "http://github.com/es128" diff --git a/node_modules/append-transform/package.json b/node_modules/append-transform/package.json index 7856a113..e4da1320 100644 --- a/node_modules/append-transform/package.json +++ b/node_modules/append-transform/package.json @@ -2,7 +2,7 @@ "_args": [ [ "append-transform@0.4.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "append-transform@0.4.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/append-transform/-/append-transform-0.4.0.tgz", "_spec": "0.4.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "James Talmage", "email": "james@talmage.io", diff --git a/node_modules/aproba/package.json b/node_modules/aproba/package.json index 6fd16740..54a24035 100644 --- a/node_modules/aproba/package.json +++ b/node_modules/aproba/package.json @@ -2,7 +2,7 @@ "_args": [ [ "aproba@1.2.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "aproba@1.2.0", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", "_spec": "1.2.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Rebecca Turner", "email": "me@re-becca.org" diff --git a/node_modules/argparse/package.json b/node_modules/argparse/package.json index c1c3e601..3b43519c 100644 --- a/node_modules/argparse/package.json +++ b/node_modules/argparse/package.json @@ -2,7 +2,7 @@ "_args": [ [ "argparse@1.0.10", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "argparse@1.0.10", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "_spec": "1.0.10", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/nodeca/argparse/issues" }, diff --git a/node_modules/aria-query/package.json b/node_modules/aria-query/package.json index 39ffcbe2..ea1189b4 100644 --- a/node_modules/aria-query/package.json +++ b/node_modules/aria-query/package.json @@ -2,7 +2,7 @@ "_args": [ [ "aria-query@3.0.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "aria-query@3.0.0", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/aria-query/-/aria-query-3.0.0.tgz", "_spec": "3.0.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jesse Beach", "email": "splendidnoise@gmail.com" diff --git a/node_modules/arr-diff/package.json b/node_modules/arr-diff/package.json index d2869bbe..867646ac 100644 --- a/node_modules/arr-diff/package.json +++ b/node_modules/arr-diff/package.json @@ -2,7 +2,7 @@ "_args": [ [ "arr-diff@2.0.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "arr-diff@2.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz", "_spec": "2.0.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/arr-flatten/package.json b/node_modules/arr-flatten/package.json index 37377de8..23666b3a 100644 --- a/node_modules/arr-flatten/package.json +++ b/node_modules/arr-flatten/package.json @@ -2,7 +2,7 @@ "_args": [ [ "arr-flatten@1.1.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "arr-flatten@1.1.0", @@ -34,7 +34,7 @@ ], "_resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", "_spec": "1.1.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/arr-union/package.json b/node_modules/arr-union/package.json index e966c203..0d5f5759 100644 --- a/node_modules/arr-union/package.json +++ b/node_modules/arr-union/package.json @@ -2,7 +2,7 @@ "_args": [ [ "arr-union@3.1.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "arr-union@3.1.0", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", "_spec": "3.1.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/array-equal/package.json b/node_modules/array-equal/package.json index 20620118..21530536 100644 --- a/node_modules/array-equal/package.json +++ b/node_modules/array-equal/package.json @@ -2,7 +2,7 @@ "_args": [ [ "array-equal@1.0.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "array-equal@1.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/array-equal/-/array-equal-1.0.0.tgz", "_spec": "1.0.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jonathan Ong", "email": "me@jongleberry.com", diff --git a/node_modules/array-filter/package.json b/node_modules/array-filter/package.json index f3080471..5a49e5dc 100644 --- a/node_modules/array-filter/package.json +++ b/node_modules/array-filter/package.json @@ -2,7 +2,7 @@ "_args": [ [ "array-filter@0.0.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "array-filter@0.0.1", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/array-filter/-/array-filter-0.0.1.tgz", "_spec": "0.0.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Julian Gruber", "email": "mail@juliangruber.com", diff --git a/node_modules/array-flatten/package.json b/node_modules/array-flatten/package.json index 3441adb6..b96bcf99 100644 --- a/node_modules/array-flatten/package.json +++ b/node_modules/array-flatten/package.json @@ -2,7 +2,7 @@ "_args": [ [ "array-flatten@2.1.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "array-flatten@2.1.2", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-2.1.2.tgz", "_spec": "2.1.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Blake Embrey", "email": "hello@blakeembrey.com", diff --git a/node_modules/array-includes/node_modules/es-abstract/package.json b/node_modules/array-includes/node_modules/es-abstract/package.json index 48fa3833..860d45f0 100644 --- a/node_modules/array-includes/node_modules/es-abstract/package.json +++ b/node_modules/array-includes/node_modules/es-abstract/package.json @@ -2,7 +2,7 @@ "_args": [ [ "es-abstract@1.17.5", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "es-abstract@1.17.5", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.5.tgz", "_spec": "1.17.5", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jordan Harband", "email": "ljharb@gmail.com", diff --git a/node_modules/array-includes/node_modules/is-callable/package.json b/node_modules/array-includes/node_modules/is-callable/package.json index a462ac2f..6b18c571 100644 --- a/node_modules/array-includes/node_modules/is-callable/package.json +++ b/node_modules/array-includes/node_modules/is-callable/package.json @@ -2,7 +2,7 @@ "_args": [ [ "is-callable@1.1.5", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "is-callable@1.1.5", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.5.tgz", "_spec": "1.1.5", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jordan Harband", "email": "ljharb@gmail.com", diff --git a/node_modules/array-includes/node_modules/is-regex/package.json b/node_modules/array-includes/node_modules/is-regex/package.json index 3d0d8335..954ae1f8 100644 --- a/node_modules/array-includes/node_modules/is-regex/package.json +++ b/node_modules/array-includes/node_modules/is-regex/package.json @@ -2,7 +2,7 @@ "_args": [ [ "is-regex@1.0.5", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "is-regex@1.0.5", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.5.tgz", "_spec": "1.0.5", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jordan Harband", "email": "ljharb@gmail.com" diff --git a/node_modules/array-includes/node_modules/string.prototype.trimleft/package.json b/node_modules/array-includes/node_modules/string.prototype.trimleft/package.json index 0e7438fb..79abd754 100644 --- a/node_modules/array-includes/node_modules/string.prototype.trimleft/package.json +++ b/node_modules/array-includes/node_modules/string.prototype.trimleft/package.json @@ -2,7 +2,7 @@ "_args": [ [ "string.prototype.trimleft@2.1.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "string.prototype.trimleft@2.1.2", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/string.prototype.trimleft/-/string.prototype.trimleft-2.1.2.tgz", "_spec": "2.1.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jordan Harband", "email": "ljharb@gmail.com" diff --git a/node_modules/array-includes/node_modules/string.prototype.trimright/package.json b/node_modules/array-includes/node_modules/string.prototype.trimright/package.json index 5d12fc79..46efa451 100644 --- a/node_modules/array-includes/node_modules/string.prototype.trimright/package.json +++ b/node_modules/array-includes/node_modules/string.prototype.trimright/package.json @@ -2,7 +2,7 @@ "_args": [ [ "string.prototype.trimright@2.1.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "string.prototype.trimright@2.1.2", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/string.prototype.trimright/-/string.prototype.trimright-2.1.2.tgz", "_spec": "2.1.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jordan Harband" }, diff --git a/node_modules/array-includes/package.json b/node_modules/array-includes/package.json index 027353fe..7b4ccb79 100644 --- a/node_modules/array-includes/package.json +++ b/node_modules/array-includes/package.json @@ -2,7 +2,7 @@ "_args": [ [ "array-includes@3.1.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "array-includes@3.1.1", @@ -39,7 +39,7 @@ ], "_resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.1.tgz", "_spec": "3.1.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jordan Harband", "email": "ljharb@gmail.com", diff --git a/node_modules/array-map/package.json b/node_modules/array-map/package.json index 8684934d..d2d01120 100644 --- a/node_modules/array-map/package.json +++ b/node_modules/array-map/package.json @@ -2,7 +2,7 @@ "_args": [ [ "array-map@0.0.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "array-map@0.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/array-map/-/array-map-0.0.0.tgz", "_spec": "0.0.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "James Halliday", "email": "mail@substack.net", diff --git a/node_modules/array-reduce/package.json b/node_modules/array-reduce/package.json index 3e37f62b..98444352 100644 --- a/node_modules/array-reduce/package.json +++ b/node_modules/array-reduce/package.json @@ -2,7 +2,7 @@ "_args": [ [ "array-reduce@0.0.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "array-reduce@0.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/array-reduce/-/array-reduce-0.0.0.tgz", "_spec": "0.0.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "James Halliday", "email": "mail@substack.net", diff --git a/node_modules/array-union/package.json b/node_modules/array-union/package.json index 3d31fe8b..17fa1d88 100644 --- a/node_modules/array-union/package.json +++ b/node_modules/array-union/package.json @@ -2,7 +2,7 @@ "_args": [ [ "array-union@1.0.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "array-union@1.0.2", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", "_spec": "1.0.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/array-uniq/package.json b/node_modules/array-uniq/package.json index 50b73883..15f660b5 100644 --- a/node_modules/array-uniq/package.json +++ b/node_modules/array-uniq/package.json @@ -2,7 +2,7 @@ "_args": [ [ "array-uniq@1.0.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "array-uniq@1.0.3", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", "_spec": "1.0.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/array-unique/package.json b/node_modules/array-unique/package.json index 948aee32..ea10b908 100755 --- a/node_modules/array-unique/package.json +++ b/node_modules/array-unique/package.json @@ -2,7 +2,7 @@ "_args": [ [ "array-unique@0.2.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "array-unique@0.2.1", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz", "_spec": "0.2.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/arrify/package.json b/node_modules/arrify/package.json index 4c0a6e4c..3784e6ad 100644 --- a/node_modules/arrify/package.json +++ b/node_modules/arrify/package.json @@ -2,7 +2,7 @@ "_args": [ [ "arrify@1.0.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "arrify@1.0.1", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", "_spec": "1.0.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/asap/package.json b/node_modules/asap/package.json index f07e45b1..57ca55e1 100644 --- a/node_modules/asap/package.json +++ b/node_modules/asap/package.json @@ -2,7 +2,7 @@ "_args": [ [ "asap@2.0.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "asap@2.0.6", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", "_spec": "2.0.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "browser": { "./asap": "./browser-asap.js", "./asap.js": "./browser-asap.js", diff --git a/node_modules/asn1.js/package.json b/node_modules/asn1.js/package.json index b3086e00..b2d80bf2 100644 --- a/node_modules/asn1.js/package.json +++ b/node_modules/asn1.js/package.json @@ -2,7 +2,7 @@ "_args": [ [ "asn1.js@4.10.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "asn1.js@4.10.1", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-4.10.1.tgz", "_spec": "4.10.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Fedor Indutny" }, diff --git a/node_modules/asn1/package.json b/node_modules/asn1/package.json index ac2b70ba..c35b13e2 100644 --- a/node_modules/asn1/package.json +++ b/node_modules/asn1/package.json @@ -2,7 +2,7 @@ "_args": [ [ "asn1@0.2.4", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "asn1@0.2.4", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", "_spec": "0.2.4", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Joyent", "url": "joyent.com" diff --git a/node_modules/assert-plus/package.json b/node_modules/assert-plus/package.json index 569654a8..333f0122 100644 --- a/node_modules/assert-plus/package.json +++ b/node_modules/assert-plus/package.json @@ -2,7 +2,7 @@ "_args": [ [ "assert-plus@1.0.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "assert-plus@1.0.0", @@ -31,7 +31,7 @@ ], "_resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", "_spec": "1.0.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Mark Cavage", "email": "mcavage@gmail.com" diff --git a/node_modules/assert/node_modules/inherits/package.json b/node_modules/assert/node_modules/inherits/package.json index f60b689e..27d3433b 100644 --- a/node_modules/assert/node_modules/inherits/package.json +++ b/node_modules/assert/node_modules/inherits/package.json @@ -2,7 +2,7 @@ "_args": [ [ "inherits@2.0.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "inherits@2.0.1", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", "_spec": "2.0.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "browser": "./inherits_browser.js", "bugs": { "url": "https://github.com/isaacs/inherits/issues" diff --git a/node_modules/assert/node_modules/util/package.json b/node_modules/assert/node_modules/util/package.json index 7eb6a288..decab8e3 100644 --- a/node_modules/assert/node_modules/util/package.json +++ b/node_modules/assert/node_modules/util/package.json @@ -2,7 +2,7 @@ "_args": [ [ "util@0.10.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "util@0.10.3", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", "_spec": "0.10.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Joyent", "url": "http://www.joyent.com" diff --git a/node_modules/assert/package.json b/node_modules/assert/package.json index c1311f91..6ede2397 100644 --- a/node_modules/assert/package.json +++ b/node_modules/assert/package.json @@ -2,7 +2,7 @@ "_args": [ [ "assert@1.5.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "assert@1.5.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/assert/-/assert-1.5.0.tgz", "_spec": "1.5.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/browserify/commonjs-assert/issues" }, diff --git a/node_modules/assign-symbols/package.json b/node_modules/assign-symbols/package.json index cc87d03c..2369c7ff 100644 --- a/node_modules/assign-symbols/package.json +++ b/node_modules/assign-symbols/package.json @@ -2,7 +2,7 @@ "_args": [ [ "assign-symbols@1.0.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "assign-symbols@1.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", "_spec": "1.0.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/ast-types-flow/package.json b/node_modules/ast-types-flow/package.json index 03051361..31361a6e 100644 --- a/node_modules/ast-types-flow/package.json +++ b/node_modules/ast-types-flow/package.json @@ -2,7 +2,7 @@ "_args": [ [ "ast-types-flow@0.0.7", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "ast-types-flow@0.0.7", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz", "_spec": "0.0.7", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "kyldvs" }, diff --git a/node_modules/astral-regex/package.json b/node_modules/astral-regex/package.json index 2bbc0117..e67220b1 100644 --- a/node_modules/astral-regex/package.json +++ b/node_modules/astral-regex/package.json @@ -2,7 +2,7 @@ "_args": [ [ "astral-regex@1.0.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "astral-regex@1.0.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz", "_spec": "1.0.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Kevin Mårtensson", "email": "kevinmartensson@gmail.com", diff --git a/node_modules/async-each/package.json b/node_modules/async-each/package.json index eb7a17e2..30e84da4 100644 --- a/node_modules/async-each/package.json +++ b/node_modules/async-each/package.json @@ -2,7 +2,7 @@ "_args": [ [ "async-each@1.0.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "async-each@1.0.3", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.3.tgz", "_spec": "1.0.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Paul Miller", "url": "https://paulmillr.com/" diff --git a/node_modules/async-limiter/package.json b/node_modules/async-limiter/package.json index 27a16e2a..1a6a7c1b 100644 --- a/node_modules/async-limiter/package.json +++ b/node_modules/async-limiter/package.json @@ -2,7 +2,7 @@ "_args": [ [ "async-limiter@1.0.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "async-limiter@1.0.1", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz", "_spec": "1.0.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Samuel Reed" }, diff --git a/node_modules/async/package.json b/node_modules/async/package.json index 4fd0fa44..5ac1230b 100644 --- a/node_modules/async/package.json +++ b/node_modules/async/package.json @@ -2,7 +2,7 @@ "_args": [ [ "async@2.6.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "async@2.6.3", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/async/-/async-2.6.3.tgz", "_spec": "2.6.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Caolan McMahon" }, diff --git a/node_modules/asynckit/package.json b/node_modules/asynckit/package.json index 20cf3b85..c4c86295 100644 --- a/node_modules/asynckit/package.json +++ b/node_modules/asynckit/package.json @@ -2,7 +2,7 @@ "_args": [ [ "asynckit@0.4.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "asynckit@0.4.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", "_spec": "0.4.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Alex Indigo", "email": "iam@alexindigo.com" diff --git a/node_modules/atob/package.json b/node_modules/atob/package.json index a6a20399..f251ab46 100644 --- a/node_modules/atob/package.json +++ b/node_modules/atob/package.json @@ -2,7 +2,7 @@ "_args": [ [ "atob@2.1.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "atob@2.1.2", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", "_spec": "2.1.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "AJ ONeal", "email": "coolaj86@gmail.com", diff --git a/node_modules/attr-accept/package.json b/node_modules/attr-accept/package.json index 5ce0b49e..3a6bf322 100644 --- a/node_modules/attr-accept/package.json +++ b/node_modules/attr-accept/package.json @@ -2,7 +2,7 @@ "_args": [ [ "attr-accept@2.0.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "attr-accept@2.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/attr-accept/-/attr-accept-2.0.0.tgz", "_spec": "2.0.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Andrey Okonetchnikov @okonetchnikov" }, diff --git a/node_modules/autoprefixer/node_modules/postcss-value-parser/package.json b/node_modules/autoprefixer/node_modules/postcss-value-parser/package.json index 8a3e0c6f..f3771cbc 100644 --- a/node_modules/autoprefixer/node_modules/postcss-value-parser/package.json +++ b/node_modules/autoprefixer/node_modules/postcss-value-parser/package.json @@ -2,7 +2,7 @@ "_args": [ [ "postcss-value-parser@4.1.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "postcss-value-parser@4.1.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.1.0.tgz", "_spec": "4.1.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Bogdan Chadkin", "email": "trysound@yandex.ru" diff --git a/node_modules/autoprefixer/node_modules/postcss/package.json b/node_modules/autoprefixer/node_modules/postcss/package.json index da8e4d02..98c5cba2 100644 --- a/node_modules/autoprefixer/node_modules/postcss/package.json +++ b/node_modules/autoprefixer/node_modules/postcss/package.json @@ -2,7 +2,7 @@ "_args": [ [ "postcss@7.0.29", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "postcss@7.0.29", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.29.tgz", "_spec": "7.0.29", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Andrey Sitnik", "email": "andrey@sitnik.ru" diff --git a/node_modules/autoprefixer/node_modules/source-map/package.json b/node_modules/autoprefixer/node_modules/source-map/package.json index 2aa23d95..e8977805 100644 --- a/node_modules/autoprefixer/node_modules/source-map/package.json +++ b/node_modules/autoprefixer/node_modules/source-map/package.json @@ -2,7 +2,7 @@ "_args": [ [ "source-map@0.6.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "source-map@0.6.1", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", "_spec": "0.6.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Nick Fitzgerald", "email": "nfitzgerald@mozilla.com" diff --git a/node_modules/autoprefixer/node_modules/supports-color/package.json b/node_modules/autoprefixer/node_modules/supports-color/package.json index 8ad80368..c59f5092 100644 --- a/node_modules/autoprefixer/node_modules/supports-color/package.json +++ b/node_modules/autoprefixer/node_modules/supports-color/package.json @@ -2,7 +2,7 @@ "_args": [ [ "supports-color@6.1.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "supports-color@6.1.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", "_spec": "6.1.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/autoprefixer/package.json b/node_modules/autoprefixer/package.json index 15c6c8ab..47225152 100644 --- a/node_modules/autoprefixer/package.json +++ b/node_modules/autoprefixer/package.json @@ -2,7 +2,7 @@ "_args": [ [ "autoprefixer@9.7.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "autoprefixer@9.7.6", @@ -29,7 +29,7 @@ ], "_resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-9.7.6.tgz", "_spec": "9.7.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Andrey Sitnik", "email": "andrey@sitnik.ru" diff --git a/node_modules/autosuggest-highlight/package.json b/node_modules/autosuggest-highlight/package.json index b277db4a..e8360e93 100644 --- a/node_modules/autosuggest-highlight/package.json +++ b/node_modules/autosuggest-highlight/package.json @@ -2,7 +2,7 @@ "_args": [ [ "autosuggest-highlight@3.1.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "autosuggest-highlight@3.1.1", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/autosuggest-highlight/-/autosuggest-highlight-3.1.1.tgz", "_spec": "3.1.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Misha Moroshko", "email": "michael.moroshko@gmail.com" diff --git a/node_modules/aws-sign2/package.json b/node_modules/aws-sign2/package.json index 1c0a8568..04a92a74 100644 --- a/node_modules/aws-sign2/package.json +++ b/node_modules/aws-sign2/package.json @@ -2,7 +2,7 @@ "_args": [ [ "aws-sign2@0.7.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "aws-sign2@0.7.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", "_spec": "0.7.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Mikeal Rogers", "email": "mikeal.rogers@gmail.com", diff --git a/node_modules/aws4/package.json b/node_modules/aws4/package.json index 4f4591b2..ed0def18 100644 --- a/node_modules/aws4/package.json +++ b/node_modules/aws4/package.json @@ -2,7 +2,7 @@ "_args": [ [ "aws4@1.9.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "aws4@1.9.1", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/aws4/-/aws4-1.9.1.tgz", "_spec": "1.9.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Michael Hart", "email": "michael.hart.au@gmail.com", diff --git a/node_modules/axios/node_modules/debug/package.json b/node_modules/axios/node_modules/debug/package.json index 3e249ba2..879db505 100644 --- a/node_modules/axios/node_modules/debug/package.json +++ b/node_modules/axios/node_modules/debug/package.json @@ -2,7 +2,7 @@ "_args": [ [ "debug@3.1.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "debug@3.1.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", "_spec": "3.1.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca" diff --git a/node_modules/axios/node_modules/follow-redirects/package.json b/node_modules/axios/node_modules/follow-redirects/package.json index 36c28b57..3226e5bc 100644 --- a/node_modules/axios/node_modules/follow-redirects/package.json +++ b/node_modules/axios/node_modules/follow-redirects/package.json @@ -2,7 +2,7 @@ "_args": [ [ "follow-redirects@1.5.10", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "follow-redirects@1.5.10", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.10.tgz", "_spec": "1.5.10", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Ruben Verborgh", "email": "ruben@verborgh.org", diff --git a/node_modules/axios/node_modules/ms/package.json b/node_modules/axios/node_modules/ms/package.json index 89d1ce4d..6d2939a4 100644 --- a/node_modules/axios/node_modules/ms/package.json +++ b/node_modules/axios/node_modules/ms/package.json @@ -2,7 +2,7 @@ "_args": [ [ "ms@2.0.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "ms@2.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "_spec": "2.0.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/zeit/ms/issues" }, diff --git a/node_modules/axios/package.json b/node_modules/axios/package.json index e3c02e2d..6c20be47 100644 --- a/node_modules/axios/package.json +++ b/node_modules/axios/package.json @@ -2,7 +2,7 @@ "_args": [ [ "axios@0.19.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "axios@0.19.1", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/axios/-/axios-0.19.1.tgz", "_spec": "0.19.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Matt Zabriskie" }, diff --git a/node_modules/axobject-query/package.json b/node_modules/axobject-query/package.json index 7bc034cd..273bd8c2 100755 --- a/node_modules/axobject-query/package.json +++ b/node_modules/axobject-query/package.json @@ -2,7 +2,7 @@ "_args": [ [ "axobject-query@2.1.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "axobject-query@2.1.2", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-2.1.2.tgz", "_spec": "2.1.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jesse Beach", "email": "splendidnoise@gmail.com" diff --git a/node_modules/b64-lite/package.json b/node_modules/b64-lite/package.json index b639992c..4284bb3f 100644 --- a/node_modules/b64-lite/package.json +++ b/node_modules/b64-lite/package.json @@ -2,7 +2,7 @@ "_args": [ [ "b64-lite@1.4.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "b64-lite@1.4.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/b64-lite/-/b64-lite-1.4.0.tgz", "_spec": "1.4.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "amdName": "b64Lite", "browser": { "./node/b64-lite.js": "./dist/b64-lite.main.js", diff --git a/node_modules/b64u-lite/package.json b/node_modules/b64u-lite/package.json index 4f2dcc8a..c537dfc5 100644 --- a/node_modules/b64u-lite/package.json +++ b/node_modules/b64u-lite/package.json @@ -2,7 +2,7 @@ "_args": [ [ "b64u-lite@1.1.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "b64u-lite@1.1.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/b64u-lite/-/b64u-lite-1.1.0.tgz", "_spec": "1.1.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "amdName": "b64uLite", "bugs": { "url": "https://github.com/kevlened/b64u-lite/issues" diff --git a/node_modules/babel-code-frame/node_modules/ansi-styles/package.json b/node_modules/babel-code-frame/node_modules/ansi-styles/package.json index 0f456ede..912cde69 100644 --- a/node_modules/babel-code-frame/node_modules/ansi-styles/package.json +++ b/node_modules/babel-code-frame/node_modules/ansi-styles/package.json @@ -2,7 +2,7 @@ "_args": [ [ "ansi-styles@2.2.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "ansi-styles@2.2.1", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", "_spec": "2.2.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/babel-code-frame/node_modules/chalk/package.json b/node_modules/babel-code-frame/node_modules/chalk/package.json index a09b8d64..c08e7dc1 100644 --- a/node_modules/babel-code-frame/node_modules/chalk/package.json +++ b/node_modules/babel-code-frame/node_modules/chalk/package.json @@ -2,7 +2,7 @@ "_args": [ [ "chalk@1.1.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "chalk@1.1.3", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", "_spec": "1.1.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/chalk/chalk/issues" }, diff --git a/node_modules/babel-code-frame/node_modules/js-tokens/package.json b/node_modules/babel-code-frame/node_modules/js-tokens/package.json index da441f32..65a5d924 100644 --- a/node_modules/babel-code-frame/node_modules/js-tokens/package.json +++ b/node_modules/babel-code-frame/node_modules/js-tokens/package.json @@ -2,7 +2,7 @@ "_args": [ [ "js-tokens@3.0.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "js-tokens@3.0.2", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", "_spec": "3.0.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Simon Lydell" }, diff --git a/node_modules/babel-code-frame/node_modules/supports-color/package.json b/node_modules/babel-code-frame/node_modules/supports-color/package.json index 5fa60624..42412289 100644 --- a/node_modules/babel-code-frame/node_modules/supports-color/package.json +++ b/node_modules/babel-code-frame/node_modules/supports-color/package.json @@ -2,7 +2,7 @@ "_args": [ [ "supports-color@2.0.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "supports-color@2.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", "_spec": "2.0.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/babel-code-frame/package.json b/node_modules/babel-code-frame/package.json index ceab5ee8..9e479582 100644 --- a/node_modules/babel-code-frame/package.json +++ b/node_modules/babel-code-frame/package.json @@ -2,7 +2,7 @@ "_args": [ [ "babel-code-frame@6.26.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "babel-code-frame@6.26.0", @@ -35,7 +35,7 @@ ], "_resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", "_spec": "6.26.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/babel-core/package.json b/node_modules/babel-core/package.json index b87360ea..556593f0 100644 --- a/node_modules/babel-core/package.json +++ b/node_modules/babel-core/package.json @@ -2,7 +2,7 @@ "_args": [ [ "babel-core@7.0.0-bridge.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "babel-core@7.0.0-bridge.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/babel-core/-/babel-core-7.0.0-bridge.0.tgz", "_spec": "7.0.0-bridge.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Logan Smyth", "email": "loganfsmyth@gmail.com" diff --git a/node_modules/babel-eslint/package.json b/node_modules/babel-eslint/package.json index 1147852d..638ac0e7 100644 --- a/node_modules/babel-eslint/package.json +++ b/node_modules/babel-eslint/package.json @@ -2,7 +2,7 @@ "_args": [ [ "babel-eslint@9.0.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "babel-eslint@9.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/babel-eslint/-/babel-eslint-9.0.0.tgz", "_spec": "9.0.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/babel-extract-comments/package.json b/node_modules/babel-extract-comments/package.json index b51fa8c1..0552fd61 100644 --- a/node_modules/babel-extract-comments/package.json +++ b/node_modules/babel-extract-comments/package.json @@ -2,7 +2,7 @@ "_args": [ [ "babel-extract-comments@1.0.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "babel-extract-comments@1.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/babel-extract-comments/-/babel-extract-comments-1.0.0.tgz", "_spec": "1.0.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/babel-generator/node_modules/jsesc/package.json b/node_modules/babel-generator/node_modules/jsesc/package.json index e99b3fcd..2ff7c4cf 100644 --- a/node_modules/babel-generator/node_modules/jsesc/package.json +++ b/node_modules/babel-generator/node_modules/jsesc/package.json @@ -2,7 +2,7 @@ "_args": [ [ "jsesc@1.3.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "jsesc@1.3.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz", "_spec": "1.3.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Mathias Bynens", "url": "https://mathiasbynens.be/" diff --git a/node_modules/babel-generator/package.json b/node_modules/babel-generator/package.json index 0ace775e..525fac6a 100644 --- a/node_modules/babel-generator/package.json +++ b/node_modules/babel-generator/package.json @@ -2,7 +2,7 @@ "_args": [ [ "babel-generator@6.26.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "babel-generator@6.26.1", @@ -29,7 +29,7 @@ ], "_resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.26.1.tgz", "_spec": "6.26.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/babel-helpers/package.json b/node_modules/babel-helpers/package.json index cf333f96..942eeb17 100644 --- a/node_modules/babel-helpers/package.json +++ b/node_modules/babel-helpers/package.json @@ -2,7 +2,7 @@ "_args": [ [ "babel-helpers@6.24.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "babel-helpers@6.24.1", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/babel-helpers/-/babel-helpers-6.24.1.tgz", "_spec": "6.24.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/babel-jest/package.json b/node_modules/babel-jest/package.json index 157aaa27..9180b3b8 100644 --- a/node_modules/babel-jest/package.json +++ b/node_modules/babel-jest/package.json @@ -2,7 +2,7 @@ "_args": [ [ "babel-jest@23.6.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "babel-jest@23.6.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-23.6.0.tgz", "_spec": "23.6.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/facebook/jest/issues" }, diff --git a/node_modules/babel-loader/package.json b/node_modules/babel-loader/package.json index 094c0498..80bff5f8 100644 --- a/node_modules/babel-loader/package.json +++ b/node_modules/babel-loader/package.json @@ -2,7 +2,7 @@ "_args": [ [ "babel-loader@8.0.5", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "babel-loader@8.0.5", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.0.5.tgz", "_spec": "8.0.5", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Luis Couto", "email": "hello@luiscouto.pt" diff --git a/node_modules/babel-messages/package.json b/node_modules/babel-messages/package.json index ceccdc33..0969eb44 100644 --- a/node_modules/babel-messages/package.json +++ b/node_modules/babel-messages/package.json @@ -2,7 +2,7 @@ "_args": [ [ "babel-messages@6.23.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "babel-messages@6.23.0", @@ -30,7 +30,7 @@ ], "_resolved": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz", "_spec": "6.23.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/babel-plugin-dynamic-import-node/package.json b/node_modules/babel-plugin-dynamic-import-node/package.json index 6059348b..13408fa3 100644 --- a/node_modules/babel-plugin-dynamic-import-node/package.json +++ b/node_modules/babel-plugin-dynamic-import-node/package.json @@ -2,7 +2,7 @@ "_args": [ [ "babel-plugin-dynamic-import-node@2.3.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "babel-plugin-dynamic-import-node@2.3.3", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz", "_spec": "2.3.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jordan Gensler", "email": "jordan.gensler@airbnb.com" diff --git a/node_modules/babel-plugin-emotion/node_modules/@emotion/hash/package.json b/node_modules/babel-plugin-emotion/node_modules/@emotion/hash/package.json index 046f0083..2b0c5909 100644 --- a/node_modules/babel-plugin-emotion/node_modules/@emotion/hash/package.json +++ b/node_modules/babel-plugin-emotion/node_modules/@emotion/hash/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@emotion/hash@0.7.4", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@emotion/hash@0.7.4", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.7.4.tgz", "_spec": "0.7.4", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "browser": { "./dist/hash.cjs.js": "./dist/hash.browser.cjs.js", "./dist/hash.esm.js": "./dist/hash.browser.esm.js" diff --git a/node_modules/babel-plugin-emotion/package.json b/node_modules/babel-plugin-emotion/package.json index b0dbd7b1..e1dcfa75 100644 --- a/node_modules/babel-plugin-emotion/package.json +++ b/node_modules/babel-plugin-emotion/package.json @@ -2,7 +2,7 @@ "_args": [ [ "babel-plugin-emotion@10.0.27", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "babel-plugin-emotion@10.0.27", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/babel-plugin-emotion/-/babel-plugin-emotion-10.0.27.tgz", "_spec": "10.0.27", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Kye Hohenberger" }, diff --git a/node_modules/babel-plugin-istanbul/package.json b/node_modules/babel-plugin-istanbul/package.json index 14b92e16..82b346c8 100644 --- a/node_modules/babel-plugin-istanbul/package.json +++ b/node_modules/babel-plugin-istanbul/package.json @@ -2,7 +2,7 @@ "_args": [ [ "babel-plugin-istanbul@4.1.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "babel-plugin-istanbul@4.1.6", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-4.1.6.tgz", "_spec": "4.1.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Thai Pangsakulyanont @dtinth" }, diff --git a/node_modules/babel-plugin-jest-hoist/package.json b/node_modules/babel-plugin-jest-hoist/package.json index a162db9d..ed8b91da 100644 --- a/node_modules/babel-plugin-jest-hoist/package.json +++ b/node_modules/babel-plugin-jest-hoist/package.json @@ -2,7 +2,7 @@ "_args": [ [ "babel-plugin-jest-hoist@23.2.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "babel-plugin-jest-hoist@23.2.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-23.2.0.tgz", "_spec": "23.2.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/facebook/jest/issues" }, diff --git a/node_modules/babel-plugin-macros/node_modules/cosmiconfig/package.json b/node_modules/babel-plugin-macros/node_modules/cosmiconfig/package.json index b959662a..6a593483 100644 --- a/node_modules/babel-plugin-macros/node_modules/cosmiconfig/package.json +++ b/node_modules/babel-plugin-macros/node_modules/cosmiconfig/package.json @@ -2,7 +2,7 @@ "_args": [ [ "cosmiconfig@6.0.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "cosmiconfig@6.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-6.0.0.tgz", "_spec": "6.0.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "David Clark", "email": "david.dave.clark@gmail.com" diff --git a/node_modules/babel-plugin-macros/node_modules/import-fresh/package.json b/node_modules/babel-plugin-macros/node_modules/import-fresh/package.json index 2802886a..7585ac48 100644 --- a/node_modules/babel-plugin-macros/node_modules/import-fresh/package.json +++ b/node_modules/babel-plugin-macros/node_modules/import-fresh/package.json @@ -2,7 +2,7 @@ "_args": [ [ "import-fresh@3.2.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "import-fresh@3.2.1", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.2.1.tgz", "_spec": "3.2.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/babel-plugin-macros/node_modules/parse-json/package.json b/node_modules/babel-plugin-macros/node_modules/parse-json/package.json index 10cee8d2..7a896151 100644 --- a/node_modules/babel-plugin-macros/node_modules/parse-json/package.json +++ b/node_modules/babel-plugin-macros/node_modules/parse-json/package.json @@ -2,7 +2,7 @@ "_args": [ [ "parse-json@5.0.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "parse-json@5.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.0.0.tgz", "_spec": "5.0.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/babel-plugin-macros/node_modules/path-type/package.json b/node_modules/babel-plugin-macros/node_modules/path-type/package.json index 071979ed..a11a2a9f 100644 --- a/node_modules/babel-plugin-macros/node_modules/path-type/package.json +++ b/node_modules/babel-plugin-macros/node_modules/path-type/package.json @@ -2,7 +2,7 @@ "_args": [ [ "path-type@4.0.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "path-type@4.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", "_spec": "4.0.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/babel-plugin-macros/node_modules/resolve-from/package.json b/node_modules/babel-plugin-macros/node_modules/resolve-from/package.json index a04928a1..1a665631 100644 --- a/node_modules/babel-plugin-macros/node_modules/resolve-from/package.json +++ b/node_modules/babel-plugin-macros/node_modules/resolve-from/package.json @@ -2,7 +2,7 @@ "_args": [ [ "resolve-from@4.0.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "resolve-from@4.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", "_spec": "4.0.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/babel-plugin-macros/package.json b/node_modules/babel-plugin-macros/package.json index b8a7c92c..de163c6f 100644 --- a/node_modules/babel-plugin-macros/package.json +++ b/node_modules/babel-plugin-macros/package.json @@ -2,7 +2,7 @@ "_args": [ [ "babel-plugin-macros@2.7.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "babel-plugin-macros@2.7.1", @@ -34,7 +34,7 @@ ], "_resolved": "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-2.7.1.tgz", "_spec": "2.7.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Kent C. Dodds", "email": "kent@doddsfamily.us", diff --git a/node_modules/babel-plugin-named-asset-import/package.json b/node_modules/babel-plugin-named-asset-import/package.json index 4aaae614..f4f33f16 100644 --- a/node_modules/babel-plugin-named-asset-import/package.json +++ b/node_modules/babel-plugin-named-asset-import/package.json @@ -2,7 +2,7 @@ "_args": [ [ "babel-plugin-named-asset-import@0.3.6", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "babel-plugin-named-asset-import@0.3.6", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/babel-plugin-named-asset-import/-/babel-plugin-named-asset-import-0.3.6.tgz", "_spec": "0.3.6", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/facebook/create-react-app/issues" }, diff --git a/node_modules/babel-plugin-styled-components/LICENSE.md b/node_modules/babel-plugin-styled-components/LICENSE.md deleted file mode 100644 index fe8eebee..00000000 --- a/node_modules/babel-plugin-styled-components/LICENSE.md +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2016-present Vladimir Danchenkov and Maximilian Stoiber - -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. diff --git a/node_modules/babel-plugin-styled-components/README.md b/node_modules/babel-plugin-styled-components/README.md deleted file mode 100644 index 32bd8b70..00000000 --- a/node_modules/babel-plugin-styled-components/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# `babel-plugin-styled-components` - -This plugin is a highly recommended supplement to the base styled-components library, offering some useful features: - -- consistently hashed component classNames between environments (a must for server-side rendering) -- better debugging through automatic annotation of your styled components based on their context in the file system, etc. -- various types of minification for styles and the tagged template literals styled-components uses - -## Quick start - -Install the plugin first: - -``` -npm install --save-dev babel-plugin-styled-components -``` - -Then add it to your babel configuration: - -```JSON -{ - "plugins": ["babel-plugin-styled-components"] -} -``` - -## Documentation - -**The documentation for this plugin lives on [the styled-components website](https://www.styled-components.com/docs/tooling#babel-plugin)!** - -- [Usage](https://www.styled-components.com/docs/tooling#usage) -- [Better debugging](https://www.styled-components.com/docs/tooling#better-debugging) -- [Minification](https://www.styled-components.com/docs/tooling#minification) - -## License - -Licensed under the MIT License, Copyright © 2016-present Vladimir Danchenkov and Maximilian Stoiber. - -See [LICENSE.md](./LICENSE.md) for more information. diff --git a/node_modules/babel-plugin-styled-components/lib/css/placeholderUtils.js b/node_modules/babel-plugin-styled-components/lib/css/placeholderUtils.js deleted file mode 100644 index 4c6514e6..00000000 --- a/node_modules/babel-plugin-styled-components/lib/css/placeholderUtils.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.splitByPlaceholders = exports.makePlaceholder = exports.placeholderRegex = void 0; - -function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } - -function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } - -function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } - -function _toArray(arr) { return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest(); } - -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } - -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } - -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } - -function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); } - -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - -// The capture group makes sure that the split contains the interpolation index -var placeholderRegex = /(?:__PLACEHOLDER_(\d+)__)/g; // Alternative regex that splits without a capture group - -exports.placeholderRegex = placeholderRegex; -var placeholderNonCapturingRegex = /__PLACEHOLDER_(?:\d+)__/g; // Generates a placeholder from an index - -var makePlaceholder = function makePlaceholder(index) { - return `__PLACEHOLDER_${index}__`; -}; // Splits CSS by placeholders - - -exports.makePlaceholder = makePlaceholder; - -var splitByPlaceholders = function splitByPlaceholders(_ref) { - var _ref2 = _toArray(_ref), - css = _ref2[0], - rest = _ref2.slice(1); - - var capture = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - return [css.split(capture ? placeholderRegex : placeholderNonCapturingRegex)].concat(_toConsumableArray(rest)); -}; - -exports.splitByPlaceholders = splitByPlaceholders; \ No newline at end of file diff --git a/node_modules/babel-plugin-styled-components/lib/index.js b/node_modules/babel-plugin-styled-components/lib/index.js deleted file mode 100644 index 9640f4fc..00000000 --- a/node_modules/babel-plugin-styled-components/lib/index.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = _default; - -var _babelPluginSyntaxJsx = _interopRequireDefault(require("babel-plugin-syntax-jsx")); - -var _pure = _interopRequireDefault(require("./visitors/pure")); - -var _minify = _interopRequireDefault(require("./visitors/minify")); - -var _displayNameAndId = _interopRequireDefault(require("./visitors/displayNameAndId")); - -var _templateLiterals = _interopRequireDefault(require("./visitors/templateLiterals")); - -var _assignStyledRequired = _interopRequireDefault(require("./visitors/assignStyledRequired")); - -var _transpileCssProp = _interopRequireDefault(require("./visitors/transpileCssProp")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _default(_ref) { - var t = _ref.types; - return { - inherits: _babelPluginSyntaxJsx.default, - visitor: { - Program(path, state) { - path.traverse({ - JSXAttribute(path, state) { - (0, _transpileCssProp.default)(t)(path, state); - }, - - VariableDeclarator(path, state) { - (0, _assignStyledRequired.default)(t)(path, state); - } - - }, state); - }, - - CallExpression(path, state) { - (0, _displayNameAndId.default)(t)(path, state); - (0, _pure.default)(t)(path, state); - }, - - TaggedTemplateExpression(path, state) { - (0, _minify.default)(t)(path, state); - (0, _displayNameAndId.default)(t)(path, state); - (0, _templateLiterals.default)(t)(path, state); - (0, _pure.default)(t)(path, state); - } - - } - }; -} \ No newline at end of file diff --git a/node_modules/babel-plugin-styled-components/lib/minify/index.js b/node_modules/babel-plugin-styled-components/lib/minify/index.js deleted file mode 100644 index 9eb46018..00000000 --- a/node_modules/babel-plugin-styled-components/lib/minify/index.js +++ /dev/null @@ -1,121 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.minifyCookedValues = exports.minifyRawValues = exports.minifyCooked = exports.minifyRaw = exports.compressSymbols = exports.stripLineComment = void 0; - -var _difference = _interopRequireDefault(require("lodash/difference")); - -var _placeholderUtils = require("../css/placeholderUtils"); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var injectUniquePlaceholders = function injectUniquePlaceholders(strArr) { - var i = 0; - return strArr.reduce(function (str, val, index, arr) { - return str + val + (index < arr.length - 1 ? (0, _placeholderUtils.makePlaceholder)(i++) : ''); - }, ''); -}; - -var makeMultilineCommentRegex = function makeMultilineCommentRegex(newlinePattern) { - return new RegExp('\\/\\*[^!](.|' + newlinePattern + ')*?\\*\\/', 'g'); -}; - -var lineCommentStart = /\/\//g; -var symbolRegex = /(\s*[;:{},]\s*)/g; // Counts occurences of substr inside str - -var countOccurences = function countOccurences(str, substr) { - return str.split(substr).length - 1; -}; // Joins substrings until predicate returns true - - -var reduceSubstr = function reduceSubstr(substrs, join, predicate) { - var length = substrs.length; - var res = substrs[0]; - - if (length === 1) { - return res; - } - - for (var i = 1; i < length; i++) { - if (predicate(res)) { - break; - } - - res += join + substrs[i]; - } - - return res; -}; // Joins at comment starts when it's inside a string or parantheses -// effectively removing line comments - - -var stripLineComment = function stripLineComment(line) { - return reduceSubstr(line.split(lineCommentStart), '//', function (str) { - return !str.endsWith(':') && // NOTE: This is another guard against urls, if they're not inside strings or parantheses. - countOccurences(str, "'") % 2 === 0 && countOccurences(str, '"') % 2 === 0 && countOccurences(str, '(') === countOccurences(str, ')'); - }); -}; - -exports.stripLineComment = stripLineComment; - -var compressSymbols = function compressSymbols(code) { - return code.split(symbolRegex).reduce(function (str, fragment, index) { - // Even-indices are non-symbol fragments - if (index % 2 === 0) { - return str + fragment; - } // Only manipulate symbols outside of strings - - - if (countOccurences(str, "'") % 2 === 0 && countOccurences(str, '"') % 2 === 0) { - return str + fragment.trim(); - } - - return str + fragment; - }, ''); -}; // Detects lines that are exclusively line comments - - -exports.compressSymbols = compressSymbols; - -var isLineComment = function isLineComment(line) { - return line.trim().startsWith('//'); -}; // Creates a minifier with a certain linebreak pattern - - -var minify = function minify(linebreakPattern) { - var linebreakRegex = new RegExp(linebreakPattern + '\\s*', 'g'); - var multilineCommentRegex = makeMultilineCommentRegex(linebreakPattern); - return function (code) { - var newCode = code.replace(multilineCommentRegex, '\n') // Remove multiline comments - .split(linebreakRegex) // Split at newlines - .filter(function (line) { - return line.length > 0 && !isLineComment(line); - }) // Removes lines containing only line comments - .map(stripLineComment) // Remove line comments inside text - .join(' '); // Rejoin all lines - - var eliminatedExpressionIndices = (0, _difference.default)(code.match(_placeholderUtils.placeholderRegex), newCode.match(_placeholderUtils.placeholderRegex)).map(function (x) { - return parseInt(x.match(/\d+/)[0], 10); - }); - return [compressSymbols(newCode), eliminatedExpressionIndices]; - }; -}; - -var minifyRaw = minify('(?:\\\\r|\\\\n|\\r|\\n)'); -exports.minifyRaw = minifyRaw; -var minifyCooked = minify('[\\r\\n]'); -exports.minifyCooked = minifyCooked; - -var minifyRawValues = function minifyRawValues(rawValues) { - return (0, _placeholderUtils.splitByPlaceholders)(minifyRaw(injectUniquePlaceholders(rawValues)), false); -}; - -exports.minifyRawValues = minifyRawValues; - -var minifyCookedValues = function minifyCookedValues(cookedValues) { - return (0, _placeholderUtils.splitByPlaceholders)(minifyCooked(injectUniquePlaceholders(cookedValues)), false); -}; - -exports.minifyCookedValues = minifyCookedValues; \ No newline at end of file diff --git a/node_modules/babel-plugin-styled-components/lib/utils/detectors.js b/node_modules/babel-plugin-styled-components/lib/utils/detectors.js deleted file mode 100644 index 1d2eb5d1..00000000 --- a/node_modules/babel-plugin-styled-components/lib/utils/detectors.js +++ /dev/null @@ -1,164 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.isPureHelper = exports.isHelper = exports.isWithThemeHelper = exports.isKeyframesHelper = exports.isInjectGlobalHelper = exports.isCreateGlobalStyleHelper = exports.isCSSHelper = exports.isStyled = exports.importLocalName = exports.isValidTopLevelImport = void 0; - -var _options = require("./options"); - -function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } - -function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } - -function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } - -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } - -function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); } - -function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } - -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } - -var VALID_TOP_LEVEL_IMPORT_PATHS = ['styled-components', 'styled-components/no-tags', 'styled-components/native', 'styled-components/primitives']; - -var isValidTopLevelImport = function isValidTopLevelImport(x, state) { - return [].concat(VALID_TOP_LEVEL_IMPORT_PATHS, _toConsumableArray((0, _options.useTopLevelImportPaths)(state))).includes(x); -}; - -exports.isValidTopLevelImport = isValidTopLevelImport; -var localNameCache = {}; - -var importLocalName = function importLocalName(name, state) { - var bypassCache = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; - var cacheKey = name + state.file.opts.filename; - - if (!bypassCache && cacheKey in localNameCache) { - return localNameCache[cacheKey]; - } - - var localName = state.styledRequired ? name === 'default' ? 'styled' : name : false; - state.file.path.traverse({ - ImportDeclaration: { - exit(path) { - var node = path.node; - - if (isValidTopLevelImport(node.source.value, state)) { - var _iterator = _createForOfIteratorHelper(path.get('specifiers')), - _step; - - try { - for (_iterator.s(); !(_step = _iterator.n()).done;) { - var specifier = _step.value; - - if (specifier.isImportSpecifier() && specifier.node.imported.name === 'styled') { - localName = 'styled'; - } - - if (specifier.isImportDefaultSpecifier()) { - localName = specifier.node.local.name; - } - - if (specifier.isImportSpecifier() && specifier.node.imported.name === name) { - localName = specifier.node.local.name; - } - - if (specifier.isImportNamespaceSpecifier()) { - localName = specifier.node.local.name; - } - } - } catch (err) { - _iterator.e(err); - } finally { - _iterator.f(); - } - } - } - - } - }); - localNameCache[cacheKey] = localName; - return localName; -}; - -exports.importLocalName = importLocalName; - -var isStyled = function isStyled(t) { - return function (tag, state) { - if (t.isCallExpression(tag) && t.isMemberExpression(tag.callee) && tag.callee.property.name !== 'default' - /** ignore default for #93 below */ - ) { - // styled.something() - return isStyled(t)(tag.callee.object, state); - } else { - return t.isMemberExpression(tag) && tag.object.name === importLocalName('default', state) || t.isCallExpression(tag) && tag.callee.name === importLocalName('default', state) || - /** - * #93 Support require() - * styled-components might be imported using a require() - * call and assigned to a variable of any name. - * - styled.default.div`` - * - styled.default.something() - */ - state.styledRequired && t.isMemberExpression(tag) && t.isMemberExpression(tag.object) && tag.object.property.name === 'default' && tag.object.object.name === state.styledRequired || state.styledRequired && t.isCallExpression(tag) && t.isMemberExpression(tag.callee) && tag.callee.property.name === 'default' && tag.callee.object.name === state.styledRequired; - } - }; -}; - -exports.isStyled = isStyled; - -var isCSSHelper = function isCSSHelper(t) { - return function (tag, state) { - return t.isIdentifier(tag) && tag.name === importLocalName('css', state); - }; -}; - -exports.isCSSHelper = isCSSHelper; - -var isCreateGlobalStyleHelper = function isCreateGlobalStyleHelper(t) { - return function (tag, state) { - return t.isIdentifier(tag) && tag.name === importLocalName('createGlobalStyle', state); - }; -}; - -exports.isCreateGlobalStyleHelper = isCreateGlobalStyleHelper; - -var isInjectGlobalHelper = function isInjectGlobalHelper(t) { - return function (tag, state) { - return t.isIdentifier(tag) && tag.name === importLocalName('injectGlobal', state); - }; -}; - -exports.isInjectGlobalHelper = isInjectGlobalHelper; - -var isKeyframesHelper = function isKeyframesHelper(t) { - return function (tag, state) { - return t.isIdentifier(tag) && tag.name === importLocalName('keyframes', state); - }; -}; - -exports.isKeyframesHelper = isKeyframesHelper; - -var isWithThemeHelper = function isWithThemeHelper(t) { - return function (tag, state) { - return t.isIdentifier(tag) && tag.name === importLocalName('withTheme', state); - }; -}; - -exports.isWithThemeHelper = isWithThemeHelper; - -var isHelper = function isHelper(t) { - return function (tag, state) { - return isCSSHelper(t)(tag, state) || isKeyframesHelper(t)(tag, state) || isWithThemeHelper(t)(tag, state); - }; -}; - -exports.isHelper = isHelper; - -var isPureHelper = function isPureHelper(t) { - return function (tag, state) { - return isCSSHelper(t)(tag, state) || isKeyframesHelper(t)(tag, state) || isCreateGlobalStyleHelper(t)(tag, state) || isWithThemeHelper(t)(tag, state); - }; -}; - -exports.isPureHelper = isPureHelper; \ No newline at end of file diff --git a/node_modules/babel-plugin-styled-components/lib/utils/getName.js b/node_modules/babel-plugin-styled-components/lib/utils/getName.js deleted file mode 100644 index fcd13447..00000000 --- a/node_modules/babel-plugin-styled-components/lib/utils/getName.js +++ /dev/null @@ -1,46 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -/** - * Get the name of variable that contains node - * - * @param {Path} path to the node - * - * @return {String} The target - */ -var _default = function _default(t) { - return function (path) { - var namedNode; - path.find(function (path) { - // const X = styled - if (path.isAssignmentExpression()) { - namedNode = path.node.left; // const X = { Y: styled } - } else if (path.isObjectProperty()) { - namedNode = path.node.key; // class Y { (static) X = styled } - } else if (path.isClassProperty()) { - namedNode = path.node.key; // let X; X = styled - } else if (path.isVariableDeclarator()) { - namedNode = path.node.id; - } else if (path.isStatement()) { - // we've hit a statement, we should stop crawling up - return true; - } // we've got an displayName (if we need it) no need to continue - - - if (namedNode) return true; - }); // foo.bar -> bar - - if (t.isMemberExpression(namedNode)) { - namedNode = namedNode.property; - } // identifiers are the only thing we can reliably get a name from - - - return t.isIdentifier(namedNode) ? namedNode.name : undefined; - }; -}; - -exports.default = _default; \ No newline at end of file diff --git a/node_modules/babel-plugin-styled-components/lib/utils/hash.js b/node_modules/babel-plugin-styled-components/lib/utils/hash.js deleted file mode 100644 index 9c521e83..00000000 --- a/node_modules/babel-plugin-styled-components/lib/utils/hash.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -/** - * JS Implementation of MurmurHash2 - * - * @author Gary Court - * @see http://github.com/garycourt/murmurhash-js - * @author Austin Appleby - * @see http://sites.google.com/site/murmurhash/ - * - * @param {string} str ASCII only - * @return {string} Base 36 encoded hash result - */ -function murmurhash2_32_gc(str) { - var l = str.length; - var h = l; - var i = 0; - var k; - - while (l >= 4) { - k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24; - k = (k & 0xffff) * 0x5bd1e995 + (((k >>> 16) * 0x5bd1e995 & 0xffff) << 16); - k ^= k >>> 24; - k = (k & 0xffff) * 0x5bd1e995 + (((k >>> 16) * 0x5bd1e995 & 0xffff) << 16); - h = (h & 0xffff) * 0x5bd1e995 + (((h >>> 16) * 0x5bd1e995 & 0xffff) << 16) ^ k; - l -= 4; - ++i; - } // forgive existing code - - /* eslint-disable no-fallthrough */ - - - switch (l) { - case 3: - h ^= (str.charCodeAt(i + 2) & 0xff) << 16; - - case 2: - h ^= (str.charCodeAt(i + 1) & 0xff) << 8; - - case 1: - h ^= str.charCodeAt(i) & 0xff; - h = (h & 0xffff) * 0x5bd1e995 + (((h >>> 16) * 0x5bd1e995 & 0xffff) << 16); - } - /* eslint-enable no-fallthrough */ - - - h ^= h >>> 13; - h = (h & 0xffff) * 0x5bd1e995 + (((h >>> 16) * 0x5bd1e995 & 0xffff) << 16); - h ^= h >>> 15; - return (h >>> 0).toString(36); -} - -var _default = murmurhash2_32_gc; -exports.default = _default; \ No newline at end of file diff --git a/node_modules/babel-plugin-styled-components/lib/utils/options.js b/node_modules/babel-plugin-styled-components/lib/utils/options.js deleted file mode 100644 index 8b18d4ba..00000000 --- a/node_modules/babel-plugin-styled-components/lib/utils/options.js +++ /dev/null @@ -1,72 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.useCssProp = exports.usePureAnnotation = exports.useNamespace = exports.useTranspileTemplateLiterals = exports.useMinify = exports.useFileName = exports.useSSR = exports.useTopLevelImportPaths = exports.useDisplayName = void 0; - -function getOption(_ref, name) { - var opts = _ref.opts; - var defaultValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; - return opts[name] === undefined || opts[name] === null ? defaultValue : opts[name]; -} - -var useDisplayName = function useDisplayName(state) { - return getOption(state, 'displayName'); -}; - -exports.useDisplayName = useDisplayName; - -var useTopLevelImportPaths = function useTopLevelImportPaths(state) { - return getOption(state, 'topLevelImportPaths', []); -}; - -exports.useTopLevelImportPaths = useTopLevelImportPaths; - -var useSSR = function useSSR(state) { - return getOption(state, 'ssr', true); -}; - -exports.useSSR = useSSR; - -var useFileName = function useFileName(state) { - return getOption(state, 'fileName'); -}; - -exports.useFileName = useFileName; - -var useMinify = function useMinify(state) { - return getOption(state, 'minify'); -}; - -exports.useMinify = useMinify; - -var useTranspileTemplateLiterals = function useTranspileTemplateLiterals(state) { - return getOption(state, 'transpileTemplateLiterals'); -}; - -exports.useTranspileTemplateLiterals = useTranspileTemplateLiterals; - -var useNamespace = function useNamespace(state) { - var namespace = getOption(state, 'namespace', ''); - - if (namespace) { - return `${namespace}__`; - } - - return ''; -}; - -exports.useNamespace = useNamespace; - -var usePureAnnotation = function usePureAnnotation(state) { - return getOption(state, 'pure', false); -}; - -exports.usePureAnnotation = usePureAnnotation; - -var useCssProp = function useCssProp(state) { - return getOption(state, 'cssProp', true); -}; - -exports.useCssProp = useCssProp; \ No newline at end of file diff --git a/node_modules/babel-plugin-styled-components/lib/utils/prefixDigit.js b/node_modules/babel-plugin-styled-components/lib/utils/prefixDigit.js deleted file mode 100644 index 767cdeb4..00000000 --- a/node_modules/babel-plugin-styled-components/lib/utils/prefixDigit.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = prefixLeadingDigit; - -function prefixLeadingDigit(str) { - return str.replace(/^(\d)/, 'sc-$1'); -} \ No newline at end of file diff --git a/node_modules/babel-plugin-styled-components/lib/visitors/assignStyledRequired.js b/node_modules/babel-plugin-styled-components/lib/visitors/assignStyledRequired.js deleted file mode 100644 index 6b58e98d..00000000 --- a/node_modules/babel-plugin-styled-components/lib/visitors/assignStyledRequired.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _detectors = require("../utils/detectors"); - -var _default = function _default(t) { - return function (path, state) { - if (t.isCallExpression(path.node.init) && t.isIdentifier(path.node.init.callee) && path.node.init.callee.name === 'require' && path.node.init.arguments && path.node.init.arguments[0] && t.isLiteral(path.node.init.arguments[0]) && (0, _detectors.isValidTopLevelImport)(path.node.init.arguments[0].value, state)) { - state.styledRequired = path.node.id.name; - } - }; -}; - -exports.default = _default; \ No newline at end of file diff --git a/node_modules/babel-plugin-styled-components/lib/visitors/displayNameAndId.js b/node_modules/babel-plugin-styled-components/lib/visitors/displayNameAndId.js deleted file mode 100644 index cf370b08..00000000 --- a/node_modules/babel-plugin-styled-components/lib/visitors/displayNameAndId.js +++ /dev/null @@ -1,146 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _path = _interopRequireDefault(require("path")); - -var _fs = _interopRequireDefault(require("fs")); - -var _options = require("../utils/options"); - -var _getName = _interopRequireDefault(require("../utils/getName")); - -var _prefixDigit = _interopRequireDefault(require("../utils/prefixDigit")); - -var _hash = _interopRequireDefault(require("../utils/hash")); - -var _detectors = require("../utils/detectors"); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var addConfig = function addConfig(t) { - return function (path, displayName, componentId) { - if (!displayName && !componentId) { - return; - } - - var withConfigProps = []; - - if (displayName) { - withConfigProps.push(t.objectProperty(t.identifier('displayName'), t.stringLiteral(displayName))); - } - - if (componentId) { - withConfigProps.push(t.objectProperty(t.identifier('componentId'), t.stringLiteral(componentId))); - } - - if (path.node.tag) { - // Replace x`...` with x.withConfig({ })`...` - path.node.tag = t.callExpression(t.memberExpression(path.node.tag, t.identifier('withConfig')), [t.objectExpression(withConfigProps)]); - } else { - path.replaceWith(t.callExpression(t.callExpression(t.memberExpression(path.node.callee, t.identifier('withConfig')), [t.objectExpression(withConfigProps)]), path.node.arguments)); - } - }; -}; - -var getBlockName = function getBlockName(file) { - var name = _path.default.basename(file.opts.filename, _path.default.extname(file.opts.filename)); - - return name !== 'index' ? name : _path.default.basename(_path.default.dirname(file.opts.filename)); -}; - -var getDisplayName = function getDisplayName(t) { - return function (path, state) { - var file = state.file; - var componentName = (0, _getName.default)(t)(path); - - if (file) { - var blockName = getBlockName(file); - - if (blockName === componentName) { - return componentName; - } - - return componentName ? `${(0, _prefixDigit.default)(blockName)}__${componentName}` : (0, _prefixDigit.default)(blockName); - } else { - return componentName; - } - }; -}; - -var findModuleRoot = function findModuleRoot(filename) { - if (!filename) { - return null; - } - - var dir = _path.default.dirname(filename); - - if (_fs.default.existsSync(_path.default.join(dir, 'package.json'))) { - return dir; - } else if (dir !== filename) { - return findModuleRoot(dir); - } else { - return null; - } -}; - -var FILE_HASH = 'styled-components-file-hash'; -var COMPONENT_POSITION = 'styled-components-component-position'; -var separatorRegExp = new RegExp(`\\${_path.default.sep}`, 'g'); - -var getFileHash = function getFileHash(state) { - var file = state.file; // hash calculation is costly due to fs operations, so we'll cache it per file. - - if (file.get(FILE_HASH)) { - return file.get(FILE_HASH); - } - - var filename = file.opts.filename; // find module root directory - - var moduleRoot = findModuleRoot(filename); - - var filePath = moduleRoot && _path.default.relative(moduleRoot, filename).replace(separatorRegExp, '/'); - - var moduleName = moduleRoot && JSON.parse(_fs.default.readFileSync(_path.default.join(moduleRoot, 'package.json'))).name; - var code = file.code; - var stuffToHash = [moduleName]; - - if (filePath) { - stuffToHash.push(filePath); - } else { - stuffToHash.push(code); - } - - var fileHash = (0, _hash.default)(stuffToHash.join('')); - file.set(FILE_HASH, fileHash); - return fileHash; -}; - -var getNextId = function getNextId(state) { - var id = state.file.get(COMPONENT_POSITION) || 0; - state.file.set(COMPONENT_POSITION, id + 1); - return id; -}; - -var getComponentId = function getComponentId(state) { - // Prefix the identifier with a character because CSS classes cannot start with a number - return `${(0, _options.useNamespace)(state)}${(0, _prefixDigit.default)(getFileHash(state))}-${getNextId(state)}`; -}; - -var _default = function _default(t) { - return function (path, state) { - if (path.node.tag ? (0, _detectors.isStyled)(t)(path.node.tag, state) : - /* styled()`` */ - (0, _detectors.isStyled)(t)(path.node.callee, state) && path.node.callee.property && path.node.callee.property.name !== 'withConfig' || // styled(x)({}) - (0, _detectors.isStyled)(t)(path.node.callee, state) && !t.isMemberExpression(path.node.callee.callee) || // styled(x).attrs()({}) - (0, _detectors.isStyled)(t)(path.node.callee, state) && t.isMemberExpression(path.node.callee.callee) && path.node.callee.callee.property && path.node.callee.callee.property.name && path.node.callee.callee.property.name !== 'withConfig') { - var displayName = (0, _options.useDisplayName)(state) && getDisplayName(t)(path, (0, _options.useFileName)(state) && state); - addConfig(t)(path, displayName && displayName.replace(/[^_a-zA-Z0-9-]/g, ''), (0, _options.useSSR)(state) && getComponentId(state)); - } - }; -}; - -exports.default = _default; \ No newline at end of file diff --git a/node_modules/babel-plugin-styled-components/lib/visitors/minify.js b/node_modules/babel-plugin-styled-components/lib/visitors/minify.js deleted file mode 100644 index aa6bec91..00000000 --- a/node_modules/babel-plugin-styled-components/lib/visitors/minify.js +++ /dev/null @@ -1,58 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _options = require("../utils/options"); - -var _detectors = require("../utils/detectors"); - -var _minify = require("../minify"); - -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } - -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } - -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } - -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } - -function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } - -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - -var _default = function _default(t) { - return function (path, state) { - if ((0, _options.useMinify)(state) && ((0, _detectors.isStyled)(t)(path.node.tag, state) || (0, _detectors.isHelper)(t)(path.node.tag, state))) { - var templateLiteral = path.node.quasi; - var quasisLength = templateLiteral.quasis.length; - - var _minifyRawValues = (0, _minify.minifyRawValues)(templateLiteral.quasis.map(function (x) { - return x.value.raw; - })), - _minifyRawValues2 = _slicedToArray(_minifyRawValues, 1), - rawValuesMinified = _minifyRawValues2[0]; - - var _minifyCookedValues = (0, _minify.minifyCookedValues)(templateLiteral.quasis.map(function (x) { - return x.value.cooked; - })), - _minifyCookedValues2 = _slicedToArray(_minifyCookedValues, 2), - cookedValuesMinfified = _minifyCookedValues2[0], - eliminatedExpressionIndices = _minifyCookedValues2[1]; - - eliminatedExpressionIndices.forEach(function (expressionIndex, iteration) { - templateLiteral.expressions.splice(expressionIndex - iteration, 1); - }); - - for (var i = 0; i < quasisLength; i++) { - var element = templateLiteral.quasis[i]; - element.value.raw = rawValuesMinified[i]; - element.value.cooked = cookedValuesMinfified[i]; - } - } - }; -}; - -exports.default = _default; \ No newline at end of file diff --git a/node_modules/babel-plugin-styled-components/lib/visitors/pure.js b/node_modules/babel-plugin-styled-components/lib/visitors/pure.js deleted file mode 100644 index 0c89514b..00000000 --- a/node_modules/babel-plugin-styled-components/lib/visitors/pure.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _helperAnnotateAsPure = _interopRequireDefault(require("@babel/helper-annotate-as-pure")); - -var _options = require("../utils/options"); - -var _detectors = require("../utils/detectors"); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var _default = function _default(t) { - return function (path, state) { - if ((0, _options.usePureAnnotation)(state)) { - if ((0, _detectors.isStyled)(t)(path.node, state) || (0, _detectors.isStyled)(t)(path.node.callee, state) || (0, _detectors.isPureHelper)(t)(path.node.tag || path.node.callee, state)) { - if (path.parent.type === 'VariableDeclarator' || path.parent.type === 'TaggedTemplateExpression') { - (0, _helperAnnotateAsPure.default)(path); - } - } - } - }; -}; - -exports.default = _default; \ No newline at end of file diff --git a/node_modules/babel-plugin-styled-components/lib/visitors/templateLiterals/index.js b/node_modules/babel-plugin-styled-components/lib/visitors/templateLiterals/index.js deleted file mode 100644 index 9ff4f022..00000000 --- a/node_modules/babel-plugin-styled-components/lib/visitors/templateLiterals/index.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _options = require("../../utils/options"); - -var _transpile = _interopRequireDefault(require("./transpile")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var _default = function _default(t) { - return function (path, state) { - if ((0, _options.useTranspileTemplateLiterals)(state)) { - (0, _transpile.default)(t)(path, state); - } - }; -}; - -exports.default = _default; \ No newline at end of file diff --git a/node_modules/babel-plugin-styled-components/lib/visitors/templateLiterals/transpile.js b/node_modules/babel-plugin-styled-components/lib/visitors/templateLiterals/transpile.js deleted file mode 100644 index 90c42835..00000000 --- a/node_modules/babel-plugin-styled-components/lib/visitors/templateLiterals/transpile.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _detectors = require("../../utils/detectors"); - -function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } - -function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } - -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } - -function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); } - -function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } - -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } - -var _default = function _default(t) { - return function (path, state) { - if ((0, _detectors.isStyled)(t)(path.node.tag, state) || (0, _detectors.isHelper)(t)(path.node.tag, state)) { - var _path$node = path.node, - callee = _path$node.tag, - _path$node$quasi = _path$node.quasi, - quasis = _path$node$quasi.quasis, - expressions = _path$node$quasi.expressions; - var values = t.arrayExpression(quasis.filter(function (quasi) { - return quasi.value.cooked !== undefined; - }).map(function (quasi) { - return t.stringLiteral(quasi.value.cooked); - })); - path.replaceWith(t.callExpression(callee, [values].concat(_toConsumableArray(expressions)))); - } - }; -}; - -exports.default = _default; \ No newline at end of file diff --git a/node_modules/babel-plugin-styled-components/lib/visitors/transpileCssProp.js b/node_modules/babel-plugin-styled-components/lib/visitors/transpileCssProp.js deleted file mode 100644 index 88940760..00000000 --- a/node_modules/babel-plugin-styled-components/lib/visitors/transpileCssProp.js +++ /dev/null @@ -1,190 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _helperModuleImports = require("@babel/helper-module-imports"); - -var _detectors = require("../utils/detectors"); - -var _options = require("../utils/options"); - -// Most of this code was taken from @satya164's babel-plugin-css-prop -// @see https://github.com/satya164/babel-plugin-css-prop -var TAG_NAME_REGEXP = /^[a-z][a-z\d]*(\-[a-z][a-z\d]*)?$/; - -var getName = function getName(node, t) { - if (typeof node.name === 'string') return node.name; - - if (t.isJSXMemberExpression(node)) { - return `${getName(node.object, t)}.${node.property.name}`; - } - - throw path.buildCodeFrameError(`Cannot infer name from node with type "${node.type}". Please submit an issue at github.com/styled-components/babel-plugin-styled-components with your code so we can take a look at your use case!`); -}; - -var getNameExpression = function getNameExpression(node, t) { - if (typeof node.name === 'string') return t.identifier(node.name); - - if (t.isJSXMemberExpression(node)) { - return t.memberExpression(getNameExpression(node.object, t), t.identifier(node.property.name)); - } - - throw path.buildCodeFrameError(`Cannot infer name expression from node with type "${node.type}". Please submit an issue at github.com/styled-components/babel-plugin-styled-components with your code so we can take a look at your use case!`); -}; - -var _default = function _default(t) { - return function (path, state) { - if (!(0, _options.useCssProp)(state)) return; - if (path.node.name.name !== 'css') return; - var program = state.file.path; // state.customImportName is passed through from styled-components/macro if it's used - // since the macro also inserts the import - - var importName = state.customImportName || (0, _detectors.importLocalName)('default', state); - var bindings = program.scope.bindings; // Insert import if it doesn't exist yet - - if (!importName || !bindings[importName.name] || !bindings[importName]) { - (0, _helperModuleImports.addDefault)(path, 'styled-components', { - nameHint: 'styled' - }); - importName = t.identifier((0, _detectors.importLocalName)('default', state, true)); - } - - if (!t.isIdentifier(importName)) importName = t.identifier(importName); - var elem = path.parentPath; - var name = getName(elem.node.name, t); - var nameExpression = getNameExpression(elem.node.name, t); - var id = path.scope.generateUidIdentifier('Styled' + name.replace(/^([a-z])/, function (match, p1) { - return p1.toUpperCase(); - })); - var styled; - var injector; - - if (TAG_NAME_REGEXP.test(name)) { - styled = t.callExpression(importName, [t.stringLiteral(name)]); - } else { - styled = t.callExpression(importName, [nameExpression]); - - if (bindings[name] && !t.isImportDeclaration(bindings[name].path.parent)) { - injector = function injector(nodeToInsert) { - return (t.isVariableDeclaration(bindings[name].path.parent) ? bindings[name].path.parentPath : bindings[name].path).insertAfter(nodeToInsert); - }; - } - } - - var css; - - if (t.isStringLiteral(path.node.value)) { - css = t.templateLiteral([t.templateElement({ - raw: path.node.value.value, - cooked: path.node.value.value - }, true)], []); - } else if (t.isJSXExpressionContainer(path.node.value)) { - if (t.isTemplateLiteral(path.node.value.expression)) { - css = path.node.value.expression; - } else if (t.isTaggedTemplateExpression(path.node.value.expression) && path.node.value.expression.tag.name === 'css') { - css = path.node.value.expression.quasi; - } else if (t.isObjectExpression(path.node.value.expression)) { - css = path.node.value.expression; - } else { - css = t.templateLiteral([t.templateElement({ - raw: '', - cooked: '' - }, false), t.templateElement({ - raw: '', - cooked: '' - }, true)], [path.node.value.expression]); - } - } - - if (!css) return; - elem.node.attributes = elem.node.attributes.filter(function (attr) { - return attr !== path.node; - }); - elem.node.name = t.jSXIdentifier(id.name); - - if (elem.parentPath.node.closingElement) { - elem.parentPath.node.closingElement.name = t.jSXIdentifier(id.name); - } // object syntax - - - if (t.isObjectExpression(css)) { - /** - * for objects as CSS props, we have to recurse through the object and replace any - * object value scope references with generated props similar to how the template - * literal transform above creates dynamic interpolations - */ - var p = t.identifier('p'); - var replaceObjectWithPropFunction = false; - css.properties = css.properties.reduce(function propertiesReducer(acc, property) { - if (t.isObjectExpression(property.value)) { - // recurse for objects within objects (e.g. {'::before': { content: x }}) - property.value.properties = property.value.properties.reduce(propertiesReducer, []); - acc.push(property); - } else if (t.isSpreadElement(property)) { - // recurse for objects within objects (e.g. {'::before': { content: x }}) - property.argument.properties = property.argument.properties.reduce(propertiesReducer, []); - acc.push(property); - } else if ( // if a non-primitive value we have to interpolate it - [t.isBigIntLiteral, t.isBooleanLiteral, t.isNullLiteral, t.isNumericLiteral, t.isStringLiteral].filter(Boolean) // older versions of babel might not have bigint support baked in - .every(function (x) { - return !x(property.value); - })) { - replaceObjectWithPropFunction = true; - - var _name = path.scope.generateUidIdentifier('css'); - - elem.node.attributes.push(t.jSXAttribute(t.jSXIdentifier(_name.name), t.jSXExpressionContainer(property.value))); - acc.push(t.objectProperty(property.key, t.memberExpression(p, _name))); - } else { - // some sort of primitive which is safe to pass through as-is - acc.push(property); - } - - return acc; - }, []); - - if (replaceObjectWithPropFunction) { - css = t.arrowFunctionExpression([p], css); - } - } else { - // tagged template literal - css.expressions = css.expressions.reduce(function (acc, ex) { - if (Object.keys(bindings).some(function (key) { - return bindings[key].referencePaths.find(function (p) { - return p.node === ex; - }); - }) || t.isFunctionExpression(ex) || t.isArrowFunctionExpression(ex)) { - acc.push(ex); - } else { - var _name2 = path.scope.generateUidIdentifier('css'); - - var _p = t.identifier('p'); - - elem.node.attributes.push(t.jSXAttribute(t.jSXIdentifier(_name2.name), t.jSXExpressionContainer(ex))); - acc.push(t.arrowFunctionExpression([_p], t.memberExpression(_p, _name2))); - } - - return acc; - }, []); - } - - if (!injector) { - var parent = elem; - - while (!t.isProgram(parent.parentPath)) { - parent = parent.parentPath; - } - - injector = function injector(nodeToInsert) { - return parent.insertBefore(nodeToInsert); - }; - } - - injector(t.variableDeclaration('var', [t.variableDeclarator(id, t.isObjectExpression(css) || t.isArrowFunctionExpression(css) ? t.callExpression(styled, [css]) : t.taggedTemplateExpression(styled, css))])); - }; -}; - -exports.default = _default; \ No newline at end of file diff --git a/node_modules/babel-plugin-styled-components/package.json b/node_modules/babel-plugin-styled-components/package.json deleted file mode 100644 index 2b8baef2..00000000 --- a/node_modules/babel-plugin-styled-components/package.json +++ /dev/null @@ -1,113 +0,0 @@ -{ - "_from": "babel-plugin-styled-components@>= 1", - "_id": "babel-plugin-styled-components@1.12.0", - "_inBundle": false, - "_integrity": "sha512-FEiD7l5ZABdJPpLssKXjBUJMYqzbcNzBowfXDCdJhOpbhWiewapUaY+LZGT8R4Jg2TwOjGjG4RKeyrO5p9sBkA==", - "_location": "/babel-plugin-styled-components", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "babel-plugin-styled-components@>= 1", - "name": "babel-plugin-styled-components", - "escapedName": "babel-plugin-styled-components", - "rawSpec": ">= 1", - "saveSpec": null, - "fetchSpec": ">= 1" - }, - "_requiredBy": [ - "/styled-components" - ], - "_resolved": "https://registry.npmjs.org/babel-plugin-styled-components/-/babel-plugin-styled-components-1.12.0.tgz", - "_shasum": "1dec1676512177de6b827211e9eda5a30db4f9b9", - "_spec": "babel-plugin-styled-components@>= 1", - "_where": "/home/riddhi/frontend/node_modules/styled-components", - "bugs": { - "url": "https://github.com/styled-components/babel-plugin-styled-components/issues" - }, - "bundleDependencies": false, - "contributors": [ - { - "name": "Vladimir Danchenkov", - "email": "vladimir.danchenkov@gmail.com" - }, - { - "name": "Max Stoiber", - "email": "contact@mxstbr.com" - }, - { - "name": "Phil Pluckthun", - "email": "phil@kitten.sh" - }, - { - "name": "Evan Jacobs", - "email": "probablyup@gmail.com" - } - ], - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.0.0", - "@babel/helper-module-imports": "^7.0.0", - "babel-plugin-syntax-jsx": "^6.18.0", - "lodash": "^4.17.11" - }, - "deprecated": false, - "description": "Improve the debugging experience and add server-side rendering support to styled-components", - "devDependencies": { - "@babel/cli": "^7.4.4", - "@babel/core": "^7.4.5", - "@babel/plugin-proposal-class-properties": "^7.4.4", - "@babel/plugin-transform-modules-commonjs": "^7.10.4", - "@babel/preset-env": "^7.4.5", - "babel-core": "7.0.0-bridge.0", - "babel-plugin-transform-es2015-modules-commonjs": "^6.26.2", - "babel-test": "^0.2.1", - "jest": "^26.1.0", - "jest-file-snapshot": "^0.3.6", - "prettier": "^2.0.5", - "rimraf": "^3.0.0", - "styled-components": "^5.0.0" - }, - "files": [ - "lib" - ], - "homepage": "https://github.com/styled-components/babel-plugin-styled-components#readme", - "jest": { - "testEnvironment": "node", - "snapshotSerializers": [ - "/test/whitespaceTrimmingSerializer.js" - ], - "watchPathIgnorePatterns": [ - "fixtures\\/[^/]+\\/(output|error)\\.js" - ] - }, - "keywords": [ - "styled-components", - "css-in-js", - "babel-plugin", - "server-side rendering", - "ssr", - "displayName" - ], - "license": "MIT", - "main": "lib/index.js", - "name": "babel-plugin-styled-components", - "peerDependencies": { - "styled-components": ">= 2" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/styled-components/babel-plugin-styled-components.git" - }, - "resolutions": { - "babel-core": "7.0.0-bridge.0" - }, - "scripts": { - "build": "babel src -d lib", - "clean": "rimraf lib", - "prepublish": "npm run clean && npm run build", - "style": "prettier --write src/**/*.js", - "test": "jest", - "test:watch": "npm run test -- --watch" - }, - "version": "1.12.0" -} diff --git a/node_modules/babel-plugin-syntax-jsx/package.json b/node_modules/babel-plugin-syntax-jsx/package.json index 30d67473..69d9a778 100644 --- a/node_modules/babel-plugin-syntax-jsx/package.json +++ b/node_modules/babel-plugin-syntax-jsx/package.json @@ -2,7 +2,7 @@ "_args": [ [ "babel-plugin-syntax-jsx@6.18.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "babel-plugin-syntax-jsx@6.18.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz", "_spec": "6.18.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": {}, "description": "Allow parsing of jsx", "devDependencies": {}, diff --git a/node_modules/babel-plugin-syntax-object-rest-spread/package.json b/node_modules/babel-plugin-syntax-object-rest-spread/package.json index a85d63b4..d58b435c 100644 --- a/node_modules/babel-plugin-syntax-object-rest-spread/package.json +++ b/node_modules/babel-plugin-syntax-object-rest-spread/package.json @@ -2,7 +2,7 @@ "_args": [ [ "babel-plugin-syntax-object-rest-spread@6.13.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "babel-plugin-syntax-object-rest-spread@6.13.0", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz", "_spec": "6.13.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": {}, "description": "Allow parsing of object rest/spread", "devDependencies": {}, diff --git a/node_modules/babel-plugin-transform-object-rest-spread/package.json b/node_modules/babel-plugin-transform-object-rest-spread/package.json index a70d4778..fa7e6ebf 100644 --- a/node_modules/babel-plugin-transform-object-rest-spread/package.json +++ b/node_modules/babel-plugin-transform-object-rest-spread/package.json @@ -2,7 +2,7 @@ "_args": [ [ "babel-plugin-transform-object-rest-spread@6.26.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "babel-plugin-transform-object-rest-spread@6.26.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.26.0.tgz", "_spec": "6.26.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "babel-plugin-syntax-object-rest-spread": "^6.8.0", "babel-runtime": "^6.26.0" diff --git a/node_modules/babel-plugin-transform-react-remove-prop-types/package.json b/node_modules/babel-plugin-transform-react-remove-prop-types/package.json index 0dd3da21..7e788593 100644 --- a/node_modules/babel-plugin-transform-react-remove-prop-types/package.json +++ b/node_modules/babel-plugin-transform-react-remove-prop-types/package.json @@ -2,7 +2,7 @@ "_args": [ [ "babel-plugin-transform-react-remove-prop-types@0.4.24", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "babel-plugin-transform-react-remove-prop-types@0.4.24", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/babel-plugin-transform-react-remove-prop-types/-/babel-plugin-transform-react-remove-prop-types-0.4.24.tgz", "_spec": "0.4.24", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Nikita Gusakov" }, diff --git a/node_modules/babel-preset-jest/package.json b/node_modules/babel-preset-jest/package.json index ed4022e5..314c80d2 100644 --- a/node_modules/babel-preset-jest/package.json +++ b/node_modules/babel-preset-jest/package.json @@ -2,7 +2,7 @@ "_args": [ [ "babel-preset-jest@23.2.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "babel-preset-jest@23.2.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-23.2.0.tgz", "_spec": "23.2.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/facebook/jest/issues" }, diff --git a/node_modules/babel-preset-react-app/node_modules/@babel/plugin-proposal-object-rest-spread/package.json b/node_modules/babel-preset-react-app/node_modules/@babel/plugin-proposal-object-rest-spread/package.json index 424ef9c9..581bf7a2 100644 --- a/node_modules/babel-preset-react-app/node_modules/@babel/plugin-proposal-object-rest-spread/package.json +++ b/node_modules/babel-preset-react-app/node_modules/@babel/plugin-proposal-object-rest-spread/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-proposal-object-rest-spread@7.3.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-proposal-object-rest-spread@7.3.2", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.3.2.tgz", "_spec": "7.3.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.0.0", "@babel/plugin-syntax-object-rest-spread": "^7.2.0" diff --git a/node_modules/babel-preset-react-app/node_modules/@babel/plugin-syntax-dynamic-import/package.json b/node_modules/babel-preset-react-app/node_modules/@babel/plugin-syntax-dynamic-import/package.json index b396de69..457b7790 100644 --- a/node_modules/babel-preset-react-app/node_modules/@babel/plugin-syntax-dynamic-import/package.json +++ b/node_modules/babel-preset-react-app/node_modules/@babel/plugin-syntax-dynamic-import/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-syntax-dynamic-import@7.2.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-syntax-dynamic-import@7.2.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.2.0.tgz", "_spec": "7.2.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.0.0" }, diff --git a/node_modules/babel-preset-react-app/node_modules/@babel/plugin-transform-classes/package.json b/node_modules/babel-preset-react-app/node_modules/@babel/plugin-transform-classes/package.json index d0603f33..ba366282 100644 --- a/node_modules/babel-preset-react-app/node_modules/@babel/plugin-transform-classes/package.json +++ b/node_modules/babel-preset-react-app/node_modules/@babel/plugin-transform-classes/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-classes@7.2.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-classes@7.2.2", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.2.2.tgz", "_spec": "7.2.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-annotate-as-pure": "^7.0.0", "@babel/helper-define-map": "^7.1.0", diff --git a/node_modules/babel-preset-react-app/node_modules/@babel/plugin-transform-destructuring/package.json b/node_modules/babel-preset-react-app/node_modules/@babel/plugin-transform-destructuring/package.json index dde4da3e..16bb61d9 100644 --- a/node_modules/babel-preset-react-app/node_modules/@babel/plugin-transform-destructuring/package.json +++ b/node_modules/babel-preset-react-app/node_modules/@babel/plugin-transform-destructuring/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-destructuring@7.3.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-destructuring@7.3.2", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.3.2.tgz", "_spec": "7.3.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.0.0" }, diff --git a/node_modules/babel-preset-react-app/node_modules/@babel/plugin-transform-react-constant-elements/package.json b/node_modules/babel-preset-react-app/node_modules/@babel/plugin-transform-react-constant-elements/package.json index 58696b52..19333919 100644 --- a/node_modules/babel-preset-react-app/node_modules/@babel/plugin-transform-react-constant-elements/package.json +++ b/node_modules/babel-preset-react-app/node_modules/@babel/plugin-transform-react-constant-elements/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-react-constant-elements@7.2.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-react-constant-elements@7.2.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-constant-elements/-/plugin-transform-react-constant-elements-7.2.0.tgz", "_spec": "7.2.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-annotate-as-pure": "^7.0.0", "@babel/helper-plugin-utils": "^7.0.0" diff --git a/node_modules/babel-preset-react-app/node_modules/@babel/plugin-transform-react-display-name/package.json b/node_modules/babel-preset-react-app/node_modules/@babel/plugin-transform-react-display-name/package.json index 2076ef15..afb15a7f 100644 --- a/node_modules/babel-preset-react-app/node_modules/@babel/plugin-transform-react-display-name/package.json +++ b/node_modules/babel-preset-react-app/node_modules/@babel/plugin-transform-react-display-name/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/plugin-transform-react-display-name@7.2.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/plugin-transform-react-display-name@7.2.0", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.2.0.tgz", "_spec": "7.2.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "dependencies": { "@babel/helper-plugin-utils": "^7.0.0" }, diff --git a/node_modules/babel-preset-react-app/node_modules/@babel/preset-env/package.json b/node_modules/babel-preset-react-app/node_modules/@babel/preset-env/package.json index 205cf600..af09c5fe 100644 --- a/node_modules/babel-preset-react-app/node_modules/@babel/preset-env/package.json +++ b/node_modules/babel-preset-react-app/node_modules/@babel/preset-env/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/preset-env@7.3.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/preset-env@7.3.1", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.3.1.tgz", "_spec": "7.3.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Henry Zhu", "email": "hi@henryzoo.com" diff --git a/node_modules/babel-preset-react-app/node_modules/@babel/preset-react/package.json b/node_modules/babel-preset-react-app/node_modules/@babel/preset-react/package.json index bbba9c2b..5d86f714 100644 --- a/node_modules/babel-preset-react-app/node_modules/@babel/preset-react/package.json +++ b/node_modules/babel-preset-react-app/node_modules/@babel/preset-react/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/preset-react@7.0.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/preset-react@7.0.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.0.0.tgz", "_spec": "7.0.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/babel-preset-react-app/node_modules/@babel/runtime/package.json b/node_modules/babel-preset-react-app/node_modules/@babel/runtime/package.json index 8fa7c91a..2285cae8 100644 --- a/node_modules/babel-preset-react-app/node_modules/@babel/runtime/package.json +++ b/node_modules/babel-preset-react-app/node_modules/@babel/runtime/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@babel/runtime@7.3.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "@babel/runtime@7.3.1", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.3.1.tgz", "_spec": "7.3.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/babel-preset-react-app/node_modules/babel-plugin-dynamic-import-node/package.json b/node_modules/babel-preset-react-app/node_modules/babel-plugin-dynamic-import-node/package.json index 40cdde6d..34ad021a 100644 --- a/node_modules/babel-preset-react-app/node_modules/babel-plugin-dynamic-import-node/package.json +++ b/node_modules/babel-preset-react-app/node_modules/babel-plugin-dynamic-import-node/package.json @@ -2,7 +2,7 @@ "_args": [ [ "babel-plugin-dynamic-import-node@2.2.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "babel-plugin-dynamic-import-node@2.2.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.2.0.tgz", "_spec": "2.2.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jordan Gensler", "email": "jordan.gensler@airbnb.com" diff --git a/node_modules/babel-preset-react-app/node_modules/babel-plugin-macros/package.json b/node_modules/babel-preset-react-app/node_modules/babel-plugin-macros/package.json index 972b11e4..95d51e02 100644 --- a/node_modules/babel-preset-react-app/node_modules/babel-plugin-macros/package.json +++ b/node_modules/babel-preset-react-app/node_modules/babel-plugin-macros/package.json @@ -2,7 +2,7 @@ "_args": [ [ "babel-plugin-macros@2.5.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "babel-plugin-macros@2.5.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-2.5.0.tgz", "_spec": "2.5.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Kent C. Dodds", "email": "kent@doddsfamily.us", diff --git a/node_modules/babel-preset-react-app/node_modules/regenerator-runtime/package.json b/node_modules/babel-preset-react-app/node_modules/regenerator-runtime/package.json index 37ad803d..849b069a 100644 --- a/node_modules/babel-preset-react-app/node_modules/regenerator-runtime/package.json +++ b/node_modules/babel-preset-react-app/node_modules/regenerator-runtime/package.json @@ -2,7 +2,7 @@ "_args": [ [ "regenerator-runtime@0.12.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "regenerator-runtime@0.12.1", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.12.1.tgz", "_spec": "0.12.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Ben Newman", "email": "bn@cs.stanford.edu" diff --git a/node_modules/babel-preset-react-app/package.json b/node_modules/babel-preset-react-app/package.json index 07cef9d5..bc0c7697 100644 --- a/node_modules/babel-preset-react-app/package.json +++ b/node_modules/babel-preset-react-app/package.json @@ -2,7 +2,7 @@ "_args": [ [ "babel-preset-react-app@7.0.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "babel-preset-react-app@7.0.2", @@ -80,7 +80,7 @@ ], "_resolved": "https://registry.npmjs.org/babel-preset-react-app/-/babel-preset-react-app-7.0.2.tgz", "_spec": "7.0.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/facebook/create-react-app/issues" }, diff --git a/node_modules/babel-register/node_modules/babel-core/package.json b/node_modules/babel-register/node_modules/babel-core/package.json index 8de97b72..37e3dafd 100644 --- a/node_modules/babel-register/node_modules/babel-core/package.json +++ b/node_modules/babel-register/node_modules/babel-core/package.json @@ -2,7 +2,7 @@ "_args": [ [ "babel-core@6.26.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "babel-core@6.26.3", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.3.tgz", "_spec": "6.26.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/babel-register/node_modules/debug/package.json b/node_modules/babel-register/node_modules/debug/package.json index 8f00055f..92b03e7a 100644 --- a/node_modules/babel-register/node_modules/debug/package.json +++ b/node_modules/babel-register/node_modules/debug/package.json @@ -2,7 +2,7 @@ "_args": [ [ "debug@2.6.9", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "debug@2.6.9", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "_spec": "2.6.9", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca" diff --git a/node_modules/babel-register/node_modules/json5/package.json b/node_modules/babel-register/node_modules/json5/package.json index 7138bf90..b52b2f9e 100644 --- a/node_modules/babel-register/node_modules/json5/package.json +++ b/node_modules/babel-register/node_modules/json5/package.json @@ -2,7 +2,7 @@ "_args": [ [ "json5@0.5.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "json5@0.5.1", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz", "_spec": "0.5.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Aseem Kishore", "email": "aseem.kishore@gmail.com" diff --git a/node_modules/babel-register/node_modules/ms/package.json b/node_modules/babel-register/node_modules/ms/package.json index e20595dc..d201f5c7 100644 --- a/node_modules/babel-register/node_modules/ms/package.json +++ b/node_modules/babel-register/node_modules/ms/package.json @@ -2,7 +2,7 @@ "_args": [ [ "ms@2.0.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "ms@2.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "_spec": "2.0.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/zeit/ms/issues" }, diff --git a/node_modules/babel-register/package.json b/node_modules/babel-register/package.json index 815d5953..5e7dc3bf 100644 --- a/node_modules/babel-register/package.json +++ b/node_modules/babel-register/package.json @@ -2,7 +2,7 @@ "_args": [ [ "babel-register@6.26.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "babel-register@6.26.0", @@ -46,7 +46,7 @@ ], "_resolved": "https://registry.npmjs.org/babel-register/-/babel-register-6.26.0.tgz", "_spec": "6.26.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/babel-runtime/node_modules/regenerator-runtime/package.json b/node_modules/babel-runtime/node_modules/regenerator-runtime/package.json index 7e8088a4..84ca293f 100644 --- a/node_modules/babel-runtime/node_modules/regenerator-runtime/package.json +++ b/node_modules/babel-runtime/node_modules/regenerator-runtime/package.json @@ -2,7 +2,7 @@ "_args": [ [ "regenerator-runtime@0.11.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "regenerator-runtime@0.11.1", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", "_spec": "0.11.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Ben Newman", "email": "bn@cs.stanford.edu" diff --git a/node_modules/babel-runtime/package.json b/node_modules/babel-runtime/package.json index e4779836..61105a12 100644 --- a/node_modules/babel-runtime/package.json +++ b/node_modules/babel-runtime/package.json @@ -2,7 +2,7 @@ "_args": [ [ "babel-runtime@6.26.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "babel-runtime@6.26.0", @@ -38,7 +38,7 @@ ], "_resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", "_spec": "6.26.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/babel-template/package.json b/node_modules/babel-template/package.json index 582e7195..92329aa3 100644 --- a/node_modules/babel-template/package.json +++ b/node_modules/babel-template/package.json @@ -2,7 +2,7 @@ "_args": [ [ "babel-template@6.26.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "babel-template@6.26.0", @@ -30,7 +30,7 @@ ], "_resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", "_spec": "6.26.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/babel-traverse/node_modules/debug/package.json b/node_modules/babel-traverse/node_modules/debug/package.json index e979152f..b59fd7a7 100644 --- a/node_modules/babel-traverse/node_modules/debug/package.json +++ b/node_modules/babel-traverse/node_modules/debug/package.json @@ -2,7 +2,7 @@ "_args": [ [ "debug@2.6.9", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "debug@2.6.9", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "_spec": "2.6.9", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca" diff --git a/node_modules/babel-traverse/node_modules/globals/package.json b/node_modules/babel-traverse/node_modules/globals/package.json index 41c9bd3b..492f0940 100644 --- a/node_modules/babel-traverse/node_modules/globals/package.json +++ b/node_modules/babel-traverse/node_modules/globals/package.json @@ -2,7 +2,7 @@ "_args": [ [ "globals@9.18.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "globals@9.18.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", "_spec": "9.18.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/babel-traverse/node_modules/ms/package.json b/node_modules/babel-traverse/node_modules/ms/package.json index b90a1176..521e75d3 100644 --- a/node_modules/babel-traverse/node_modules/ms/package.json +++ b/node_modules/babel-traverse/node_modules/ms/package.json @@ -2,7 +2,7 @@ "_args": [ [ "ms@2.0.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "ms@2.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "_spec": "2.0.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/zeit/ms/issues" }, diff --git a/node_modules/babel-traverse/package.json b/node_modules/babel-traverse/package.json index eef8b0cd..08dadb7a 100644 --- a/node_modules/babel-traverse/package.json +++ b/node_modules/babel-traverse/package.json @@ -2,7 +2,7 @@ "_args": [ [ "babel-traverse@6.26.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "babel-traverse@6.26.0", @@ -31,7 +31,7 @@ ], "_resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz", "_spec": "6.26.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/babel-types/node_modules/to-fast-properties/package.json b/node_modules/babel-types/node_modules/to-fast-properties/package.json index 4b6b85c9..edf05ba8 100644 --- a/node_modules/babel-types/node_modules/to-fast-properties/package.json +++ b/node_modules/babel-types/node_modules/to-fast-properties/package.json @@ -2,7 +2,7 @@ "_args": [ [ "to-fast-properties@1.0.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "to-fast-properties@1.0.3", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", "_spec": "1.0.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/babel-types/package.json b/node_modules/babel-types/package.json index 66edf64e..8348318d 100644 --- a/node_modules/babel-types/package.json +++ b/node_modules/babel-types/package.json @@ -2,7 +2,7 @@ "_args": [ [ "babel-types@6.26.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "babel-types@6.26.0", @@ -33,7 +33,7 @@ ], "_resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", "_spec": "6.26.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/babylon/package.json b/node_modules/babylon/package.json index 93719d74..613c48b1 100644 --- a/node_modules/babylon/package.json +++ b/node_modules/babylon/package.json @@ -2,7 +2,7 @@ "_args": [ [ "babylon@6.18.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "babylon@6.18.0", @@ -32,7 +32,7 @@ ], "_resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", "_spec": "6.18.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" diff --git a/node_modules/balanced-match/package.json b/node_modules/balanced-match/package.json index 8df3222a..36ab0b0e 100644 --- a/node_modules/balanced-match/package.json +++ b/node_modules/balanced-match/package.json @@ -2,7 +2,7 @@ "_args": [ [ "balanced-match@1.0.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "balanced-match@1.0.0", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", "_spec": "1.0.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Julian Gruber", "email": "mail@juliangruber.com", diff --git a/node_modules/base-64/package.json b/node_modules/base-64/package.json index 1b322208..e9e1ea7a 100644 --- a/node_modules/base-64/package.json +++ b/node_modules/base-64/package.json @@ -2,7 +2,7 @@ "_args": [ [ "base-64@0.1.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "base-64@0.1.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/base-64/-/base-64-0.1.0.tgz", "_spec": "0.1.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Mathias Bynens", "url": "http://mathiasbynens.be/" diff --git a/node_modules/base/node_modules/define-property/package.json b/node_modules/base/node_modules/define-property/package.json index d018ca46..7a94f5b1 100644 --- a/node_modules/base/node_modules/define-property/package.json +++ b/node_modules/base/node_modules/define-property/package.json @@ -2,7 +2,7 @@ "_args": [ [ "define-property@1.0.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "define-property@1.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", "_spec": "1.0.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/base/node_modules/is-accessor-descriptor/package.json b/node_modules/base/node_modules/is-accessor-descriptor/package.json index 4ac41fa1..13314535 100644 --- a/node_modules/base/node_modules/is-accessor-descriptor/package.json +++ b/node_modules/base/node_modules/is-accessor-descriptor/package.json @@ -2,7 +2,7 @@ "_args": [ [ "is-accessor-descriptor@1.0.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "is-accessor-descriptor@1.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", "_spec": "1.0.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/base/node_modules/is-data-descriptor/package.json b/node_modules/base/node_modules/is-data-descriptor/package.json index 85b7a4ed..6e419a83 100644 --- a/node_modules/base/node_modules/is-data-descriptor/package.json +++ b/node_modules/base/node_modules/is-data-descriptor/package.json @@ -2,7 +2,7 @@ "_args": [ [ "is-data-descriptor@1.0.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "is-data-descriptor@1.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", "_spec": "1.0.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/base/node_modules/is-descriptor/package.json b/node_modules/base/node_modules/is-descriptor/package.json index 536727e3..6e53e662 100644 --- a/node_modules/base/node_modules/is-descriptor/package.json +++ b/node_modules/base/node_modules/is-descriptor/package.json @@ -2,7 +2,7 @@ "_args": [ [ "is-descriptor@1.0.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "is-descriptor@1.0.2", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", "_spec": "1.0.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/base/node_modules/kind-of/package.json b/node_modules/base/node_modules/kind-of/package.json index 18c1f3fa..81ae69be 100644 --- a/node_modules/base/node_modules/kind-of/package.json +++ b/node_modules/base/node_modules/kind-of/package.json @@ -2,7 +2,7 @@ "_args": [ [ "kind-of@6.0.3", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "kind-of@6.0.3", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", "_spec": "6.0.3", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/base/package.json b/node_modules/base/package.json index f8e0529d..9b110931 100644 --- a/node_modules/base/package.json +++ b/node_modules/base/package.json @@ -2,7 +2,7 @@ "_args": [ [ "base@0.11.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "base@0.11.2", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", "_spec": "0.11.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/base64-js/package.json b/node_modules/base64-js/package.json index d1d84aa2..8dffdb7b 100644 --- a/node_modules/base64-js/package.json +++ b/node_modules/base64-js/package.json @@ -2,7 +2,7 @@ "_args": [ [ "base64-js@1.3.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "base64-js@1.3.1", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.1.tgz", "_spec": "1.3.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "T. Jameson Little", "email": "t.jameson.little@gmail.com" diff --git a/node_modules/base64url/package.json b/node_modules/base64url/package.json index 58d9182c..e8c3e010 100644 --- a/node_modules/base64url/package.json +++ b/node_modules/base64url/package.json @@ -2,7 +2,7 @@ "_args": [ [ "base64url@3.0.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "base64url@3.0.1", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/base64url/-/base64url-3.0.1.tgz", "_spec": "3.0.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Brian J Brennan" }, diff --git a/node_modules/batch/package.json b/node_modules/batch/package.json index a72d5e78..d76094e6 100644 --- a/node_modules/batch/package.json +++ b/node_modules/batch/package.json @@ -2,7 +2,7 @@ "_args": [ [ "batch@0.6.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "batch@0.6.1", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", "_spec": "0.6.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca" diff --git a/node_modules/bcrypt-pbkdf/package.json b/node_modules/bcrypt-pbkdf/package.json index 97ad8576..7b15dd0a 100644 --- a/node_modules/bcrypt-pbkdf/package.json +++ b/node_modules/bcrypt-pbkdf/package.json @@ -2,7 +2,7 @@ "_args": [ [ "bcrypt-pbkdf@1.0.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "bcrypt-pbkdf@1.0.2", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", "_spec": "1.0.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/joyent/node-bcrypt-pbkdf/issues" }, diff --git a/node_modules/bfj/package.json b/node_modules/bfj/package.json index ffbfd2be..36ffd835 100644 --- a/node_modules/bfj/package.json +++ b/node_modules/bfj/package.json @@ -2,7 +2,7 @@ "_args": [ [ "bfj@6.1.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "bfj@6.1.1", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/bfj/-/bfj-6.1.1.tgz", "_spec": "6.1.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Phil Booth", "url": "https://gitlab.com/philbooth" diff --git a/node_modules/big.js/package.json b/node_modules/big.js/package.json index bddee3ef..458b0305 100644 --- a/node_modules/big.js/package.json +++ b/node_modules/big.js/package.json @@ -2,7 +2,7 @@ "_args": [ [ "big.js@5.2.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "big.js@5.2.2", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", "_spec": "5.2.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Michael Mclaughlin", "email": "M8ch88l@gmail.com" diff --git a/node_modules/binary-extensions/package.json b/node_modules/binary-extensions/package.json index 6afe961b..0071e9a1 100644 --- a/node_modules/binary-extensions/package.json +++ b/node_modules/binary-extensions/package.json @@ -2,7 +2,7 @@ "_args": [ [ "binary-extensions@1.13.1", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "binary-extensions@1.13.1", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.13.1.tgz", "_spec": "1.13.1", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/bluebird/package.json b/node_modules/bluebird/package.json index 9a42fae8..e207d261 100644 --- a/node_modules/bluebird/package.json +++ b/node_modules/bluebird/package.json @@ -2,7 +2,7 @@ "_args": [ [ "bluebird@3.7.2", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "bluebird@3.7.2", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", "_spec": "3.7.2", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Petka Antonov", "email": "petka_antonov@hotmail.com", diff --git a/node_modules/bn.js/package.json b/node_modules/bn.js/package.json index bbc2571c..5a80e385 100644 --- a/node_modules/bn.js/package.json +++ b/node_modules/bn.js/package.json @@ -2,7 +2,7 @@ "_args": [ [ "bn.js@4.11.8", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "bn.js@4.11.8", @@ -33,7 +33,7 @@ ], "_resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz", "_spec": "4.11.8", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Fedor Indutny", "email": "fedor@indutny.com" diff --git a/node_modules/body-parser/node_modules/bytes/package.json b/node_modules/body-parser/node_modules/bytes/package.json index 93747476..c9f31bf8 100644 --- a/node_modules/body-parser/node_modules/bytes/package.json +++ b/node_modules/body-parser/node_modules/bytes/package.json @@ -2,7 +2,7 @@ "_args": [ [ "bytes@3.1.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "bytes@3.1.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", "_spec": "3.1.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca", diff --git a/node_modules/body-parser/node_modules/debug/package.json b/node_modules/body-parser/node_modules/debug/package.json index dc8e24ee..ec54241d 100644 --- a/node_modules/body-parser/node_modules/debug/package.json +++ b/node_modules/body-parser/node_modules/debug/package.json @@ -2,7 +2,7 @@ "_args": [ [ "debug@2.6.9", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "debug@2.6.9", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "_spec": "2.6.9", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca" diff --git a/node_modules/body-parser/node_modules/ms/package.json b/node_modules/body-parser/node_modules/ms/package.json index a3de5f32..703835e3 100644 --- a/node_modules/body-parser/node_modules/ms/package.json +++ b/node_modules/body-parser/node_modules/ms/package.json @@ -2,7 +2,7 @@ "_args": [ [ "ms@2.0.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "ms@2.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "_spec": "2.0.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/zeit/ms/issues" }, diff --git a/node_modules/body-parser/node_modules/qs/package.json b/node_modules/body-parser/node_modules/qs/package.json index c67e7eb0..5f66b252 100644 --- a/node_modules/body-parser/node_modules/qs/package.json +++ b/node_modules/body-parser/node_modules/qs/package.json @@ -2,7 +2,7 @@ "_args": [ [ "qs@6.7.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "qs@6.7.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", "_spec": "6.7.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/ljharb/qs/issues" }, diff --git a/node_modules/body-parser/package.json b/node_modules/body-parser/package.json index 36d05b31..1637be96 100644 --- a/node_modules/body-parser/package.json +++ b/node_modules/body-parser/package.json @@ -2,7 +2,7 @@ "_args": [ [ "body-parser@1.19.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "body-parser@1.19.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz", "_spec": "1.19.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "bugs": { "url": "https://github.com/expressjs/body-parser/issues" }, diff --git a/node_modules/bonjour/package.json b/node_modules/bonjour/package.json index d52bdb0a..46af969b 100644 --- a/node_modules/bonjour/package.json +++ b/node_modules/bonjour/package.json @@ -2,7 +2,7 @@ "_args": [ [ "bonjour@3.5.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "bonjour@3.5.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/bonjour/-/bonjour-3.5.0.tgz", "_spec": "3.5.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Thomas Watson Steen", "email": "w@tson.dk", diff --git a/node_modules/boolbase/package.json b/node_modules/boolbase/package.json index ed32c4f3..7818ef49 100644 --- a/node_modules/boolbase/package.json +++ b/node_modules/boolbase/package.json @@ -2,7 +2,7 @@ "_args": [ [ "boolbase@1.0.0", - "/home/riddhi/frontend" + "/home/riddhi/simulation/Gazebo_simulation-Frontend" ] ], "_from": "boolbase@1.0.0", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", "_spec": "1.0.0", - "_where": "/home/riddhi/frontend", + "_where": "/home/riddhi/simulation/Gazebo_simulation-Frontend", "author": { "name": "Felix Boehm", "email": "me@feedic.com" diff --git a/node_modules/bootstrap/LICENSE b/node_modules/bootstrap/LICENSE deleted file mode 100644 index 173a9ebb..00000000 --- a/node_modules/bootstrap/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2011-2020 Twitter, Inc. -Copyright (c) 2011-2020 The Bootstrap Authors - -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. diff --git a/node_modules/bootstrap/README.md b/node_modules/bootstrap/README.md deleted file mode 100644 index 35ce9fea..00000000 --- a/node_modules/bootstrap/README.md +++ /dev/null @@ -1,209 +0,0 @@ -

- - Bootstrap logo - -

- -

Bootstrap

- -

- Sleek, intuitive, and powerful front-end framework for faster and easier web development. -
- Explore Bootstrap docs » -
-
- Report bug - · - Request feature - · - Themes - · - Blog -

- - -## Table of contents - -- [Quick start](#quick-start) -- [Status](#status) -- [What's included](#whats-included) -- [Bugs and feature requests](#bugs-and-feature-requests) -- [Documentation](#documentation) -- [Contributing](#contributing) -- [Community](#community) -- [Versioning](#versioning) -- [Creators](#creators) -- [Thanks](#thanks) -- [Copyright and license](#copyright-and-license) - - -## Quick start - -Several quick start options are available: - -- [Download the latest release.](https://github.com/twbs/bootstrap/archive/v4.5.3.zip) -- Clone the repo: `git clone https://github.com/twbs/bootstrap.git` -- Install with [npm](https://www.npmjs.com/): `npm install bootstrap` -- Install with [yarn](https://yarnpkg.com/): `yarn add bootstrap@4.5.3` -- Install with [Composer](https://getcomposer.org/): `composer require twbs/bootstrap:4.5.3` -- Install with [NuGet](https://www.nuget.org/): CSS: `Install-Package bootstrap` Sass: `Install-Package bootstrap.sass` - -Read the [Getting started page](https://getbootstrap.com/docs/4.5/getting-started/introduction/) for information on the framework contents, templates and examples, and more. - - -## Status - -[![Slack](https://bootstrap-slack.herokuapp.com/badge.svg)](https://bootstrap-slack.herokuapp.com/) -[![Build Status](https://github.com/twbs/bootstrap/workflows/JS%20Tests/badge.svg?branch=v4-dev)](https://github.com/twbs/bootstrap/actions?query=workflow%3AJS+Tests+branch%3Av4-dev) -[![npm version](https://img.shields.io/npm/v/bootstrap)](https://www.npmjs.com/package/bootstrap) -[![Gem version](https://img.shields.io/gem/v/bootstrap)](https://rubygems.org/gems/bootstrap) -[![Meteor Atmosphere](https://img.shields.io/badge/meteor-twbs%3Abootstrap-blue)](https://atmospherejs.com/twbs/bootstrap) -[![Packagist Prerelease](https://img.shields.io/packagist/vpre/twbs/bootstrap)](https://packagist.org/packages/twbs/bootstrap) -[![NuGet](https://img.shields.io/nuget/vpre/bootstrap)](https://www.nuget.org/packages/bootstrap/absoluteLatest) -[![peerDependencies Status](https://img.shields.io/david/peer/twbs/bootstrap)](https://david-dm.org/twbs/bootstrap?type=peer) -[![devDependency Status](https://img.shields.io/david/dev/twbs/bootstrap)](https://david-dm.org/twbs/bootstrap?type=dev) -[![Coverage Status](https://img.shields.io/coveralls/github/twbs/bootstrap/v4-dev)](https://coveralls.io/github/twbs/bootstrap?branch=v4-dev) -[![CSS gzip size](https://img.badgesize.io/twbs/bootstrap/v4-dev/dist/css/bootstrap.min.css?compression=gzip&label=CSS%20gzip%20size)](https://github.com/twbs/bootstrap/blob/v4-dev/dist/css/bootstrap.min.css) -[![JS gzip size](https://img.badgesize.io/twbs/bootstrap/v4-dev/dist/js/bootstrap.min.js?compression=gzip&label=JS%20gzip%20size)](https://github.com/twbs/bootstrap/blob/v4-dev/dist/js/bootstrap.min.js) -[![BrowserStack Status](https://www.browserstack.com/automate/badge.svg?badge_key=SkxZcStBeExEdVJqQ2hWYnlWckpkNmNEY213SFp6WHFETWk2bGFuY3pCbz0tLXhqbHJsVlZhQnRBdEpod3NLSDMzaHc9PQ==--3d0b75245708616eb93113221beece33e680b229)](https://www.browserstack.com/automate/public-build/SkxZcStBeExEdVJqQ2hWYnlWckpkNmNEY213SFp6WHFETWk2bGFuY3pCbz0tLXhqbHJsVlZhQnRBdEpod3NLSDMzaHc9PQ==--3d0b75245708616eb93113221beece33e680b229) -[![Backers on Open Collective](https://img.shields.io/opencollective/backers/bootstrap)](#backers) -[![Sponsors on Open Collective](https://img.shields.io/opencollective/sponsors/bootstrap)](#sponsors) - - -## What's included - -Within the download you'll find the following directories and files, logically grouping common assets and providing both compiled and minified variations. You'll see something like this: - -```text -bootstrap/ -└── dist/ - ├── css/ - │ ├── bootstrap-grid.css - │ ├── bootstrap-grid.css.map - │ ├── bootstrap-grid.min.css - │ ├── bootstrap-grid.min.css.map - │ ├── bootstrap-reboot.css - │ ├── bootstrap-reboot.css.map - │ ├── bootstrap-reboot.min.css - │ ├── bootstrap-reboot.min.css.map - │ ├── bootstrap.css - │ ├── bootstrap.css.map - │ ├── bootstrap.min.css - │ └── bootstrap.min.css.map - └── js/ - ├── bootstrap.bundle.js - ├── bootstrap.bundle.js.map - ├── bootstrap.bundle.min.js - ├── bootstrap.bundle.min.js.map - ├── bootstrap.js - ├── bootstrap.js.map - ├── bootstrap.min.js - └── bootstrap.min.js.map -``` - -We provide compiled CSS and JS (`bootstrap.*`), as well as compiled and minified CSS and JS (`bootstrap.min.*`). [source maps](https://developers.google.com/web/tools/chrome-devtools/javascript/source-maps) (`bootstrap.*.map`) are available for use with certain browsers' developer tools. Bundled JS files (`bootstrap.bundle.js` and minified `bootstrap.bundle.min.js`) include [Popper](https://popper.js.org/), but not [jQuery](https://jquery.com/). - - -## Bugs and feature requests - -Have a bug or a feature request? Please first read the [issue guidelines](https://github.com/twbs/bootstrap/blob/v4-dev/.github/CONTRIBUTING.md#using-the-issue-tracker) and search for existing and closed issues. If your problem or idea is not addressed yet, [please open a new issue](https://github.com/twbs/bootstrap/issues/new). - - -## Documentation - -Bootstrap's documentation, included in this repo in the root directory, is built with [Jekyll](https://jekyllrb.com/) and publicly hosted on GitHub Pages at . The docs may also be run locally. - -Documentation search is powered by [Algolia's DocSearch](https://community.algolia.com/docsearch/). Working on our search? Be sure to set `debug: true` in `site/docs/4.5/assets/js/src/search.js` file. - -### Running documentation locally - -1. Run through the [tooling setup](https://getbootstrap.com/docs/4.5/getting-started/build-tools/#tooling-setup) to install Jekyll (the site builder) and other Ruby dependencies with `bundle install`. -2. Run `npm install` to install Node.js dependencies. -3. Run `npm start` to compile CSS and JavaScript files, generate our docs, and watch for changes. -4. Open `http://localhost:9001` in your browser, and voilà. - -Learn more about using Jekyll by reading its [documentation](https://jekyllrb.com/docs/). - -### Documentation for previous releases - -You can find all our previous releases docs on . - -[Previous releases](https://github.com/twbs/bootstrap/releases) and their documentation are also available for download. - - -## Contributing - -Please read through our [contributing guidelines](https://github.com/twbs/bootstrap/blob/v4-dev/.github/CONTRIBUTING.md). Included are directions for opening issues, coding standards, and notes on development. - -Moreover, if your pull request contains JavaScript patches or features, you must include [relevant unit tests](https://github.com/twbs/bootstrap/tree/v4-dev/js/tests). All HTML and CSS should conform to the [Code Guide](https://github.com/mdo/code-guide), maintained by [Mark Otto](https://github.com/mdo). - -Editor preferences are available in the [editor config](https://github.com/twbs/bootstrap/blob/v4-dev/.editorconfig) for easy use in common text editors. Read more and download plugins at . - - -## Community - -Get updates on Bootstrap's development and chat with the project maintainers and community members. - -- Follow [@getbootstrap on Twitter](https://twitter.com/getbootstrap). -- Read and subscribe to [The Official Bootstrap Blog](https://blog.getbootstrap.com/). -- Join [the official Slack room](https://bootstrap-slack.herokuapp.com/). -- Chat with fellow Bootstrappers in IRC. On the `irc.freenode.net` server, in the `##bootstrap` channel. -- Implementation help may be found at Stack Overflow (tagged [`bootstrap-4`](https://stackoverflow.com/questions/tagged/bootstrap-4)). -- Developers should use the keyword `bootstrap` on packages which modify or add to the functionality of Bootstrap when distributing through [npm](https://www.npmjs.com/browse/keyword/bootstrap) or similar delivery mechanisms for maximum discoverability. - - -## Versioning - -For transparency into our release cycle and in striving to maintain backward compatibility, Bootstrap is maintained under [the Semantic Versioning guidelines](https://semver.org/). Sometimes we screw up, but we adhere to those rules whenever possible. - -See [the Releases section of our GitHub project](https://github.com/twbs/bootstrap/releases) for changelogs for each release version of Bootstrap. Release announcement posts on [the official Bootstrap blog](https://blog.getbootstrap.com/) contain summaries of the most noteworthy changes made in each release. - - -## Creators - -**Mark Otto** - -- -- - -**Jacob Thornton** - -- -- - - -## Thanks - - - BrowserStack Logo - - -Thanks to [BrowserStack](https://www.browserstack.com/) for providing the infrastructure that allows us to test in real browsers! - - -## Sponsors - -Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/bootstrap#sponsor)] - -[![](https://opencollective.com/bootstrap/sponsor/0/avatar.svg)](https://opencollective.com/bootstrap/sponsor/0/website) -[![](https://opencollective.com/bootstrap/sponsor/1/avatar.svg)](https://opencollective.com/bootstrap/sponsor/1/website) -[![](https://opencollective.com/bootstrap/sponsor/2/avatar.svg)](https://opencollective.com/bootstrap/sponsor/2/website) -[![](https://opencollective.com/bootstrap/sponsor/3/avatar.svg)](https://opencollective.com/bootstrap/sponsor/3/website) -[![](https://opencollective.com/bootstrap/sponsor/4/avatar.svg)](https://opencollective.com/bootstrap/sponsor/4/website) -[![](https://opencollective.com/bootstrap/sponsor/5/avatar.svg)](https://opencollective.com/bootstrap/sponsor/5/website) -[![](https://opencollective.com/bootstrap/sponsor/6/avatar.svg)](https://opencollective.com/bootstrap/sponsor/6/website) -[![](https://opencollective.com/bootstrap/sponsor/7/avatar.svg)](https://opencollective.com/bootstrap/sponsor/7/website) -[![](https://opencollective.com/bootstrap/sponsor/8/avatar.svg)](https://opencollective.com/bootstrap/sponsor/8/website) -[![](https://opencollective.com/bootstrap/sponsor/9/avatar.svg)](https://opencollective.com/bootstrap/sponsor/9/website) - - -## Backers - -Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/bootstrap#backer)] - -[![Backers](https://opencollective.com/bootstrap/backers.svg?width=890)](https://opencollective.com/bootstrap#backers) - - -## Copyright and license - -Code and documentation copyright 2011-2020 the [Bootstrap Authors](https://github.com/twbs/bootstrap/graphs/contributors) and [Twitter, Inc.](https://twitter.com) Code released under the [MIT License](https://github.com/twbs/bootstrap/blob/main/LICENSE). Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/). diff --git a/node_modules/bootstrap/dist/css/bootstrap-grid.css b/node_modules/bootstrap/dist/css/bootstrap-grid.css deleted file mode 100644 index 9cfa07ac..00000000 --- a/node_modules/bootstrap/dist/css/bootstrap-grid.css +++ /dev/null @@ -1,3872 +0,0 @@ -/*! - * Bootstrap Grid v4.5.3 (https://getbootstrap.com/) - * Copyright 2011-2020 The Bootstrap Authors - * Copyright 2011-2020 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) - */ -html { - box-sizing: border-box; - -ms-overflow-style: scrollbar; -} - -*, -*::before, -*::after { - box-sizing: inherit; -} - -.container, -.container-fluid, -.container-sm, -.container-md, -.container-lg, -.container-xl { - width: 100%; - padding-right: 15px; - padding-left: 15px; - margin-right: auto; - margin-left: auto; -} - -@media (min-width: 576px) { - .container, .container-sm { - max-width: 540px; - } -} - -@media (min-width: 768px) { - .container, .container-sm, .container-md { - max-width: 720px; - } -} - -@media (min-width: 992px) { - .container, .container-sm, .container-md, .container-lg { - max-width: 960px; - } -} - -@media (min-width: 1200px) { - .container, .container-sm, .container-md, .container-lg, .container-xl { - max-width: 1140px; - } -} - -.row { - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - margin-right: -15px; - margin-left: -15px; -} - -.no-gutters { - margin-right: 0; - margin-left: 0; -} - -.no-gutters > .col, -.no-gutters > [class*="col-"] { - padding-right: 0; - padding-left: 0; -} - -.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col, -.col-auto, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm, -.col-sm-auto, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md, -.col-md-auto, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg, -.col-lg-auto, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl, -.col-xl-auto { - position: relative; - width: 100%; - padding-right: 15px; - padding-left: 15px; -} - -.col { - -ms-flex-preferred-size: 0; - flex-basis: 0; - -ms-flex-positive: 1; - flex-grow: 1; - max-width: 100%; -} - -.row-cols-1 > * { - -ms-flex: 0 0 100%; - flex: 0 0 100%; - max-width: 100%; -} - -.row-cols-2 > * { - -ms-flex: 0 0 50%; - flex: 0 0 50%; - max-width: 50%; -} - -.row-cols-3 > * { - -ms-flex: 0 0 33.333333%; - flex: 0 0 33.333333%; - max-width: 33.333333%; -} - -.row-cols-4 > * { - -ms-flex: 0 0 25%; - flex: 0 0 25%; - max-width: 25%; -} - -.row-cols-5 > * { - -ms-flex: 0 0 20%; - flex: 0 0 20%; - max-width: 20%; -} - -.row-cols-6 > * { - -ms-flex: 0 0 16.666667%; - flex: 0 0 16.666667%; - max-width: 16.666667%; -} - -.col-auto { - -ms-flex: 0 0 auto; - flex: 0 0 auto; - width: auto; - max-width: 100%; -} - -.col-1 { - -ms-flex: 0 0 8.333333%; - flex: 0 0 8.333333%; - max-width: 8.333333%; -} - -.col-2 { - -ms-flex: 0 0 16.666667%; - flex: 0 0 16.666667%; - max-width: 16.666667%; -} - -.col-3 { - -ms-flex: 0 0 25%; - flex: 0 0 25%; - max-width: 25%; -} - -.col-4 { - -ms-flex: 0 0 33.333333%; - flex: 0 0 33.333333%; - max-width: 33.333333%; -} - -.col-5 { - -ms-flex: 0 0 41.666667%; - flex: 0 0 41.666667%; - max-width: 41.666667%; -} - -.col-6 { - -ms-flex: 0 0 50%; - flex: 0 0 50%; - max-width: 50%; -} - -.col-7 { - -ms-flex: 0 0 58.333333%; - flex: 0 0 58.333333%; - max-width: 58.333333%; -} - -.col-8 { - -ms-flex: 0 0 66.666667%; - flex: 0 0 66.666667%; - max-width: 66.666667%; -} - -.col-9 { - -ms-flex: 0 0 75%; - flex: 0 0 75%; - max-width: 75%; -} - -.col-10 { - -ms-flex: 0 0 83.333333%; - flex: 0 0 83.333333%; - max-width: 83.333333%; -} - -.col-11 { - -ms-flex: 0 0 91.666667%; - flex: 0 0 91.666667%; - max-width: 91.666667%; -} - -.col-12 { - -ms-flex: 0 0 100%; - flex: 0 0 100%; - max-width: 100%; -} - -.order-first { - -ms-flex-order: -1; - order: -1; -} - -.order-last { - -ms-flex-order: 13; - order: 13; -} - -.order-0 { - -ms-flex-order: 0; - order: 0; -} - -.order-1 { - -ms-flex-order: 1; - order: 1; -} - -.order-2 { - -ms-flex-order: 2; - order: 2; -} - -.order-3 { - -ms-flex-order: 3; - order: 3; -} - -.order-4 { - -ms-flex-order: 4; - order: 4; -} - -.order-5 { - -ms-flex-order: 5; - order: 5; -} - -.order-6 { - -ms-flex-order: 6; - order: 6; -} - -.order-7 { - -ms-flex-order: 7; - order: 7; -} - -.order-8 { - -ms-flex-order: 8; - order: 8; -} - -.order-9 { - -ms-flex-order: 9; - order: 9; -} - -.order-10 { - -ms-flex-order: 10; - order: 10; -} - -.order-11 { - -ms-flex-order: 11; - order: 11; -} - -.order-12 { - -ms-flex-order: 12; - order: 12; -} - -.offset-1 { - margin-left: 8.333333%; -} - -.offset-2 { - margin-left: 16.666667%; -} - -.offset-3 { - margin-left: 25%; -} - -.offset-4 { - margin-left: 33.333333%; -} - -.offset-5 { - margin-left: 41.666667%; -} - -.offset-6 { - margin-left: 50%; -} - -.offset-7 { - margin-left: 58.333333%; -} - -.offset-8 { - margin-left: 66.666667%; -} - -.offset-9 { - margin-left: 75%; -} - -.offset-10 { - margin-left: 83.333333%; -} - -.offset-11 { - margin-left: 91.666667%; -} - -@media (min-width: 576px) { - .col-sm { - -ms-flex-preferred-size: 0; - flex-basis: 0; - -ms-flex-positive: 1; - flex-grow: 1; - max-width: 100%; - } - .row-cols-sm-1 > * { - -ms-flex: 0 0 100%; - flex: 0 0 100%; - max-width: 100%; - } - .row-cols-sm-2 > * { - -ms-flex: 0 0 50%; - flex: 0 0 50%; - max-width: 50%; - } - .row-cols-sm-3 > * { - -ms-flex: 0 0 33.333333%; - flex: 0 0 33.333333%; - max-width: 33.333333%; - } - .row-cols-sm-4 > * { - -ms-flex: 0 0 25%; - flex: 0 0 25%; - max-width: 25%; - } - .row-cols-sm-5 > * { - -ms-flex: 0 0 20%; - flex: 0 0 20%; - max-width: 20%; - } - .row-cols-sm-6 > * { - -ms-flex: 0 0 16.666667%; - flex: 0 0 16.666667%; - max-width: 16.666667%; - } - .col-sm-auto { - -ms-flex: 0 0 auto; - flex: 0 0 auto; - width: auto; - max-width: 100%; - } - .col-sm-1 { - -ms-flex: 0 0 8.333333%; - flex: 0 0 8.333333%; - max-width: 8.333333%; - } - .col-sm-2 { - -ms-flex: 0 0 16.666667%; - flex: 0 0 16.666667%; - max-width: 16.666667%; - } - .col-sm-3 { - -ms-flex: 0 0 25%; - flex: 0 0 25%; - max-width: 25%; - } - .col-sm-4 { - -ms-flex: 0 0 33.333333%; - flex: 0 0 33.333333%; - max-width: 33.333333%; - } - .col-sm-5 { - -ms-flex: 0 0 41.666667%; - flex: 0 0 41.666667%; - max-width: 41.666667%; - } - .col-sm-6 { - -ms-flex: 0 0 50%; - flex: 0 0 50%; - max-width: 50%; - } - .col-sm-7 { - -ms-flex: 0 0 58.333333%; - flex: 0 0 58.333333%; - max-width: 58.333333%; - } - .col-sm-8 { - -ms-flex: 0 0 66.666667%; - flex: 0 0 66.666667%; - max-width: 66.666667%; - } - .col-sm-9 { - -ms-flex: 0 0 75%; - flex: 0 0 75%; - max-width: 75%; - } - .col-sm-10 { - -ms-flex: 0 0 83.333333%; - flex: 0 0 83.333333%; - max-width: 83.333333%; - } - .col-sm-11 { - -ms-flex: 0 0 91.666667%; - flex: 0 0 91.666667%; - max-width: 91.666667%; - } - .col-sm-12 { - -ms-flex: 0 0 100%; - flex: 0 0 100%; - max-width: 100%; - } - .order-sm-first { - -ms-flex-order: -1; - order: -1; - } - .order-sm-last { - -ms-flex-order: 13; - order: 13; - } - .order-sm-0 { - -ms-flex-order: 0; - order: 0; - } - .order-sm-1 { - -ms-flex-order: 1; - order: 1; - } - .order-sm-2 { - -ms-flex-order: 2; - order: 2; - } - .order-sm-3 { - -ms-flex-order: 3; - order: 3; - } - .order-sm-4 { - -ms-flex-order: 4; - order: 4; - } - .order-sm-5 { - -ms-flex-order: 5; - order: 5; - } - .order-sm-6 { - -ms-flex-order: 6; - order: 6; - } - .order-sm-7 { - -ms-flex-order: 7; - order: 7; - } - .order-sm-8 { - -ms-flex-order: 8; - order: 8; - } - .order-sm-9 { - -ms-flex-order: 9; - order: 9; - } - .order-sm-10 { - -ms-flex-order: 10; - order: 10; - } - .order-sm-11 { - -ms-flex-order: 11; - order: 11; - } - .order-sm-12 { - -ms-flex-order: 12; - order: 12; - } - .offset-sm-0 { - margin-left: 0; - } - .offset-sm-1 { - margin-left: 8.333333%; - } - .offset-sm-2 { - margin-left: 16.666667%; - } - .offset-sm-3 { - margin-left: 25%; - } - .offset-sm-4 { - margin-left: 33.333333%; - } - .offset-sm-5 { - margin-left: 41.666667%; - } - .offset-sm-6 { - margin-left: 50%; - } - .offset-sm-7 { - margin-left: 58.333333%; - } - .offset-sm-8 { - margin-left: 66.666667%; - } - .offset-sm-9 { - margin-left: 75%; - } - .offset-sm-10 { - margin-left: 83.333333%; - } - .offset-sm-11 { - margin-left: 91.666667%; - } -} - -@media (min-width: 768px) { - .col-md { - -ms-flex-preferred-size: 0; - flex-basis: 0; - -ms-flex-positive: 1; - flex-grow: 1; - max-width: 100%; - } - .row-cols-md-1 > * { - -ms-flex: 0 0 100%; - flex: 0 0 100%; - max-width: 100%; - } - .row-cols-md-2 > * { - -ms-flex: 0 0 50%; - flex: 0 0 50%; - max-width: 50%; - } - .row-cols-md-3 > * { - -ms-flex: 0 0 33.333333%; - flex: 0 0 33.333333%; - max-width: 33.333333%; - } - .row-cols-md-4 > * { - -ms-flex: 0 0 25%; - flex: 0 0 25%; - max-width: 25%; - } - .row-cols-md-5 > * { - -ms-flex: 0 0 20%; - flex: 0 0 20%; - max-width: 20%; - } - .row-cols-md-6 > * { - -ms-flex: 0 0 16.666667%; - flex: 0 0 16.666667%; - max-width: 16.666667%; - } - .col-md-auto { - -ms-flex: 0 0 auto; - flex: 0 0 auto; - width: auto; - max-width: 100%; - } - .col-md-1 { - -ms-flex: 0 0 8.333333%; - flex: 0 0 8.333333%; - max-width: 8.333333%; - } - .col-md-2 { - -ms-flex: 0 0 16.666667%; - flex: 0 0 16.666667%; - max-width: 16.666667%; - } - .col-md-3 { - -ms-flex: 0 0 25%; - flex: 0 0 25%; - max-width: 25%; - } - .col-md-4 { - -ms-flex: 0 0 33.333333%; - flex: 0 0 33.333333%; - max-width: 33.333333%; - } - .col-md-5 { - -ms-flex: 0 0 41.666667%; - flex: 0 0 41.666667%; - max-width: 41.666667%; - } - .col-md-6 { - -ms-flex: 0 0 50%; - flex: 0 0 50%; - max-width: 50%; - } - .col-md-7 { - -ms-flex: 0 0 58.333333%; - flex: 0 0 58.333333%; - max-width: 58.333333%; - } - .col-md-8 { - -ms-flex: 0 0 66.666667%; - flex: 0 0 66.666667%; - max-width: 66.666667%; - } - .col-md-9 { - -ms-flex: 0 0 75%; - flex: 0 0 75%; - max-width: 75%; - } - .col-md-10 { - -ms-flex: 0 0 83.333333%; - flex: 0 0 83.333333%; - max-width: 83.333333%; - } - .col-md-11 { - -ms-flex: 0 0 91.666667%; - flex: 0 0 91.666667%; - max-width: 91.666667%; - } - .col-md-12 { - -ms-flex: 0 0 100%; - flex: 0 0 100%; - max-width: 100%; - } - .order-md-first { - -ms-flex-order: -1; - order: -1; - } - .order-md-last { - -ms-flex-order: 13; - order: 13; - } - .order-md-0 { - -ms-flex-order: 0; - order: 0; - } - .order-md-1 { - -ms-flex-order: 1; - order: 1; - } - .order-md-2 { - -ms-flex-order: 2; - order: 2; - } - .order-md-3 { - -ms-flex-order: 3; - order: 3; - } - .order-md-4 { - -ms-flex-order: 4; - order: 4; - } - .order-md-5 { - -ms-flex-order: 5; - order: 5; - } - .order-md-6 { - -ms-flex-order: 6; - order: 6; - } - .order-md-7 { - -ms-flex-order: 7; - order: 7; - } - .order-md-8 { - -ms-flex-order: 8; - order: 8; - } - .order-md-9 { - -ms-flex-order: 9; - order: 9; - } - .order-md-10 { - -ms-flex-order: 10; - order: 10; - } - .order-md-11 { - -ms-flex-order: 11; - order: 11; - } - .order-md-12 { - -ms-flex-order: 12; - order: 12; - } - .offset-md-0 { - margin-left: 0; - } - .offset-md-1 { - margin-left: 8.333333%; - } - .offset-md-2 { - margin-left: 16.666667%; - } - .offset-md-3 { - margin-left: 25%; - } - .offset-md-4 { - margin-left: 33.333333%; - } - .offset-md-5 { - margin-left: 41.666667%; - } - .offset-md-6 { - margin-left: 50%; - } - .offset-md-7 { - margin-left: 58.333333%; - } - .offset-md-8 { - margin-left: 66.666667%; - } - .offset-md-9 { - margin-left: 75%; - } - .offset-md-10 { - margin-left: 83.333333%; - } - .offset-md-11 { - margin-left: 91.666667%; - } -} - -@media (min-width: 992px) { - .col-lg { - -ms-flex-preferred-size: 0; - flex-basis: 0; - -ms-flex-positive: 1; - flex-grow: 1; - max-width: 100%; - } - .row-cols-lg-1 > * { - -ms-flex: 0 0 100%; - flex: 0 0 100%; - max-width: 100%; - } - .row-cols-lg-2 > * { - -ms-flex: 0 0 50%; - flex: 0 0 50%; - max-width: 50%; - } - .row-cols-lg-3 > * { - -ms-flex: 0 0 33.333333%; - flex: 0 0 33.333333%; - max-width: 33.333333%; - } - .row-cols-lg-4 > * { - -ms-flex: 0 0 25%; - flex: 0 0 25%; - max-width: 25%; - } - .row-cols-lg-5 > * { - -ms-flex: 0 0 20%; - flex: 0 0 20%; - max-width: 20%; - } - .row-cols-lg-6 > * { - -ms-flex: 0 0 16.666667%; - flex: 0 0 16.666667%; - max-width: 16.666667%; - } - .col-lg-auto { - -ms-flex: 0 0 auto; - flex: 0 0 auto; - width: auto; - max-width: 100%; - } - .col-lg-1 { - -ms-flex: 0 0 8.333333%; - flex: 0 0 8.333333%; - max-width: 8.333333%; - } - .col-lg-2 { - -ms-flex: 0 0 16.666667%; - flex: 0 0 16.666667%; - max-width: 16.666667%; - } - .col-lg-3 { - -ms-flex: 0 0 25%; - flex: 0 0 25%; - max-width: 25%; - } - .col-lg-4 { - -ms-flex: 0 0 33.333333%; - flex: 0 0 33.333333%; - max-width: 33.333333%; - } - .col-lg-5 { - -ms-flex: 0 0 41.666667%; - flex: 0 0 41.666667%; - max-width: 41.666667%; - } - .col-lg-6 { - -ms-flex: 0 0 50%; - flex: 0 0 50%; - max-width: 50%; - } - .col-lg-7 { - -ms-flex: 0 0 58.333333%; - flex: 0 0 58.333333%; - max-width: 58.333333%; - } - .col-lg-8 { - -ms-flex: 0 0 66.666667%; - flex: 0 0 66.666667%; - max-width: 66.666667%; - } - .col-lg-9 { - -ms-flex: 0 0 75%; - flex: 0 0 75%; - max-width: 75%; - } - .col-lg-10 { - -ms-flex: 0 0 83.333333%; - flex: 0 0 83.333333%; - max-width: 83.333333%; - } - .col-lg-11 { - -ms-flex: 0 0 91.666667%; - flex: 0 0 91.666667%; - max-width: 91.666667%; - } - .col-lg-12 { - -ms-flex: 0 0 100%; - flex: 0 0 100%; - max-width: 100%; - } - .order-lg-first { - -ms-flex-order: -1; - order: -1; - } - .order-lg-last { - -ms-flex-order: 13; - order: 13; - } - .order-lg-0 { - -ms-flex-order: 0; - order: 0; - } - .order-lg-1 { - -ms-flex-order: 1; - order: 1; - } - .order-lg-2 { - -ms-flex-order: 2; - order: 2; - } - .order-lg-3 { - -ms-flex-order: 3; - order: 3; - } - .order-lg-4 { - -ms-flex-order: 4; - order: 4; - } - .order-lg-5 { - -ms-flex-order: 5; - order: 5; - } - .order-lg-6 { - -ms-flex-order: 6; - order: 6; - } - .order-lg-7 { - -ms-flex-order: 7; - order: 7; - } - .order-lg-8 { - -ms-flex-order: 8; - order: 8; - } - .order-lg-9 { - -ms-flex-order: 9; - order: 9; - } - .order-lg-10 { - -ms-flex-order: 10; - order: 10; - } - .order-lg-11 { - -ms-flex-order: 11; - order: 11; - } - .order-lg-12 { - -ms-flex-order: 12; - order: 12; - } - .offset-lg-0 { - margin-left: 0; - } - .offset-lg-1 { - margin-left: 8.333333%; - } - .offset-lg-2 { - margin-left: 16.666667%; - } - .offset-lg-3 { - margin-left: 25%; - } - .offset-lg-4 { - margin-left: 33.333333%; - } - .offset-lg-5 { - margin-left: 41.666667%; - } - .offset-lg-6 { - margin-left: 50%; - } - .offset-lg-7 { - margin-left: 58.333333%; - } - .offset-lg-8 { - margin-left: 66.666667%; - } - .offset-lg-9 { - margin-left: 75%; - } - .offset-lg-10 { - margin-left: 83.333333%; - } - .offset-lg-11 { - margin-left: 91.666667%; - } -} - -@media (min-width: 1200px) { - .col-xl { - -ms-flex-preferred-size: 0; - flex-basis: 0; - -ms-flex-positive: 1; - flex-grow: 1; - max-width: 100%; - } - .row-cols-xl-1 > * { - -ms-flex: 0 0 100%; - flex: 0 0 100%; - max-width: 100%; - } - .row-cols-xl-2 > * { - -ms-flex: 0 0 50%; - flex: 0 0 50%; - max-width: 50%; - } - .row-cols-xl-3 > * { - -ms-flex: 0 0 33.333333%; - flex: 0 0 33.333333%; - max-width: 33.333333%; - } - .row-cols-xl-4 > * { - -ms-flex: 0 0 25%; - flex: 0 0 25%; - max-width: 25%; - } - .row-cols-xl-5 > * { - -ms-flex: 0 0 20%; - flex: 0 0 20%; - max-width: 20%; - } - .row-cols-xl-6 > * { - -ms-flex: 0 0 16.666667%; - flex: 0 0 16.666667%; - max-width: 16.666667%; - } - .col-xl-auto { - -ms-flex: 0 0 auto; - flex: 0 0 auto; - width: auto; - max-width: 100%; - } - .col-xl-1 { - -ms-flex: 0 0 8.333333%; - flex: 0 0 8.333333%; - max-width: 8.333333%; - } - .col-xl-2 { - -ms-flex: 0 0 16.666667%; - flex: 0 0 16.666667%; - max-width: 16.666667%; - } - .col-xl-3 { - -ms-flex: 0 0 25%; - flex: 0 0 25%; - max-width: 25%; - } - .col-xl-4 { - -ms-flex: 0 0 33.333333%; - flex: 0 0 33.333333%; - max-width: 33.333333%; - } - .col-xl-5 { - -ms-flex: 0 0 41.666667%; - flex: 0 0 41.666667%; - max-width: 41.666667%; - } - .col-xl-6 { - -ms-flex: 0 0 50%; - flex: 0 0 50%; - max-width: 50%; - } - .col-xl-7 { - -ms-flex: 0 0 58.333333%; - flex: 0 0 58.333333%; - max-width: 58.333333%; - } - .col-xl-8 { - -ms-flex: 0 0 66.666667%; - flex: 0 0 66.666667%; - max-width: 66.666667%; - } - .col-xl-9 { - -ms-flex: 0 0 75%; - flex: 0 0 75%; - max-width: 75%; - } - .col-xl-10 { - -ms-flex: 0 0 83.333333%; - flex: 0 0 83.333333%; - max-width: 83.333333%; - } - .col-xl-11 { - -ms-flex: 0 0 91.666667%; - flex: 0 0 91.666667%; - max-width: 91.666667%; - } - .col-xl-12 { - -ms-flex: 0 0 100%; - flex: 0 0 100%; - max-width: 100%; - } - .order-xl-first { - -ms-flex-order: -1; - order: -1; - } - .order-xl-last { - -ms-flex-order: 13; - order: 13; - } - .order-xl-0 { - -ms-flex-order: 0; - order: 0; - } - .order-xl-1 { - -ms-flex-order: 1; - order: 1; - } - .order-xl-2 { - -ms-flex-order: 2; - order: 2; - } - .order-xl-3 { - -ms-flex-order: 3; - order: 3; - } - .order-xl-4 { - -ms-flex-order: 4; - order: 4; - } - .order-xl-5 { - -ms-flex-order: 5; - order: 5; - } - .order-xl-6 { - -ms-flex-order: 6; - order: 6; - } - .order-xl-7 { - -ms-flex-order: 7; - order: 7; - } - .order-xl-8 { - -ms-flex-order: 8; - order: 8; - } - .order-xl-9 { - -ms-flex-order: 9; - order: 9; - } - .order-xl-10 { - -ms-flex-order: 10; - order: 10; - } - .order-xl-11 { - -ms-flex-order: 11; - order: 11; - } - .order-xl-12 { - -ms-flex-order: 12; - order: 12; - } - .offset-xl-0 { - margin-left: 0; - } - .offset-xl-1 { - margin-left: 8.333333%; - } - .offset-xl-2 { - margin-left: 16.666667%; - } - .offset-xl-3 { - margin-left: 25%; - } - .offset-xl-4 { - margin-left: 33.333333%; - } - .offset-xl-5 { - margin-left: 41.666667%; - } - .offset-xl-6 { - margin-left: 50%; - } - .offset-xl-7 { - margin-left: 58.333333%; - } - .offset-xl-8 { - margin-left: 66.666667%; - } - .offset-xl-9 { - margin-left: 75%; - } - .offset-xl-10 { - margin-left: 83.333333%; - } - .offset-xl-11 { - margin-left: 91.666667%; - } -} - -.d-none { - display: none !important; -} - -.d-inline { - display: inline !important; -} - -.d-inline-block { - display: inline-block !important; -} - -.d-block { - display: block !important; -} - -.d-table { - display: table !important; -} - -.d-table-row { - display: table-row !important; -} - -.d-table-cell { - display: table-cell !important; -} - -.d-flex { - display: -ms-flexbox !important; - display: flex !important; -} - -.d-inline-flex { - display: -ms-inline-flexbox !important; - display: inline-flex !important; -} - -@media (min-width: 576px) { - .d-sm-none { - display: none !important; - } - .d-sm-inline { - display: inline !important; - } - .d-sm-inline-block { - display: inline-block !important; - } - .d-sm-block { - display: block !important; - } - .d-sm-table { - display: table !important; - } - .d-sm-table-row { - display: table-row !important; - } - .d-sm-table-cell { - display: table-cell !important; - } - .d-sm-flex { - display: -ms-flexbox !important; - display: flex !important; - } - .d-sm-inline-flex { - display: -ms-inline-flexbox !important; - display: inline-flex !important; - } -} - -@media (min-width: 768px) { - .d-md-none { - display: none !important; - } - .d-md-inline { - display: inline !important; - } - .d-md-inline-block { - display: inline-block !important; - } - .d-md-block { - display: block !important; - } - .d-md-table { - display: table !important; - } - .d-md-table-row { - display: table-row !important; - } - .d-md-table-cell { - display: table-cell !important; - } - .d-md-flex { - display: -ms-flexbox !important; - display: flex !important; - } - .d-md-inline-flex { - display: -ms-inline-flexbox !important; - display: inline-flex !important; - } -} - -@media (min-width: 992px) { - .d-lg-none { - display: none !important; - } - .d-lg-inline { - display: inline !important; - } - .d-lg-inline-block { - display: inline-block !important; - } - .d-lg-block { - display: block !important; - } - .d-lg-table { - display: table !important; - } - .d-lg-table-row { - display: table-row !important; - } - .d-lg-table-cell { - display: table-cell !important; - } - .d-lg-flex { - display: -ms-flexbox !important; - display: flex !important; - } - .d-lg-inline-flex { - display: -ms-inline-flexbox !important; - display: inline-flex !important; - } -} - -@media (min-width: 1200px) { - .d-xl-none { - display: none !important; - } - .d-xl-inline { - display: inline !important; - } - .d-xl-inline-block { - display: inline-block !important; - } - .d-xl-block { - display: block !important; - } - .d-xl-table { - display: table !important; - } - .d-xl-table-row { - display: table-row !important; - } - .d-xl-table-cell { - display: table-cell !important; - } - .d-xl-flex { - display: -ms-flexbox !important; - display: flex !important; - } - .d-xl-inline-flex { - display: -ms-inline-flexbox !important; - display: inline-flex !important; - } -} - -@media print { - .d-print-none { - display: none !important; - } - .d-print-inline { - display: inline !important; - } - .d-print-inline-block { - display: inline-block !important; - } - .d-print-block { - display: block !important; - } - .d-print-table { - display: table !important; - } - .d-print-table-row { - display: table-row !important; - } - .d-print-table-cell { - display: table-cell !important; - } - .d-print-flex { - display: -ms-flexbox !important; - display: flex !important; - } - .d-print-inline-flex { - display: -ms-inline-flexbox !important; - display: inline-flex !important; - } -} - -.flex-row { - -ms-flex-direction: row !important; - flex-direction: row !important; -} - -.flex-column { - -ms-flex-direction: column !important; - flex-direction: column !important; -} - -.flex-row-reverse { - -ms-flex-direction: row-reverse !important; - flex-direction: row-reverse !important; -} - -.flex-column-reverse { - -ms-flex-direction: column-reverse !important; - flex-direction: column-reverse !important; -} - -.flex-wrap { - -ms-flex-wrap: wrap !important; - flex-wrap: wrap !important; -} - -.flex-nowrap { - -ms-flex-wrap: nowrap !important; - flex-wrap: nowrap !important; -} - -.flex-wrap-reverse { - -ms-flex-wrap: wrap-reverse !important; - flex-wrap: wrap-reverse !important; -} - -.flex-fill { - -ms-flex: 1 1 auto !important; - flex: 1 1 auto !important; -} - -.flex-grow-0 { - -ms-flex-positive: 0 !important; - flex-grow: 0 !important; -} - -.flex-grow-1 { - -ms-flex-positive: 1 !important; - flex-grow: 1 !important; -} - -.flex-shrink-0 { - -ms-flex-negative: 0 !important; - flex-shrink: 0 !important; -} - -.flex-shrink-1 { - -ms-flex-negative: 1 !important; - flex-shrink: 1 !important; -} - -.justify-content-start { - -ms-flex-pack: start !important; - justify-content: flex-start !important; -} - -.justify-content-end { - -ms-flex-pack: end !important; - justify-content: flex-end !important; -} - -.justify-content-center { - -ms-flex-pack: center !important; - justify-content: center !important; -} - -.justify-content-between { - -ms-flex-pack: justify !important; - justify-content: space-between !important; -} - -.justify-content-around { - -ms-flex-pack: distribute !important; - justify-content: space-around !important; -} - -.align-items-start { - -ms-flex-align: start !important; - align-items: flex-start !important; -} - -.align-items-end { - -ms-flex-align: end !important; - align-items: flex-end !important; -} - -.align-items-center { - -ms-flex-align: center !important; - align-items: center !important; -} - -.align-items-baseline { - -ms-flex-align: baseline !important; - align-items: baseline !important; -} - -.align-items-stretch { - -ms-flex-align: stretch !important; - align-items: stretch !important; -} - -.align-content-start { - -ms-flex-line-pack: start !important; - align-content: flex-start !important; -} - -.align-content-end { - -ms-flex-line-pack: end !important; - align-content: flex-end !important; -} - -.align-content-center { - -ms-flex-line-pack: center !important; - align-content: center !important; -} - -.align-content-between { - -ms-flex-line-pack: justify !important; - align-content: space-between !important; -} - -.align-content-around { - -ms-flex-line-pack: distribute !important; - align-content: space-around !important; -} - -.align-content-stretch { - -ms-flex-line-pack: stretch !important; - align-content: stretch !important; -} - -.align-self-auto { - -ms-flex-item-align: auto !important; - align-self: auto !important; -} - -.align-self-start { - -ms-flex-item-align: start !important; - align-self: flex-start !important; -} - -.align-self-end { - -ms-flex-item-align: end !important; - align-self: flex-end !important; -} - -.align-self-center { - -ms-flex-item-align: center !important; - align-self: center !important; -} - -.align-self-baseline { - -ms-flex-item-align: baseline !important; - align-self: baseline !important; -} - -.align-self-stretch { - -ms-flex-item-align: stretch !important; - align-self: stretch !important; -} - -@media (min-width: 576px) { - .flex-sm-row { - -ms-flex-direction: row !important; - flex-direction: row !important; - } - .flex-sm-column { - -ms-flex-direction: column !important; - flex-direction: column !important; - } - .flex-sm-row-reverse { - -ms-flex-direction: row-reverse !important; - flex-direction: row-reverse !important; - } - .flex-sm-column-reverse { - -ms-flex-direction: column-reverse !important; - flex-direction: column-reverse !important; - } - .flex-sm-wrap { - -ms-flex-wrap: wrap !important; - flex-wrap: wrap !important; - } - .flex-sm-nowrap { - -ms-flex-wrap: nowrap !important; - flex-wrap: nowrap !important; - } - .flex-sm-wrap-reverse { - -ms-flex-wrap: wrap-reverse !important; - flex-wrap: wrap-reverse !important; - } - .flex-sm-fill { - -ms-flex: 1 1 auto !important; - flex: 1 1 auto !important; - } - .flex-sm-grow-0 { - -ms-flex-positive: 0 !important; - flex-grow: 0 !important; - } - .flex-sm-grow-1 { - -ms-flex-positive: 1 !important; - flex-grow: 1 !important; - } - .flex-sm-shrink-0 { - -ms-flex-negative: 0 !important; - flex-shrink: 0 !important; - } - .flex-sm-shrink-1 { - -ms-flex-negative: 1 !important; - flex-shrink: 1 !important; - } - .justify-content-sm-start { - -ms-flex-pack: start !important; - justify-content: flex-start !important; - } - .justify-content-sm-end { - -ms-flex-pack: end !important; - justify-content: flex-end !important; - } - .justify-content-sm-center { - -ms-flex-pack: center !important; - justify-content: center !important; - } - .justify-content-sm-between { - -ms-flex-pack: justify !important; - justify-content: space-between !important; - } - .justify-content-sm-around { - -ms-flex-pack: distribute !important; - justify-content: space-around !important; - } - .align-items-sm-start { - -ms-flex-align: start !important; - align-items: flex-start !important; - } - .align-items-sm-end { - -ms-flex-align: end !important; - align-items: flex-end !important; - } - .align-items-sm-center { - -ms-flex-align: center !important; - align-items: center !important; - } - .align-items-sm-baseline { - -ms-flex-align: baseline !important; - align-items: baseline !important; - } - .align-items-sm-stretch { - -ms-flex-align: stretch !important; - align-items: stretch !important; - } - .align-content-sm-start { - -ms-flex-line-pack: start !important; - align-content: flex-start !important; - } - .align-content-sm-end { - -ms-flex-line-pack: end !important; - align-content: flex-end !important; - } - .align-content-sm-center { - -ms-flex-line-pack: center !important; - align-content: center !important; - } - .align-content-sm-between { - -ms-flex-line-pack: justify !important; - align-content: space-between !important; - } - .align-content-sm-around { - -ms-flex-line-pack: distribute !important; - align-content: space-around !important; - } - .align-content-sm-stretch { - -ms-flex-line-pack: stretch !important; - align-content: stretch !important; - } - .align-self-sm-auto { - -ms-flex-item-align: auto !important; - align-self: auto !important; - } - .align-self-sm-start { - -ms-flex-item-align: start !important; - align-self: flex-start !important; - } - .align-self-sm-end { - -ms-flex-item-align: end !important; - align-self: flex-end !important; - } - .align-self-sm-center { - -ms-flex-item-align: center !important; - align-self: center !important; - } - .align-self-sm-baseline { - -ms-flex-item-align: baseline !important; - align-self: baseline !important; - } - .align-self-sm-stretch { - -ms-flex-item-align: stretch !important; - align-self: stretch !important; - } -} - -@media (min-width: 768px) { - .flex-md-row { - -ms-flex-direction: row !important; - flex-direction: row !important; - } - .flex-md-column { - -ms-flex-direction: column !important; - flex-direction: column !important; - } - .flex-md-row-reverse { - -ms-flex-direction: row-reverse !important; - flex-direction: row-reverse !important; - } - .flex-md-column-reverse { - -ms-flex-direction: column-reverse !important; - flex-direction: column-reverse !important; - } - .flex-md-wrap { - -ms-flex-wrap: wrap !important; - flex-wrap: wrap !important; - } - .flex-md-nowrap { - -ms-flex-wrap: nowrap !important; - flex-wrap: nowrap !important; - } - .flex-md-wrap-reverse { - -ms-flex-wrap: wrap-reverse !important; - flex-wrap: wrap-reverse !important; - } - .flex-md-fill { - -ms-flex: 1 1 auto !important; - flex: 1 1 auto !important; - } - .flex-md-grow-0 { - -ms-flex-positive: 0 !important; - flex-grow: 0 !important; - } - .flex-md-grow-1 { - -ms-flex-positive: 1 !important; - flex-grow: 1 !important; - } - .flex-md-shrink-0 { - -ms-flex-negative: 0 !important; - flex-shrink: 0 !important; - } - .flex-md-shrink-1 { - -ms-flex-negative: 1 !important; - flex-shrink: 1 !important; - } - .justify-content-md-start { - -ms-flex-pack: start !important; - justify-content: flex-start !important; - } - .justify-content-md-end { - -ms-flex-pack: end !important; - justify-content: flex-end !important; - } - .justify-content-md-center { - -ms-flex-pack: center !important; - justify-content: center !important; - } - .justify-content-md-between { - -ms-flex-pack: justify !important; - justify-content: space-between !important; - } - .justify-content-md-around { - -ms-flex-pack: distribute !important; - justify-content: space-around !important; - } - .align-items-md-start { - -ms-flex-align: start !important; - align-items: flex-start !important; - } - .align-items-md-end { - -ms-flex-align: end !important; - align-items: flex-end !important; - } - .align-items-md-center { - -ms-flex-align: center !important; - align-items: center !important; - } - .align-items-md-baseline { - -ms-flex-align: baseline !important; - align-items: baseline !important; - } - .align-items-md-stretch { - -ms-flex-align: stretch !important; - align-items: stretch !important; - } - .align-content-md-start { - -ms-flex-line-pack: start !important; - align-content: flex-start !important; - } - .align-content-md-end { - -ms-flex-line-pack: end !important; - align-content: flex-end !important; - } - .align-content-md-center { - -ms-flex-line-pack: center !important; - align-content: center !important; - } - .align-content-md-between { - -ms-flex-line-pack: justify !important; - align-content: space-between !important; - } - .align-content-md-around { - -ms-flex-line-pack: distribute !important; - align-content: space-around !important; - } - .align-content-md-stretch { - -ms-flex-line-pack: stretch !important; - align-content: stretch !important; - } - .align-self-md-auto { - -ms-flex-item-align: auto !important; - align-self: auto !important; - } - .align-self-md-start { - -ms-flex-item-align: start !important; - align-self: flex-start !important; - } - .align-self-md-end { - -ms-flex-item-align: end !important; - align-self: flex-end !important; - } - .align-self-md-center { - -ms-flex-item-align: center !important; - align-self: center !important; - } - .align-self-md-baseline { - -ms-flex-item-align: baseline !important; - align-self: baseline !important; - } - .align-self-md-stretch { - -ms-flex-item-align: stretch !important; - align-self: stretch !important; - } -} - -@media (min-width: 992px) { - .flex-lg-row { - -ms-flex-direction: row !important; - flex-direction: row !important; - } - .flex-lg-column { - -ms-flex-direction: column !important; - flex-direction: column !important; - } - .flex-lg-row-reverse { - -ms-flex-direction: row-reverse !important; - flex-direction: row-reverse !important; - } - .flex-lg-column-reverse { - -ms-flex-direction: column-reverse !important; - flex-direction: column-reverse !important; - } - .flex-lg-wrap { - -ms-flex-wrap: wrap !important; - flex-wrap: wrap !important; - } - .flex-lg-nowrap { - -ms-flex-wrap: nowrap !important; - flex-wrap: nowrap !important; - } - .flex-lg-wrap-reverse { - -ms-flex-wrap: wrap-reverse !important; - flex-wrap: wrap-reverse !important; - } - .flex-lg-fill { - -ms-flex: 1 1 auto !important; - flex: 1 1 auto !important; - } - .flex-lg-grow-0 { - -ms-flex-positive: 0 !important; - flex-grow: 0 !important; - } - .flex-lg-grow-1 { - -ms-flex-positive: 1 !important; - flex-grow: 1 !important; - } - .flex-lg-shrink-0 { - -ms-flex-negative: 0 !important; - flex-shrink: 0 !important; - } - .flex-lg-shrink-1 { - -ms-flex-negative: 1 !important; - flex-shrink: 1 !important; - } - .justify-content-lg-start { - -ms-flex-pack: start !important; - justify-content: flex-start !important; - } - .justify-content-lg-end { - -ms-flex-pack: end !important; - justify-content: flex-end !important; - } - .justify-content-lg-center { - -ms-flex-pack: center !important; - justify-content: center !important; - } - .justify-content-lg-between { - -ms-flex-pack: justify !important; - justify-content: space-between !important; - } - .justify-content-lg-around { - -ms-flex-pack: distribute !important; - justify-content: space-around !important; - } - .align-items-lg-start { - -ms-flex-align: start !important; - align-items: flex-start !important; - } - .align-items-lg-end { - -ms-flex-align: end !important; - align-items: flex-end !important; - } - .align-items-lg-center { - -ms-flex-align: center !important; - align-items: center !important; - } - .align-items-lg-baseline { - -ms-flex-align: baseline !important; - align-items: baseline !important; - } - .align-items-lg-stretch { - -ms-flex-align: stretch !important; - align-items: stretch !important; - } - .align-content-lg-start { - -ms-flex-line-pack: start !important; - align-content: flex-start !important; - } - .align-content-lg-end { - -ms-flex-line-pack: end !important; - align-content: flex-end !important; - } - .align-content-lg-center { - -ms-flex-line-pack: center !important; - align-content: center !important; - } - .align-content-lg-between { - -ms-flex-line-pack: justify !important; - align-content: space-between !important; - } - .align-content-lg-around { - -ms-flex-line-pack: distribute !important; - align-content: space-around !important; - } - .align-content-lg-stretch { - -ms-flex-line-pack: stretch !important; - align-content: stretch !important; - } - .align-self-lg-auto { - -ms-flex-item-align: auto !important; - align-self: auto !important; - } - .align-self-lg-start { - -ms-flex-item-align: start !important; - align-self: flex-start !important; - } - .align-self-lg-end { - -ms-flex-item-align: end !important; - align-self: flex-end !important; - } - .align-self-lg-center { - -ms-flex-item-align: center !important; - align-self: center !important; - } - .align-self-lg-baseline { - -ms-flex-item-align: baseline !important; - align-self: baseline !important; - } - .align-self-lg-stretch { - -ms-flex-item-align: stretch !important; - align-self: stretch !important; - } -} - -@media (min-width: 1200px) { - .flex-xl-row { - -ms-flex-direction: row !important; - flex-direction: row !important; - } - .flex-xl-column { - -ms-flex-direction: column !important; - flex-direction: column !important; - } - .flex-xl-row-reverse { - -ms-flex-direction: row-reverse !important; - flex-direction: row-reverse !important; - } - .flex-xl-column-reverse { - -ms-flex-direction: column-reverse !important; - flex-direction: column-reverse !important; - } - .flex-xl-wrap { - -ms-flex-wrap: wrap !important; - flex-wrap: wrap !important; - } - .flex-xl-nowrap { - -ms-flex-wrap: nowrap !important; - flex-wrap: nowrap !important; - } - .flex-xl-wrap-reverse { - -ms-flex-wrap: wrap-reverse !important; - flex-wrap: wrap-reverse !important; - } - .flex-xl-fill { - -ms-flex: 1 1 auto !important; - flex: 1 1 auto !important; - } - .flex-xl-grow-0 { - -ms-flex-positive: 0 !important; - flex-grow: 0 !important; - } - .flex-xl-grow-1 { - -ms-flex-positive: 1 !important; - flex-grow: 1 !important; - } - .flex-xl-shrink-0 { - -ms-flex-negative: 0 !important; - flex-shrink: 0 !important; - } - .flex-xl-shrink-1 { - -ms-flex-negative: 1 !important; - flex-shrink: 1 !important; - } - .justify-content-xl-start { - -ms-flex-pack: start !important; - justify-content: flex-start !important; - } - .justify-content-xl-end { - -ms-flex-pack: end !important; - justify-content: flex-end !important; - } - .justify-content-xl-center { - -ms-flex-pack: center !important; - justify-content: center !important; - } - .justify-content-xl-between { - -ms-flex-pack: justify !important; - justify-content: space-between !important; - } - .justify-content-xl-around { - -ms-flex-pack: distribute !important; - justify-content: space-around !important; - } - .align-items-xl-start { - -ms-flex-align: start !important; - align-items: flex-start !important; - } - .align-items-xl-end { - -ms-flex-align: end !important; - align-items: flex-end !important; - } - .align-items-xl-center { - -ms-flex-align: center !important; - align-items: center !important; - } - .align-items-xl-baseline { - -ms-flex-align: baseline !important; - align-items: baseline !important; - } - .align-items-xl-stretch { - -ms-flex-align: stretch !important; - align-items: stretch !important; - } - .align-content-xl-start { - -ms-flex-line-pack: start !important; - align-content: flex-start !important; - } - .align-content-xl-end { - -ms-flex-line-pack: end !important; - align-content: flex-end !important; - } - .align-content-xl-center { - -ms-flex-line-pack: center !important; - align-content: center !important; - } - .align-content-xl-between { - -ms-flex-line-pack: justify !important; - align-content: space-between !important; - } - .align-content-xl-around { - -ms-flex-line-pack: distribute !important; - align-content: space-around !important; - } - .align-content-xl-stretch { - -ms-flex-line-pack: stretch !important; - align-content: stretch !important; - } - .align-self-xl-auto { - -ms-flex-item-align: auto !important; - align-self: auto !important; - } - .align-self-xl-start { - -ms-flex-item-align: start !important; - align-self: flex-start !important; - } - .align-self-xl-end { - -ms-flex-item-align: end !important; - align-self: flex-end !important; - } - .align-self-xl-center { - -ms-flex-item-align: center !important; - align-self: center !important; - } - .align-self-xl-baseline { - -ms-flex-item-align: baseline !important; - align-self: baseline !important; - } - .align-self-xl-stretch { - -ms-flex-item-align: stretch !important; - align-self: stretch !important; - } -} - -.m-0 { - margin: 0 !important; -} - -.mt-0, -.my-0 { - margin-top: 0 !important; -} - -.mr-0, -.mx-0 { - margin-right: 0 !important; -} - -.mb-0, -.my-0 { - margin-bottom: 0 !important; -} - -.ml-0, -.mx-0 { - margin-left: 0 !important; -} - -.m-1 { - margin: 0.25rem !important; -} - -.mt-1, -.my-1 { - margin-top: 0.25rem !important; -} - -.mr-1, -.mx-1 { - margin-right: 0.25rem !important; -} - -.mb-1, -.my-1 { - margin-bottom: 0.25rem !important; -} - -.ml-1, -.mx-1 { - margin-left: 0.25rem !important; -} - -.m-2 { - margin: 0.5rem !important; -} - -.mt-2, -.my-2 { - margin-top: 0.5rem !important; -} - -.mr-2, -.mx-2 { - margin-right: 0.5rem !important; -} - -.mb-2, -.my-2 { - margin-bottom: 0.5rem !important; -} - -.ml-2, -.mx-2 { - margin-left: 0.5rem !important; -} - -.m-3 { - margin: 1rem !important; -} - -.mt-3, -.my-3 { - margin-top: 1rem !important; -} - -.mr-3, -.mx-3 { - margin-right: 1rem !important; -} - -.mb-3, -.my-3 { - margin-bottom: 1rem !important; -} - -.ml-3, -.mx-3 { - margin-left: 1rem !important; -} - -.m-4 { - margin: 1.5rem !important; -} - -.mt-4, -.my-4 { - margin-top: 1.5rem !important; -} - -.mr-4, -.mx-4 { - margin-right: 1.5rem !important; -} - -.mb-4, -.my-4 { - margin-bottom: 1.5rem !important; -} - -.ml-4, -.mx-4 { - margin-left: 1.5rem !important; -} - -.m-5 { - margin: 3rem !important; -} - -.mt-5, -.my-5 { - margin-top: 3rem !important; -} - -.mr-5, -.mx-5 { - margin-right: 3rem !important; -} - -.mb-5, -.my-5 { - margin-bottom: 3rem !important; -} - -.ml-5, -.mx-5 { - margin-left: 3rem !important; -} - -.p-0 { - padding: 0 !important; -} - -.pt-0, -.py-0 { - padding-top: 0 !important; -} - -.pr-0, -.px-0 { - padding-right: 0 !important; -} - -.pb-0, -.py-0 { - padding-bottom: 0 !important; -} - -.pl-0, -.px-0 { - padding-left: 0 !important; -} - -.p-1 { - padding: 0.25rem !important; -} - -.pt-1, -.py-1 { - padding-top: 0.25rem !important; -} - -.pr-1, -.px-1 { - padding-right: 0.25rem !important; -} - -.pb-1, -.py-1 { - padding-bottom: 0.25rem !important; -} - -.pl-1, -.px-1 { - padding-left: 0.25rem !important; -} - -.p-2 { - padding: 0.5rem !important; -} - -.pt-2, -.py-2 { - padding-top: 0.5rem !important; -} - -.pr-2, -.px-2 { - padding-right: 0.5rem !important; -} - -.pb-2, -.py-2 { - padding-bottom: 0.5rem !important; -} - -.pl-2, -.px-2 { - padding-left: 0.5rem !important; -} - -.p-3 { - padding: 1rem !important; -} - -.pt-3, -.py-3 { - padding-top: 1rem !important; -} - -.pr-3, -.px-3 { - padding-right: 1rem !important; -} - -.pb-3, -.py-3 { - padding-bottom: 1rem !important; -} - -.pl-3, -.px-3 { - padding-left: 1rem !important; -} - -.p-4 { - padding: 1.5rem !important; -} - -.pt-4, -.py-4 { - padding-top: 1.5rem !important; -} - -.pr-4, -.px-4 { - padding-right: 1.5rem !important; -} - -.pb-4, -.py-4 { - padding-bottom: 1.5rem !important; -} - -.pl-4, -.px-4 { - padding-left: 1.5rem !important; -} - -.p-5 { - padding: 3rem !important; -} - -.pt-5, -.py-5 { - padding-top: 3rem !important; -} - -.pr-5, -.px-5 { - padding-right: 3rem !important; -} - -.pb-5, -.py-5 { - padding-bottom: 3rem !important; -} - -.pl-5, -.px-5 { - padding-left: 3rem !important; -} - -.m-n1 { - margin: -0.25rem !important; -} - -.mt-n1, -.my-n1 { - margin-top: -0.25rem !important; -} - -.mr-n1, -.mx-n1 { - margin-right: -0.25rem !important; -} - -.mb-n1, -.my-n1 { - margin-bottom: -0.25rem !important; -} - -.ml-n1, -.mx-n1 { - margin-left: -0.25rem !important; -} - -.m-n2 { - margin: -0.5rem !important; -} - -.mt-n2, -.my-n2 { - margin-top: -0.5rem !important; -} - -.mr-n2, -.mx-n2 { - margin-right: -0.5rem !important; -} - -.mb-n2, -.my-n2 { - margin-bottom: -0.5rem !important; -} - -.ml-n2, -.mx-n2 { - margin-left: -0.5rem !important; -} - -.m-n3 { - margin: -1rem !important; -} - -.mt-n3, -.my-n3 { - margin-top: -1rem !important; -} - -.mr-n3, -.mx-n3 { - margin-right: -1rem !important; -} - -.mb-n3, -.my-n3 { - margin-bottom: -1rem !important; -} - -.ml-n3, -.mx-n3 { - margin-left: -1rem !important; -} - -.m-n4 { - margin: -1.5rem !important; -} - -.mt-n4, -.my-n4 { - margin-top: -1.5rem !important; -} - -.mr-n4, -.mx-n4 { - margin-right: -1.5rem !important; -} - -.mb-n4, -.my-n4 { - margin-bottom: -1.5rem !important; -} - -.ml-n4, -.mx-n4 { - margin-left: -1.5rem !important; -} - -.m-n5 { - margin: -3rem !important; -} - -.mt-n5, -.my-n5 { - margin-top: -3rem !important; -} - -.mr-n5, -.mx-n5 { - margin-right: -3rem !important; -} - -.mb-n5, -.my-n5 { - margin-bottom: -3rem !important; -} - -.ml-n5, -.mx-n5 { - margin-left: -3rem !important; -} - -.m-auto { - margin: auto !important; -} - -.mt-auto, -.my-auto { - margin-top: auto !important; -} - -.mr-auto, -.mx-auto { - margin-right: auto !important; -} - -.mb-auto, -.my-auto { - margin-bottom: auto !important; -} - -.ml-auto, -.mx-auto { - margin-left: auto !important; -} - -@media (min-width: 576px) { - .m-sm-0 { - margin: 0 !important; - } - .mt-sm-0, - .my-sm-0 { - margin-top: 0 !important; - } - .mr-sm-0, - .mx-sm-0 { - margin-right: 0 !important; - } - .mb-sm-0, - .my-sm-0 { - margin-bottom: 0 !important; - } - .ml-sm-0, - .mx-sm-0 { - margin-left: 0 !important; - } - .m-sm-1 { - margin: 0.25rem !important; - } - .mt-sm-1, - .my-sm-1 { - margin-top: 0.25rem !important; - } - .mr-sm-1, - .mx-sm-1 { - margin-right: 0.25rem !important; - } - .mb-sm-1, - .my-sm-1 { - margin-bottom: 0.25rem !important; - } - .ml-sm-1, - .mx-sm-1 { - margin-left: 0.25rem !important; - } - .m-sm-2 { - margin: 0.5rem !important; - } - .mt-sm-2, - .my-sm-2 { - margin-top: 0.5rem !important; - } - .mr-sm-2, - .mx-sm-2 { - margin-right: 0.5rem !important; - } - .mb-sm-2, - .my-sm-2 { - margin-bottom: 0.5rem !important; - } - .ml-sm-2, - .mx-sm-2 { - margin-left: 0.5rem !important; - } - .m-sm-3 { - margin: 1rem !important; - } - .mt-sm-3, - .my-sm-3 { - margin-top: 1rem !important; - } - .mr-sm-3, - .mx-sm-3 { - margin-right: 1rem !important; - } - .mb-sm-3, - .my-sm-3 { - margin-bottom: 1rem !important; - } - .ml-sm-3, - .mx-sm-3 { - margin-left: 1rem !important; - } - .m-sm-4 { - margin: 1.5rem !important; - } - .mt-sm-4, - .my-sm-4 { - margin-top: 1.5rem !important; - } - .mr-sm-4, - .mx-sm-4 { - margin-right: 1.5rem !important; - } - .mb-sm-4, - .my-sm-4 { - margin-bottom: 1.5rem !important; - } - .ml-sm-4, - .mx-sm-4 { - margin-left: 1.5rem !important; - } - .m-sm-5 { - margin: 3rem !important; - } - .mt-sm-5, - .my-sm-5 { - margin-top: 3rem !important; - } - .mr-sm-5, - .mx-sm-5 { - margin-right: 3rem !important; - } - .mb-sm-5, - .my-sm-5 { - margin-bottom: 3rem !important; - } - .ml-sm-5, - .mx-sm-5 { - margin-left: 3rem !important; - } - .p-sm-0 { - padding: 0 !important; - } - .pt-sm-0, - .py-sm-0 { - padding-top: 0 !important; - } - .pr-sm-0, - .px-sm-0 { - padding-right: 0 !important; - } - .pb-sm-0, - .py-sm-0 { - padding-bottom: 0 !important; - } - .pl-sm-0, - .px-sm-0 { - padding-left: 0 !important; - } - .p-sm-1 { - padding: 0.25rem !important; - } - .pt-sm-1, - .py-sm-1 { - padding-top: 0.25rem !important; - } - .pr-sm-1, - .px-sm-1 { - padding-right: 0.25rem !important; - } - .pb-sm-1, - .py-sm-1 { - padding-bottom: 0.25rem !important; - } - .pl-sm-1, - .px-sm-1 { - padding-left: 0.25rem !important; - } - .p-sm-2 { - padding: 0.5rem !important; - } - .pt-sm-2, - .py-sm-2 { - padding-top: 0.5rem !important; - } - .pr-sm-2, - .px-sm-2 { - padding-right: 0.5rem !important; - } - .pb-sm-2, - .py-sm-2 { - padding-bottom: 0.5rem !important; - } - .pl-sm-2, - .px-sm-2 { - padding-left: 0.5rem !important; - } - .p-sm-3 { - padding: 1rem !important; - } - .pt-sm-3, - .py-sm-3 { - padding-top: 1rem !important; - } - .pr-sm-3, - .px-sm-3 { - padding-right: 1rem !important; - } - .pb-sm-3, - .py-sm-3 { - padding-bottom: 1rem !important; - } - .pl-sm-3, - .px-sm-3 { - padding-left: 1rem !important; - } - .p-sm-4 { - padding: 1.5rem !important; - } - .pt-sm-4, - .py-sm-4 { - padding-top: 1.5rem !important; - } - .pr-sm-4, - .px-sm-4 { - padding-right: 1.5rem !important; - } - .pb-sm-4, - .py-sm-4 { - padding-bottom: 1.5rem !important; - } - .pl-sm-4, - .px-sm-4 { - padding-left: 1.5rem !important; - } - .p-sm-5 { - padding: 3rem !important; - } - .pt-sm-5, - .py-sm-5 { - padding-top: 3rem !important; - } - .pr-sm-5, - .px-sm-5 { - padding-right: 3rem !important; - } - .pb-sm-5, - .py-sm-5 { - padding-bottom: 3rem !important; - } - .pl-sm-5, - .px-sm-5 { - padding-left: 3rem !important; - } - .m-sm-n1 { - margin: -0.25rem !important; - } - .mt-sm-n1, - .my-sm-n1 { - margin-top: -0.25rem !important; - } - .mr-sm-n1, - .mx-sm-n1 { - margin-right: -0.25rem !important; - } - .mb-sm-n1, - .my-sm-n1 { - margin-bottom: -0.25rem !important; - } - .ml-sm-n1, - .mx-sm-n1 { - margin-left: -0.25rem !important; - } - .m-sm-n2 { - margin: -0.5rem !important; - } - .mt-sm-n2, - .my-sm-n2 { - margin-top: -0.5rem !important; - } - .mr-sm-n2, - .mx-sm-n2 { - margin-right: -0.5rem !important; - } - .mb-sm-n2, - .my-sm-n2 { - margin-bottom: -0.5rem !important; - } - .ml-sm-n2, - .mx-sm-n2 { - margin-left: -0.5rem !important; - } - .m-sm-n3 { - margin: -1rem !important; - } - .mt-sm-n3, - .my-sm-n3 { - margin-top: -1rem !important; - } - .mr-sm-n3, - .mx-sm-n3 { - margin-right: -1rem !important; - } - .mb-sm-n3, - .my-sm-n3 { - margin-bottom: -1rem !important; - } - .ml-sm-n3, - .mx-sm-n3 { - margin-left: -1rem !important; - } - .m-sm-n4 { - margin: -1.5rem !important; - } - .mt-sm-n4, - .my-sm-n4 { - margin-top: -1.5rem !important; - } - .mr-sm-n4, - .mx-sm-n4 { - margin-right: -1.5rem !important; - } - .mb-sm-n4, - .my-sm-n4 { - margin-bottom: -1.5rem !important; - } - .ml-sm-n4, - .mx-sm-n4 { - margin-left: -1.5rem !important; - } - .m-sm-n5 { - margin: -3rem !important; - } - .mt-sm-n5, - .my-sm-n5 { - margin-top: -3rem !important; - } - .mr-sm-n5, - .mx-sm-n5 { - margin-right: -3rem !important; - } - .mb-sm-n5, - .my-sm-n5 { - margin-bottom: -3rem !important; - } - .ml-sm-n5, - .mx-sm-n5 { - margin-left: -3rem !important; - } - .m-sm-auto { - margin: auto !important; - } - .mt-sm-auto, - .my-sm-auto { - margin-top: auto !important; - } - .mr-sm-auto, - .mx-sm-auto { - margin-right: auto !important; - } - .mb-sm-auto, - .my-sm-auto { - margin-bottom: auto !important; - } - .ml-sm-auto, - .mx-sm-auto { - margin-left: auto !important; - } -} - -@media (min-width: 768px) { - .m-md-0 { - margin: 0 !important; - } - .mt-md-0, - .my-md-0 { - margin-top: 0 !important; - } - .mr-md-0, - .mx-md-0 { - margin-right: 0 !important; - } - .mb-md-0, - .my-md-0 { - margin-bottom: 0 !important; - } - .ml-md-0, - .mx-md-0 { - margin-left: 0 !important; - } - .m-md-1 { - margin: 0.25rem !important; - } - .mt-md-1, - .my-md-1 { - margin-top: 0.25rem !important; - } - .mr-md-1, - .mx-md-1 { - margin-right: 0.25rem !important; - } - .mb-md-1, - .my-md-1 { - margin-bottom: 0.25rem !important; - } - .ml-md-1, - .mx-md-1 { - margin-left: 0.25rem !important; - } - .m-md-2 { - margin: 0.5rem !important; - } - .mt-md-2, - .my-md-2 { - margin-top: 0.5rem !important; - } - .mr-md-2, - .mx-md-2 { - margin-right: 0.5rem !important; - } - .mb-md-2, - .my-md-2 { - margin-bottom: 0.5rem !important; - } - .ml-md-2, - .mx-md-2 { - margin-left: 0.5rem !important; - } - .m-md-3 { - margin: 1rem !important; - } - .mt-md-3, - .my-md-3 { - margin-top: 1rem !important; - } - .mr-md-3, - .mx-md-3 { - margin-right: 1rem !important; - } - .mb-md-3, - .my-md-3 { - margin-bottom: 1rem !important; - } - .ml-md-3, - .mx-md-3 { - margin-left: 1rem !important; - } - .m-md-4 { - margin: 1.5rem !important; - } - .mt-md-4, - .my-md-4 { - margin-top: 1.5rem !important; - } - .mr-md-4, - .mx-md-4 { - margin-right: 1.5rem !important; - } - .mb-md-4, - .my-md-4 { - margin-bottom: 1.5rem !important; - } - .ml-md-4, - .mx-md-4 { - margin-left: 1.5rem !important; - } - .m-md-5 { - margin: 3rem !important; - } - .mt-md-5, - .my-md-5 { - margin-top: 3rem !important; - } - .mr-md-5, - .mx-md-5 { - margin-right: 3rem !important; - } - .mb-md-5, - .my-md-5 { - margin-bottom: 3rem !important; - } - .ml-md-5, - .mx-md-5 { - margin-left: 3rem !important; - } - .p-md-0 { - padding: 0 !important; - } - .pt-md-0, - .py-md-0 { - padding-top: 0 !important; - } - .pr-md-0, - .px-md-0 { - padding-right: 0 !important; - } - .pb-md-0, - .py-md-0 { - padding-bottom: 0 !important; - } - .pl-md-0, - .px-md-0 { - padding-left: 0 !important; - } - .p-md-1 { - padding: 0.25rem !important; - } - .pt-md-1, - .py-md-1 { - padding-top: 0.25rem !important; - } - .pr-md-1, - .px-md-1 { - padding-right: 0.25rem !important; - } - .pb-md-1, - .py-md-1 { - padding-bottom: 0.25rem !important; - } - .pl-md-1, - .px-md-1 { - padding-left: 0.25rem !important; - } - .p-md-2 { - padding: 0.5rem !important; - } - .pt-md-2, - .py-md-2 { - padding-top: 0.5rem !important; - } - .pr-md-2, - .px-md-2 { - padding-right: 0.5rem !important; - } - .pb-md-2, - .py-md-2 { - padding-bottom: 0.5rem !important; - } - .pl-md-2, - .px-md-2 { - padding-left: 0.5rem !important; - } - .p-md-3 { - padding: 1rem !important; - } - .pt-md-3, - .py-md-3 { - padding-top: 1rem !important; - } - .pr-md-3, - .px-md-3 { - padding-right: 1rem !important; - } - .pb-md-3, - .py-md-3 { - padding-bottom: 1rem !important; - } - .pl-md-3, - .px-md-3 { - padding-left: 1rem !important; - } - .p-md-4 { - padding: 1.5rem !important; - } - .pt-md-4, - .py-md-4 { - padding-top: 1.5rem !important; - } - .pr-md-4, - .px-md-4 { - padding-right: 1.5rem !important; - } - .pb-md-4, - .py-md-4 { - padding-bottom: 1.5rem !important; - } - .pl-md-4, - .px-md-4 { - padding-left: 1.5rem !important; - } - .p-md-5 { - padding: 3rem !important; - } - .pt-md-5, - .py-md-5 { - padding-top: 3rem !important; - } - .pr-md-5, - .px-md-5 { - padding-right: 3rem !important; - } - .pb-md-5, - .py-md-5 { - padding-bottom: 3rem !important; - } - .pl-md-5, - .px-md-5 { - padding-left: 3rem !important; - } - .m-md-n1 { - margin: -0.25rem !important; - } - .mt-md-n1, - .my-md-n1 { - margin-top: -0.25rem !important; - } - .mr-md-n1, - .mx-md-n1 { - margin-right: -0.25rem !important; - } - .mb-md-n1, - .my-md-n1 { - margin-bottom: -0.25rem !important; - } - .ml-md-n1, - .mx-md-n1 { - margin-left: -0.25rem !important; - } - .m-md-n2 { - margin: -0.5rem !important; - } - .mt-md-n2, - .my-md-n2 { - margin-top: -0.5rem !important; - } - .mr-md-n2, - .mx-md-n2 { - margin-right: -0.5rem !important; - } - .mb-md-n2, - .my-md-n2 { - margin-bottom: -0.5rem !important; - } - .ml-md-n2, - .mx-md-n2 { - margin-left: -0.5rem !important; - } - .m-md-n3 { - margin: -1rem !important; - } - .mt-md-n3, - .my-md-n3 { - margin-top: -1rem !important; - } - .mr-md-n3, - .mx-md-n3 { - margin-right: -1rem !important; - } - .mb-md-n3, - .my-md-n3 { - margin-bottom: -1rem !important; - } - .ml-md-n3, - .mx-md-n3 { - margin-left: -1rem !important; - } - .m-md-n4 { - margin: -1.5rem !important; - } - .mt-md-n4, - .my-md-n4 { - margin-top: -1.5rem !important; - } - .mr-md-n4, - .mx-md-n4 { - margin-right: -1.5rem !important; - } - .mb-md-n4, - .my-md-n4 { - margin-bottom: -1.5rem !important; - } - .ml-md-n4, - .mx-md-n4 { - margin-left: -1.5rem !important; - } - .m-md-n5 { - margin: -3rem !important; - } - .mt-md-n5, - .my-md-n5 { - margin-top: -3rem !important; - } - .mr-md-n5, - .mx-md-n5 { - margin-right: -3rem !important; - } - .mb-md-n5, - .my-md-n5 { - margin-bottom: -3rem !important; - } - .ml-md-n5, - .mx-md-n5 { - margin-left: -3rem !important; - } - .m-md-auto { - margin: auto !important; - } - .mt-md-auto, - .my-md-auto { - margin-top: auto !important; - } - .mr-md-auto, - .mx-md-auto { - margin-right: auto !important; - } - .mb-md-auto, - .my-md-auto { - margin-bottom: auto !important; - } - .ml-md-auto, - .mx-md-auto { - margin-left: auto !important; - } -} - -@media (min-width: 992px) { - .m-lg-0 { - margin: 0 !important; - } - .mt-lg-0, - .my-lg-0 { - margin-top: 0 !important; - } - .mr-lg-0, - .mx-lg-0 { - margin-right: 0 !important; - } - .mb-lg-0, - .my-lg-0 { - margin-bottom: 0 !important; - } - .ml-lg-0, - .mx-lg-0 { - margin-left: 0 !important; - } - .m-lg-1 { - margin: 0.25rem !important; - } - .mt-lg-1, - .my-lg-1 { - margin-top: 0.25rem !important; - } - .mr-lg-1, - .mx-lg-1 { - margin-right: 0.25rem !important; - } - .mb-lg-1, - .my-lg-1 { - margin-bottom: 0.25rem !important; - } - .ml-lg-1, - .mx-lg-1 { - margin-left: 0.25rem !important; - } - .m-lg-2 { - margin: 0.5rem !important; - } - .mt-lg-2, - .my-lg-2 { - margin-top: 0.5rem !important; - } - .mr-lg-2, - .mx-lg-2 { - margin-right: 0.5rem !important; - } - .mb-lg-2, - .my-lg-2 { - margin-bottom: 0.5rem !important; - } - .ml-lg-2, - .mx-lg-2 { - margin-left: 0.5rem !important; - } - .m-lg-3 { - margin: 1rem !important; - } - .mt-lg-3, - .my-lg-3 { - margin-top: 1rem !important; - } - .mr-lg-3, - .mx-lg-3 { - margin-right: 1rem !important; - } - .mb-lg-3, - .my-lg-3 { - margin-bottom: 1rem !important; - } - .ml-lg-3, - .mx-lg-3 { - margin-left: 1rem !important; - } - .m-lg-4 { - margin: 1.5rem !important; - } - .mt-lg-4, - .my-lg-4 { - margin-top: 1.5rem !important; - } - .mr-lg-4, - .mx-lg-4 { - margin-right: 1.5rem !important; - } - .mb-lg-4, - .my-lg-4 { - margin-bottom: 1.5rem !important; - } - .ml-lg-4, - .mx-lg-4 { - margin-left: 1.5rem !important; - } - .m-lg-5 { - margin: 3rem !important; - } - .mt-lg-5, - .my-lg-5 { - margin-top: 3rem !important; - } - .mr-lg-5, - .mx-lg-5 { - margin-right: 3rem !important; - } - .mb-lg-5, - .my-lg-5 { - margin-bottom: 3rem !important; - } - .ml-lg-5, - .mx-lg-5 { - margin-left: 3rem !important; - } - .p-lg-0 { - padding: 0 !important; - } - .pt-lg-0, - .py-lg-0 { - padding-top: 0 !important; - } - .pr-lg-0, - .px-lg-0 { - padding-right: 0 !important; - } - .pb-lg-0, - .py-lg-0 { - padding-bottom: 0 !important; - } - .pl-lg-0, - .px-lg-0 { - padding-left: 0 !important; - } - .p-lg-1 { - padding: 0.25rem !important; - } - .pt-lg-1, - .py-lg-1 { - padding-top: 0.25rem !important; - } - .pr-lg-1, - .px-lg-1 { - padding-right: 0.25rem !important; - } - .pb-lg-1, - .py-lg-1 { - padding-bottom: 0.25rem !important; - } - .pl-lg-1, - .px-lg-1 { - padding-left: 0.25rem !important; - } - .p-lg-2 { - padding: 0.5rem !important; - } - .pt-lg-2, - .py-lg-2 { - padding-top: 0.5rem !important; - } - .pr-lg-2, - .px-lg-2 { - padding-right: 0.5rem !important; - } - .pb-lg-2, - .py-lg-2 { - padding-bottom: 0.5rem !important; - } - .pl-lg-2, - .px-lg-2 { - padding-left: 0.5rem !important; - } - .p-lg-3 { - padding: 1rem !important; - } - .pt-lg-3, - .py-lg-3 { - padding-top: 1rem !important; - } - .pr-lg-3, - .px-lg-3 { - padding-right: 1rem !important; - } - .pb-lg-3, - .py-lg-3 { - padding-bottom: 1rem !important; - } - .pl-lg-3, - .px-lg-3 { - padding-left: 1rem !important; - } - .p-lg-4 { - padding: 1.5rem !important; - } - .pt-lg-4, - .py-lg-4 { - padding-top: 1.5rem !important; - } - .pr-lg-4, - .px-lg-4 { - padding-right: 1.5rem !important; - } - .pb-lg-4, - .py-lg-4 { - padding-bottom: 1.5rem !important; - } - .pl-lg-4, - .px-lg-4 { - padding-left: 1.5rem !important; - } - .p-lg-5 { - padding: 3rem !important; - } - .pt-lg-5, - .py-lg-5 { - padding-top: 3rem !important; - } - .pr-lg-5, - .px-lg-5 { - padding-right: 3rem !important; - } - .pb-lg-5, - .py-lg-5 { - padding-bottom: 3rem !important; - } - .pl-lg-5, - .px-lg-5 { - padding-left: 3rem !important; - } - .m-lg-n1 { - margin: -0.25rem !important; - } - .mt-lg-n1, - .my-lg-n1 { - margin-top: -0.25rem !important; - } - .mr-lg-n1, - .mx-lg-n1 { - margin-right: -0.25rem !important; - } - .mb-lg-n1, - .my-lg-n1 { - margin-bottom: -0.25rem !important; - } - .ml-lg-n1, - .mx-lg-n1 { - margin-left: -0.25rem !important; - } - .m-lg-n2 { - margin: -0.5rem !important; - } - .mt-lg-n2, - .my-lg-n2 { - margin-top: -0.5rem !important; - } - .mr-lg-n2, - .mx-lg-n2 { - margin-right: -0.5rem !important; - } - .mb-lg-n2, - .my-lg-n2 { - margin-bottom: -0.5rem !important; - } - .ml-lg-n2, - .mx-lg-n2 { - margin-left: -0.5rem !important; - } - .m-lg-n3 { - margin: -1rem !important; - } - .mt-lg-n3, - .my-lg-n3 { - margin-top: -1rem !important; - } - .mr-lg-n3, - .mx-lg-n3 { - margin-right: -1rem !important; - } - .mb-lg-n3, - .my-lg-n3 { - margin-bottom: -1rem !important; - } - .ml-lg-n3, - .mx-lg-n3 { - margin-left: -1rem !important; - } - .m-lg-n4 { - margin: -1.5rem !important; - } - .mt-lg-n4, - .my-lg-n4 { - margin-top: -1.5rem !important; - } - .mr-lg-n4, - .mx-lg-n4 { - margin-right: -1.5rem !important; - } - .mb-lg-n4, - .my-lg-n4 { - margin-bottom: -1.5rem !important; - } - .ml-lg-n4, - .mx-lg-n4 { - margin-left: -1.5rem !important; - } - .m-lg-n5 { - margin: -3rem !important; - } - .mt-lg-n5, - .my-lg-n5 { - margin-top: -3rem !important; - } - .mr-lg-n5, - .mx-lg-n5 { - margin-right: -3rem !important; - } - .mb-lg-n5, - .my-lg-n5 { - margin-bottom: -3rem !important; - } - .ml-lg-n5, - .mx-lg-n5 { - margin-left: -3rem !important; - } - .m-lg-auto { - margin: auto !important; - } - .mt-lg-auto, - .my-lg-auto { - margin-top: auto !important; - } - .mr-lg-auto, - .mx-lg-auto { - margin-right: auto !important; - } - .mb-lg-auto, - .my-lg-auto { - margin-bottom: auto !important; - } - .ml-lg-auto, - .mx-lg-auto { - margin-left: auto !important; - } -} - -@media (min-width: 1200px) { - .m-xl-0 { - margin: 0 !important; - } - .mt-xl-0, - .my-xl-0 { - margin-top: 0 !important; - } - .mr-xl-0, - .mx-xl-0 { - margin-right: 0 !important; - } - .mb-xl-0, - .my-xl-0 { - margin-bottom: 0 !important; - } - .ml-xl-0, - .mx-xl-0 { - margin-left: 0 !important; - } - .m-xl-1 { - margin: 0.25rem !important; - } - .mt-xl-1, - .my-xl-1 { - margin-top: 0.25rem !important; - } - .mr-xl-1, - .mx-xl-1 { - margin-right: 0.25rem !important; - } - .mb-xl-1, - .my-xl-1 { - margin-bottom: 0.25rem !important; - } - .ml-xl-1, - .mx-xl-1 { - margin-left: 0.25rem !important; - } - .m-xl-2 { - margin: 0.5rem !important; - } - .mt-xl-2, - .my-xl-2 { - margin-top: 0.5rem !important; - } - .mr-xl-2, - .mx-xl-2 { - margin-right: 0.5rem !important; - } - .mb-xl-2, - .my-xl-2 { - margin-bottom: 0.5rem !important; - } - .ml-xl-2, - .mx-xl-2 { - margin-left: 0.5rem !important; - } - .m-xl-3 { - margin: 1rem !important; - } - .mt-xl-3, - .my-xl-3 { - margin-top: 1rem !important; - } - .mr-xl-3, - .mx-xl-3 { - margin-right: 1rem !important; - } - .mb-xl-3, - .my-xl-3 { - margin-bottom: 1rem !important; - } - .ml-xl-3, - .mx-xl-3 { - margin-left: 1rem !important; - } - .m-xl-4 { - margin: 1.5rem !important; - } - .mt-xl-4, - .my-xl-4 { - margin-top: 1.5rem !important; - } - .mr-xl-4, - .mx-xl-4 { - margin-right: 1.5rem !important; - } - .mb-xl-4, - .my-xl-4 { - margin-bottom: 1.5rem !important; - } - .ml-xl-4, - .mx-xl-4 { - margin-left: 1.5rem !important; - } - .m-xl-5 { - margin: 3rem !important; - } - .mt-xl-5, - .my-xl-5 { - margin-top: 3rem !important; - } - .mr-xl-5, - .mx-xl-5 { - margin-right: 3rem !important; - } - .mb-xl-5, - .my-xl-5 { - margin-bottom: 3rem !important; - } - .ml-xl-5, - .mx-xl-5 { - margin-left: 3rem !important; - } - .p-xl-0 { - padding: 0 !important; - } - .pt-xl-0, - .py-xl-0 { - padding-top: 0 !important; - } - .pr-xl-0, - .px-xl-0 { - padding-right: 0 !important; - } - .pb-xl-0, - .py-xl-0 { - padding-bottom: 0 !important; - } - .pl-xl-0, - .px-xl-0 { - padding-left: 0 !important; - } - .p-xl-1 { - padding: 0.25rem !important; - } - .pt-xl-1, - .py-xl-1 { - padding-top: 0.25rem !important; - } - .pr-xl-1, - .px-xl-1 { - padding-right: 0.25rem !important; - } - .pb-xl-1, - .py-xl-1 { - padding-bottom: 0.25rem !important; - } - .pl-xl-1, - .px-xl-1 { - padding-left: 0.25rem !important; - } - .p-xl-2 { - padding: 0.5rem !important; - } - .pt-xl-2, - .py-xl-2 { - padding-top: 0.5rem !important; - } - .pr-xl-2, - .px-xl-2 { - padding-right: 0.5rem !important; - } - .pb-xl-2, - .py-xl-2 { - padding-bottom: 0.5rem !important; - } - .pl-xl-2, - .px-xl-2 { - padding-left: 0.5rem !important; - } - .p-xl-3 { - padding: 1rem !important; - } - .pt-xl-3, - .py-xl-3 { - padding-top: 1rem !important; - } - .pr-xl-3, - .px-xl-3 { - padding-right: 1rem !important; - } - .pb-xl-3, - .py-xl-3 { - padding-bottom: 1rem !important; - } - .pl-xl-3, - .px-xl-3 { - padding-left: 1rem !important; - } - .p-xl-4 { - padding: 1.5rem !important; - } - .pt-xl-4, - .py-xl-4 { - padding-top: 1.5rem !important; - } - .pr-xl-4, - .px-xl-4 { - padding-right: 1.5rem !important; - } - .pb-xl-4, - .py-xl-4 { - padding-bottom: 1.5rem !important; - } - .pl-xl-4, - .px-xl-4 { - padding-left: 1.5rem !important; - } - .p-xl-5 { - padding: 3rem !important; - } - .pt-xl-5, - .py-xl-5 { - padding-top: 3rem !important; - } - .pr-xl-5, - .px-xl-5 { - padding-right: 3rem !important; - } - .pb-xl-5, - .py-xl-5 { - padding-bottom: 3rem !important; - } - .pl-xl-5, - .px-xl-5 { - padding-left: 3rem !important; - } - .m-xl-n1 { - margin: -0.25rem !important; - } - .mt-xl-n1, - .my-xl-n1 { - margin-top: -0.25rem !important; - } - .mr-xl-n1, - .mx-xl-n1 { - margin-right: -0.25rem !important; - } - .mb-xl-n1, - .my-xl-n1 { - margin-bottom: -0.25rem !important; - } - .ml-xl-n1, - .mx-xl-n1 { - margin-left: -0.25rem !important; - } - .m-xl-n2 { - margin: -0.5rem !important; - } - .mt-xl-n2, - .my-xl-n2 { - margin-top: -0.5rem !important; - } - .mr-xl-n2, - .mx-xl-n2 { - margin-right: -0.5rem !important; - } - .mb-xl-n2, - .my-xl-n2 { - margin-bottom: -0.5rem !important; - } - .ml-xl-n2, - .mx-xl-n2 { - margin-left: -0.5rem !important; - } - .m-xl-n3 { - margin: -1rem !important; - } - .mt-xl-n3, - .my-xl-n3 { - margin-top: -1rem !important; - } - .mr-xl-n3, - .mx-xl-n3 { - margin-right: -1rem !important; - } - .mb-xl-n3, - .my-xl-n3 { - margin-bottom: -1rem !important; - } - .ml-xl-n3, - .mx-xl-n3 { - margin-left: -1rem !important; - } - .m-xl-n4 { - margin: -1.5rem !important; - } - .mt-xl-n4, - .my-xl-n4 { - margin-top: -1.5rem !important; - } - .mr-xl-n4, - .mx-xl-n4 { - margin-right: -1.5rem !important; - } - .mb-xl-n4, - .my-xl-n4 { - margin-bottom: -1.5rem !important; - } - .ml-xl-n4, - .mx-xl-n4 { - margin-left: -1.5rem !important; - } - .m-xl-n5 { - margin: -3rem !important; - } - .mt-xl-n5, - .my-xl-n5 { - margin-top: -3rem !important; - } - .mr-xl-n5, - .mx-xl-n5 { - margin-right: -3rem !important; - } - .mb-xl-n5, - .my-xl-n5 { - margin-bottom: -3rem !important; - } - .ml-xl-n5, - .mx-xl-n5 { - margin-left: -3rem !important; - } - .m-xl-auto { - margin: auto !important; - } - .mt-xl-auto, - .my-xl-auto { - margin-top: auto !important; - } - .mr-xl-auto, - .mx-xl-auto { - margin-right: auto !important; - } - .mb-xl-auto, - .my-xl-auto { - margin-bottom: auto !important; - } - .ml-xl-auto, - .mx-xl-auto { - margin-left: auto !important; - } -} -/*# sourceMappingURL=bootstrap-grid.css.map */ \ No newline at end of file diff --git a/node_modules/bootstrap/dist/css/bootstrap-grid.css.map b/node_modules/bootstrap/dist/css/bootstrap-grid.css.map deleted file mode 100644 index a664f980..00000000 --- a/node_modules/bootstrap/dist/css/bootstrap-grid.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../scss/bootstrap-grid.scss","bootstrap-grid.css","../../scss/_grid.scss","../../scss/mixins/_grid.scss","../../scss/mixins/_breakpoints.scss","../../scss/_variables.scss","../../scss/mixins/_grid-framework.scss","../../scss/utilities/_display.scss","../../scss/utilities/_flex.scss","../../scss/utilities/_spacing.scss"],"names":[],"mappings":"AAAA;;;;;ECKE;ADEF;EACE,sBAAsB;EACtB,6BAA6B;ACA/B;;ADGA;;;EAGE,mBAAm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;IAEE,gCAAiC;ERqzGzC;EQnzGM;;IAEE,iCAAkC;ERqzG1C;EQnzGM;;IAEE,+BAAgC;ERqzGxC;EQp0GM;IAAwB,wBAA2B;ERu0GzD;EQt0GM;;IAEE,4BAA+B;ERw0GvC;EQt0GM;;IAEE,8BAAiC;ERw0GzC;EQt0GM;;IAEE,+BAAkC;ERw0G1C;EQt0GM;;IAEE,6BAAgC;ERw0GxC;EQv1GM;IAAwB,0BAA2B;ER01GzD;EQz1GM;;IAEE,8BAA+B;ER21GvC;EQz1GM;;IAEE,gCAAiC;ER21GzC;EQz1GM;;IAEE,iCAAkC;ER21G1C;EQz1GM;;IAEE,+BAAgC;ER21GxC;EQ12GM;IAAwB,wBAA2B;ER62GzD;EQ52GM;;IAEE,4BAA+B;ER82GvC;EQ52GM;;IAEE,8BAAiC;ER82GzC;EQ52GM;;IAEE,+BAAkC;ER82G1C;EQ52GM;;IAEE,6BAAgC;ER82GxC;EQx2GE;IAAmB,uBAAuB;ER22G5C;EQ12GE;;IAEE,2BAA2B;ER42G/B;EQ12GE;;IAEE,6BAA6B;ER42GjC;EQ12GE;;IAEE,8BAA8B;ER42GlC;EQ12GE;;IAEE,4BAA4B;ER42GhC;AACF","file":"bootstrap-grid.css","sourcesContent":["/*!\n * Bootstrap Grid v4.5.3 (https://getbootstrap.com/)\n * Copyright 2011-2020 The Bootstrap Authors\n * Copyright 2011-2020 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n */\n\nhtml {\n box-sizing: border-box;\n -ms-overflow-style: scrollbar;\n}\n\n*,\n*::before,\n*::after {\n box-sizing: inherit;\n}\n\n@import \"functions\";\n@import \"variables\";\n\n@import \"mixins/breakpoints\";\n@import \"mixins/grid-framework\";\n@import \"mixins/grid\";\n\n@import \"grid\";\n@import \"utilities/display\";\n@import \"utilities/flex\";\n@import \"utilities/spacing\";\n","/*!\n * Bootstrap Grid v4.5.3 (https://getbootstrap.com/)\n * Copyright 2011-2020 The Bootstrap Authors\n * Copyright 2011-2020 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n */\nhtml {\n box-sizing: border-box;\n -ms-overflow-style: scrollbar;\n}\n\n*,\n*::before,\n*::after {\n box-sizing: inherit;\n}\n\n.container,\n.container-fluid,\n.container-sm,\n.container-md,\n.container-lg,\n.container-xl {\n width: 100%;\n padding-right: 15px;\n padding-left: 15px;\n margin-right: auto;\n margin-left: auto;\n}\n\n@media (min-width: 576px) {\n .container, .container-sm {\n max-width: 540px;\n }\n}\n\n@media (min-width: 768px) {\n .container, .container-sm, .container-md {\n max-width: 720px;\n }\n}\n\n@media (min-width: 992px) {\n .container, .container-sm, .container-md, .container-lg {\n max-width: 960px;\n }\n}\n\n@media (min-width: 1200px) {\n .container, .container-sm, .container-md, .container-lg, .container-xl {\n max-width: 1140px;\n }\n}\n\n.row {\n display: flex;\n flex-wrap: wrap;\n margin-right: -15px;\n margin-left: -15px;\n}\n\n.no-gutters {\n margin-right: 0;\n margin-left: 0;\n}\n\n.no-gutters > .col,\n.no-gutters > [class*=\"col-\"] {\n padding-right: 0;\n padding-left: 0;\n}\n\n.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col,\n.col-auto, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm,\n.col-sm-auto, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md,\n.col-md-auto, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg,\n.col-lg-auto, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl,\n.col-xl-auto {\n position: relative;\n width: 100%;\n padding-right: 15px;\n padding-left: 15px;\n}\n\n.col {\n flex-basis: 0;\n flex-grow: 1;\n max-width: 100%;\n}\n\n.row-cols-1 > * {\n flex: 0 0 100%;\n max-width: 100%;\n}\n\n.row-cols-2 > * {\n flex: 0 0 50%;\n max-width: 50%;\n}\n\n.row-cols-3 > * {\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n}\n\n.row-cols-4 > * {\n flex: 0 0 25%;\n max-width: 25%;\n}\n\n.row-cols-5 > * {\n flex: 0 0 20%;\n max-width: 20%;\n}\n\n.row-cols-6 > * {\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n}\n\n.col-auto {\n flex: 0 0 auto;\n width: auto;\n max-width: 100%;\n}\n\n.col-1 {\n flex: 0 0 8.333333%;\n max-width: 8.333333%;\n}\n\n.col-2 {\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n}\n\n.col-3 {\n flex: 0 0 25%;\n max-width: 25%;\n}\n\n.col-4 {\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n}\n\n.col-5 {\n flex: 0 0 41.666667%;\n max-width: 41.666667%;\n}\n\n.col-6 {\n flex: 0 0 50%;\n max-width: 50%;\n}\n\n.col-7 {\n flex: 0 0 58.333333%;\n max-width: 58.333333%;\n}\n\n.col-8 {\n flex: 0 0 66.666667%;\n max-width: 66.666667%;\n}\n\n.col-9 {\n flex: 0 0 75%;\n max-width: 75%;\n}\n\n.col-10 {\n flex: 0 0 83.333333%;\n max-width: 83.333333%;\n}\n\n.col-11 {\n flex: 0 0 91.666667%;\n max-width: 91.666667%;\n}\n\n.col-12 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n\n.order-first {\n order: -1;\n}\n\n.order-last {\n order: 13;\n}\n\n.order-0 {\n order: 0;\n}\n\n.order-1 {\n order: 1;\n}\n\n.order-2 {\n order: 2;\n}\n\n.order-3 {\n order: 3;\n}\n\n.order-4 {\n order: 4;\n}\n\n.order-5 {\n order: 5;\n}\n\n.order-6 {\n order: 6;\n}\n\n.order-7 {\n order: 7;\n}\n\n.order-8 {\n order: 8;\n}\n\n.order-9 {\n order: 9;\n}\n\n.order-10 {\n order: 10;\n}\n\n.order-11 {\n order: 11;\n}\n\n.order-12 {\n order: 12;\n}\n\n.offset-1 {\n margin-left: 8.333333%;\n}\n\n.offset-2 {\n margin-left: 16.666667%;\n}\n\n.offset-3 {\n margin-left: 25%;\n}\n\n.offset-4 {\n margin-left: 33.333333%;\n}\n\n.offset-5 {\n margin-left: 41.666667%;\n}\n\n.offset-6 {\n margin-left: 50%;\n}\n\n.offset-7 {\n margin-left: 58.333333%;\n}\n\n.offset-8 {\n margin-left: 66.666667%;\n}\n\n.offset-9 {\n margin-left: 75%;\n}\n\n.offset-10 {\n margin-left: 83.333333%;\n}\n\n.offset-11 {\n margin-left: 91.666667%;\n}\n\n@media (min-width: 576px) {\n .col-sm {\n flex-basis: 0;\n flex-grow: 1;\n max-width: 100%;\n }\n .row-cols-sm-1 > * {\n flex: 0 0 100%;\n max-width: 100%;\n }\n .row-cols-sm-2 > * {\n flex: 0 0 50%;\n max-width: 50%;\n }\n .row-cols-sm-3 > * {\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n }\n .row-cols-sm-4 > * {\n flex: 0 0 25%;\n max-width: 25%;\n }\n .row-cols-sm-5 > * {\n flex: 0 0 20%;\n max-width: 20%;\n }\n .row-cols-sm-6 > * {\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n }\n .col-sm-auto {\n flex: 0 0 auto;\n width: auto;\n max-width: 100%;\n }\n .col-sm-1 {\n flex: 0 0 8.333333%;\n max-width: 8.333333%;\n }\n .col-sm-2 {\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n }\n .col-sm-3 {\n flex: 0 0 25%;\n max-width: 25%;\n }\n .col-sm-4 {\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n }\n .col-sm-5 {\n flex: 0 0 41.666667%;\n max-width: 41.666667%;\n }\n .col-sm-6 {\n flex: 0 0 50%;\n max-width: 50%;\n }\n .col-sm-7 {\n flex: 0 0 58.333333%;\n max-width: 58.333333%;\n }\n .col-sm-8 {\n flex: 0 0 66.666667%;\n max-width: 66.666667%;\n }\n .col-sm-9 {\n flex: 0 0 75%;\n max-width: 75%;\n }\n .col-sm-10 {\n flex: 0 0 83.333333%;\n max-width: 83.333333%;\n }\n .col-sm-11 {\n flex: 0 0 91.666667%;\n max-width: 91.666667%;\n }\n .col-sm-12 {\n flex: 0 0 100%;\n max-width: 100%;\n }\n .order-sm-first {\n order: -1;\n }\n .order-sm-last {\n order: 13;\n }\n .order-sm-0 {\n order: 0;\n }\n .order-sm-1 {\n order: 1;\n }\n .order-sm-2 {\n order: 2;\n }\n .order-sm-3 {\n order: 3;\n }\n .order-sm-4 {\n order: 4;\n }\n .order-sm-5 {\n order: 5;\n }\n .order-sm-6 {\n order: 6;\n }\n .order-sm-7 {\n order: 7;\n }\n .order-sm-8 {\n order: 8;\n }\n .order-sm-9 {\n order: 9;\n }\n .order-sm-10 {\n order: 10;\n }\n .order-sm-11 {\n order: 11;\n }\n .order-sm-12 {\n order: 12;\n }\n .offset-sm-0 {\n margin-left: 0;\n }\n .offset-sm-1 {\n margin-left: 8.333333%;\n }\n .offset-sm-2 {\n margin-left: 16.666667%;\n }\n .offset-sm-3 {\n margin-left: 25%;\n }\n .offset-sm-4 {\n margin-left: 33.333333%;\n }\n .offset-sm-5 {\n margin-left: 41.666667%;\n }\n .offset-sm-6 {\n margin-left: 50%;\n }\n .offset-sm-7 {\n margin-left: 58.333333%;\n }\n .offset-sm-8 {\n margin-left: 66.666667%;\n }\n .offset-sm-9 {\n margin-left: 75%;\n }\n .offset-sm-10 {\n margin-left: 83.333333%;\n }\n .offset-sm-11 {\n margin-left: 91.666667%;\n }\n}\n\n@media (min-width: 768px) {\n .col-md {\n flex-basis: 0;\n flex-grow: 1;\n max-width: 100%;\n }\n .row-cols-md-1 > * {\n flex: 0 0 100%;\n max-width: 100%;\n }\n .row-cols-md-2 > * {\n flex: 0 0 50%;\n max-width: 50%;\n }\n .row-cols-md-3 > * {\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n }\n .row-cols-md-4 > * {\n flex: 0 0 25%;\n max-width: 25%;\n }\n .row-cols-md-5 > * {\n flex: 0 0 20%;\n max-width: 20%;\n }\n .row-cols-md-6 > * {\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n }\n .col-md-auto {\n flex: 0 0 auto;\n width: auto;\n max-width: 100%;\n }\n .col-md-1 {\n flex: 0 0 8.333333%;\n max-width: 8.333333%;\n }\n .col-md-2 {\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n }\n .col-md-3 {\n flex: 0 0 25%;\n max-width: 25%;\n }\n .col-md-4 {\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n }\n .col-md-5 {\n flex: 0 0 41.666667%;\n max-width: 41.666667%;\n }\n .col-md-6 {\n flex: 0 0 50%;\n max-width: 50%;\n }\n .col-md-7 {\n flex: 0 0 58.333333%;\n max-width: 58.333333%;\n }\n .col-md-8 {\n flex: 0 0 66.666667%;\n max-width: 66.666667%;\n }\n .col-md-9 {\n flex: 0 0 75%;\n max-width: 75%;\n }\n .col-md-10 {\n flex: 0 0 83.333333%;\n max-width: 83.333333%;\n }\n .col-md-11 {\n flex: 0 0 91.666667%;\n max-width: 91.666667%;\n }\n .col-md-12 {\n flex: 0 0 100%;\n max-width: 100%;\n }\n .order-md-first {\n order: -1;\n }\n .order-md-last {\n order: 13;\n }\n .order-md-0 {\n order: 0;\n }\n .order-md-1 {\n order: 1;\n }\n .order-md-2 {\n order: 2;\n }\n .order-md-3 {\n order: 3;\n }\n .order-md-4 {\n order: 4;\n }\n .order-md-5 {\n order: 5;\n }\n .order-md-6 {\n order: 6;\n }\n .order-md-7 {\n order: 7;\n }\n .order-md-8 {\n order: 8;\n }\n .order-md-9 {\n order: 9;\n }\n .order-md-10 {\n order: 10;\n }\n .order-md-11 {\n order: 11;\n }\n .order-md-12 {\n order: 12;\n }\n .offset-md-0 {\n margin-left: 0;\n }\n .offset-md-1 {\n margin-left: 8.333333%;\n }\n .offset-md-2 {\n margin-left: 16.666667%;\n }\n .offset-md-3 {\n margin-left: 25%;\n }\n .offset-md-4 {\n margin-left: 33.333333%;\n }\n .offset-md-5 {\n margin-left: 41.666667%;\n }\n .offset-md-6 {\n margin-left: 50%;\n }\n .offset-md-7 {\n margin-left: 58.333333%;\n }\n .offset-md-8 {\n margin-left: 66.666667%;\n }\n .offset-md-9 {\n margin-left: 75%;\n }\n .offset-md-10 {\n margin-left: 83.333333%;\n }\n .offset-md-11 {\n margin-left: 91.666667%;\n }\n}\n\n@media (min-width: 992px) {\n .col-lg {\n flex-basis: 0;\n flex-grow: 1;\n max-width: 100%;\n }\n .row-cols-lg-1 > * {\n flex: 0 0 100%;\n max-width: 100%;\n }\n .row-cols-lg-2 > * {\n flex: 0 0 50%;\n max-width: 50%;\n }\n .row-cols-lg-3 > * {\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n }\n .row-cols-lg-4 > * {\n flex: 0 0 25%;\n max-width: 25%;\n }\n .row-cols-lg-5 > * {\n flex: 0 0 20%;\n max-width: 20%;\n }\n .row-cols-lg-6 > * {\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n }\n .col-lg-auto {\n flex: 0 0 auto;\n width: auto;\n max-width: 100%;\n }\n .col-lg-1 {\n flex: 0 0 8.333333%;\n max-width: 8.333333%;\n }\n .col-lg-2 {\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n }\n .col-lg-3 {\n flex: 0 0 25%;\n max-width: 25%;\n }\n .col-lg-4 {\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n }\n .col-lg-5 {\n flex: 0 0 41.666667%;\n max-width: 41.666667%;\n }\n .col-lg-6 {\n flex: 0 0 50%;\n max-width: 50%;\n }\n .col-lg-7 {\n flex: 0 0 58.333333%;\n max-width: 58.333333%;\n }\n .col-lg-8 {\n flex: 0 0 66.666667%;\n max-width: 66.666667%;\n }\n .col-lg-9 {\n flex: 0 0 75%;\n max-width: 75%;\n }\n .col-lg-10 {\n flex: 0 0 83.333333%;\n max-width: 83.333333%;\n }\n .col-lg-11 {\n flex: 0 0 91.666667%;\n max-width: 91.666667%;\n }\n .col-lg-12 {\n flex: 0 0 100%;\n max-width: 100%;\n }\n .order-lg-first {\n order: -1;\n }\n .order-lg-last {\n order: 13;\n }\n .order-lg-0 {\n order: 0;\n }\n .order-lg-1 {\n order: 1;\n }\n .order-lg-2 {\n order: 2;\n }\n .order-lg-3 {\n order: 3;\n }\n .order-lg-4 {\n order: 4;\n }\n .order-lg-5 {\n order: 5;\n }\n .order-lg-6 {\n order: 6;\n }\n .order-lg-7 {\n order: 7;\n }\n .order-lg-8 {\n order: 8;\n }\n .order-lg-9 {\n order: 9;\n }\n .order-lg-10 {\n order: 10;\n }\n .order-lg-11 {\n order: 11;\n }\n .order-lg-12 {\n order: 12;\n }\n .offset-lg-0 {\n margin-left: 0;\n }\n .offset-lg-1 {\n margin-left: 8.333333%;\n }\n .offset-lg-2 {\n margin-left: 16.666667%;\n }\n .offset-lg-3 {\n margin-left: 25%;\n }\n .offset-lg-4 {\n margin-left: 33.333333%;\n }\n .offset-lg-5 {\n margin-left: 41.666667%;\n }\n .offset-lg-6 {\n margin-left: 50%;\n }\n .offset-lg-7 {\n margin-left: 58.333333%;\n }\n .offset-lg-8 {\n margin-left: 66.666667%;\n }\n .offset-lg-9 {\n margin-left: 75%;\n }\n .offset-lg-10 {\n margin-left: 83.333333%;\n }\n .offset-lg-11 {\n margin-left: 91.666667%;\n }\n}\n\n@media (min-width: 1200px) {\n .col-xl {\n flex-basis: 0;\n flex-grow: 1;\n max-width: 100%;\n }\n .row-cols-xl-1 > * {\n flex: 0 0 100%;\n max-width: 100%;\n }\n .row-cols-xl-2 > * {\n flex: 0 0 50%;\n max-width: 50%;\n }\n .row-cols-xl-3 > * {\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n }\n .row-cols-xl-4 > * {\n flex: 0 0 25%;\n max-width: 25%;\n }\n .row-cols-xl-5 > * {\n flex: 0 0 20%;\n max-width: 20%;\n }\n .row-cols-xl-6 > * {\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n }\n .col-xl-auto {\n flex: 0 0 auto;\n width: auto;\n max-width: 100%;\n }\n .col-xl-1 {\n flex: 0 0 8.333333%;\n max-width: 8.333333%;\n }\n .col-xl-2 {\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n }\n .col-xl-3 {\n flex: 0 0 25%;\n max-width: 25%;\n }\n .col-xl-4 {\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n }\n .col-xl-5 {\n flex: 0 0 41.666667%;\n max-width: 41.666667%;\n }\n .col-xl-6 {\n flex: 0 0 50%;\n max-width: 50%;\n }\n .col-xl-7 {\n flex: 0 0 58.333333%;\n max-width: 58.333333%;\n }\n .col-xl-8 {\n flex: 0 0 66.666667%;\n max-width: 66.666667%;\n }\n .col-xl-9 {\n flex: 0 0 75%;\n max-width: 75%;\n }\n .col-xl-10 {\n flex: 0 0 83.333333%;\n max-width: 83.333333%;\n }\n .col-xl-11 {\n flex: 0 0 91.666667%;\n max-width: 91.666667%;\n }\n .col-xl-12 {\n flex: 0 0 100%;\n max-width: 100%;\n }\n .order-xl-first {\n order: -1;\n }\n .order-xl-last {\n order: 13;\n }\n .order-xl-0 {\n order: 0;\n }\n .order-xl-1 {\n order: 1;\n }\n .order-xl-2 {\n order: 2;\n }\n .order-xl-3 {\n order: 3;\n }\n .order-xl-4 {\n order: 4;\n }\n .order-xl-5 {\n order: 5;\n }\n .order-xl-6 {\n order: 6;\n }\n .order-xl-7 {\n order: 7;\n }\n .order-xl-8 {\n order: 8;\n }\n .order-xl-9 {\n order: 9;\n }\n .order-xl-10 {\n order: 10;\n }\n .order-xl-11 {\n order: 11;\n }\n .order-xl-12 {\n order: 12;\n }\n .offset-xl-0 {\n margin-left: 0;\n }\n .offset-xl-1 {\n margin-left: 8.333333%;\n }\n .offset-xl-2 {\n margin-left: 16.666667%;\n }\n .offset-xl-3 {\n margin-left: 25%;\n }\n .offset-xl-4 {\n margin-left: 33.333333%;\n }\n .offset-xl-5 {\n margin-left: 41.666667%;\n }\n .offset-xl-6 {\n margin-left: 50%;\n }\n .offset-xl-7 {\n margin-left: 58.333333%;\n }\n .offset-xl-8 {\n margin-left: 66.666667%;\n }\n .offset-xl-9 {\n margin-left: 75%;\n }\n .offset-xl-10 {\n margin-left: 83.333333%;\n }\n .offset-xl-11 {\n margin-left: 91.666667%;\n }\n}\n\n.d-none {\n display: none !important;\n}\n\n.d-inline {\n display: inline !important;\n}\n\n.d-inline-block {\n display: inline-block !important;\n}\n\n.d-block {\n display: block !important;\n}\n\n.d-table {\n display: table !important;\n}\n\n.d-table-row {\n display: table-row !important;\n}\n\n.d-table-cell {\n display: table-cell !important;\n}\n\n.d-flex {\n display: flex !important;\n}\n\n.d-inline-flex {\n display: inline-flex !important;\n}\n\n@media (min-width: 576px) {\n .d-sm-none {\n display: none !important;\n }\n .d-sm-inline {\n display: inline !important;\n }\n .d-sm-inline-block {\n display: inline-block !important;\n }\n .d-sm-block {\n display: block !important;\n }\n .d-sm-table {\n display: table !important;\n }\n .d-sm-table-row {\n display: table-row !important;\n }\n .d-sm-table-cell {\n display: table-cell !important;\n }\n .d-sm-flex {\n display: flex !important;\n }\n .d-sm-inline-flex {\n display: inline-flex !important;\n }\n}\n\n@media (min-width: 768px) {\n .d-md-none {\n display: none !important;\n }\n .d-md-inline {\n display: inline !important;\n }\n .d-md-inline-block {\n display: inline-block !important;\n }\n .d-md-block {\n display: block !important;\n }\n .d-md-table {\n display: table !important;\n }\n .d-md-table-row {\n display: table-row !important;\n }\n .d-md-table-cell {\n display: table-cell !important;\n }\n .d-md-flex {\n display: flex !important;\n }\n .d-md-inline-flex {\n display: inline-flex !important;\n }\n}\n\n@media (min-width: 992px) {\n .d-lg-none {\n display: none !important;\n }\n .d-lg-inline {\n display: inline !important;\n }\n .d-lg-inline-block {\n display: inline-block !important;\n }\n .d-lg-block {\n display: block !important;\n }\n .d-lg-table {\n display: table !important;\n }\n .d-lg-table-row {\n display: table-row !important;\n }\n .d-lg-table-cell {\n display: table-cell !important;\n }\n .d-lg-flex {\n display: flex !important;\n }\n .d-lg-inline-flex {\n display: inline-flex !important;\n }\n}\n\n@media (min-width: 1200px) {\n .d-xl-none {\n display: none !important;\n }\n .d-xl-inline {\n display: inline !important;\n }\n .d-xl-inline-block {\n display: inline-block !important;\n }\n .d-xl-block {\n display: block !important;\n }\n .d-xl-table {\n display: table !important;\n }\n .d-xl-table-row {\n display: table-row !important;\n }\n .d-xl-table-cell {\n display: table-cell !important;\n }\n .d-xl-flex {\n display: flex !important;\n }\n .d-xl-inline-flex {\n display: inline-flex !important;\n }\n}\n\n@media print {\n .d-print-none {\n display: none !important;\n }\n .d-print-inline {\n display: inline !important;\n }\n .d-print-inline-block {\n display: inline-block !important;\n }\n .d-print-block {\n display: block !important;\n }\n .d-print-table {\n display: table !important;\n }\n .d-print-table-row {\n display: table-row !important;\n }\n .d-print-table-cell {\n display: table-cell !important;\n }\n .d-print-flex {\n display: flex !important;\n }\n .d-print-inline-flex {\n display: inline-flex !important;\n }\n}\n\n.flex-row {\n flex-direction: row !important;\n}\n\n.flex-column {\n flex-direction: column !important;\n}\n\n.flex-row-reverse {\n flex-direction: row-reverse !important;\n}\n\n.flex-column-reverse {\n flex-direction: column-reverse !important;\n}\n\n.flex-wrap {\n flex-wrap: wrap !important;\n}\n\n.flex-nowrap {\n flex-wrap: nowrap !important;\n}\n\n.flex-wrap-reverse {\n flex-wrap: wrap-reverse !important;\n}\n\n.flex-fill {\n flex: 1 1 auto !important;\n}\n\n.flex-grow-0 {\n flex-grow: 0 !important;\n}\n\n.flex-grow-1 {\n flex-grow: 1 !important;\n}\n\n.flex-shrink-0 {\n flex-shrink: 0 !important;\n}\n\n.flex-shrink-1 {\n flex-shrink: 1 !important;\n}\n\n.justify-content-start {\n justify-content: flex-start !important;\n}\n\n.justify-content-end {\n justify-content: flex-end !important;\n}\n\n.justify-content-center {\n justify-content: center !important;\n}\n\n.justify-content-between {\n justify-content: space-between !important;\n}\n\n.justify-content-around {\n justify-content: space-around !important;\n}\n\n.align-items-start {\n align-items: flex-start !important;\n}\n\n.align-items-end {\n align-items: flex-end !important;\n}\n\n.align-items-center {\n align-items: center !important;\n}\n\n.align-items-baseline {\n align-items: baseline !important;\n}\n\n.align-items-stretch {\n align-items: stretch !important;\n}\n\n.align-content-start {\n align-content: flex-start !important;\n}\n\n.align-content-end {\n align-content: flex-end !important;\n}\n\n.align-content-center {\n align-content: center !important;\n}\n\n.align-content-between {\n align-content: space-between !important;\n}\n\n.align-content-around {\n align-content: space-around !important;\n}\n\n.align-content-stretch {\n align-content: stretch !important;\n}\n\n.align-self-auto {\n align-self: auto !important;\n}\n\n.align-self-start {\n align-self: flex-start !important;\n}\n\n.align-self-end {\n align-self: flex-end !important;\n}\n\n.align-self-center {\n align-self: center !important;\n}\n\n.align-self-baseline {\n align-self: baseline !important;\n}\n\n.align-self-stretch {\n align-self: stretch !important;\n}\n\n@media (min-width: 576px) {\n .flex-sm-row {\n flex-direction: row !important;\n }\n .flex-sm-column {\n flex-direction: column !important;\n }\n .flex-sm-row-reverse {\n flex-direction: row-reverse !important;\n }\n .flex-sm-column-reverse {\n flex-direction: column-reverse !important;\n }\n .flex-sm-wrap {\n flex-wrap: wrap !important;\n }\n .flex-sm-nowrap {\n flex-wrap: nowrap !important;\n }\n .flex-sm-wrap-reverse {\n flex-wrap: wrap-reverse !important;\n }\n .flex-sm-fill {\n flex: 1 1 auto !important;\n }\n .flex-sm-grow-0 {\n flex-grow: 0 !important;\n }\n .flex-sm-grow-1 {\n flex-grow: 1 !important;\n }\n .flex-sm-shrink-0 {\n flex-shrink: 0 !important;\n }\n .flex-sm-shrink-1 {\n flex-shrink: 1 !important;\n }\n .justify-content-sm-start {\n justify-content: flex-start !important;\n }\n .justify-content-sm-end {\n justify-content: flex-end !important;\n }\n .justify-content-sm-center {\n justify-content: center !important;\n }\n .justify-content-sm-between {\n justify-content: space-between !important;\n }\n .justify-content-sm-around {\n justify-content: space-around !important;\n }\n .align-items-sm-start {\n align-items: flex-start !important;\n }\n .align-items-sm-end {\n align-items: flex-end !important;\n }\n .align-items-sm-center {\n align-items: center !important;\n }\n .align-items-sm-baseline {\n align-items: baseline !important;\n }\n .align-items-sm-stretch {\n align-items: stretch !important;\n }\n .align-content-sm-start {\n align-content: flex-start !important;\n }\n .align-content-sm-end {\n align-content: flex-end !important;\n }\n .align-content-sm-center {\n align-content: center !important;\n }\n .align-content-sm-between {\n align-content: space-between !important;\n }\n .align-content-sm-around {\n align-content: space-around !important;\n }\n .align-content-sm-stretch {\n align-content: stretch !important;\n }\n .align-self-sm-auto {\n align-self: auto !important;\n }\n .align-self-sm-start {\n align-self: flex-start !important;\n }\n .align-self-sm-end {\n align-self: flex-end !important;\n }\n .align-self-sm-center {\n align-self: center !important;\n }\n .align-self-sm-baseline {\n align-self: baseline !important;\n }\n .align-self-sm-stretch {\n align-self: stretch !important;\n }\n}\n\n@media (min-width: 768px) {\n .flex-md-row {\n flex-direction: row !important;\n }\n .flex-md-column {\n flex-direction: column !important;\n }\n .flex-md-row-reverse {\n flex-direction: row-reverse !important;\n }\n .flex-md-column-reverse {\n flex-direction: column-reverse !important;\n }\n .flex-md-wrap {\n flex-wrap: wrap !important;\n }\n .flex-md-nowrap {\n flex-wrap: nowrap !important;\n }\n .flex-md-wrap-reverse {\n flex-wrap: wrap-reverse !important;\n }\n .flex-md-fill {\n flex: 1 1 auto !important;\n }\n .flex-md-grow-0 {\n flex-grow: 0 !important;\n }\n .flex-md-grow-1 {\n flex-grow: 1 !important;\n }\n .flex-md-shrink-0 {\n flex-shrink: 0 !important;\n }\n .flex-md-shrink-1 {\n flex-shrink: 1 !important;\n }\n .justify-content-md-start {\n justify-content: flex-start !important;\n }\n .justify-content-md-end {\n justify-content: flex-end !important;\n }\n .justify-content-md-center {\n justify-content: center !important;\n }\n .justify-content-md-between {\n justify-content: space-between !important;\n }\n .justify-content-md-around {\n justify-content: space-around !important;\n }\n .align-items-md-start {\n align-items: flex-start !important;\n }\n .align-items-md-end {\n align-items: flex-end !important;\n }\n .align-items-md-center {\n align-items: center !important;\n }\n .align-items-md-baseline {\n align-items: baseline !important;\n }\n .align-items-md-stretch {\n align-items: stretch !important;\n }\n .align-content-md-start {\n align-content: flex-start !important;\n }\n .align-content-md-end {\n align-content: flex-end !important;\n }\n .align-content-md-center {\n align-content: center !important;\n }\n .align-content-md-between {\n align-content: space-between !important;\n }\n .align-content-md-around {\n align-content: space-around !important;\n }\n .align-content-md-stretch {\n align-content: stretch !important;\n }\n .align-self-md-auto {\n align-self: auto !important;\n }\n .align-self-md-start {\n align-self: flex-start !important;\n }\n .align-self-md-end {\n align-self: flex-end !important;\n }\n .align-self-md-center {\n align-self: center !important;\n }\n .align-self-md-baseline {\n align-self: baseline !important;\n }\n .align-self-md-stretch {\n align-self: stretch !important;\n }\n}\n\n@media (min-width: 992px) {\n .flex-lg-row {\n flex-direction: row !important;\n }\n .flex-lg-column {\n flex-direction: column !important;\n }\n .flex-lg-row-reverse {\n flex-direction: row-reverse !important;\n }\n .flex-lg-column-reverse {\n flex-direction: column-reverse !important;\n }\n .flex-lg-wrap {\n flex-wrap: wrap !important;\n }\n .flex-lg-nowrap {\n flex-wrap: nowrap !important;\n }\n .flex-lg-wrap-reverse {\n flex-wrap: wrap-reverse !important;\n }\n .flex-lg-fill {\n flex: 1 1 auto !important;\n }\n .flex-lg-grow-0 {\n flex-grow: 0 !important;\n }\n .flex-lg-grow-1 {\n flex-grow: 1 !important;\n }\n .flex-lg-shrink-0 {\n flex-shrink: 0 !important;\n }\n .flex-lg-shrink-1 {\n flex-shrink: 1 !important;\n }\n .justify-content-lg-start {\n justify-content: flex-start !important;\n }\n .justify-content-lg-end {\n justify-content: flex-end !important;\n }\n .justify-content-lg-center {\n justify-content: center !important;\n }\n .justify-content-lg-between {\n justify-content: space-between !important;\n }\n .justify-content-lg-around {\n justify-content: space-around !important;\n }\n .align-items-lg-start {\n align-items: flex-start !important;\n }\n .align-items-lg-end {\n align-items: flex-end !important;\n }\n .align-items-lg-center {\n align-items: center !important;\n }\n .align-items-lg-baseline {\n align-items: baseline !important;\n }\n .align-items-lg-stretch {\n align-items: stretch !important;\n }\n .align-content-lg-start {\n align-content: flex-start !important;\n }\n .align-content-lg-end {\n align-content: flex-end !important;\n }\n .align-content-lg-center {\n align-content: center !important;\n }\n .align-content-lg-between {\n align-content: space-between !important;\n }\n .align-content-lg-around {\n align-content: space-around !important;\n }\n .align-content-lg-stretch {\n align-content: stretch !important;\n }\n .align-self-lg-auto {\n align-self: auto !important;\n }\n .align-self-lg-start {\n align-self: flex-start !important;\n }\n .align-self-lg-end {\n align-self: flex-end !important;\n }\n .align-self-lg-center {\n align-self: center !important;\n }\n .align-self-lg-baseline {\n align-self: baseline !important;\n }\n .align-self-lg-stretch {\n align-self: stretch !important;\n }\n}\n\n@media (min-width: 1200px) {\n .flex-xl-row {\n flex-direction: row !important;\n }\n .flex-xl-column {\n flex-direction: column !important;\n }\n .flex-xl-row-reverse {\n flex-direction: row-reverse !important;\n }\n .flex-xl-column-reverse {\n flex-direction: column-reverse !important;\n }\n .flex-xl-wrap {\n flex-wrap: wrap !important;\n }\n .flex-xl-nowrap {\n flex-wrap: nowrap !important;\n }\n .flex-xl-wrap-reverse {\n flex-wrap: wrap-reverse !important;\n }\n .flex-xl-fill {\n flex: 1 1 auto !important;\n }\n .flex-xl-grow-0 {\n flex-grow: 0 !important;\n }\n .flex-xl-grow-1 {\n flex-grow: 1 !important;\n }\n .flex-xl-shrink-0 {\n flex-shrink: 0 !important;\n }\n .flex-xl-shrink-1 {\n flex-shrink: 1 !important;\n }\n .justify-content-xl-start {\n justify-content: flex-start !important;\n }\n .justify-content-xl-end {\n justify-content: flex-end !important;\n }\n .justify-content-xl-center {\n justify-content: center !important;\n }\n .justify-content-xl-between {\n justify-content: space-between !important;\n }\n .justify-content-xl-around {\n justify-content: space-around !important;\n }\n .align-items-xl-start {\n align-items: flex-start !important;\n }\n .align-items-xl-end {\n align-items: flex-end !important;\n }\n .align-items-xl-center {\n align-items: center !important;\n }\n .align-items-xl-baseline {\n align-items: baseline !important;\n }\n .align-items-xl-stretch {\n align-items: stretch !important;\n }\n .align-content-xl-start {\n align-content: flex-start !important;\n }\n .align-content-xl-end {\n align-content: flex-end !important;\n }\n .align-content-xl-center {\n align-content: center !important;\n }\n .align-content-xl-between {\n align-content: space-between !important;\n }\n .align-content-xl-around {\n align-content: space-around !important;\n }\n .align-content-xl-stretch {\n align-content: stretch !important;\n }\n .align-self-xl-auto {\n align-self: auto !important;\n }\n .align-self-xl-start {\n align-self: flex-start !important;\n }\n .align-self-xl-end {\n align-self: flex-end !important;\n }\n .align-self-xl-center {\n align-self: center !important;\n }\n .align-self-xl-baseline {\n align-self: baseline !important;\n }\n .align-self-xl-stretch {\n align-self: stretch !important;\n }\n}\n\n.m-0 {\n margin: 0 !important;\n}\n\n.mt-0,\n.my-0 {\n margin-top: 0 !important;\n}\n\n.mr-0,\n.mx-0 {\n margin-right: 0 !important;\n}\n\n.mb-0,\n.my-0 {\n margin-bottom: 0 !important;\n}\n\n.ml-0,\n.mx-0 {\n margin-left: 0 !important;\n}\n\n.m-1 {\n margin: 0.25rem !important;\n}\n\n.mt-1,\n.my-1 {\n margin-top: 0.25rem !important;\n}\n\n.mr-1,\n.mx-1 {\n margin-right: 0.25rem !important;\n}\n\n.mb-1,\n.my-1 {\n margin-bottom: 0.25rem !important;\n}\n\n.ml-1,\n.mx-1 {\n margin-left: 0.25rem !important;\n}\n\n.m-2 {\n margin: 0.5rem !important;\n}\n\n.mt-2,\n.my-2 {\n margin-top: 0.5rem !important;\n}\n\n.mr-2,\n.mx-2 {\n margin-right: 0.5rem !important;\n}\n\n.mb-2,\n.my-2 {\n margin-bottom: 0.5rem !important;\n}\n\n.ml-2,\n.mx-2 {\n margin-left: 0.5rem !important;\n}\n\n.m-3 {\n margin: 1rem !important;\n}\n\n.mt-3,\n.my-3 {\n margin-top: 1rem !important;\n}\n\n.mr-3,\n.mx-3 {\n margin-right: 1rem !important;\n}\n\n.mb-3,\n.my-3 {\n margin-bottom: 1rem !important;\n}\n\n.ml-3,\n.mx-3 {\n margin-left: 1rem !important;\n}\n\n.m-4 {\n margin: 1.5rem !important;\n}\n\n.mt-4,\n.my-4 {\n margin-top: 1.5rem !important;\n}\n\n.mr-4,\n.mx-4 {\n margin-right: 1.5rem !important;\n}\n\n.mb-4,\n.my-4 {\n margin-bottom: 1.5rem !important;\n}\n\n.ml-4,\n.mx-4 {\n margin-left: 1.5rem !important;\n}\n\n.m-5 {\n margin: 3rem !important;\n}\n\n.mt-5,\n.my-5 {\n margin-top: 3rem !important;\n}\n\n.mr-5,\n.mx-5 {\n margin-right: 3rem !important;\n}\n\n.mb-5,\n.my-5 {\n margin-bottom: 3rem !important;\n}\n\n.ml-5,\n.mx-5 {\n margin-left: 3rem !important;\n}\n\n.p-0 {\n padding: 0 !important;\n}\n\n.pt-0,\n.py-0 {\n padding-top: 0 !important;\n}\n\n.pr-0,\n.px-0 {\n padding-right: 0 !important;\n}\n\n.pb-0,\n.py-0 {\n padding-bottom: 0 !important;\n}\n\n.pl-0,\n.px-0 {\n padding-left: 0 !important;\n}\n\n.p-1 {\n padding: 0.25rem !important;\n}\n\n.pt-1,\n.py-1 {\n padding-top: 0.25rem !important;\n}\n\n.pr-1,\n.px-1 {\n padding-right: 0.25rem !important;\n}\n\n.pb-1,\n.py-1 {\n padding-bottom: 0.25rem !important;\n}\n\n.pl-1,\n.px-1 {\n padding-left: 0.25rem !important;\n}\n\n.p-2 {\n padding: 0.5rem !important;\n}\n\n.pt-2,\n.py-2 {\n padding-top: 0.5rem !important;\n}\n\n.pr-2,\n.px-2 {\n padding-right: 0.5rem !important;\n}\n\n.pb-2,\n.py-2 {\n padding-bottom: 0.5rem !important;\n}\n\n.pl-2,\n.px-2 {\n padding-left: 0.5rem !important;\n}\n\n.p-3 {\n padding: 1rem !important;\n}\n\n.pt-3,\n.py-3 {\n padding-top: 1rem !important;\n}\n\n.pr-3,\n.px-3 {\n padding-right: 1rem !important;\n}\n\n.pb-3,\n.py-3 {\n padding-bottom: 1rem !important;\n}\n\n.pl-3,\n.px-3 {\n padding-left: 1rem !important;\n}\n\n.p-4 {\n padding: 1.5rem !important;\n}\n\n.pt-4,\n.py-4 {\n padding-top: 1.5rem !important;\n}\n\n.pr-4,\n.px-4 {\n padding-right: 1.5rem !important;\n}\n\n.pb-4,\n.py-4 {\n padding-bottom: 1.5rem !important;\n}\n\n.pl-4,\n.px-4 {\n padding-left: 1.5rem !important;\n}\n\n.p-5 {\n padding: 3rem !important;\n}\n\n.pt-5,\n.py-5 {\n padding-top: 3rem !important;\n}\n\n.pr-5,\n.px-5 {\n padding-right: 3rem !important;\n}\n\n.pb-5,\n.py-5 {\n padding-bottom: 3rem !important;\n}\n\n.pl-5,\n.px-5 {\n padding-left: 3rem !important;\n}\n\n.m-n1 {\n margin: -0.25rem !important;\n}\n\n.mt-n1,\n.my-n1 {\n margin-top: -0.25rem !important;\n}\n\n.mr-n1,\n.mx-n1 {\n margin-right: -0.25rem !important;\n}\n\n.mb-n1,\n.my-n1 {\n margin-bottom: -0.25rem !important;\n}\n\n.ml-n1,\n.mx-n1 {\n margin-left: -0.25rem !important;\n}\n\n.m-n2 {\n margin: -0.5rem !important;\n}\n\n.mt-n2,\n.my-n2 {\n margin-top: -0.5rem !important;\n}\n\n.mr-n2,\n.mx-n2 {\n margin-right: -0.5rem !important;\n}\n\n.mb-n2,\n.my-n2 {\n margin-bottom: -0.5rem !important;\n}\n\n.ml-n2,\n.mx-n2 {\n margin-left: -0.5rem !important;\n}\n\n.m-n3 {\n margin: -1rem !important;\n}\n\n.mt-n3,\n.my-n3 {\n margin-top: -1rem !important;\n}\n\n.mr-n3,\n.mx-n3 {\n margin-right: -1rem !important;\n}\n\n.mb-n3,\n.my-n3 {\n margin-bottom: -1rem !important;\n}\n\n.ml-n3,\n.mx-n3 {\n margin-left: -1rem !important;\n}\n\n.m-n4 {\n margin: -1.5rem !important;\n}\n\n.mt-n4,\n.my-n4 {\n margin-top: -1.5rem !important;\n}\n\n.mr-n4,\n.mx-n4 {\n margin-right: -1.5rem !important;\n}\n\n.mb-n4,\n.my-n4 {\n margin-bottom: -1.5rem !important;\n}\n\n.ml-n4,\n.mx-n4 {\n margin-left: -1.5rem !important;\n}\n\n.m-n5 {\n margin: -3rem !important;\n}\n\n.mt-n5,\n.my-n5 {\n margin-top: -3rem !important;\n}\n\n.mr-n5,\n.mx-n5 {\n margin-right: -3rem !important;\n}\n\n.mb-n5,\n.my-n5 {\n margin-bottom: -3rem !important;\n}\n\n.ml-n5,\n.mx-n5 {\n margin-left: -3rem !important;\n}\n\n.m-auto {\n margin: auto !important;\n}\n\n.mt-auto,\n.my-auto {\n margin-top: auto !important;\n}\n\n.mr-auto,\n.mx-auto {\n margin-right: auto !important;\n}\n\n.mb-auto,\n.my-auto {\n margin-bottom: auto !important;\n}\n\n.ml-auto,\n.mx-auto {\n margin-left: auto !important;\n}\n\n@media (min-width: 576px) {\n .m-sm-0 {\n margin: 0 !important;\n }\n .mt-sm-0,\n .my-sm-0 {\n margin-top: 0 !important;\n }\n .mr-sm-0,\n .mx-sm-0 {\n margin-right: 0 !important;\n }\n .mb-sm-0,\n .my-sm-0 {\n margin-bottom: 0 !important;\n }\n .ml-sm-0,\n .mx-sm-0 {\n margin-left: 0 !important;\n }\n .m-sm-1 {\n margin: 0.25rem !important;\n }\n .mt-sm-1,\n .my-sm-1 {\n margin-top: 0.25rem !important;\n }\n .mr-sm-1,\n .mx-sm-1 {\n margin-right: 0.25rem !important;\n }\n .mb-sm-1,\n .my-sm-1 {\n margin-bottom: 0.25rem !important;\n }\n .ml-sm-1,\n .mx-sm-1 {\n margin-left: 0.25rem !important;\n }\n .m-sm-2 {\n margin: 0.5rem !important;\n }\n .mt-sm-2,\n .my-sm-2 {\n margin-top: 0.5rem !important;\n }\n .mr-sm-2,\n .mx-sm-2 {\n margin-right: 0.5rem !important;\n }\n .mb-sm-2,\n .my-sm-2 {\n margin-bottom: 0.5rem !important;\n }\n .ml-sm-2,\n .mx-sm-2 {\n margin-left: 0.5rem !important;\n }\n .m-sm-3 {\n margin: 1rem !important;\n }\n .mt-sm-3,\n .my-sm-3 {\n margin-top: 1rem !important;\n }\n .mr-sm-3,\n .mx-sm-3 {\n margin-right: 1rem !important;\n }\n .mb-sm-3,\n .my-sm-3 {\n margin-bottom: 1rem !important;\n }\n .ml-sm-3,\n .mx-sm-3 {\n margin-left: 1rem !important;\n }\n .m-sm-4 {\n margin: 1.5rem !important;\n }\n .mt-sm-4,\n .my-sm-4 {\n margin-top: 1.5rem !important;\n }\n .mr-sm-4,\n .mx-sm-4 {\n margin-right: 1.5rem !important;\n }\n .mb-sm-4,\n .my-sm-4 {\n margin-bottom: 1.5rem !important;\n }\n .ml-sm-4,\n .mx-sm-4 {\n margin-left: 1.5rem !important;\n }\n .m-sm-5 {\n margin: 3rem !important;\n }\n .mt-sm-5,\n .my-sm-5 {\n margin-top: 3rem !important;\n }\n .mr-sm-5,\n .mx-sm-5 {\n margin-right: 3rem !important;\n }\n .mb-sm-5,\n .my-sm-5 {\n margin-bottom: 3rem !important;\n }\n .ml-sm-5,\n .mx-sm-5 {\n margin-left: 3rem !important;\n }\n .p-sm-0 {\n padding: 0 !important;\n }\n .pt-sm-0,\n .py-sm-0 {\n padding-top: 0 !important;\n }\n .pr-sm-0,\n .px-sm-0 {\n padding-right: 0 !important;\n }\n .pb-sm-0,\n .py-sm-0 {\n padding-bottom: 0 !important;\n }\n .pl-sm-0,\n .px-sm-0 {\n padding-left: 0 !important;\n }\n .p-sm-1 {\n padding: 0.25rem !important;\n }\n .pt-sm-1,\n .py-sm-1 {\n padding-top: 0.25rem !important;\n }\n .pr-sm-1,\n .px-sm-1 {\n padding-right: 0.25rem !important;\n }\n .pb-sm-1,\n .py-sm-1 {\n padding-bottom: 0.25rem !important;\n }\n .pl-sm-1,\n .px-sm-1 {\n padding-left: 0.25rem !important;\n }\n .p-sm-2 {\n padding: 0.5rem !important;\n }\n .pt-sm-2,\n .py-sm-2 {\n padding-top: 0.5rem !important;\n }\n .pr-sm-2,\n .px-sm-2 {\n padding-right: 0.5rem !important;\n }\n .pb-sm-2,\n .py-sm-2 {\n padding-bottom: 0.5rem !important;\n }\n .pl-sm-2,\n .px-sm-2 {\n padding-left: 0.5rem !important;\n }\n .p-sm-3 {\n padding: 1rem !important;\n }\n .pt-sm-3,\n .py-sm-3 {\n padding-top: 1rem !important;\n }\n .pr-sm-3,\n .px-sm-3 {\n padding-right: 1rem !important;\n }\n .pb-sm-3,\n .py-sm-3 {\n padding-bottom: 1rem !important;\n }\n .pl-sm-3,\n .px-sm-3 {\n padding-left: 1rem !important;\n }\n .p-sm-4 {\n padding: 1.5rem !important;\n }\n .pt-sm-4,\n .py-sm-4 {\n padding-top: 1.5rem !important;\n }\n .pr-sm-4,\n .px-sm-4 {\n padding-right: 1.5rem !important;\n }\n .pb-sm-4,\n .py-sm-4 {\n padding-bottom: 1.5rem !important;\n }\n .pl-sm-4,\n .px-sm-4 {\n padding-left: 1.5rem !important;\n }\n .p-sm-5 {\n padding: 3rem !important;\n }\n .pt-sm-5,\n .py-sm-5 {\n padding-top: 3rem !important;\n }\n .pr-sm-5,\n .px-sm-5 {\n padding-right: 3rem !important;\n }\n .pb-sm-5,\n .py-sm-5 {\n padding-bottom: 3rem !important;\n }\n .pl-sm-5,\n .px-sm-5 {\n padding-left: 3rem !important;\n }\n .m-sm-n1 {\n margin: -0.25rem !important;\n }\n .mt-sm-n1,\n .my-sm-n1 {\n margin-top: -0.25rem !important;\n }\n .mr-sm-n1,\n .mx-sm-n1 {\n margin-right: -0.25rem !important;\n }\n .mb-sm-n1,\n .my-sm-n1 {\n margin-bottom: -0.25rem !important;\n }\n .ml-sm-n1,\n .mx-sm-n1 {\n margin-left: -0.25rem !important;\n }\n .m-sm-n2 {\n margin: -0.5rem !important;\n }\n .mt-sm-n2,\n .my-sm-n2 {\n margin-top: -0.5rem !important;\n }\n .mr-sm-n2,\n .mx-sm-n2 {\n margin-right: -0.5rem !important;\n }\n .mb-sm-n2,\n .my-sm-n2 {\n margin-bottom: -0.5rem !important;\n }\n .ml-sm-n2,\n .mx-sm-n2 {\n margin-left: -0.5rem !important;\n }\n .m-sm-n3 {\n margin: -1rem !important;\n }\n .mt-sm-n3,\n .my-sm-n3 {\n margin-top: -1rem !important;\n }\n .mr-sm-n3,\n .mx-sm-n3 {\n margin-right: -1rem !important;\n }\n .mb-sm-n3,\n .my-sm-n3 {\n margin-bottom: -1rem !important;\n }\n .ml-sm-n3,\n .mx-sm-n3 {\n margin-left: -1rem !important;\n }\n .m-sm-n4 {\n margin: -1.5rem !important;\n }\n .mt-sm-n4,\n .my-sm-n4 {\n margin-top: -1.5rem !important;\n }\n .mr-sm-n4,\n .mx-sm-n4 {\n margin-right: -1.5rem !important;\n }\n .mb-sm-n4,\n .my-sm-n4 {\n margin-bottom: -1.5rem !important;\n }\n .ml-sm-n4,\n .mx-sm-n4 {\n margin-left: -1.5rem !important;\n }\n .m-sm-n5 {\n margin: -3rem !important;\n }\n .mt-sm-n5,\n .my-sm-n5 {\n margin-top: -3rem !important;\n }\n .mr-sm-n5,\n .mx-sm-n5 {\n margin-right: -3rem !important;\n }\n .mb-sm-n5,\n .my-sm-n5 {\n margin-bottom: -3rem !important;\n }\n .ml-sm-n5,\n .mx-sm-n5 {\n margin-left: -3rem !important;\n }\n .m-sm-auto {\n margin: auto !important;\n }\n .mt-sm-auto,\n .my-sm-auto {\n margin-top: auto !important;\n }\n .mr-sm-auto,\n .mx-sm-auto {\n margin-right: auto !important;\n }\n .mb-sm-auto,\n .my-sm-auto {\n margin-bottom: auto !important;\n }\n .ml-sm-auto,\n .mx-sm-auto {\n margin-left: auto !important;\n }\n}\n\n@media (min-width: 768px) {\n .m-md-0 {\n margin: 0 !important;\n }\n .mt-md-0,\n .my-md-0 {\n margin-top: 0 !important;\n }\n .mr-md-0,\n .mx-md-0 {\n margin-right: 0 !important;\n }\n .mb-md-0,\n .my-md-0 {\n margin-bottom: 0 !important;\n }\n .ml-md-0,\n .mx-md-0 {\n margin-left: 0 !important;\n }\n .m-md-1 {\n margin: 0.25rem !important;\n }\n .mt-md-1,\n .my-md-1 {\n margin-top: 0.25rem !important;\n }\n .mr-md-1,\n .mx-md-1 {\n margin-right: 0.25rem !important;\n }\n .mb-md-1,\n .my-md-1 {\n margin-bottom: 0.25rem !important;\n }\n .ml-md-1,\n .mx-md-1 {\n margin-left: 0.25rem !important;\n }\n .m-md-2 {\n margin: 0.5rem !important;\n }\n .mt-md-2,\n .my-md-2 {\n margin-top: 0.5rem !important;\n }\n .mr-md-2,\n .mx-md-2 {\n margin-right: 0.5rem !important;\n }\n .mb-md-2,\n .my-md-2 {\n margin-bottom: 0.5rem !important;\n }\n .ml-md-2,\n .mx-md-2 {\n margin-left: 0.5rem !important;\n }\n .m-md-3 {\n margin: 1rem !important;\n }\n .mt-md-3,\n .my-md-3 {\n margin-top: 1rem !important;\n }\n .mr-md-3,\n .mx-md-3 {\n margin-right: 1rem !important;\n }\n .mb-md-3,\n .my-md-3 {\n margin-bottom: 1rem !important;\n }\n .ml-md-3,\n .mx-md-3 {\n margin-left: 1rem !important;\n }\n .m-md-4 {\n margin: 1.5rem !important;\n }\n .mt-md-4,\n .my-md-4 {\n margin-top: 1.5rem !important;\n }\n .mr-md-4,\n .mx-md-4 {\n margin-right: 1.5rem !important;\n }\n .mb-md-4,\n .my-md-4 {\n margin-bottom: 1.5rem !important;\n }\n .ml-md-4,\n .mx-md-4 {\n margin-left: 1.5rem !important;\n }\n .m-md-5 {\n margin: 3rem !important;\n }\n .mt-md-5,\n .my-md-5 {\n margin-top: 3rem !important;\n }\n .mr-md-5,\n .mx-md-5 {\n margin-right: 3rem !important;\n }\n .mb-md-5,\n .my-md-5 {\n margin-bottom: 3rem !important;\n }\n .ml-md-5,\n .mx-md-5 {\n margin-left: 3rem !important;\n }\n .p-md-0 {\n padding: 0 !important;\n }\n .pt-md-0,\n .py-md-0 {\n padding-top: 0 !important;\n }\n .pr-md-0,\n .px-md-0 {\n padding-right: 0 !important;\n }\n .pb-md-0,\n .py-md-0 {\n padding-bottom: 0 !important;\n }\n .pl-md-0,\n .px-md-0 {\n padding-left: 0 !important;\n }\n .p-md-1 {\n padding: 0.25rem !important;\n }\n .pt-md-1,\n .py-md-1 {\n padding-top: 0.25rem !important;\n }\n .pr-md-1,\n .px-md-1 {\n padding-right: 0.25rem !important;\n }\n .pb-md-1,\n .py-md-1 {\n padding-bottom: 0.25rem !important;\n }\n .pl-md-1,\n .px-md-1 {\n padding-left: 0.25rem !important;\n }\n .p-md-2 {\n padding: 0.5rem !important;\n }\n .pt-md-2,\n .py-md-2 {\n padding-top: 0.5rem !important;\n }\n .pr-md-2,\n .px-md-2 {\n padding-right: 0.5rem !important;\n }\n .pb-md-2,\n .py-md-2 {\n padding-bottom: 0.5rem !important;\n }\n .pl-md-2,\n .px-md-2 {\n padding-left: 0.5rem !important;\n }\n .p-md-3 {\n padding: 1rem !important;\n }\n .pt-md-3,\n .py-md-3 {\n padding-top: 1rem !important;\n }\n .pr-md-3,\n .px-md-3 {\n padding-right: 1rem !important;\n }\n .pb-md-3,\n .py-md-3 {\n padding-bottom: 1rem !important;\n }\n .pl-md-3,\n .px-md-3 {\n padding-left: 1rem !important;\n }\n .p-md-4 {\n padding: 1.5rem !important;\n }\n .pt-md-4,\n .py-md-4 {\n padding-top: 1.5rem !important;\n }\n .pr-md-4,\n .px-md-4 {\n padding-right: 1.5rem !important;\n }\n .pb-md-4,\n .py-md-4 {\n padding-bottom: 1.5rem !important;\n }\n .pl-md-4,\n .px-md-4 {\n padding-left: 1.5rem !important;\n }\n .p-md-5 {\n padding: 3rem !important;\n }\n .pt-md-5,\n .py-md-5 {\n padding-top: 3rem !important;\n }\n .pr-md-5,\n .px-md-5 {\n padding-right: 3rem !important;\n }\n .pb-md-5,\n .py-md-5 {\n padding-bottom: 3rem !important;\n }\n .pl-md-5,\n .px-md-5 {\n padding-left: 3rem !important;\n }\n .m-md-n1 {\n margin: -0.25rem !important;\n }\n .mt-md-n1,\n .my-md-n1 {\n margin-top: -0.25rem !important;\n }\n .mr-md-n1,\n .mx-md-n1 {\n margin-right: -0.25rem !important;\n }\n .mb-md-n1,\n .my-md-n1 {\n margin-bottom: -0.25rem !important;\n }\n .ml-md-n1,\n .mx-md-n1 {\n margin-left: -0.25rem !important;\n }\n .m-md-n2 {\n margin: -0.5rem !important;\n }\n .mt-md-n2,\n .my-md-n2 {\n margin-top: -0.5rem !important;\n }\n .mr-md-n2,\n .mx-md-n2 {\n margin-right: -0.5rem !important;\n }\n .mb-md-n2,\n .my-md-n2 {\n margin-bottom: -0.5rem !important;\n }\n .ml-md-n2,\n .mx-md-n2 {\n margin-left: -0.5rem !important;\n }\n .m-md-n3 {\n margin: -1rem !important;\n }\n .mt-md-n3,\n .my-md-n3 {\n margin-top: -1rem !important;\n }\n .mr-md-n3,\n .mx-md-n3 {\n margin-right: -1rem !important;\n }\n .mb-md-n3,\n .my-md-n3 {\n margin-bottom: -1rem !important;\n }\n .ml-md-n3,\n .mx-md-n3 {\n margin-left: -1rem !important;\n }\n .m-md-n4 {\n margin: -1.5rem !important;\n }\n .mt-md-n4,\n .my-md-n4 {\n margin-top: -1.5rem !important;\n }\n .mr-md-n4,\n .mx-md-n4 {\n margin-right: -1.5rem !important;\n }\n .mb-md-n4,\n .my-md-n4 {\n margin-bottom: -1.5rem !important;\n }\n .ml-md-n4,\n .mx-md-n4 {\n margin-left: -1.5rem !important;\n }\n .m-md-n5 {\n margin: -3rem !important;\n }\n .mt-md-n5,\n .my-md-n5 {\n margin-top: -3rem !important;\n }\n .mr-md-n5,\n .mx-md-n5 {\n margin-right: -3rem !important;\n }\n .mb-md-n5,\n .my-md-n5 {\n margin-bottom: -3rem !important;\n }\n .ml-md-n5,\n .mx-md-n5 {\n margin-left: -3rem !important;\n }\n .m-md-auto {\n margin: auto !important;\n }\n .mt-md-auto,\n .my-md-auto {\n margin-top: auto !important;\n }\n .mr-md-auto,\n .mx-md-auto {\n margin-right: auto !important;\n }\n .mb-md-auto,\n .my-md-auto {\n margin-bottom: auto !important;\n }\n .ml-md-auto,\n .mx-md-auto {\n margin-left: auto !important;\n }\n}\n\n@media (min-width: 992px) {\n .m-lg-0 {\n margin: 0 !important;\n }\n .mt-lg-0,\n .my-lg-0 {\n margin-top: 0 !important;\n }\n .mr-lg-0,\n .mx-lg-0 {\n margin-right: 0 !important;\n }\n .mb-lg-0,\n .my-lg-0 {\n margin-bottom: 0 !important;\n }\n .ml-lg-0,\n .mx-lg-0 {\n margin-left: 0 !important;\n }\n .m-lg-1 {\n margin: 0.25rem !important;\n }\n .mt-lg-1,\n .my-lg-1 {\n margin-top: 0.25rem !important;\n }\n .mr-lg-1,\n .mx-lg-1 {\n margin-right: 0.25rem !important;\n }\n .mb-lg-1,\n .my-lg-1 {\n margin-bottom: 0.25rem !important;\n }\n .ml-lg-1,\n .mx-lg-1 {\n margin-left: 0.25rem !important;\n }\n .m-lg-2 {\n margin: 0.5rem !important;\n }\n .mt-lg-2,\n .my-lg-2 {\n margin-top: 0.5rem !important;\n }\n .mr-lg-2,\n .mx-lg-2 {\n margin-right: 0.5rem !important;\n }\n .mb-lg-2,\n .my-lg-2 {\n margin-bottom: 0.5rem !important;\n }\n .ml-lg-2,\n .mx-lg-2 {\n margin-left: 0.5rem !important;\n }\n .m-lg-3 {\n margin: 1rem !important;\n }\n .mt-lg-3,\n .my-lg-3 {\n margin-top: 1rem !important;\n }\n .mr-lg-3,\n .mx-lg-3 {\n margin-right: 1rem !important;\n }\n .mb-lg-3,\n .my-lg-3 {\n margin-bottom: 1rem !important;\n }\n .ml-lg-3,\n .mx-lg-3 {\n margin-left: 1rem !important;\n }\n .m-lg-4 {\n margin: 1.5rem !important;\n }\n .mt-lg-4,\n .my-lg-4 {\n margin-top: 1.5rem !important;\n }\n .mr-lg-4,\n .mx-lg-4 {\n margin-right: 1.5rem !important;\n }\n .mb-lg-4,\n .my-lg-4 {\n margin-bottom: 1.5rem !important;\n }\n .ml-lg-4,\n .mx-lg-4 {\n margin-left: 1.5rem !important;\n }\n .m-lg-5 {\n margin: 3rem !important;\n }\n .mt-lg-5,\n .my-lg-5 {\n margin-top: 3rem !important;\n }\n .mr-lg-5,\n .mx-lg-5 {\n margin-right: 3rem !important;\n }\n .mb-lg-5,\n .my-lg-5 {\n margin-bottom: 3rem !important;\n }\n .ml-lg-5,\n .mx-lg-5 {\n margin-left: 3rem !important;\n }\n .p-lg-0 {\n padding: 0 !important;\n }\n .pt-lg-0,\n .py-lg-0 {\n padding-top: 0 !important;\n }\n .pr-lg-0,\n .px-lg-0 {\n padding-right: 0 !important;\n }\n .pb-lg-0,\n .py-lg-0 {\n padding-bottom: 0 !important;\n }\n .pl-lg-0,\n .px-lg-0 {\n padding-left: 0 !important;\n }\n .p-lg-1 {\n padding: 0.25rem !important;\n }\n .pt-lg-1,\n .py-lg-1 {\n padding-top: 0.25rem !important;\n }\n .pr-lg-1,\n .px-lg-1 {\n padding-right: 0.25rem !important;\n }\n .pb-lg-1,\n .py-lg-1 {\n padding-bottom: 0.25rem !important;\n }\n .pl-lg-1,\n .px-lg-1 {\n padding-left: 0.25rem !important;\n }\n .p-lg-2 {\n padding: 0.5rem !important;\n }\n .pt-lg-2,\n .py-lg-2 {\n padding-top: 0.5rem !important;\n }\n .pr-lg-2,\n .px-lg-2 {\n padding-right: 0.5rem !important;\n }\n .pb-lg-2,\n .py-lg-2 {\n padding-bottom: 0.5rem !important;\n }\n .pl-lg-2,\n .px-lg-2 {\n padding-left: 0.5rem !important;\n }\n .p-lg-3 {\n padding: 1rem !important;\n }\n .pt-lg-3,\n .py-lg-3 {\n padding-top: 1rem !important;\n }\n .pr-lg-3,\n .px-lg-3 {\n padding-right: 1rem !important;\n }\n .pb-lg-3,\n .py-lg-3 {\n padding-bottom: 1rem !important;\n }\n .pl-lg-3,\n .px-lg-3 {\n padding-left: 1rem !important;\n }\n .p-lg-4 {\n padding: 1.5rem !important;\n }\n .pt-lg-4,\n .py-lg-4 {\n padding-top: 1.5rem !important;\n }\n .pr-lg-4,\n .px-lg-4 {\n padding-right: 1.5rem !important;\n }\n .pb-lg-4,\n .py-lg-4 {\n padding-bottom: 1.5rem !important;\n }\n .pl-lg-4,\n .px-lg-4 {\n padding-left: 1.5rem !important;\n }\n .p-lg-5 {\n padding: 3rem !important;\n }\n .pt-lg-5,\n .py-lg-5 {\n padding-top: 3rem !important;\n }\n .pr-lg-5,\n .px-lg-5 {\n padding-right: 3rem !important;\n }\n .pb-lg-5,\n .py-lg-5 {\n padding-bottom: 3rem !important;\n }\n .pl-lg-5,\n .px-lg-5 {\n padding-left: 3rem !important;\n }\n .m-lg-n1 {\n margin: -0.25rem !important;\n }\n .mt-lg-n1,\n .my-lg-n1 {\n margin-top: -0.25rem !important;\n }\n .mr-lg-n1,\n .mx-lg-n1 {\n margin-right: -0.25rem !important;\n }\n .mb-lg-n1,\n .my-lg-n1 {\n margin-bottom: -0.25rem !important;\n }\n .ml-lg-n1,\n .mx-lg-n1 {\n margin-left: -0.25rem !important;\n }\n .m-lg-n2 {\n margin: -0.5rem !important;\n }\n .mt-lg-n2,\n .my-lg-n2 {\n margin-top: -0.5rem !important;\n }\n .mr-lg-n2,\n .mx-lg-n2 {\n margin-right: -0.5rem !important;\n }\n .mb-lg-n2,\n .my-lg-n2 {\n margin-bottom: -0.5rem !important;\n }\n .ml-lg-n2,\n .mx-lg-n2 {\n margin-left: -0.5rem !important;\n }\n .m-lg-n3 {\n margin: -1rem !important;\n }\n .mt-lg-n3,\n .my-lg-n3 {\n margin-top: -1rem !important;\n }\n .mr-lg-n3,\n .mx-lg-n3 {\n margin-right: -1rem !important;\n }\n .mb-lg-n3,\n .my-lg-n3 {\n margin-bottom: -1rem !important;\n }\n .ml-lg-n3,\n .mx-lg-n3 {\n margin-left: -1rem !important;\n }\n .m-lg-n4 {\n margin: -1.5rem !important;\n }\n .mt-lg-n4,\n .my-lg-n4 {\n margin-top: -1.5rem !important;\n }\n .mr-lg-n4,\n .mx-lg-n4 {\n margin-right: -1.5rem !important;\n }\n .mb-lg-n4,\n .my-lg-n4 {\n margin-bottom: -1.5rem !important;\n }\n .ml-lg-n4,\n .mx-lg-n4 {\n margin-left: -1.5rem !important;\n }\n .m-lg-n5 {\n margin: -3rem !important;\n }\n .mt-lg-n5,\n .my-lg-n5 {\n margin-top: -3rem !important;\n }\n .mr-lg-n5,\n .mx-lg-n5 {\n margin-right: -3rem !important;\n }\n .mb-lg-n5,\n .my-lg-n5 {\n margin-bottom: -3rem !important;\n }\n .ml-lg-n5,\n .mx-lg-n5 {\n margin-left: -3rem !important;\n }\n .m-lg-auto {\n margin: auto !important;\n }\n .mt-lg-auto,\n .my-lg-auto {\n margin-top: auto !important;\n }\n .mr-lg-auto,\n .mx-lg-auto {\n margin-right: auto !important;\n }\n .mb-lg-auto,\n .my-lg-auto {\n margin-bottom: auto !important;\n }\n .ml-lg-auto,\n .mx-lg-auto {\n margin-left: auto !important;\n }\n}\n\n@media (min-width: 1200px) {\n .m-xl-0 {\n margin: 0 !important;\n }\n .mt-xl-0,\n .my-xl-0 {\n margin-top: 0 !important;\n }\n .mr-xl-0,\n .mx-xl-0 {\n margin-right: 0 !important;\n }\n .mb-xl-0,\n .my-xl-0 {\n margin-bottom: 0 !important;\n }\n .ml-xl-0,\n .mx-xl-0 {\n margin-left: 0 !important;\n }\n .m-xl-1 {\n margin: 0.25rem !important;\n }\n .mt-xl-1,\n .my-xl-1 {\n margin-top: 0.25rem !important;\n }\n .mr-xl-1,\n .mx-xl-1 {\n margin-right: 0.25rem !important;\n }\n .mb-xl-1,\n .my-xl-1 {\n margin-bottom: 0.25rem !important;\n }\n .ml-xl-1,\n .mx-xl-1 {\n margin-left: 0.25rem !important;\n }\n .m-xl-2 {\n margin: 0.5rem !important;\n }\n .mt-xl-2,\n .my-xl-2 {\n margin-top: 0.5rem !important;\n }\n .mr-xl-2,\n .mx-xl-2 {\n margin-right: 0.5rem !important;\n }\n .mb-xl-2,\n .my-xl-2 {\n margin-bottom: 0.5rem !important;\n }\n .ml-xl-2,\n .mx-xl-2 {\n margin-left: 0.5rem !important;\n }\n .m-xl-3 {\n margin: 1rem !important;\n }\n .mt-xl-3,\n .my-xl-3 {\n margin-top: 1rem !important;\n }\n .mr-xl-3,\n .mx-xl-3 {\n margin-right: 1rem !important;\n }\n .mb-xl-3,\n .my-xl-3 {\n margin-bottom: 1rem !important;\n }\n .ml-xl-3,\n .mx-xl-3 {\n margin-left: 1rem !important;\n }\n .m-xl-4 {\n margin: 1.5rem !important;\n }\n .mt-xl-4,\n .my-xl-4 {\n margin-top: 1.5rem !important;\n }\n .mr-xl-4,\n .mx-xl-4 {\n margin-right: 1.5rem !important;\n }\n .mb-xl-4,\n .my-xl-4 {\n margin-bottom: 1.5rem !important;\n }\n .ml-xl-4,\n .mx-xl-4 {\n margin-left: 1.5rem !important;\n }\n .m-xl-5 {\n margin: 3rem !important;\n }\n .mt-xl-5,\n .my-xl-5 {\n margin-top: 3rem !important;\n }\n .mr-xl-5,\n .mx-xl-5 {\n margin-right: 3rem !important;\n }\n .mb-xl-5,\n .my-xl-5 {\n margin-bottom: 3rem !important;\n }\n .ml-xl-5,\n .mx-xl-5 {\n margin-left: 3rem !important;\n }\n .p-xl-0 {\n padding: 0 !important;\n }\n .pt-xl-0,\n .py-xl-0 {\n padding-top: 0 !important;\n }\n .pr-xl-0,\n .px-xl-0 {\n padding-right: 0 !important;\n }\n .pb-xl-0,\n .py-xl-0 {\n padding-bottom: 0 !important;\n }\n .pl-xl-0,\n .px-xl-0 {\n padding-left: 0 !important;\n }\n .p-xl-1 {\n padding: 0.25rem !important;\n }\n .pt-xl-1,\n .py-xl-1 {\n padding-top: 0.25rem !important;\n }\n .pr-xl-1,\n .px-xl-1 {\n padding-right: 0.25rem !important;\n }\n .pb-xl-1,\n .py-xl-1 {\n padding-bottom: 0.25rem !important;\n }\n .pl-xl-1,\n .px-xl-1 {\n padding-left: 0.25rem !important;\n }\n .p-xl-2 {\n padding: 0.5rem !important;\n }\n .pt-xl-2,\n .py-xl-2 {\n padding-top: 0.5rem !important;\n }\n .pr-xl-2,\n .px-xl-2 {\n padding-right: 0.5rem !important;\n }\n .pb-xl-2,\n .py-xl-2 {\n padding-bottom: 0.5rem !important;\n }\n .pl-xl-2,\n .px-xl-2 {\n padding-left: 0.5rem !important;\n }\n .p-xl-3 {\n padding: 1rem !important;\n }\n .pt-xl-3,\n .py-xl-3 {\n padding-top: 1rem !important;\n }\n .pr-xl-3,\n .px-xl-3 {\n padding-right: 1rem !important;\n }\n .pb-xl-3,\n .py-xl-3 {\n padding-bottom: 1rem !important;\n }\n .pl-xl-3,\n .px-xl-3 {\n padding-left: 1rem !important;\n }\n .p-xl-4 {\n padding: 1.5rem !important;\n }\n .pt-xl-4,\n .py-xl-4 {\n padding-top: 1.5rem !important;\n }\n .pr-xl-4,\n .px-xl-4 {\n padding-right: 1.5rem !important;\n }\n .pb-xl-4,\n .py-xl-4 {\n padding-bottom: 1.5rem !important;\n }\n .pl-xl-4,\n .px-xl-4 {\n padding-left: 1.5rem !important;\n }\n .p-xl-5 {\n padding: 3rem !important;\n }\n .pt-xl-5,\n .py-xl-5 {\n padding-top: 3rem !important;\n }\n .pr-xl-5,\n .px-xl-5 {\n padding-right: 3rem !important;\n }\n .pb-xl-5,\n .py-xl-5 {\n padding-bottom: 3rem !important;\n }\n .pl-xl-5,\n .px-xl-5 {\n padding-left: 3rem !important;\n }\n .m-xl-n1 {\n margin: -0.25rem !important;\n }\n .mt-xl-n1,\n .my-xl-n1 {\n margin-top: -0.25rem !important;\n }\n .mr-xl-n1,\n .mx-xl-n1 {\n margin-right: -0.25rem !important;\n }\n .mb-xl-n1,\n .my-xl-n1 {\n margin-bottom: -0.25rem !important;\n }\n .ml-xl-n1,\n .mx-xl-n1 {\n margin-left: -0.25rem !important;\n }\n .m-xl-n2 {\n margin: -0.5rem !important;\n }\n .mt-xl-n2,\n .my-xl-n2 {\n margin-top: -0.5rem !important;\n }\n .mr-xl-n2,\n .mx-xl-n2 {\n margin-right: -0.5rem !important;\n }\n .mb-xl-n2,\n .my-xl-n2 {\n margin-bottom: -0.5rem !important;\n }\n .ml-xl-n2,\n .mx-xl-n2 {\n margin-left: -0.5rem !important;\n }\n .m-xl-n3 {\n margin: -1rem !important;\n }\n .mt-xl-n3,\n .my-xl-n3 {\n margin-top: -1rem !important;\n }\n .mr-xl-n3,\n .mx-xl-n3 {\n margin-right: -1rem !important;\n }\n .mb-xl-n3,\n .my-xl-n3 {\n margin-bottom: -1rem !important;\n }\n .ml-xl-n3,\n .mx-xl-n3 {\n margin-left: -1rem !important;\n }\n .m-xl-n4 {\n margin: -1.5rem !important;\n }\n .mt-xl-n4,\n .my-xl-n4 {\n margin-top: -1.5rem !important;\n }\n .mr-xl-n4,\n .mx-xl-n4 {\n margin-right: -1.5rem !important;\n }\n .mb-xl-n4,\n .my-xl-n4 {\n margin-bottom: -1.5rem !important;\n }\n .ml-xl-n4,\n .mx-xl-n4 {\n margin-left: -1.5rem !important;\n }\n .m-xl-n5 {\n margin: -3rem !important;\n }\n .mt-xl-n5,\n .my-xl-n5 {\n margin-top: -3rem !important;\n }\n .mr-xl-n5,\n .mx-xl-n5 {\n margin-right: -3rem !important;\n }\n .mb-xl-n5,\n .my-xl-n5 {\n margin-bottom: -3rem !important;\n }\n .ml-xl-n5,\n .mx-xl-n5 {\n margin-left: -3rem !important;\n }\n .m-xl-auto {\n margin: auto !important;\n }\n .mt-xl-auto,\n .my-xl-auto {\n margin-top: auto !important;\n }\n .mr-xl-auto,\n .mx-xl-auto {\n margin-right: auto !important;\n }\n .mb-xl-auto,\n .my-xl-auto {\n margin-bottom: auto !important;\n }\n .ml-xl-auto,\n .mx-xl-auto {\n margin-left: auto !important;\n }\n}\n\n/*# sourceMappingURL=bootstrap-grid.css.map */","// Container widths\n//\n// Set the container width, and override it for fixed navbars in media queries.\n\n@if $enable-grid-classes {\n // Single container class with breakpoint max-widths\n .container,\n // 100% wide container at all breakpoints\n .container-fluid {\n @include make-container();\n }\n\n // Responsive containers that are 100% wide until a breakpoint\n @each $breakpoint, $container-max-width in $container-max-widths {\n .container-#{$breakpoint} {\n @extend .container-fluid;\n }\n\n @include media-breakpoint-up($breakpoint, $grid-breakpoints) {\n %responsive-container-#{$breakpoint} {\n max-width: $container-max-width;\n }\n\n // Extend each breakpoint which is smaller or equal to the current breakpoint\n $extend-breakpoint: true;\n\n @each $name, $width in $grid-breakpoints {\n @if ($extend-breakpoint) {\n .container#{breakpoint-infix($name, $grid-breakpoints)} {\n @extend %responsive-container-#{$breakpoint};\n }\n\n // Once the current breakpoint is reached, stop extending\n @if ($breakpoint == $name) {\n $extend-breakpoint: false;\n }\n }\n }\n }\n }\n}\n\n\n// Row\n//\n// Rows contain your columns.\n\n@if $enable-grid-classes {\n .row {\n @include make-row();\n }\n\n // Remove the negative margin from default .row, then the horizontal padding\n // from all immediate children columns (to prevent runaway style inheritance).\n .no-gutters {\n margin-right: 0;\n margin-left: 0;\n\n > .col,\n > [class*=\"col-\"] {\n padding-right: 0;\n padding-left: 0;\n }\n }\n}\n\n// Columns\n//\n// Common styles for small and large grid columns\n\n@if $enable-grid-classes {\n @include make-grid-columns();\n}\n","/// Grid system\n//\n// Generate semantic grid columns with these mixins.\n\n@mixin make-container($gutter: $grid-gutter-width) {\n width: 100%;\n padding-right: $gutter / 2;\n padding-left: $gutter / 2;\n margin-right: auto;\n margin-left: auto;\n}\n\n@mixin make-row($gutter: $grid-gutter-width) {\n display: flex;\n flex-wrap: wrap;\n margin-right: -$gutter / 2;\n margin-left: -$gutter / 2;\n}\n\n// For each breakpoint, define the maximum width of the container in a media query\n@mixin make-container-max-widths($max-widths: $container-max-widths, $breakpoints: $grid-breakpoints) {\n @each $breakpoint, $container-max-width in $max-widths {\n @include media-breakpoint-up($breakpoint, $breakpoints) {\n max-width: $container-max-width;\n }\n }\n @include deprecate(\"The `make-container-max-widths` mixin\", \"v4.5.2\", \"v5\");\n}\n\n@mixin make-col-ready($gutter: $grid-gutter-width) {\n position: relative;\n // Prevent columns from becoming too narrow when at smaller grid tiers by\n // always setting `width: 100%;`. This works because we use `flex` values\n // later on to override this initial width.\n width: 100%;\n padding-right: $gutter / 2;\n padding-left: $gutter / 2;\n}\n\n@mixin make-col($size, $columns: $grid-columns) {\n flex: 0 0 percentage($size / $columns);\n // Add a `max-width` to ensure content within each column does not blow out\n // the width of the column. Applies to IE10+ and Firefox. Chrome and Safari\n // do not appear to require this.\n max-width: percentage($size / $columns);\n}\n\n@mixin make-col-auto() {\n flex: 0 0 auto;\n width: auto;\n max-width: 100%; // Reset earlier grid tiers\n}\n\n@mixin make-col-offset($size, $columns: $grid-columns) {\n $num: $size / $columns;\n margin-left: if($num == 0, 0, percentage($num));\n}\n\n// Row columns\n//\n// Specify on a parent element(e.g., .row) to force immediate children into NN\n// numberof columns. Supports wrapping to new lines, but does not do a Masonry\n// style grid.\n@mixin row-cols($count) {\n > * {\n flex: 0 0 100% / $count;\n max-width: 100% / $count;\n }\n}\n","// Breakpoint viewport sizes and media queries.\n//\n// Breakpoints are defined as a map of (name: minimum width), order from small to large:\n//\n// (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)\n//\n// The map defined in the `$grid-breakpoints` global variable is used as the `$breakpoints` argument by default.\n\n// Name of the next breakpoint, or null for the last breakpoint.\n//\n// >> breakpoint-next(sm)\n// md\n// >> breakpoint-next(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n// md\n// >> breakpoint-next(sm, $breakpoint-names: (xs sm md lg xl))\n// md\n@function breakpoint-next($name, $breakpoints: $grid-breakpoints, $breakpoint-names: map-keys($breakpoints)) {\n $n: index($breakpoint-names, $name);\n @return if($n != null and $n < length($breakpoint-names), nth($breakpoint-names, $n + 1), null);\n}\n\n// Minimum breakpoint width. Null for the smallest (first) breakpoint.\n//\n// >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n// 576px\n@function breakpoint-min($name, $breakpoints: $grid-breakpoints) {\n $min: map-get($breakpoints, $name);\n @return if($min != 0, $min, null);\n}\n\n// Maximum breakpoint width. Null for the largest (last) breakpoint.\n// The maximum value is calculated as the minimum of the next one less 0.02px\n// to work around the limitations of `min-` and `max-` prefixes and viewports with fractional widths.\n// See https://www.w3.org/TR/mediaqueries-4/#mq-min-max\n// Uses 0.02px rather than 0.01px to work around a current rounding bug in Safari.\n// See https://bugs.webkit.org/show_bug.cgi?id=178261\n//\n// >> breakpoint-max(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n// 767.98px\n@function breakpoint-max($name, $breakpoints: $grid-breakpoints) {\n $next: breakpoint-next($name, $breakpoints);\n @return if($next, breakpoint-min($next, $breakpoints) - .02, null);\n}\n\n// Returns a blank string if smallest breakpoint, otherwise returns the name with a dash in front.\n// Useful for making responsive utilities.\n//\n// >> breakpoint-infix(xs, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n// \"\" (Returns a blank string)\n// >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n// \"-sm\"\n@function breakpoint-infix($name, $breakpoints: $grid-breakpoints) {\n @return if(breakpoint-min($name, $breakpoints) == null, \"\", \"-#{$name}\");\n}\n\n// Media of at least the minimum breakpoint width. No query for the smallest breakpoint.\n// Makes the @content apply to the given breakpoint and wider.\n@mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) {\n $min: breakpoint-min($name, $breakpoints);\n @if $min {\n @media (min-width: $min) {\n @content;\n }\n } @else {\n @content;\n }\n}\n\n// Media of at most the maximum breakpoint width. No query for the largest breakpoint.\n// Makes the @content apply to the given breakpoint and narrower.\n@mixin media-breakpoint-down($name, $breakpoints: $grid-breakpoints) {\n $max: breakpoint-max($name, $breakpoints);\n @if $max {\n @media (max-width: $max) {\n @content;\n }\n } @else {\n @content;\n }\n}\n\n// Media that spans multiple breakpoint widths.\n// Makes the @content apply between the min and max breakpoints\n@mixin media-breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) {\n $min: breakpoint-min($lower, $breakpoints);\n $max: breakpoint-max($upper, $breakpoints);\n\n @if $min != null and $max != null {\n @media (min-width: $min) and (max-width: $max) {\n @content;\n }\n } @else if $max == null {\n @include media-breakpoint-up($lower, $breakpoints) {\n @content;\n }\n } @else if $min == null {\n @include media-breakpoint-down($upper, $breakpoints) {\n @content;\n }\n }\n}\n\n// Media between the breakpoint's minimum and maximum widths.\n// No minimum for the smallest breakpoint, and no maximum for the largest one.\n// Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.\n@mixin media-breakpoint-only($name, $breakpoints: $grid-breakpoints) {\n $min: breakpoint-min($name, $breakpoints);\n $max: breakpoint-max($name, $breakpoints);\n\n @if $min != null and $max != null {\n @media (min-width: $min) and (max-width: $max) {\n @content;\n }\n } @else if $max == null {\n @include media-breakpoint-up($name, $breakpoints) {\n @content;\n }\n } @else if $min == null {\n @include media-breakpoint-down($name, $breakpoints) {\n @content;\n }\n }\n}\n","// Variables\n//\n// Variables should follow the `$component-state-property-size` formula for\n// consistent naming. Ex: $nav-link-disabled-color and $modal-content-box-shadow-xs.\n\n// Color system\n\n$white: #fff !default;\n$gray-100: #f8f9fa !default;\n$gray-200: #e9ecef !default;\n$gray-300: #dee2e6 !default;\n$gray-400: #ced4da !default;\n$gray-500: #adb5bd !default;\n$gray-600: #6c757d !default;\n$gray-700: #495057 !default;\n$gray-800: #343a40 !default;\n$gray-900: #212529 !default;\n$black: #000 !default;\n\n$grays: () !default;\n$grays: map-merge(\n (\n \"100\": $gray-100,\n \"200\": $gray-200,\n \"300\": $gray-300,\n \"400\": $gray-400,\n \"500\": $gray-500,\n \"600\": $gray-600,\n \"700\": $gray-700,\n \"800\": $gray-800,\n \"900\": $gray-900\n ),\n $grays\n);\n\n$blue: #007bff !default;\n$indigo: #6610f2 !default;\n$purple: #6f42c1 !default;\n$pink: #e83e8c !default;\n$red: #dc3545 !default;\n$orange: #fd7e14 !default;\n$yellow: #ffc107 !default;\n$green: #28a745 !default;\n$teal: #20c997 !default;\n$cyan: #17a2b8 !default;\n\n$colors: () !default;\n$colors: map-merge(\n (\n \"blue\": $blue,\n \"indigo\": $indigo,\n \"purple\": $purple,\n \"pink\": $pink,\n \"red\": $red,\n \"orange\": $orange,\n \"yellow\": $yellow,\n \"green\": $green,\n \"teal\": $teal,\n \"cyan\": $cyan,\n \"white\": $white,\n \"gray\": $gray-600,\n \"gray-dark\": $gray-800\n ),\n $colors\n);\n\n$primary: $blue !default;\n$secondary: $gray-600 !default;\n$success: $green !default;\n$info: $cyan !default;\n$warning: $yellow !default;\n$danger: $red !default;\n$light: $gray-100 !default;\n$dark: $gray-800 !default;\n\n$theme-colors: () !default;\n$theme-colors: map-merge(\n (\n \"primary\": $primary,\n \"secondary\": $secondary,\n \"success\": $success,\n \"info\": $info,\n \"warning\": $warning,\n \"danger\": $danger,\n \"light\": $light,\n \"dark\": $dark\n ),\n $theme-colors\n);\n\n// Set a specific jump point for requesting color jumps\n$theme-color-interval: 8% !default;\n\n// The yiq lightness value that determines when the lightness of color changes from \"dark\" to \"light\". Acceptable values are between 0 and 255.\n$yiq-contrasted-threshold: 150 !default;\n\n// Customize the light and dark text colors for use in our YIQ color contrast function.\n$yiq-text-dark: $gray-900 !default;\n$yiq-text-light: $white !default;\n\n// Characters which are escaped by the escape-svg function\n$escaped-characters: (\n (\"<\", \"%3c\"),\n (\">\", \"%3e\"),\n (\"#\", \"%23\"),\n (\"(\", \"%28\"),\n (\")\", \"%29\"),\n) !default;\n\n\n// Options\n//\n// Quickly modify global styling by enabling or disabling optional features.\n\n$enable-caret: true !default;\n$enable-rounded: true !default;\n$enable-shadows: false !default;\n$enable-gradients: false !default;\n$enable-transitions: true !default;\n$enable-prefers-reduced-motion-media-query: true !default;\n$enable-hover-media-query: false !default; // Deprecated, no longer affects any compiled CSS\n$enable-grid-classes: true !default;\n$enable-pointer-cursor-for-buttons: true !default;\n$enable-print-styles: true !default;\n$enable-responsive-font-sizes: false !default;\n$enable-validation-icons: true !default;\n$enable-deprecation-messages: true !default;\n\n\n// Spacing\n//\n// Control the default styling of most Bootstrap elements by modifying these\n// variables. Mostly focused on spacing.\n// You can add more entries to the $spacers map, should you need more variation.\n\n$spacer: 1rem !default;\n$spacers: () !default;\n$spacers: map-merge(\n (\n 0: 0,\n 1: ($spacer * .25),\n 2: ($spacer * .5),\n 3: $spacer,\n 4: ($spacer * 1.5),\n 5: ($spacer * 3)\n ),\n $spacers\n);\n\n// This variable affects the `.h-*` and `.w-*` classes.\n$sizes: () !default;\n$sizes: map-merge(\n (\n 25: 25%,\n 50: 50%,\n 75: 75%,\n 100: 100%,\n auto: auto\n ),\n $sizes\n);\n\n\n// Body\n//\n// Settings for the `` element.\n\n$body-bg: $white !default;\n$body-color: $gray-900 !default;\n\n\n// Links\n//\n// Style anchor elements.\n\n$link-color: theme-color(\"primary\") !default;\n$link-decoration: none !default;\n$link-hover-color: darken($link-color, 15%) !default;\n$link-hover-decoration: underline !default;\n// Darken percentage for links with `.text-*` class (e.g. `.text-success`)\n$emphasized-link-hover-darken-percentage: 15% !default;\n\n// Paragraphs\n//\n// Style p element.\n\n$paragraph-margin-bottom: 1rem !default;\n\n\n// Grid breakpoints\n//\n// Define the minimum dimensions at which your layout will change,\n// adapting to different screen sizes, for use in media queries.\n\n$grid-breakpoints: (\n xs: 0,\n sm: 576px,\n md: 768px,\n lg: 992px,\n xl: 1200px\n) !default;\n\n@include _assert-ascending($grid-breakpoints, \"$grid-breakpoints\");\n@include _assert-starts-at-zero($grid-breakpoints, \"$grid-breakpoints\");\n\n\n// Grid containers\n//\n// Define the maximum width of `.container` for different screen sizes.\n\n$container-max-widths: (\n sm: 540px,\n md: 720px,\n lg: 960px,\n xl: 1140px\n) !default;\n\n@include _assert-ascending($container-max-widths, \"$container-max-widths\");\n\n\n// Grid columns\n//\n// Set the number of columns and specify the width of the gutters.\n\n$grid-columns: 12 !default;\n$grid-gutter-width: 30px !default;\n$grid-row-columns: 6 !default;\n\n\n// Components\n//\n// Define common padding and border radius sizes and more.\n\n$line-height-lg: 1.5 !default;\n$line-height-sm: 1.5 !default;\n\n$border-width: 1px !default;\n$border-color: $gray-300 !default;\n\n$border-radius: .25rem !default;\n$border-radius-lg: .3rem !default;\n$border-radius-sm: .2rem !default;\n\n$rounded-pill: 50rem !default;\n\n$box-shadow-sm: 0 .125rem .25rem rgba($black, .075) !default;\n$box-shadow: 0 .5rem 1rem rgba($black, .15) !default;\n$box-shadow-lg: 0 1rem 3rem rgba($black, .175) !default;\n\n$component-active-color: $white !default;\n$component-active-bg: theme-color(\"primary\") !default;\n\n$caret-width: .3em !default;\n$caret-vertical-align: $caret-width * .85 !default;\n$caret-spacing: $caret-width * .85 !default;\n\n$transition-base: all .2s ease-in-out !default;\n$transition-fade: opacity .15s linear !default;\n$transition-collapse: height .35s ease !default;\n\n$embed-responsive-aspect-ratios: () !default;\n$embed-responsive-aspect-ratios: join(\n (\n (21 9),\n (16 9),\n (4 3),\n (1 1),\n ),\n $embed-responsive-aspect-ratios\n);\n\n// Typography\n//\n// Font, line-height, and color for body text, headings, and more.\n\n// stylelint-disable value-keyword-case\n$font-family-sans-serif: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\" !default;\n$font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace !default;\n$font-family-base: $font-family-sans-serif !default;\n// stylelint-enable value-keyword-case\n\n$font-size-base: 1rem !default; // Assumes the browser default, typically `16px`\n$font-size-lg: $font-size-base * 1.25 !default;\n$font-size-sm: $font-size-base * .875 !default;\n\n$font-weight-lighter: lighter !default;\n$font-weight-light: 300 !default;\n$font-weight-normal: 400 !default;\n$font-weight-bold: 700 !default;\n$font-weight-bolder: bolder !default;\n\n$font-weight-base: $font-weight-normal !default;\n$line-height-base: 1.5 !default;\n\n$h1-font-size: $font-size-base * 2.5 !default;\n$h2-font-size: $font-size-base * 2 !default;\n$h3-font-size: $font-size-base * 1.75 !default;\n$h4-font-size: $font-size-base * 1.5 !default;\n$h5-font-size: $font-size-base * 1.25 !default;\n$h6-font-size: $font-size-base !default;\n\n$headings-margin-bottom: $spacer / 2 !default;\n$headings-font-family: null !default;\n$headings-font-weight: 500 !default;\n$headings-line-height: 1.2 !default;\n$headings-color: null !default;\n\n$display1-size: 6rem !default;\n$display2-size: 5.5rem !default;\n$display3-size: 4.5rem !default;\n$display4-size: 3.5rem !default;\n\n$display1-weight: 300 !default;\n$display2-weight: 300 !default;\n$display3-weight: 300 !default;\n$display4-weight: 300 !default;\n$display-line-height: $headings-line-height !default;\n\n$lead-font-size: $font-size-base * 1.25 !default;\n$lead-font-weight: 300 !default;\n\n$small-font-size: 80% !default;\n\n$text-muted: $gray-600 !default;\n\n$blockquote-small-color: $gray-600 !default;\n$blockquote-small-font-size: $small-font-size !default;\n$blockquote-font-size: $font-size-base * 1.25 !default;\n\n$hr-border-color: rgba($black, .1) !default;\n$hr-border-width: $border-width !default;\n\n$mark-padding: .2em !default;\n\n$dt-font-weight: $font-weight-bold !default;\n\n$kbd-box-shadow: inset 0 -.1rem 0 rgba($black, .25) !default;\n$nested-kbd-font-weight: $font-weight-bold !default;\n\n$list-inline-padding: .5rem !default;\n\n$mark-bg: #fcf8e3 !default;\n\n$hr-margin-y: $spacer !default;\n\n\n// Tables\n//\n// Customizes the `.table` component with basic values, each used across all table variations.\n\n$table-cell-padding: .75rem !default;\n$table-cell-padding-sm: .3rem !default;\n\n$table-color: $body-color !default;\n$table-bg: null !default;\n$table-accent-bg: rgba($black, .05) !default;\n$table-hover-color: $table-color !default;\n$table-hover-bg: rgba($black, .075) !default;\n$table-active-bg: $table-hover-bg !default;\n\n$table-border-width: $border-width !default;\n$table-border-color: $border-color !default;\n\n$table-head-bg: $gray-200 !default;\n$table-head-color: $gray-700 !default;\n$table-th-font-weight: null !default;\n\n$table-dark-color: $white !default;\n$table-dark-bg: $gray-800 !default;\n$table-dark-accent-bg: rgba($white, .05) !default;\n$table-dark-hover-color: $table-dark-color !default;\n$table-dark-hover-bg: rgba($white, .075) !default;\n$table-dark-border-color: lighten($table-dark-bg, 7.5%) !default;\n\n$table-striped-order: odd !default;\n\n$table-caption-color: $text-muted !default;\n\n$table-bg-level: -9 !default;\n$table-border-level: -6 !default;\n\n\n// Buttons + Forms\n//\n// Shared variables that are reassigned to `$input-` and `$btn-` specific variables.\n\n$input-btn-padding-y: .375rem !default;\n$input-btn-padding-x: .75rem !default;\n$input-btn-font-family: null !default;\n$input-btn-font-size: $font-size-base !default;\n$input-btn-line-height: $line-height-base !default;\n\n$input-btn-focus-width: .2rem !default;\n$input-btn-focus-color: rgba($component-active-bg, .25) !default;\n$input-btn-focus-box-shadow: 0 0 0 $input-btn-focus-width $input-btn-focus-color !default;\n\n$input-btn-padding-y-sm: .25rem !default;\n$input-btn-padding-x-sm: .5rem !default;\n$input-btn-font-size-sm: $font-size-sm !default;\n$input-btn-line-height-sm: $line-height-sm !default;\n\n$input-btn-padding-y-lg: .5rem !default;\n$input-btn-padding-x-lg: 1rem !default;\n$input-btn-font-size-lg: $font-size-lg !default;\n$input-btn-line-height-lg: $line-height-lg !default;\n\n$input-btn-border-width: $border-width !default;\n\n\n// Buttons\n//\n// For each of Bootstrap's buttons, define text, background, and border color.\n\n$btn-padding-y: $input-btn-padding-y !default;\n$btn-padding-x: $input-btn-padding-x !default;\n$btn-font-family: $input-btn-font-family !default;\n$btn-font-size: $input-btn-font-size !default;\n$btn-line-height: $input-btn-line-height !default;\n$btn-white-space: null !default; // Set to `nowrap` to prevent text wrapping\n\n$btn-padding-y-sm: $input-btn-padding-y-sm !default;\n$btn-padding-x-sm: $input-btn-padding-x-sm !default;\n$btn-font-size-sm: $input-btn-font-size-sm !default;\n$btn-line-height-sm: $input-btn-line-height-sm !default;\n\n$btn-padding-y-lg: $input-btn-padding-y-lg !default;\n$btn-padding-x-lg: $input-btn-padding-x-lg !default;\n$btn-font-size-lg: $input-btn-font-size-lg !default;\n$btn-line-height-lg: $input-btn-line-height-lg !default;\n\n$btn-border-width: $input-btn-border-width !default;\n\n$btn-font-weight: $font-weight-normal !default;\n$btn-box-shadow: inset 0 1px 0 rgba($white, .15), 0 1px 1px rgba($black, .075) !default;\n$btn-focus-width: $input-btn-focus-width !default;\n$btn-focus-box-shadow: $input-btn-focus-box-shadow !default;\n$btn-disabled-opacity: .65 !default;\n$btn-active-box-shadow: inset 0 3px 5px rgba($black, .125) !default;\n\n$btn-link-disabled-color: $gray-600 !default;\n\n$btn-block-spacing-y: .5rem !default;\n\n// Allows for customizing button radius independently from global border radius\n$btn-border-radius: $border-radius !default;\n$btn-border-radius-lg: $border-radius-lg !default;\n$btn-border-radius-sm: $border-radius-sm !default;\n\n$btn-transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out !default;\n\n\n// Forms\n\n$label-margin-bottom: .5rem !default;\n\n$input-padding-y: $input-btn-padding-y !default;\n$input-padding-x: $input-btn-padding-x !default;\n$input-font-family: $input-btn-font-family !default;\n$input-font-size: $input-btn-font-size !default;\n$input-font-weight: $font-weight-base !default;\n$input-line-height: $input-btn-line-height !default;\n\n$input-padding-y-sm: $input-btn-padding-y-sm !default;\n$input-padding-x-sm: $input-btn-padding-x-sm !default;\n$input-font-size-sm: $input-btn-font-size-sm !default;\n$input-line-height-sm: $input-btn-line-height-sm !default;\n\n$input-padding-y-lg: $input-btn-padding-y-lg !default;\n$input-padding-x-lg: $input-btn-padding-x-lg !default;\n$input-font-size-lg: $input-btn-font-size-lg !default;\n$input-line-height-lg: $input-btn-line-height-lg !default;\n\n$input-bg: $white !default;\n$input-disabled-bg: $gray-200 !default;\n\n$input-color: $gray-700 !default;\n$input-border-color: $gray-400 !default;\n$input-border-width: $input-btn-border-width !default;\n$input-box-shadow: inset 0 1px 1px rgba($black, .075) !default;\n\n$input-border-radius: $border-radius !default;\n$input-border-radius-lg: $border-radius-lg !default;\n$input-border-radius-sm: $border-radius-sm !default;\n\n$input-focus-bg: $input-bg !default;\n$input-focus-border-color: lighten($component-active-bg, 25%) !default;\n$input-focus-color: $input-color !default;\n$input-focus-width: $input-btn-focus-width !default;\n$input-focus-box-shadow: $input-btn-focus-box-shadow !default;\n\n$input-placeholder-color: $gray-600 !default;\n$input-plaintext-color: $body-color !default;\n\n$input-height-border: $input-border-width * 2 !default;\n\n$input-height-inner: add($input-line-height * 1em, $input-padding-y * 2) !default;\n$input-height-inner-half: add($input-line-height * .5em, $input-padding-y) !default;\n$input-height-inner-quarter: add($input-line-height * .25em, $input-padding-y / 2) !default;\n\n$input-height: add($input-line-height * 1em, add($input-padding-y * 2, $input-height-border, false)) !default;\n$input-height-sm: add($input-line-height-sm * 1em, add($input-padding-y-sm * 2, $input-height-border, false)) !default;\n$input-height-lg: add($input-line-height-lg * 1em, add($input-padding-y-lg * 2, $input-height-border, false)) !default;\n\n$input-transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out !default;\n\n$form-text-margin-top: .25rem !default;\n\n$form-check-input-gutter: 1.25rem !default;\n$form-check-input-margin-y: .3rem !default;\n$form-check-input-margin-x: .25rem !default;\n\n$form-check-inline-margin-x: .75rem !default;\n$form-check-inline-input-margin-x: .3125rem !default;\n\n$form-grid-gutter-width: 10px !default;\n$form-group-margin-bottom: 1rem !default;\n\n$input-group-addon-color: $input-color !default;\n$input-group-addon-bg: $gray-200 !default;\n$input-group-addon-border-color: $input-border-color !default;\n\n$custom-forms-transition: background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out !default;\n\n$custom-control-gutter: .5rem !default;\n$custom-control-spacer-x: 1rem !default;\n$custom-control-cursor: null !default;\n\n$custom-control-indicator-size: 1rem !default;\n$custom-control-indicator-bg: $input-bg !default;\n\n$custom-control-indicator-bg-size: 50% 50% !default;\n$custom-control-indicator-box-shadow: $input-box-shadow !default;\n$custom-control-indicator-border-color: $gray-500 !default;\n$custom-control-indicator-border-width: $input-border-width !default;\n\n$custom-control-label-color: null !default;\n\n$custom-control-indicator-disabled-bg: $input-disabled-bg !default;\n$custom-control-label-disabled-color: $gray-600 !default;\n\n$custom-control-indicator-checked-color: $component-active-color !default;\n$custom-control-indicator-checked-bg: $component-active-bg !default;\n$custom-control-indicator-checked-disabled-bg: rgba(theme-color(\"primary\"), .5) !default;\n$custom-control-indicator-checked-box-shadow: null !default;\n$custom-control-indicator-checked-border-color: $custom-control-indicator-checked-bg !default;\n\n$custom-control-indicator-focus-box-shadow: $input-focus-box-shadow !default;\n$custom-control-indicator-focus-border-color: $input-focus-border-color !default;\n\n$custom-control-indicator-active-color: $component-active-color !default;\n$custom-control-indicator-active-bg: lighten($component-active-bg, 35%) !default;\n$custom-control-indicator-active-box-shadow: null !default;\n$custom-control-indicator-active-border-color: $custom-control-indicator-active-bg !default;\n\n$custom-checkbox-indicator-border-radius: $border-radius !default;\n$custom-checkbox-indicator-icon-checked: url(\"data:image/svg+xml,\") !default;\n\n$custom-checkbox-indicator-indeterminate-bg: $component-active-bg !default;\n$custom-checkbox-indicator-indeterminate-color: $custom-control-indicator-checked-color !default;\n$custom-checkbox-indicator-icon-indeterminate: url(\"data:image/svg+xml,\") !default;\n$custom-checkbox-indicator-indeterminate-box-shadow: null !default;\n$custom-checkbox-indicator-indeterminate-border-color: $custom-checkbox-indicator-indeterminate-bg !default;\n\n$custom-radio-indicator-border-radius: 50% !default;\n$custom-radio-indicator-icon-checked: url(\"data:image/svg+xml,\") !default;\n\n$custom-switch-width: $custom-control-indicator-size * 1.75 !default;\n$custom-switch-indicator-border-radius: $custom-control-indicator-size / 2 !default;\n$custom-switch-indicator-size: subtract($custom-control-indicator-size, $custom-control-indicator-border-width * 4) !default;\n\n$custom-select-padding-y: $input-padding-y !default;\n$custom-select-padding-x: $input-padding-x !default;\n$custom-select-font-family: $input-font-family !default;\n$custom-select-font-size: $input-font-size !default;\n$custom-select-height: $input-height !default;\n$custom-select-indicator-padding: 1rem !default; // Extra padding to account for the presence of the background-image based indicator\n$custom-select-font-weight: $input-font-weight !default;\n$custom-select-line-height: $input-line-height !default;\n$custom-select-color: $input-color !default;\n$custom-select-disabled-color: $gray-600 !default;\n$custom-select-bg: $input-bg !default;\n$custom-select-disabled-bg: $gray-200 !default;\n$custom-select-bg-size: 8px 10px !default; // In pixels because image dimensions\n$custom-select-indicator-color: $gray-800 !default;\n$custom-select-indicator: url(\"data:image/svg+xml,\") !default;\n$custom-select-background: escape-svg($custom-select-indicator) no-repeat right $custom-select-padding-x center / $custom-select-bg-size !default; // Used so we can have multiple background elements (e.g., arrow and feedback icon)\n\n$custom-select-feedback-icon-padding-right: add(1em * .75, (2 * $custom-select-padding-y * .75) + $custom-select-padding-x + $custom-select-indicator-padding) !default;\n$custom-select-feedback-icon-position: center right ($custom-select-padding-x + $custom-select-indicator-padding) !default;\n$custom-select-feedback-icon-size: $input-height-inner-half $input-height-inner-half !default;\n\n$custom-select-border-width: $input-border-width !default;\n$custom-select-border-color: $input-border-color !default;\n$custom-select-border-radius: $border-radius !default;\n$custom-select-box-shadow: inset 0 1px 2px rgba($black, .075) !default;\n\n$custom-select-focus-border-color: $input-focus-border-color !default;\n$custom-select-focus-width: $input-focus-width !default;\n$custom-select-focus-box-shadow: 0 0 0 $custom-select-focus-width $input-btn-focus-color !default;\n\n$custom-select-padding-y-sm: $input-padding-y-sm !default;\n$custom-select-padding-x-sm: $input-padding-x-sm !default;\n$custom-select-font-size-sm: $input-font-size-sm !default;\n$custom-select-height-sm: $input-height-sm !default;\n\n$custom-select-padding-y-lg: $input-padding-y-lg !default;\n$custom-select-padding-x-lg: $input-padding-x-lg !default;\n$custom-select-font-size-lg: $input-font-size-lg !default;\n$custom-select-height-lg: $input-height-lg !default;\n\n$custom-range-track-width: 100% !default;\n$custom-range-track-height: .5rem !default;\n$custom-range-track-cursor: pointer !default;\n$custom-range-track-bg: $gray-300 !default;\n$custom-range-track-border-radius: 1rem !default;\n$custom-range-track-box-shadow: inset 0 .25rem .25rem rgba($black, .1) !default;\n\n$custom-range-thumb-width: 1rem !default;\n$custom-range-thumb-height: $custom-range-thumb-width !default;\n$custom-range-thumb-bg: $component-active-bg !default;\n$custom-range-thumb-border: 0 !default;\n$custom-range-thumb-border-radius: 1rem !default;\n$custom-range-thumb-box-shadow: 0 .1rem .25rem rgba($black, .1) !default;\n$custom-range-thumb-focus-box-shadow: 0 0 0 1px $body-bg, $input-focus-box-shadow !default;\n$custom-range-thumb-focus-box-shadow-width: $input-focus-width !default; // For focus box shadow issue in IE/Edge\n$custom-range-thumb-active-bg: lighten($component-active-bg, 35%) !default;\n$custom-range-thumb-disabled-bg: $gray-500 !default;\n\n$custom-file-height: $input-height !default;\n$custom-file-height-inner: $input-height-inner !default;\n$custom-file-focus-border-color: $input-focus-border-color !default;\n$custom-file-focus-box-shadow: $input-focus-box-shadow !default;\n$custom-file-disabled-bg: $input-disabled-bg !default;\n\n$custom-file-padding-y: $input-padding-y !default;\n$custom-file-padding-x: $input-padding-x !default;\n$custom-file-line-height: $input-line-height !default;\n$custom-file-font-family: $input-font-family !default;\n$custom-file-font-weight: $input-font-weight !default;\n$custom-file-color: $input-color !default;\n$custom-file-bg: $input-bg !default;\n$custom-file-border-width: $input-border-width !default;\n$custom-file-border-color: $input-border-color !default;\n$custom-file-border-radius: $input-border-radius !default;\n$custom-file-box-shadow: $input-box-shadow !default;\n$custom-file-button-color: $custom-file-color !default;\n$custom-file-button-bg: $input-group-addon-bg !default;\n$custom-file-text: (\n en: \"Browse\"\n) !default;\n\n\n// Form validation\n\n$form-feedback-margin-top: $form-text-margin-top !default;\n$form-feedback-font-size: $small-font-size !default;\n$form-feedback-valid-color: theme-color(\"success\") !default;\n$form-feedback-invalid-color: theme-color(\"danger\") !default;\n\n$form-feedback-icon-valid-color: $form-feedback-valid-color !default;\n$form-feedback-icon-valid: url(\"data:image/svg+xml,\") !default;\n$form-feedback-icon-invalid-color: $form-feedback-invalid-color !default;\n$form-feedback-icon-invalid: url(\"data:image/svg+xml,\") !default;\n\n$form-validation-states: () !default;\n$form-validation-states: map-merge(\n (\n \"valid\": (\n \"color\": $form-feedback-valid-color,\n \"icon\": $form-feedback-icon-valid\n ),\n \"invalid\": (\n \"color\": $form-feedback-invalid-color,\n \"icon\": $form-feedback-icon-invalid\n ),\n ),\n $form-validation-states\n);\n\n// Z-index master list\n//\n// Warning: Avoid customizing these values. They're used for a bird's eye view\n// of components dependent on the z-axis and are designed to all work together.\n\n$zindex-dropdown: 1000 !default;\n$zindex-sticky: 1020 !default;\n$zindex-fixed: 1030 !default;\n$zindex-modal-backdrop: 1040 !default;\n$zindex-modal: 1050 !default;\n$zindex-popover: 1060 !default;\n$zindex-tooltip: 1070 !default;\n\n\n// Navs\n\n$nav-link-padding-y: .5rem !default;\n$nav-link-padding-x: 1rem !default;\n$nav-link-disabled-color: $gray-600 !default;\n\n$nav-tabs-border-color: $gray-300 !default;\n$nav-tabs-border-width: $border-width !default;\n$nav-tabs-border-radius: $border-radius !default;\n$nav-tabs-link-hover-border-color: $gray-200 $gray-200 $nav-tabs-border-color !default;\n$nav-tabs-link-active-color: $gray-700 !default;\n$nav-tabs-link-active-bg: $body-bg !default;\n$nav-tabs-link-active-border-color: $gray-300 $gray-300 $nav-tabs-link-active-bg !default;\n\n$nav-pills-border-radius: $border-radius !default;\n$nav-pills-link-active-color: $component-active-color !default;\n$nav-pills-link-active-bg: $component-active-bg !default;\n\n$nav-divider-color: $gray-200 !default;\n$nav-divider-margin-y: $spacer / 2 !default;\n\n\n// Navbar\n\n$navbar-padding-y: $spacer / 2 !default;\n$navbar-padding-x: $spacer !default;\n\n$navbar-nav-link-padding-x: .5rem !default;\n\n$navbar-brand-font-size: $font-size-lg !default;\n// Compute the navbar-brand padding-y so the navbar-brand will have the same height as navbar-text and nav-link\n$nav-link-height: $font-size-base * $line-height-base + $nav-link-padding-y * 2 !default;\n$navbar-brand-height: $navbar-brand-font-size * $line-height-base !default;\n$navbar-brand-padding-y: ($nav-link-height - $navbar-brand-height) / 2 !default;\n\n$navbar-toggler-padding-y: .25rem !default;\n$navbar-toggler-padding-x: .75rem !default;\n$navbar-toggler-font-size: $font-size-lg !default;\n$navbar-toggler-border-radius: $btn-border-radius !default;\n\n$navbar-dark-color: rgba($white, .5) !default;\n$navbar-dark-hover-color: rgba($white, .75) !default;\n$navbar-dark-active-color: $white !default;\n$navbar-dark-disabled-color: rgba($white, .25) !default;\n$navbar-dark-toggler-icon-bg: url(\"data:image/svg+xml,\") !default;\n$navbar-dark-toggler-border-color: rgba($white, .1) !default;\n\n$navbar-light-color: rgba($black, .5) !default;\n$navbar-light-hover-color: rgba($black, .7) !default;\n$navbar-light-active-color: rgba($black, .9) !default;\n$navbar-light-disabled-color: rgba($black, .3) !default;\n$navbar-light-toggler-icon-bg: url(\"data:image/svg+xml,\") !default;\n$navbar-light-toggler-border-color: rgba($black, .1) !default;\n\n$navbar-light-brand-color: $navbar-light-active-color !default;\n$navbar-light-brand-hover-color: $navbar-light-active-color !default;\n$navbar-dark-brand-color: $navbar-dark-active-color !default;\n$navbar-dark-brand-hover-color: $navbar-dark-active-color !default;\n\n\n// Dropdowns\n//\n// Dropdown menu container and contents.\n\n$dropdown-min-width: 10rem !default;\n$dropdown-padding-x: 0 !default;\n$dropdown-padding-y: .5rem !default;\n$dropdown-spacer: .125rem !default;\n$dropdown-font-size: $font-size-base !default;\n$dropdown-color: $body-color !default;\n$dropdown-bg: $white !default;\n$dropdown-border-color: rgba($black, .15) !default;\n$dropdown-border-radius: $border-radius !default;\n$dropdown-border-width: $border-width !default;\n$dropdown-inner-border-radius: subtract($dropdown-border-radius, $dropdown-border-width) !default;\n$dropdown-divider-bg: $gray-200 !default;\n$dropdown-divider-margin-y: $nav-divider-margin-y !default;\n$dropdown-box-shadow: 0 .5rem 1rem rgba($black, .175) !default;\n\n$dropdown-link-color: $gray-900 !default;\n$dropdown-link-hover-color: darken($gray-900, 5%) !default;\n$dropdown-link-hover-bg: $gray-100 !default;\n\n$dropdown-link-active-color: $component-active-color !default;\n$dropdown-link-active-bg: $component-active-bg !default;\n\n$dropdown-link-disabled-color: $gray-600 !default;\n\n$dropdown-item-padding-y: .25rem !default;\n$dropdown-item-padding-x: 1.5rem !default;\n\n$dropdown-header-color: $gray-600 !default;\n$dropdown-header-padding: $dropdown-padding-y $dropdown-item-padding-x !default;\n\n\n// Pagination\n\n$pagination-padding-y: .5rem !default;\n$pagination-padding-x: .75rem !default;\n$pagination-padding-y-sm: .25rem !default;\n$pagination-padding-x-sm: .5rem !default;\n$pagination-padding-y-lg: .75rem !default;\n$pagination-padding-x-lg: 1.5rem !default;\n$pagination-line-height: 1.25 !default;\n\n$pagination-color: $link-color !default;\n$pagination-bg: $white !default;\n$pagination-border-width: $border-width !default;\n$pagination-border-color: $gray-300 !default;\n\n$pagination-focus-box-shadow: $input-btn-focus-box-shadow !default;\n$pagination-focus-outline: 0 !default;\n\n$pagination-hover-color: $link-hover-color !default;\n$pagination-hover-bg: $gray-200 !default;\n$pagination-hover-border-color: $gray-300 !default;\n\n$pagination-active-color: $component-active-color !default;\n$pagination-active-bg: $component-active-bg !default;\n$pagination-active-border-color: $pagination-active-bg !default;\n\n$pagination-disabled-color: $gray-600 !default;\n$pagination-disabled-bg: $white !default;\n$pagination-disabled-border-color: $gray-300 !default;\n\n\n// Jumbotron\n\n$jumbotron-padding: 2rem !default;\n$jumbotron-color: null !default;\n$jumbotron-bg: $gray-200 !default;\n\n\n// Cards\n\n$card-spacer-y: .75rem !default;\n$card-spacer-x: 1.25rem !default;\n$card-border-width: $border-width !default;\n$card-border-radius: $border-radius !default;\n$card-border-color: rgba($black, .125) !default;\n$card-inner-border-radius: subtract($card-border-radius, $card-border-width) !default;\n$card-cap-bg: rgba($black, .03) !default;\n$card-cap-color: null !default;\n$card-height: null !default;\n$card-color: null !default;\n$card-bg: $white !default;\n\n$card-img-overlay-padding: 1.25rem !default;\n\n$card-group-margin: $grid-gutter-width / 2 !default;\n$card-deck-margin: $card-group-margin !default;\n\n$card-columns-count: 3 !default;\n$card-columns-gap: 1.25rem !default;\n$card-columns-margin: $card-spacer-y !default;\n\n\n// Tooltips\n\n$tooltip-font-size: $font-size-sm !default;\n$tooltip-max-width: 200px !default;\n$tooltip-color: $white !default;\n$tooltip-bg: $black !default;\n$tooltip-border-radius: $border-radius !default;\n$tooltip-opacity: .9 !default;\n$tooltip-padding-y: .25rem !default;\n$tooltip-padding-x: .5rem !default;\n$tooltip-margin: 0 !default;\n\n$tooltip-arrow-width: .8rem !default;\n$tooltip-arrow-height: .4rem !default;\n$tooltip-arrow-color: $tooltip-bg !default;\n\n// Form tooltips must come after regular tooltips\n$form-feedback-tooltip-padding-y: $tooltip-padding-y !default;\n$form-feedback-tooltip-padding-x: $tooltip-padding-x !default;\n$form-feedback-tooltip-font-size: $tooltip-font-size !default;\n$form-feedback-tooltip-line-height: $line-height-base !default;\n$form-feedback-tooltip-opacity: $tooltip-opacity !default;\n$form-feedback-tooltip-border-radius: $tooltip-border-radius !default;\n\n\n// Popovers\n\n$popover-font-size: $font-size-sm !default;\n$popover-bg: $white !default;\n$popover-max-width: 276px !default;\n$popover-border-width: $border-width !default;\n$popover-border-color: rgba($black, .2) !default;\n$popover-border-radius: $border-radius-lg !default;\n$popover-inner-border-radius: subtract($popover-border-radius, $popover-border-width) !default;\n$popover-box-shadow: 0 .25rem .5rem rgba($black, .2) !default;\n\n$popover-header-bg: darken($popover-bg, 3%) !default;\n$popover-header-color: $headings-color !default;\n$popover-header-padding-y: .5rem !default;\n$popover-header-padding-x: .75rem !default;\n\n$popover-body-color: $body-color !default;\n$popover-body-padding-y: $popover-header-padding-y !default;\n$popover-body-padding-x: $popover-header-padding-x !default;\n\n$popover-arrow-width: 1rem !default;\n$popover-arrow-height: .5rem !default;\n$popover-arrow-color: $popover-bg !default;\n\n$popover-arrow-outer-color: fade-in($popover-border-color, .05) !default;\n\n\n// Toasts\n\n$toast-max-width: 350px !default;\n$toast-padding-x: .75rem !default;\n$toast-padding-y: .25rem !default;\n$toast-font-size: .875rem !default;\n$toast-color: null !default;\n$toast-background-color: rgba($white, .85) !default;\n$toast-border-width: 1px !default;\n$toast-border-color: rgba(0, 0, 0, .1) !default;\n$toast-border-radius: .25rem !default;\n$toast-box-shadow: 0 .25rem .75rem rgba($black, .1) !default;\n\n$toast-header-color: $gray-600 !default;\n$toast-header-background-color: rgba($white, .85) !default;\n$toast-header-border-color: rgba(0, 0, 0, .05) !default;\n\n\n// Badges\n\n$badge-font-size: 75% !default;\n$badge-font-weight: $font-weight-bold !default;\n$badge-padding-y: .25em !default;\n$badge-padding-x: .4em !default;\n$badge-border-radius: $border-radius !default;\n\n$badge-transition: $btn-transition !default;\n$badge-focus-width: $input-btn-focus-width !default;\n\n$badge-pill-padding-x: .6em !default;\n// Use a higher than normal value to ensure completely rounded edges when\n// customizing padding or font-size on labels.\n$badge-pill-border-radius: 10rem !default;\n\n\n// Modals\n\n// Padding applied to the modal body\n$modal-inner-padding: 1rem !default;\n\n// Margin between elements in footer, must be lower than or equal to 2 * $modal-inner-padding\n$modal-footer-margin-between: .5rem !default;\n\n$modal-dialog-margin: .5rem !default;\n$modal-dialog-margin-y-sm-up: 1.75rem !default;\n\n$modal-title-line-height: $line-height-base !default;\n\n$modal-content-color: null !default;\n$modal-content-bg: $white !default;\n$modal-content-border-color: rgba($black, .2) !default;\n$modal-content-border-width: $border-width !default;\n$modal-content-border-radius: $border-radius-lg !default;\n$modal-content-inner-border-radius: subtract($modal-content-border-radius, $modal-content-border-width) !default;\n$modal-content-box-shadow-xs: 0 .25rem .5rem rgba($black, .5) !default;\n$modal-content-box-shadow-sm-up: 0 .5rem 1rem rgba($black, .5) !default;\n\n$modal-backdrop-bg: $black !default;\n$modal-backdrop-opacity: .5 !default;\n$modal-header-border-color: $border-color !default;\n$modal-footer-border-color: $modal-header-border-color !default;\n$modal-header-border-width: $modal-content-border-width !default;\n$modal-footer-border-width: $modal-header-border-width !default;\n$modal-header-padding-y: 1rem !default;\n$modal-header-padding-x: 1rem !default;\n$modal-header-padding: $modal-header-padding-y $modal-header-padding-x !default; // Keep this for backwards compatibility\n\n$modal-xl: 1140px !default;\n$modal-lg: 800px !default;\n$modal-md: 500px !default;\n$modal-sm: 300px !default;\n\n$modal-fade-transform: translate(0, -50px) !default;\n$modal-show-transform: none !default;\n$modal-transition: transform .3s ease-out !default;\n$modal-scale-transform: scale(1.02) !default;\n\n\n// Alerts\n//\n// Define alert colors, border radius, and padding.\n\n$alert-padding-y: .75rem !default;\n$alert-padding-x: 1.25rem !default;\n$alert-margin-bottom: 1rem !default;\n$alert-border-radius: $border-radius !default;\n$alert-link-font-weight: $font-weight-bold !default;\n$alert-border-width: $border-width !default;\n\n$alert-bg-level: -10 !default;\n$alert-border-level: -9 !default;\n$alert-color-level: 6 !default;\n\n\n// Progress bars\n\n$progress-height: 1rem !default;\n$progress-font-size: $font-size-base * .75 !default;\n$progress-bg: $gray-200 !default;\n$progress-border-radius: $border-radius !default;\n$progress-box-shadow: inset 0 .1rem .1rem rgba($black, .1) !default;\n$progress-bar-color: $white !default;\n$progress-bar-bg: theme-color(\"primary\") !default;\n$progress-bar-animation-timing: 1s linear infinite !default;\n$progress-bar-transition: width .6s ease !default;\n\n\n// List group\n\n$list-group-color: null !default;\n$list-group-bg: $white !default;\n$list-group-border-color: rgba($black, .125) !default;\n$list-group-border-width: $border-width !default;\n$list-group-border-radius: $border-radius !default;\n\n$list-group-item-padding-y: .75rem !default;\n$list-group-item-padding-x: 1.25rem !default;\n\n$list-group-hover-bg: $gray-100 !default;\n$list-group-active-color: $component-active-color !default;\n$list-group-active-bg: $component-active-bg !default;\n$list-group-active-border-color: $list-group-active-bg !default;\n\n$list-group-disabled-color: $gray-600 !default;\n$list-group-disabled-bg: $list-group-bg !default;\n\n$list-group-action-color: $gray-700 !default;\n$list-group-action-hover-color: $list-group-action-color !default;\n\n$list-group-action-active-color: $body-color !default;\n$list-group-action-active-bg: $gray-200 !default;\n\n\n// Image thumbnails\n\n$thumbnail-padding: .25rem !default;\n$thumbnail-bg: $body-bg !default;\n$thumbnail-border-width: $border-width !default;\n$thumbnail-border-color: $gray-300 !default;\n$thumbnail-border-radius: $border-radius !default;\n$thumbnail-box-shadow: 0 1px 2px rgba($black, .075) !default;\n\n\n// Figures\n\n$figure-caption-font-size: 90% !default;\n$figure-caption-color: $gray-600 !default;\n\n\n// Breadcrumbs\n\n$breadcrumb-font-size: null !default;\n\n$breadcrumb-padding-y: .75rem !default;\n$breadcrumb-padding-x: 1rem !default;\n$breadcrumb-item-padding: .5rem !default;\n\n$breadcrumb-margin-bottom: 1rem !default;\n\n$breadcrumb-bg: $gray-200 !default;\n$breadcrumb-divider-color: $gray-600 !default;\n$breadcrumb-active-color: $gray-600 !default;\n$breadcrumb-divider: quote(\"/\") !default;\n\n$breadcrumb-border-radius: $border-radius !default;\n\n\n// Carousel\n\n$carousel-control-color: $white !default;\n$carousel-control-width: 15% !default;\n$carousel-control-opacity: .5 !default;\n$carousel-control-hover-opacity: .9 !default;\n$carousel-control-transition: opacity .15s ease !default;\n\n$carousel-indicator-width: 30px !default;\n$carousel-indicator-height: 3px !default;\n$carousel-indicator-hit-area-height: 10px !default;\n$carousel-indicator-spacer: 3px !default;\n$carousel-indicator-active-bg: $white !default;\n$carousel-indicator-transition: opacity .6s ease !default;\n\n$carousel-caption-width: 70% !default;\n$carousel-caption-color: $white !default;\n\n$carousel-control-icon-width: 20px !default;\n\n$carousel-control-prev-icon-bg: url(\"data:image/svg+xml,\") !default;\n$carousel-control-next-icon-bg: url(\"data:image/svg+xml,\") !default;\n\n$carousel-transition-duration: .6s !default;\n$carousel-transition: transform $carousel-transition-duration ease-in-out !default; // Define transform transition first if using multiple transitions (e.g., `transform 2s ease, opacity .5s ease-out`)\n\n\n// Spinners\n\n$spinner-width: 2rem !default;\n$spinner-height: $spinner-width !default;\n$spinner-border-width: .25em !default;\n\n$spinner-width-sm: 1rem !default;\n$spinner-height-sm: $spinner-width-sm !default;\n$spinner-border-width-sm: .2em !default;\n\n\n// Close\n\n$close-font-size: $font-size-base * 1.5 !default;\n$close-font-weight: $font-weight-bold !default;\n$close-color: $black !default;\n$close-text-shadow: 0 1px 0 $white !default;\n\n\n// Code\n\n$code-font-size: 87.5% !default;\n$code-color: $pink !default;\n\n$kbd-padding-y: .2rem !default;\n$kbd-padding-x: .4rem !default;\n$kbd-font-size: $code-font-size !default;\n$kbd-color: $white !default;\n$kbd-bg: $gray-900 !default;\n\n$pre-color: $gray-900 !default;\n$pre-scrollable-max-height: 340px !default;\n\n\n// Utilities\n\n$displays: none, inline, inline-block, block, table, table-row, table-cell, flex, inline-flex !default;\n$overflows: auto, hidden !default;\n$positions: static, relative, absolute, fixed, sticky !default;\n$user-selects: all, auto, none !default;\n\n\n// Printing\n\n$print-page-size: a3 !default;\n$print-body-min-width: map-get($grid-breakpoints, \"lg\") !default;\n","// Framework grid generation\n//\n// Used only by Bootstrap to generate the correct number of grid classes given\n// any value of `$grid-columns`.\n\n@mixin make-grid-columns($columns: $grid-columns, $gutter: $grid-gutter-width, $breakpoints: $grid-breakpoints) {\n // Common properties for all breakpoints\n %grid-column {\n position: relative;\n width: 100%;\n padding-right: $gutter / 2;\n padding-left: $gutter / 2;\n }\n\n @each $breakpoint in map-keys($breakpoints) {\n $infix: breakpoint-infix($breakpoint, $breakpoints);\n\n @if $columns > 0 {\n // Allow columns to stretch full width below their breakpoints\n @for $i from 1 through $columns {\n .col#{$infix}-#{$i} {\n @extend %grid-column;\n }\n }\n }\n\n .col#{$infix},\n .col#{$infix}-auto {\n @extend %grid-column;\n }\n\n @include media-breakpoint-up($breakpoint, $breakpoints) {\n // Provide basic `.col-{bp}` classes for equal-width flexbox columns\n .col#{$infix} {\n flex-basis: 0;\n flex-grow: 1;\n max-width: 100%;\n }\n\n @if $grid-row-columns > 0 {\n @for $i from 1 through $grid-row-columns {\n .row-cols#{$infix}-#{$i} {\n @include row-cols($i);\n }\n }\n }\n\n .col#{$infix}-auto {\n @include make-col-auto();\n }\n\n @if $columns > 0 {\n @for $i from 1 through $columns {\n .col#{$infix}-#{$i} {\n @include make-col($i, $columns);\n }\n }\n }\n\n .order#{$infix}-first { order: -1; }\n\n .order#{$infix}-last { order: $columns + 1; }\n\n @for $i from 0 through $columns {\n .order#{$infix}-#{$i} { order: $i; }\n }\n\n @if $columns > 0 {\n // `$columns - 1` because offsetting by the width of an entire row isn't possible\n @for $i from 0 through ($columns - 1) {\n @if not ($infix == \"\" and $i == 0) { // Avoid emitting useless .offset-0\n .offset#{$infix}-#{$i} {\n @include make-col-offset($i, $columns);\n }\n }\n }\n }\n }\n }\n}\n","// stylelint-disable declaration-no-important\n\n//\n// Utilities for common `display` values\n//\n\n@each $breakpoint in map-keys($grid-breakpoints) {\n @include media-breakpoint-up($breakpoint) {\n $infix: breakpoint-infix($breakpoint, $grid-breakpoints);\n\n @each $value in $displays {\n .d#{$infix}-#{$value} { display: $value !important; }\n }\n }\n}\n\n\n//\n// Utilities for toggling `display` in print\n//\n\n@media print {\n @each $value in $displays {\n .d-print-#{$value} { display: $value !important; }\n }\n}\n","// stylelint-disable declaration-no-important\n\n// Flex variation\n//\n// Custom styles for additional flex alignment options.\n\n@each $breakpoint in map-keys($grid-breakpoints) {\n @include media-breakpoint-up($breakpoint) {\n $infix: breakpoint-infix($breakpoint, $grid-breakpoints);\n\n .flex#{$infix}-row { flex-direction: row !important; }\n .flex#{$infix}-column { flex-direction: column !important; }\n .flex#{$infix}-row-reverse { flex-direction: row-reverse !important; }\n .flex#{$infix}-column-reverse { flex-direction: column-reverse !important; }\n\n .flex#{$infix}-wrap { flex-wrap: wrap !important; }\n .flex#{$infix}-nowrap { flex-wrap: nowrap !important; }\n .flex#{$infix}-wrap-reverse { flex-wrap: wrap-reverse !important; }\n .flex#{$infix}-fill { flex: 1 1 auto !important; }\n .flex#{$infix}-grow-0 { flex-grow: 0 !important; }\n .flex#{$infix}-grow-1 { flex-grow: 1 !important; }\n .flex#{$infix}-shrink-0 { flex-shrink: 0 !important; }\n .flex#{$infix}-shrink-1 { flex-shrink: 1 !important; }\n\n .justify-content#{$infix}-start { justify-content: flex-start !important; }\n .justify-content#{$infix}-end { justify-content: flex-end !important; }\n .justify-content#{$infix}-center { justify-content: center !important; }\n .justify-content#{$infix}-between { justify-content: space-between !important; }\n .justify-content#{$infix}-around { justify-content: space-around !important; }\n\n .align-items#{$infix}-start { align-items: flex-start !important; }\n .align-items#{$infix}-end { align-items: flex-end !important; }\n .align-items#{$infix}-center { align-items: center !important; }\n .align-items#{$infix}-baseline { align-items: baseline !important; }\n .align-items#{$infix}-stretch { align-items: stretch !important; }\n\n .align-content#{$infix}-start { align-content: flex-start !important; }\n .align-content#{$infix}-end { align-content: flex-end !important; }\n .align-content#{$infix}-center { align-content: center !important; }\n .align-content#{$infix}-between { align-content: space-between !important; }\n .align-content#{$infix}-around { align-content: space-around !important; }\n .align-content#{$infix}-stretch { align-content: stretch !important; }\n\n .align-self#{$infix}-auto { align-self: auto !important; }\n .align-self#{$infix}-start { align-self: flex-start !important; }\n .align-self#{$infix}-end { align-self: flex-end !important; }\n .align-self#{$infix}-center { align-self: center !important; }\n .align-self#{$infix}-baseline { align-self: baseline !important; }\n .align-self#{$infix}-stretch { align-self: stretch !important; }\n }\n}\n","// stylelint-disable declaration-no-important\n\n// Margin and Padding\n\n@each $breakpoint in map-keys($grid-breakpoints) {\n @include media-breakpoint-up($breakpoint) {\n $infix: breakpoint-infix($breakpoint, $grid-breakpoints);\n\n @each $prop, $abbrev in (margin: m, padding: p) {\n @each $size, $length in $spacers {\n .#{$abbrev}#{$infix}-#{$size} { #{$prop}: $length !important; }\n .#{$abbrev}t#{$infix}-#{$size},\n .#{$abbrev}y#{$infix}-#{$size} {\n #{$prop}-top: $length !important;\n }\n .#{$abbrev}r#{$infix}-#{$size},\n .#{$abbrev}x#{$infix}-#{$size} {\n #{$prop}-right: $length !important;\n }\n .#{$abbrev}b#{$infix}-#{$size},\n .#{$abbrev}y#{$infix}-#{$size} {\n #{$prop}-bottom: $length !important;\n }\n .#{$abbrev}l#{$infix}-#{$size},\n .#{$abbrev}x#{$infix}-#{$size} {\n #{$prop}-left: $length !important;\n }\n }\n }\n\n // Negative margins (e.g., where `.mb-n1` is negative version of `.mb-1`)\n @each $size, $length in $spacers {\n @if $size != 0 {\n .m#{$infix}-n#{$size} { margin: -$length !important; }\n .mt#{$infix}-n#{$size},\n .my#{$infix}-n#{$size} {\n margin-top: -$length !important;\n }\n .mr#{$infix}-n#{$size},\n .mx#{$infix}-n#{$size} {\n margin-right: -$length !important;\n }\n .mb#{$infix}-n#{$size},\n .my#{$infix}-n#{$size} {\n margin-bottom: -$length !important;\n }\n .ml#{$infix}-n#{$size},\n .mx#{$infix}-n#{$size} {\n margin-left: -$length !important;\n }\n }\n }\n\n // Some special margin utils\n .m#{$infix}-auto { margin: auto !important; }\n .mt#{$infix}-auto,\n .my#{$infix}-auto {\n margin-top: auto !important;\n }\n .mr#{$infix}-auto,\n .mx#{$infix}-auto {\n margin-right: auto !important;\n }\n .mb#{$infix}-auto,\n .my#{$infix}-auto {\n margin-bottom: auto !important;\n }\n .ml#{$infix}-auto,\n .mx#{$infix}-auto {\n margin-left: auto !important;\n }\n }\n}\n"]} \ No newline at end of file diff --git a/node_modules/bootstrap/dist/css/bootstrap-grid.min.css b/node_modules/bootstrap/dist/css/bootstrap-grid.min.css deleted file mode 100644 index d323f93f..00000000 --- a/node_modules/bootstrap/dist/css/bootstrap-grid.min.css +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * Bootstrap Grid v4.5.3 (https://getbootstrap.com/) - * Copyright 2011-2020 The Bootstrap Authors - * Copyright 2011-2020 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) - */html{box-sizing:border-box;-ms-overflow-style:scrollbar}*,::after,::before{box-sizing:inherit}.container,.container-fluid,.container-lg,.container-md,.container-sm,.container-xl{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:576px){.container,.container-sm{max-width:540px}}@media (min-width:768px){.container,.container-md,.container-sm{max-width:720px}}@media (min-width:992px){.container,.container-lg,.container-md,.container-sm{max-width:960px}}@media (min-width:1200px){.container,.container-lg,.container-md,.container-sm,.container-xl{max-width:1140px}}.row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}.no-gutters{margin-right:0;margin-left:0}.no-gutters>.col,.no-gutters>[class*=col-]{padding-right:0;padding-left:0}.col,.col-1,.col-10,.col-11,.col-12,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9,.col-auto,.col-lg,.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-auto,.col-md,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-auto,.col-sm,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-auto,.col-xl,.col-xl-1,.col-xl-10,.col-xl-11,.col-xl-12,.col-xl-2,.col-xl-3,.col-xl-4,.col-xl-5,.col-xl-6,.col-xl-7,.col-xl-8,.col-xl-9,.col-xl-auto{position:relative;width:100%;padding-right:15px;padding-left:15px}.col{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.row-cols-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.row-cols-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.row-cols-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.row-cols-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.row-cols-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}.row-cols-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-first{-ms-flex-order:-1;order:-1}.order-last{-ms-flex-order:13;order:13}.order-0{-ms-flex-order:0;order:0}.order-1{-ms-flex-order:1;order:1}.order-2{-ms-flex-order:2;order:2}.order-3{-ms-flex-order:3;order:3}.order-4{-ms-flex-order:4;order:4}.order-5{-ms-flex-order:5;order:5}.order-6{-ms-flex-order:6;order:6}.order-7{-ms-flex-order:7;order:7}.order-8{-ms-flex-order:8;order:8}.order-9{-ms-flex-order:9;order:9}.order-10{-ms-flex-order:10;order:10}.order-11{-ms-flex-order:11;order:11}.order-12{-ms-flex-order:12;order:12}.offset-1{margin-left:8.333333%}.offset-2{margin-left:16.666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.333333%}.offset-5{margin-left:41.666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.333333%}.offset-8{margin-left:66.666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.333333%}.offset-11{margin-left:91.666667%}@media (min-width:576px){.col-sm{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.row-cols-sm-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.row-cols-sm-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.row-cols-sm-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.row-cols-sm-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.row-cols-sm-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}.row-cols-sm-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-sm-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-sm-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-sm-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-sm-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-sm-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-sm-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-sm-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-sm-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-sm-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-sm-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-sm-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-sm-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-sm-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-sm-first{-ms-flex-order:-1;order:-1}.order-sm-last{-ms-flex-order:13;order:13}.order-sm-0{-ms-flex-order:0;order:0}.order-sm-1{-ms-flex-order:1;order:1}.order-sm-2{-ms-flex-order:2;order:2}.order-sm-3{-ms-flex-order:3;order:3}.order-sm-4{-ms-flex-order:4;order:4}.order-sm-5{-ms-flex-order:5;order:5}.order-sm-6{-ms-flex-order:6;order:6}.order-sm-7{-ms-flex-order:7;order:7}.order-sm-8{-ms-flex-order:8;order:8}.order-sm-9{-ms-flex-order:9;order:9}.order-sm-10{-ms-flex-order:10;order:10}.order-sm-11{-ms-flex-order:11;order:11}.order-sm-12{-ms-flex-order:12;order:12}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.333333%}.offset-sm-2{margin-left:16.666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.333333%}.offset-sm-5{margin-left:41.666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.333333%}.offset-sm-8{margin-left:66.666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.333333%}.offset-sm-11{margin-left:91.666667%}}@media (min-width:768px){.col-md{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.row-cols-md-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.row-cols-md-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.row-cols-md-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.row-cols-md-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.row-cols-md-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}.row-cols-md-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-md-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-md-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-md-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-md-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-md-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-md-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-md-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-md-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-md-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-md-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-md-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-md-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-md-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-md-first{-ms-flex-order:-1;order:-1}.order-md-last{-ms-flex-order:13;order:13}.order-md-0{-ms-flex-order:0;order:0}.order-md-1{-ms-flex-order:1;order:1}.order-md-2{-ms-flex-order:2;order:2}.order-md-3{-ms-flex-order:3;order:3}.order-md-4{-ms-flex-order:4;order:4}.order-md-5{-ms-flex-order:5;order:5}.order-md-6{-ms-flex-order:6;order:6}.order-md-7{-ms-flex-order:7;order:7}.order-md-8{-ms-flex-order:8;order:8}.order-md-9{-ms-flex-order:9;order:9}.order-md-10{-ms-flex-order:10;order:10}.order-md-11{-ms-flex-order:11;order:11}.order-md-12{-ms-flex-order:12;order:12}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.333333%}.offset-md-2{margin-left:16.666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.333333%}.offset-md-5{margin-left:41.666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.333333%}.offset-md-8{margin-left:66.666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.333333%}.offset-md-11{margin-left:91.666667%}}@media (min-width:992px){.col-lg{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.row-cols-lg-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.row-cols-lg-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.row-cols-lg-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.row-cols-lg-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.row-cols-lg-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}.row-cols-lg-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-lg-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-lg-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-lg-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-lg-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-lg-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-lg-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-lg-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-lg-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-lg-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-lg-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-lg-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-lg-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-lg-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-lg-first{-ms-flex-order:-1;order:-1}.order-lg-last{-ms-flex-order:13;order:13}.order-lg-0{-ms-flex-order:0;order:0}.order-lg-1{-ms-flex-order:1;order:1}.order-lg-2{-ms-flex-order:2;order:2}.order-lg-3{-ms-flex-order:3;order:3}.order-lg-4{-ms-flex-order:4;order:4}.order-lg-5{-ms-flex-order:5;order:5}.order-lg-6{-ms-flex-order:6;order:6}.order-lg-7{-ms-flex-order:7;order:7}.order-lg-8{-ms-flex-order:8;order:8}.order-lg-9{-ms-flex-order:9;order:9}.order-lg-10{-ms-flex-order:10;order:10}.order-lg-11{-ms-flex-order:11;order:11}.order-lg-12{-ms-flex-order:12;order:12}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.333333%}.offset-lg-2{margin-left:16.666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.333333%}.offset-lg-5{margin-left:41.666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.333333%}.offset-lg-8{margin-left:66.666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.333333%}.offset-lg-11{margin-left:91.666667%}}@media (min-width:1200px){.col-xl{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.row-cols-xl-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.row-cols-xl-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.row-cols-xl-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.row-cols-xl-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.row-cols-xl-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}.row-cols-xl-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-xl-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-xl-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-xl-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-xl-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-xl-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-xl-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-xl-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-xl-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-xl-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-xl-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-xl-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-xl-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-xl-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-xl-first{-ms-flex-order:-1;order:-1}.order-xl-last{-ms-flex-order:13;order:13}.order-xl-0{-ms-flex-order:0;order:0}.order-xl-1{-ms-flex-order:1;order:1}.order-xl-2{-ms-flex-order:2;order:2}.order-xl-3{-ms-flex-order:3;order:3}.order-xl-4{-ms-flex-order:4;order:4}.order-xl-5{-ms-flex-order:5;order:5}.order-xl-6{-ms-flex-order:6;order:6}.order-xl-7{-ms-flex-order:7;order:7}.order-xl-8{-ms-flex-order:8;order:8}.order-xl-9{-ms-flex-order:9;order:9}.order-xl-10{-ms-flex-order:10;order:10}.order-xl-11{-ms-flex-order:11;order:11}.order-xl-12{-ms-flex-order:12;order:12}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.333333%}.offset-xl-2{margin-left:16.666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.333333%}.offset-xl-5{margin-left:41.666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.333333%}.offset-xl-8{margin-left:66.666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.333333%}.offset-xl-11{margin-left:91.666667%}}.d-none{display:none!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:-ms-flexbox!important;display:flex!important}.d-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}@media (min-width:576px){.d-sm-none{display:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:-ms-flexbox!important;display:flex!important}.d-sm-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}}@media (min-width:768px){.d-md-none{display:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:-ms-flexbox!important;display:flex!important}.d-md-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}}@media (min-width:992px){.d-lg-none{display:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:-ms-flexbox!important;display:flex!important}.d-lg-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}}@media (min-width:1200px){.d-xl-none{display:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:-ms-flexbox!important;display:flex!important}.d-xl-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}}@media print{.d-print-none{display:none!important}.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:-ms-flexbox!important;display:flex!important}.d-print-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}}.flex-row{-ms-flex-direction:row!important;flex-direction:row!important}.flex-column{-ms-flex-direction:column!important;flex-direction:column!important}.flex-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.flex-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.flex-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.flex-fill{-ms-flex:1 1 auto!important;flex:1 1 auto!important}.flex-grow-0{-ms-flex-positive:0!important;flex-grow:0!important}.flex-grow-1{-ms-flex-positive:1!important;flex-grow:1!important}.flex-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.flex-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.justify-content-start{-ms-flex-pack:start!important;justify-content:flex-start!important}.justify-content-end{-ms-flex-pack:end!important;justify-content:flex-end!important}.justify-content-center{-ms-flex-pack:center!important;justify-content:center!important}.justify-content-between{-ms-flex-pack:justify!important;justify-content:space-between!important}.justify-content-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-start{-ms-flex-align:start!important;align-items:flex-start!important}.align-items-end{-ms-flex-align:end!important;align-items:flex-end!important}.align-items-center{-ms-flex-align:center!important;align-items:center!important}.align-items-baseline{-ms-flex-align:baseline!important;align-items:baseline!important}.align-items-stretch{-ms-flex-align:stretch!important;align-items:stretch!important}.align-content-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}@media (min-width:576px){.flex-sm-row{-ms-flex-direction:row!important;flex-direction:row!important}.flex-sm-column{-ms-flex-direction:column!important;flex-direction:column!important}.flex-sm-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.flex-sm-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.flex-sm-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-sm-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-sm-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.flex-sm-fill{-ms-flex:1 1 auto!important;flex:1 1 auto!important}.flex-sm-grow-0{-ms-flex-positive:0!important;flex-grow:0!important}.flex-sm-grow-1{-ms-flex-positive:1!important;flex-grow:1!important}.flex-sm-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.flex-sm-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.justify-content-sm-start{-ms-flex-pack:start!important;justify-content:flex-start!important}.justify-content-sm-end{-ms-flex-pack:end!important;justify-content:flex-end!important}.justify-content-sm-center{-ms-flex-pack:center!important;justify-content:center!important}.justify-content-sm-between{-ms-flex-pack:justify!important;justify-content:space-between!important}.justify-content-sm-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-sm-start{-ms-flex-align:start!important;align-items:flex-start!important}.align-items-sm-end{-ms-flex-align:end!important;align-items:flex-end!important}.align-items-sm-center{-ms-flex-align:center!important;align-items:center!important}.align-items-sm-baseline{-ms-flex-align:baseline!important;align-items:baseline!important}.align-items-sm-stretch{-ms-flex-align:stretch!important;align-items:stretch!important}.align-content-sm-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-sm-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-sm-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-sm-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-sm-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-sm-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-sm-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-sm-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-sm-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-sm-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-sm-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-sm-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}}@media (min-width:768px){.flex-md-row{-ms-flex-direction:row!important;flex-direction:row!important}.flex-md-column{-ms-flex-direction:column!important;flex-direction:column!important}.flex-md-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.flex-md-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.flex-md-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-md-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-md-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.flex-md-fill{-ms-flex:1 1 auto!important;flex:1 1 auto!important}.flex-md-grow-0{-ms-flex-positive:0!important;flex-grow:0!important}.flex-md-grow-1{-ms-flex-positive:1!important;flex-grow:1!important}.flex-md-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.flex-md-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.justify-content-md-start{-ms-flex-pack:start!important;justify-content:flex-start!important}.justify-content-md-end{-ms-flex-pack:end!important;justify-content:flex-end!important}.justify-content-md-center{-ms-flex-pack:center!important;justify-content:center!important}.justify-content-md-between{-ms-flex-pack:justify!important;justify-content:space-between!important}.justify-content-md-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-md-start{-ms-flex-align:start!important;align-items:flex-start!important}.align-items-md-end{-ms-flex-align:end!important;align-items:flex-end!important}.align-items-md-center{-ms-flex-align:center!important;align-items:center!important}.align-items-md-baseline{-ms-flex-align:baseline!important;align-items:baseline!important}.align-items-md-stretch{-ms-flex-align:stretch!important;align-items:stretch!important}.align-content-md-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-md-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-md-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-md-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-md-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-md-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-md-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-md-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-md-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-md-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-md-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-md-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}}@media (min-width:992px){.flex-lg-row{-ms-flex-direction:row!important;flex-direction:row!important}.flex-lg-column{-ms-flex-direction:column!important;flex-direction:column!important}.flex-lg-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.flex-lg-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.flex-lg-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-lg-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-lg-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.flex-lg-fill{-ms-flex:1 1 auto!important;flex:1 1 auto!important}.flex-lg-grow-0{-ms-flex-positive:0!important;flex-grow:0!important}.flex-lg-grow-1{-ms-flex-positive:1!important;flex-grow:1!important}.flex-lg-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.flex-lg-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.justify-content-lg-start{-ms-flex-pack:start!important;justify-content:flex-start!important}.justify-content-lg-end{-ms-flex-pack:end!important;justify-content:flex-end!important}.justify-content-lg-center{-ms-flex-pack:center!important;justify-content:center!important}.justify-content-lg-between{-ms-flex-pack:justify!important;justify-content:space-between!important}.justify-content-lg-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-lg-start{-ms-flex-align:start!important;align-items:flex-start!important}.align-items-lg-end{-ms-flex-align:end!important;align-items:flex-end!important}.align-items-lg-center{-ms-flex-align:center!important;align-items:center!important}.align-items-lg-baseline{-ms-flex-align:baseline!important;align-items:baseline!important}.align-items-lg-stretch{-ms-flex-align:stretch!important;align-items:stretch!important}.align-content-lg-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-lg-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-lg-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-lg-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-lg-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-lg-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-lg-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-lg-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-lg-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-lg-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-lg-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-lg-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}}@media (min-width:1200px){.flex-xl-row{-ms-flex-direction:row!important;flex-direction:row!important}.flex-xl-column{-ms-flex-direction:column!important;flex-direction:column!important}.flex-xl-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.flex-xl-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.flex-xl-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-xl-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-xl-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.flex-xl-fill{-ms-flex:1 1 auto!important;flex:1 1 auto!important}.flex-xl-grow-0{-ms-flex-positive:0!important;flex-grow:0!important}.flex-xl-grow-1{-ms-flex-positive:1!important;flex-grow:1!important}.flex-xl-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.flex-xl-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.justify-content-xl-start{-ms-flex-pack:start!important;justify-content:flex-start!important}.justify-content-xl-end{-ms-flex-pack:end!important;justify-content:flex-end!important}.justify-content-xl-center{-ms-flex-pack:center!important;justify-content:center!important}.justify-content-xl-between{-ms-flex-pack:justify!important;justify-content:space-between!important}.justify-content-xl-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-xl-start{-ms-flex-align:start!important;align-items:flex-start!important}.align-items-xl-end{-ms-flex-align:end!important;align-items:flex-end!important}.align-items-xl-center{-ms-flex-align:center!important;align-items:center!important}.align-items-xl-baseline{-ms-flex-align:baseline!important;align-items:baseline!important}.align-items-xl-stretch{-ms-flex-align:stretch!important;align-items:stretch!important}.align-content-xl-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-xl-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-xl-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-xl-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-xl-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-xl-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-xl-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-xl-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-xl-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-xl-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-xl-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-xl-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}}.m-0{margin:0!important}.mt-0,.my-0{margin-top:0!important}.mr-0,.mx-0{margin-right:0!important}.mb-0,.my-0{margin-bottom:0!important}.ml-0,.mx-0{margin-left:0!important}.m-1{margin:.25rem!important}.mt-1,.my-1{margin-top:.25rem!important}.mr-1,.mx-1{margin-right:.25rem!important}.mb-1,.my-1{margin-bottom:.25rem!important}.ml-1,.mx-1{margin-left:.25rem!important}.m-2{margin:.5rem!important}.mt-2,.my-2{margin-top:.5rem!important}.mr-2,.mx-2{margin-right:.5rem!important}.mb-2,.my-2{margin-bottom:.5rem!important}.ml-2,.mx-2{margin-left:.5rem!important}.m-3{margin:1rem!important}.mt-3,.my-3{margin-top:1rem!important}.mr-3,.mx-3{margin-right:1rem!important}.mb-3,.my-3{margin-bottom:1rem!important}.ml-3,.mx-3{margin-left:1rem!important}.m-4{margin:1.5rem!important}.mt-4,.my-4{margin-top:1.5rem!important}.mr-4,.mx-4{margin-right:1.5rem!important}.mb-4,.my-4{margin-bottom:1.5rem!important}.ml-4,.mx-4{margin-left:1.5rem!important}.m-5{margin:3rem!important}.mt-5,.my-5{margin-top:3rem!important}.mr-5,.mx-5{margin-right:3rem!important}.mb-5,.my-5{margin-bottom:3rem!important}.ml-5,.mx-5{margin-left:3rem!important}.p-0{padding:0!important}.pt-0,.py-0{padding-top:0!important}.pr-0,.px-0{padding-right:0!important}.pb-0,.py-0{padding-bottom:0!important}.pl-0,.px-0{padding-left:0!important}.p-1{padding:.25rem!important}.pt-1,.py-1{padding-top:.25rem!important}.pr-1,.px-1{padding-right:.25rem!important}.pb-1,.py-1{padding-bottom:.25rem!important}.pl-1,.px-1{padding-left:.25rem!important}.p-2{padding:.5rem!important}.pt-2,.py-2{padding-top:.5rem!important}.pr-2,.px-2{padding-right:.5rem!important}.pb-2,.py-2{padding-bottom:.5rem!important}.pl-2,.px-2{padding-left:.5rem!important}.p-3{padding:1rem!important}.pt-3,.py-3{padding-top:1rem!important}.pr-3,.px-3{padding-right:1rem!important}.pb-3,.py-3{padding-bottom:1rem!important}.pl-3,.px-3{padding-left:1rem!important}.p-4{padding:1.5rem!important}.pt-4,.py-4{padding-top:1.5rem!important}.pr-4,.px-4{padding-right:1.5rem!important}.pb-4,.py-4{padding-bottom:1.5rem!important}.pl-4,.px-4{padding-left:1.5rem!important}.p-5{padding:3rem!important}.pt-5,.py-5{padding-top:3rem!important}.pr-5,.px-5{padding-right:3rem!important}.pb-5,.py-5{padding-bottom:3rem!important}.pl-5,.px-5{padding-left:3rem!important}.m-n1{margin:-.25rem!important}.mt-n1,.my-n1{margin-top:-.25rem!important}.mr-n1,.mx-n1{margin-right:-.25rem!important}.mb-n1,.my-n1{margin-bottom:-.25rem!important}.ml-n1,.mx-n1{margin-left:-.25rem!important}.m-n2{margin:-.5rem!important}.mt-n2,.my-n2{margin-top:-.5rem!important}.mr-n2,.mx-n2{margin-right:-.5rem!important}.mb-n2,.my-n2{margin-bottom:-.5rem!important}.ml-n2,.mx-n2{margin-left:-.5rem!important}.m-n3{margin:-1rem!important}.mt-n3,.my-n3{margin-top:-1rem!important}.mr-n3,.mx-n3{margin-right:-1rem!important}.mb-n3,.my-n3{margin-bottom:-1rem!important}.ml-n3,.mx-n3{margin-left:-1rem!important}.m-n4{margin:-1.5rem!important}.mt-n4,.my-n4{margin-top:-1.5rem!important}.mr-n4,.mx-n4{margin-right:-1.5rem!important}.mb-n4,.my-n4{margin-bottom:-1.5rem!important}.ml-n4,.mx-n4{margin-left:-1.5rem!important}.m-n5{margin:-3rem!important}.mt-n5,.my-n5{margin-top:-3rem!important}.mr-n5,.mx-n5{margin-right:-3rem!important}.mb-n5,.my-n5{margin-bottom:-3rem!important}.ml-n5,.mx-n5{margin-left:-3rem!important}.m-auto{margin:auto!important}.mt-auto,.my-auto{margin-top:auto!important}.mr-auto,.mx-auto{margin-right:auto!important}.mb-auto,.my-auto{margin-bottom:auto!important}.ml-auto,.mx-auto{margin-left:auto!important}@media (min-width:576px){.m-sm-0{margin:0!important}.mt-sm-0,.my-sm-0{margin-top:0!important}.mr-sm-0,.mx-sm-0{margin-right:0!important}.mb-sm-0,.my-sm-0{margin-bottom:0!important}.ml-sm-0,.mx-sm-0{margin-left:0!important}.m-sm-1{margin:.25rem!important}.mt-sm-1,.my-sm-1{margin-top:.25rem!important}.mr-sm-1,.mx-sm-1{margin-right:.25rem!important}.mb-sm-1,.my-sm-1{margin-bottom:.25rem!important}.ml-sm-1,.mx-sm-1{margin-left:.25rem!important}.m-sm-2{margin:.5rem!important}.mt-sm-2,.my-sm-2{margin-top:.5rem!important}.mr-sm-2,.mx-sm-2{margin-right:.5rem!important}.mb-sm-2,.my-sm-2{margin-bottom:.5rem!important}.ml-sm-2,.mx-sm-2{margin-left:.5rem!important}.m-sm-3{margin:1rem!important}.mt-sm-3,.my-sm-3{margin-top:1rem!important}.mr-sm-3,.mx-sm-3{margin-right:1rem!important}.mb-sm-3,.my-sm-3{margin-bottom:1rem!important}.ml-sm-3,.mx-sm-3{margin-left:1rem!important}.m-sm-4{margin:1.5rem!important}.mt-sm-4,.my-sm-4{margin-top:1.5rem!important}.mr-sm-4,.mx-sm-4{margin-right:1.5rem!important}.mb-sm-4,.my-sm-4{margin-bottom:1.5rem!important}.ml-sm-4,.mx-sm-4{margin-left:1.5rem!important}.m-sm-5{margin:3rem!important}.mt-sm-5,.my-sm-5{margin-top:3rem!important}.mr-sm-5,.mx-sm-5{margin-right:3rem!important}.mb-sm-5,.my-sm-5{margin-bottom:3rem!important}.ml-sm-5,.mx-sm-5{margin-left:3rem!important}.p-sm-0{padding:0!important}.pt-sm-0,.py-sm-0{padding-top:0!important}.pr-sm-0,.px-sm-0{padding-right:0!important}.pb-sm-0,.py-sm-0{padding-bottom:0!important}.pl-sm-0,.px-sm-0{padding-left:0!important}.p-sm-1{padding:.25rem!important}.pt-sm-1,.py-sm-1{padding-top:.25rem!important}.pr-sm-1,.px-sm-1{padding-right:.25rem!important}.pb-sm-1,.py-sm-1{padding-bottom:.25rem!important}.pl-sm-1,.px-sm-1{padding-left:.25rem!important}.p-sm-2{padding:.5rem!important}.pt-sm-2,.py-sm-2{padding-top:.5rem!important}.pr-sm-2,.px-sm-2{padding-right:.5rem!important}.pb-sm-2,.py-sm-2{padding-bottom:.5rem!important}.pl-sm-2,.px-sm-2{padding-left:.5rem!important}.p-sm-3{padding:1rem!important}.pt-sm-3,.py-sm-3{padding-top:1rem!important}.pr-sm-3,.px-sm-3{padding-right:1rem!important}.pb-sm-3,.py-sm-3{padding-bottom:1rem!important}.pl-sm-3,.px-sm-3{padding-left:1rem!important}.p-sm-4{padding:1.5rem!important}.pt-sm-4,.py-sm-4{padding-top:1.5rem!important}.pr-sm-4,.px-sm-4{padding-right:1.5rem!important}.pb-sm-4,.py-sm-4{padding-bottom:1.5rem!important}.pl-sm-4,.px-sm-4{padding-left:1.5rem!important}.p-sm-5{padding:3rem!important}.pt-sm-5,.py-sm-5{padding-top:3rem!important}.pr-sm-5,.px-sm-5{padding-right:3rem!important}.pb-sm-5,.py-sm-5{padding-bottom:3rem!important}.pl-sm-5,.px-sm-5{padding-left:3rem!important}.m-sm-n1{margin:-.25rem!important}.mt-sm-n1,.my-sm-n1{margin-top:-.25rem!important}.mr-sm-n1,.mx-sm-n1{margin-right:-.25rem!important}.mb-sm-n1,.my-sm-n1{margin-bottom:-.25rem!important}.ml-sm-n1,.mx-sm-n1{margin-left:-.25rem!important}.m-sm-n2{margin:-.5rem!important}.mt-sm-n2,.my-sm-n2{margin-top:-.5rem!important}.mr-sm-n2,.mx-sm-n2{margin-right:-.5rem!important}.mb-sm-n2,.my-sm-n2{margin-bottom:-.5rem!important}.ml-sm-n2,.mx-sm-n2{margin-left:-.5rem!important}.m-sm-n3{margin:-1rem!important}.mt-sm-n3,.my-sm-n3{margin-top:-1rem!important}.mr-sm-n3,.mx-sm-n3{margin-right:-1rem!important}.mb-sm-n3,.my-sm-n3{margin-bottom:-1rem!important}.ml-sm-n3,.mx-sm-n3{margin-left:-1rem!important}.m-sm-n4{margin:-1.5rem!important}.mt-sm-n4,.my-sm-n4{margin-top:-1.5rem!important}.mr-sm-n4,.mx-sm-n4{margin-right:-1.5rem!important}.mb-sm-n4,.my-sm-n4{margin-bottom:-1.5rem!important}.ml-sm-n4,.mx-sm-n4{margin-left:-1.5rem!important}.m-sm-n5{margin:-3rem!important}.mt-sm-n5,.my-sm-n5{margin-top:-3rem!important}.mr-sm-n5,.mx-sm-n5{margin-right:-3rem!important}.mb-sm-n5,.my-sm-n5{margin-bottom:-3rem!important}.ml-sm-n5,.mx-sm-n5{margin-left:-3rem!important}.m-sm-auto{margin:auto!important}.mt-sm-auto,.my-sm-auto{margin-top:auto!important}.mr-sm-auto,.mx-sm-auto{margin-right:auto!important}.mb-sm-auto,.my-sm-auto{margin-bottom:auto!important}.ml-sm-auto,.mx-sm-auto{margin-left:auto!important}}@media (min-width:768px){.m-md-0{margin:0!important}.mt-md-0,.my-md-0{margin-top:0!important}.mr-md-0,.mx-md-0{margin-right:0!important}.mb-md-0,.my-md-0{margin-bottom:0!important}.ml-md-0,.mx-md-0{margin-left:0!important}.m-md-1{margin:.25rem!important}.mt-md-1,.my-md-1{margin-top:.25rem!important}.mr-md-1,.mx-md-1{margin-right:.25rem!important}.mb-md-1,.my-md-1{margin-bottom:.25rem!important}.ml-md-1,.mx-md-1{margin-left:.25rem!important}.m-md-2{margin:.5rem!important}.mt-md-2,.my-md-2{margin-top:.5rem!important}.mr-md-2,.mx-md-2{margin-right:.5rem!important}.mb-md-2,.my-md-2{margin-bottom:.5rem!important}.ml-md-2,.mx-md-2{margin-left:.5rem!important}.m-md-3{margin:1rem!important}.mt-md-3,.my-md-3{margin-top:1rem!important}.mr-md-3,.mx-md-3{margin-right:1rem!important}.mb-md-3,.my-md-3{margin-bottom:1rem!important}.ml-md-3,.mx-md-3{margin-left:1rem!important}.m-md-4{margin:1.5rem!important}.mt-md-4,.my-md-4{margin-top:1.5rem!important}.mr-md-4,.mx-md-4{margin-right:1.5rem!important}.mb-md-4,.my-md-4{margin-bottom:1.5rem!important}.ml-md-4,.mx-md-4{margin-left:1.5rem!important}.m-md-5{margin:3rem!important}.mt-md-5,.my-md-5{margin-top:3rem!important}.mr-md-5,.mx-md-5{margin-right:3rem!important}.mb-md-5,.my-md-5{margin-bottom:3rem!important}.ml-md-5,.mx-md-5{margin-left:3rem!important}.p-md-0{padding:0!important}.pt-md-0,.py-md-0{padding-top:0!important}.pr-md-0,.px-md-0{padding-right:0!important}.pb-md-0,.py-md-0{padding-bottom:0!important}.pl-md-0,.px-md-0{padding-left:0!important}.p-md-1{padding:.25rem!important}.pt-md-1,.py-md-1{padding-top:.25rem!important}.pr-md-1,.px-md-1{padding-right:.25rem!important}.pb-md-1,.py-md-1{padding-bottom:.25rem!important}.pl-md-1,.px-md-1{padding-left:.25rem!important}.p-md-2{padding:.5rem!important}.pt-md-2,.py-md-2{padding-top:.5rem!important}.pr-md-2,.px-md-2{padding-right:.5rem!important}.pb-md-2,.py-md-2{padding-bottom:.5rem!important}.pl-md-2,.px-md-2{padding-left:.5rem!important}.p-md-3{padding:1rem!important}.pt-md-3,.py-md-3{padding-top:1rem!important}.pr-md-3,.px-md-3{padding-right:1rem!important}.pb-md-3,.py-md-3{padding-bottom:1rem!important}.pl-md-3,.px-md-3{padding-left:1rem!important}.p-md-4{padding:1.5rem!important}.pt-md-4,.py-md-4{padding-top:1.5rem!important}.pr-md-4,.px-md-4{padding-right:1.5rem!important}.pb-md-4,.py-md-4{padding-bottom:1.5rem!important}.pl-md-4,.px-md-4{padding-left:1.5rem!important}.p-md-5{padding:3rem!important}.pt-md-5,.py-md-5{padding-top:3rem!important}.pr-md-5,.px-md-5{padding-right:3rem!important}.pb-md-5,.py-md-5{padding-bottom:3rem!important}.pl-md-5,.px-md-5{padding-left:3rem!important}.m-md-n1{margin:-.25rem!important}.mt-md-n1,.my-md-n1{margin-top:-.25rem!important}.mr-md-n1,.mx-md-n1{margin-right:-.25rem!important}.mb-md-n1,.my-md-n1{margin-bottom:-.25rem!important}.ml-md-n1,.mx-md-n1{margin-left:-.25rem!important}.m-md-n2{margin:-.5rem!important}.mt-md-n2,.my-md-n2{margin-top:-.5rem!important}.mr-md-n2,.mx-md-n2{margin-right:-.5rem!important}.mb-md-n2,.my-md-n2{margin-bottom:-.5rem!important}.ml-md-n2,.mx-md-n2{margin-left:-.5rem!important}.m-md-n3{margin:-1rem!important}.mt-md-n3,.my-md-n3{margin-top:-1rem!important}.mr-md-n3,.mx-md-n3{margin-right:-1rem!important}.mb-md-n3,.my-md-n3{margin-bottom:-1rem!important}.ml-md-n3,.mx-md-n3{margin-left:-1rem!important}.m-md-n4{margin:-1.5rem!important}.mt-md-n4,.my-md-n4{margin-top:-1.5rem!important}.mr-md-n4,.mx-md-n4{margin-right:-1.5rem!important}.mb-md-n4,.my-md-n4{margin-bottom:-1.5rem!important}.ml-md-n4,.mx-md-n4{margin-left:-1.5rem!important}.m-md-n5{margin:-3rem!important}.mt-md-n5,.my-md-n5{margin-top:-3rem!important}.mr-md-n5,.mx-md-n5{margin-right:-3rem!important}.mb-md-n5,.my-md-n5{margin-bottom:-3rem!important}.ml-md-n5,.mx-md-n5{margin-left:-3rem!important}.m-md-auto{margin:auto!important}.mt-md-auto,.my-md-auto{margin-top:auto!important}.mr-md-auto,.mx-md-auto{margin-right:auto!important}.mb-md-auto,.my-md-auto{margin-bottom:auto!important}.ml-md-auto,.mx-md-auto{margin-left:auto!important}}@media (min-width:992px){.m-lg-0{margin:0!important}.mt-lg-0,.my-lg-0{margin-top:0!important}.mr-lg-0,.mx-lg-0{margin-right:0!important}.mb-lg-0,.my-lg-0{margin-bottom:0!important}.ml-lg-0,.mx-lg-0{margin-left:0!important}.m-lg-1{margin:.25rem!important}.mt-lg-1,.my-lg-1{margin-top:.25rem!important}.mr-lg-1,.mx-lg-1{margin-right:.25rem!important}.mb-lg-1,.my-lg-1{margin-bottom:.25rem!important}.ml-lg-1,.mx-lg-1{margin-left:.25rem!important}.m-lg-2{margin:.5rem!important}.mt-lg-2,.my-lg-2{margin-top:.5rem!important}.mr-lg-2,.mx-lg-2{margin-right:.5rem!important}.mb-lg-2,.my-lg-2{margin-bottom:.5rem!important}.ml-lg-2,.mx-lg-2{margin-left:.5rem!important}.m-lg-3{margin:1rem!important}.mt-lg-3,.my-lg-3{margin-top:1rem!important}.mr-lg-3,.mx-lg-3{margin-right:1rem!important}.mb-lg-3,.my-lg-3{margin-bottom:1rem!important}.ml-lg-3,.mx-lg-3{margin-left:1rem!important}.m-lg-4{margin:1.5rem!important}.mt-lg-4,.my-lg-4{margin-top:1.5rem!important}.mr-lg-4,.mx-lg-4{margin-right:1.5rem!important}.mb-lg-4,.my-lg-4{margin-bottom:1.5rem!important}.ml-lg-4,.mx-lg-4{margin-left:1.5rem!important}.m-lg-5{margin:3rem!important}.mt-lg-5,.my-lg-5{margin-top:3rem!important}.mr-lg-5,.mx-lg-5{margin-right:3rem!important}.mb-lg-5,.my-lg-5{margin-bottom:3rem!important}.ml-lg-5,.mx-lg-5{margin-left:3rem!important}.p-lg-0{padding:0!important}.pt-lg-0,.py-lg-0{padding-top:0!important}.pr-lg-0,.px-lg-0{padding-right:0!important}.pb-lg-0,.py-lg-0{padding-bottom:0!important}.pl-lg-0,.px-lg-0{padding-left:0!important}.p-lg-1{padding:.25rem!important}.pt-lg-1,.py-lg-1{padding-top:.25rem!important}.pr-lg-1,.px-lg-1{padding-right:.25rem!important}.pb-lg-1,.py-lg-1{padding-bottom:.25rem!important}.pl-lg-1,.px-lg-1{padding-left:.25rem!important}.p-lg-2{padding:.5rem!important}.pt-lg-2,.py-lg-2{padding-top:.5rem!important}.pr-lg-2,.px-lg-2{padding-right:.5rem!important}.pb-lg-2,.py-lg-2{padding-bottom:.5rem!important}.pl-lg-2,.px-lg-2{padding-left:.5rem!important}.p-lg-3{padding:1rem!important}.pt-lg-3,.py-lg-3{padding-top:1rem!important}.pr-lg-3,.px-lg-3{padding-right:1rem!important}.pb-lg-3,.py-lg-3{padding-bottom:1rem!important}.pl-lg-3,.px-lg-3{padding-left:1rem!important}.p-lg-4{padding:1.5rem!important}.pt-lg-4,.py-lg-4{padding-top:1.5rem!important}.pr-lg-4,.px-lg-4{padding-right:1.5rem!important}.pb-lg-4,.py-lg-4{padding-bottom:1.5rem!important}.pl-lg-4,.px-lg-4{padding-left:1.5rem!important}.p-lg-5{padding:3rem!important}.pt-lg-5,.py-lg-5{padding-top:3rem!important}.pr-lg-5,.px-lg-5{padding-right:3rem!important}.pb-lg-5,.py-lg-5{padding-bottom:3rem!important}.pl-lg-5,.px-lg-5{padding-left:3rem!important}.m-lg-n1{margin:-.25rem!important}.mt-lg-n1,.my-lg-n1{margin-top:-.25rem!important}.mr-lg-n1,.mx-lg-n1{margin-right:-.25rem!important}.mb-lg-n1,.my-lg-n1{margin-bottom:-.25rem!important}.ml-lg-n1,.mx-lg-n1{margin-left:-.25rem!important}.m-lg-n2{margin:-.5rem!important}.mt-lg-n2,.my-lg-n2{margin-top:-.5rem!important}.mr-lg-n2,.mx-lg-n2{margin-right:-.5rem!important}.mb-lg-n2,.my-lg-n2{margin-bottom:-.5rem!important}.ml-lg-n2,.mx-lg-n2{margin-left:-.5rem!important}.m-lg-n3{margin:-1rem!important}.mt-lg-n3,.my-lg-n3{margin-top:-1rem!important}.mr-lg-n3,.mx-lg-n3{margin-right:-1rem!important}.mb-lg-n3,.my-lg-n3{margin-bottom:-1rem!important}.ml-lg-n3,.mx-lg-n3{margin-left:-1rem!important}.m-lg-n4{margin:-1.5rem!important}.mt-lg-n4,.my-lg-n4{margin-top:-1.5rem!important}.mr-lg-n4,.mx-lg-n4{margin-right:-1.5rem!important}.mb-lg-n4,.my-lg-n4{margin-bottom:-1.5rem!important}.ml-lg-n4,.mx-lg-n4{margin-left:-1.5rem!important}.m-lg-n5{margin:-3rem!important}.mt-lg-n5,.my-lg-n5{margin-top:-3rem!important}.mr-lg-n5,.mx-lg-n5{margin-right:-3rem!important}.mb-lg-n5,.my-lg-n5{margin-bottom:-3rem!important}.ml-lg-n5,.mx-lg-n5{margin-left:-3rem!important}.m-lg-auto{margin:auto!important}.mt-lg-auto,.my-lg-auto{margin-top:auto!important}.mr-lg-auto,.mx-lg-auto{margin-right:auto!important}.mb-lg-auto,.my-lg-auto{margin-bottom:auto!important}.ml-lg-auto,.mx-lg-auto{margin-left:auto!important}}@media (min-width:1200px){.m-xl-0{margin:0!important}.mt-xl-0,.my-xl-0{margin-top:0!important}.mr-xl-0,.mx-xl-0{margin-right:0!important}.mb-xl-0,.my-xl-0{margin-bottom:0!important}.ml-xl-0,.mx-xl-0{margin-left:0!important}.m-xl-1{margin:.25rem!important}.mt-xl-1,.my-xl-1{margin-top:.25rem!important}.mr-xl-1,.mx-xl-1{margin-right:.25rem!important}.mb-xl-1,.my-xl-1{margin-bottom:.25rem!important}.ml-xl-1,.mx-xl-1{margin-left:.25rem!important}.m-xl-2{margin:.5rem!important}.mt-xl-2,.my-xl-2{margin-top:.5rem!important}.mr-xl-2,.mx-xl-2{margin-right:.5rem!important}.mb-xl-2,.my-xl-2{margin-bottom:.5rem!important}.ml-xl-2,.mx-xl-2{margin-left:.5rem!important}.m-xl-3{margin:1rem!important}.mt-xl-3,.my-xl-3{margin-top:1rem!important}.mr-xl-3,.mx-xl-3{margin-right:1rem!important}.mb-xl-3,.my-xl-3{margin-bottom:1rem!important}.ml-xl-3,.mx-xl-3{margin-left:1rem!important}.m-xl-4{margin:1.5rem!important}.mt-xl-4,.my-xl-4{margin-top:1.5rem!important}.mr-xl-4,.mx-xl-4{margin-right:1.5rem!important}.mb-xl-4,.my-xl-4{margin-bottom:1.5rem!important}.ml-xl-4,.mx-xl-4{margin-left:1.5rem!important}.m-xl-5{margin:3rem!important}.mt-xl-5,.my-xl-5{margin-top:3rem!important}.mr-xl-5,.mx-xl-5{margin-right:3rem!important}.mb-xl-5,.my-xl-5{margin-bottom:3rem!important}.ml-xl-5,.mx-xl-5{margin-left:3rem!important}.p-xl-0{padding:0!important}.pt-xl-0,.py-xl-0{padding-top:0!important}.pr-xl-0,.px-xl-0{padding-right:0!important}.pb-xl-0,.py-xl-0{padding-bottom:0!important}.pl-xl-0,.px-xl-0{padding-left:0!important}.p-xl-1{padding:.25rem!important}.pt-xl-1,.py-xl-1{padding-top:.25rem!important}.pr-xl-1,.px-xl-1{padding-right:.25rem!important}.pb-xl-1,.py-xl-1{padding-bottom:.25rem!important}.pl-xl-1,.px-xl-1{padding-left:.25rem!important}.p-xl-2{padding:.5rem!important}.pt-xl-2,.py-xl-2{padding-top:.5rem!important}.pr-xl-2,.px-xl-2{padding-right:.5rem!important}.pb-xl-2,.py-xl-2{padding-bottom:.5rem!important}.pl-xl-2,.px-xl-2{padding-left:.5rem!important}.p-xl-3{padding:1rem!important}.pt-xl-3,.py-xl-3{padding-top:1rem!important}.pr-xl-3,.px-xl-3{padding-right:1rem!important}.pb-xl-3,.py-xl-3{padding-bottom:1rem!important}.pl-xl-3,.px-xl-3{padding-left:1rem!important}.p-xl-4{padding:1.5rem!important}.pt-xl-4,.py-xl-4{padding-top:1.5rem!important}.pr-xl-4,.px-xl-4{padding-right:1.5rem!important}.pb-xl-4,.py-xl-4{padding-bottom:1.5rem!important}.pl-xl-4,.px-xl-4{padding-left:1.5rem!important}.p-xl-5{padding:3rem!important}.pt-xl-5,.py-xl-5{padding-top:3rem!important}.pr-xl-5,.px-xl-5{padding-right:3rem!important}.pb-xl-5,.py-xl-5{padding-bottom:3rem!important}.pl-xl-5,.px-xl-5{padding-left:3rem!important}.m-xl-n1{margin:-.25rem!important}.mt-xl-n1,.my-xl-n1{margin-top:-.25rem!important}.mr-xl-n1,.mx-xl-n1{margin-right:-.25rem!important}.mb-xl-n1,.my-xl-n1{margin-bottom:-.25rem!important}.ml-xl-n1,.mx-xl-n1{margin-left:-.25rem!important}.m-xl-n2{margin:-.5rem!important}.mt-xl-n2,.my-xl-n2{margin-top:-.5rem!important}.mr-xl-n2,.mx-xl-n2{margin-right:-.5rem!important}.mb-xl-n2,.my-xl-n2{margin-bottom:-.5rem!important}.ml-xl-n2,.mx-xl-n2{margin-left:-.5rem!important}.m-xl-n3{margin:-1rem!important}.mt-xl-n3,.my-xl-n3{margin-top:-1rem!important}.mr-xl-n3,.mx-xl-n3{margin-right:-1rem!important}.mb-xl-n3,.my-xl-n3{margin-bottom:-1rem!important}.ml-xl-n3,.mx-xl-n3{margin-left:-1rem!important}.m-xl-n4{margin:-1.5rem!important}.mt-xl-n4,.my-xl-n4{margin-top:-1.5rem!important}.mr-xl-n4,.mx-xl-n4{margin-right:-1.5rem!important}.mb-xl-n4,.my-xl-n4{margin-bottom:-1.5rem!important}.ml-xl-n4,.mx-xl-n4{margin-left:-1.5rem!important}.m-xl-n5{margin:-3rem!important}.mt-xl-n5,.my-xl-n5{margin-top:-3rem!important}.mr-xl-n5,.mx-xl-n5{margin-right:-3rem!important}.mb-xl-n5,.my-xl-n5{margin-bottom:-3rem!important}.ml-xl-n5,.mx-xl-n5{margin-left:-3rem!important}.m-xl-auto{margin:auto!important}.mt-xl-auto,.my-xl-auto{margin-top:auto!important}.mr-xl-auto,.mx-xl-auto{margin-right:auto!important}.mb-xl-auto,.my-xl-auto{margin-bottom:auto!important}.ml-xl-auto,.mx-xl-auto{margin-left:auto!important}} -/*# sourceMappingURL=bootstrap-grid.min.css.map */ \ No newline at end of file diff --git a/node_modules/bootstrap/dist/css/bootstrap-grid.min.css.map b/node_modules/bootstrap/dist/css/bootstrap-grid.min.css.map deleted file mode 100644 index 9c96ff30..00000000 --- a/node_modules/bootstrap/dist/css/bootstrap-grid.min.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../scss/bootstrap-grid.scss","dist/css/bootstrap-grid.css","../../scss/_grid.scss","../../scss/mixins/_grid.scss","../../scss/mixins/_breakpoints.scss","../../scss/mixins/_grid-framework.scss","../../scss/utilities/_display.scss","../../scss/utilities/_flex.scss","../../scss/utilities/_spacing.scss"],"names":[],"mappings":"AAAA;;;;;AAOA,KACE,WAAA,WACA,mBAAA,UAGF,ECCA,QADA,SDGE,WAAA,QETA,WDYF,iBAGA,cADA,cADA,cAGA,cEjBE,MAAA,KACA,cAAA,KACA,aAAA,KACA,aAAA,KACA,YAAA,KCmDE,yBFzCE,WAAA,cACE,UAAA,OEwCJ,yBFzCE,WAAA,cAAA,cACE,UAAA,OEwCJ,yBFzCE,WAAA,cAAA,cAAA,cACE,UAAA,OEwCJ,0BFzCE,WAAA,cAAA,cAAA,cAAA,cACE,UAAA,QA4BN,KCnCA,QAAA,YAAA,QAAA,KACA,cAAA,KAAA,UAAA,KACA,aAAA,MACA,YAAA,MDsCA,YACE,aAAA,EACA,YAAA,EAFF,iBDeF,0BCTM,cAAA,EACA,aAAA,EGtDJ,KAAA,OAAA,QAAA,QAAA,QAAA,OAAA,OAAA,OAAA,OAAA,OAAA,OAAA,OAAA,OJoEF,UAEqJ,QAAvI,UAAmG,WAAY,WAAY,WAAhH,UAAW,UAAW,UAAW,UAAW,UAAW,UAAW,UAAW,UACtG,aAFqJ,QAAvI,UAAmG,WAAY,WAAY,WAAhH,UAAW,UAAW,UAAW,UAAW,UAAW,UAAW,UAAW,UACtG,aAFkJ,QAAvI,UAAmG,WAAY,WAAY,WAAhH,UAAW,UAAW,UAAW,UAAW,UAAW,UAAW,UAAW,UACnG,aAEqJ,QAAvI,UAAmG,WAAY,WA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HN,SO7nHQ,cAAA,iBAEF,SP+nHN,SO7nHQ,eAAA,iBAEF,SP+nHN,SO7nHQ,aAAA,iBAfF,QAAgC,QAAA,eAChC,SPkpHN,SOhpHQ,YAAA,eAEF,SPkpHN,SOhpHQ,cAAA,eAEF,SPkpHN,SOhpHQ,eAAA,eAEF,SPkpHN,SOhpHQ,aAAA,eAQF,SAAwB,OAAA,kBACxB,UP8oHN,UO5oHQ,WAAA,kBAEF,UP8oHN,UO5oHQ,aAAA,kBAEF,UP8oHN,UO5oHQ,cAAA,kBAEF,UP8oHN,UO5oHQ,YAAA,kBAfF,SAAwB,OAAA,iBACxB,UPiqHN,UO/pHQ,WAAA,iBAEF,UPiqHN,UO/pHQ,aAAA,iBAEF,UPiqHN,UO/pHQ,cAAA,iBAEF,UPiqHN,UO/pHQ,YAAA,iBAfF,SAAwB,OAAA,gBACxB,UPorHN,UOlrHQ,WAAA,gBAEF,UPorHN,UOlrHQ,aAAA,gBAEF,UPorHN,UOlrHQ,cAAA,gBAEF,UPorHN,UOlrHQ,YAAA,gBAfF,SAAwB,OAAA,kBACxB,UPusHN,UOrsHQ,WAAA,kBAEF,UPusHN,UOrsHQ,aAAA,kBAEF,UPusHN,UOrsHQ,cAAA,kBAEF,UPusHN,UOrsHQ,YAAA,kBAfF,SAAwB,OAAA,gBACxB,UP0tHN,UOxtHQ,WAAA,gBAEF,UP0tHN,UOxtHQ,aAAA,gBAEF,UP0tHN,UOxtHQ,cAAA,gBAEF,UP0tHN,UOxtHQ,YAAA,gBAMN,WAAmB,OAAA,eACnB,YPwtHF,YOttHI,WAAA,eAEF,YPwtHF,YOttHI,aAAA,eAEF,YPwtHF,YOttHI,cAAA,eAEF,YPwtHF,YOttHI,YAAA","sourcesContent":["/*!\n * Bootstrap Grid v4.5.3 (https://getbootstrap.com/)\n * Copyright 2011-2020 The Bootstrap Authors\n * Copyright 2011-2020 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n */\n\nhtml {\n box-sizing: border-box;\n -ms-overflow-style: scrollbar;\n}\n\n*,\n*::before,\n*::after {\n box-sizing: inherit;\n}\n\n@import \"functions\";\n@import \"variables\";\n\n@import \"mixins/breakpoints\";\n@import \"mixins/grid-framework\";\n@import \"mixins/grid\";\n\n@import \"grid\";\n@import \"utilities/display\";\n@import \"utilities/flex\";\n@import \"utilities/spacing\";\n","/*!\n * Bootstrap Grid v4.5.3 (https://getbootstrap.com/)\n * Copyright 2011-2020 The Bootstrap Authors\n * Copyright 2011-2020 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n */\nhtml {\n box-sizing: border-box;\n -ms-overflow-style: scrollbar;\n}\n\n*,\n*::before,\n*::after {\n box-sizing: inherit;\n}\n\n.container,\n.container-fluid,\n.container-sm,\n.container-md,\n.container-lg,\n.container-xl {\n width: 100%;\n padding-right: 15px;\n padding-left: 15px;\n margin-right: auto;\n margin-left: auto;\n}\n\n@media (min-width: 576px) {\n .container, .container-sm {\n max-width: 540px;\n }\n}\n\n@media (min-width: 768px) {\n .container, .container-sm, .container-md {\n max-width: 720px;\n }\n}\n\n@media (min-width: 992px) {\n .container, .container-sm, .container-md, .container-lg {\n max-width: 960px;\n }\n}\n\n@media (min-width: 1200px) {\n .container, .container-sm, .container-md, .container-lg, .container-xl {\n max-width: 1140px;\n }\n}\n\n.row {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n margin-right: -15px;\n margin-left: -15px;\n}\n\n.no-gutters {\n margin-right: 0;\n margin-left: 0;\n}\n\n.no-gutters > .col,\n.no-gutters > [class*=\"col-\"] {\n padding-right: 0;\n padding-left: 0;\n}\n\n.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col,\n.col-auto, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm,\n.col-sm-auto, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md,\n.col-md-auto, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg,\n.col-lg-auto, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl,\n.col-xl-auto {\n position: relative;\n width: 100%;\n padding-right: 15px;\n padding-left: 15px;\n}\n\n.col {\n -ms-flex-preferred-size: 0;\n flex-basis: 0;\n -ms-flex-positive: 1;\n flex-grow: 1;\n max-width: 100%;\n}\n\n.row-cols-1 > * {\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n max-width: 100%;\n}\n\n.row-cols-2 > * {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n}\n\n.row-cols-3 > * {\n -ms-flex: 0 0 33.333333%;\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n}\n\n.row-cols-4 > * {\n -ms-flex: 0 0 25%;\n flex: 0 0 25%;\n max-width: 25%;\n}\n\n.row-cols-5 > * {\n -ms-flex: 0 0 20%;\n flex: 0 0 20%;\n max-width: 20%;\n}\n\n.row-cols-6 > * {\n -ms-flex: 0 0 16.666667%;\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n}\n\n.col-auto {\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n width: auto;\n max-width: 100%;\n}\n\n.col-1 {\n -ms-flex: 0 0 8.333333%;\n flex: 0 0 8.333333%;\n max-width: 8.333333%;\n}\n\n.col-2 {\n -ms-flex: 0 0 16.666667%;\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n}\n\n.col-3 {\n -ms-flex: 0 0 25%;\n flex: 0 0 25%;\n max-width: 25%;\n}\n\n.col-4 {\n -ms-flex: 0 0 33.333333%;\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n}\n\n.col-5 {\n -ms-flex: 0 0 41.666667%;\n flex: 0 0 41.666667%;\n max-width: 41.666667%;\n}\n\n.col-6 {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n}\n\n.col-7 {\n -ms-flex: 0 0 58.333333%;\n flex: 0 0 58.333333%;\n max-width: 58.333333%;\n}\n\n.col-8 {\n -ms-flex: 0 0 66.666667%;\n flex: 0 0 66.666667%;\n max-width: 66.666667%;\n}\n\n.col-9 {\n -ms-flex: 0 0 75%;\n flex: 0 0 75%;\n max-width: 75%;\n}\n\n.col-10 {\n -ms-flex: 0 0 83.333333%;\n flex: 0 0 83.333333%;\n max-width: 83.333333%;\n}\n\n.col-11 {\n -ms-flex: 0 0 91.666667%;\n flex: 0 0 91.666667%;\n max-width: 91.666667%;\n}\n\n.col-12 {\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n max-width: 100%;\n}\n\n.order-first {\n -ms-flex-order: -1;\n order: -1;\n}\n\n.order-last {\n -ms-flex-order: 13;\n order: 13;\n}\n\n.order-0 {\n -ms-flex-order: 0;\n order: 0;\n}\n\n.order-1 {\n -ms-flex-order: 1;\n order: 1;\n}\n\n.order-2 {\n -ms-flex-order: 2;\n order: 2;\n}\n\n.order-3 {\n -ms-flex-order: 3;\n order: 3;\n}\n\n.order-4 {\n -ms-flex-order: 4;\n order: 4;\n}\n\n.order-5 {\n -ms-flex-order: 5;\n order: 5;\n}\n\n.order-6 {\n -ms-flex-order: 6;\n order: 6;\n}\n\n.order-7 {\n -ms-flex-order: 7;\n order: 7;\n}\n\n.order-8 {\n -ms-flex-order: 8;\n order: 8;\n}\n\n.order-9 {\n -ms-flex-order: 9;\n order: 9;\n}\n\n.order-10 {\n -ms-flex-order: 10;\n order: 10;\n}\n\n.order-11 {\n -ms-flex-order: 11;\n order: 11;\n}\n\n.order-12 {\n -ms-flex-order: 12;\n order: 12;\n}\n\n.offset-1 {\n margin-left: 8.333333%;\n}\n\n.offset-2 {\n margin-left: 16.666667%;\n}\n\n.offset-3 {\n margin-left: 25%;\n}\n\n.offset-4 {\n margin-left: 33.333333%;\n}\n\n.offset-5 {\n margin-left: 41.666667%;\n}\n\n.offset-6 {\n margin-left: 50%;\n}\n\n.offset-7 {\n margin-left: 58.333333%;\n}\n\n.offset-8 {\n margin-left: 66.666667%;\n}\n\n.offset-9 {\n margin-left: 75%;\n}\n\n.offset-10 {\n margin-left: 83.333333%;\n}\n\n.offset-11 {\n margin-left: 91.666667%;\n}\n\n@media (min-width: 576px) {\n .col-sm {\n -ms-flex-preferred-size: 0;\n flex-basis: 0;\n -ms-flex-positive: 1;\n flex-grow: 1;\n max-width: 100%;\n }\n .row-cols-sm-1 > * {\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n max-width: 100%;\n }\n .row-cols-sm-2 > * {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n }\n .row-cols-sm-3 > * {\n -ms-flex: 0 0 33.333333%;\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n }\n .row-cols-sm-4 > * {\n -ms-flex: 0 0 25%;\n flex: 0 0 25%;\n max-width: 25%;\n }\n .row-cols-sm-5 > * {\n -ms-flex: 0 0 20%;\n flex: 0 0 20%;\n max-width: 20%;\n }\n .row-cols-sm-6 > * {\n -ms-flex: 0 0 16.666667%;\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n }\n .col-sm-auto {\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n width: auto;\n max-width: 100%;\n }\n .col-sm-1 {\n -ms-flex: 0 0 8.333333%;\n flex: 0 0 8.333333%;\n max-width: 8.333333%;\n }\n .col-sm-2 {\n -ms-flex: 0 0 16.666667%;\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n }\n .col-sm-3 {\n -ms-flex: 0 0 25%;\n flex: 0 0 25%;\n max-width: 25%;\n }\n .col-sm-4 {\n -ms-flex: 0 0 33.333333%;\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n }\n .col-sm-5 {\n -ms-flex: 0 0 41.666667%;\n flex: 0 0 41.666667%;\n max-width: 41.666667%;\n }\n .col-sm-6 {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n }\n .col-sm-7 {\n -ms-flex: 0 0 58.333333%;\n flex: 0 0 58.333333%;\n max-width: 58.333333%;\n }\n .col-sm-8 {\n -ms-flex: 0 0 66.666667%;\n flex: 0 0 66.666667%;\n max-width: 66.666667%;\n }\n .col-sm-9 {\n -ms-flex: 0 0 75%;\n flex: 0 0 75%;\n max-width: 75%;\n }\n .col-sm-10 {\n -ms-flex: 0 0 83.333333%;\n flex: 0 0 83.333333%;\n max-width: 83.333333%;\n }\n .col-sm-11 {\n -ms-flex: 0 0 91.666667%;\n flex: 0 0 91.666667%;\n max-width: 91.666667%;\n }\n .col-sm-12 {\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n max-width: 100%;\n }\n .order-sm-first {\n -ms-flex-order: -1;\n order: -1;\n }\n .order-sm-last {\n -ms-flex-order: 13;\n order: 13;\n }\n .order-sm-0 {\n -ms-flex-order: 0;\n order: 0;\n }\n .order-sm-1 {\n -ms-flex-order: 1;\n order: 1;\n }\n .order-sm-2 {\n -ms-flex-order: 2;\n order: 2;\n }\n .order-sm-3 {\n -ms-flex-order: 3;\n order: 3;\n }\n .order-sm-4 {\n -ms-flex-order: 4;\n order: 4;\n }\n .order-sm-5 {\n -ms-flex-order: 5;\n order: 5;\n }\n .order-sm-6 {\n -ms-flex-order: 6;\n order: 6;\n }\n .order-sm-7 {\n -ms-flex-order: 7;\n order: 7;\n }\n .order-sm-8 {\n -ms-flex-order: 8;\n order: 8;\n }\n .order-sm-9 {\n -ms-flex-order: 9;\n order: 9;\n }\n .order-sm-10 {\n -ms-flex-order: 10;\n order: 10;\n }\n .order-sm-11 {\n -ms-flex-order: 11;\n order: 11;\n }\n .order-sm-12 {\n -ms-flex-order: 12;\n order: 12;\n }\n .offset-sm-0 {\n margin-left: 0;\n }\n .offset-sm-1 {\n margin-left: 8.333333%;\n }\n .offset-sm-2 {\n margin-left: 16.666667%;\n }\n .offset-sm-3 {\n margin-left: 25%;\n }\n .offset-sm-4 {\n margin-left: 33.333333%;\n }\n .offset-sm-5 {\n margin-left: 41.666667%;\n }\n .offset-sm-6 {\n margin-left: 50%;\n }\n .offset-sm-7 {\n margin-left: 58.333333%;\n }\n .offset-sm-8 {\n margin-left: 66.666667%;\n }\n .offset-sm-9 {\n margin-left: 75%;\n }\n .offset-sm-10 {\n margin-left: 83.333333%;\n }\n .offset-sm-11 {\n margin-left: 91.666667%;\n }\n}\n\n@media (min-width: 768px) {\n .col-md {\n -ms-flex-preferred-size: 0;\n flex-basis: 0;\n -ms-flex-positive: 1;\n flex-grow: 1;\n max-width: 100%;\n }\n .row-cols-md-1 > * {\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n max-width: 100%;\n }\n .row-cols-md-2 > * {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n }\n .row-cols-md-3 > * {\n -ms-flex: 0 0 33.333333%;\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n }\n .row-cols-md-4 > * {\n -ms-flex: 0 0 25%;\n flex: 0 0 25%;\n max-width: 25%;\n }\n .row-cols-md-5 > * {\n -ms-flex: 0 0 20%;\n flex: 0 0 20%;\n max-width: 20%;\n }\n .row-cols-md-6 > * {\n -ms-flex: 0 0 16.666667%;\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n }\n .col-md-auto {\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n width: auto;\n max-width: 100%;\n }\n .col-md-1 {\n -ms-flex: 0 0 8.333333%;\n flex: 0 0 8.333333%;\n max-width: 8.333333%;\n }\n .col-md-2 {\n -ms-flex: 0 0 16.666667%;\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n }\n .col-md-3 {\n -ms-flex: 0 0 25%;\n flex: 0 0 25%;\n max-width: 25%;\n }\n .col-md-4 {\n -ms-flex: 0 0 33.333333%;\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n }\n .col-md-5 {\n -ms-flex: 0 0 41.666667%;\n flex: 0 0 41.666667%;\n max-width: 41.666667%;\n }\n .col-md-6 {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n }\n .col-md-7 {\n -ms-flex: 0 0 58.333333%;\n flex: 0 0 58.333333%;\n max-width: 58.333333%;\n }\n .col-md-8 {\n -ms-flex: 0 0 66.666667%;\n flex: 0 0 66.666667%;\n max-width: 66.666667%;\n }\n .col-md-9 {\n -ms-flex: 0 0 75%;\n flex: 0 0 75%;\n max-width: 75%;\n }\n .col-md-10 {\n -ms-flex: 0 0 83.333333%;\n flex: 0 0 83.333333%;\n max-width: 83.333333%;\n }\n .col-md-11 {\n -ms-flex: 0 0 91.666667%;\n flex: 0 0 91.666667%;\n max-width: 91.666667%;\n }\n .col-md-12 {\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n max-width: 100%;\n }\n .order-md-first {\n -ms-flex-order: -1;\n order: -1;\n }\n .order-md-last {\n -ms-flex-order: 13;\n order: 13;\n }\n .order-md-0 {\n -ms-flex-order: 0;\n order: 0;\n }\n .order-md-1 {\n -ms-flex-order: 1;\n order: 1;\n }\n .order-md-2 {\n -ms-flex-order: 2;\n order: 2;\n }\n .order-md-3 {\n -ms-flex-order: 3;\n order: 3;\n }\n .order-md-4 {\n -ms-flex-order: 4;\n order: 4;\n }\n .order-md-5 {\n -ms-flex-order: 5;\n order: 5;\n }\n .order-md-6 {\n -ms-flex-order: 6;\n order: 6;\n }\n .order-md-7 {\n -ms-flex-order: 7;\n order: 7;\n }\n .order-md-8 {\n -ms-flex-order: 8;\n order: 8;\n }\n .order-md-9 {\n -ms-flex-order: 9;\n order: 9;\n }\n .order-md-10 {\n -ms-flex-order: 10;\n order: 10;\n }\n .order-md-11 {\n -ms-flex-order: 11;\n order: 11;\n }\n .order-md-12 {\n -ms-flex-order: 12;\n order: 12;\n }\n .offset-md-0 {\n margin-left: 0;\n }\n .offset-md-1 {\n margin-left: 8.333333%;\n }\n .offset-md-2 {\n margin-left: 16.666667%;\n }\n .offset-md-3 {\n margin-left: 25%;\n }\n .offset-md-4 {\n margin-left: 33.333333%;\n }\n .offset-md-5 {\n margin-left: 41.666667%;\n }\n .offset-md-6 {\n margin-left: 50%;\n }\n .offset-md-7 {\n margin-left: 58.333333%;\n }\n .offset-md-8 {\n margin-left: 66.666667%;\n }\n .offset-md-9 {\n margin-left: 75%;\n }\n .offset-md-10 {\n margin-left: 83.333333%;\n }\n .offset-md-11 {\n margin-left: 91.666667%;\n }\n}\n\n@media (min-width: 992px) {\n .col-lg {\n -ms-flex-preferred-size: 0;\n flex-basis: 0;\n -ms-flex-positive: 1;\n flex-grow: 1;\n max-width: 100%;\n }\n .row-cols-lg-1 > * {\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n max-width: 100%;\n }\n .row-cols-lg-2 > * {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n }\n .row-cols-lg-3 > * {\n -ms-flex: 0 0 33.333333%;\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n }\n .row-cols-lg-4 > * {\n -ms-flex: 0 0 25%;\n flex: 0 0 25%;\n max-width: 25%;\n }\n .row-cols-lg-5 > * {\n -ms-flex: 0 0 20%;\n flex: 0 0 20%;\n max-width: 20%;\n }\n .row-cols-lg-6 > * {\n -ms-flex: 0 0 16.666667%;\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n }\n .col-lg-auto {\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n width: auto;\n max-width: 100%;\n }\n .col-lg-1 {\n -ms-flex: 0 0 8.333333%;\n flex: 0 0 8.333333%;\n max-width: 8.333333%;\n }\n .col-lg-2 {\n -ms-flex: 0 0 16.666667%;\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n }\n .col-lg-3 {\n -ms-flex: 0 0 25%;\n flex: 0 0 25%;\n max-width: 25%;\n }\n .col-lg-4 {\n -ms-flex: 0 0 33.333333%;\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n }\n .col-lg-5 {\n -ms-flex: 0 0 41.666667%;\n flex: 0 0 41.666667%;\n max-width: 41.666667%;\n }\n .col-lg-6 {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n }\n .col-lg-7 {\n -ms-flex: 0 0 58.333333%;\n flex: 0 0 58.333333%;\n max-width: 58.333333%;\n }\n .col-lg-8 {\n -ms-flex: 0 0 66.666667%;\n flex: 0 0 66.666667%;\n max-width: 66.666667%;\n }\n .col-lg-9 {\n -ms-flex: 0 0 75%;\n flex: 0 0 75%;\n max-width: 75%;\n }\n .col-lg-10 {\n -ms-flex: 0 0 83.333333%;\n flex: 0 0 83.333333%;\n max-width: 83.333333%;\n }\n .col-lg-11 {\n -ms-flex: 0 0 91.666667%;\n flex: 0 0 91.666667%;\n max-width: 91.666667%;\n }\n .col-lg-12 {\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n max-width: 100%;\n }\n .order-lg-first {\n -ms-flex-order: -1;\n order: -1;\n }\n .order-lg-last {\n -ms-flex-order: 13;\n order: 13;\n }\n .order-lg-0 {\n -ms-flex-order: 0;\n order: 0;\n }\n .order-lg-1 {\n -ms-flex-order: 1;\n order: 1;\n }\n .order-lg-2 {\n -ms-flex-order: 2;\n order: 2;\n }\n .order-lg-3 {\n -ms-flex-order: 3;\n order: 3;\n }\n .order-lg-4 {\n -ms-flex-order: 4;\n order: 4;\n }\n .order-lg-5 {\n -ms-flex-order: 5;\n order: 5;\n }\n .order-lg-6 {\n -ms-flex-order: 6;\n order: 6;\n }\n .order-lg-7 {\n -ms-flex-order: 7;\n order: 7;\n }\n .order-lg-8 {\n -ms-flex-order: 8;\n order: 8;\n }\n .order-lg-9 {\n -ms-flex-order: 9;\n order: 9;\n }\n .order-lg-10 {\n -ms-flex-order: 10;\n order: 10;\n }\n .order-lg-11 {\n -ms-flex-order: 11;\n order: 11;\n }\n .order-lg-12 {\n -ms-flex-order: 12;\n order: 12;\n }\n .offset-lg-0 {\n margin-left: 0;\n }\n .offset-lg-1 {\n margin-left: 8.333333%;\n }\n .offset-lg-2 {\n margin-left: 16.666667%;\n }\n .offset-lg-3 {\n margin-left: 25%;\n }\n .offset-lg-4 {\n margin-left: 33.333333%;\n }\n .offset-lg-5 {\n margin-left: 41.666667%;\n }\n .offset-lg-6 {\n margin-left: 50%;\n }\n .offset-lg-7 {\n margin-left: 58.333333%;\n }\n .offset-lg-8 {\n margin-left: 66.666667%;\n }\n .offset-lg-9 {\n margin-left: 75%;\n }\n .offset-lg-10 {\n margin-left: 83.333333%;\n }\n .offset-lg-11 {\n margin-left: 91.666667%;\n }\n}\n\n@media (min-width: 1200px) {\n .col-xl {\n -ms-flex-preferred-size: 0;\n flex-basis: 0;\n -ms-flex-positive: 1;\n flex-grow: 1;\n max-width: 100%;\n }\n .row-cols-xl-1 > * {\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n max-width: 100%;\n }\n .row-cols-xl-2 > * {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n }\n .row-cols-xl-3 > * {\n -ms-flex: 0 0 33.333333%;\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n }\n .row-cols-xl-4 > * {\n -ms-flex: 0 0 25%;\n flex: 0 0 25%;\n max-width: 25%;\n }\n .row-cols-xl-5 > * {\n -ms-flex: 0 0 20%;\n flex: 0 0 20%;\n max-width: 20%;\n }\n .row-cols-xl-6 > * {\n -ms-flex: 0 0 16.666667%;\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n }\n .col-xl-auto {\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n width: auto;\n max-width: 100%;\n }\n .col-xl-1 {\n -ms-flex: 0 0 8.333333%;\n flex: 0 0 8.333333%;\n max-width: 8.333333%;\n }\n .col-xl-2 {\n -ms-flex: 0 0 16.666667%;\n flex: 0 0 16.666667%;\n max-width: 16.666667%;\n }\n .col-xl-3 {\n -ms-flex: 0 0 25%;\n flex: 0 0 25%;\n max-width: 25%;\n }\n .col-xl-4 {\n -ms-flex: 0 0 33.333333%;\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n }\n .col-xl-5 {\n -ms-flex: 0 0 41.666667%;\n flex: 0 0 41.666667%;\n max-width: 41.666667%;\n }\n .col-xl-6 {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n }\n .col-xl-7 {\n -ms-flex: 0 0 58.333333%;\n flex: 0 0 58.333333%;\n max-width: 58.333333%;\n }\n .col-xl-8 {\n -ms-flex: 0 0 66.666667%;\n flex: 0 0 66.666667%;\n max-width: 66.666667%;\n }\n .col-xl-9 {\n -ms-flex: 0 0 75%;\n flex: 0 0 75%;\n max-width: 75%;\n }\n .col-xl-10 {\n -ms-flex: 0 0 83.333333%;\n flex: 0 0 83.333333%;\n max-width: 83.333333%;\n }\n .col-xl-11 {\n -ms-flex: 0 0 91.666667%;\n flex: 0 0 91.666667%;\n max-width: 91.666667%;\n }\n .col-xl-12 {\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n max-width: 100%;\n }\n .order-xl-first {\n -ms-flex-order: -1;\n order: -1;\n }\n .order-xl-last {\n -ms-flex-order: 13;\n order: 13;\n }\n .order-xl-0 {\n -ms-flex-order: 0;\n order: 0;\n }\n .order-xl-1 {\n -ms-flex-order: 1;\n order: 1;\n }\n .order-xl-2 {\n -ms-flex-order: 2;\n order: 2;\n }\n .order-xl-3 {\n -ms-flex-order: 3;\n order: 3;\n }\n .order-xl-4 {\n -ms-flex-order: 4;\n order: 4;\n }\n .order-xl-5 {\n -ms-flex-order: 5;\n order: 5;\n }\n .order-xl-6 {\n -ms-flex-order: 6;\n order: 6;\n }\n .order-xl-7 {\n -ms-flex-order: 7;\n order: 7;\n }\n .order-xl-8 {\n -ms-flex-order: 8;\n order: 8;\n }\n .order-xl-9 {\n -ms-flex-order: 9;\n order: 9;\n }\n .order-xl-10 {\n -ms-flex-order: 10;\n order: 10;\n }\n .order-xl-11 {\n -ms-flex-order: 11;\n order: 11;\n }\n .order-xl-12 {\n -ms-flex-order: 12;\n order: 12;\n }\n .offset-xl-0 {\n margin-left: 0;\n }\n .offset-xl-1 {\n margin-left: 8.333333%;\n }\n .offset-xl-2 {\n margin-left: 16.666667%;\n }\n .offset-xl-3 {\n margin-left: 25%;\n }\n .offset-xl-4 {\n margin-left: 33.333333%;\n }\n .offset-xl-5 {\n margin-left: 41.666667%;\n }\n .offset-xl-6 {\n margin-left: 50%;\n }\n .offset-xl-7 {\n margin-left: 58.333333%;\n }\n .offset-xl-8 {\n margin-left: 66.666667%;\n }\n .offset-xl-9 {\n margin-left: 75%;\n }\n .offset-xl-10 {\n margin-left: 83.333333%;\n }\n .offset-xl-11 {\n margin-left: 91.666667%;\n }\n}\n\n.d-none {\n display: none !important;\n}\n\n.d-inline {\n display: inline !important;\n}\n\n.d-inline-block {\n display: inline-block !important;\n}\n\n.d-block {\n display: block !important;\n}\n\n.d-table {\n display: table !important;\n}\n\n.d-table-row {\n display: table-row !important;\n}\n\n.d-table-cell {\n display: table-cell !important;\n}\n\n.d-flex {\n display: -ms-flexbox !important;\n display: flex !important;\n}\n\n.d-inline-flex {\n display: -ms-inline-flexbox !important;\n display: inline-flex !important;\n}\n\n@media (min-width: 576px) {\n .d-sm-none {\n display: none !important;\n }\n .d-sm-inline {\n display: inline !important;\n }\n .d-sm-inline-block {\n display: inline-block !important;\n }\n .d-sm-block {\n display: block !important;\n }\n .d-sm-table {\n display: table !important;\n }\n .d-sm-table-row {\n display: table-row !important;\n }\n .d-sm-table-cell {\n display: table-cell !important;\n }\n .d-sm-flex {\n display: -ms-flexbox !important;\n display: flex !important;\n }\n .d-sm-inline-flex {\n display: -ms-inline-flexbox !important;\n display: inline-flex !important;\n }\n}\n\n@media (min-width: 768px) {\n .d-md-none {\n display: none !important;\n }\n .d-md-inline {\n display: inline !important;\n }\n .d-md-inline-block {\n display: inline-block !important;\n }\n .d-md-block {\n display: block !important;\n }\n .d-md-table {\n display: table !important;\n }\n .d-md-table-row {\n display: table-row !important;\n }\n .d-md-table-cell {\n display: table-cell !important;\n }\n .d-md-flex {\n display: -ms-flexbox !important;\n display: flex !important;\n }\n .d-md-inline-flex {\n display: -ms-inline-flexbox !important;\n display: inline-flex !important;\n }\n}\n\n@media (min-width: 992px) {\n .d-lg-none {\n display: none !important;\n }\n .d-lg-inline {\n display: inline !important;\n }\n .d-lg-inline-block {\n display: inline-block !important;\n }\n .d-lg-block {\n display: block !important;\n }\n .d-lg-table {\n display: table !important;\n }\n .d-lg-table-row {\n display: table-row !important;\n }\n .d-lg-table-cell {\n display: table-cell !important;\n }\n .d-lg-flex {\n display: -ms-flexbox !important;\n display: flex !important;\n }\n .d-lg-inline-flex {\n display: -ms-inline-flexbox !important;\n display: inline-flex !important;\n }\n}\n\n@media (min-width: 1200px) {\n .d-xl-none {\n display: none !important;\n }\n .d-xl-inline {\n display: inline !important;\n }\n .d-xl-inline-block {\n display: inline-block !important;\n }\n .d-xl-block {\n display: block !important;\n }\n .d-xl-table {\n display: table !important;\n }\n .d-xl-table-row {\n display: table-row !important;\n }\n .d-xl-table-cell {\n display: table-cell !important;\n }\n .d-xl-flex {\n display: -ms-flexbox !important;\n display: flex !important;\n }\n .d-xl-inline-flex {\n display: -ms-inline-flexbox !important;\n display: inline-flex !important;\n }\n}\n\n@media print {\n .d-print-none {\n display: none !important;\n }\n .d-print-inline {\n display: inline !important;\n }\n .d-print-inline-block {\n display: inline-block !important;\n }\n .d-print-block {\n display: block !important;\n }\n .d-print-table {\n display: table !important;\n }\n .d-print-table-row {\n display: table-row !important;\n }\n .d-print-table-cell {\n display: table-cell !important;\n }\n .d-print-flex {\n display: -ms-flexbox !important;\n display: flex !important;\n }\n .d-print-inline-flex {\n display: -ms-inline-flexbox !important;\n display: inline-flex !important;\n }\n}\n\n.flex-row {\n -ms-flex-direction: row !important;\n flex-direction: row !important;\n}\n\n.flex-column {\n -ms-flex-direction: column !important;\n flex-direction: column !important;\n}\n\n.flex-row-reverse {\n -ms-flex-direction: row-reverse !important;\n flex-direction: row-reverse !important;\n}\n\n.flex-column-reverse {\n -ms-flex-direction: column-reverse !important;\n flex-direction: column-reverse !important;\n}\n\n.flex-wrap {\n -ms-flex-wrap: wrap !important;\n flex-wrap: wrap !important;\n}\n\n.flex-nowrap {\n -ms-flex-wrap: nowrap !important;\n flex-wrap: nowrap !important;\n}\n\n.flex-wrap-reverse {\n -ms-flex-wrap: wrap-reverse !important;\n flex-wrap: wrap-reverse !important;\n}\n\n.flex-fill {\n -ms-flex: 1 1 auto !important;\n flex: 1 1 auto !important;\n}\n\n.flex-grow-0 {\n -ms-flex-positive: 0 !important;\n flex-grow: 0 !important;\n}\n\n.flex-grow-1 {\n -ms-flex-positive: 1 !important;\n flex-grow: 1 !important;\n}\n\n.flex-shrink-0 {\n -ms-flex-negative: 0 !important;\n flex-shrink: 0 !important;\n}\n\n.flex-shrink-1 {\n -ms-flex-negative: 1 !important;\n flex-shrink: 1 !important;\n}\n\n.justify-content-start {\n -ms-flex-pack: start !important;\n justify-content: flex-start !important;\n}\n\n.justify-content-end {\n -ms-flex-pack: end !important;\n justify-content: flex-end !important;\n}\n\n.justify-content-center {\n -ms-flex-pack: center !important;\n justify-content: center !important;\n}\n\n.justify-content-between {\n -ms-flex-pack: justify !important;\n justify-content: space-between !important;\n}\n\n.justify-content-around {\n -ms-flex-pack: distribute !important;\n justify-content: space-around !important;\n}\n\n.align-items-start {\n -ms-flex-align: start !important;\n align-items: flex-start !important;\n}\n\n.align-items-end {\n -ms-flex-align: end !important;\n align-items: flex-end !important;\n}\n\n.align-items-center {\n -ms-flex-align: center !important;\n align-items: center !important;\n}\n\n.align-items-baseline {\n -ms-flex-align: baseline !important;\n align-items: baseline !important;\n}\n\n.align-items-stretch {\n -ms-flex-align: stretch !important;\n align-items: stretch !important;\n}\n\n.align-content-start {\n -ms-flex-line-pack: start !important;\n align-content: flex-start !important;\n}\n\n.align-content-end {\n -ms-flex-line-pack: end !important;\n align-content: flex-end !important;\n}\n\n.align-content-center {\n -ms-flex-line-pack: center !important;\n align-content: center !important;\n}\n\n.align-content-between {\n -ms-flex-line-pack: justify !important;\n align-content: space-between !important;\n}\n\n.align-content-around {\n -ms-flex-line-pack: distribute !important;\n align-content: space-around !important;\n}\n\n.align-content-stretch {\n -ms-flex-line-pack: stretch !important;\n align-content: stretch !important;\n}\n\n.align-self-auto {\n -ms-flex-item-align: auto !important;\n align-self: auto !important;\n}\n\n.align-self-start {\n -ms-flex-item-align: start !important;\n align-self: flex-start !important;\n}\n\n.align-self-end {\n -ms-flex-item-align: end !important;\n align-self: flex-end !important;\n}\n\n.align-self-center {\n -ms-flex-item-align: center !important;\n align-self: center !important;\n}\n\n.align-self-baseline {\n -ms-flex-item-align: baseline !important;\n align-self: baseline !important;\n}\n\n.align-self-stretch {\n -ms-flex-item-align: stretch !important;\n align-self: stretch !important;\n}\n\n@media (min-width: 576px) {\n .flex-sm-row {\n -ms-flex-direction: row !important;\n flex-direction: row !important;\n }\n .flex-sm-column {\n -ms-flex-direction: column !important;\n flex-direction: column !important;\n }\n .flex-sm-row-reverse {\n -ms-flex-direction: row-reverse !important;\n flex-direction: row-reverse !important;\n }\n .flex-sm-column-reverse {\n -ms-flex-direction: column-reverse !important;\n flex-direction: column-reverse !important;\n }\n .flex-sm-wrap {\n -ms-flex-wrap: wrap !important;\n flex-wrap: wrap !important;\n }\n .flex-sm-nowrap {\n -ms-flex-wrap: nowrap !important;\n flex-wrap: nowrap !important;\n }\n .flex-sm-wrap-reverse {\n -ms-flex-wrap: wrap-reverse !important;\n flex-wrap: wrap-reverse !important;\n }\n .flex-sm-fill {\n -ms-flex: 1 1 auto !important;\n flex: 1 1 auto !important;\n }\n .flex-sm-grow-0 {\n -ms-flex-positive: 0 !important;\n flex-grow: 0 !important;\n }\n .flex-sm-grow-1 {\n -ms-flex-positive: 1 !important;\n flex-grow: 1 !important;\n }\n .flex-sm-shrink-0 {\n -ms-flex-negative: 0 !important;\n flex-shrink: 0 !important;\n }\n .flex-sm-shrink-1 {\n -ms-flex-negative: 1 !important;\n flex-shrink: 1 !important;\n }\n .justify-content-sm-start {\n -ms-flex-pack: start !important;\n justify-content: flex-start !important;\n }\n .justify-content-sm-end {\n -ms-flex-pack: end !important;\n justify-content: flex-end !important;\n }\n .justify-content-sm-center {\n -ms-flex-pack: center !important;\n justify-content: center !important;\n }\n .justify-content-sm-between {\n -ms-flex-pack: justify !important;\n justify-content: space-between !important;\n }\n .justify-content-sm-around {\n -ms-flex-pack: distribute !important;\n justify-content: space-around !important;\n }\n .align-items-sm-start {\n -ms-flex-align: start !important;\n align-items: flex-start !important;\n }\n .align-items-sm-end {\n -ms-flex-align: end !important;\n align-items: flex-end !important;\n }\n .align-items-sm-center {\n -ms-flex-align: center !important;\n align-items: center !important;\n }\n .align-items-sm-baseline {\n -ms-flex-align: baseline !important;\n align-items: baseline !important;\n }\n .align-items-sm-stretch {\n -ms-flex-align: stretch !important;\n align-items: stretch !important;\n }\n .align-content-sm-start {\n -ms-flex-line-pack: start !important;\n align-content: flex-start !important;\n }\n .align-content-sm-end {\n -ms-flex-line-pack: end !important;\n align-content: flex-end !important;\n }\n .align-content-sm-center {\n -ms-flex-line-pack: center !important;\n align-content: center !important;\n }\n .align-content-sm-between {\n -ms-flex-line-pack: justify !important;\n align-content: space-between !important;\n }\n .align-content-sm-around {\n -ms-flex-line-pack: distribute !important;\n align-content: space-around !important;\n }\n .align-content-sm-stretch {\n -ms-flex-line-pack: stretch !important;\n align-content: stretch !important;\n }\n .align-self-sm-auto {\n -ms-flex-item-align: auto !important;\n align-self: auto !important;\n }\n .align-self-sm-start {\n -ms-flex-item-align: start !important;\n align-self: flex-start !important;\n }\n .align-self-sm-end {\n -ms-flex-item-align: end !important;\n align-self: flex-end !important;\n }\n .align-self-sm-center {\n -ms-flex-item-align: center !important;\n align-self: center !important;\n }\n .align-self-sm-baseline {\n -ms-flex-item-align: baseline !important;\n align-self: baseline !important;\n }\n .align-self-sm-stretch {\n -ms-flex-item-align: stretch !important;\n align-self: stretch !important;\n }\n}\n\n@media (min-width: 768px) {\n .flex-md-row {\n -ms-flex-direction: row !important;\n flex-direction: row !important;\n }\n .flex-md-column {\n -ms-flex-direction: column !important;\n flex-direction: column !important;\n }\n .flex-md-row-reverse {\n -ms-flex-direction: row-reverse !important;\n flex-direction: row-reverse !important;\n }\n .flex-md-column-reverse {\n -ms-flex-direction: column-reverse !important;\n flex-direction: column-reverse !important;\n }\n .flex-md-wrap {\n -ms-flex-wrap: wrap !important;\n flex-wrap: wrap !important;\n }\n .flex-md-nowrap {\n -ms-flex-wrap: nowrap !important;\n flex-wrap: nowrap !important;\n }\n .flex-md-wrap-reverse {\n -ms-flex-wrap: wrap-reverse !important;\n flex-wrap: wrap-reverse !important;\n }\n .flex-md-fill {\n -ms-flex: 1 1 auto !important;\n flex: 1 1 auto !important;\n }\n .flex-md-grow-0 {\n -ms-flex-positive: 0 !important;\n flex-grow: 0 !important;\n }\n .flex-md-grow-1 {\n -ms-flex-positive: 1 !important;\n flex-grow: 1 !important;\n }\n .flex-md-shrink-0 {\n -ms-flex-negative: 0 !important;\n flex-shrink: 0 !important;\n }\n .flex-md-shrink-1 {\n -ms-flex-negative: 1 !important;\n flex-shrink: 1 !important;\n }\n .justify-content-md-start {\n -ms-flex-pack: start !important;\n justify-content: flex-start !important;\n }\n .justify-content-md-end {\n -ms-flex-pack: end !important;\n justify-content: flex-end !important;\n }\n .justify-content-md-center {\n -ms-flex-pack: center !important;\n justify-content: center !important;\n }\n .justify-content-md-between {\n -ms-flex-pack: justify !important;\n justify-content: space-between !important;\n }\n .justify-content-md-around {\n -ms-flex-pack: distribute !important;\n justify-content: space-around !important;\n }\n .align-items-md-start {\n -ms-flex-align: start !important;\n align-items: flex-start !important;\n }\n .align-items-md-end {\n -ms-flex-align: end !important;\n align-items: flex-end !important;\n }\n .align-items-md-center {\n -ms-flex-align: center !important;\n align-items: center !important;\n }\n .align-items-md-baseline {\n -ms-flex-align: baseline !important;\n align-items: baseline !important;\n }\n .align-items-md-stretch {\n -ms-flex-align: stretch !important;\n align-items: stretch !important;\n }\n .align-content-md-start {\n -ms-flex-line-pack: start !important;\n align-content: flex-start !important;\n }\n .align-content-md-end {\n -ms-flex-line-pack: end !important;\n align-content: flex-end !important;\n }\n .align-content-md-center {\n -ms-flex-line-pack: center !important;\n align-content: center !important;\n }\n .align-content-md-between {\n -ms-flex-line-pack: justify !important;\n align-content: space-between !important;\n }\n .align-content-md-around {\n -ms-flex-line-pack: distribute !important;\n align-content: space-around !important;\n }\n .align-content-md-stretch {\n -ms-flex-line-pack: stretch !important;\n align-content: stretch !important;\n }\n .align-self-md-auto {\n -ms-flex-item-align: auto !important;\n align-self: auto !important;\n }\n .align-self-md-start {\n -ms-flex-item-align: start !important;\n align-self: flex-start !important;\n }\n .align-self-md-end {\n -ms-flex-item-align: end !important;\n align-self: flex-end !important;\n }\n .align-self-md-center {\n -ms-flex-item-align: center !important;\n align-self: center !important;\n }\n .align-self-md-baseline {\n -ms-flex-item-align: baseline !important;\n align-self: baseline !important;\n }\n .align-self-md-stretch {\n -ms-flex-item-align: stretch !important;\n align-self: stretch !important;\n }\n}\n\n@media (min-width: 992px) {\n .flex-lg-row {\n -ms-flex-direction: row !important;\n flex-direction: row !important;\n }\n .flex-lg-column {\n -ms-flex-direction: column !important;\n flex-direction: column !important;\n }\n .flex-lg-row-reverse {\n -ms-flex-direction: row-reverse !important;\n flex-direction: row-reverse !important;\n }\n .flex-lg-column-reverse {\n -ms-flex-direction: column-reverse !important;\n flex-direction: column-reverse !important;\n }\n .flex-lg-wrap {\n -ms-flex-wrap: wrap !important;\n flex-wrap: wrap !important;\n }\n .flex-lg-nowrap {\n -ms-flex-wrap: nowrap !important;\n flex-wrap: nowrap !important;\n }\n .flex-lg-wrap-reverse {\n -ms-flex-wrap: wrap-reverse !important;\n flex-wrap: wrap-reverse !important;\n }\n .flex-lg-fill {\n -ms-flex: 1 1 auto !important;\n flex: 1 1 auto !important;\n }\n .flex-lg-grow-0 {\n -ms-flex-positive: 0 !important;\n flex-grow: 0 !important;\n }\n .flex-lg-grow-1 {\n -ms-flex-positive: 1 !important;\n flex-grow: 1 !important;\n }\n .flex-lg-shrink-0 {\n -ms-flex-negative: 0 !important;\n flex-shrink: 0 !important;\n }\n .flex-lg-shrink-1 {\n -ms-flex-negative: 1 !important;\n flex-shrink: 1 !important;\n }\n .justify-content-lg-start {\n -ms-flex-pack: start !important;\n justify-content: flex-start !important;\n }\n .justify-content-lg-end {\n -ms-flex-pack: end !important;\n justify-content: flex-end !important;\n }\n .justify-content-lg-center {\n -ms-flex-pack: center !important;\n justify-content: center !important;\n }\n .justify-content-lg-between {\n -ms-flex-pack: justify !important;\n justify-content: space-between !important;\n }\n .justify-content-lg-around {\n -ms-flex-pack: distribute !important;\n justify-content: space-around !important;\n }\n .align-items-lg-start {\n -ms-flex-align: start !important;\n align-items: flex-start !important;\n }\n .align-items-lg-end {\n -ms-flex-align: end !important;\n align-items: flex-end !important;\n }\n .align-items-lg-center {\n -ms-flex-align: center !important;\n align-items: center !important;\n }\n .align-items-lg-baseline {\n -ms-flex-align: baseline !important;\n align-items: baseline !important;\n }\n .align-items-lg-stretch {\n -ms-flex-align: stretch !important;\n align-items: stretch !important;\n }\n .align-content-lg-start {\n -ms-flex-line-pack: start !important;\n align-content: flex-start !important;\n }\n .align-content-lg-end {\n -ms-flex-line-pack: end !important;\n align-content: flex-end !important;\n }\n .align-content-lg-center {\n -ms-flex-line-pack: center !important;\n align-content: center !important;\n }\n .align-content-lg-between {\n -ms-flex-line-pack: justify !important;\n align-content: space-between !important;\n }\n .align-content-lg-around {\n -ms-flex-line-pack: distribute !important;\n align-content: space-around !important;\n }\n .align-content-lg-stretch {\n -ms-flex-line-pack: stretch !important;\n align-content: stretch !important;\n }\n .align-self-lg-auto {\n -ms-flex-item-align: auto !important;\n align-self: auto !important;\n }\n .align-self-lg-start {\n -ms-flex-item-align: start !important;\n align-self: flex-start !important;\n }\n .align-self-lg-end {\n -ms-flex-item-align: end !important;\n align-self: flex-end !important;\n }\n .align-self-lg-center {\n -ms-flex-item-align: center !important;\n align-self: center !important;\n }\n .align-self-lg-baseline {\n -ms-flex-item-align: baseline !important;\n align-self: baseline !important;\n }\n .align-self-lg-stretch {\n -ms-flex-item-align: stretch !important;\n align-self: stretch !important;\n }\n}\n\n@media (min-width: 1200px) {\n .flex-xl-row {\n -ms-flex-direction: row !important;\n flex-direction: row !important;\n }\n .flex-xl-column {\n -ms-flex-direction: column !important;\n flex-direction: column !important;\n }\n .flex-xl-row-reverse {\n -ms-flex-direction: row-reverse !important;\n flex-direction: row-reverse !important;\n }\n .flex-xl-column-reverse {\n -ms-flex-direction: column-reverse !important;\n flex-direction: column-reverse !important;\n }\n .flex-xl-wrap {\n -ms-flex-wrap: wrap !important;\n flex-wrap: wrap !important;\n }\n .flex-xl-nowrap {\n -ms-flex-wrap: nowrap !important;\n flex-wrap: nowrap !important;\n }\n .flex-xl-wrap-reverse {\n -ms-flex-wrap: wrap-reverse !important;\n flex-wrap: wrap-reverse !important;\n }\n .flex-xl-fill {\n -ms-flex: 1 1 auto !important;\n flex: 1 1 auto !important;\n }\n .flex-xl-grow-0 {\n -ms-flex-positive: 0 !important;\n flex-grow: 0 !important;\n }\n .flex-xl-grow-1 {\n -ms-flex-positive: 1 !important;\n flex-grow: 1 !important;\n }\n .flex-xl-shrink-0 {\n -ms-flex-negative: 0 !important;\n flex-shrink: 0 !important;\n }\n .flex-xl-shrink-1 {\n -ms-flex-negative: 1 !important;\n flex-shrink: 1 !important;\n }\n .justify-content-xl-start {\n -ms-flex-pack: start !important;\n justify-content: flex-start !important;\n }\n .justify-content-xl-end {\n -ms-flex-pack: end !important;\n justify-content: flex-end !important;\n }\n .justify-content-xl-center {\n -ms-flex-pack: center !important;\n justify-content: center !important;\n }\n .justify-content-xl-between {\n -ms-flex-pack: justify !important;\n justify-content: space-between !important;\n }\n .justify-content-xl-around {\n -ms-flex-pack: distribute !important;\n justify-content: space-around !important;\n }\n .align-items-xl-start {\n -ms-flex-align: start !important;\n align-items: flex-start !important;\n }\n .align-items-xl-end {\n -ms-flex-align: end !important;\n align-items: flex-end !important;\n }\n .align-items-xl-center {\n -ms-flex-align: center !important;\n align-items: center !important;\n }\n .align-items-xl-baseline {\n -ms-flex-align: baseline !important;\n align-items: baseline !important;\n }\n .align-items-xl-stretch {\n -ms-flex-align: stretch !important;\n align-items: stretch !important;\n }\n .align-content-xl-start {\n -ms-flex-line-pack: start !important;\n align-content: flex-start !important;\n }\n .align-content-xl-end {\n -ms-flex-line-pack: end !important;\n align-content: flex-end !important;\n }\n .align-content-xl-center {\n -ms-flex-line-pack: center !important;\n align-content: center !important;\n }\n .align-content-xl-between {\n -ms-flex-line-pack: justify !important;\n align-content: space-between !important;\n }\n .align-content-xl-around {\n -ms-flex-line-pack: distribute !important;\n align-content: space-around !important;\n }\n .align-content-xl-stretch {\n -ms-flex-line-pack: stretch !important;\n align-content: stretch !important;\n }\n .align-self-xl-auto {\n -ms-flex-item-align: auto !important;\n align-self: auto !important;\n }\n .align-self-xl-start {\n -ms-flex-item-align: start !important;\n align-self: flex-start !important;\n }\n .align-self-xl-end {\n -ms-flex-item-align: end !important;\n align-self: flex-end !important;\n }\n .align-self-xl-center {\n -ms-flex-item-align: center !important;\n align-self: center !important;\n }\n .align-self-xl-baseline {\n -ms-flex-item-align: baseline !important;\n align-self: baseline !important;\n }\n .align-self-xl-stretch {\n -ms-flex-item-align: stretch !important;\n align-self: stretch !important;\n }\n}\n\n.m-0 {\n margin: 0 !important;\n}\n\n.mt-0,\n.my-0 {\n margin-top: 0 !important;\n}\n\n.mr-0,\n.mx-0 {\n margin-right: 0 !important;\n}\n\n.mb-0,\n.my-0 {\n margin-bottom: 0 !important;\n}\n\n.ml-0,\n.mx-0 {\n margin-left: 0 !important;\n}\n\n.m-1 {\n margin: 0.25rem !important;\n}\n\n.mt-1,\n.my-1 {\n margin-top: 0.25rem !important;\n}\n\n.mr-1,\n.mx-1 {\n margin-right: 0.25rem !important;\n}\n\n.mb-1,\n.my-1 {\n margin-bottom: 0.25rem !important;\n}\n\n.ml-1,\n.mx-1 {\n margin-left: 0.25rem !important;\n}\n\n.m-2 {\n margin: 0.5rem !important;\n}\n\n.mt-2,\n.my-2 {\n margin-top: 0.5rem !important;\n}\n\n.mr-2,\n.mx-2 {\n margin-right: 0.5rem !important;\n}\n\n.mb-2,\n.my-2 {\n margin-bottom: 0.5rem !important;\n}\n\n.ml-2,\n.mx-2 {\n margin-left: 0.5rem !important;\n}\n\n.m-3 {\n margin: 1rem !important;\n}\n\n.mt-3,\n.my-3 {\n margin-top: 1rem !important;\n}\n\n.mr-3,\n.mx-3 {\n margin-right: 1rem !important;\n}\n\n.mb-3,\n.my-3 {\n margin-bottom: 1rem !important;\n}\n\n.ml-3,\n.mx-3 {\n margin-left: 1rem !important;\n}\n\n.m-4 {\n margin: 1.5rem !important;\n}\n\n.mt-4,\n.my-4 {\n margin-top: 1.5rem !important;\n}\n\n.mr-4,\n.mx-4 {\n margin-right: 1.5rem !important;\n}\n\n.mb-4,\n.my-4 {\n margin-bottom: 1.5rem !important;\n}\n\n.ml-4,\n.mx-4 {\n margin-left: 1.5rem !important;\n}\n\n.m-5 {\n margin: 3rem !important;\n}\n\n.mt-5,\n.my-5 {\n margin-top: 3rem !important;\n}\n\n.mr-5,\n.mx-5 {\n margin-right: 3rem !important;\n}\n\n.mb-5,\n.my-5 {\n margin-bottom: 3rem !important;\n}\n\n.ml-5,\n.mx-5 {\n margin-left: 3rem !important;\n}\n\n.p-0 {\n padding: 0 !important;\n}\n\n.pt-0,\n.py-0 {\n padding-top: 0 !important;\n}\n\n.pr-0,\n.px-0 {\n padding-right: 0 !important;\n}\n\n.pb-0,\n.py-0 {\n padding-bottom: 0 !important;\n}\n\n.pl-0,\n.px-0 {\n padding-left: 0 !important;\n}\n\n.p-1 {\n padding: 0.25rem !important;\n}\n\n.pt-1,\n.py-1 {\n padding-top: 0.25rem !important;\n}\n\n.pr-1,\n.px-1 {\n padding-right: 0.25rem !important;\n}\n\n.pb-1,\n.py-1 {\n padding-bottom: 0.25rem !important;\n}\n\n.pl-1,\n.px-1 {\n padding-left: 0.25rem !important;\n}\n\n.p-2 {\n padding: 0.5rem !important;\n}\n\n.pt-2,\n.py-2 {\n padding-top: 0.5rem !important;\n}\n\n.pr-2,\n.px-2 {\n padding-right: 0.5rem !important;\n}\n\n.pb-2,\n.py-2 {\n padding-bottom: 0.5rem !important;\n}\n\n.pl-2,\n.px-2 {\n padding-left: 0.5rem !important;\n}\n\n.p-3 {\n padding: 1rem !important;\n}\n\n.pt-3,\n.py-3 {\n padding-top: 1rem !important;\n}\n\n.pr-3,\n.px-3 {\n padding-right: 1rem !important;\n}\n\n.pb-3,\n.py-3 {\n padding-bottom: 1rem !important;\n}\n\n.pl-3,\n.px-3 {\n padding-left: 1rem !important;\n}\n\n.p-4 {\n padding: 1.5rem !important;\n}\n\n.pt-4,\n.py-4 {\n padding-top: 1.5rem !important;\n}\n\n.pr-4,\n.px-4 {\n padding-right: 1.5rem !important;\n}\n\n.pb-4,\n.py-4 {\n padding-bottom: 1.5rem !important;\n}\n\n.pl-4,\n.px-4 {\n padding-left: 1.5rem !important;\n}\n\n.p-5 {\n padding: 3rem !important;\n}\n\n.pt-5,\n.py-5 {\n padding-top: 3rem !important;\n}\n\n.pr-5,\n.px-5 {\n padding-right: 3rem !important;\n}\n\n.pb-5,\n.py-5 {\n padding-bottom: 3rem !important;\n}\n\n.pl-5,\n.px-5 {\n padding-left: 3rem !important;\n}\n\n.m-n1 {\n margin: -0.25rem !important;\n}\n\n.mt-n1,\n.my-n1 {\n margin-top: -0.25rem !important;\n}\n\n.mr-n1,\n.mx-n1 {\n margin-right: -0.25rem !important;\n}\n\n.mb-n1,\n.my-n1 {\n margin-bottom: -0.25rem !important;\n}\n\n.ml-n1,\n.mx-n1 {\n margin-left: -0.25rem !important;\n}\n\n.m-n2 {\n margin: -0.5rem !important;\n}\n\n.mt-n2,\n.my-n2 {\n margin-top: -0.5rem !important;\n}\n\n.mr-n2,\n.mx-n2 {\n margin-right: -0.5rem !important;\n}\n\n.mb-n2,\n.my-n2 {\n margin-bottom: -0.5rem !important;\n}\n\n.ml-n2,\n.mx-n2 {\n margin-left: -0.5rem !important;\n}\n\n.m-n3 {\n margin: -1rem !important;\n}\n\n.mt-n3,\n.my-n3 {\n margin-top: -1rem !important;\n}\n\n.mr-n3,\n.mx-n3 {\n margin-right: -1rem !important;\n}\n\n.mb-n3,\n.my-n3 {\n margin-bottom: -1rem !important;\n}\n\n.ml-n3,\n.mx-n3 {\n margin-left: -1rem !important;\n}\n\n.m-n4 {\n margin: -1.5rem !important;\n}\n\n.mt-n4,\n.my-n4 {\n margin-top: -1.5rem !important;\n}\n\n.mr-n4,\n.mx-n4 {\n margin-right: -1.5rem !important;\n}\n\n.mb-n4,\n.my-n4 {\n margin-bottom: -1.5rem !important;\n}\n\n.ml-n4,\n.mx-n4 {\n margin-left: -1.5rem !important;\n}\n\n.m-n5 {\n margin: -3rem !important;\n}\n\n.mt-n5,\n.my-n5 {\n margin-top: -3rem !important;\n}\n\n.mr-n5,\n.mx-n5 {\n margin-right: -3rem !important;\n}\n\n.mb-n5,\n.my-n5 {\n margin-bottom: -3rem !important;\n}\n\n.ml-n5,\n.mx-n5 {\n margin-left: -3rem !important;\n}\n\n.m-auto {\n margin: auto !important;\n}\n\n.mt-auto,\n.my-auto {\n margin-top: auto !important;\n}\n\n.mr-auto,\n.mx-auto {\n margin-right: auto !important;\n}\n\n.mb-auto,\n.my-auto {\n margin-bottom: auto !important;\n}\n\n.ml-auto,\n.mx-auto {\n margin-left: auto !important;\n}\n\n@media (min-width: 576px) {\n .m-sm-0 {\n margin: 0 !important;\n }\n .mt-sm-0,\n .my-sm-0 {\n margin-top: 0 !important;\n }\n .mr-sm-0,\n .mx-sm-0 {\n margin-right: 0 !important;\n }\n .mb-sm-0,\n .my-sm-0 {\n margin-bottom: 0 !important;\n }\n .ml-sm-0,\n .mx-sm-0 {\n margin-left: 0 !important;\n }\n .m-sm-1 {\n margin: 0.25rem !important;\n }\n .mt-sm-1,\n .my-sm-1 {\n margin-top: 0.25rem !important;\n }\n .mr-sm-1,\n .mx-sm-1 {\n margin-right: 0.25rem !important;\n }\n .mb-sm-1,\n .my-sm-1 {\n margin-bottom: 0.25rem !important;\n }\n .ml-sm-1,\n .mx-sm-1 {\n margin-left: 0.25rem !important;\n }\n .m-sm-2 {\n margin: 0.5rem !important;\n }\n .mt-sm-2,\n .my-sm-2 {\n margin-top: 0.5rem !important;\n }\n .mr-sm-2,\n .mx-sm-2 {\n margin-right: 0.5rem !important;\n }\n .mb-sm-2,\n .my-sm-2 {\n margin-bottom: 0.5rem !important;\n }\n .ml-sm-2,\n .mx-sm-2 {\n margin-left: 0.5rem !important;\n }\n .m-sm-3 {\n margin: 1rem !important;\n }\n .mt-sm-3,\n .my-sm-3 {\n margin-top: 1rem !important;\n }\n .mr-sm-3,\n .mx-sm-3 {\n margin-right: 1rem !important;\n }\n .mb-sm-3,\n .my-sm-3 {\n margin-bottom: 1rem !important;\n }\n .ml-sm-3,\n .mx-sm-3 {\n margin-left: 1rem !important;\n }\n .m-sm-4 {\n margin: 1.5rem !important;\n }\n .mt-sm-4,\n .my-sm-4 {\n margin-top: 1.5rem !important;\n }\n .mr-sm-4,\n .mx-sm-4 {\n margin-right: 1.5rem !important;\n }\n .mb-sm-4,\n .my-sm-4 {\n margin-bottom: 1.5rem !important;\n }\n .ml-sm-4,\n .mx-sm-4 {\n margin-left: 1.5rem !important;\n }\n .m-sm-5 {\n margin: 3rem !important;\n }\n .mt-sm-5,\n .my-sm-5 {\n margin-top: 3rem !important;\n }\n .mr-sm-5,\n .mx-sm-5 {\n margin-right: 3rem !important;\n }\n .mb-sm-5,\n .my-sm-5 {\n margin-bottom: 3rem !important;\n }\n .ml-sm-5,\n .mx-sm-5 {\n margin-left: 3rem !important;\n }\n .p-sm-0 {\n padding: 0 !important;\n }\n .pt-sm-0,\n .py-sm-0 {\n padding-top: 0 !important;\n }\n .pr-sm-0,\n .px-sm-0 {\n padding-right: 0 !important;\n }\n .pb-sm-0,\n .py-sm-0 {\n padding-bottom: 0 !important;\n }\n .pl-sm-0,\n .px-sm-0 {\n padding-left: 0 !important;\n }\n .p-sm-1 {\n padding: 0.25rem !important;\n }\n .pt-sm-1,\n .py-sm-1 {\n padding-top: 0.25rem !important;\n }\n .pr-sm-1,\n .px-sm-1 {\n padding-right: 0.25rem !important;\n }\n .pb-sm-1,\n .py-sm-1 {\n padding-bottom: 0.25rem !important;\n }\n .pl-sm-1,\n .px-sm-1 {\n padding-left: 0.25rem !important;\n }\n .p-sm-2 {\n padding: 0.5rem !important;\n }\n .pt-sm-2,\n .py-sm-2 {\n padding-top: 0.5rem !important;\n }\n .pr-sm-2,\n .px-sm-2 {\n padding-right: 0.5rem !important;\n }\n .pb-sm-2,\n .py-sm-2 {\n padding-bottom: 0.5rem !important;\n }\n .pl-sm-2,\n .px-sm-2 {\n padding-left: 0.5rem !important;\n }\n .p-sm-3 {\n padding: 1rem !important;\n }\n .pt-sm-3,\n .py-sm-3 {\n padding-top: 1rem !important;\n }\n .pr-sm-3,\n .px-sm-3 {\n padding-right: 1rem !important;\n }\n .pb-sm-3,\n .py-sm-3 {\n padding-bottom: 1rem !important;\n }\n .pl-sm-3,\n .px-sm-3 {\n padding-left: 1rem !important;\n }\n .p-sm-4 {\n padding: 1.5rem !important;\n }\n .pt-sm-4,\n .py-sm-4 {\n padding-top: 1.5rem !important;\n }\n .pr-sm-4,\n .px-sm-4 {\n padding-right: 1.5rem !important;\n }\n .pb-sm-4,\n .py-sm-4 {\n padding-bottom: 1.5rem !important;\n }\n .pl-sm-4,\n .px-sm-4 {\n padding-left: 1.5rem !important;\n }\n .p-sm-5 {\n padding: 3rem !important;\n }\n .pt-sm-5,\n .py-sm-5 {\n padding-top: 3rem !important;\n }\n .pr-sm-5,\n .px-sm-5 {\n padding-right: 3rem !important;\n }\n .pb-sm-5,\n .py-sm-5 {\n padding-bottom: 3rem !important;\n }\n .pl-sm-5,\n .px-sm-5 {\n padding-left: 3rem !important;\n }\n .m-sm-n1 {\n margin: -0.25rem !important;\n }\n .mt-sm-n1,\n .my-sm-n1 {\n margin-top: -0.25rem !important;\n }\n .mr-sm-n1,\n .mx-sm-n1 {\n margin-right: -0.25rem !important;\n }\n .mb-sm-n1,\n .my-sm-n1 {\n margin-bottom: -0.25rem !important;\n }\n .ml-sm-n1,\n .mx-sm-n1 {\n margin-left: -0.25rem !important;\n }\n .m-sm-n2 {\n margin: -0.5rem !important;\n }\n .mt-sm-n2,\n .my-sm-n2 {\n margin-top: -0.5rem !important;\n }\n .mr-sm-n2,\n .mx-sm-n2 {\n margin-right: -0.5rem !important;\n }\n .mb-sm-n2,\n .my-sm-n2 {\n margin-bottom: -0.5rem !important;\n }\n .ml-sm-n2,\n .mx-sm-n2 {\n margin-left: -0.5rem !important;\n }\n .m-sm-n3 {\n margin: -1rem !important;\n }\n .mt-sm-n3,\n .my-sm-n3 {\n margin-top: -1rem !important;\n }\n .mr-sm-n3,\n .mx-sm-n3 {\n margin-right: -1rem !important;\n }\n .mb-sm-n3,\n .my-sm-n3 {\n margin-bottom: -1rem !important;\n }\n .ml-sm-n3,\n .mx-sm-n3 {\n margin-left: -1rem !important;\n }\n .m-sm-n4 {\n margin: -1.5rem !important;\n }\n .mt-sm-n4,\n .my-sm-n4 {\n margin-top: -1.5rem !important;\n }\n .mr-sm-n4,\n .mx-sm-n4 {\n margin-right: -1.5rem !important;\n }\n .mb-sm-n4,\n .my-sm-n4 {\n margin-bottom: -1.5rem !important;\n }\n .ml-sm-n4,\n .mx-sm-n4 {\n margin-left: -1.5rem !important;\n }\n .m-sm-n5 {\n margin: -3rem !important;\n }\n .mt-sm-n5,\n .my-sm-n5 {\n margin-top: -3rem !important;\n }\n .mr-sm-n5,\n .mx-sm-n5 {\n margin-right: -3rem !important;\n }\n .mb-sm-n5,\n .my-sm-n5 {\n margin-bottom: -3rem !important;\n }\n .ml-sm-n5,\n .mx-sm-n5 {\n margin-left: -3rem !important;\n }\n .m-sm-auto {\n margin: auto !important;\n }\n .mt-sm-auto,\n .my-sm-auto {\n margin-top: auto !important;\n }\n .mr-sm-auto,\n .mx-sm-auto {\n margin-right: auto !important;\n }\n .mb-sm-auto,\n .my-sm-auto {\n margin-bottom: auto !important;\n }\n .ml-sm-auto,\n .mx-sm-auto {\n margin-left: auto !important;\n }\n}\n\n@media (min-width: 768px) {\n .m-md-0 {\n margin: 0 !important;\n }\n .mt-md-0,\n .my-md-0 {\n margin-top: 0 !important;\n }\n .mr-md-0,\n .mx-md-0 {\n margin-right: 0 !important;\n }\n .mb-md-0,\n .my-md-0 {\n margin-bottom: 0 !important;\n }\n .ml-md-0,\n .mx-md-0 {\n margin-left: 0 !important;\n }\n .m-md-1 {\n margin: 0.25rem !important;\n }\n .mt-md-1,\n .my-md-1 {\n margin-top: 0.25rem !important;\n }\n .mr-md-1,\n .mx-md-1 {\n margin-right: 0.25rem !important;\n }\n .mb-md-1,\n .my-md-1 {\n margin-bottom: 0.25rem !important;\n }\n .ml-md-1,\n .mx-md-1 {\n margin-left: 0.25rem !important;\n }\n .m-md-2 {\n margin: 0.5rem !important;\n }\n .mt-md-2,\n .my-md-2 {\n margin-top: 0.5rem !important;\n }\n .mr-md-2,\n .mx-md-2 {\n margin-right: 0.5rem !important;\n }\n .mb-md-2,\n .my-md-2 {\n margin-bottom: 0.5rem !important;\n }\n .ml-md-2,\n .mx-md-2 {\n margin-left: 0.5rem !important;\n }\n .m-md-3 {\n margin: 1rem !important;\n }\n .mt-md-3,\n .my-md-3 {\n margin-top: 1rem !important;\n }\n .mr-md-3,\n .mx-md-3 {\n margin-right: 1rem !important;\n }\n .mb-md-3,\n .my-md-3 {\n margin-bottom: 1rem !important;\n }\n .ml-md-3,\n .mx-md-3 {\n margin-left: 1rem !important;\n }\n .m-md-4 {\n margin: 1.5rem !important;\n }\n .mt-md-4,\n .my-md-4 {\n margin-top: 1.5rem !important;\n }\n .mr-md-4,\n .mx-md-4 {\n margin-right: 1.5rem !important;\n }\n .mb-md-4,\n .my-md-4 {\n margin-bottom: 1.5rem !important;\n }\n .ml-md-4,\n .mx-md-4 {\n margin-left: 1.5rem !important;\n }\n .m-md-5 {\n margin: 3rem !important;\n }\n .mt-md-5,\n .my-md-5 {\n margin-top: 3rem !important;\n }\n .mr-md-5,\n .mx-md-5 {\n margin-right: 3rem !important;\n }\n .mb-md-5,\n .my-md-5 {\n margin-bottom: 3rem !important;\n }\n .ml-md-5,\n .mx-md-5 {\n margin-left: 3rem !important;\n }\n .p-md-0 {\n padding: 0 !important;\n }\n .pt-md-0,\n .py-md-0 {\n padding-top: 0 !important;\n }\n .pr-md-0,\n .px-md-0 {\n padding-right: 0 !important;\n }\n .pb-md-0,\n .py-md-0 {\n padding-bottom: 0 !important;\n }\n .pl-md-0,\n .px-md-0 {\n padding-left: 0 !important;\n }\n .p-md-1 {\n padding: 0.25rem !important;\n }\n .pt-md-1,\n .py-md-1 {\n padding-top: 0.25rem !important;\n }\n .pr-md-1,\n .px-md-1 {\n padding-right: 0.25rem !important;\n }\n .pb-md-1,\n .py-md-1 {\n padding-bottom: 0.25rem !important;\n }\n .pl-md-1,\n .px-md-1 {\n padding-left: 0.25rem !important;\n }\n .p-md-2 {\n padding: 0.5rem !important;\n }\n .pt-md-2,\n .py-md-2 {\n padding-top: 0.5rem !important;\n }\n .pr-md-2,\n .px-md-2 {\n padding-right: 0.5rem !important;\n }\n .pb-md-2,\n .py-md-2 {\n padding-bottom: 0.5rem !important;\n }\n .pl-md-2,\n .px-md-2 {\n padding-left: 0.5rem !important;\n }\n .p-md-3 {\n padding: 1rem !important;\n }\n .pt-md-3,\n .py-md-3 {\n padding-top: 1rem !important;\n }\n .pr-md-3,\n .px-md-3 {\n padding-right: 1rem !important;\n }\n .pb-md-3,\n .py-md-3 {\n padding-bottom: 1rem !important;\n }\n .pl-md-3,\n .px-md-3 {\n padding-left: 1rem !important;\n }\n .p-md-4 {\n padding: 1.5rem !important;\n }\n .pt-md-4,\n .py-md-4 {\n padding-top: 1.5rem !important;\n }\n .pr-md-4,\n .px-md-4 {\n padding-right: 1.5rem !important;\n }\n .pb-md-4,\n .py-md-4 {\n padding-bottom: 1.5rem !important;\n }\n .pl-md-4,\n .px-md-4 {\n padding-left: 1.5rem !important;\n }\n .p-md-5 {\n padding: 3rem !important;\n }\n .pt-md-5,\n .py-md-5 {\n padding-top: 3rem !important;\n }\n .pr-md-5,\n .px-md-5 {\n padding-right: 3rem !important;\n }\n .pb-md-5,\n .py-md-5 {\n padding-bottom: 3rem !important;\n }\n .pl-md-5,\n .px-md-5 {\n padding-left: 3rem !important;\n }\n .m-md-n1 {\n margin: -0.25rem !important;\n }\n .mt-md-n1,\n .my-md-n1 {\n margin-top: -0.25rem !important;\n }\n .mr-md-n1,\n .mx-md-n1 {\n margin-right: -0.25rem !important;\n }\n .mb-md-n1,\n .my-md-n1 {\n margin-bottom: -0.25rem !important;\n }\n .ml-md-n1,\n .mx-md-n1 {\n margin-left: -0.25rem !important;\n }\n .m-md-n2 {\n margin: -0.5rem !important;\n }\n .mt-md-n2,\n .my-md-n2 {\n margin-top: -0.5rem !important;\n }\n .mr-md-n2,\n .mx-md-n2 {\n margin-right: -0.5rem !important;\n }\n .mb-md-n2,\n .my-md-n2 {\n margin-bottom: -0.5rem !important;\n }\n .ml-md-n2,\n .mx-md-n2 {\n margin-left: -0.5rem !important;\n }\n .m-md-n3 {\n margin: -1rem !important;\n }\n .mt-md-n3,\n .my-md-n3 {\n margin-top: -1rem !important;\n }\n .mr-md-n3,\n .mx-md-n3 {\n margin-right: -1rem !important;\n }\n .mb-md-n3,\n .my-md-n3 {\n margin-bottom: -1rem !important;\n }\n .ml-md-n3,\n .mx-md-n3 {\n margin-left: -1rem !important;\n }\n .m-md-n4 {\n margin: -1.5rem !important;\n }\n .mt-md-n4,\n .my-md-n4 {\n margin-top: -1.5rem !important;\n }\n .mr-md-n4,\n .mx-md-n4 {\n margin-right: -1.5rem !important;\n }\n .mb-md-n4,\n .my-md-n4 {\n margin-bottom: -1.5rem !important;\n }\n .ml-md-n4,\n .mx-md-n4 {\n margin-left: -1.5rem !important;\n }\n .m-md-n5 {\n margin: -3rem !important;\n }\n .mt-md-n5,\n .my-md-n5 {\n margin-top: -3rem !important;\n }\n .mr-md-n5,\n .mx-md-n5 {\n margin-right: -3rem !important;\n }\n .mb-md-n5,\n .my-md-n5 {\n margin-bottom: -3rem !important;\n }\n .ml-md-n5,\n .mx-md-n5 {\n margin-left: -3rem !important;\n }\n .m-md-auto {\n margin: auto !important;\n }\n .mt-md-auto,\n .my-md-auto {\n margin-top: auto !important;\n }\n .mr-md-auto,\n .mx-md-auto {\n margin-right: auto !important;\n }\n .mb-md-auto,\n .my-md-auto {\n margin-bottom: auto !important;\n }\n .ml-md-auto,\n .mx-md-auto {\n margin-left: auto !important;\n }\n}\n\n@media (min-width: 992px) {\n .m-lg-0 {\n margin: 0 !important;\n }\n .mt-lg-0,\n .my-lg-0 {\n margin-top: 0 !important;\n }\n .mr-lg-0,\n .mx-lg-0 {\n margin-right: 0 !important;\n }\n .mb-lg-0,\n .my-lg-0 {\n margin-bottom: 0 !important;\n }\n .ml-lg-0,\n .mx-lg-0 {\n margin-left: 0 !important;\n }\n .m-lg-1 {\n margin: 0.25rem !important;\n }\n .mt-lg-1,\n .my-lg-1 {\n margin-top: 0.25rem !important;\n }\n .mr-lg-1,\n .mx-lg-1 {\n margin-right: 0.25rem !important;\n }\n .mb-lg-1,\n .my-lg-1 {\n margin-bottom: 0.25rem !important;\n }\n .ml-lg-1,\n .mx-lg-1 {\n margin-left: 0.25rem !important;\n }\n .m-lg-2 {\n margin: 0.5rem !important;\n }\n .mt-lg-2,\n .my-lg-2 {\n margin-top: 0.5rem !important;\n }\n .mr-lg-2,\n .mx-lg-2 {\n margin-right: 0.5rem !important;\n }\n .mb-lg-2,\n .my-lg-2 {\n margin-bottom: 0.5rem !important;\n }\n .ml-lg-2,\n .mx-lg-2 {\n margin-left: 0.5rem !important;\n }\n .m-lg-3 {\n margin: 1rem !important;\n }\n .mt-lg-3,\n .my-lg-3 {\n margin-top: 1rem !important;\n }\n .mr-lg-3,\n .mx-lg-3 {\n margin-right: 1rem !important;\n }\n .mb-lg-3,\n .my-lg-3 {\n margin-bottom: 1rem !important;\n }\n .ml-lg-3,\n .mx-lg-3 {\n margin-left: 1rem !important;\n }\n .m-lg-4 {\n margin: 1.5rem !important;\n }\n .mt-lg-4,\n .my-lg-4 {\n margin-top: 1.5rem !important;\n }\n .mr-lg-4,\n .mx-lg-4 {\n margin-right: 1.5rem !important;\n }\n .mb-lg-4,\n .my-lg-4 {\n margin-bottom: 1.5rem !important;\n }\n .ml-lg-4,\n .mx-lg-4 {\n margin-left: 1.5rem !important;\n }\n .m-lg-5 {\n margin: 3rem !important;\n }\n .mt-lg-5,\n .my-lg-5 {\n margin-top: 3rem !important;\n }\n .mr-lg-5,\n .mx-lg-5 {\n margin-right: 3rem !important;\n }\n .mb-lg-5,\n .my-lg-5 {\n margin-bottom: 3rem !important;\n }\n .ml-lg-5,\n .mx-lg-5 {\n margin-left: 3rem !important;\n }\n .p-lg-0 {\n padding: 0 !important;\n }\n .pt-lg-0,\n .py-lg-0 {\n padding-top: 0 !important;\n }\n .pr-lg-0,\n .px-lg-0 {\n padding-right: 0 !important;\n }\n .pb-lg-0,\n .py-lg-0 {\n padding-bottom: 0 !important;\n }\n .pl-lg-0,\n .px-lg-0 {\n padding-left: 0 !important;\n }\n .p-lg-1 {\n padding: 0.25rem !important;\n }\n .pt-lg-1,\n .py-lg-1 {\n padding-top: 0.25rem !important;\n }\n .pr-lg-1,\n .px-lg-1 {\n padding-right: 0.25rem !important;\n }\n .pb-lg-1,\n .py-lg-1 {\n padding-bottom: 0.25rem !important;\n }\n .pl-lg-1,\n .px-lg-1 {\n padding-left: 0.25rem !important;\n }\n .p-lg-2 {\n padding: 0.5rem !important;\n }\n .pt-lg-2,\n .py-lg-2 {\n padding-top: 0.5rem !important;\n }\n .pr-lg-2,\n .px-lg-2 {\n padding-right: 0.5rem !important;\n }\n .pb-lg-2,\n .py-lg-2 {\n padding-bottom: 0.5rem !important;\n }\n .pl-lg-2,\n .px-lg-2 {\n padding-left: 0.5rem !important;\n }\n .p-lg-3 {\n padding: 1rem !important;\n }\n .pt-lg-3,\n .py-lg-3 {\n padding-top: 1rem !important;\n }\n .pr-lg-3,\n .px-lg-3 {\n padding-right: 1rem !important;\n }\n .pb-lg-3,\n .py-lg-3 {\n padding-bottom: 1rem !important;\n }\n .pl-lg-3,\n .px-lg-3 {\n padding-left: 1rem !important;\n }\n .p-lg-4 {\n padding: 1.5rem !important;\n }\n .pt-lg-4,\n .py-lg-4 {\n padding-top: 1.5rem !important;\n }\n .pr-lg-4,\n .px-lg-4 {\n padding-right: 1.5rem !important;\n }\n .pb-lg-4,\n .py-lg-4 {\n padding-bottom: 1.5rem !important;\n }\n .pl-lg-4,\n .px-lg-4 {\n padding-left: 1.5rem !important;\n }\n .p-lg-5 {\n padding: 3rem !important;\n }\n .pt-lg-5,\n .py-lg-5 {\n padding-top: 3rem !important;\n }\n .pr-lg-5,\n .px-lg-5 {\n padding-right: 3rem !important;\n }\n .pb-lg-5,\n .py-lg-5 {\n padding-bottom: 3rem !important;\n }\n .pl-lg-5,\n .px-lg-5 {\n padding-left: 3rem !important;\n }\n .m-lg-n1 {\n margin: -0.25rem !important;\n }\n .mt-lg-n1,\n .my-lg-n1 {\n margin-top: -0.25rem !important;\n }\n .mr-lg-n1,\n .mx-lg-n1 {\n margin-right: -0.25rem !important;\n }\n .mb-lg-n1,\n .my-lg-n1 {\n margin-bottom: -0.25rem !important;\n }\n .ml-lg-n1,\n .mx-lg-n1 {\n margin-left: -0.25rem !important;\n }\n .m-lg-n2 {\n margin: -0.5rem !important;\n }\n .mt-lg-n2,\n .my-lg-n2 {\n margin-top: -0.5rem !important;\n }\n .mr-lg-n2,\n .mx-lg-n2 {\n margin-right: -0.5rem !important;\n }\n .mb-lg-n2,\n .my-lg-n2 {\n margin-bottom: -0.5rem !important;\n }\n .ml-lg-n2,\n .mx-lg-n2 {\n margin-left: -0.5rem !important;\n }\n .m-lg-n3 {\n margin: -1rem !important;\n }\n .mt-lg-n3,\n .my-lg-n3 {\n margin-top: -1rem !important;\n }\n .mr-lg-n3,\n .mx-lg-n3 {\n margin-right: -1rem !important;\n }\n .mb-lg-n3,\n .my-lg-n3 {\n margin-bottom: -1rem !important;\n }\n .ml-lg-n3,\n .mx-lg-n3 {\n margin-left: -1rem !important;\n }\n .m-lg-n4 {\n margin: -1.5rem !important;\n }\n .mt-lg-n4,\n .my-lg-n4 {\n margin-top: -1.5rem !important;\n }\n .mr-lg-n4,\n .mx-lg-n4 {\n margin-right: -1.5rem !important;\n }\n .mb-lg-n4,\n .my-lg-n4 {\n margin-bottom: -1.5rem !important;\n }\n .ml-lg-n4,\n .mx-lg-n4 {\n margin-left: -1.5rem !important;\n }\n .m-lg-n5 {\n margin: -3rem !important;\n }\n .mt-lg-n5,\n .my-lg-n5 {\n margin-top: -3rem !important;\n }\n .mr-lg-n5,\n .mx-lg-n5 {\n margin-right: -3rem !important;\n }\n .mb-lg-n5,\n .my-lg-n5 {\n margin-bottom: -3rem !important;\n }\n .ml-lg-n5,\n .mx-lg-n5 {\n margin-left: -3rem !important;\n }\n .m-lg-auto {\n margin: auto !important;\n }\n .mt-lg-auto,\n .my-lg-auto {\n margin-top: auto !important;\n }\n .mr-lg-auto,\n .mx-lg-auto {\n margin-right: auto !important;\n }\n .mb-lg-auto,\n .my-lg-auto {\n margin-bottom: auto !important;\n }\n .ml-lg-auto,\n .mx-lg-auto {\n margin-left: auto !important;\n }\n}\n\n@media (min-width: 1200px) {\n .m-xl-0 {\n margin: 0 !important;\n }\n .mt-xl-0,\n .my-xl-0 {\n margin-top: 0 !important;\n }\n .mr-xl-0,\n .mx-xl-0 {\n margin-right: 0 !important;\n }\n .mb-xl-0,\n .my-xl-0 {\n margin-bottom: 0 !important;\n }\n .ml-xl-0,\n .mx-xl-0 {\n margin-left: 0 !important;\n }\n .m-xl-1 {\n margin: 0.25rem !important;\n }\n .mt-xl-1,\n .my-xl-1 {\n margin-top: 0.25rem !important;\n }\n .mr-xl-1,\n .mx-xl-1 {\n margin-right: 0.25rem !important;\n }\n .mb-xl-1,\n .my-xl-1 {\n margin-bottom: 0.25rem !important;\n }\n .ml-xl-1,\n .mx-xl-1 {\n margin-left: 0.25rem !important;\n }\n .m-xl-2 {\n margin: 0.5rem !important;\n }\n .mt-xl-2,\n .my-xl-2 {\n margin-top: 0.5rem !important;\n }\n .mr-xl-2,\n .mx-xl-2 {\n margin-right: 0.5rem !important;\n }\n .mb-xl-2,\n .my-xl-2 {\n margin-bottom: 0.5rem !important;\n }\n .ml-xl-2,\n .mx-xl-2 {\n margin-left: 0.5rem !important;\n }\n .m-xl-3 {\n margin: 1rem !important;\n }\n .mt-xl-3,\n .my-xl-3 {\n margin-top: 1rem !important;\n }\n .mr-xl-3,\n .mx-xl-3 {\n margin-right: 1rem !important;\n }\n .mb-xl-3,\n .my-xl-3 {\n margin-bottom: 1rem !important;\n }\n .ml-xl-3,\n .mx-xl-3 {\n margin-left: 1rem !important;\n }\n .m-xl-4 {\n margin: 1.5rem !important;\n }\n .mt-xl-4,\n .my-xl-4 {\n margin-top: 1.5rem !important;\n }\n .mr-xl-4,\n .mx-xl-4 {\n margin-right: 1.5rem !important;\n }\n .mb-xl-4,\n .my-xl-4 {\n margin-bottom: 1.5rem !important;\n }\n .ml-xl-4,\n .mx-xl-4 {\n margin-left: 1.5rem !important;\n }\n .m-xl-5 {\n margin: 3rem !important;\n }\n .mt-xl-5,\n .my-xl-5 {\n margin-top: 3rem !important;\n }\n .mr-xl-5,\n .mx-xl-5 {\n margin-right: 3rem !important;\n }\n .mb-xl-5,\n .my-xl-5 {\n margin-bottom: 3rem !important;\n }\n .ml-xl-5,\n .mx-xl-5 {\n margin-left: 3rem !important;\n }\n .p-xl-0 {\n padding: 0 !important;\n }\n .pt-xl-0,\n .py-xl-0 {\n padding-top: 0 !important;\n }\n .pr-xl-0,\n .px-xl-0 {\n padding-right: 0 !important;\n }\n .pb-xl-0,\n .py-xl-0 {\n padding-bottom: 0 !important;\n }\n .pl-xl-0,\n .px-xl-0 {\n padding-left: 0 !important;\n }\n .p-xl-1 {\n padding: 0.25rem !important;\n }\n .pt-xl-1,\n .py-xl-1 {\n padding-top: 0.25rem !important;\n }\n .pr-xl-1,\n .px-xl-1 {\n padding-right: 0.25rem !important;\n }\n .pb-xl-1,\n .py-xl-1 {\n padding-bottom: 0.25rem !important;\n }\n .pl-xl-1,\n .px-xl-1 {\n padding-left: 0.25rem !important;\n }\n .p-xl-2 {\n padding: 0.5rem !important;\n }\n .pt-xl-2,\n .py-xl-2 {\n padding-top: 0.5rem !important;\n }\n .pr-xl-2,\n .px-xl-2 {\n padding-right: 0.5rem !important;\n }\n .pb-xl-2,\n .py-xl-2 {\n padding-bottom: 0.5rem !important;\n }\n .pl-xl-2,\n .px-xl-2 {\n padding-left: 0.5rem !important;\n }\n .p-xl-3 {\n padding: 1rem !important;\n }\n .pt-xl-3,\n .py-xl-3 {\n padding-top: 1rem !important;\n }\n .pr-xl-3,\n .px-xl-3 {\n padding-right: 1rem !important;\n }\n .pb-xl-3,\n .py-xl-3 {\n padding-bottom: 1rem !important;\n }\n .pl-xl-3,\n .px-xl-3 {\n padding-left: 1rem !important;\n }\n .p-xl-4 {\n padding: 1.5rem !important;\n }\n .pt-xl-4,\n .py-xl-4 {\n padding-top: 1.5rem !important;\n }\n .pr-xl-4,\n .px-xl-4 {\n padding-right: 1.5rem !important;\n }\n .pb-xl-4,\n .py-xl-4 {\n padding-bottom: 1.5rem !important;\n }\n .pl-xl-4,\n .px-xl-4 {\n padding-left: 1.5rem !important;\n }\n .p-xl-5 {\n padding: 3rem !important;\n }\n .pt-xl-5,\n .py-xl-5 {\n padding-top: 3rem !important;\n }\n .pr-xl-5,\n .px-xl-5 {\n padding-right: 3rem !important;\n }\n .pb-xl-5,\n .py-xl-5 {\n padding-bottom: 3rem !important;\n }\n .pl-xl-5,\n .px-xl-5 {\n padding-left: 3rem !important;\n }\n .m-xl-n1 {\n margin: -0.25rem !important;\n }\n .mt-xl-n1,\n .my-xl-n1 {\n margin-top: -0.25rem !important;\n }\n .mr-xl-n1,\n .mx-xl-n1 {\n margin-right: -0.25rem !important;\n }\n .mb-xl-n1,\n .my-xl-n1 {\n margin-bottom: -0.25rem !important;\n }\n .ml-xl-n1,\n .mx-xl-n1 {\n margin-left: -0.25rem !important;\n }\n .m-xl-n2 {\n margin: -0.5rem !important;\n }\n .mt-xl-n2,\n .my-xl-n2 {\n margin-top: -0.5rem !important;\n }\n .mr-xl-n2,\n .mx-xl-n2 {\n margin-right: -0.5rem !important;\n }\n .mb-xl-n2,\n .my-xl-n2 {\n margin-bottom: -0.5rem !important;\n }\n .ml-xl-n2,\n .mx-xl-n2 {\n margin-left: -0.5rem !important;\n }\n .m-xl-n3 {\n margin: -1rem !important;\n }\n .mt-xl-n3,\n .my-xl-n3 {\n margin-top: -1rem !important;\n }\n .mr-xl-n3,\n .mx-xl-n3 {\n margin-right: -1rem !important;\n }\n .mb-xl-n3,\n .my-xl-n3 {\n margin-bottom: -1rem !important;\n }\n .ml-xl-n3,\n .mx-xl-n3 {\n margin-left: -1rem !important;\n }\n .m-xl-n4 {\n margin: -1.5rem !important;\n }\n .mt-xl-n4,\n .my-xl-n4 {\n margin-top: -1.5rem !important;\n }\n .mr-xl-n4,\n .mx-xl-n4 {\n margin-right: -1.5rem !important;\n }\n .mb-xl-n4,\n .my-xl-n4 {\n margin-bottom: -1.5rem !important;\n }\n .ml-xl-n4,\n .mx-xl-n4 {\n margin-left: -1.5rem !important;\n }\n .m-xl-n5 {\n margin: -3rem !important;\n }\n .mt-xl-n5,\n .my-xl-n5 {\n margin-top: -3rem !important;\n }\n .mr-xl-n5,\n .mx-xl-n5 {\n margin-right: -3rem !important;\n }\n .mb-xl-n5,\n .my-xl-n5 {\n margin-bottom: -3rem !important;\n }\n .ml-xl-n5,\n .mx-xl-n5 {\n margin-left: -3rem !important;\n }\n .m-xl-auto {\n margin: auto !important;\n }\n .mt-xl-auto,\n .my-xl-auto {\n margin-top: auto !important;\n }\n .mr-xl-auto,\n .mx-xl-auto {\n margin-right: auto !important;\n }\n .mb-xl-auto,\n .my-xl-auto {\n margin-bottom: auto !important;\n }\n .ml-xl-auto,\n .mx-xl-auto {\n margin-left: auto !important;\n }\n}\n/*# sourceMappingURL=bootstrap-grid.css.map */","// Container widths\n//\n// Set the container width, and override it for fixed navbars in media queries.\n\n@if $enable-grid-classes {\n // Single container class with breakpoint max-widths\n .container,\n // 100% wide container at all breakpoints\n .container-fluid {\n @include make-container();\n }\n\n // Responsive containers that are 100% wide until a breakpoint\n @each $breakpoint, $container-max-width in $container-max-widths {\n .container-#{$breakpoint} {\n @extend .container-fluid;\n }\n\n @include media-breakpoint-up($breakpoint, $grid-breakpoints) {\n %responsive-container-#{$breakpoint} {\n max-width: $container-max-width;\n }\n\n // Extend each breakpoint which is smaller or equal to the current breakpoint\n $extend-breakpoint: true;\n\n @each $name, $width in $grid-breakpoints {\n @if ($extend-breakpoint) {\n .container#{breakpoint-infix($name, $grid-breakpoints)} {\n @extend %responsive-container-#{$breakpoint};\n }\n\n // Once the current breakpoint is reached, stop extending\n @if ($breakpoint == $name) {\n $extend-breakpoint: false;\n }\n }\n }\n }\n }\n}\n\n\n// Row\n//\n// Rows contain your columns.\n\n@if $enable-grid-classes {\n .row {\n @include make-row();\n }\n\n // Remove the negative margin from default .row, then the horizontal padding\n // from all immediate children columns (to prevent runaway style inheritance).\n .no-gutters {\n margin-right: 0;\n margin-left: 0;\n\n > .col,\n > [class*=\"col-\"] {\n padding-right: 0;\n padding-left: 0;\n }\n }\n}\n\n// Columns\n//\n// Common styles for small and large grid columns\n\n@if $enable-grid-classes {\n @include make-grid-columns();\n}\n","/// Grid system\n//\n// Generate semantic grid columns with these mixins.\n\n@mixin make-container($gutter: $grid-gutter-width) {\n width: 100%;\n padding-right: $gutter / 2;\n padding-left: $gutter / 2;\n margin-right: auto;\n margin-left: auto;\n}\n\n@mixin make-row($gutter: $grid-gutter-width) {\n display: flex;\n flex-wrap: wrap;\n margin-right: -$gutter / 2;\n margin-left: -$gutter / 2;\n}\n\n// For each breakpoint, define the maximum width of the container in a media query\n@mixin make-container-max-widths($max-widths: $container-max-widths, $breakpoints: $grid-breakpoints) {\n @each $breakpoint, $container-max-width in $max-widths {\n @include media-breakpoint-up($breakpoint, $breakpoints) {\n max-width: $container-max-width;\n }\n }\n @include deprecate(\"The `make-container-max-widths` mixin\", \"v4.5.2\", \"v5\");\n}\n\n@mixin make-col-ready($gutter: $grid-gutter-width) {\n position: relative;\n // Prevent columns from becoming too narrow when at smaller grid tiers by\n // always setting `width: 100%;`. This works because we use `flex` values\n // later on to override this initial width.\n width: 100%;\n padding-right: $gutter / 2;\n padding-left: $gutter / 2;\n}\n\n@mixin make-col($size, $columns: $grid-columns) {\n flex: 0 0 percentage($size / $columns);\n // Add a `max-width` to ensure content within each column does not blow out\n // the width of the column. Applies to IE10+ and Firefox. Chrome and Safari\n // do not appear to require this.\n max-width: percentage($size / $columns);\n}\n\n@mixin make-col-auto() {\n flex: 0 0 auto;\n width: auto;\n max-width: 100%; // Reset earlier grid tiers\n}\n\n@mixin make-col-offset($size, $columns: $grid-columns) {\n $num: $size / $columns;\n margin-left: if($num == 0, 0, percentage($num));\n}\n\n// Row columns\n//\n// Specify on a parent element(e.g., .row) to force immediate children into NN\n// numberof columns. Supports wrapping to new lines, but does not do a Masonry\n// style grid.\n@mixin row-cols($count) {\n > * {\n flex: 0 0 100% / $count;\n max-width: 100% / $count;\n }\n}\n","// Breakpoint viewport sizes and media queries.\n//\n// Breakpoints are defined as a map of (name: minimum width), order from small to large:\n//\n// (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)\n//\n// The map defined in the `$grid-breakpoints` global variable is used as the `$breakpoints` argument by default.\n\n// Name of the next breakpoint, or null for the last breakpoint.\n//\n// >> breakpoint-next(sm)\n// md\n// >> breakpoint-next(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n// md\n// >> breakpoint-next(sm, $breakpoint-names: (xs sm md lg xl))\n// md\n@function breakpoint-next($name, $breakpoints: $grid-breakpoints, $breakpoint-names: map-keys($breakpoints)) {\n $n: index($breakpoint-names, $name);\n @return if($n != null and $n < length($breakpoint-names), nth($breakpoint-names, $n + 1), null);\n}\n\n// Minimum breakpoint width. Null for the smallest (first) breakpoint.\n//\n// >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n// 576px\n@function breakpoint-min($name, $breakpoints: $grid-breakpoints) {\n $min: map-get($breakpoints, $name);\n @return if($min != 0, $min, null);\n}\n\n// Maximum breakpoint width. Null for the largest (last) breakpoint.\n// The maximum value is calculated as the minimum of the next one less 0.02px\n// to work around the limitations of `min-` and `max-` prefixes and viewports with fractional widths.\n// See https://www.w3.org/TR/mediaqueries-4/#mq-min-max\n// Uses 0.02px rather than 0.01px to work around a current rounding bug in Safari.\n// See https://bugs.webkit.org/show_bug.cgi?id=178261\n//\n// >> breakpoint-max(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n// 767.98px\n@function breakpoint-max($name, $breakpoints: $grid-breakpoints) {\n $next: breakpoint-next($name, $breakpoints);\n @return if($next, breakpoint-min($next, $breakpoints) - .02, null);\n}\n\n// Returns a blank string if smallest breakpoint, otherwise returns the name with a dash in front.\n// Useful for making responsive utilities.\n//\n// >> breakpoint-infix(xs, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n// \"\" (Returns a blank string)\n// >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n// \"-sm\"\n@function breakpoint-infix($name, $breakpoints: $grid-breakpoints) {\n @return if(breakpoint-min($name, $breakpoints) == null, \"\", \"-#{$name}\");\n}\n\n// Media of at least the minimum breakpoint width. No query for the smallest breakpoint.\n// Makes the @content apply to the given breakpoint and wider.\n@mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) {\n $min: breakpoint-min($name, $breakpoints);\n @if $min {\n @media (min-width: $min) {\n @content;\n }\n } @else {\n @content;\n }\n}\n\n// Media of at most the maximum breakpoint width. No query for the largest breakpoint.\n// Makes the @content apply to the given breakpoint and narrower.\n@mixin media-breakpoint-down($name, $breakpoints: $grid-breakpoints) {\n $max: breakpoint-max($name, $breakpoints);\n @if $max {\n @media (max-width: $max) {\n @content;\n }\n } @else {\n @content;\n }\n}\n\n// Media that spans multiple breakpoint widths.\n// Makes the @content apply between the min and max breakpoints\n@mixin media-breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) {\n $min: breakpoint-min($lower, $breakpoints);\n $max: breakpoint-max($upper, $breakpoints);\n\n @if $min != null and $max != null {\n @media (min-width: $min) and (max-width: $max) {\n @content;\n }\n } @else if $max == null {\n @include media-breakpoint-up($lower, $breakpoints) {\n @content;\n }\n } @else if $min == null {\n @include media-breakpoint-down($upper, $breakpoints) {\n @content;\n }\n }\n}\n\n// Media between the breakpoint's minimum and maximum widths.\n// No minimum for the smallest breakpoint, and no maximum for the largest one.\n// Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.\n@mixin media-breakpoint-only($name, $breakpoints: $grid-breakpoints) {\n $min: breakpoint-min($name, $breakpoints);\n $max: breakpoint-max($name, $breakpoints);\n\n @if $min != null and $max != null {\n @media (min-width: $min) and (max-width: $max) {\n @content;\n }\n } @else if $max == null {\n @include media-breakpoint-up($name, $breakpoints) {\n @content;\n }\n } @else if $min == null {\n @include media-breakpoint-down($name, $breakpoints) {\n @content;\n }\n }\n}\n","// Framework grid generation\n//\n// Used only by Bootstrap to generate the correct number of grid classes given\n// any value of `$grid-columns`.\n\n@mixin make-grid-columns($columns: $grid-columns, $gutter: $grid-gutter-width, $breakpoints: $grid-breakpoints) {\n // Common properties for all breakpoints\n %grid-column {\n position: relative;\n width: 100%;\n padding-right: $gutter / 2;\n padding-left: $gutter / 2;\n }\n\n @each $breakpoint in map-keys($breakpoints) {\n $infix: breakpoint-infix($breakpoint, $breakpoints);\n\n @if $columns > 0 {\n // Allow columns to stretch full width below their breakpoints\n @for $i from 1 through $columns {\n .col#{$infix}-#{$i} {\n @extend %grid-column;\n }\n }\n }\n\n .col#{$infix},\n .col#{$infix}-auto {\n @extend %grid-column;\n }\n\n @include media-breakpoint-up($breakpoint, $breakpoints) {\n // Provide basic `.col-{bp}` classes for equal-width flexbox columns\n .col#{$infix} {\n flex-basis: 0;\n flex-grow: 1;\n max-width: 100%;\n }\n\n @if $grid-row-columns > 0 {\n @for $i from 1 through $grid-row-columns {\n .row-cols#{$infix}-#{$i} {\n @include row-cols($i);\n }\n }\n }\n\n .col#{$infix}-auto {\n @include make-col-auto();\n }\n\n @if $columns > 0 {\n @for $i from 1 through $columns {\n .col#{$infix}-#{$i} {\n @include make-col($i, $columns);\n }\n }\n }\n\n .order#{$infix}-first { order: -1; }\n\n .order#{$infix}-last { order: $columns + 1; }\n\n @for $i from 0 through $columns {\n .order#{$infix}-#{$i} { order: $i; }\n }\n\n @if $columns > 0 {\n // `$columns - 1` because offsetting by the width of an entire row isn't possible\n @for $i from 0 through ($columns - 1) {\n @if not ($infix == \"\" and $i == 0) { // Avoid emitting useless .offset-0\n .offset#{$infix}-#{$i} {\n @include make-col-offset($i, $columns);\n }\n }\n }\n }\n }\n }\n}\n","// stylelint-disable declaration-no-important\n\n//\n// Utilities for common `display` values\n//\n\n@each $breakpoint in map-keys($grid-breakpoints) {\n @include media-breakpoint-up($breakpoint) {\n $infix: breakpoint-infix($breakpoint, $grid-breakpoints);\n\n @each $value in $displays {\n .d#{$infix}-#{$value} { display: $value !important; }\n }\n }\n}\n\n\n//\n// Utilities for toggling `display` in print\n//\n\n@media print {\n @each $value in $displays {\n .d-print-#{$value} { display: $value !important; }\n }\n}\n","// stylelint-disable declaration-no-important\n\n// Flex variation\n//\n// Custom styles for additional flex alignment options.\n\n@each $breakpoint in map-keys($grid-breakpoints) {\n @include media-breakpoint-up($breakpoint) {\n $infix: breakpoint-infix($breakpoint, $grid-breakpoints);\n\n .flex#{$infix}-row { flex-direction: row !important; }\n .flex#{$infix}-column { flex-direction: column !important; }\n .flex#{$infix}-row-reverse { flex-direction: row-reverse !important; }\n .flex#{$infix}-column-reverse { flex-direction: column-reverse !important; }\n\n .flex#{$infix}-wrap { flex-wrap: wrap !important; }\n .flex#{$infix}-nowrap { flex-wrap: nowrap !important; }\n .flex#{$infix}-wrap-reverse { flex-wrap: wrap-reverse !important; }\n .flex#{$infix}-fill { flex: 1 1 auto !important; }\n .flex#{$infix}-grow-0 { flex-grow: 0 !important; }\n .flex#{$infix}-grow-1 { flex-grow: 1 !important; }\n .flex#{$infix}-shrink-0 { flex-shrink: 0 !important; }\n .flex#{$infix}-shrink-1 { flex-shrink: 1 !important; }\n\n .justify-content#{$infix}-start { justify-content: flex-start !important; }\n .justify-content#{$infix}-end { justify-content: flex-end !important; }\n .justify-content#{$infix}-center { justify-content: center !important; }\n .justify-content#{$infix}-between { justify-content: space-between !important; }\n .justify-content#{$infix}-around { justify-content: space-around !important; }\n\n .align-items#{$infix}-start { align-items: flex-start !important; }\n .align-items#{$infix}-end { align-items: flex-end !important; }\n .align-items#{$infix}-center { align-items: center !important; }\n .align-items#{$infix}-baseline { align-items: baseline !important; }\n .align-items#{$infix}-stretch { align-items: stretch !important; }\n\n .align-content#{$infix}-start { align-content: flex-start !important; }\n .align-content#{$infix}-end { align-content: flex-end !important; }\n .align-content#{$infix}-center { align-content: center !important; }\n .align-content#{$infix}-between { align-content: space-between !important; }\n .align-content#{$infix}-around { align-content: space-around !important; }\n .align-content#{$infix}-stretch { align-content: stretch !important; }\n\n .align-self#{$infix}-auto { align-self: auto !important; }\n .align-self#{$infix}-start { align-self: flex-start !important; }\n .align-self#{$infix}-end { align-self: flex-end !important; }\n .align-self#{$infix}-center { align-self: center !important; }\n .align-self#{$infix}-baseline { align-self: baseline !important; }\n .align-self#{$infix}-stretch { align-self: stretch !important; }\n }\n}\n","// stylelint-disable declaration-no-important\n\n// Margin and Padding\n\n@each $breakpoint in map-keys($grid-breakpoints) {\n @include media-breakpoint-up($breakpoint) {\n $infix: breakpoint-infix($breakpoint, $grid-breakpoints);\n\n @each $prop, $abbrev in (margin: m, padding: p) {\n @each $size, $length in $spacers {\n .#{$abbrev}#{$infix}-#{$size} { #{$prop}: $length !important; }\n .#{$abbrev}t#{$infix}-#{$size},\n .#{$abbrev}y#{$infix}-#{$size} {\n #{$prop}-top: $length !important;\n }\n .#{$abbrev}r#{$infix}-#{$size},\n .#{$abbrev}x#{$infix}-#{$size} {\n #{$prop}-right: $length !important;\n }\n .#{$abbrev}b#{$infix}-#{$size},\n .#{$abbrev}y#{$infix}-#{$size} {\n #{$prop}-bottom: $length !important;\n }\n .#{$abbrev}l#{$infix}-#{$size},\n .#{$abbrev}x#{$infix}-#{$size} {\n #{$prop}-left: $length !important;\n }\n }\n }\n\n // Negative margins (e.g., where `.mb-n1` is negative version of `.mb-1`)\n @each $size, $length in $spacers {\n @if $size != 0 {\n .m#{$infix}-n#{$size} { margin: -$length !important; }\n .mt#{$infix}-n#{$size},\n .my#{$infix}-n#{$size} {\n margin-top: -$length !important;\n }\n .mr#{$infix}-n#{$size},\n .mx#{$infix}-n#{$size} {\n margin-right: -$length !important;\n }\n .mb#{$infix}-n#{$size},\n .my#{$infix}-n#{$size} {\n margin-bottom: -$length !important;\n }\n .ml#{$infix}-n#{$size},\n .mx#{$infix}-n#{$size} {\n margin-left: -$length !important;\n }\n }\n }\n\n // Some special margin utils\n .m#{$infix}-auto { margin: auto !important; }\n .mt#{$infix}-auto,\n .my#{$infix}-auto {\n margin-top: auto !important;\n }\n .mr#{$infix}-auto,\n .mx#{$infix}-auto {\n margin-right: auto !important;\n }\n .mb#{$infix}-auto,\n .my#{$infix}-auto {\n margin-bottom: auto !important;\n }\n .ml#{$infix}-auto,\n .mx#{$infix}-auto {\n margin-left: auto !important;\n }\n }\n}\n"]} \ No newline at end of file diff --git a/node_modules/bootstrap/dist/css/bootstrap-reboot.css b/node_modules/bootstrap/dist/css/bootstrap-reboot.css deleted file mode 100644 index 4c642187..00000000 --- a/node_modules/bootstrap/dist/css/bootstrap-reboot.css +++ /dev/null @@ -1,326 +0,0 @@ -/*! - * Bootstrap Reboot v4.5.3 (https://getbootstrap.com/) - * Copyright 2011-2020 The Bootstrap Authors - * Copyright 2011-2020 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) - * Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md) - */ -*, -*::before, -*::after { - box-sizing: border-box; -} - -html { - font-family: sans-serif; - line-height: 1.15; - -webkit-text-size-adjust: 100%; - -webkit-tap-highlight-color: rgba(0, 0, 0, 0); -} - -article, aside, figcaption, figure, footer, header, hgroup, main, nav, section { - display: block; -} - -body { - margin: 0; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; - font-size: 1rem; - font-weight: 400; - line-height: 1.5; - color: #212529; - text-align: left; - background-color: #fff; -} - -[tabindex="-1"]:focus:not(:focus-visible) { - outline: 0 !important; -} - -hr { - box-sizing: content-box; - height: 0; - overflow: visible; -} - -h1, h2, h3, h4, h5, h6 { - margin-top: 0; - margin-bottom: 0.5rem; -} - -p { - margin-top: 0; - margin-bottom: 1rem; -} - -abbr[title], -abbr[data-original-title] { - text-decoration: underline; - -webkit-text-decoration: underline dotted; - text-decoration: underline dotted; - cursor: help; - border-bottom: 0; - -webkit-text-decoration-skip-ink: none; - text-decoration-skip-ink: none; -} - -address { - margin-bottom: 1rem; - font-style: normal; - line-height: inherit; -} - -ol, -ul, -dl { - margin-top: 0; - margin-bottom: 1rem; -} - -ol ol, -ul ul, -ol ul, -ul ol { - margin-bottom: 0; -} - -dt { - font-weight: 700; -} - -dd { - margin-bottom: .5rem; - margin-left: 0; -} - -blockquote { - margin: 0 0 1rem; -} - -b, -strong { - font-weight: bolder; -} - -small { - font-size: 80%; -} - -sub, -sup { - position: relative; - font-size: 75%; - line-height: 0; - vertical-align: baseline; -} - -sub { - bottom: -.25em; -} - -sup { - top: -.5em; -} - -a { - color: #007bff; - text-decoration: none; - background-color: transparent; -} - -a:hover { - color: #0056b3; - text-decoration: underline; -} - -a:not([href]):not([class]) { - color: inherit; - text-decoration: none; -} - -a:not([href]):not([class]):hover { - color: inherit; - text-decoration: none; -} - -pre, -code, -kbd, -samp { - font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; - font-size: 1em; -} - -pre { - margin-top: 0; - margin-bottom: 1rem; - overflow: auto; - -ms-overflow-style: scrollbar; -} - -figure { - margin: 0 0 1rem; -} - -img { - vertical-align: middle; - border-style: none; -} - -svg { - overflow: hidden; - vertical-align: middle; -} - -table { - border-collapse: collapse; -} - -caption { - padding-top: 0.75rem; - padding-bottom: 0.75rem; - color: #6c757d; - text-align: left; - caption-side: bottom; -} - -th { - text-align: inherit; - text-align: -webkit-match-parent; -} - -label { - display: inline-block; - margin-bottom: 0.5rem; -} - -button { - border-radius: 0; -} - -button:focus { - outline: 1px dotted; - outline: 5px auto -webkit-focus-ring-color; -} - -input, -button, -select, -optgroup, -textarea { - margin: 0; - font-family: inherit; - font-size: inherit; - line-height: inherit; -} - -button, -input { - overflow: visible; -} - -button, -select { - text-transform: none; -} - -[role="button"] { - cursor: pointer; -} - -select { - word-wrap: normal; -} - -button, -[type="button"], -[type="reset"], -[type="submit"] { - -webkit-appearance: button; -} - -button:not(:disabled), -[type="button"]:not(:disabled), -[type="reset"]:not(:disabled), -[type="submit"]:not(:disabled) { - cursor: pointer; -} - -button::-moz-focus-inner, -[type="button"]::-moz-focus-inner, -[type="reset"]::-moz-focus-inner, -[type="submit"]::-moz-focus-inner { - padding: 0; - border-style: none; -} - -input[type="radio"], -input[type="checkbox"] { - box-sizing: border-box; - padding: 0; -} - -textarea { - overflow: auto; - resize: vertical; -} - -fieldset { - min-width: 0; - padding: 0; - margin: 0; - border: 0; -} - -legend { - display: block; - width: 100%; - max-width: 100%; - padding: 0; - margin-bottom: .5rem; - font-size: 1.5rem; - line-height: inherit; - color: inherit; - white-space: normal; -} - -progress { - vertical-align: baseline; -} - -[type="number"]::-webkit-inner-spin-button, -[type="number"]::-webkit-outer-spin-button { - height: auto; -} - -[type="search"] { - outline-offset: -2px; - -webkit-appearance: none; -} - -[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; -} - -::-webkit-file-upload-button { - font: inherit; - -webkit-appearance: button; -} - -output { - display: inline-block; -} - -summary { - display: list-item; - cursor: pointer; -} - -template { - display: none; -} - -[hidden] { - display: none !important; -} -/*# sourceMappingURL=bootstrap-reboot.css.map */ \ No newline at end of file diff --git a/node_modules/bootstrap/dist/css/bootstrap-reboot.css.map b/node_modules/bootstrap/dist/css/bootstrap-reboot.css.map deleted file mode 100644 index e79cab0c..00000000 --- a/node_modules/bootstrap/dist/css/bootstrap-reboot.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../scss/bootstrap-reboot.scss","bootstrap-reboot.css","../../scss/_reboot.scss","../../scss/_variables.scss","../../scss/vendor/_rfs.scss","../../scss/mixins/_hover.scss"],"names":[],"mappings":"AAAA;;;;;;ECME;ACYF;;;EAGE,sBAAsB;ADVxB;;ACaA;EACE,uBAAuB;EACvB,iBAAiB;EACjB,8BAA8B;EAC9B,6CCXa;AFCf;;ACgBA;EACE,cAAc;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,aAAa;AD9Jf;;AAEA;ECkKE,wBAAwB;ADhK1B","file":"bootstrap-reboot.css","sourcesContent":["/*!\n * Bootstrap Reboot v4.5.3 (https://getbootstrap.com/)\n * Copyright 2011-2020 The Bootstrap Authors\n * Copyright 2011-2020 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)\n */\n\n@import \"functions\";\n@import \"variables\";\n@import \"mixins\";\n@import \"reboot\";\n","/*!\n * Bootstrap Reboot v4.5.3 (https://getbootstrap.com/)\n * Copyright 2011-2020 The Bootstrap Authors\n * Copyright 2011-2020 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)\n */\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\nhtml {\n font-family: sans-serif;\n line-height: 1.15;\n -webkit-text-size-adjust: 100%;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n\narticle, aside, figcaption, figure, footer, header, hgroup, main, nav, section {\n display: block;\n}\n\nbody {\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n color: #212529;\n text-align: left;\n background-color: #fff;\n}\n\n[tabindex=\"-1\"]:focus:not(:focus-visible) {\n outline: 0 !important;\n}\n\nhr {\n box-sizing: content-box;\n height: 0;\n overflow: visible;\n}\n\nh1, h2, h3, h4, h5, h6 {\n margin-top: 0;\n margin-bottom: 0.5rem;\n}\n\np {\n margin-top: 0;\n margin-bottom: 1rem;\n}\n\nabbr[title],\nabbr[data-original-title] {\n text-decoration: underline;\n text-decoration: underline dotted;\n cursor: help;\n border-bottom: 0;\n text-decoration-skip-ink: none;\n}\n\naddress {\n margin-bottom: 1rem;\n font-style: normal;\n line-height: inherit;\n}\n\nol,\nul,\ndl {\n margin-top: 0;\n margin-bottom: 1rem;\n}\n\nol ol,\nul ul,\nol ul,\nul ol {\n margin-bottom: 0;\n}\n\ndt {\n font-weight: 700;\n}\n\ndd {\n margin-bottom: .5rem;\n margin-left: 0;\n}\n\nblockquote {\n margin: 0 0 1rem;\n}\n\nb,\nstrong {\n font-weight: bolder;\n}\n\nsmall {\n font-size: 80%;\n}\n\nsub,\nsup {\n position: relative;\n font-size: 75%;\n line-height: 0;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -.25em;\n}\n\nsup {\n top: -.5em;\n}\n\na {\n color: #007bff;\n text-decoration: none;\n background-color: transparent;\n}\n\na:hover {\n color: #0056b3;\n text-decoration: underline;\n}\n\na:not([href]):not([class]) {\n color: inherit;\n text-decoration: none;\n}\n\na:not([href]):not([class]):hover {\n color: inherit;\n text-decoration: none;\n}\n\npre,\ncode,\nkbd,\nsamp {\n font-family: SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;\n font-size: 1em;\n}\n\npre {\n margin-top: 0;\n margin-bottom: 1rem;\n overflow: auto;\n -ms-overflow-style: scrollbar;\n}\n\nfigure {\n margin: 0 0 1rem;\n}\n\nimg {\n vertical-align: middle;\n border-style: none;\n}\n\nsvg {\n overflow: hidden;\n vertical-align: middle;\n}\n\ntable {\n border-collapse: collapse;\n}\n\ncaption {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n color: #6c757d;\n text-align: left;\n caption-side: bottom;\n}\n\nth {\n text-align: inherit;\n text-align: -webkit-match-parent;\n}\n\nlabel {\n display: inline-block;\n margin-bottom: 0.5rem;\n}\n\nbutton {\n border-radius: 0;\n}\n\nbutton:focus {\n outline: 1px dotted;\n outline: 5px auto -webkit-focus-ring-color;\n}\n\ninput,\nbutton,\nselect,\noptgroup,\ntextarea {\n margin: 0;\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n}\n\nbutton,\ninput {\n overflow: visible;\n}\n\nbutton,\nselect {\n text-transform: none;\n}\n\n[role=\"button\"] {\n cursor: pointer;\n}\n\nselect {\n word-wrap: normal;\n}\n\nbutton,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button;\n}\n\nbutton:not(:disabled),\n[type=\"button\"]:not(:disabled),\n[type=\"reset\"]:not(:disabled),\n[type=\"submit\"]:not(:disabled) {\n cursor: pointer;\n}\n\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n padding: 0;\n border-style: none;\n}\n\ninput[type=\"radio\"],\ninput[type=\"checkbox\"] {\n box-sizing: border-box;\n padding: 0;\n}\n\ntextarea {\n overflow: auto;\n resize: vertical;\n}\n\nfieldset {\n min-width: 0;\n padding: 0;\n margin: 0;\n border: 0;\n}\n\nlegend {\n display: block;\n width: 100%;\n max-width: 100%;\n padding: 0;\n margin-bottom: .5rem;\n font-size: 1.5rem;\n line-height: inherit;\n color: inherit;\n white-space: normal;\n}\n\nprogress {\n vertical-align: baseline;\n}\n\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n[type=\"search\"] {\n outline-offset: -2px;\n -webkit-appearance: none;\n}\n\n[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n::-webkit-file-upload-button {\n font: inherit;\n -webkit-appearance: button;\n}\n\noutput {\n display: inline-block;\n}\n\nsummary {\n display: list-item;\n cursor: pointer;\n}\n\ntemplate {\n display: none;\n}\n\n[hidden] {\n display: none !important;\n}\n\n/*# sourceMappingURL=bootstrap-reboot.css.map */","// stylelint-disable at-rule-no-vendor-prefix, declaration-no-important, selector-no-qualifying-type, property-no-vendor-prefix\n\n// Reboot\n//\n// Normalization of HTML elements, manually forked from Normalize.css to remove\n// styles targeting irrelevant browsers while applying new styles.\n//\n// Normalize is licensed MIT. https://github.com/necolas/normalize.css\n\n\n// Document\n//\n// 1. Change from `box-sizing: content-box` so that `width` is not affected by `padding` or `border`.\n// 2. Change the default font family in all browsers.\n// 3. Correct the line height in all browsers.\n// 4. Prevent adjustments of font size after orientation changes in IE on Windows Phone and in iOS.\n// 5. Change the default tap highlight to be completely transparent in iOS.\n\n*,\n*::before,\n*::after {\n box-sizing: border-box; // 1\n}\n\nhtml {\n font-family: sans-serif; // 2\n line-height: 1.15; // 3\n -webkit-text-size-adjust: 100%; // 4\n -webkit-tap-highlight-color: rgba($black, 0); // 5\n}\n\n// Shim for \"new\" HTML5 structural elements to display correctly (IE10, older browsers)\n// TODO: remove in v5\n// stylelint-disable-next-line selector-list-comma-newline-after\narticle, aside, figcaption, figure, footer, header, hgroup, main, nav, section {\n display: block;\n}\n\n// Body\n//\n// 1. Remove the margin in all browsers.\n// 2. As a best practice, apply a default `background-color`.\n// 3. Set an explicit initial text-align value so that we can later use\n// the `inherit` value on things like `` elements.\n\nbody {\n margin: 0; // 1\n font-family: $font-family-base;\n @include font-size($font-size-base);\n font-weight: $font-weight-base;\n line-height: $line-height-base;\n color: $body-color;\n text-align: left; // 3\n background-color: $body-bg; // 2\n}\n\n// Future-proof rule: in browsers that support :focus-visible, suppress the focus outline\n// on elements that programmatically receive focus but wouldn't normally show a visible\n// focus outline. In general, this would mean that the outline is only applied if the\n// interaction that led to the element receiving programmatic focus was a keyboard interaction,\n// or the browser has somehow determined that the user is primarily a keyboard user and/or\n// wants focus outlines to always be presented.\n//\n// See https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible\n// and https://developer.paciellogroup.com/blog/2018/03/focus-visible-and-backwards-compatibility/\n[tabindex=\"-1\"]:focus:not(:focus-visible) {\n outline: 0 !important;\n}\n\n\n// Content grouping\n//\n// 1. Add the correct box sizing in Firefox.\n// 2. Show the overflow in Edge and IE.\n\nhr {\n box-sizing: content-box; // 1\n height: 0; // 1\n overflow: visible; // 2\n}\n\n\n//\n// Typography\n//\n\n// Remove top margins from headings\n//\n// By default, `

`-`

` all receive top and bottom margins. We nuke the top\n// margin for easier control within type scales as it avoids margin collapsing.\n// stylelint-disable-next-line selector-list-comma-newline-after\nh1, h2, h3, h4, h5, h6 {\n margin-top: 0;\n margin-bottom: $headings-margin-bottom;\n}\n\n// Reset margins on paragraphs\n//\n// Similarly, the top margin on `

`s get reset. However, we also reset the\n// bottom margin to use `rem` units instead of `em`.\np {\n margin-top: 0;\n margin-bottom: $paragraph-margin-bottom;\n}\n\n// Abbreviations\n//\n// 1. Duplicate behavior to the data-* attribute for our tooltip plugin\n// 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n// 3. Add explicit cursor to indicate changed behavior.\n// 4. Remove the bottom border in Firefox 39-.\n// 5. Prevent the text-decoration to be skipped.\n\nabbr[title],\nabbr[data-original-title] { // 1\n text-decoration: underline; // 2\n text-decoration: underline dotted; // 2\n cursor: help; // 3\n border-bottom: 0; // 4\n text-decoration-skip-ink: none; // 5\n}\n\naddress {\n margin-bottom: 1rem;\n font-style: normal;\n line-height: inherit;\n}\n\nol,\nul,\ndl {\n margin-top: 0;\n margin-bottom: 1rem;\n}\n\nol ol,\nul ul,\nol ul,\nul ol {\n margin-bottom: 0;\n}\n\ndt {\n font-weight: $dt-font-weight;\n}\n\ndd {\n margin-bottom: .5rem;\n margin-left: 0; // Undo browser default\n}\n\nblockquote {\n margin: 0 0 1rem;\n}\n\nb,\nstrong {\n font-weight: $font-weight-bolder; // Add the correct font weight in Chrome, Edge, and Safari\n}\n\nsmall {\n @include font-size(80%); // Add the correct font size in all browsers\n}\n\n//\n// Prevent `sub` and `sup` elements from affecting the line height in\n// all browsers.\n//\n\nsub,\nsup {\n position: relative;\n @include font-size(75%);\n line-height: 0;\n vertical-align: baseline;\n}\n\nsub { bottom: -.25em; }\nsup { top: -.5em; }\n\n\n//\n// Links\n//\n\na {\n color: $link-color;\n text-decoration: $link-decoration;\n background-color: transparent; // Remove the gray background on active links in IE 10.\n\n @include hover() {\n color: $link-hover-color;\n text-decoration: $link-hover-decoration;\n }\n}\n\n// And undo these styles for placeholder links/named anchors (without href).\n// It would be more straightforward to just use a[href] in previous block, but that\n// causes specificity issues in many other styles that are too complex to fix.\n// See https://github.com/twbs/bootstrap/issues/19402\n\na:not([href]):not([class]) {\n color: inherit;\n text-decoration: none;\n\n @include hover() {\n color: inherit;\n text-decoration: none;\n }\n}\n\n\n//\n// Code\n//\n\npre,\ncode,\nkbd,\nsamp {\n font-family: $font-family-monospace;\n @include font-size(1em); // Correct the odd `em` font sizing in all browsers.\n}\n\npre {\n // Remove browser default top margin\n margin-top: 0;\n // Reset browser default of `1em` to use `rem`s\n margin-bottom: 1rem;\n // Don't allow content to break outside\n overflow: auto;\n // Disable auto-hiding scrollbar in IE & legacy Edge to avoid overlap,\n // making it impossible to interact with the content\n -ms-overflow-style: scrollbar;\n}\n\n\n//\n// Figures\n//\n\nfigure {\n // Apply a consistent margin strategy (matches our type styles).\n margin: 0 0 1rem;\n}\n\n\n//\n// Images and content\n//\n\nimg {\n vertical-align: middle;\n border-style: none; // Remove the border on images inside links in IE 10-.\n}\n\nsvg {\n // Workaround for the SVG overflow bug in IE10/11 is still required.\n // See https://github.com/twbs/bootstrap/issues/26878\n overflow: hidden;\n vertical-align: middle;\n}\n\n\n//\n// Tables\n//\n\ntable {\n border-collapse: collapse; // Prevent double borders\n}\n\ncaption {\n padding-top: $table-cell-padding;\n padding-bottom: $table-cell-padding;\n color: $table-caption-color;\n text-align: left;\n caption-side: bottom;\n}\n\n// 1. Removes font-weight bold by inheriting\n// 2. Matches default `` alignment by inheriting `text-align`.\n// 3. Fix alignment for Safari\n\nth {\n font-weight: $table-th-font-weight; // 1\n text-align: inherit; // 2\n text-align: -webkit-match-parent; // 3\n}\n\n\n//\n// Forms\n//\n\nlabel {\n // Allow labels to use `margin` for spacing.\n display: inline-block;\n margin-bottom: $label-margin-bottom;\n}\n\n// Remove the default `border-radius` that macOS Chrome adds.\n//\n// Details at https://github.com/twbs/bootstrap/issues/24093\nbutton {\n // stylelint-disable-next-line property-disallowed-list\n border-radius: 0;\n}\n\n// Work around a Firefox/IE bug where the transparent `button` background\n// results in a loss of the default `button` focus styles.\n//\n// Credit: https://github.com/suitcss/base/\nbutton:focus {\n outline: 1px dotted;\n outline: 5px auto -webkit-focus-ring-color;\n}\n\ninput,\nbutton,\nselect,\noptgroup,\ntextarea {\n margin: 0; // Remove the margin in Firefox and Safari\n font-family: inherit;\n @include font-size(inherit);\n line-height: inherit;\n}\n\nbutton,\ninput {\n overflow: visible; // Show the overflow in Edge\n}\n\nbutton,\nselect {\n text-transform: none; // Remove the inheritance of text transform in Firefox\n}\n\n// Set the cursor for non-`