Commit 1aeee39a authored by Sirat Ahmadi's avatar Sirat Ahmadi
Browse files

Refactor and delete not needed commented code

parent 6ac1ba0c
404.html,1597954843600,05cbc6f94d7a69ce2e29646eab13be2c884e61ba93e3094df5028866876d18b3
index.html,1597954697882,af1f4b44f3732ca73800142105217cb1c2b0a0beb4b8830aeb633c32bb766d52
css/app.88fed0b8.css,1597954697756,2920bb521b3502bd3f4a5aef94e1e3cf2810e4c4d856827cd082b9fc60c226ca
img/gradle.b5fc60ec.svg,1597954697757,201ea545d06808d8a2e92bb100c8c19cf8c98d896892d1adefd98aacb2dfd831
favicon.ico,1597954697882,1e71457865f706dc865b49a54a86e193818220d290b30226b6630a42faf1535d
js/app.b3ae8dc8.js,1597954697756,9849eb63442e5b1c02ca5ebf32d525efec5a33b075c5181b27efbd8c699c5ccb
js/chunk-2d0a3577.251ca6ca.js,1597954697757,3e7e72749a6bfb5f0efbfba95e99114dbc2c57d74f2fe35b21ff792734928651
js/chunk-2d0a43df.30f0f07f.js,1597954697757,6fbf7b04efcd893cf4588ca2387e9b42a306dbf746de344f55fc55deace3ef64
js/chunk-2d0a43df.30f0f07f.js.map,1597954697862,ca7676eb6fe1700517416f1102dcd1130ced1a990a0309c395df0280445dc68e
js/chunk-2d0aa90c.1a2f3d9f.js,1597954697757,1302a59fdea5932a1eb97b9861adcca17e478711e3a67d985d639170db9abc05
js/chunk-2d0aa90c.1a2f3d9f.js.map,1597954697863,deba86d5a039f4eda2d24c57fe5949eea0be63b1d91b57d60d0a898fb234435a
js/chunk-2d0aab07.5f05acf9.js,1597954697757,a416d8f68ceaff6871c367c8755e48efec990409154f901354991fd3e5906792
js/chunk-2d0aab07.5f05acf9.js.map,1597954697863,648597c427531f38fedd6f5654b5eba8793d4014993d9bb65e2deec917923a58
js/chunk-2d0abc00.4b956803.js,1597954697757,fe1f19d9afd8e79ff0691cc488da5b908947b3cb18db932262e4a61f35ffa629
js/chunk-2d0a3577.251ca6ca.js.map,1597954697861,035cd4720a3c17da8929b5800f61d5381f613de4e28bb96b58b538fe012144e8
js/chunk-2d0abc00.4b956803.js.map,1597954697864,623708238dbf27587df008775313f5f5d72a535471459834c3b846af858b1f5e
js/chunk-2d0ae937.6a7f6886.js,1597954697757,d77977478f520c13186a548f5a736b3b4cb1687c978cf4cd4d3c607ea8d8403d
js/chunk-2d0af08c.d38d9c28.js,1597954697757,c3dc79fdfd8f5e343fede4b546633702c2152a26dc673541bf422c16c9ceada8
js/chunk-2d0aeb45.cd1af608.js,1597954697757,684e35310e4ed27c57b7662ce6f922f1a9c841450d1ce126b1059d788a941867
js/chunk-2d0af08c.d38d9c28.js.map,1597954697865,5c7cc32e85d2cb3ab4043a2dbbab7cd6928293cff83aed198388be32a9ea224e
js/chunk-2d0afa49.85aedb4f.js,1597954697758,f87e43471bc6dd18a2c4b1c4ec3038dbdabcb294ed39580adf353417f7090e3f
js/chunk-2d0afa49.85aedb4f.js.map,1597954697865,8c7accf2b443770e9e94b462c6a01e3b0c288eaab89e716dd7d3de06d76ca9ff
js/chunk-2d0b2762.d494f747.js,1597954697758,23161e14b9209af7c8ff8b5951821fc8499c5b3423c1dc98d8a5b84be14d8fe4
js/chunk-2d0b2762.d494f747.js.map,1597954697865,2eee6daeefc73ecfda663130e17cc0801a2aa65d3b9463365595969b65e17e19
js/chunk-2d0ba136.3eed6022.js,1597954697758,3353ccdd3defb348b579c1c667df7daa58069acbee98f622b7d7ecf1d79e0042
js/chunk-2d0ae937.6a7f6886.js.map,1597954697864,20847a608e262b6fb852ea1f223c275bb289e8f082f550e6a28628cc411d8db6
js/chunk-2d0ba136.3eed6022.js.map,1597954697866,c807fbfb29340c4d34c8b6a07bc1ff1da54f7b7e42e101a8f7656a1bf6ed172b
js/chunk-2d0b6187.27277bd9.js,1597954697758,a7a3da67638eaf4f5bb5586662ab6b87beaff3df4b72b18deb7477ad5fc3daf8
js/chunk-2d0bb267.c952d590.js,1597954697758,ff72d77bfc2fae9ed9cb3919d0bf9d3e9e4448f47fc2840f335acc419ba3a54f
js/chunk-2d0bb267.c952d590.js.map,1597954697866,bd5d7cb70330027ebb1a3b85c53e1e696fedd52f38aa5f1092001a98a46ce5fb
js/chunk-2d0bcec1.d0785fd8.js,1597954697758,3f5b45377275c7d43d5aa8f7b92ead37bd6e1fbc50812a6a3dc838e975c39dbb
js/chunk-2d0bdf38.05e8b84a.js,1597954697758,0cefa7b72b7d65cc9530866637bfe3f73297eb5b515a1e07323fde0cf303e5ec
js/chunk-2d0bdf38.05e8b84a.js.map,1597954697867,122184a2c07a6be8449143ce3f09a941387bb042ba01c0e356af1ff55bb001fd
js/chunk-2d0bff92.034214d5.js,1597954697758,9eced35fe27fcd6b349e52ef7f9bb2646e8f590a2d2bba50c67b3255a4d9ac72
js/chunk-2d0b6187.27277bd9.js.map,1597954697866,64fd4374b9f91cca31396509da55713d2df0f6ed70c50fef97db0a587cdf8a26
js/chunk-2d0bcec1.d0785fd8.js.map,1597954697867,3be8e9dde34d591d6eb7d40399b91b79456a77dd9f3991686aabcd36efedd835
js/chunk-2d0bff92.034214d5.js.map,1597954697867,a63eb84dd1596b9df86bcc77e872b1ef1b39c804bdf12ae736cdb5acb0ad0a6a
js/chunk-2d0c0494.94495161.js,1597954697759,58eb5f8bc721ff8dfcfb37b1110ae31b7d70e0e7674a23c55a0a97891787a2e2
js/chunk-2d0c0a09.e0f072af.js,1597954697758,946db5cefc25b1bc6fcdb5e1d3df3fa6f249157a74a344874207fe38f68617a4
js/chunk-2d0aeb45.cd1af608.js.map,1597954697865,b5971904c01e188a3fcee392ec727ba619e1278c27e34b91e6363a03bf12895c
js/chunk-2d0c4313.4d319382.js,1597954697759,1baeba3919073197848ba0c5e7a6b866b0e61bf290a43e92b20f55c5fd3eef2f
js/chunk-2d0c0a09.e0f072af.js.map,1597954697868,95ab9d2caa4a4641ba63e52b91089d58ec5d46d465ef9040baec3bc66809afde
js/chunk-2d0c0494.94495161.js.map,1597954697868,46e7b47303fd98f2ede00f15c01229c65044daef84c33d2aad4effe407e36408
fonts/codicon.a609dc0f.ttf,1597954697751,7fea7cd65563d29435d2b39bdd014e7fb45ff2529072b5a33d3e18409bf262db
js/app.b3ae8dc8.js.map,1597954697861,cf0d4aefc115d1d6a59884c8c8634445c3b870c26395be441c6c6d8737346a32
editor.worker.js,1597954697751,aaef57aa8db27ad35b2dcf2eaa673ad2f0e7e13b833c81f53e6921feff2b8187
js/chunk-2d0c4313.4d319382.js.map,1597954697869,03b6f3bf166c41cb9f28a7ba2aaf664fe3ea8e0790d80a0da0eb193811e88f5a
js/chunk-2d0c46d1.249cdc0a.js,1597954697758,6f809f63fc1e7532e11b36664e370fa594f95524e8856439a4dd428fa0357c00
js/chunk-2d0c512b.fd17017b.js,1597954697759,fb89b49bac4348ee8f7ad3146baf72938ee8671d1d67a972bcd0d87951b54a59
js/chunk-2d0c46d1.249cdc0a.js.map,1597954697869,4f6f1c7af2e0663aa819d8cbec0017560b858e2b260ef559983537c1a14c9396
js/chunk-2d0c512b.fd17017b.js.map,1597954697869,0bf0150740b4b46b5c624be9a159761b432e2814ee1cedb3fb05e1ad232bad9f
js/chunk-2d0cf16e.1c018bf0.js,1597954697759,ff01b47a33940c23680338e12213068d8dc1a3efd84e9a92b88a8ccefb207f5c
js/chunk-2d0d056d.03ec864d.js,1597954697759,6a05e7b231ca0e65f594239cec6ea94af6bba2b023e7e34a86651988a053634e
js/chunk-2d0d056d.03ec864d.js.map,1597954697870,75f0b5c8e021d208326574da2dfb6f8c40052fcac2cfb37c7fb2abba18972e28
js/chunk-2d0d0645.2e0a0f73.js,1597954697759,da38226367fdc1e50b45a4796aed450dd4344657e0e65c3329b0edb7db2604ee
js/chunk-2d0d0645.2e0a0f73.js.map,1597954697870,f0e66403da4dbd968bd1007ad9701e697c268018c3b3464145726bdc4a9f39bc
js/chunk-2d0d61fd.13a870f6.js,1597954697759,1d8985a72dac9942a57c4ecf06b1c066823762243dcc13300bb1ae3ded224019
js/chunk-2d0cf16e.1c018bf0.js.map,1597954697869,91b453869e1aa26c79fc68b13fb4b7b6db960de2919e7705ba8a13d00a96cc70
js/chunk-2d0d61fd.13a870f6.js.map,1597954697871,c5d8d7140a7fc19cc3b06957035d5f8d0c4ffee68ba00aab438c0f6089c703f2
js/chunk-2d0d2f22.4bd0b792.js,1597954697759,836eb7fc27bc91d8cd66ea92240772d4f73bda1e6700ffe2e4d9f19fc5ed2f50
js/chunk-2d0d7e63.8ccba6b5.js,1597954697759,e2c81fce153c481c79974bd2101308d165c0a49e03ca852bccd0f15c5ac44d3c
js/chunk-2d0e1b57.e2623a68.js,1597954697759,ea478ae38358efe0a1077557919e8582a5e141467406e0d92538b23fdc042ff2
js/chunk-2d0e1b57.e2623a68.js.map,1597954697871,838bb8077b22303d7e92c0bfb29b7b46ad26e8652259c31faf65b880306168f4
js/chunk-2d0d7e63.8ccba6b5.js.map,1597954697871,73f8f46f0af081d213267fddd0480c63662704b50bb925528bd9a949d4b6bde2
js/chunk-2d0e1fbe.36f52224.js,1597954697759,71f1fea1aba4386a624c8a3441c30a21aaadede7907f4271878742b3cc0cee20
js/chunk-2d0e22d6.1b8a57ba.js,1597954697760,7309a0c3c0ffa9ce29a089cea0645f6d26880661cc74f9199b47b39f773c9e33
js/chunk-2d0e1fbe.36f52224.js.map,1597954697871,b402018c5c8a9ee87035012fe390bcc280fc6d2a4d507c3165509777e55d249c
js/chunk-2d0e22d6.1b8a57ba.js.map,1597954697871,6e8f16bb4d40a55b2005763d464e82df8787d8b27afa81569ba77bebd72ab7e7
js/chunk-2d0e542a.2315bfee.js,1597954697759,c456783ceebfc4274e0e82fe45cbcac9a21cfd40805c610fed6b800b46ee6b0e
js/chunk-2d0e57ec.5c58094a.js,1597954697760,18f904633c811abdb54db167445ef947e5e15283d292152f2ede5cb92823a6cb
js/chunk-2d0e542a.2315bfee.js.map,1597954697871,bfbfc20def828fc4c452538e92cd3b255a789ef04624d6c6753865e6fd584e7d
js/chunk-2d0d2f22.4bd0b792.js.map,1597954697870,676799f0c91ed7985b3dd288d1c2bf911bdb453989c0913268ffb23416fa8b27
js/chunk-2d0e6553.6d50bc83.js,1597954697760,fd29bcb9708573cc3874caa200b1342884ed711ae9770c831b51707af9f5dd57
js/chunk-2d0e6c86.53387cf8.js,1597954697760,753603ba84e25118e1a3a438c22e2178a103b491d2c5972e3939967812cdeda6
js/chunk-2d0e6553.6d50bc83.js.map,1597954697871,3825b2d4380cf4cb6ab364f0920ccaf42148b1e48a0a7491fce748c14f51edb7
js/chunk-2d0ea098.8c15e660.js,1597954697760,bb5cc40fcb19b079f2b946f42123f7386faabf45ae480c355b16819e65d4f5f5
js/chunk-2d0e6c86.53387cf8.js.map,1597954697871,cc8862bdc755ec84f809af1ff987c495637cd8f93b28ab7533476da4f37db71b
js/chunk-2d0f0a11.6aee0881.js,1597954697760,21b565071a2de19ad78361cd293c0611f7f0278db9442c1921ec27c6c912d749
js/chunk-2d208ac5.9c39013c.js,1597954697760,5d017e2bd8c26937ad7e53447148e74bfe1955082bdf24475a655433e35c2119
js/chunk-2d0e57ec.5c58094a.js.map,1597954697871,57d5b09a796c7a26bc19ab3a9c50ac1331453ca9ef1263e86c463d84d50728d9
js/chunk-2d209408.2ea13fb8.js,1597954697760,c833514841b672dd99be6c041553154e0d350c6799c8db3114dba206e6aa42a2
js/chunk-2d0ea098.8c15e660.js.map,1597954697872,c0ca7784f27725b4feb1a24a5eebfec55b0b8f20d939d00dcbff8f1d74720959
js/chunk-2d209408.2ea13fb8.js.map,1597954697872,9ef3d12a9ac16eb877767fb7e2e1d8fe3b33b46332f0b583bccf8804d945d20f
js/chunk-2d208ac5.9c39013c.js.map,1597954697872,7d7c609be61b68c501fe6955017329db3de9eb8967a422af97943b7d7563a47f
js/chunk-2d0f0a11.6aee0881.js.map,1597954697872,17ab15a5b637f7e6a165714690d609a6113cd4a67b0c6c199804910a5d0bca1f
js/chunk-2d20ff23.1e0453c9.js,1597954697760,e45c98d093594a13bab5dd96c1b74a54d5f32480c09e5f40fe18bd714dc5c451
js/chunk-2d20f745.6954cd0e.js,1597954697760,94ceb6a3b776ef64d46840bde7349bc8c62de5b3347a182ea073ad58d6a55c73
js/chunk-2d20ff23.1e0453c9.js.map,1597954697872,d94f7321d323b20734752e986c1684881a2b68489e707f2eb5e1cf4bd2154a48
js/chunk-2d20f745.6954cd0e.js.map,1597954697872,9f68817f4e4d078f99724dd680db2df65b8835483a23dd956a3e6342674db477
js/chunk-2d2138c7.14fd8d72.js,1597954697760,0363978b5647d996b7d6bf026af166f4a5595a8c86b33bfb50f3d3f44ca3feed
js/chunk-2d2138c7.14fd8d72.js.map,1597954697872,5ea2c5aa695129d21bcc3e422a931e23f362bbcfdec108e41de902dfaf888767
js/chunk-2d216f3b.6f7ff11d.js,1597954697760,dc0857fd67910693d43cc746781cb4db70fc0733245268e5e6c22502d82025d9
css/chunk-vendors.5f8bc041.css,1597954697860,c03308e51d6c17e88c749f6bd0c073f13a1aaebdae89d38f6ff0572bbd48e840
js/chunk-2d216f3b.6f7ff11d.js.map,1597954697872,c756ad9e50f2aa32c96ef86bbde3d07b09dd3612a5fa463b68b77576187bc3eb
js/chunk-2d217e5b.53e47030.js,1597954697761,5e007d4e448540e3afcff06a30909ff321f0848a06c24ec89e910a1de8d9636d
js/chunk-2d217e5b.53e47030.js.map,1597954697873,8c325b4ff50e253e13b417b1c843fc97bb408d2afaa1dae0a81d744e6a3c08d7
js/chunk-2d21b84a.7d53c345.js.map,1597954697873,4bc1a7c30d03aaad4b75e350c12c599dbe37d4cf6bc788d1b08dc8c933e05abf
js/chunk-2d21dcd2.3129e0b2.js,1597954697761,66291d6ea22707b5cc48ce66495072cdf79852622cad7a5f543b9ee70fcfa13f
js/chunk-2d21b84a.7d53c345.js,1597954697761,7b5b61beefa723c722a3d0888ea6f131ada08a4f694acfbd24971d1924589b7e
js/chunk-2d21f327.33b69d0b.js,1597954697761,5878432cb64f969dbc0e4845352f6250df703c3307c6bb90c003bdeb759e226e
js/chunk-2d21dcd2.3129e0b2.js.map,1597954697873,30523890c2adf9d6aca734046def79c9cf59fcd0d8a6ef2d0f6bee1877ca1af7
js/chunk-2d21f327.33b69d0b.js.map,1597954697873,f1bd4bfe0f7fb360369e16bd10f1ab41399b0e48ced76006024a37a5054964ca
js/chunk-2d2214b3.5f501364.js,1597954697761,13402c7326426845bda0d7df85a7bc438d4b5962e216acdb7a8b75c64425d790
js/chunk-2d221799.d29c8ee7.js,1597954697761,968f58907a702bf427964db10f7fc3c8065f705c3f4c0fc357e91d900a472f0f
js/chunk-2d2214b3.5f501364.js.map,1597954697873,334dd6a1b2c4aa8d27147ba4f9227d42da60fe08d1f84d1b0b11f5c2c1f25c8e
js/chunk-2d221814.9a9e2601.js,1597954697761,daae9d46388527b6bb3b11112d840200965ad8e44ebd7807e4ad1cb2da821ba7
js/chunk-2d221799.d29c8ee7.js.map,1597954697873,5d549dd3373fb060b968e022424217f05beecb1e9e90c6465fbc8490a9a9cf08
js/chunk-2d221a34.e3ce115b.js,1597954697761,4818c9c768b129efe6c260dfc9d497c76b07b31901fbe3009e20d3ee550d4cdd
js/chunk-2d221814.9a9e2601.js.map,1597954697873,80b5a32a46c8d7bad76334a747387eca6b92e386933290917175cc3a47155a37
js/chunk-2d221a34.e3ce115b.js.map,1597954697873,85724ae2ae0d1179c8814c95fa643ef9f516f490bc3e3dd93def35b8c0f4d5b5
js/chunk-2d226775.4957e5f8.js,1597954697761,c5bcac010829ff4141aa157d99543b1dfdaad4a6cf31d67f5534dcdcfff9e8f4
js/chunk-2d22502a.537430bc.js,1597954697761,7ac7b688f23d4311d3ae2a6aac6754b13d2fad57813a71d1d4d8bd66111d27ee
js/chunk-2d229411.99076678.js,1597954697762,388480e4e78ecd3a7e71d5db0b88011f04ff22dcf2d90d7c4bba9de79d074b69
js/chunk-2d226775.4957e5f8.js.map,1597954697874,c0178479cb8b34c1229d76801b98bf91de92e644bbadf86fa34f948f970fcc0e
js/chunk-2d229411.99076678.js.map,1597954697874,8139dae6580a0719f93572ffa58b689330c07092a2f8b75ac66d5b802dfc6891
js/chunk-2d2295e9.764b7f7b.js,1597954697762,f1167e554ff12d6bed98593c676494fbda8a94b481d39cb68e4c4a071cf7adfd
js/chunk-2d2295e9.764b7f7b.js.map,1597954697874,441718df61ef36c13bb91bb4c451ab3945c9c935d11a6d598245474c6f6812ea
js/chunk-2d22c171.a442b21f.js,1597954697762,aa60cf9729d949f9b2ae701da89b18b94bd14d9d7fb3174b36ec2d1acba85762
js/chunk-2d22c171.a442b21f.js.map,1597954697874,f4db73217cb00b4ca71856f6c1686a4d0dd0208b94c841ecee722cd4efca4444
js/chunk-2d22c2b8.aed1a5e8.js,1597954697762,5ef5d2a7537d6415f3800752096eab3255bf188b62e8757c0993e0b96c31e5f9
js/chunk-2d22c2b8.aed1a5e8.js.map,1597954697879,5931cbacd6e0a7f95474b347865a4b2173cb367a23c3088388a2e23a086f07a0
js/chunk-2d22ca58.88eeab11.js,1597954697762,a1811b02f19a560fc90c944529229bc18005625a99ff4202df4a7209ac6e3758
js/chunk-2d22ca58.88eeab11.js.map,1597954697879,229a12b10127f1004798e501d4692f614633bfcddb33d4070e79893091a4c6a1
js/chunk-2d2311f7.67c80373.js,1597954697765,001ef7d105c46997ab157f0a4b9470edbb357302e194e78edc259d79a93648dd
js/chunk-2d2311f7.67c80373.js.map,1597954697880,f675e40f276b4a1717a75907a1fb9f4531cfd672143c30dd37f0d244bd919294
js/chunk-2d237ee7.4811d11f.js,1597954697765,c82772ba3080f2c5a3c0cdbb3d063281e3fe945b1013036bc2397aecb842756d
js/chunk-2d238465.dff2fb16.js,1597954697766,b80c8954cfd9ca8d843c3c4aa90823b118034a244d223f1aee8525df15ae7912
js/chunk-2d237ee7.4811d11f.js.map,1597954697880,a5b553da511b5d7a92f7d41b471fef6e05bc09d2f81c18b65756e39c42455970
js/chunk-2d238465.dff2fb16.js.map,1597954697880,e6cec4ae2d96cdbbce5eb54cba6d4bf891a69a7009c70cc7d46fdafd6129e193
js/chunk-7532b3ea.f9459b66.js,1597954697768,5062909b21ed10e31b98735d533501d1a70847373e70ca68790209a9d9f33d95
js/chunk-7532b3ea.f9459b66.js.map,1597954697882,bbbe7bf8e17910260b873104c8a10c0101c4d9fe22f18361f9dc116eadb1f0c0
js/chunk-2d22502a.537430bc.js.map,1597954697873,9123a2b768de8a5eb4dc5d7cb732010d0afeacd79300a4b10b9a4f0b2e897e83
js/chunk-e13e4362.57e1cb13.js,1597954697845,1abaa0e79c227157e92eb7703dd01a77193d284195f8d56c085d29177f2011a1
js/chunk-30597b4a.4a7df119.js,1597954697768,3bac41a16a7bda4dae856d47143d4aee3b12f849c6ffd86038247fda3e96fb9b
js/chunk-0b65ffb6.f87abf6f.js,1597954697757,debcce3645678403667a2137039c8acae2a12018ee1d62793bcd66a4f31b45f5
editor.worker.js.map,1597954697751,0676024dd7bd37688f6dd7c3c28a7b75cf4dd3599339169dc2ad9340f16b8e92
js/chunk-e13e4362.57e1cb13.js.map,1597954697936,77306b54d846babeee489234358af4c265feeace161428d028bfde67c31b2b83
js/chunk-30597b4a.4a7df119.js.map,1597954697880,233dd9cb8ea9ee3b756581a76c965011c81d644d83ce2f3181aa710fedb90af0
js/chunk-0b65ffb6.f87abf6f.js.map,1597954697861,0c9d3482d938ddc0f1656e52d97785f9ae60eeb1f53ed67a420fcfba9954fa09
js/chunk-vendors.069a36b3.js,1597954697861,271d37ca176dfc5d0768b24b822349185f897d5ea21018a48a3b16fab9d53e10
js/chunk-vendors.069a36b3.js.map,1597954697938,90ba23484d26446382c7532982066ca9116324d9da3cc3bf5d4d1d1c49690e4b
{
"projects": {
"default": "ba-serverless-frontend"
}
}
......@@ -15,10 +15,20 @@ npm run serve
npm run build
```
### Lints and fixes files
```
npm run lint
```
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
# Setup a Firebase Project
- Make sure to run `npm run build` inside the frontend project (should build it to `dist` folder in root directory)
- Create Firebase account and create a project: https://firebase.google.com/
- `npm install -g firebase-tools`
- `firebase login`
- `firebase init` and select `Hosting` with **Spacebar** and press enter
- `Use an existing project` (Enter)
- Select your previously created project
- What do you want to use as your public directory? `dist` (typ in dist)
- Configure as a single-page app (rewrite all urls to /index.html)? `N`
- File dist/index.html already exists. Overwrite? `N`
# Deploy Firebase Project
- `firebase deploy`
\ No newline at end of file
{
"hosting": {
"public": "dist",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
}
}
......@@ -24,23 +24,9 @@ export default {
FileTree,
},
data: () => ({
// tree: {
// children: [
// {
// id: 1,
// path: '',
// name: 'Main.java',
// model: {
// value: '// This is your main file...',
// language: 'java',
// },
// },
// ],
// },
tree: defaultGradleProject,
editor: null,
activeNode: null,
// fileIndexStack: [],
}),
methods: {
// Updates content of current file model and saves models in Store
......@@ -56,14 +42,6 @@ export default {
// Find current model in models array and update it
let _models = this.models;
// for (let i = 0; i < _models.length; i++) {
// if (_models[i].id === newModel.id) {
// _models[i] = newModel;
// break;
// }
// }
// // Save updated models array in Store
// this.$store.dispatch('updateAllModels', _models);
updateModels(newModel, _models, this.$store);
}, 500),
},
......@@ -152,7 +130,6 @@ body {
.editor {
height: 100%;
/*margin-left: 370px;*/
margin-left: 17%;
width: 60%;
position: absolute;
......
......@@ -119,7 +119,6 @@ export default {
<style lang="scss">
.tree {
/*width: 300px;*/
height: 100%;
position: absolute;
background: #f0f0f5;
......
<template>
<div class="icon-bar">
<div id="runBtn" type="button" class="btn btn-icon" @click="runProgram" :disabled="isDisabled">
<div id="runBtn" type="button" class="btn btn-icon" @click="runProgram">
<svg id="runBtnIcon" class="bi bi-play" width="1em" height="1em" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M10.804 8L5 4.633v6.734L10.804 8zm.792-.696a.802.802 0 010 1.392l-6.363 3.692C4.713 12.69 4 12.345 4 11.692V4.308c0-.653.713-.998 1.233-.696l6.363 3.692z" clip-rule="evenodd"/>
</svg>
......@@ -11,19 +11,13 @@
<path fill-rule="evenodd" d="M11.251.068a.5.5 0 01.227.58L9.677 6.5H13a.5.5 0 01.364.843l-8 8.5a.5.5 0 01-.842-.49L6.323 9.5H3a.5.5 0 01-.364-.843l8-8.5a.5.5 0 01.615-.09zM4.157 8.5H7a.5.5 0 01.478.647L6.11 13.59l5.732-6.09H9a.5.5 0 01-.478-.647L9.89 2.41 4.157 8.5z" clip-rule="evenodd"/>
</svg>
</div>
<div type="button" class="btn btn-icon" @click="generateGradleProject" :disabled="isDisabled">
<img src="../assets/gradle.svg"
alt="Gradle Icon"
style="width:36px; margin-top:10px;">
</div>
</div>
</template>
<script>
import JSZip from 'jszip';
import axios from 'axios';
import { saveAs } from 'file-saver';
// import { saveAs } from 'file-saver';
export default {
name: 'icon-bar',
......@@ -31,196 +25,6 @@ export default {
fileIndexStack: [],
editor: null,
activeNode: null,
isGradleProject: false,
isDisabled: false,
gradleFileTree: {
children: [
{
id: 1,
path: '',
name: 'build-JITPACK.gradle',
model: {
value: 'plugins {\n' +
'\tid \'java\'\n' +
'}\n' +
'\n' +
'ext.jitpackGroup = \'com.github.junit-team.junit5\'\n' +
'ext.jitpackVersion = \'master-SNAPSHOT\'\n' +
'// ext.jitpackVersion = \'experiments~parallel-execution-SNAPSHOT\'\n' +
'\n' +
'repositories {\n' +
'\tmavenCentral()\n' +
'\tmaven { url \'https://jitpack.io\' }\n' +
'}\n' +
'\n' +
'dependencies {\n' +
'\ttestImplementation("${jitpackGroup}:junit-jupiter:${jitpackVersion}")\n' +
'}\n' +
'\n' +
'test {\n' +
'\tuseJUnitPlatform()\n' +
'\ttestLogging {\n' +
'\t\tevents "passed", "skipped", "failed"\n' +
'\t}\n' +
'}',
language: 'gradle',
},
},
{
id: 2,
path: '',
name: 'build-SNAPSHOT.gradle',
model: {
value: 'plugins {\n' +
'\tid \'java\'\n' +
'}\n' +
'\n' +
'repositories {\n' +
'\tmavenCentral()\n' +
'\tmaven { url \'https://oss.sonatype.org/content/repositories/snapshots\' }\n' +
'}\n' +
'\n' +
'dependencies {\n' +
'\ttestImplementation(\'org.junit.jupiter:junit-jupiter:5.6.0-SNAPSHOT\')\n' +
'}\n' +
'\n' +
'test {\n' +
'\tuseJUnitPlatform()\n' +
'\ttestLogging {\n' +
'\t\tevents "passed", "skipped", "failed"\n' +
'\t}\n' +
'}',
language: 'gradle',
},
},
{
id: 3,
path: '',
name: 'build.gradle',
model: {
value: 'plugins {\n' +
'\tid \'java\'\n' +
'\tid \'application\'\n' +
'\tid \'eclipse\' // optional (to generate Eclipse project files)\n' +
'\tid \'idea\' // optional (to generate IntelliJ IDEA project files)\n' +
'}\n' +
'\n' +
'mainClassName = "com.example.project.Main"\n' +
'\n' +
'repositories {\n' +
'\tmavenCentral()\n' +
'}\n' +
'\n' +
'dependencies {\n' +
'\ttestImplementation(\'org.junit.jupiter:junit-jupiter:5.6.0\')\n' +
'}\n' +
'\n' +
'test {\n' +
'\tuseJUnitPlatform()\n' +
'\ttestLogging {\n' +
'\t\tevents "passed", "skipped", "failed"\n' +
'\t}\n' +
'}',
language: 'gradle',
},
},
{
id: 4,
path: '',
name: 'src',
children: [
{
id: 5,
path: 'src/',
name: 'main',
children: [
{
id: 6,
path: 'src/main/',
name: 'java',
children: [
{
id: 7,
path: 'src/main/java/',
name: 'com',
children: [
{
id: 8,
path: 'src/main/java/com/',
name: 'example',
children: [
{
id: 9,
path: 'src/main/java/com/example/',
name: 'project',
children: [
{
id: 10,
path: 'src/main/java/com/example/project/',
name: 'Main.java',
model: {
value: 'package com.example.project;\n\n// This is your main file...',
language: 'java',
},
},
],
},
],
},
],
},
],
},
],
},
{
id: 11,
path: 'src/',
name: 'test',
children: [
{
id: 12,
path: 'src/test/',
name: 'java',
children: [
{
id: 13,
path: 'src/test/java',
name: 'com',
children: [
{
id: 14,
path: 'src/test/java/com/',
name: 'example',
children: [
{
id: 15,
path: 'src/test/java/com/example/',
name: 'project',
children: [
{
id: 16,
path: 'src/test/java/com/example/project/',
name: 'MainTest.java',
model: {
value: 'package com.example.project;\n\n// This is your main test file...',
language: 'java',
},
},
],
},
],
},
],
},
],
},
],
},
],
},
],
},
}),
methods: {
disableBtnsAndConsole(isWaiting) {
......@@ -254,7 +58,7 @@ export default {
// Finalize zip
await zip.generateAsync({ type: 'blob', compression: 'DEFLATE' })
.then(blob => {
saveAs(blob, 'data.zip');
//saveAs(blob, 'data.zip');
// Create Request object and send to backend
let fileObj = new File([blob], 'data.zip', {type: 'zip'});
......@@ -277,7 +81,7 @@ export default {
let respAsJson = JSON.parse(response.request.response);
this.$store.dispatch('updateIsWaiting', false);
let respTxt = respAsJson['out'] ? respAsJson['out'] : respAsJson['error'];
let respTxt = respAsJson['error'] + '\n' + respAsJson['msg'];
this.$store.dispatch('updateConsoleText', respTxt);
})
.catch(error => {
......@@ -292,157 +96,11 @@ export default {
},
async runProgram() {
await this.callGradle('https://ba-serverless-testing-t6e6p4w6oa-ew.a.run.app/run/gradle');
await this.callGradle('https://ba-serverless-testing-t6e6p4w6oa-ew.a.run.app/run/gradle?return=json');
},
async testProgram() {
await this.callGradle('https://ba-serverless-testing-t6e6p4w6oa-ew.a.run.app/test/gradle');
},
async testProgramOLD() {
this.isDisabled = true;
document.body.style.cursor = 'wait';
// Run through models and create the file structure inside the zip
let models = this.$store.getters.models;
let zip = new JSZip();
for (let i = 0; i < models.length; i++) {
zip.file('data/' + models[i].path + models[i].name, models[i].value);
}
await zip.generateAsync({ type: 'blob', compression: 'DEFLATE' })
.then(blob => {
let fileObj = new File([blob], 'data.zip', {type: 'zip'});
let formData = new FormData();
formData.append('file', fileObj);
// TODO: implement /test/zip on the backend
let destUrl = this.isGradleProject ?
'https://ba-serverless-testing-t6e6p4w6oa-ew.a.run.app/test/gradle'
: 'https://ba-serverless-testing-t6e6p4w6oa-ew.a.run.app/test/zip';
axios
.post(
destUrl,
formData,
{
headers: {
'Content-Type': 'multipart/form-data',
},
},
)
.then(response => {
let respAsJson = JSON.parse(response.request.response);
this.$store.dispatch('updateConsoleText', respAsJson['out']);
})
.catch(error => console.log(error));
});
document.body.style.cursor = 'default';
this.isDisabled = false;
},
generateGradleProject() {
this.isDisabled = true;
document.body.style.cursor = 'wait';
this.$store.dispatch('updateFileTree', this.gradleFileTree.children);
// Create models for new files
this.$store.dispatch('updateAllModels', []);
this.createModels(this.gradleFileTree.children);
this.$store.dispatch('updateActiveNode', this.gradleFileTree.children[0]);
this.activeNode = this.$store.getters.activeNode;
this.$store.dispatch('updateIsGradleProject', true);
this.isGradleProject = this.$store.getters.isGradleProject;
document.body.style.cursor = 'default';
this.isDisabled = false;
},
createModels(files) {
let currFiles = files;
let currIndex = 0;
this.fileIndexStack.unshift({
files: currFiles,
index: currIndex,
});
// eslint-disable-next-line no-constant-condition
while (true) {
// Get top of stack
let topStack = this.fileIndexStack.shift();
let currFiles = topStack.files;
let currIndex = topStack.index;
// Get file
let file = currFiles[currIndex];
// Check if directory
if (file && file.children) {
// Add the directory on stack,
// to use after iterating over every file in folder
this.fileIndexStack.unshift({
files: currFiles,
index: currIndex,
});
// Add its first children on to the stack
currFiles = file.children;
currIndex = 0;
this.fileIndexStack.unshift({
files: currFiles,
index: currIndex,
});
// Start next iteration, because this one is a directory
continue;
}
if (file) {
// Create Model
let model = {
id: file.id,
path: file.path,
name: file.name,
value: file.model.value,
language: file.model.language,
};
//this.models.push(model);
this.$store.dispatch('updateModels', model);
}
// Check if next file exists
currIndex++;
if (currIndex < currFiles.length) {
this.fileIndexStack.unshift({
files: currFiles,
index: currIndex,