graphdb-workbench 2.7.4-RC1 → 2.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{0.7ba3421ba82073572033.bundle.js → 0.7740a14c971ea1d2eba0.bundle.js} +1 -1
- package/dist/{10.8cff804c47d8c4db6c02.bundle.js → 10.cde4715aee111520ab10.bundle.js} +1 -1
- package/dist/{100.881d39b605ca379e8f88.bundle.js → 100.468b84c65c7b8c06657d.bundle.js} +1 -1
- package/dist/{101.fd46805a418b7665d7f3.bundle.js → 101.67724d1c5eab0229cbe8.bundle.js} +1 -1
- package/dist/{102.2354578620f04f29711f.bundle.js → 102.73ff72236ce70b195ca5.bundle.js} +1 -1
- package/dist/{103.0b3fb88d513e9395edae.bundle.js → 103.1cf434c1865ad9ca7f7e.bundle.js} +1 -1
- package/dist/{104.756784c24e39a6c749c8.bundle.js → 104.c90b212514e1bb149d36.bundle.js} +1 -1
- package/dist/{105.f791474156a0e648a86b.bundle.js → 105.9ddd0bff6272f563749a.bundle.js} +1 -1
- package/dist/{107.2c5ae0dafed4736d35c3.bundle.js → 107.9501561f24a33fd8ac99.bundle.js} +1 -1
- package/dist/{108.198ca6e897966cc03350.bundle.js → 108.4c18340aa198d13ff031.bundle.js} +1 -1
- package/dist/{11.b5a1c5cac78e2460e879.bundle.js → 11.d6074d5e8b21f93140ef.bundle.js} +1 -1
- package/dist/{111.8dcb73cee60c2c11b49a.bundle.js → 111.c69116afc8952402b94b.bundle.js} +1 -1
- package/dist/{114.2184f7cfd9c6385256cd.bundle.js → 114.11d025f071059a96e016.bundle.js} +1 -1
- package/dist/{115.c37982ff70fc9895ee96.bundle.js → 115.271c8849214e9cb68b82.bundle.js} +1 -1
- package/dist/{116.bfd4e908b33522d2b221.bundle.js → 116.44bbe19c8267478cfe47.bundle.js} +1 -1
- package/dist/{117.e52cd1ac0401c08c0c05.bundle.js → 117.dc5863c0ad28647bd5ff.bundle.js} +1 -1
- package/dist/{118.cbd6c4f2bec4769e4e87.bundle.js → 118.90d7cffadf0edb7dab22.bundle.js} +1 -1
- package/dist/{119.70f2429f721218ba1e7e.bundle.js → 119.49fbd4f9fa7814dcf524.bundle.js} +1 -1
- package/dist/{12.ba5b4805ab4e717bc444.bundle.js → 12.d77cbf85a04c13416797.bundle.js} +1 -1
- package/dist/{120.cca57412d590d1c2b413.bundle.js → 120.3d0da2f33c1998e15059.bundle.js} +1 -1
- package/dist/{121.9ee4c54959d81a5dacaf.bundle.js → 121.5cfe2a629531fff5f8bb.bundle.js} +1 -1
- package/dist/{122.f8b84d6e29d89d3214a8.bundle.js → 122.cfc9eb38b4d4206d3b0f.bundle.js} +1 -1
- package/dist/{123.42076f73f2463e363dcd.bundle.js → 123.e47b9543e88b7a66d926.bundle.js} +1 -1
- package/dist/{124.99f40a5692c9ebc16bc2.bundle.js → 124.ac495e52eeb93db1c258.bundle.js} +1 -1
- package/dist/{125.9641c7850b3a49bb2124.bundle.js → 125.39798647d6fc59af6daa.bundle.js} +1 -1
- package/dist/{126.93016fb0f0aafb8c956a.bundle.js → 126.4c0939dcafeb3e016c9a.bundle.js} +1 -1
- package/dist/{127.75da14f64bf881261344.bundle.js → 127.cc107d2f31dab809d124.bundle.js} +1 -1
- package/dist/{128.39ef9e057eb2b8c491c5.bundle.js → 128.31535237e77713023ab3.bundle.js} +1 -1
- package/dist/{129.099749044011a98e5719.bundle.js → 129.14133cf026c08e488e9e.bundle.js} +1 -1
- package/dist/{14.17726bd63ee4f9ba9ed3.bundle.js → 13.9d8d961a482d42349b33.bundle.js} +1 -1
- package/dist/{130.727179f1928b41cc3a5c.bundle.js → 130.83ca4bfc89844018c61f.bundle.js} +1 -1
- package/dist/{131.bc960d78f443c6f14ab3.bundle.js → 131.f6aec556f49c78da8665.bundle.js} +1 -1
- package/dist/{132.ad1ec30eef46f423be72.bundle.js → 132.bda2e1408a049ad349b2.bundle.js} +1 -1
- package/dist/{133.788f5053106174f4029f.bundle.js → 133.f9aae73e47de861bb86e.bundle.js} +1 -1
- package/dist/{134.07f94242ea08bb8bd96b.bundle.js → 134.a5c33a40d2b84ab5b624.bundle.js} +1 -1
- package/dist/{135.fcde96f8d92371b36428.bundle.js → 135.e3e8ff0d0cce2e980f9b.bundle.js} +1 -1
- package/dist/{136.aa095855b487919b0d55.bundle.js → 136.49d2a1a7cfb9325f793a.bundle.js} +1 -1
- package/dist/{137.81a35506a9534e297b01.bundle.js → 137.c66ea292a9fd631984e5.bundle.js} +1 -1
- package/dist/{138.92a41683f5bffaa018e2.bundle.js → 138.cb759fc495f9ce8e21ce.bundle.js} +1 -1
- package/dist/{139.d280f64f2d782ca06a3d.bundle.js → 139.7537655f500bab3e9c21.bundle.js} +1 -1
- package/dist/14.443c28ad7cefb54afbc3.bundle.js +1 -0
- package/dist/{140.8dda83e675a1f09e5d8a.bundle.js → 140.74aba9df15b050c129d9.bundle.js} +1 -1
- package/dist/{141.acba915987a77950fd5a.bundle.js → 141.60071851020a1bc11595.bundle.js} +1 -1
- package/dist/{142.70f4a7debb7fa9811e58.bundle.js → 142.8906dd00536438b339df.bundle.js} +1 -1
- package/dist/{143.e148d9ae15f03e5d6605.bundle.js → 143.b1a2222304f8efe71776.bundle.js} +1 -1
- package/dist/{144.286d4d56c0290998cb74.bundle.js → 144.f82ff50a8d2c08295627.bundle.js} +1 -1
- package/dist/{146.5c2c712b7966bd8fc570.bundle.js → 146.9b3518b9d896bf47382d.bundle.js} +1 -1
- package/dist/{147.095e1fe02675495ccbcb.bundle.js → 147.e311377785362269579e.bundle.js} +1 -1
- package/dist/148.254a642917f6b6c15d61.bundle.js +1 -0
- package/dist/{149.e1679d4abdeb37739d9d.bundle.js → 149.8a2de058d7b72f417791.bundle.js} +1 -1
- package/dist/15.6cdd681f18f8cccb36e3.bundle.js +1 -0
- package/dist/{150.c5d269fda0add808b0b3.bundle.js → 150.b9d376ab86b1f17e4f78.bundle.js} +1 -1
- package/dist/{151.802ee6c1041bc29967ef.bundle.js → 151.ebeb15de6f8b7ab9ea57.bundle.js} +1 -1
- package/dist/{152.983e59a2db23180043c0.bundle.js → 152.ed9387e19d9cc69953db.bundle.js} +1 -1
- package/dist/{154.22ae6aff7fe460027daa.bundle.js → 154.a008e16c56c63f25799f.bundle.js} +1 -1
- package/dist/{157.38bad4f830ac13ce67ea.bundle.js → 157.800a7154e719650d7925.bundle.js} +1 -1
- package/dist/{159.5d7cf90588f9c5137bd4.bundle.js → 159.f87835a57d2af1de4121.bundle.js} +1 -1
- package/dist/{161.662c70da741c4c08294f.bundle.js → 161.476f62c4922a9d145220.bundle.js} +1 -1
- package/dist/{164.df720a2fb532855bcde6.bundle.js → 164.9d468fabae7dd09d9f97.bundle.js} +1 -1
- package/dist/{166.b614de49dd8adb76fde1.bundle.js → 166.65286425804ad7dfe2e9.bundle.js} +1 -1
- package/dist/17.0b74a9a8282301a807bb.bundle.js +3 -0
- package/dist/{170.385bb3200ee09c47c000.bundle.js → 170.0eb13b2a619662203972.bundle.js} +1 -1
- package/dist/{171.184d9a12e0cf9519c827.bundle.js → 171.689e5189a68b5d712f1d.bundle.js} +1 -1
- package/dist/{172.d8f671325bd29e884201.bundle.js → 172.24bac3c88732b6bc72f9.bundle.js} +1 -1
- package/dist/{173.78bd9f9e0ff8da161b86.bundle.js → 173.c0b3e63eb4c2b828a1b6.bundle.js} +1 -1
- package/dist/{179.a0658dde26d40cc551a4.bundle.js → 179.fe1f4ff6cae23c056538.bundle.js} +1 -1
- package/dist/{18.2077eb251d5717e42b81.bundle.js → 18.5ec8d8bedc5900dd9987.bundle.js} +1 -1
- package/dist/{185.b43d67454fe9670babfd.bundle.js → 185.66708cd7a879a4eae697.bundle.js} +1 -1
- package/dist/{187.26f73c395e452f270e87.bundle.js → 187.7f30c4e08e34208a39e0.bundle.js} +1 -1
- package/dist/{188.4716aa48c85e0ff370e7.bundle.js → 188.532c781e1ef597c73e67.bundle.js} +1 -1
- package/dist/{19.52b4c1de58ec36914bb1.bundle.js → 19.8c07889227bc39cae000.bundle.js} +1 -1
- package/dist/{196.2bf06aaaafc2ecab7961.bundle.js → 196.49c3671b0ba069dc7ef1.bundle.js} +1 -1
- package/dist/{197.19545b0f86ed444c5008.bundle.js → 197.d90b1f3a6fa0fa5c8e71.bundle.js} +1 -1
- package/dist/198.bc0d8a5bcd304f288f29.bundle.js +1 -0
- package/dist/{199.75d147a9bc01afb59c63.bundle.js → 199.91ebfd371cf7bf6f5c4f.bundle.js} +1 -1
- package/dist/{2.3711dbb764ce2c3fc2f7.bundle.js → 2.f1a215f762fbc9060ff8.bundle.js} +2 -2
- package/dist/{20.36cd60fa318ac7b1a43a.bundle.js → 20.b7b67f324565878b78fb.bundle.js} +1 -1
- package/dist/200.d51dae4d7a098dbdf4fe.bundle.js +1 -0
- package/dist/{202.668dfd8cecebde7061f9.bundle.js → 202.8edcdbed3861f93e2b9c.bundle.js} +1 -1
- package/dist/{204.9dac131aa317165ba9a7.bundle.js → 204.54e15792c8c1c60b49d6.bundle.js} +1 -1
- package/dist/{205.451e6f39e33b3cc72a5c.bundle.js → 205.a9ec4a6ed99007eade40.bundle.js} +1 -1
- package/dist/{206.43524e0451383b0215ad.bundle.js → 206.b8ea895d33805498670e.bundle.js} +1 -1
- package/dist/{207.430258f4efcfccded98c.bundle.js → 207.a7009c479f89c28c2b35.bundle.js} +1 -1
- package/dist/{21.2663c286d350b0bf7c8a.bundle.js → 21.f3e03a35598e574d1088.bundle.js} +1 -1
- package/dist/{210.3d0a1742ccaa5f1fdfd5.bundle.js → 210.0e1ac9a13cec02b2e00f.bundle.js} +1 -1
- package/dist/212.578f5adf8b5c02e176a9.bundle.js +1 -0
- package/dist/213.bf39c553daaec0e3a17d.bundle.js +1 -0
- package/dist/{219.061bf2b3a5ecf6ac0e61.bundle.js → 219.42d2968dff17a1cb197e.bundle.js} +1 -1
- package/dist/{22.ace61c1bd42d5c865b4d.bundle.js → 22.ca2ee125533414af6b44.bundle.js} +1 -1
- package/dist/222.a98f48c0726553a3e27f.bundle.js +1 -0
- package/dist/{224.e77d8a29fc9a2e7e60b2.bundle.js → 224.30c6fb78c4913479a4fb.bundle.js} +1 -1
- package/dist/226.d41bd3bd54d68a488d00.bundle.js +1 -0
- package/dist/{227.46ca1e93a7479ea2fcbd.bundle.js → 227.987d372a187ed7979252.bundle.js} +1 -1
- package/dist/{228.105d7ca663c25cda7ebe.bundle.js → 228.d4601448c9799d1c6538.bundle.js} +1 -1
- package/dist/{229.08a6b6f0bfe77da1b4d7.bundle.js → 229.61c97977e7032772ecb4.bundle.js} +1 -1
- package/dist/{23.7d18bac6193feac8a5e8.bundle.js → 23.352eec217c0d24b98b14.bundle.js} +1 -1
- package/dist/{230.e49359dc83211b3315e2.bundle.js → 230.cb819039e67a93a34541.bundle.js} +1 -1
- package/dist/{231.58f82a3be2b50c54fbcc.bundle.js → 231.f60b94ce332af52008aa.bundle.js} +1 -1
- package/dist/{232.fed686e4c4a9454b382f.bundle.js → 232.1d6fb6e62d8fc62ea10a.bundle.js} +1 -1
- package/dist/{233.601a61a1093f3670f097.bundle.js → 233.dbe5dc7cf2503ca5c591.bundle.js} +1 -1
- package/dist/{234.0b93d2f6c9b1db7a00f6.bundle.js → 234.50f38ed9c15d7485e98e.bundle.js} +1 -1
- package/dist/{235.5cc2efc519264969383a.bundle.js → 235.36eea53474e198ed9f8e.bundle.js} +1 -1
- package/dist/{236.798401103f46879ea730.bundle.js → 236.d0119bc798c924cfae70.bundle.js} +1 -1
- package/dist/{237.f8ad3d698e5fb96d4c1c.bundle.js → 237.d115baad2682f050b642.bundle.js} +1 -1
- package/dist/{238.0cb93188eb64d6f8e3df.bundle.js → 238.98486ccd2b7ee258fcc4.bundle.js} +1 -1
- package/dist/{239.6a04a354e625842e91cc.bundle.js → 239.8c68b3f9d15a13a5da0b.bundle.js} +1 -1
- package/dist/{24.5c4996f957ba9ae4d809.bundle.js → 24.79bd905f69d00f38ce5a.bundle.js} +1 -1
- package/dist/{242.be906dcc6493f539ca0d.bundle.js → 242.3a73c867bf57d3fbb810.bundle.js} +1 -1
- package/dist/{243.92b1fd980f1513069c9b.bundle.js → 243.1973d7431d7a17936443.bundle.js} +1 -1
- package/dist/{248.a67e776376d17a767bd8.bundle.js → 248.ada296e9a8a5456816fa.bundle.js} +1 -1
- package/dist/{25.8b3e983ca8429c150dc0.bundle.js → 25.600e8bbf7fc20af9e673.bundle.js} +1 -1
- package/dist/{250.528eb249c56e14ce98b0.bundle.js → 250.551ab6039ac308b37046.bundle.js} +1 -1
- package/dist/{251.f79eee893df671c5c8c4.bundle.js → 251.c50beffac4a15fcd6cc4.bundle.js} +1 -1
- package/dist/{253.ba99c36579045faadc01.bundle.js → 253.cacce88991f3565ccbc5.bundle.js} +1 -1
- package/dist/{254.9376bfaf23066b62837a.bundle.js → 254.6f2f418d35f273d36d46.bundle.js} +1 -1
- package/dist/{255.8ad2d7b316b6bafc3f5b.bundle.js → 255.440b872b6108a6ccdbca.bundle.js} +1 -1
- package/dist/{256.7285991fc8725d0fe430.bundle.js → 256.5299aff146bff9106694.bundle.js} +1 -1
- package/dist/{257.752d39ac6910f9ed1260.bundle.js → 257.edeb2160403986002b6a.bundle.js} +1 -1
- package/dist/{258.90c8e33fc740257eed50.bundle.js → 258.5e948ed7fb4ad5b044b9.bundle.js} +1 -1
- package/dist/{26.5024e9e0b0d117e2a341.bundle.js → 26.a46725dccee91696a0ba.bundle.js} +1 -1
- package/dist/{260.cde0af67fbcd215f5e58.bundle.js → 260.0ef916c69b120f308964.bundle.js} +1 -1
- package/dist/{261.f1ead7c90969bc828f4f.bundle.js → 261.225137d2ad99664d6161.bundle.js} +1 -1
- package/dist/262.c9a141390f2ea8b03a0f.bundle.js +1 -0
- package/dist/{263.ffd7edf1da0e4409bd42.bundle.js → 263.ca7df4aba7e4f945ad36.bundle.js} +1 -1
- package/dist/{264.3bdbc783af6edbdd538e.bundle.js → 264.a03e17d70d78681e1891.bundle.js} +1 -1
- package/dist/{265.8ac45ee22b80c188889b.bundle.js → 265.74666bb6329431145ee6.bundle.js} +1 -1
- package/dist/{266.23460f9b26290c9adb50.bundle.js → 266.c313c81618050f779d0a.bundle.js} +1 -1
- package/dist/{267.3df0c88507f26a90cc69.bundle.js → 267.1615e2999c584ba47a3f.bundle.js} +1 -1
- package/dist/{268.b305ad9d5baac291754e.bundle.js → 268.4537af5084595364571e.bundle.js} +1 -1
- package/dist/{27.fbb998a4888f0f4295c1.bundle.js → 27.6f188fed594aabd1b602.bundle.js} +1 -1
- package/dist/{272.dd269d976a76841da54f.bundle.js → 272.7046c61a75b544baf99b.bundle.js} +1 -1
- package/dist/28.c11269f1bfdea632cc8c.bundle.js +1 -0
- package/dist/29.9e82fddb3191a1d492ef.bundle.js +1 -0
- package/dist/299.6bc38539ac3a1f688515.bundle.js +1 -1
- package/dist/301.311927a5091e698dcfed.bundle.js +1 -1
- package/dist/302.07e63f56f579a56c5ea0.bundle.js +1 -1
- package/dist/303.0cc447af82c7337dc639.bundle.js +1 -1
- package/dist/{31.1d6415d6f463dab162d8.bundle.js → 31.fb4f5161b4a6772d5070.bundle.js} +1 -1
- package/dist/{32.1f92c98c110daadf1ec2.bundle.js → 32.d8891b8f8b38d373d766.bundle.js} +1 -1
- package/dist/{33.b2c2d0617e855dd250da.bundle.js → 33.2f0f674804db0b6e1285.bundle.js} +1 -1
- package/dist/332.218235e77c873ac2a107.bundle.js +1 -0
- package/dist/{34.84fcb0fcae9fba7e6029.bundle.js → 34.3664a756f3a6545525cb.bundle.js} +1 -1
- package/dist/{36.313458d23bab244aec86.bundle.js → 36.fd1ab27926210be8ab74.bundle.js} +1 -1
- package/dist/{37.d422daefa5aea8d24f83.bundle.js → 37.a13e60850a9a07c446dc.bundle.js} +1 -1
- package/dist/{38.200f6422de3b04092332.bundle.js → 38.f722999a96d03d283e5d.bundle.js} +1 -1
- package/dist/{39.ca4712ef35555f43c398.bundle.js → 39.a871b7027a2a298b4299.bundle.js} +1 -1
- package/dist/{4.4583856334b5c45de0b8.bundle.js → 4.f801e3f2505057b5fe87.bundle.js} +1 -1
- package/dist/{40.c917a4758188c8f12038.bundle.js → 40.2209efb6cf9a445aaf72.bundle.js} +1 -1
- package/dist/{41.b87bb5591f3476d51e8a.bundle.js → 41.2c9a2d3442452650eb05.bundle.js} +1 -1
- package/dist/42.c1055d3f77e831a0feee.bundle.js +1 -0
- package/dist/{43.4ae3e7ca11928eae1023.bundle.js → 43.f3516933e9fc7c240588.bundle.js} +1 -1
- package/dist/{44.4d3b69418a18993629a8.bundle.js → 44.ae510f5df386fbbebef2.bundle.js} +1 -1
- package/dist/{48.564c6cc51b0eccfee2d4.bundle.js → 48.3c991adc332749c3acdd.bundle.js} +1 -1
- package/dist/{49.adeafb17af41fd50841c.bundle.js → 49.8889b00d2203095c3a93.bundle.js} +1 -1
- package/dist/{5.4f4fe8af5b9896eddd24.bundle.js → 5.4dc4c9e2cc7f47eebc6d.bundle.js} +1 -1
- package/dist/{50.cc25f013eb1fc2dc1f2e.bundle.js → 50.367ae07d769401becd85.bundle.js} +1 -1
- package/dist/51.5f93e26d33e6f8276243.bundle.js +1 -0
- package/dist/{52.2e06c87754b19442ac3b.bundle.js → 52.d0576a9b8e77887a0256.bundle.js} +1 -1
- package/dist/{53.7543d75d249557907e36.bundle.js → 53.755b81d1c2a1a4996ead.bundle.js} +1 -1
- package/dist/{54.71c442d84db314d41d11.bundle.js → 54.d121d14b8519ccfbcb89.bundle.js} +1 -1
- package/dist/{57.676d0e792330df7ffbe7.bundle.js → 57.4af71143d20ef8319653.bundle.js} +1 -1
- package/dist/{58.236f7977ecc75f747aa5.bundle.js → 58.69b21edd46a707e2b7a4.bundle.js} +1 -1
- package/dist/59.cd0020e8e69a551f3ce7.bundle.js +1 -0
- package/dist/{6.34674986cb4e77c6b0d4.bundle.js → 6.6cb08e9e9ad072cbfc81.bundle.js} +1 -1
- package/dist/60.c1d4a6e7b7db06eb5cf0.bundle.js +1 -0
- package/dist/{61.b759e99f9e72bac48cfa.bundle.js → 61.98a3ef4ed5c339daddb8.bundle.js} +1 -1
- package/dist/{62.c289ae284ec879c946ba.bundle.js → 62.d8e356c03ac8411adbc1.bundle.js} +1 -1
- package/dist/{63.9b5ffdb27ce461f8cf7a.bundle.js → 63.8e37fba90bde83bd2f3f.bundle.js} +1 -1
- package/dist/{64.ea1464e7f39d938a28da.bundle.js → 64.6a6aa6434a66542efffa.bundle.js} +1 -1
- package/dist/{65.3444c4d61c216823833e.bundle.js → 65.6941c78bf1dc89a30b9f.bundle.js} +1 -1
- package/dist/{66.b5fcdd2fbe8ded07e009.bundle.js → 66.b0e1523c5ffaef2e7332.bundle.js} +1 -1
- package/dist/{67.2df05bfc7c6eb11f6679.bundle.js → 67.2e0c784b7da674617bbb.bundle.js} +1 -1
- package/dist/{68.40364fa00405d6b28a8b.bundle.js → 68.7b133326e3a06d04bde1.bundle.js} +1 -1
- package/dist/{7.c327ca027edc25b31517.bundle.js → 7.ee0f4f4648f8fc3ce108.bundle.js} +1 -1
- package/dist/{70.a18ec2af81812b60bb95.bundle.js → 70.829438eff9c2658951c2.bundle.js} +1 -1
- package/dist/{71.7ee7dee93067f3d36793.bundle.js → 71.e62a381e89828b1c6313.bundle.js} +1 -1
- package/dist/{72.c059cbcba3e5f0bfe107.bundle.js → 72.bc7fc2aaf3a8e8ec1c41.bundle.js} +1 -1
- package/dist/{74.ffdf57382d65ab0dbc23.bundle.js → 74.79caa682c1fb91f0cba7.bundle.js} +1 -1
- package/dist/{81.0e27687af29eb1b82700.bundle.js → 81.c8d004888156470c3aad.bundle.js} +1 -1
- package/dist/{82.415f6493734758df5aad.bundle.js → 82.45eb346dc80bc3d07b7b.bundle.js} +1 -1
- package/dist/{83.c788068307a6d64d6d6f.bundle.js → 83.d34173500de6f79f117d.bundle.js} +1 -1
- package/dist/{84.99b0ac9496b5c7e59e62.bundle.js → 84.bd622caf3a67cf0911ac.bundle.js} +1 -1
- package/dist/{85.09cfafbdbc1bffbd63f4.bundle.js → 85.9cb089f63b89d8e7d4b8.bundle.js} +1 -1
- package/dist/{86.884ec67e4551c960f3b1.bundle.js → 86.4693b1e6a0732bdd10ab.bundle.js} +1 -1
- package/dist/{87.c469f6a1a130ffff1f20.bundle.js → 87.8c703c24e6940c7c322c.bundle.js} +1 -1
- package/dist/{88.58a884d3efe21c66f8e5.bundle.js → 88.d5d55f2a585edc6ca23c.bundle.js} +1 -1
- package/dist/{89.34e7be33a5ae0a624c69.bundle.js → 89.73e31db425e7bdd57694.bundle.js} +1 -1
- package/dist/{9.caddc64677d9dbe3315c.bundle.js → 9.41a5f9b1f94054ff21b4.bundle.js} +1 -1
- package/dist/{90.46b46b644b4e37353e3f.bundle.js → 90.677903cb383d54b99bb3.bundle.js} +1 -1
- package/dist/{91.af341cad628a3022d2ea.bundle.js → 91.3f0a70d1f461d707733a.bundle.js} +1 -1
- package/dist/{93.f21d65c2d3cc2f4ae9fc.bundle.js → 93.c7ffdd12d101f0759f50.bundle.js} +1 -1
- package/dist/{94.7e7c2cfe70ffe6fd9aff.bundle.js → 94.ef149157cec71e8c6727.bundle.js} +1 -1
- package/dist/95.481f9941f7c5102fd02a.bundle.js +1 -0
- package/dist/96.963fb705cf41d4813f5f.bundle.js +1 -0
- package/dist/{97.34b9b6aa091f931616dd.bundle.js → 97.885a73aa0360fd138b06.bundle.js} +1 -1
- package/dist/{98.8f62e39668710616369c.bundle.js → 98.4682c01b8beedb7ee99f.bundle.js} +1 -1
- package/dist/{99.d60610eca4f63a2d842b.bundle.js → 99.15cb2b4dc8cf54d6c473.bundle.js} +1 -1
- package/dist/{bundle.6cfbafeeae85b9478767.bundle.js → bundle.b2cc5d5363ad5d9e12ec.bundle.js} +6 -6
- package/dist/css/aclmanagement.css +17 -3
- package/dist/i18n/locale-en.json +1 -1
- package/dist/i18n/locale-fr.json +1 -1
- package/dist/index.html +3 -3
- package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
- package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
- package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
- package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +1 -1
- package/dist/js/angular/security/templates/user.html +6 -5
- package/dist/license-checker.json +2 -2
- package/dist/pages/aclmanagement.html +117 -75
- package/dist/pages/autocomplete.html +1 -1
- package/dist/pages/choose-repository-type.html +1 -1
- package/dist/pages/cluster-management/clusterInfo.html +3 -3
- package/dist/pages/create-index.html +1 -1
- package/dist/pages/dependencies.html +1 -1
- package/dist/pages/domainRangeInfo.html +2 -2
- package/dist/pages/edit.html +1 -1
- package/dist/pages/explore.html +1 -1
- package/dist/pages/export.html +1 -1
- package/dist/pages/find.html +1 -1
- package/dist/pages/graph-config/saveGraphConfig.html +8 -8
- package/dist/pages/graphs-visualizations.html +7 -7
- package/dist/pages/guides.html +1 -1
- package/dist/pages/import.html +2 -2
- package/dist/pages/jdbc-create.html +1 -1
- package/dist/pages/monitor/backup-and-restore.html +1 -1
- package/dist/pages/monitor/queries.html +1 -1
- package/dist/pages/monitor/resources.html +1 -1
- package/dist/pages/namespaces.html +2 -2
- package/dist/pages/plugins.html +1 -1
- package/dist/pages/rdfClassHierarchyInfo.html +7 -7
- package/dist/pages/rdfrank.html +2 -2
- package/dist/pages/repositories.html +1 -1
- package/dist/pages/repository.html +1 -1
- package/dist/pages/similarity-indexes.html +1 -1
- package/dist/pages/sparql-editor.html +1 -1
- package/dist/pages/sparql-template-create.html +1 -1
- package/dist/pages/ux-test1.html +2 -2
- package/dist/pages/webapi.html +2 -2
- package/dist/res/swagger5/index.html +12 -12
- package/package.json +1 -1
- package/dist/13.46f3f20794437de46112.bundle.js +0 -1
- package/dist/148.8cc53c56e4cfe52cc92a.bundle.js +0 -1
- package/dist/15.fd05e61df603fc290366.bundle.js +0 -1
- package/dist/17.d76bdb8a1fd2fb6bf39e.bundle.js +0 -3
- package/dist/198.7b5520ca25ef6f3bca16.bundle.js +0 -1
- package/dist/200.08df0fdb2ee9d5c9ea2a.bundle.js +0 -1
- package/dist/212.ad2810e7d45a4a0f2f6b.bundle.js +0 -1
- package/dist/213.a4fa1dce2f11e7639c4a.bundle.js +0 -1
- package/dist/222.096e388bee0aedcf8c83.bundle.js +0 -1
- package/dist/226.78238186d89dcee0447e.bundle.js +0 -1
- package/dist/262.375484e2c528734f6df0.bundle.js +0 -1
- package/dist/28.63d28184982aeb5df3ee.bundle.js +0 -1
- package/dist/29.8f944d441820bd09c363.bundle.js +0 -1
- package/dist/332.37b65270a39c5a3aac10.bundle.js +0 -1
- package/dist/42.be5e7a9ec3ebd415f51c.bundle.js +0 -1
- package/dist/51.0b18a3223a6fe5f40456.bundle.js +0 -1
- package/dist/59.77fc1be965b8563d6119.bundle.js +0 -1
- package/dist/60.bccfde27f9cbe4a5eac5.bundle.js +0 -1
- package/dist/95.418350fd905302d0eb62.bundle.js +0 -1
- package/dist/96.7dccce2eb20a3f43d706.bundle.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[34,79,217,218,255],{137:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityResultType",(function(){return r}));const r={TERM_RESULT:"termResult",DOCUMENT_RESULT:"documentResult",ENTITY_RESULT:"entityResult",isResultDocumentType:e=>r.DOCUMENT_RESULT===e,isResultTermType:e=>r.TERM_RESULT===e}},138:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilaritySearch",(function(){return a}));var r=t(86);class a{constructor(){this.type=r.SimilaritySearchType.SEARCH_TERM,this.predicate="",this.termOrSubject=""}isSearchAnalogicalType(){return r.SimilaritySearchType.isSearchAnalogicalType(this.type)}isSearchTermType(){return r.SimilaritySearchType.isSearchTermType(this.type)}isSearchEntityType(){return r.SimilaritySearchType.isSearchEntityType(this.type)}isSearchEntityPredicateType(){return r.SimilaritySearchType.isSearchEntityPredicateType(this.type)}isSearchDocumentType(){return r.SimilaritySearchType.isSearchDocumentType(this.type)}}},236:function(e,i){angular.module("graphdb.framework.rest.similarity.service",[]).factory("SimilarityRestService",t),t.$inject=["$http","$repositories"];function t(e){return{getIndexes:function(){return e.get("rest/similarity")},getSearchQueries:function(){return e.get("rest/similarity/config")},rebuildIndex:function(e){return i("PUT",e.name,e.options,e.selectQuery,e.searchQuery,e.analogicalQuery,e.stopList,e.infer,e.sameAs,e.type)},deleteIndex:function(i){return e.delete("rest/similarity?name="+i.name)},createIndex:i,getSamples:function(){return e.get("rest/similarity/samples")},getQuery:function(i){return e.get("rest/similarity/query",{params:{name:i.indexName,options:i.indexOptions,stopList:i.indexStopList,selectQuery:i.query,infer:i.queryInference,sameAs:i.querySameAs,type:i.viewType,analyzer:i.indexAnalyzer}})},saveSearchQuery:function(i){return e({method:"put",url:"rest/similarity/search-query",data:i})}};function i(i,t,r,a,s,c,n,l,o,y,p){return e({method:i,url:"rest/similarity",noCancelOnRouteChange:!0,data:{name:t,options:r,selectQuery:a,stopList:n,infer:l,sameAs:o,type:y,analyzer:p,searchQuery:s,analogicalQuery:c}})}}},238:function(e,i,t){"use strict";t.r(i);var r=t(0),a=t(86),s=t(137),c=t(74),n=t(72),l=t(107),o=t(138),y=t(67);function p(e,i,t,p,u,S,d,m,h,T,g,R,x,I){const E="http://www.ontotext.com/graphdb/similarity/",A="http://www.ontotext.com/graphdb/similarity/psi/",b=A+"any";e.pluginName="similarity",e.pluginIsActive=!0,e.isLoading=!1,e.selectedSimilarityIndex=void 0,e.similarityIndexStatus=c.SimilarityIndexStatus,e.similarityIndexType=n.SimilarityIndexType,e.similaritySearchType=a.SimilaritySearchType,e.searchType=a.SimilaritySearchType.SEARCH_TERM,e.similarityResultType=s.SimilarityResultType,e.resultType=s.SimilarityResultType.TERM_RESULT,e.info=g,e.isGraphDBRepository=void 0,e.canEditRepo=e.canWriteActiveRepo(),e.loadSimilarityIndexesTimer=void 0,e.loadSimilarityIndexes=()=>{e.isGraphDBRepository&&e.pluginIsActive&&h.getIndexes().success(i=>e.similarityIndexes=Object(l.mapIndexesResponseToSimilarityIndex)(i)).error(e=>t.error(getError(e),x.instant("similarity.could.not.get.indexes.error")))},e.reloadSimilarityIndexes=()=>{e.loadSimilarityIndexes(),e.loadSimilarityIndexesTimer||(e.loadSimilarityIndexesTimer=i((function(){e.$broadcast("checkIsActive"),"false"!==$("#indexes-table").attr("aria-expanded")&&e.loadSimilarityIndexes()}),5e3))},e.goToSimilarityIndex=i=>{(i.isBuiltStatus()||i.isOutdatedStatus()||i.isRebuildingStatus())&&(e.empty=!0,e.selectedSimilarityIndex!==i&&(e.lastSearch=void 0,e.selectedSimilarityIndex=i),i.isTextType()?e.searchType=a.SimilaritySearchType.SEARCH_TERM:i.isPredicationType()&&(e.searchType=a.SimilaritySearchType.SEARCH_ENTITY),(i.isTextType()||i.isPredicationType())&&$("#indexes-table").collapse("hide"))},e.performSearch=(i,r,a,s,c)=>{e.isLoading=!0,M(a,r);const n=q(i,r,a,s,c);I.getQueryResult(p.getActiveRepository(),n,"application/x-sparqlstar-results+json, application/sparql-results+json;q=0.9, */*;q=0.8").then(e=>H(e)).catch(e=>t.error(getError(e.data),x.instant("similarity.get.resource.error"))).finally(()=>e.isLoading=!1)},e.viewSearchQuery=()=>{let i;i=e.lastSearch.isSearchAnalogicalType()?e.selectedSimilarityIndex.analogicalQuery?e.selectedSimilarityIndex.analogicalQuery:e.searchQueries.analogical:e.selectedSimilarityIndex.searchQuery?e.selectedSimilarityIndex.searchQuery:e.searchQueries[e.selectedSimilarityIndex.type];let t=[],r="";t=i.match(/[a-zA-Z0-9-]+:<http:\/\/www.ontotext.com\/graphdb\/similarity\/instance\/>/),r=null==t?"similarity-index":t[0].substring(0,t[0].indexOf(":"));const s=i.replace("?index",r+":"+e.selectedSimilarityIndex.name).replace("?query",e.lastSearch.termOrSubject).replace("?searchType",(e.selectedSimilarityIndex.isTextType()?":":"psi:")+(e.lastSearch.isSearchEntityPredicateType()?a.SimilaritySearchType.SEARCH_ENTITY:e.lastSearch.type)).replace("?resultType",e.selectedSimilarityIndex.isTextType()?":"+e.resultType:"psi:entityResult").replace("?parameters",Q(e.searchParameters?e.searchParameters:"")).replace("?psiPredicate",e.lastSearch.predicate?C(e.lastSearch.predicate):C(b)).replace("?givenSubject",C(e.analogicalSubject)).replace("?givenObject",C(e.analogicalObject)).replace("?searchSubject",C(e.searchSubject));m.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:()=>s}})},e.deleteSimilarityIndex=i=>{d.openSimpleModal({title:x.instant("common.confirm"),message:x.instant("similarity.delete.index.warning",{name:i.name}),warning:!0}).result.then((function(){h.deleteIndex(i).then(()=>e.loadSimilarityIndexes()).catch(e=>t.error(getError(e)))}))},e.viewCreateQuery=e=>{h.getQuery({indexName:e.name,indexOptions:e.options,query:e.selectQuery,indexStopList:e.stopList,queryInference:e.infer,querySameAs:e.sameAs,viewType:e.type,indexAnalyzer:e.analyzer}).success(e=>{m.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:()=>e}})})},e.rebuildIndex=i=>{i.searchQuery||(i.searchQuery=i.type?e.searchQueries[i.type]:e.searchQueries.text),d.openSimpleModal({title:x.instant("common.confirm"),message:Object(r.decodeHTML)(x.instant("similarity.rebuild.index.warning",{name:i.name})),warning:!0}).result.then(()=>{i.status=c.SimilarityIndexStatus.REBUILDING,h.rebuildIndex(i).catch(e=>t.error(getError(e)))})},e.setPluginIsActive=i=>{e.pluginIsActive=i},e.encodeURIComponent=e=>encodeURIComponent(e),e.copyToClipboardResult=e=>{d.openCopyToClipboardModal(e)},e.trimIRI=e=>_.trim(e,"<>"),e.updateSearchType=i=>{e.searchType=i},e.updateResultType=i=>{e.resultType=i},e.editSimilarityIndex=e=>{f(e)},e.cloneSimilataryIndex=e=>{f(e,!0)},e.setPsiSubject=i=>{e.psiSubject=i},e.setAnalogicalSubject=i=>{e.analogicalSubject=i},e.setAnalogicalObject=i=>{e.analogicalObject=i};const f=(e,i=!1)=>{const t={selectQuery:e.selectQuery,options:e.options,name:e.name,editSearchQuery:!i,infer:e.infer,sameAs:e.sameAs,stopList:e.stopList,type:e.type,analyzer:e.analyzer,searchQuery:e.searchQuery?e.searchQuery:"",analogicalQuery:e.analogicalQuery?e.analogicalQuery:""};S.path("similarity/index/create").search(t)},w=()=>{const i=e.getActiveRepository();i&&e.activeRepository!==i&&(e.canEditRepo=e.canWriteActiveRepo(),e.activeRepository=i,e.isGraphDBRepository=j(),e.isGraphDBRepository&&(u.isLicenseValid()&&e.reloadSimilarityIndexes(),v()))},v=()=>{h.getSearchQueries().success(i=>e.searchQueries=i).error(e=>t.error(getError(e),x.instant("similarity.could.not.get.search.queries.error")))},Q=e=>'"'+e+'"',C=e=>void 0===e||e.startsWith("<<")&&e.endsWith(">>")?e:"<"+e+">",j=()=>e.getActiveRepository()&&!e.isActiveRepoOntopType()&&!e.isActiveRepoFedXType(),L=[];L.push(e.$on("repositoryIsSet",w));e.$on("$destroy",()=>{O(),e.loadSimilarityIndexesTimer&&i.cancel(e.loadSimilarityIndexesTimer)});const O=()=>{L.forEach(e=>e())};L.push(e.$on("autocompleteStatus",()=>{u.isLicenseValid()&&(e.getAutocompletePromise=T.checkAutocompleteStatus())}));L.push(e.$watch("searchType",()=>{e.empty=!0}));const P=e.$watch(e.getActiveRepositoryObject,e=>{e&&(w(),P())}),q=(i,t,r,c,n)=>{const l={query:N(e.lastSearch.type),$index:C("http://www.ontotext.com/graphdb/similarity/instance/"+i.name),$query:e.lastSearch.termOrSubject,$searchType:C((e.selectedSimilarityIndex.isTextType()?E:A)+(a.SimilaritySearchType.isSearchEntityPredicateType(r)?a.SimilaritySearchType.SEARCH_ENTITY:r)),$resultType:C(e.selectedSimilarityIndex.isTextType()?E+c:A+s.SimilarityResultType.ENTITY_RESULT),$parameters:Q(n)};return a.SimilaritySearchType.isSearchEntityPredicateType(r)&&(l.$psiPredicate=e.lastSearch.predicate?C(e.lastSearch.predicate):C(b)),a.SimilaritySearchType.isSearchAnalogicalType(r)&&(e.searchSubject=t,l.$givenSubject=C(e.analogicalSubject),l.$givenObject=C(e.analogicalObject),l.$searchSubject=C(t)),l},M=(i,t)=>{e.lastSearch=new o.SimilaritySearch,e.lastSearch.type=i,a.SimilaritySearchType.isSearchEntityPredicateType(i)&&(e.lastSearch.predicate=t),e.lastSearch.termOrSubject=D(e.lastSearch.type,t,e.psiSubject)},N=i=>{let t;return t=a.SimilaritySearchType.isSearchAnalogicalType(i)?e.selectedSimilarityIndex.analogicalQuery?e.selectedSimilarityIndex.analogicalQuery:e.searchQueries.analogical:e.selectedSimilarityIndex.searchQuery?e.selectedSimilarityIndex.searchQuery:e.searchQueries[e.selectedSimilarityIndex.type],t},D=(e,i,t)=>{let r=i;return r=a.SimilaritySearchType.isSearchEntityPredicateType(e)?t:a.SimilaritySearchType.isSearchTermType(e)?Q(r):C(r),r},H=i=>{e.yasguiConfig={showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showQueryButton:!1,downloadAsOn:!1,showResultInfo:!1,componentId:"similarity-list-component",maxPersistentResponseSize:0,render:y.RenderingMode.YASR,sparqlResponse:i.data}}}angular.module("graphdb.framework.similarity.controllers.list",[]).controller("SimilarityCtrl",p),p.$inject=["$scope","$interval","toastr","$repositories","$licenseService","$location","ModalService","$uibModal","SimilarityRestService","AutocompleteRestService","productInfo","RDF4JRepositoriesRestService","$translate","SparqlRestService"]},326:function(e,i,t){"use strict";t.r(i);t(7),t(28),t(34),t(236),t(238),t(246),t(93);angular.module("graphdb.framework.similarity",["graphdb.framework.core.controllers","graphdb.framework.core.directives","graphdb.framework.rest.similarity.service","graphdb.framework.similarity.controllers.create","graphdb.framework.similarity.controllers.list","graphdb.framework.core.directives.yasgui-component"])},86:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilaritySearchType",(function(){return r}));const r={SEARCH_TERM:"searchTerm",SEARCH_ANALOGICAL:"searchAnalogical",SEARCH_ENTITY:"searchEntity",SEARCH_ENTITY_PREDICATE:"searchEntityPredicate",SEARCH_DOCUMENT:"searchDocumentID",isSearchTermType:e=>r.SEARCH_TERM===e,isSearchAnalogicalType:e=>r.SEARCH_ANALOGICAL===e,isSearchEntityType:e=>r.SEARCH_ENTITY===e,isSearchEntityPredicateType:e=>r.SEARCH_ENTITY_PREDICATE===e,isSearchDocumentType:e=>r.SEARCH_DOCUMENT===e}}}]);
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[34,79,217,218,255],{137:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityResultType",(function(){return r}));const r={TERM_RESULT:"termResult",DOCUMENT_RESULT:"documentResult",ENTITY_RESULT:"entityResult",isResultDocumentType:e=>r.DOCUMENT_RESULT===e,isResultTermType:e=>r.TERM_RESULT===e}},138:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilaritySearch",(function(){return a}));var r=t(86);class a{constructor(){this.type=r.SimilaritySearchType.SEARCH_TERM,this.predicate="",this.termOrSubject=""}isSearchAnalogicalType(){return r.SimilaritySearchType.isSearchAnalogicalType(this.type)}isSearchTermType(){return r.SimilaritySearchType.isSearchTermType(this.type)}isSearchEntityType(){return r.SimilaritySearchType.isSearchEntityType(this.type)}isSearchEntityPredicateType(){return r.SimilaritySearchType.isSearchEntityPredicateType(this.type)}isSearchDocumentType(){return r.SimilaritySearchType.isSearchDocumentType(this.type)}}},235:function(e,i){angular.module("graphdb.framework.rest.similarity.service",[]).factory("SimilarityRestService",t),t.$inject=["$http","$repositories"];function t(e){return{getIndexes:function(){return e.get("rest/similarity")},getSearchQueries:function(){return e.get("rest/similarity/config")},rebuildIndex:function(e){return i("PUT",e.name,e.options,e.selectQuery,e.searchQuery,e.analogicalQuery,e.stopList,e.infer,e.sameAs,e.type)},deleteIndex:function(i){return e.delete("rest/similarity?name="+i.name)},createIndex:i,getSamples:function(){return e.get("rest/similarity/samples")},getQuery:function(i){return e.get("rest/similarity/query",{params:{name:i.indexName,options:i.indexOptions,stopList:i.indexStopList,selectQuery:i.query,infer:i.queryInference,sameAs:i.querySameAs,type:i.viewType,analyzer:i.indexAnalyzer}})},saveSearchQuery:function(i){return e({method:"put",url:"rest/similarity/search-query",data:i})}};function i(i,t,r,a,s,c,n,l,o,y,p){return e({method:i,url:"rest/similarity",noCancelOnRouteChange:!0,data:{name:t,options:r,selectQuery:a,stopList:n,infer:l,sameAs:o,type:y,analyzer:p,searchQuery:s,analogicalQuery:c}})}}},237:function(e,i,t){"use strict";t.r(i);var r=t(0),a=t(86),s=t(137),c=t(74),n=t(72),l=t(107),o=t(138),y=t(67);function p(e,i,t,p,u,S,d,m,h,T,g,R,x,I){const E="http://www.ontotext.com/graphdb/similarity/",A="http://www.ontotext.com/graphdb/similarity/psi/",b=A+"any";e.pluginName="similarity",e.pluginIsActive=!0,e.isLoading=!1,e.selectedSimilarityIndex=void 0,e.similarityIndexStatus=c.SimilarityIndexStatus,e.similarityIndexType=n.SimilarityIndexType,e.similaritySearchType=a.SimilaritySearchType,e.searchType=a.SimilaritySearchType.SEARCH_TERM,e.similarityResultType=s.SimilarityResultType,e.resultType=s.SimilarityResultType.TERM_RESULT,e.info=g,e.isGraphDBRepository=void 0,e.canEditRepo=e.canWriteActiveRepo(),e.loadSimilarityIndexesTimer=void 0,e.loadSimilarityIndexes=()=>{e.isGraphDBRepository&&e.pluginIsActive&&h.getIndexes().success(i=>e.similarityIndexes=Object(l.mapIndexesResponseToSimilarityIndex)(i)).error(e=>t.error(getError(e),x.instant("similarity.could.not.get.indexes.error")))},e.reloadSimilarityIndexes=()=>{e.loadSimilarityIndexes(),e.loadSimilarityIndexesTimer||(e.loadSimilarityIndexesTimer=i((function(){e.$broadcast("checkIsActive"),"false"!==$("#indexes-table").attr("aria-expanded")&&e.loadSimilarityIndexes()}),5e3))},e.goToSimilarityIndex=i=>{(i.isBuiltStatus()||i.isOutdatedStatus()||i.isRebuildingStatus())&&(e.empty=!0,e.selectedSimilarityIndex!==i&&(e.lastSearch=void 0,e.selectedSimilarityIndex=i),i.isTextType()?e.searchType=a.SimilaritySearchType.SEARCH_TERM:i.isPredicationType()&&(e.searchType=a.SimilaritySearchType.SEARCH_ENTITY),(i.isTextType()||i.isPredicationType())&&$("#indexes-table").collapse("hide"))},e.performSearch=(i,r,a,s,c)=>{e.isLoading=!0,M(a,r);const n=q(i,r,a,s,c);I.getQueryResult(p.getActiveRepository(),n,"application/x-sparqlstar-results+json, application/sparql-results+json;q=0.9, */*;q=0.8").then(e=>H(e)).catch(e=>t.error(getError(e.data),x.instant("similarity.get.resource.error"))).finally(()=>e.isLoading=!1)},e.viewSearchQuery=()=>{let i;i=e.lastSearch.isSearchAnalogicalType()?e.selectedSimilarityIndex.analogicalQuery?e.selectedSimilarityIndex.analogicalQuery:e.searchQueries.analogical:e.selectedSimilarityIndex.searchQuery?e.selectedSimilarityIndex.searchQuery:e.searchQueries[e.selectedSimilarityIndex.type];let t=[],r="";t=i.match(/[a-zA-Z0-9-]+:<http:\/\/www.ontotext.com\/graphdb\/similarity\/instance\/>/),r=null==t?"similarity-index":t[0].substring(0,t[0].indexOf(":"));const s=i.replace("?index",r+":"+e.selectedSimilarityIndex.name).replace("?query",e.lastSearch.termOrSubject).replace("?searchType",(e.selectedSimilarityIndex.isTextType()?":":"psi:")+(e.lastSearch.isSearchEntityPredicateType()?a.SimilaritySearchType.SEARCH_ENTITY:e.lastSearch.type)).replace("?resultType",e.selectedSimilarityIndex.isTextType()?":"+e.resultType:"psi:entityResult").replace("?parameters",Q(e.searchParameters?e.searchParameters:"")).replace("?psiPredicate",e.lastSearch.predicate?C(e.lastSearch.predicate):C(b)).replace("?givenSubject",C(e.analogicalSubject)).replace("?givenObject",C(e.analogicalObject)).replace("?searchSubject",C(e.searchSubject));m.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:()=>s}})},e.deleteSimilarityIndex=i=>{d.openSimpleModal({title:x.instant("common.confirm"),message:x.instant("similarity.delete.index.warning",{name:i.name}),warning:!0}).result.then((function(){h.deleteIndex(i).then(()=>e.loadSimilarityIndexes()).catch(e=>t.error(getError(e)))}))},e.viewCreateQuery=e=>{h.getQuery({indexName:e.name,indexOptions:e.options,query:e.selectQuery,indexStopList:e.stopList,queryInference:e.infer,querySameAs:e.sameAs,viewType:e.type,indexAnalyzer:e.analyzer}).success(e=>{m.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:()=>e}})})},e.rebuildIndex=i=>{i.searchQuery||(i.searchQuery=i.type?e.searchQueries[i.type]:e.searchQueries.text),d.openSimpleModal({title:x.instant("common.confirm"),message:Object(r.decodeHTML)(x.instant("similarity.rebuild.index.warning",{name:i.name})),warning:!0}).result.then(()=>{i.status=c.SimilarityIndexStatus.REBUILDING,h.rebuildIndex(i).catch(e=>t.error(getError(e)))})},e.setPluginIsActive=i=>{e.pluginIsActive=i},e.encodeURIComponent=e=>encodeURIComponent(e),e.copyToClipboardResult=e=>{d.openCopyToClipboardModal(e)},e.trimIRI=e=>_.trim(e,"<>"),e.updateSearchType=i=>{e.searchType=i},e.updateResultType=i=>{e.resultType=i},e.editSimilarityIndex=e=>{f(e)},e.cloneSimilataryIndex=e=>{f(e,!0)},e.setPsiSubject=i=>{e.psiSubject=i},e.setAnalogicalSubject=i=>{e.analogicalSubject=i},e.setAnalogicalObject=i=>{e.analogicalObject=i};const f=(e,i=!1)=>{const t={selectQuery:e.selectQuery,options:e.options,name:e.name,editSearchQuery:!i,infer:e.infer,sameAs:e.sameAs,stopList:e.stopList,type:e.type,analyzer:e.analyzer,searchQuery:e.searchQuery?e.searchQuery:"",analogicalQuery:e.analogicalQuery?e.analogicalQuery:""};S.path("similarity/index/create").search(t)},w=()=>{const i=e.getActiveRepository();i&&e.activeRepository!==i&&(e.canEditRepo=e.canWriteActiveRepo(),e.activeRepository=i,e.isGraphDBRepository=j(),e.isGraphDBRepository&&(u.isLicenseValid()&&e.reloadSimilarityIndexes(),v()))},v=()=>{h.getSearchQueries().success(i=>e.searchQueries=i).error(e=>t.error(getError(e),x.instant("similarity.could.not.get.search.queries.error")))},Q=e=>'"'+e+'"',C=e=>void 0===e||e.startsWith("<<")&&e.endsWith(">>")?e:"<"+e+">",j=()=>e.getActiveRepository()&&!e.isActiveRepoOntopType()&&!e.isActiveRepoFedXType(),L=[];L.push(e.$on("repositoryIsSet",w));e.$on("$destroy",()=>{O(),e.loadSimilarityIndexesTimer&&i.cancel(e.loadSimilarityIndexesTimer)});const O=()=>{L.forEach(e=>e())};L.push(e.$on("autocompleteStatus",()=>{u.isLicenseValid()&&(e.getAutocompletePromise=T.checkAutocompleteStatus())}));L.push(e.$watch("searchType",()=>{e.empty=!0}));const P=e.$watch(e.getActiveRepositoryObject,e=>{e&&(w(),P())}),q=(i,t,r,c,n)=>{const l={query:N(e.lastSearch.type),$index:C("http://www.ontotext.com/graphdb/similarity/instance/"+i.name),$query:e.lastSearch.termOrSubject,$searchType:C((e.selectedSimilarityIndex.isTextType()?E:A)+(a.SimilaritySearchType.isSearchEntityPredicateType(r)?a.SimilaritySearchType.SEARCH_ENTITY:r)),$resultType:C(e.selectedSimilarityIndex.isTextType()?E+c:A+s.SimilarityResultType.ENTITY_RESULT),$parameters:Q(n)};return a.SimilaritySearchType.isSearchEntityPredicateType(r)&&(l.$psiPredicate=e.lastSearch.predicate?C(e.lastSearch.predicate):C(b)),a.SimilaritySearchType.isSearchAnalogicalType(r)&&(e.searchSubject=t,l.$givenSubject=C(e.analogicalSubject),l.$givenObject=C(e.analogicalObject),l.$searchSubject=C(t)),l},M=(i,t)=>{e.lastSearch=new o.SimilaritySearch,e.lastSearch.type=i,a.SimilaritySearchType.isSearchEntityPredicateType(i)&&(e.lastSearch.predicate=t),e.lastSearch.termOrSubject=D(e.lastSearch.type,t,e.psiSubject)},N=i=>{let t;return t=a.SimilaritySearchType.isSearchAnalogicalType(i)?e.selectedSimilarityIndex.analogicalQuery?e.selectedSimilarityIndex.analogicalQuery:e.searchQueries.analogical:e.selectedSimilarityIndex.searchQuery?e.selectedSimilarityIndex.searchQuery:e.searchQueries[e.selectedSimilarityIndex.type],t},D=(e,i,t)=>{let r=i;return r=a.SimilaritySearchType.isSearchEntityPredicateType(e)?t:a.SimilaritySearchType.isSearchTermType(e)?Q(r):C(r),r},H=i=>{e.yasguiConfig={showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showQueryButton:!1,downloadAsOn:!1,showResultInfo:!1,componentId:"similarity-list-component",maxPersistentResponseSize:0,render:y.RenderingMode.YASR,sparqlResponse:i.data}}}angular.module("graphdb.framework.similarity.controllers.list",[]).controller("SimilarityCtrl",p),p.$inject=["$scope","$interval","toastr","$repositories","$licenseService","$location","ModalService","$uibModal","SimilarityRestService","AutocompleteRestService","productInfo","RDF4JRepositoriesRestService","$translate","SparqlRestService"]},325:function(e,i,t){"use strict";t.r(i);t(7),t(28),t(34),t(235),t(237),t(245),t(93);angular.module("graphdb.framework.similarity",["graphdb.framework.core.controllers","graphdb.framework.core.directives","graphdb.framework.rest.similarity.service","graphdb.framework.similarity.controllers.create","graphdb.framework.similarity.controllers.list","graphdb.framework.core.directives.yasgui-component"])},86:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilaritySearchType",(function(){return r}));const r={SEARCH_TERM:"searchTerm",SEARCH_ANALOGICAL:"searchAnalogical",SEARCH_ENTITY:"searchEntity",SEARCH_ENTITY_PREDICATE:"searchEntityPredicate",SEARCH_DOCUMENT:"searchDocumentID",isSearchTermType:e=>r.SEARCH_TERM===e,isSearchAnalogicalType:e=>r.SEARCH_ANALOGICAL===e,isSearchEntityType:e=>r.SEARCH_ENTITY===e,isSearchEntityPredicateType:e=>r.SEARCH_ENTITY_PREDICATE===e,isSearchDocumentType:e=>r.SEARCH_DOCUMENT===e}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[36,45,160,162,163],{100:function(e,t,s){"use strict";s.r(t),s.d(t,"ImportParsingSettings",(function(){return r}));class r{constructor(){this.contextLink=void 0,this.preserveBNodeIds=!1,this.failOnUnknownDataTypes=!1,this.verifyDataTypeValues=!1,this.normalizeDataTypeValues=!1,this.failOnUnknownLanguageTags=!1,this.verifyLanguageTags=!1,this.normalizeLanguageTags=!1,this.stopOnError=!0}}},126:function(e,t,s){"use strict";s.r(t),s.d(t,"ImportResource",(function(){return n}));var r=s(68),i=s(100),o=s(77);class n{constructor(e,t){this.hash=t(JSON.stringify(e)),this.name=e?e.name:void 0,this.status=e?e.status:r.ImportResourceStatus.NONE,this.message=e&&e.message?e.message:"",this.context=e&&e.context?e.context:"",this.replaceGraphs=e?e.replaceGraphs:[],this.baseURI=e?e.baseURI:void 0,this.forceSerial=!!e&&e.forceSerial,this.type=e?e.type:void 0,this.format=e?e.format:void 0,this.data=e?e.data:void 0,this.modifiedOn=e?e.lastModified:void 0,this.importedOn=e?e.imported:void 0,this.size=e?e.size:"",this.addedStatements=e?e.addedStatements:0,this.removedStatements=e?e.removedStatements:0,this.numReplacedGraphs=e?e.numReplacedGraphs:0,this.parserSettings=e?e.parserSettings:new i.ImportParsingSettings,this.requestIdHeadersToForward=e?e.requestIdHeadersToForward:void 0}isDirectory(){return o.ImportResourceType.DIRECTORY===this.type}isFile(){return o.ImportResourceType.FILE===this.type||o.ImportResourceType.URL===this.type||o.ImportResourceType.TEXT===this.type}isURL(){return o.ImportResourceType.URL===this.type}isText(){return o.ImportResourceType.TEXT===this.type}}},
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[36,45,160,162,163],{100:function(e,t,s){"use strict";s.r(t),s.d(t,"ImportParsingSettings",(function(){return r}));class r{constructor(){this.contextLink=void 0,this.preserveBNodeIds=!1,this.failOnUnknownDataTypes=!1,this.verifyDataTypeValues=!1,this.normalizeDataTypeValues=!1,this.failOnUnknownLanguageTags=!1,this.verifyLanguageTags=!1,this.normalizeLanguageTags=!1,this.stopOnError=!0}}},126:function(e,t,s){"use strict";s.r(t),s.d(t,"ImportResource",(function(){return n}));var r=s(68),i=s(100),o=s(77);class n{constructor(e,t){this.hash=t(JSON.stringify(e)),this.name=e?e.name:void 0,this.status=e?e.status:r.ImportResourceStatus.NONE,this.message=e&&e.message?e.message:"",this.context=e&&e.context?e.context:"",this.replaceGraphs=e?e.replaceGraphs:[],this.baseURI=e?e.baseURI:void 0,this.forceSerial=!!e&&e.forceSerial,this.type=e?e.type:void 0,this.format=e?e.format:void 0,this.data=e?e.data:void 0,this.modifiedOn=e?e.lastModified:void 0,this.importedOn=e?e.imported:void 0,this.size=e?e.size:"",this.addedStatements=e?e.addedStatements:0,this.removedStatements=e?e.removedStatements:0,this.numReplacedGraphs=e?e.numReplacedGraphs:0,this.parserSettings=e?e.parserSettings:new i.ImportParsingSettings,this.requestIdHeadersToForward=e?e.requestIdHeadersToForward:void 0}isDirectory(){return o.ImportResourceType.DIRECTORY===this.type}isFile(){return o.ImportResourceType.FILE===this.type||o.ImportResourceType.URL===this.type||o.ImportResourceType.TEXT===this.type}isURL(){return o.ImportResourceType.URL===this.type}isText(){return o.ImportResourceType.TEXT===this.type}}},200:function(e,t,s){"use strict";s.r(t),s.d(t,"toImportResource",(function(){return o})),s.d(t,"fileToImportResource",(function(){return n})),s.d(t,"filesToImportResource",(function(){return a}));var r=s(126),i=s(17);const o=e=>{const t=Object(i.md5HashGenerator)();return e.map(e=>new r.ImportResource(e,t))},n=e=>{const t=Object(i.md5HashGenerator)();return new r.ImportResource({name:e.name,size:e.size,type:"file",modifiedOn:e.lastModified,file:e},t)},a=(e,t)=>{const s=Object(i.md5HashGenerator)();return e.map(e=>new r.ImportResource({name:e.name,size:e.size,type:"file",modifiedOn:void 0,file:e,status:t},s))}},68:function(e,t,s){"use strict";s.r(t),s.d(t,"ImportResourceStatus",(function(){return r}));const r={NONE:"NONE",UPLOADING:"UPLOADING",UPLOAD_ERROR:"UPLOAD_ERROR",UPLOADED:"UPLOADED",PENDING:"PENDING",IMPORTING:"IMPORTING",DONE:"DONE",ERROR:"ERROR",INTERRUPTING:"INTERRUPTING"}},77:function(e,t,s){"use strict";s.r(t),s.d(t,"ImportResourceType",(function(){return r}));const r={DIRECTORY:"directory",FILE:"file",URL:"url",TEXT:"text"}}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[37,252,253],{
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[37,252,253],{230:function(e,t){angular.module("graphdb.framework.rest.rdfrank.service",[]).factory("RdfRankRestService",n);function n(e){return{getStatus:function(){return e.get("rest/rdfrank/status")},checkRdfRankPluginEnabled:function(){return e.get("rest/rdfrank/plugin-found")},checkFilteringEnabled:function(){return e.get("rest/rdfrank/filtering")},toggleFiltering:function(t){return e.post("rest/rdfrank/filtering?enabled="+t)},filter:function(t){return e.get("rest/rdfrank/filtering/"+t)},updateFilter:function(t,n){return e.put("rest/rdfrank/filtering/"+t,n)},deleteFilter:function(t,n){return e.delete("rest/rdfrank/filtering/"+t,{data:n,headers:{"Content-Type":"application/json;charset=utf-8"}})},includeExplicit:function(){return e.get("rest/rdfrank/include-explicit")},toggleIncludeExplicit:function(t){return e.post("rest/rdfrank/include-explicit?enabled="+t)},includeImplicit:function(){return e.get("rest/rdfrank/include-implicit")},toggleIncludeImplicit:function(t){return e.post("rest/rdfrank/include-implicit?enabled="+t)},compute:function(){return e.post("rest/rdfrank/compute")},computeIncremental:function(){return e.post("rest/rdfrank/compute-incremental")},interrupt:function(){return e.post("rest/rdfrank/interrupt")}}}n.$inject=["$http"]},316:function(e,t,n){"use strict";n.r(t);n(7),n(28),n(32),n(230),n(480);var r=n(80),i=n(0);angular.module("graphdb.framework.rdfrank",["ngRoute","ngTagsInput","graphdb.framework.utils.uriutils","graphdb.framework.rest.rdfrank.service"]).controller("RDFRankCtrl",["$scope","$rootScope","$interval","toastr","$repositories","$licenseService","$timeout","ClassInstanceDetailsService","UriUtils","RDF4JRepositoriesRestService","RdfRankRestService","$translate",function(e,t,n,a,o,c,s,u,l,d,g,p){let f;function m(){f&&n.cancel(f)}e.pluginName="rdfrank",e.setPluginIsActive=function(t){e.pluginIsActive=t};const h=function(){g.getStatus().success((function(t){e.currentRankStatus=t})).error((function(e){a.error(getError(e))}))};e.checkForPlugin=function(){e.pluginFound=!1,e.setLoader(!0),g.checkRdfRankPluginEnabled().success((function(t){e.pluginFound=!0===t,e.pluginFound?(d.getNamespaces(o.getActiveRepository()).then(r.mapNamespacesResponse).then(t=>{e.namespaces=t}).catch(e=>{const t=getError(e);a.error(t,p.instant("error.getting.namespaces.for.repo"))}),h(),v(),T()):e.loading=!1})).error((function(e){a.error(getError(e))})).finally((function(){e.setLoader(!1)}))};const v=function(){g.checkFilteringEnabled().success((function(t){e.filteringEnabled=t})).error((function(e){a.error(getError(e))}))},T=function(){Object.values(e.filterLists).forEach((function(e){g.filter(e.predicate).success((function(t){return e.elements=t})).error((function(e){a.error(getError(e))}))})),g.includeExplicit().success((function(t){e.includeExplicit=t})).error((function(e){a.error(getError(e))})),g.includeImplicit().success((function(t){e.includeImplicit=t})).error((function(e){a.error(getError(e))}))};e.rdfStatus={CANCELED:"CANCELED",COMPUTED:"COMPUTED",COMPUTING:"COMPUTING",EMPTY:"EMPTY",ERROR:"ERROR",OUTDATED:"OUTDATED",CONFIG_CHANGED:"CONFIG_CHANGED"},e.filterLists={INCLUDED_PREDICATES:{name:"Included Predicates",predicate:"includedPredicates",placeholderKey:"rdfrank.include.predicates",fieldNameKey:"rdfrank.include.label"},INCLUDED_GRAPHS:{name:"Included Graphs",predicate:"includedGraphs",placeholderKey:"rdfrank.include.graphs",fieldNameKey:"rdfrank.include.label"},EXCLUDED_PREDICATES:{name:"Excluded Predicates",predicate:"excludedPredicates",placeholderKey:"rdfrank.exclude.predicates",fieldNameKey:"rdfrank.exclude.label"},EXCLUDED_GRAPHS:{name:"Excluded Graphs",predicate:"excludedGraphs",placeholderKey:"rdfrank.exclude.graphs",fieldNameKey:"rdfrank.exclude.label"}},e.setLoader=function(t,n){s.cancel(e.loaderTimeout),t?e.loaderTimeout=s((function(){e.loader=t,e.loaderMessage=n}),300):e.loader=!1},e.getLoaderMessage=function(){return e.loaderMessage||p.instant("common.loading")},e.computeRank=function(){e.setLoader(!0,p.instant("rdfrank.full.computation")),g.compute().success((function(){e.currentRankStatus=e.rdfStatus.COMPUTING})).error((function(e){a.error(getError(e))})).finally((function(){e.setLoader(!1)}))},e.computeIncrementalRank=function(){e.setLoader(!0,p.instant("rdfrank.incremental.computation")),g.computeIncremental().success((function(){e.currentRankStatus=e.rdfStatus.COMPUTING})).error((function(e){a.error(getError(e))})).finally((function(){e.setLoader(!1)}))},e.interruptComputation=function(){e.setLoader(!0,p.instant("index.interrupt")),g.interrupt().success((function(){h()})).error((function(e){a.error(getError(e))})).finally((function(){e.setLoader(!1)}))},e.getDegradedReason=function(){return o.getDegradedReason()},e.$on("repositoryIsSet",(function(){m(),c.isLicenseValid()&&o.getActiveRepository()&&!o.isActiveRepoOntopType()&&!o.isActiveRepoFedXType()&&(e.checkForPlugin(),y())})),e.toggleFiltering=function(){g.toggleFiltering(!e.filteringEnabled).success((function(){h(),v(),T()})).error((function(e){a.error(getError(e))})).finally((function(){e.setLoader(!1)}))},e.toggleIncludeExplicit=function(){g.toggleIncludeExplicit(!e.includeExplicit).success((function(){h(),T()})).error((function(e){a.error(getError(e))})).finally((function(){e.setLoader(!1)}))},e.toggleIncludeImplicit=function(){g.toggleIncludeImplicit(!e.includeImplicit).success((function(){h(),T()})).error((function(e){a.error(getError(e))})).finally((function(){e.setLoader(!1)}))};e.addToList=function(t,n){let r=n.text.toString();if(r=l.expandPrefix(r,e.namespaces),l.isValidIri(n,r)&&""!==r)!function(e,t){const n={iri:t};g.updateFilter(e.predicate,n).success((function(){h(),T()})).error((function(e){a.error(getError(e)),T()}))}(t,r);else{T();const e=Object(i.decodeHTML)(p.instant("not.valid.iri",{value:n.text.toString()}));a.error(e)}};e.deleteFromList=function(t,n){!function(e,t){const n={iri:t};g.deleteFilter(e.predicate,n).success((function(){h(),T()})).error((function(e){a.error(getError(e))}))}(t,n.text,e.namespaces)};const y=function(){f=n((function(){e.$broadcast("checkIsActive"),e.pluginFound&&h()}),5e3)},x=t.$on("$translateChangeSuccess",()=>{e.filterLists={INCLUDED_PREDICATES:{name:"Included Predicates",predicate:"includedPredicates",placeholderKey:"rdfrank.include.predicates",fieldNameKey:"rdfrank.include.label"},INCLUDED_GRAPHS:{name:"Included Graphs",predicate:"includedGraphs",placeholderKey:"rdfrank.include.graphs",fieldNameKey:"rdfrank.include.label"},EXCLUDED_PREDICATES:{name:"Excluded Predicates",predicate:"excludedPredicates",placeholderKey:"rdfrank.exclude.predicates",fieldNameKey:"rdfrank.exclude.label"},EXCLUDED_GRAPHS:{name:"Excluded Graphs",predicate:"excludedGraphs",placeholderKey:"rdfrank.exclude.graphs",fieldNameKey:"rdfrank.exclude.label"}}});e.$on("$destroy",(function(){x(),m()}));c.isLicenseValid()&&o.getActiveRepository()&&!o.isActiveRepoOntopType()&&!o.isActiveRepoFedXType()&&(e.checkForPlugin(),y())}])},480:function(e,t){
|
|
2
2
|
/*! ngTagsInput v3.2.0 License: MIT */!function(){"use strict";var e=8,t=9,n=13,r=27,i=32,a=38,o=40,c=37,s=39,u=46,l=188,d=9007199254740991,g=["text","email","url"],p=angular.module("ngTagsInput",[]);p.directive("tagsInput",["$timeout","$document","$window","$q","tagsInputConfig","tiUtil",function(t,r,a,o,p,f){function m(e,t,n,r){var i,a,c,s,u={};return i=function(t){return f.safeToString(t[e.displayProperty])},a=function(t,n){t[e.displayProperty]=n},c=function(t){var r=i(t),a=r&&r.length>=e.minLength&&r.length<=e.maxLength&&e.allowedTagsPattern.test(r)&&!f.findInObjectArray(u.items,t,e.keyProperty||e.displayProperty);return o.when(a&&n({$tag:t})).then(f.promisifyValue)},s=function(e){return o.when(r({$tag:e})).then(f.promisifyValue)},u.items=[],u.addText=function(e){var t={};return a(t,e),u.add(t)},u.add=function(n){var r=i(n);return e.replaceSpacesWithDashes&&(r=f.replaceSpacesWithDashes(r)),a(n,r),c(n).then((function(){u.items.push(n),t.trigger("tag-added",{$tag:n})})).catch((function(){r&&t.trigger("invalid-tag",{$tag:n})}))},u.remove=function(e){var n=u.items[e];return s(n).then((function(){return u.items.splice(e,1),u.clearSelection(),t.trigger("tag-removed",{$tag:n}),n}))},u.select=function(e){0>e?e=u.items.length-1:e>=u.items.length&&(e=0),u.index=e,u.selected=u.items[e]},u.selectPrior=function(){u.select(--u.index)},u.selectNext=function(){u.select(++u.index)},u.removeSelected=function(){return u.remove(u.index)},u.clearSelection=function(){u.selected=null,u.index=-1},u.getItems=function(){return e.useStrings?u.items.map(i):u.items},u.clearSelection(),u}function h(e){return-1!==g.indexOf(e)}return{restrict:"E",require:"ngModel",scope:{tags:"=ngModel",text:"=?",templateScope:"=?",tagClass:"&",onTagAdding:"&",onTagAdded:"&",onInvalidTag:"&",onTagRemoving:"&",onTagRemoved:"&",onTagClicked:"&"},replace:!1,transclude:!0,templateUrl:"ngTagsInput/tags-input.html",controller:["$scope","$attrs","$element",function(e,t,n){e.events=f.simplePubSub(),p.load("tagsInput",e,t,{template:[String,"ngTagsInput/tag-item.html"],type:[String,"text",h],placeholder:[String,"Add a tag"],tabindex:[Number,null],removeTagSymbol:[String,String.fromCharCode(215)],replaceSpacesWithDashes:[Boolean,!0],minLength:[Number,3],maxLength:[Number,d],addOnEnter:[Boolean,!0],addOnSpace:[Boolean,!1],addOnComma:[Boolean,!0],addOnBlur:[Boolean,!0],addOnPaste:[Boolean,!1],pasteSplitPattern:[RegExp,/,/],allowedTagsPattern:[RegExp,/.+/],enableEditingLastTag:[Boolean,!1],minTags:[Number,0],maxTags:[Number,d],displayProperty:[String,"text"],keyProperty:[String,""],allowLeftoverText:[Boolean,!1],addFromAutocompleteOnly:[Boolean,!1],spellcheck:[Boolean,!0],useStrings:[Boolean,!1]}),e.tagList=new m(e.options,e.events,f.handleUndefinedResult(e.onTagAdding,!0),f.handleUndefinedResult(e.onTagRemoving,!0)),this.registerAutocomplete=function(){return n.find("input"),{addTag:function(t){return e.tagList.add(t)},getTags:function(){return e.tagList.items},getCurrentTagText:function(){return e.newTag.text()},getOptions:function(){return e.options},getTemplateScope:function(){return e.templateScope},on:function(t,n){return e.events.on(t,n,!0),this}}},this.registerTagItem=function(){return{getOptions:function(){return e.options},removeTag:function(t){e.disabled||e.tagList.remove(t)}}}}],link:function(o,d,g,p){var m,h,v=[n,l,i,e,u,c,s],T=o.tagList,y=o.events,x=o.options,$=d.find("input"),k=["minTags","maxTags","allowLeftoverText"];m=function(){p.$setValidity("maxTags",T.items.length<=x.maxTags),p.$setValidity("minTags",T.items.length>=x.minTags),p.$setValidity("leftoverText",!(!o.hasFocus&&!x.allowLeftoverText)||!o.newTag.text())},h=function(){t((function(){$[0].focus()}))},p.$isEmpty=function(e){return!e||!e.length},o.newTag={text:function(e){return angular.isDefined(e)?(o.text=e,void y.trigger("input-change",e)):o.text||""},invalid:null},o.track=function(e){return e[x.keyProperty||x.displayProperty]},o.getTagClass=function(e,t){var n=e===T.selected;return[o.tagClass({$tag:e,$index:t,$selected:n}),{selected:n}]},o.$watch("tags",(function(e){if(e){if(T.items=f.makeObjectArray(e,x.displayProperty),x.useStrings)return;o.tags=T.items}else T.items=[]})),o.$watch("tags.length",(function(){m(),p.$validate()})),g.$observe("disabled",(function(e){o.disabled=e})),o.eventHandlers={input:{keydown:function(e){y.trigger("input-keydown",e)},focus:function(){o.hasFocus||(o.hasFocus=!0,y.trigger("input-focus"))},blur:function(){t((function(){var e=r.prop("activeElement"),t=e===$[0],n=d[0].contains(e);(t||!n)&&(o.hasFocus=!1,y.trigger("input-blur"))}))},paste:function(e){e.getTextData=function(){var t=e.clipboardData||e.originalEvent&&e.originalEvent.clipboardData;return t?t.getData("text/plain"):a.clipboardData.getData("Text")},y.trigger("input-paste",e)}},host:{click:function(){o.disabled||h()}},tag:{click:function(e){y.trigger("tag-clicked",{$tag:e})}}},y.on("tag-added",o.onTagAdded).on("invalid-tag",o.onInvalidTag).on("tag-removed",o.onTagRemoved).on("tag-clicked",o.onTagClicked).on("tag-added",(function(){o.newTag.text("")})).on("tag-added tag-removed",(function(){o.tags=T.getItems(),p.$setDirty(),h()})).on("invalid-tag",(function(){o.newTag.invalid=!0})).on("option-change",(function(e){-1!==k.indexOf(e.name)&&m()})).on("input-change",(function(){T.clearSelection(),o.newTag.invalid=null})).on("input-focus",(function(){d.triggerHandler("focus"),p.$setValidity("leftoverText",!0)})).on("input-blur",(function(){x.addOnBlur&&!x.addFromAutocompleteOnly&&T.addText(o.newTag.text()),d.triggerHandler("blur"),m()})).on("input-keydown",(function(t){var r,a,d,g,p=t.keyCode,m={};f.isModifierOn(t)||-1===v.indexOf(p)||(m[n]=x.addOnEnter,m[l]=x.addOnComma,m[i]=x.addOnSpace,r=!x.addFromAutocompleteOnly&&m[p],a=(p===e||p===u)&&T.selected,g=p===e&&0===o.newTag.text().length&&x.enableEditingLastTag,d=(p===e||p===c||p===s)&&0===o.newTag.text().length&&!x.enableEditingLastTag,r?T.addText(o.newTag.text()):g?(T.selectPrior(),T.removeSelected().then((function(e){e&&o.newTag.text(e[x.displayProperty])}))):a?T.removeSelected():d&&(p===c||p===e?T.selectPrior():p===s&&T.selectNext()),(r||d||a||g)&&t.preventDefault())})).on("input-paste",(function(e){if(x.addOnPaste){var t=e.getTextData().split(x.pasteSplitPattern);t.length>1&&(t.forEach((function(e){T.addText(e)})),e.preventDefault())}}))}}}]),p.directive("tiTagItem",["tiUtil",function(e){return{restrict:"E",require:"^tagsInput",template:'<ng-include src="$$template"></ng-include>',scope:{$scope:"=scope",data:"="},link:function(t,n,r,i){var a=i.registerTagItem(),o=a.getOptions();t.$$template=o.template,t.$$removeTagSymbol=o.removeTagSymbol,t.$getDisplayText=function(){return e.safeToString(t.data[o.displayProperty])},t.$removeTag=function(){a.removeTag(t.$index)},t.$watch("$parent.$index",(function(e){t.$index=e}))}}}]),p.directive("autoComplete",["$document","$timeout","$sce","$q","tagsInputConfig","tiUtil",function(e,i,c,s,u,l){function d(e,t,n){var r,i,a,o={};return a=function(){return t.tagsInput.keyProperty||t.tagsInput.displayProperty},r=function(e,n){return e.filter((function(e){return!l.findInObjectArray(n,e,a(),(function(e,n){return t.tagsInput.replaceSpacesWithDashes&&(e=l.replaceSpacesWithDashes(e),n=l.replaceSpacesWithDashes(n)),l.defaultComparer(e,n)}))}))},o.reset=function(){i=null,o.items=[],o.visible=!1,o.index=-1,o.selected=null,o.query=null},o.show=function(){t.selectFirstMatch?o.select(0):o.selected=null,o.visible=!0},o.load=l.debounce((function(n,c){o.query=n;var u=s.when(e({$query:n}));i=u,u.then((function(e){u===i&&(e=l.makeObjectArray(e.data||e,a()),e=r(e,c),o.items=e.slice(0,t.maxResultsToShow),o.items.length>0?o.show():o.reset())}))}),t.debounceDelay),o.selectNext=function(){o.select(++o.index)},o.selectPrior=function(){o.select(--o.index)},o.select=function(e){0>e?e=o.items.length-1:e>=o.items.length&&(e=0),o.index=e,o.selected=o.items[e],n.trigger("suggestion-selected",e)},o.reset(),o}return{restrict:"E",require:"^tagsInput",scope:{source:"&",matchClass:"&"},templateUrl:"ngTagsInput/auto-complete.html",controller:["$scope","$element","$attrs",function(e,t,n){e.events=l.simplePubSub(),u.load("autoComplete",e,n,{template:[String,"ngTagsInput/auto-complete-match.html"],debounceDelay:[Number,100],minLength:[Number,3],highlightMatchedText:[Boolean,!0],maxResultsToShow:[Number,10],loadOnDownArrow:[Boolean,!1],loadOnEmpty:[Boolean,!1],loadOnFocus:[Boolean,!1],selectFirstMatch:[Boolean,!0],displayProperty:[String,""]}),e.suggestionList=new d(e.source,e.options,e.events),this.registerAutocompleteMatch=function(){return{getOptions:function(){return e.options},getQuery:function(){return e.suggestionList.query}}}}],link:function(e,i,c,s){var u,d=[n,t,r,a,o],g=e.suggestionList,p=s.registerAutocomplete(),f=e.options,m=e.events;f.tagsInput=p.getOptions(),u=function(e){return e&&e.length>=f.minLength||!e&&f.loadOnEmpty},e.templateScope=p.getTemplateScope(),e.addSuggestionByIndex=function(t){g.select(t),e.addSuggestion()},e.addSuggestion=function(){var e=!1;return g.selected&&(p.addTag(angular.copy(g.selected)),g.reset(),e=!0),e},e.track=function(e){return e[f.tagsInput.keyProperty||f.tagsInput.displayProperty]},e.getSuggestionClass=function(t,n){var r=t===g.selected;return[e.matchClass({$match:t,$index:n,$selected:r}),{selected:r}]},p.on("tag-added tag-removed invalid-tag input-blur",(function(){g.reset()})).on("input-change",(function(e){u(e)?g.load(e,p.getTags()):g.reset()})).on("input-focus",(function(){var e=p.getCurrentTagText();f.loadOnFocus&&u(e)&&g.load(e,p.getTags())})).on("input-keydown",(function(i){var c=i.keyCode,s=!1;if(!l.isModifierOn(i)&&-1!==d.indexOf(c))return g.visible?c===o?(g.selectNext(),s=!0):c===a?(g.selectPrior(),s=!0):c===r?(g.reset(),s=!0):(c===n||c===t)&&(s=e.addSuggestion()):c===o&&e.options.loadOnDownArrow&&(g.load(p.getCurrentTagText(),p.getTags()),s=!0),s?(i.preventDefault(),i.stopImmediatePropagation(),!1):void 0})),m.on("suggestion-selected",(function(e){!function(e,t){var n=e.find("li").eq(t),r=n.parent(),i=n.prop("offsetTop"),a=n.prop("offsetHeight"),o=r.prop("clientHeight"),c=r.prop("scrollTop");c>i?r.prop("scrollTop",i):i+a>o+c&&r.prop("scrollTop",i+a-o)}(i,e)}))}}}]),p.directive("tiAutocompleteMatch",["$sce","tiUtil",function(e,t){return{restrict:"E",require:"^autoComplete",template:'<ng-include src="$$template"></ng-include>',scope:{$scope:"=scope",data:"="},link:function(n,r,i,a){var o=a.registerAutocompleteMatch(),c=o.getOptions();n.$$template=c.template,n.$index=n.$parent.$index,n.$highlight=function(n){return c.highlightMatchedText&&(n=t.safeHighlight(n,o.getQuery())),e.trustAsHtml(n)},n.$getDisplayText=function(){return t.safeToString(n.data[c.displayProperty||c.tagsInput.displayProperty])}}}}]),p.directive("tiTranscludeAppend",(function(){return function(e,t,n,r,i){i((function(e){t.append(e)}))}})),p.directive("tiAutosize",["tagsInputConfig",function(e){return{restrict:"A",require:"ngModel",link:function(t,n,r,i){var a,o,c=e.getTextAutosizeThreshold();(a=angular.element('<span class="input"></span>')).css("display","none").css("visibility","hidden").css("width","auto").css("white-space","pre"),n.parent().append(a),o=function(e){var t,i=e;return angular.isString(i)&&0===i.length&&(i=r.placeholder),i&&(a.text(i),a.css("display",""),t=a.prop("offsetWidth"),a.css("display","none")),n.css("width",t?t+c+"px":""),e},i.$parsers.unshift(o),i.$formatters.unshift(o),r.$observe("placeholder",(function(e){i.$modelValue||o(e)}))}}}]),p.directive("tiBindAttrs",(function(){return function(e,t,n){e.$watch(n.tiBindAttrs,(function(e){angular.forEach(e,(function(e,t){n.$set(t,e)}))}),!0)}})),p.provider("tagsInputConfig",(function(){var e={},t={},n=3;this.setDefaults=function(t,n){return e[t]=n,this},this.setActiveInterpolation=function(e,n){return t[e]=n,this},this.setTextAutosizeThreshold=function(e){return n=e,this},this.$get=["$interpolate",function(r){var i={};return i[String]=function(e){return e},i[Number]=function(e){return parseInt(e,10)},i[Boolean]=function(e){return"true"===e.toLowerCase()},i[RegExp]=function(e){return new RegExp(e)},{load:function(n,a,o,c){var s=function(){return!0};a.options={},angular.forEach(c,(function(c,u){var l,d,g,p,f,m;l=c[0],d=c[1],g=c[2]||s,p=i[l],f=function(){var t=e[n]&&e[n][u];return angular.isDefined(t)?t:d},m=function(e){a.options[u]=e&&g(e)?p(e):f()},t[n]&&t[n][u]?o.$observe(u,(function(e){m(e),a.events.trigger("option-change",{name:u,newValue:e})})):m(o[u]&&r(o[u])(a.$parent))}))},getTextAutosizeThreshold:function(){return n}}}]})),p.factory("tiUtil",["$timeout","$q",function(e,t){var n={debounce:function(t,n){var r;return function(){var i=arguments;e.cancel(r),r=e((function(){t.apply(null,i)}),n)}},makeObjectArray:function(e,t){if(!angular.isArray(e)||0===e.length||angular.isObject(e[0]))return e;var n=[];return e.forEach((function(e){var r={};r[t]=e,n.push(r)})),n},findInObjectArray:function(e,t,r,i){var a=null;return i=i||n.defaultComparer,e.some((function(e){return i(e[r],t[r])?(a=e,!0):void 0})),a},defaultComparer:function(e,t){return n.safeToString(e).toLowerCase()===n.safeToString(t).toLowerCase()},safeHighlight:function(e,t){if(e=n.encodeHTML(e),!(t=n.encodeHTML(t)))return e;var r=new RegExp("&[^;]+;|"+function(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}(t),"gi");return e.replace(r,(function(e){return e.toLowerCase()===t.toLowerCase()?"<em>"+e+"</em>":e}))},safeToString:function(e){return angular.isUndefined(e)||null==e?"":e.toString().trim()},encodeHTML:function(e){return n.safeToString(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")},handleUndefinedResult:function(e,t){return function(){var n=e.apply(null,arguments);return angular.isUndefined(n)?t:n}},replaceSpacesWithDashes:function(e){return n.safeToString(e).replace(/\s/g,"-")},isModifierOn:function(e){return e.shiftKey||e.ctrlKey||e.altKey||e.metaKey},promisifyValue:function(e){return e=!!angular.isUndefined(e)||e,t[e?"when":"reject"]()},simplePubSub:function(){var e={};return{on:function(t,n,r){return t.split(" ").forEach((function(t){e[t]||(e[t]=[]),(r?[].unshift:[].push).call(e[t],n)})),this},trigger:function(t,r){return(e[t]||[]).every((function(e){return n.handleUndefinedResult(e,!0)(r)})),this}}}};return n}]),p.run(["$templateCache",function(e){e.put("ngTagsInput/tags-input.html",'<div class="host" tabindex="-1" ng-click="eventHandlers.host.click()" ti-transclude-append><div class="tags" ng-class="{focused: hasFocus}"><ul class="tag-list"><li class="tag-item" ng-repeat="tag in tagList.items track by track(tag)" ng-class="getTagClass(tag, $index)" ng-click="eventHandlers.tag.click(tag)"><ti-tag-item scope="templateScope" data="::tag"></ti-tag-item></li></ul><input class="input" autocomplete="off" ng-model="newTag.text" ng-model-options="{getterSetter: true}" ng-keydown="eventHandlers.input.keydown($event)" ng-focus="eventHandlers.input.focus($event)" ng-blur="eventHandlers.input.blur($event)" ng-paste="eventHandlers.input.paste($event)" ng-trim="false" ng-class="{\'invalid-tag\': newTag.invalid}" ng-disabled="disabled" ti-bind-attrs="{type: options.type, placeholder: options.placeholder, tabindex: options.tabindex, spellcheck: options.spellcheck}" ti-autosize></div></div>'),e.put("ngTagsInput/tag-item.html",'<span ng-bind="$getDisplayText()"></span> <a class="remove-button" ng-click="$removeTag()" ng-bind="::$$removeTagSymbol"></a>'),e.put("ngTagsInput/auto-complete.html",'<div class="autocomplete" ng-if="suggestionList.visible"><ul class="suggestion-list"><li class="suggestion-item" ng-repeat="item in suggestionList.items track by track(item)" ng-class="getSuggestionClass(item, $index)" ng-click="addSuggestionByIndex($index)" ng-mouseenter="suggestionList.select($index)"><ti-autocomplete-match scope="templateScope" data="::item"></ti-autocomplete-match></li></ul></div>'),e.put("ngTagsInput/auto-complete-match.html",'<span ng-bind-html="$highlight($getDisplayText())"></span>')}])}()},80:function(e,t,n){"use strict";n.r(t),n.d(t,"mapNamespacesResponse",(function(){return r}));const r=e=>e&&e.data?e.data.results.bindings.map(e=>({prefix:e.prefix.value,uri:e.namespace.value})):[]}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[38],{
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[38],{157:function(e,t,n){"use strict";n.r(t);n(10),n(158);var o=n(87),r=n(27),a=n(82);let s=240;const i={no_cluster_configured:"",create_cluster_btn:"",legend_node_state:"",legend_link_state:"",node_state_leader:"Leader",node_state_follower:"Follower",node_state_candidate:"Candidate",node_state_no_cluster:"No cluster",node_state_out_of_sync:"Out of sync",node_state_no_connection:"No connection",node_state_read_only:"Read only",node_state_restricted:"Restricted",link_state_in_sync:"In sync",link_state_syncing:"Syncing",link_state_out_of_sync:"Out of sync",recovery_state:{searching_for_node:"Searching for node",waiting_for_snapshot:"Waiting for snapshot from node",receiving_snapshot:"Receiving a snapshot from node",applying_snapshot:"Applying a snapshot",building_snapshot:"Building a snapshot for node",sending_snapshot:"Sending a snapshot to node",recovery_operation_failure_warning:"Node unable to recover. Action required"}},c={node_state:"legend_node_state",link_state:"legend_link_state"};angular.module("graphdb.framework.clustermanagement.directives.cluster-graphical-view",["graphdb.framework.utils.localstorageadapter","graphdb.framework.clustermanagement.directives.cluster-legend"]).directive("clusterGraphicalView",["$window","LocalStorageAdapter","LSKeys","UriUtils","$translate","$jwtAuth","$rootScope","ClusterViewContextService",function(e,t,n,l,u,d,f,g){return{restrict:"E",scope:{clusterModel:"="},link:function(p,h){const m=angular.element(e),_=[];let w,C,y,v,E,k=D(),b=O(),A=Math.min(k,b)/2-100,S=k/2,M=b/2;function N(){const e=g.getClusterViewD3Container();k=D(),b=O(),e.attr("width",k),e.attr("height",b),U()}function L(e,t=""){Object.keys(e).forEach(n=>{let o="";t&&(o+=t),o+="."+n;const r=e[n];"string"==typeof r?e[n]=u.instant("cluster_management.cluster_graphical_view"+o):"object"==typeof r&&L(r,o)})}function D(){const o="collapsedMenu"===t.get(n.MENU_STATE);return s=o?70:240,Math.max(Math.floor(.95*(e.innerWidth-s)),600)}function O(){return Math.max(.95*(e.innerHeight-250),675)}function j(){o.updateClusterZoneLabels(C,y,i),Object.keys(c).forEach(e=>{d3.select("#"+e).text(function(e){return i[c[e]]}(e))})}function T(){A=Math.min(k,b)/2-100,S=k/2,M=b/2,o.moveElement(y,S,M),y.select(".cluster-zone").attr("r",A)}function R(e){p.$emit(a.CLICK_IN_VIEW,e.target)}function U(){T(),C!==p.clusterModel.hasCluster&&(C=!!p.clusterModel.hasCluster,function(e){o.setCreateClusterZone(e,y,i,w),!e&&w&&y.on("mouseup",()=>{p.$emit(a.CREATE_CLUSTER)})}(C));const e=function(){const e=Object(r.cloneDeep)(p.clusterModel.nodes)||[];return e.forEach(e=>{if(e.hostname=l.shortenIri(e.endpoint),!Object(r.isEmpty)(e.recoveryStatus)){let t="cluster_management.cluster_graphical_view.recovery_state."+e.recoveryStatus.state.toLowerCase();e.recoveryStatus.affectedNodes&&e.recoveryStatus.affectedNodes.length>0&&(t+="_with_affected_node"),e.recoveryStatus.message=u.instant(t,{node:e.recoveryStatus.affectedNodes.join(", ")})}}),e}();!function(e){const t=v.selectAll("#node-group").data(e,e=>e.address),n=o.createNodes(t,45);n.on("click",(e,t)=>{p.$emit(a.NODE_SELECTED,t);const n=d3.select(".nodetooltip"),o=$(window).width();e.pageX<o/2?(n.style("left",e.pageX+"px"),n.style("right","")):(n.style("left",""),n.style("right",o-e.pageX+"px")),n.style("top",e.pageY-28+"px")}),o.updateNodes(n),o.positionNodesOnClusterZone(n,S,M,A)}(e);!function(e,t){const n=E.selectAll(".link").data(e,e=>e.id);o.createLinks(n),o.updateLinks(n,t)}(Object(r.cloneDeep)(p.clusterModel.links)||[],e)}p.width=function(){return k},p.height=function(){return b};p.$on("$destroy",(function(){m.unbind("resize",N),m.unbind("mousedown",R),o.removeEventListeners(),_.forEach(e=>e())})),w=d.isAdmin(),m.bind("resize",N),m.bind("mousedown",R),_.push(f.$on("$translateChangeSuccess",(function(){L(i),j()}))),_.push(p.$on(a.MODEL_UPDATED,(function(){U()}))),L(i),function(e){const t=o.createClusterSvgElement(h[0]).attr("width",k).attr("height",b);y=o.createClusterZone(t,e),E=t.append("g").attr("id","links-group"),v=t.append("g").attr("id","nodes-group"),o.addArrowHead(t,o.ARROW_CONFIG.BIG),o.addArrowHead(t,o.ARROW_CONFIG.SMALL),g.updateClusterViewD3Container(t)}(!(!p.clusterModel.nodes||!p.clusterModel.nodes.length)),U()}}}])},160:function(e,t,n){"use strict";n.r(t);var o=n(82);function r(e,t,n,r,a){return{restrict:"E",templateUrl:"js/angular/clustermanagement/templates/cluster-configuration.html",scope:{currentNode:"=",clusterModel:"=",clusterConfiguration:"="},link:n=>{n.isAdmin=!1,n.closeClusterConfigurationPanel=()=>{a.hideClusterConfigurationPanel()},n.showEditConfigurationDialog=()=>{t.open({templateUrl:"js/angular/clustermanagement/templates/modal/cluster-edit-dialog.html",controller:"EditClusterCtrl",size:"lg",resolve:{data:()=>({clusterConfiguration:n.clusterConfiguration})}}).result.finally((function(){n.$emit(o.UPDATE_CLUSTER,{force:!0})}))},n.showDeleteDialog=()=>{t.open({templateUrl:"js/angular/clustermanagement/templates/modal/cluster-delete-dialog.html",controller:"DeleteClusterCtrl"}).result.then(e=>{n.$emit(o.DELETE_CLUSTER,{force:e})})};n.isAdmin=e.isAuthenticated()&&e.isAdmin()}}}angular.module("graphdb.framework.clustermanagement.directives.cluster-configuration",[]).directive("clusterConfiguration",r),r.$inject=["$jwtAuth","$uibModal","$translate","toastr","ClusterViewContextService"]},257:function(e,t,n){"use strict";n.r(t);n(7),n(28),n(241),n(157),n(160),n(29),n(446),n(239);angular.module("graphdb.framework.clustermanagement",["ngAnimate","toastr","graphdb.framework.clustermanagement.controllers.cluster-management","graphdb.framework.clustermanagement.directives.cluster-graphical-view","graphdb.framework.clustermanagement.directives.cluster-configuration"])},446:function(e,t,n){var o,r;o=[n(454)],void 0===(r=function(){function e(e,t){return e.each((function(){var e=t.apply(this,arguments),n=select(this);for(var o in e)n.attr(o,e[o])}))}function t(e,t){for(var n in t)e.attr(n,t[n]);return e}return"undefined"==typeof d3&&(d3=n(454)),d3.selection.prototype.attrs=function(n){return("function"==typeof n?e:t)(this,n)},d3.selection.prototype.moveToFront=function(){return this.each((function(){d3.select(this.parentNode.appendChild(this))}))},d3.selection.prototype.moveToBack=function(){return this.each((function(){const e=this.parentNode.firstChild;e&&this.parentNode.insertBefore(this,e)}))},d3}.apply(t,o))||(e.exports=r)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[39,112,228,229],{
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[39,112,228,229],{226:function(e,a,n){"use strict";n.r(a);n(7),n(30),n(29),n(35);const s=angular.module("graphdb.framework.namespaces.controllers",["ui.bootstrap","graphdb.framework.core.services.repositories","graphdb.framework.core.services.jwtauth","graphdb.framework.rest.repositories.service","graphdb.framework.rest.rdf4j.repositories.service","toastr"]),t=function(){const e="[A-Z]|[a-z]|[À-Ö]|[Ø-ö]|[ø-˿]|[Ͱ-ͽ]|[Ϳ-]|[-]|[⁰-]|[Ⰰ-]|[、-]|[豈-﷏]|[ﷰ-�]",a="[A-Z]|[a-z]|[À-Ö]|[Ø-ö]|[ø-˿]|[Ͱ-ͽ]|[Ϳ-]|[-]|[⁰-]|[Ⰰ-]|[、-]|[豈-﷏]|[ﷰ-�]|_|-|[0-9]|·|[̀-ͯ]|[‿-⁀]";return new RegExp("^(?:"+e+")(?:(?:"+a+"|\\.)*(?:"+a+"))?$")}();s.controller("NamespacesCtrl",["$scope","$http","$repositories","toastr","$uibModal","ModalService","RepositoriesRestService","RDF4JRepositoriesRestService","$translate",function(e,a,n,s,c,r,i,o,p){function l(a,t){let c;c="object"==typeof a?a.prefix:a,o.deleteNamespacePrefix(n.getActiveRepository(),c).success((function(){t&&t.length>0?l(a=t.shift(),t):(e.selectedAll=!1,e.namespace={},e.getNamespaces(),e.searchNamespaces="",e.haveSelected=!1,e.loader=!1,e.displayedNamespaces=[],void 0===t?s.success(p.instant("namespace.prefix.deleted.successfully",{prefix:c}),""):s.success(p.instant("namespace.selected.namespaces.deleted.successfully"),""))})).error((function(a){const n=getError(a);s.error(n,p.instant("common.error")),e.loader=!1}))}function m(e,a){return function(e){return""===e||e.match(t)}(e)?!angular.isUndefined(a)&&""!==a||(s.error(p.instant("namespace.warning.provide.namespace"),p.instant("common.error")),!1):(s.error(p.instant("namespace.invalid.prefix",{prefix:e},p.instant("common.error"))),!1)}e.namespaces={},e.namespace={},e.loader=!1,e.haveSelected=!1,e.pageSizeOptions=[10,20,50,100],e.page=1,e.pageSize=e.pageSizeOptions[0],e.displayedNamespaces=[],e.getNamespaces=function(){n.getActiveRepository()&&(e.loader=!0,e.namespaces={},o.getNamespaces(n.getActiveRepository()).success((function(a){e.namespaces=a.results.bindings.map((function(e){return{prefix:e.prefix.value,namespace:e.namespace.value}})),e.namespaces.length>0&&(e.namespaces.sort((function(e,a){const n=e.prefix.toUpperCase(),s=a.prefix.toUpperCase();return n<s?-1:n>s?1:0})),e.matchedElements=e.namespaces,e.changePagination()),0===e.namespaces.length&&(e.loader=!1)})).error((function(a){const n=getError(a);s.error(n),e.loader=!1})))},e.changePagination=function(){angular.isDefined(e.namespaces)&&(e.displayedNamespaces=e.namespaces.slice(e.pageSize*(e.page-1),e.pageSize*e.page))},e.changePageSize=function(a){$(".ot-graph-page-size").removeClass("active"),e.page=1,e.searchNamespaces="",a&&(e.getNamespaces(),e.pageSize=a)},e.$watch("matchedElements",(function(){angular.isDefined(e.matchedElements)&&(e.displayedNamespaces=e.matchedElements.slice(e.pageSize*(e.page-1),e.pageSize*e.page))})),e.$watch((function(){return n.getActiveRepository()}),(function(){e.searchNamespaces="",e.getNamespaces(),e.selectedAll=!1})),e.onNamespaceSearch=function(){e.haveSelected=!1,e.selectedAll=!1,e.matchedElements=[],e.deselectAll(),e.filterResults()},e.filterResults=function(){angular.forEach(e.namespaces,(function(a){-1===a.namespace.indexOf(e.searchNamespaces)&&-1===a.prefix.indexOf(e.searchNamespaces)||e.matchedElements.push(a)}))},e.saveNamespace=function(a,t){return e.loader=!0,o.updateNamespacePrefix(n.getActiveRepository(),t,a).success((function(){e.getNamespaces(),s.success(p.instant("namespace.saved")),e.loader=!1})).error((function(a){const n=getError(a);s.error(n,p.instant("common.error")),e.loader=!1}))},e.editPrefix=function(a,t){e.loader=!0,i.getPrefix(n.getActiveRepository(),{from:a,to:t,location:n.getActiveRepositoryObject().location}).success((function(){e.getNamespaces(),e.loader=!1})).error((function(a){const n=getError(a);s.error(n,p.instant("common.error")),e.loader=!1}))},e.confirmReplace=function(e,a){r.openSimpleModal({title:p.instant("namespace.confirm.replace"),message:p.instant("namespace.already.exists.msg"),warning:!0}).result.then(e,a)},e.editPrefixAndNamespace=function(a,n,s){if(angular.isUndefined(a)&&(a=""),!m(a,n))return"";let t=!1;const c=s.prefix;angular.forEach(e.namespaces,(function(e){e.prefix===a&&c!==a&&(t=!0)})),t?e.confirmReplace((function(){e.saveNamespace(c,n).then((function(){c!==a&&e.editPrefix(c,a)}))}),(function(){e.getNamespaces()})):angular.isDefined(t)&&e.saveNamespace(c,n).then((function(){c!==a&&e.editPrefix(c,a)}))},e.addNamespace=function(){if(angular.isUndefined(e.namespace.prefix)&&(e.namespace.prefix=""),!m(e.namespace.prefix,e.namespace.namespace))return;e.selectedAll=!1;let a=!1;for(let n=0;n<e.namespaces.length;n++)e.namespaces[n].prefix===e.namespace.prefix&&(a=!0);a?e.confirmReplace((function(){e.saveNamespace(e.namespace.prefix,e.namespace.namespace),e.namespace.namespace="",e.namespace.prefix="",setTimeout(()=>{e.form.$setUntouched(),e.form.$setPristine()})})):(e.saveNamespace(e.namespace.prefix,e.namespace.namespace),e.namespace.namespace="",e.namespace.prefix="",setTimeout(()=>{e.form.$setUntouched(),e.form.$setPristine()}))},e.removeNamespace=function(e){r.openSimpleModal({title:p.instant("common.confirm.delete"),message:p.instant("namespace.warning.delete.msg",{prefix:e.prefix}),warning:!0}).result.then((function(){l(e)}))},e.checkAll=function(){angular.forEach(e.displayedNamespaces,(function(a){a.selected=e.selectedAll}))},e.deleteSelected=function(){let a=!1;angular.forEach(e.displayedNamespaces,(function(n){a||n.selected&&(a=!0,r.openSimpleModal({title:p.instant("common.confirm.delete"),message:p.instant("namespace.warning.delete.selected"),warning:!0}).result.then((function(){e.loader=!0;const a=[];angular.forEach(e.displayedNamespaces,(function(e){e.selected&&a.push(e)})),l(a.shift(),a),e.selectedAll=!1}),(function(){e.getNamespaces(),e.selectedAll=!1,e.searchNamespaces=""})))}))},e.checkIfSelectedNamespace=function(){e.haveSelected=!1,angular.forEach(e.namespaces,(function(a){a.selected&&(e.haveSelected=!0)}))},e.deselectAll=function(){angular.forEach(e.namespaces,(function(e){e.selected=!1}))}}]),s.controller("StandartModalCtrl",["$scope","$uibModalInstance",function(e,a){e.ok=function(){a.close(!0)},e.cancel=function(){a.dismiss("cancel")}}])},227:function(e,a){angular.module("graphdb.framework.namespaces.directives",["ngRoute"]).directive("loaderPostRepeatDirective",["$timeout",function(e){return function(a){a.$last&&e((function(){a.$parent.loader=!1}),0)}}])},308:function(e,a,n){"use strict";n.r(a);n(7),n(28),n(29),n(226),n(227),n(83),n(553);angular.module("graphdb.framework.namespaces",["LocalStorageModule","xeditable","ngAnimate","ngRoute","toastr","graphdb.framework.namespaces.controllers","graphdb.framework.namespaces.directives","graphdb.framework.core.services.repositories","graphdb.framework.core.directives","graphdb.framework.core.directives.paginations"]).run(["editableOptions",function(e){e.theme="bs3"}])},83:function(e,a){angular.module("graphdb.framework.core.directives.paginations",[]).directive("paginations",["$translate","$rootScope","$compile",function(e,a,n){return{link:function(e,s){const t=()=>{const a=n('<uib-pagination class="nav navbar-right" total-items="matchedElements.length" items-per-page="pageSize" ng-model="page" ng-change="changePagination()" direction-links="false" boundary-links="true" max-size="5" rotate="true" first-text="{{\'paginator.first.page.label\' | translate}}" last-text="{{\'paginator.last.page.label\' | translate}}"></uib-pagination>')(e);s.html(a)};t();const c=a.$on("$translateChangeSuccess",t);e.$on("$destroy",c)}}}])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[4,57,84,85,86,87,88,89,90,91,92,241,245],{105:function(e,t,a){"use strict";a.r(t),a.d(t,"HeapMemoryChart",(function(){return s}));var r=a(66);class s extends r.ChartData{constructor(e){super(e,!1,!1)}chartSetup(e){const t={yAxis:{axisLabel:{formatter:e=>this.hasSelectedSeries()?s.formatBytesValue(e,this.dataHolder,this.selectedSeries):s.formatBytesValue(e,this.dataHolder)},min:0},tooltip:{valueFormatter:e=>s.formatBytesValue(e,null,this.selectedSeries)}};_.merge(e,t)}createDataHolder(){return[{name:this.translateService.instant("resource.memory.committed"),type:"line",showSymbol:!1,smooth:!0,data:[]},{name:this.translateService.instant("resource.memory.used"),type:"line",areaStyle:{opacity:r.ChartData.AREA_BAR_OPACITY},showSymbol:!1,smooth:!0,data:[]}]}translateLabels(){const[e,t]=this.dataHolder;e.name=this.translateService.instant("resource.memory.committed"),t.name=this.translateService.instant("resource.memory.used"),this.configureSubtitle()}addNewData(e,t,a){const[r,s]=e,o=this.parseData(a);this.latestData={committed:o.committed,used:o.used,max:o.max},r.data.push({value:[t,o.committed]}),s.data.push({value:[t,o.used]}),this.configureSubtitle()}configureSubtitle(){if(this.latestData.max>0){const e=[{label:this.translateService.instant("resource.memory.heap.max"),value:s.formatBytesValue(this.latestData.max,null,this.selectedSeries)}];this.setSubTitle(e)}}parseData(e){return e.heapMemoryUsage}updateRange(e,t,a){super.updateRange(e,t,a)}}},142:function(e,t,a){"use strict";a.r(t);a(7),a(29),a(31),a(71);var r=a(208),s=a(105),o=a(209),i=a(210),n=a(211),l=a(212),c=a(213),u=a(214),h=a(215),d=a(216);angular.module("graphdb.framework.jmx.resources.controllers",["ui.bootstrap","graphdb.framework.core.services.repositories","graphdb.framework.rest.monitoring.service","graphdb.framework.rest.cluster.service"]).controller("ResourcesCtrl",["$scope","$timeout","MonitoringRestService","$translate","$repositories","$q","ClusterRestService","$filter",function(e,t,a,m,p,f,S,g){e.AVAILABLE_TABS=Object.freeze({RESOURCE_MONITOR:"resource",PERFORMANCE_MONITOR:"performance",CLUSTER_HEALTH:"cluster"});const y=window.location.hash.slice(1),v=Object.keys(e.AVAILABLE_TABS).find(t=>e.AVAILABLE_TABS[t]===y);e.activeTab=e.AVAILABLE_TABS[v]||e.AVAILABLE_TABS.RESOURCE_MONITOR,e.resourceMonitorData={error:{hasError:!1,message:"",retries:0},charts:{cpuLoad:new i.CpuLoadChart(m),fileDescriptors:new r.FileDescriptorsChart(m,g),heapMemory:new s.HeapMemoryChart(m),offHeapMemory:new o.NonHeapMemoryChart(m),diskStorage:new n.DiskStorageChart(m)}},e.performanceMonitorData={error:{hasError:!1,message:"",retries:0},charts:{connectionsChart:new u.ConnectionsChart(m),epoolChart:new d.EpoolChart(m),queriesChart:new l.QueriesChart(m)}},e.structuresMonitorData={error:{hasError:!1,message:"",retries:0},charts:{globalCacheChart:new c.GlobalCacheChart(m,g)}},e.clusterHealthData={error:{hasError:!1,message:"",retries:0},charts:{clusterHealthChart:new h.ClusterHealthChart(m)}},e.hasCluster=!1;e.loader=!0,e.switchTab=t=>{e.activeTab=t,window.location.hash=t},e.getActiveRepository=function(){return p.getActiveRepository()};const D=function(e){return a.monitorQueryTransactionStatistics(e).then((function(e){return e.data}))},b=function(e){return a.monitorQuery(e).then((function(e){return e.data}))},C=function(){return a.monitorCluster()},w=e=>{if(e.chartsHolder.error.hasError){if(3===e.chartsHolder.error.retries)return e.poll&&t.cancel(e.poll),Promise.resolve();e.chartsHolder.error.retries++}return e.fetchFn().then((function(t){x(t,e)})).then(()=>{O(e)}).catch(t=>{A(e,t)}).finally(()=>{e.poll&&t.cancel(e.poll),e.poll=t(()=>w(e),2e3)})},x=(e,t,a)=>{const r=e.data;r&&H(r,t,a)},H=(e,t,a)=>{const r=new Date;a?a(r,e):Object.values(t.chartsHolder.charts).forEach(t=>{t.addData(r,e)})},A=(e,t)=>{e.chartsHolder.error.hasError=!!t,e.chartsHolder.error.hasError&&(e.chartsHolder.error.message=getError(t))},O=e=>{e.chartsHolder.error.hasError=!1,e.chartsHolder.error.message=""};e.monitors=[],e.monitors.push({chartsHolder:e.resourceMonitorData,error:{hasError:!1,message:"",retries:0},fetchFn:function(){return a.monitorResources()},poll:null}),e.monitors.push({chartsHolder:e.structuresMonitorData,error:{hasError:!1,message:"",retries:0},fetchFn:function(){const t=e.getActiveRepository();return t?a.monitorStructures(t):Promise.resolve({})},poll:null}),e.monitors.push({chartsHolder:e.performanceMonitorData,error:{hasError:!1,message:"",retries:0},fetchFn:function(){const t=e.getActiveRepository();return t?f.all([D(t),b(t)]).then(e=>{const[t,a]=e;return{data:{performanceData:t,activeQueryData:a}}}):Promise.resolve({})},poll:null}),S.getNodeStatus().then(()=>{e.hasCluster=!0;const t={chartsHolder:e.clusterHealthData,fetchFn:C,poll:null};e.monitors.push(t),w(t)}).catch(()=>{e.hasCluster=!1});let R=null;f.all(e.monitors.map(e=>w(e))).finally(()=>{e.loader&&(R&&t.cancel(R),R=t((function(){e.loader=!1}),500))}),e.$on("$destroy",(function(){R&&t.cancel(R);for(const a of e.monitors)a.poll&&t.cancel(a.poll)}))}])},208:function(e,t,a){"use strict";a.r(t),a.d(t,"FileDescriptorsChart",(function(){return s}));var r=a(66);class s extends r.ChartData{constructor(e,t){super(e,!1,!1,t)}chartSetup(e){const t={yAxis:{axisLabel:{formatter:e=>this.formatNumber(e)},min:0},tooltip:{valueFormatter:e=>this.formatNumber(e)}};_.merge(e,t)}createDataHolder(){return[{name:this.translateService.instant("resource.system.file_descriptors.open"),type:"line",areaStyle:{opacity:r.ChartData.AREA_BAR_OPACITY},showSymbol:!1,smooth:!0,color:r.ChartData.COLORS[1],data:[]}]}translateLabels(){const[e]=this.dataHolder;e.name=this.translateService.instant("resource.system.file_descriptors.open"),this.configureSubtitle()}addNewData(e,t,a){this.latestData={maxFileDescriptors:a.maxFileDescriptors,openFileDescriptors:a.openFileDescriptors},this.configureSubtitle(),a.openFileDescriptors&&e[0].data.push({value:[t,a.openFileDescriptors]})}configureSubtitle(){let e;e=this.latestData.openFileDescriptors?[{label:this.translateService.instant("resource.system.file_descriptors.max"),value:this.formatNumber(this.latestData.maxFileDescriptors)}]:[{label:this.translateService.instant("resource.system.file_descriptors.only_unix")}],this.setSubTitle(e)}updateRange(e){super.updateRange(e,2)}}},209:function(e,t,a){"use strict";a.r(t),a.d(t,"NonHeapMemoryChart",(function(){return s}));var r=a(105);class s extends r.HeapMemoryChart{constructor(e){super(e,!1,!1)}parseData(e){return e.nonHeapMemoryUsage}}},210:function(e,t,a){"use strict";a.r(t),a.d(t,"CpuLoadChart",(function(){return s}));var r=a(66);class s extends r.ChartData{constructor(e){super(e,!1,!1)}chartSetup(e){const t={yAxis:{axisLabel:{formatter:e=>e+"%"},min:0,max:function(e){return Math.round(e.max>50?100:2*e.max)}},tooltip:{valueFormatter:function(e){return e+"%"}}};_.merge(e,t)}createDataHolder(){return[{name:this.translateService.instant("resource.system.cpu_load.label"),type:"line",smoothMonotone:"x",showSymbol:!1,smooth:!0,data:[]}]}translateLabels(){const[e]=this.dataHolder;e.name=this.translateService.instant("resource.system.cpu_load.label")}addNewData(e,t,a){e[0].data.push({value:[t,this.formatValue(a.cpuLoad)]})}formatValue(e){return+parseFloat(e).toFixed(4)}updateRange(e){}}},211:function(e,t,a){"use strict";a.r(t),a.d(t,"DiskStorageChart",(function(){return s}));var r=a(66);class s extends r.ChartData{constructor(e){super(e,!0,!0)}chartSetup(e){const t={height:250,tooltip:{trigger:"axis",axisPointer:{type:"shadow",label:null},valueFormatter:function(e){return(100*e).toFixed(2)+"%"}},xAxis:{type:"value",min:0,max:1,splitNumber:2,axisLabel:{formatter:function(e){return(100*e).toFixed(2)+"%"}}},yAxis:{type:"category",data:[this.translateService.instant("resource.storage.logs"),this.translateService.instant("resource.storage.work"),this.translateService.instant("resource.storage.data")]},legend:{itemStyle:{opacity:1}}};_.merge(e,t)}createDataHolder(){return[this.createDataHolderForItem("resource.storage.used",r.ChartData.COLORS[1]),this.createDataHolderForItem("resource.storage.free",r.ChartData.COLORS[0])]}createDataHolderForItem(e,t){return{name:this.translateService.instant(e),type:"bar",stack:!0,showSymbol:!1,smooth:!0,barCategoryGap:"10%",color:t,itemStyle:{opacity:r.ChartData.AREA_BAR_OPACITY},label:{show:!0,color:"black",opacity:1,formatter:function({value:e}){return(100*e).toFixed(2)+"%"}},emphasis:{itemStyle:{color:t,opacity:1},label:{color:"white"}},data:[]}}translateLabels(){const[e,t]=this.dataHolder;e.name=this.translateService.instant("resource.storage.used"),t.name=this.translateService.instant("resource.storage.free"),this.chartSetup(this.chartOptions),this.configureSubtitle()}addNewData(e,t,a,r){const s=a.storageMemory,[o,i]=e;this.latestData={data:{used:s.dataDirUsed,free:s.dataDirFree},work:{used:s.workDirUsed,free:s.workDirFree},logs:{used:s.logsDirUsed,free:s.logsDirFree}},this.configureSubtitle();const n=s.dataDirUsed+s.dataDirFree,l=s.workDirUsed+s.workDirFree,c=s.logsDirUsed+s.logsDirFree,u=s.dataDirUsed/n,h=s.workDirUsed/l,d=s.logsDirUsed/c,m=s.dataDirFree/n,p=s.workDirFree/l,f=s.logsDirFree/c;o.data.push(d,h,u),i.data.push(f,p,m)}configureSubtitle(){const e=[{label:this.translateService.instant("resource.storage.subtitle.data"),value:[s.formatBytesValue(this.latestData.data.used,null,this.selectedSeries),s.formatBytesValue(this.latestData.data.free,null,this.selectedSeries)]},{label:this.translateService.instant("resource.storage.subtitle.work"),value:[s.formatBytesValue(this.latestData.work.used,null,this.selectedSeries),s.formatBytesValue(this.latestData.work.free,null,this.selectedSeries)]},{label:this.translateService.instant("resource.storage.subtitle.logs"),value:[s.formatBytesValue(this.latestData.logs.used,null,this.selectedSeries),s.formatBytesValue(this.latestData.logs.free,null,this.selectedSeries)]}];this.setSubTitle(e)}}},212:function(e,t,a){"use strict";a.r(t),a.d(t,"QueriesChart",(function(){return s}));var r=a(66);class s extends r.ChartData{constructor(e){super(e,!1,!1)}createDataHolder(){return[{name:this.translateService.instant("resource.queries.running"),type:"line",showSymbol:!1,smooth:!0,data:[]}]}translateLabels(){const[e]=this.dataHolder;e.name=this.translateService.instant("resource.queries.running"),this.configureSubtitle()}addNewData(e,t,a){const{activeQueryData:r,performanceData:s}=a;this.latestData={slowQueries:s.queries.slow,suboptimal:s.queries.suboptimal,activeQueryData:r,performanceData:s},e[0].data.push({value:[t,r.length]}),this.configureSubtitle()}updateRange(e,t){const[a,s]=r.ChartData.getIntegerRangeForValues(e,this.selectedSeries);this.chartOptions.yAxis.max=a,this.chartOptions.yAxis.minInterval=s}configureSubtitle(){const e=[{label:this.translateService.instant("resource.queries.slow"),value:this.latestData.slowQueries},{label:this.translateService.instant("resource.queries.suboptimal"),value:this.latestData.suboptimal}];this.setSubTitle(e)}}},213:function(e,t,a){"use strict";a.r(t),a.d(t,"GlobalCacheChart",(function(){return s}));var r=a(66);class s extends r.ChartData{constructor(e,t){super(e,!1,!1,t)}chartSetup(e){const t={yAxis:{axisLabel:{formatter:e=>this.formatNumber(e)},minInterval:1},tooltip:{valueFormatter:e=>this.formatNumber(e)}};_.merge(e,t)}createDataHolder(){return[{name:this.translateService.instant("resources.global_cache.hits"),type:"line",showSymbol:!1,smooth:!0,data:[]},{name:this.translateService.instant("resources.global_cache.miss"),type:"line",showSymbol:!1,smooth:!0,data:[]}]}translateLabels(){const[e,t]=this.dataHolder;e.name=this.translateService.instant("resources.global_cache.hits"),t.name=this.translateService.instant("resources.global_cache.miss")}addNewData(e,t,a){const[r,s]=e;r.data.push({value:[t,a.cacheHit]}),s.data.push({value:[t,a.cacheMiss]})}}},214:function(e,t,a){"use strict";a.r(t),a.d(t,"ConnectionsChart",(function(){return s}));var r=a(66);class s extends r.ChartData{constructor(e){super(e,!1,!1)}createDataHolder(){return[{name:this.translateService.instant("resource.connections.active"),type:"line",showSymbol:!1,smooth:!0,data:[]},{name:this.translateService.instant("resource.connections.open"),type:"line",showSymbol:!1,smooth:!0,data:[]}]}translateLabels(){const[e,t]=this.dataHolder;e.name=this.translateService.instant("resource.connections.active"),t.name=this.translateService.instant("resource.connections.open")}addNewData(e,t,a){const[r,s]=e,{activeTransactions:o,openConnections:i}=a.performanceData;r.data.push({value:[t,o]}),s.data.push({value:[t,i]})}updateRange(e,t){const[a,s]=r.ChartData.getIntegerRangeForValues(e,this.selectedSeries);this.chartOptions.yAxis.max=a,this.chartOptions.yAxis.minInterval=s}}},215:function(e,t,a){"use strict";a.r(t),a.d(t,"ClusterHealthChart",(function(){return s}));var r=a(66);class s extends r.ChartData{constructor(e){super(e,!0,!1),this.nodesCount=0}createDataHolder(){const[e,t,a,r]=s.COLORS;return[{name:this.translateService.instant("resources.cluster_health.in_sync"),type:"line",stack:"nodes",showSymbol:!1,step:"middle",areaStyle:{},lineStyle:{width:0},color:e,data:[]},{name:this.translateService.instant("resources.cluster_health.syncing"),type:"line",stack:"nodes",showSymbol:!1,step:"middle",areaStyle:{},lineStyle:{width:0},color:a,data:[]},{name:this.translateService.instant("resources.cluster_health.out_sync"),type:"line",stack:"nodes",showSymbol:!1,step:"middle",areaStyle:{},lineStyle:{width:0},color:t,data:[]},{name:this.translateService.instant("resources.cluster_health.disconnected"),type:"line",stack:"nodes",showSymbol:!1,step:"middle",areaStyle:{},lineStyle:{width:0},color:r,data:[]}]}addNewData(e,t,a){const r=a.nodesStats;this.nodesCount=r.nodesInCluster;const[s,o,i,n]=e;this.latestData={nodesInSync:r.nodesInCluster,nodesOutOfSync:r.nodesOutOfSync,nodesDisconnected:r.nodesDisconnected,nodesSyncing:r.nodesSyncing,term:a.term,failureRecoveriesCount:a.failureRecoveriesCount,failedTransactionsCount:a.failedTransactionsCount},s.data.push({value:[t,r.nodesInSync]}),i.data.push({value:[t,r.nodesOutOfSync]}),n.data.push({value:[t,r.nodesDisconnected]}),o.data.push({value:[t,r.nodesSyncing]}),this.configureSubtitle()}translateLabels(){const[e,t,a,r]=this.dataHolder;e.name=this.translateService.instant("resources.cluster_health.in_sync"),t.name=this.translateService.instant("resources.cluster_health.syncing"),a.name=this.translateService.instant("resources.cluster_health.out_sync"),r.name=this.translateService.instant("resources.cluster_health.disconnected"),this.configureSubtitle()}updateRange(e,t){this.chartOptions.yAxis.max=this.nodesCount,this.chartOptions.yAxis.splitNumber=this.nodesCount}configureSubtitle(){const e=[{label:this.translateService.instant("resource.cluster_health.leader_elections"),value:this.latestData.term},{label:this.translateService.instant("resource.cluster_health.recoveries"),value:this.latestData.failureRecoveriesCount},{label:this.translateService.instant("resource.cluster_health.failed_transactions"),value:this.latestData.failedTransactionsCount}];this.setSubTitle(e)}}},216:function(e,t,a){"use strict";a.r(t),a.d(t,"EpoolChart",(function(){return s}));var r=a(66);class s extends r.ChartData{constructor(e){super(e,!1,!1)}chartSetup(e){const t={grid:{containLabel:!0,left:40},yAxis:[{name:this.translateService.instant("resource.epool.reads"),nameLocation:"middle",type:"value",nameGap:40},{name:this.translateService.instant("resource.epool.writes"),nameLocation:"middle",type:"value",nameGap:40}]};_.merge(e,t)}createDataHolder(){return[{name:this.translateService.instant("resource.epool.reads"),type:"line",showSymbol:!1,smooth:!0,yAxisIndex:0,data:[]},{name:this.translateService.instant("resource.epool.writes"),type:"line",showSymbol:!1,smooth:!0,yAxisIndex:1,data:[]}]}translateLabels(){const[e,t]=this.dataHolder;e.name=this.translateService.instant("resource.epool.reads"),t.name=this.translateService.instant("resource.epool.writes"),this.chartSetup(this.chartOptions)}addNewData(e,t,a,r){const s=a.performanceData,[o,i]=e;let n=0,l=0;const c=s.entityPool.epoolReads,u=s.entityPool.epoolWrites;r||(n=c-this.lastestData.reads,l=u-this.lastestData.writes),this.lastestData={reads:c,writes:u},o.data.push({value:[t,n]}),i.data.push({value:[t,l]})}updateRange(e){e.forEach((e,t)=>{const[a,s]=r.ChartData.getIntegerRangeForValues(e,this.selectedSeries);this.chartOptions.yAxis[t].max=a,this.chartOptions.yAxis[t].minInterval=s})}}},66:function(e,t,a){"use strict";a.r(t),a.d(t,"ChartData",(function(){return s}));var r=a(447);class s{static get DEFAULT_MULTIPLIER(){return 1.2}static get MAXIMUM_DIVISIONS(){return 10}static get COLORS(){return[s.cssVar("--secondary-color"),s.cssVar("--primary-color"),s.cssVar("--tertiary-color"),s.cssVar("--gray-color")]}static get AREA_BAR_OPACITY(){return.5}static cssVar(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}constructor(e,t,a,r){this.filter=r,this.disableRangeUpdate=t,this.disableOldDataRemoval=a,this.translateService=e,this.refreshHandlers=[],this.initialChartSetup()}registerRefreshHandler(e){this.refreshHandlers.push(e)}unregisterRefreshHandler(e){const t=this.refreshHandlers.indexOf(e);t>-1&&this.refreshHandlers.splice(t,1)}initialChartSetup(e=!0){this.range=150,this.chartOptions=this.getDefaultChartOptions(this.translateService),e&&(this.dataHolder=this.createDataHolder(),this.chartOptions.series=this.dataHolder,this.firstLoad=!0),this.chartSetup(this.chartOptions)}refresh(e=!1){e||(this.chartSetup(this.chartOptions),this.updateRange(this.dataHolder)),this.refreshHandlers.forEach(e=>e(this.chartOptions))}setSubTitle(e,t=0){this.chartOptions.title.show=!0;let a="";e.forEach((r,s)=>{if(Array.isArray(r.value)&&!r.value.length)return;const o=Array.isArray(r.value)?r.value.join("/"):r.value;a+=`{a|${r.label}}`,void 0!==o&&(a+=`{b|${o}}`),s+1<e.length&&(a+=t>0&&(s+1)%t==0?"\n":"{a| · }")}),this.chartOptions.title.text=a}chartSetup(e){}createDataHolder(){throw new Error("Must implement data holder creation")}addData(e,t){this.removeOldData(this.dataHolder,this.range),this.addNewData(this.dataHolder,e,t,this.isFirstLoad()),this.hasSelectedSeries()&&(this.updateRange(this.dataHolder),this.firstLoad&&(this.firstLoad=!1),this.refresh(!0))}hasSelectedSeries(){return!this.selectedSeries||Object.values(this.selectedSeries).some(e=>!0===e)}removeOldData(e,t){this.disableOldDataRemoval||e[0].data.length>t&&e.forEach(e=>e.data.shift())}addNewData(e,t,a,r){}setSelectedSeries(e){this.selectedSeries=e}updateRange(e,t){if(this.disableRangeUpdate)return;const[a]=s.calculateMaxChartValueAndDivisions(e,t,this.selectedSeries);this.chartOptions.yAxis.max=a}isFirstLoad(){return this.firstLoad}getDefaultChartOptions(){return{title:{show:!1,text:"",left:"center",textStyle:{overflow:"breakAll",rich:{a:{fontWeight:400,fontSize:14},b:{color:s.cssVar("--secondary-color"),fontWeight:400,fontSize:14}}}},animation:!1,color:s.COLORS,legend:{right:"15%",top:"6%",textStyle:{overflow:"truncate"},icon:"circle"},tooltip:{trigger:"axis",axisPointer:{animation:!1,label:{formatter:function(e){return r.b.format(e.value,"{HH}:{mm}:{ss}",!1)}}}},grid:{containLabel:!0,left:40},xAxis:{type:"time",splitLine:{show:!0},axisLabel:{hideOverlap:!0,padding:8,formatter:{hour:"{bold|{HH}:{mm}}",minute:"{bold|{HH}:{mm}}",second:"{HH}:{mm}:{ss}"},color:s.cssVar("--gray-color-dark"),rich:{bold:{fontWeight:500}}}},yAxis:{type:"value",splitLine:{show:!0},axisLabel:{color:s.cssVar("--gray-color-dark")},axisTick:{lineStyle:{type:"solid"}}},textStyle:{fontFamily:s.cssVar("--main-font"),fontWeight:400}}}static getMaxValueFromDataHolder(e,t){const a=e.filter(e=>!t||angular.isUndefined(t[e.name])||!0===t[e.name]).map(e=>s.getMaxValueForDataSeries(e));return Math.max(1,...a)}static getMaxValueForDataSeries(e){return Math.max(...e.data.map(e=>e.value[1]))}static calculateMaxChartValueAndDivisions(e,t,a){let r;r=Array.isArray(e)?s.getMaxValueFromDataHolder(e,a):s.getMaxValueForDataSeries(e);const o=Math.ceil(r*(t||s.DEFAULT_MULTIPLIER))||1;return[o,Math.ceil(o/s.MAXIMUM_DIVISIONS)]}static getIntegerRangeForValues(e,t,a){const[r,o]=s.calculateMaxChartValueAndDivisions(e,t,a);return[r,o]}static formatBytesValue(e,t,a){let r=e;t&&(r=s.getMaxValueFromDataHolder(t,a));const o=Math.floor(Math.log(r)/Math.log(1024));return`${(parseFloat(e)/Math.pow(1024,o)).toFixed(2)} ${["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][o]}`}formatNumber(e){if(!angular.isUndefined(e)&&this.filter)return this.filter("currency")(e,"",0)}}},71:function(e,t){angular.module("graphdb.framework.rest.cluster.service",[]).factory("ClusterRestService",a),a.$inject=["$http"];function a(e){return{getClusterConfig:function(){return e.get("rest/cluster/config")},createCluster:function(t){return e.post("rest/cluster/config",t)},updateCluster:function(t){t.nodes&&delete t.nodes;return e.patch("rest/cluster/config",t)},deleteCluster:function(t){const a=$.param({force:t});return e.delete("rest/cluster/config?"+a)},addNodesToCluster:function(t){return e.post("rest/cluster/config/node",{nodes:t})},replaceNodesInCluster:function(t){return e.patch("rest/cluster/config/node",t)},removeNodesFromCluster:function(t){return e.delete("rest/cluster/config/node",{data:{nodes:t},headers:{"Content-Type":"application/json"}})},getClusterStatus:function(){return e.get("rest/cluster/group/status")},getNodeStatus:function(){return e.get("rest/cluster/node/status")}}}}}]);
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[4,57,84,85,86,87,88,89,90,91,92,241,245],{105:function(e,t,a){"use strict";a.r(t),a.d(t,"HeapMemoryChart",(function(){return s}));var r=a(66);class s extends r.ChartData{constructor(e){super(e,!1,!1)}chartSetup(e){const t={yAxis:{axisLabel:{formatter:e=>this.hasSelectedSeries()?s.formatBytesValue(e,this.dataHolder,this.selectedSeries):s.formatBytesValue(e,this.dataHolder)},min:0},tooltip:{valueFormatter:e=>s.formatBytesValue(e,null,this.selectedSeries)}};_.merge(e,t)}createDataHolder(){return[{name:this.translateService.instant("resource.memory.committed"),type:"line",showSymbol:!1,smooth:!0,data:[]},{name:this.translateService.instant("resource.memory.used"),type:"line",areaStyle:{opacity:r.ChartData.AREA_BAR_OPACITY},showSymbol:!1,smooth:!0,data:[]}]}translateLabels(){const[e,t]=this.dataHolder;e.name=this.translateService.instant("resource.memory.committed"),t.name=this.translateService.instant("resource.memory.used"),this.configureSubtitle()}addNewData(e,t,a){const[r,s]=e,o=this.parseData(a);this.latestData={committed:o.committed,used:o.used,max:o.max},r.data.push({value:[t,o.committed]}),s.data.push({value:[t,o.used]}),this.configureSubtitle()}configureSubtitle(){if(this.latestData.max>0){const e=[{label:this.translateService.instant("resource.memory.heap.max"),value:s.formatBytesValue(this.latestData.max,null,this.selectedSeries)}];this.setSubTitle(e)}}parseData(e){return e.heapMemoryUsage}updateRange(e,t,a){super.updateRange(e,t,a)}}},142:function(e,t,a){"use strict";a.r(t);a(7),a(29),a(31),a(71);var r=a(207),s=a(105),o=a(208),i=a(209),n=a(210),l=a(211),c=a(212),u=a(213),h=a(214),d=a(215);angular.module("graphdb.framework.jmx.resources.controllers",["ui.bootstrap","graphdb.framework.core.services.repositories","graphdb.framework.rest.monitoring.service","graphdb.framework.rest.cluster.service"]).controller("ResourcesCtrl",["$scope","$timeout","MonitoringRestService","$translate","$repositories","$q","ClusterRestService","$filter",function(e,t,a,m,p,f,S,g){e.AVAILABLE_TABS=Object.freeze({RESOURCE_MONITOR:"resource",PERFORMANCE_MONITOR:"performance",CLUSTER_HEALTH:"cluster"});const y=window.location.hash.slice(1),v=Object.keys(e.AVAILABLE_TABS).find(t=>e.AVAILABLE_TABS[t]===y);e.activeTab=e.AVAILABLE_TABS[v]||e.AVAILABLE_TABS.RESOURCE_MONITOR,e.resourceMonitorData={error:{hasError:!1,message:"",retries:0},charts:{cpuLoad:new i.CpuLoadChart(m),fileDescriptors:new r.FileDescriptorsChart(m,g),heapMemory:new s.HeapMemoryChart(m),offHeapMemory:new o.NonHeapMemoryChart(m),diskStorage:new n.DiskStorageChart(m)}},e.performanceMonitorData={error:{hasError:!1,message:"",retries:0},charts:{connectionsChart:new u.ConnectionsChart(m),epoolChart:new d.EpoolChart(m),queriesChart:new l.QueriesChart(m)}},e.structuresMonitorData={error:{hasError:!1,message:"",retries:0},charts:{globalCacheChart:new c.GlobalCacheChart(m,g)}},e.clusterHealthData={error:{hasError:!1,message:"",retries:0},charts:{clusterHealthChart:new h.ClusterHealthChart(m)}},e.hasCluster=!1;e.loader=!0,e.switchTab=t=>{e.activeTab=t,window.location.hash=t},e.getActiveRepository=function(){return p.getActiveRepository()};const D=function(e){return a.monitorQueryTransactionStatistics(e).then((function(e){return e.data}))},b=function(e){return a.monitorQuery(e).then((function(e){return e.data}))},C=function(){return a.monitorCluster()},w=e=>{if(e.chartsHolder.error.hasError){if(3===e.chartsHolder.error.retries)return e.poll&&t.cancel(e.poll),Promise.resolve();e.chartsHolder.error.retries++}return e.fetchFn().then((function(t){x(t,e)})).then(()=>{O(e)}).catch(t=>{A(e,t)}).finally(()=>{e.poll&&t.cancel(e.poll),e.poll=t(()=>w(e),2e3)})},x=(e,t,a)=>{const r=e.data;r&&H(r,t,a)},H=(e,t,a)=>{const r=new Date;a?a(r,e):Object.values(t.chartsHolder.charts).forEach(t=>{t.addData(r,e)})},A=(e,t)=>{e.chartsHolder.error.hasError=!!t,e.chartsHolder.error.hasError&&(e.chartsHolder.error.message=getError(t))},O=e=>{e.chartsHolder.error.hasError=!1,e.chartsHolder.error.message=""};e.monitors=[],e.monitors.push({chartsHolder:e.resourceMonitorData,error:{hasError:!1,message:"",retries:0},fetchFn:function(){return a.monitorResources()},poll:null}),e.monitors.push({chartsHolder:e.structuresMonitorData,error:{hasError:!1,message:"",retries:0},fetchFn:function(){const t=e.getActiveRepository();return t?a.monitorStructures(t):Promise.resolve({})},poll:null}),e.monitors.push({chartsHolder:e.performanceMonitorData,error:{hasError:!1,message:"",retries:0},fetchFn:function(){const t=e.getActiveRepository();return t?f.all([D(t),b(t)]).then(e=>{const[t,a]=e;return{data:{performanceData:t,activeQueryData:a}}}):Promise.resolve({})},poll:null}),S.getNodeStatus().then(()=>{e.hasCluster=!0;const t={chartsHolder:e.clusterHealthData,fetchFn:C,poll:null};e.monitors.push(t),w(t)}).catch(()=>{e.hasCluster=!1});let R=null;f.all(e.monitors.map(e=>w(e))).finally(()=>{e.loader&&(R&&t.cancel(R),R=t((function(){e.loader=!1}),500))}),e.$on("$destroy",(function(){R&&t.cancel(R);for(const a of e.monitors)a.poll&&t.cancel(a.poll)}))}])},207:function(e,t,a){"use strict";a.r(t),a.d(t,"FileDescriptorsChart",(function(){return s}));var r=a(66);class s extends r.ChartData{constructor(e,t){super(e,!1,!1,t)}chartSetup(e){const t={yAxis:{axisLabel:{formatter:e=>this.formatNumber(e)},min:0},tooltip:{valueFormatter:e=>this.formatNumber(e)}};_.merge(e,t)}createDataHolder(){return[{name:this.translateService.instant("resource.system.file_descriptors.open"),type:"line",areaStyle:{opacity:r.ChartData.AREA_BAR_OPACITY},showSymbol:!1,smooth:!0,color:r.ChartData.COLORS[1],data:[]}]}translateLabels(){const[e]=this.dataHolder;e.name=this.translateService.instant("resource.system.file_descriptors.open"),this.configureSubtitle()}addNewData(e,t,a){this.latestData={maxFileDescriptors:a.maxFileDescriptors,openFileDescriptors:a.openFileDescriptors},this.configureSubtitle(),a.openFileDescriptors&&e[0].data.push({value:[t,a.openFileDescriptors]})}configureSubtitle(){let e;e=this.latestData.openFileDescriptors?[{label:this.translateService.instant("resource.system.file_descriptors.max"),value:this.formatNumber(this.latestData.maxFileDescriptors)}]:[{label:this.translateService.instant("resource.system.file_descriptors.only_unix")}],this.setSubTitle(e)}updateRange(e){super.updateRange(e,2)}}},208:function(e,t,a){"use strict";a.r(t),a.d(t,"NonHeapMemoryChart",(function(){return s}));var r=a(105);class s extends r.HeapMemoryChart{constructor(e){super(e,!1,!1)}parseData(e){return e.nonHeapMemoryUsage}}},209:function(e,t,a){"use strict";a.r(t),a.d(t,"CpuLoadChart",(function(){return s}));var r=a(66);class s extends r.ChartData{constructor(e){super(e,!1,!1)}chartSetup(e){const t={yAxis:{axisLabel:{formatter:e=>e+"%"},min:0,max:function(e){return Math.round(e.max>50?100:2*e.max)}},tooltip:{valueFormatter:function(e){return e+"%"}}};_.merge(e,t)}createDataHolder(){return[{name:this.translateService.instant("resource.system.cpu_load.label"),type:"line",smoothMonotone:"x",showSymbol:!1,smooth:!0,data:[]}]}translateLabels(){const[e]=this.dataHolder;e.name=this.translateService.instant("resource.system.cpu_load.label")}addNewData(e,t,a){e[0].data.push({value:[t,this.formatValue(a.cpuLoad)]})}formatValue(e){return+parseFloat(e).toFixed(4)}updateRange(e){}}},210:function(e,t,a){"use strict";a.r(t),a.d(t,"DiskStorageChart",(function(){return s}));var r=a(66);class s extends r.ChartData{constructor(e){super(e,!0,!0)}chartSetup(e){const t={height:250,tooltip:{trigger:"axis",axisPointer:{type:"shadow",label:null},valueFormatter:function(e){return(100*e).toFixed(2)+"%"}},xAxis:{type:"value",min:0,max:1,splitNumber:2,axisLabel:{formatter:function(e){return(100*e).toFixed(2)+"%"}}},yAxis:{type:"category",data:[this.translateService.instant("resource.storage.logs"),this.translateService.instant("resource.storage.work"),this.translateService.instant("resource.storage.data")]},legend:{itemStyle:{opacity:1}}};_.merge(e,t)}createDataHolder(){return[this.createDataHolderForItem("resource.storage.used",r.ChartData.COLORS[1]),this.createDataHolderForItem("resource.storage.free",r.ChartData.COLORS[0])]}createDataHolderForItem(e,t){return{name:this.translateService.instant(e),type:"bar",stack:!0,showSymbol:!1,smooth:!0,barCategoryGap:"10%",color:t,itemStyle:{opacity:r.ChartData.AREA_BAR_OPACITY},label:{show:!0,color:"black",opacity:1,formatter:function({value:e}){return(100*e).toFixed(2)+"%"}},emphasis:{itemStyle:{color:t,opacity:1},label:{color:"white"}},data:[]}}translateLabels(){const[e,t]=this.dataHolder;e.name=this.translateService.instant("resource.storage.used"),t.name=this.translateService.instant("resource.storage.free"),this.chartSetup(this.chartOptions),this.configureSubtitle()}addNewData(e,t,a,r){const s=a.storageMemory,[o,i]=e;this.latestData={data:{used:s.dataDirUsed,free:s.dataDirFree},work:{used:s.workDirUsed,free:s.workDirFree},logs:{used:s.logsDirUsed,free:s.logsDirFree}},this.configureSubtitle();const n=s.dataDirUsed+s.dataDirFree,l=s.workDirUsed+s.workDirFree,c=s.logsDirUsed+s.logsDirFree,u=s.dataDirUsed/n,h=s.workDirUsed/l,d=s.logsDirUsed/c,m=s.dataDirFree/n,p=s.workDirFree/l,f=s.logsDirFree/c;o.data.push(d,h,u),i.data.push(f,p,m)}configureSubtitle(){const e=[{label:this.translateService.instant("resource.storage.subtitle.data"),value:[s.formatBytesValue(this.latestData.data.used,null,this.selectedSeries),s.formatBytesValue(this.latestData.data.free,null,this.selectedSeries)]},{label:this.translateService.instant("resource.storage.subtitle.work"),value:[s.formatBytesValue(this.latestData.work.used,null,this.selectedSeries),s.formatBytesValue(this.latestData.work.free,null,this.selectedSeries)]},{label:this.translateService.instant("resource.storage.subtitle.logs"),value:[s.formatBytesValue(this.latestData.logs.used,null,this.selectedSeries),s.formatBytesValue(this.latestData.logs.free,null,this.selectedSeries)]}];this.setSubTitle(e)}}},211:function(e,t,a){"use strict";a.r(t),a.d(t,"QueriesChart",(function(){return s}));var r=a(66);class s extends r.ChartData{constructor(e){super(e,!1,!1)}createDataHolder(){return[{name:this.translateService.instant("resource.queries.running"),type:"line",showSymbol:!1,smooth:!0,data:[]}]}translateLabels(){const[e]=this.dataHolder;e.name=this.translateService.instant("resource.queries.running"),this.configureSubtitle()}addNewData(e,t,a){const{activeQueryData:r,performanceData:s}=a;this.latestData={slowQueries:s.queries.slow,suboptimal:s.queries.suboptimal,activeQueryData:r,performanceData:s},e[0].data.push({value:[t,r.length]}),this.configureSubtitle()}updateRange(e,t){const[a,s]=r.ChartData.getIntegerRangeForValues(e,this.selectedSeries);this.chartOptions.yAxis.max=a,this.chartOptions.yAxis.minInterval=s}configureSubtitle(){const e=[{label:this.translateService.instant("resource.queries.slow"),value:this.latestData.slowQueries},{label:this.translateService.instant("resource.queries.suboptimal"),value:this.latestData.suboptimal}];this.setSubTitle(e)}}},212:function(e,t,a){"use strict";a.r(t),a.d(t,"GlobalCacheChart",(function(){return s}));var r=a(66);class s extends r.ChartData{constructor(e,t){super(e,!1,!1,t)}chartSetup(e){const t={yAxis:{axisLabel:{formatter:e=>this.formatNumber(e)},minInterval:1},tooltip:{valueFormatter:e=>this.formatNumber(e)}};_.merge(e,t)}createDataHolder(){return[{name:this.translateService.instant("resources.global_cache.hits"),type:"line",showSymbol:!1,smooth:!0,data:[]},{name:this.translateService.instant("resources.global_cache.miss"),type:"line",showSymbol:!1,smooth:!0,data:[]}]}translateLabels(){const[e,t]=this.dataHolder;e.name=this.translateService.instant("resources.global_cache.hits"),t.name=this.translateService.instant("resources.global_cache.miss")}addNewData(e,t,a){const[r,s]=e;r.data.push({value:[t,a.cacheHit]}),s.data.push({value:[t,a.cacheMiss]})}}},213:function(e,t,a){"use strict";a.r(t),a.d(t,"ConnectionsChart",(function(){return s}));var r=a(66);class s extends r.ChartData{constructor(e){super(e,!1,!1)}createDataHolder(){return[{name:this.translateService.instant("resource.connections.active"),type:"line",showSymbol:!1,smooth:!0,data:[]},{name:this.translateService.instant("resource.connections.open"),type:"line",showSymbol:!1,smooth:!0,data:[]}]}translateLabels(){const[e,t]=this.dataHolder;e.name=this.translateService.instant("resource.connections.active"),t.name=this.translateService.instant("resource.connections.open")}addNewData(e,t,a){const[r,s]=e,{activeTransactions:o,openConnections:i}=a.performanceData;r.data.push({value:[t,o]}),s.data.push({value:[t,i]})}updateRange(e,t){const[a,s]=r.ChartData.getIntegerRangeForValues(e,this.selectedSeries);this.chartOptions.yAxis.max=a,this.chartOptions.yAxis.minInterval=s}}},214:function(e,t,a){"use strict";a.r(t),a.d(t,"ClusterHealthChart",(function(){return s}));var r=a(66);class s extends r.ChartData{constructor(e){super(e,!0,!1),this.nodesCount=0}createDataHolder(){const[e,t,a,r]=s.COLORS;return[{name:this.translateService.instant("resources.cluster_health.in_sync"),type:"line",stack:"nodes",showSymbol:!1,step:"middle",areaStyle:{},lineStyle:{width:0},color:e,data:[]},{name:this.translateService.instant("resources.cluster_health.syncing"),type:"line",stack:"nodes",showSymbol:!1,step:"middle",areaStyle:{},lineStyle:{width:0},color:a,data:[]},{name:this.translateService.instant("resources.cluster_health.out_sync"),type:"line",stack:"nodes",showSymbol:!1,step:"middle",areaStyle:{},lineStyle:{width:0},color:t,data:[]},{name:this.translateService.instant("resources.cluster_health.disconnected"),type:"line",stack:"nodes",showSymbol:!1,step:"middle",areaStyle:{},lineStyle:{width:0},color:r,data:[]}]}addNewData(e,t,a){const r=a.nodesStats;this.nodesCount=r.nodesInCluster;const[s,o,i,n]=e;this.latestData={nodesInSync:r.nodesInCluster,nodesOutOfSync:r.nodesOutOfSync,nodesDisconnected:r.nodesDisconnected,nodesSyncing:r.nodesSyncing,term:a.term,failureRecoveriesCount:a.failureRecoveriesCount,failedTransactionsCount:a.failedTransactionsCount},s.data.push({value:[t,r.nodesInSync]}),i.data.push({value:[t,r.nodesOutOfSync]}),n.data.push({value:[t,r.nodesDisconnected]}),o.data.push({value:[t,r.nodesSyncing]}),this.configureSubtitle()}translateLabels(){const[e,t,a,r]=this.dataHolder;e.name=this.translateService.instant("resources.cluster_health.in_sync"),t.name=this.translateService.instant("resources.cluster_health.syncing"),a.name=this.translateService.instant("resources.cluster_health.out_sync"),r.name=this.translateService.instant("resources.cluster_health.disconnected"),this.configureSubtitle()}updateRange(e,t){this.chartOptions.yAxis.max=this.nodesCount,this.chartOptions.yAxis.splitNumber=this.nodesCount}configureSubtitle(){const e=[{label:this.translateService.instant("resource.cluster_health.leader_elections"),value:this.latestData.term},{label:this.translateService.instant("resource.cluster_health.recoveries"),value:this.latestData.failureRecoveriesCount},{label:this.translateService.instant("resource.cluster_health.failed_transactions"),value:this.latestData.failedTransactionsCount}];this.setSubTitle(e)}}},215:function(e,t,a){"use strict";a.r(t),a.d(t,"EpoolChart",(function(){return s}));var r=a(66);class s extends r.ChartData{constructor(e){super(e,!1,!1)}chartSetup(e){const t={grid:{containLabel:!0,left:40},yAxis:[{name:this.translateService.instant("resource.epool.reads"),nameLocation:"middle",type:"value",nameGap:40},{name:this.translateService.instant("resource.epool.writes"),nameLocation:"middle",type:"value",nameGap:40}]};_.merge(e,t)}createDataHolder(){return[{name:this.translateService.instant("resource.epool.reads"),type:"line",showSymbol:!1,smooth:!0,yAxisIndex:0,data:[]},{name:this.translateService.instant("resource.epool.writes"),type:"line",showSymbol:!1,smooth:!0,yAxisIndex:1,data:[]}]}translateLabels(){const[e,t]=this.dataHolder;e.name=this.translateService.instant("resource.epool.reads"),t.name=this.translateService.instant("resource.epool.writes"),this.chartSetup(this.chartOptions)}addNewData(e,t,a,r){const s=a.performanceData,[o,i]=e;let n=0,l=0;const c=s.entityPool.epoolReads,u=s.entityPool.epoolWrites;r||(n=c-this.lastestData.reads,l=u-this.lastestData.writes),this.lastestData={reads:c,writes:u},o.data.push({value:[t,n]}),i.data.push({value:[t,l]})}updateRange(e){e.forEach((e,t)=>{const[a,s]=r.ChartData.getIntegerRangeForValues(e,this.selectedSeries);this.chartOptions.yAxis[t].max=a,this.chartOptions.yAxis[t].minInterval=s})}}},66:function(e,t,a){"use strict";a.r(t),a.d(t,"ChartData",(function(){return s}));var r=a(447);class s{static get DEFAULT_MULTIPLIER(){return 1.2}static get MAXIMUM_DIVISIONS(){return 10}static get COLORS(){return[s.cssVar("--secondary-color"),s.cssVar("--primary-color"),s.cssVar("--tertiary-color"),s.cssVar("--gray-color")]}static get AREA_BAR_OPACITY(){return.5}static cssVar(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}constructor(e,t,a,r){this.filter=r,this.disableRangeUpdate=t,this.disableOldDataRemoval=a,this.translateService=e,this.refreshHandlers=[],this.initialChartSetup()}registerRefreshHandler(e){this.refreshHandlers.push(e)}unregisterRefreshHandler(e){const t=this.refreshHandlers.indexOf(e);t>-1&&this.refreshHandlers.splice(t,1)}initialChartSetup(e=!0){this.range=150,this.chartOptions=this.getDefaultChartOptions(this.translateService),e&&(this.dataHolder=this.createDataHolder(),this.chartOptions.series=this.dataHolder,this.firstLoad=!0),this.chartSetup(this.chartOptions)}refresh(e=!1){e||(this.chartSetup(this.chartOptions),this.updateRange(this.dataHolder)),this.refreshHandlers.forEach(e=>e(this.chartOptions))}setSubTitle(e,t=0){this.chartOptions.title.show=!0;let a="";e.forEach((r,s)=>{if(Array.isArray(r.value)&&!r.value.length)return;const o=Array.isArray(r.value)?r.value.join("/"):r.value;a+=`{a|${r.label}}`,void 0!==o&&(a+=`{b|${o}}`),s+1<e.length&&(a+=t>0&&(s+1)%t==0?"\n":"{a| · }")}),this.chartOptions.title.text=a}chartSetup(e){}createDataHolder(){throw new Error("Must implement data holder creation")}addData(e,t){this.removeOldData(this.dataHolder,this.range),this.addNewData(this.dataHolder,e,t,this.isFirstLoad()),this.hasSelectedSeries()&&(this.updateRange(this.dataHolder),this.firstLoad&&(this.firstLoad=!1),this.refresh(!0))}hasSelectedSeries(){return!this.selectedSeries||Object.values(this.selectedSeries).some(e=>!0===e)}removeOldData(e,t){this.disableOldDataRemoval||e[0].data.length>t&&e.forEach(e=>e.data.shift())}addNewData(e,t,a,r){}setSelectedSeries(e){this.selectedSeries=e}updateRange(e,t){if(this.disableRangeUpdate)return;const[a]=s.calculateMaxChartValueAndDivisions(e,t,this.selectedSeries);this.chartOptions.yAxis.max=a}isFirstLoad(){return this.firstLoad}getDefaultChartOptions(){return{title:{show:!1,text:"",left:"center",textStyle:{overflow:"breakAll",rich:{a:{fontWeight:400,fontSize:14},b:{color:s.cssVar("--secondary-color"),fontWeight:400,fontSize:14}}}},animation:!1,color:s.COLORS,legend:{right:"15%",top:"6%",textStyle:{overflow:"truncate"},icon:"circle"},tooltip:{trigger:"axis",axisPointer:{animation:!1,label:{formatter:function(e){return r.b.format(e.value,"{HH}:{mm}:{ss}",!1)}}}},grid:{containLabel:!0,left:40},xAxis:{type:"time",splitLine:{show:!0},axisLabel:{hideOverlap:!0,padding:8,formatter:{hour:"{bold|{HH}:{mm}}",minute:"{bold|{HH}:{mm}}",second:"{HH}:{mm}:{ss}"},color:s.cssVar("--gray-color-dark"),rich:{bold:{fontWeight:500}}}},yAxis:{type:"value",splitLine:{show:!0},axisLabel:{color:s.cssVar("--gray-color-dark")},axisTick:{lineStyle:{type:"solid"}}},textStyle:{fontFamily:s.cssVar("--main-font"),fontWeight:400}}}static getMaxValueFromDataHolder(e,t){const a=e.filter(e=>!t||angular.isUndefined(t[e.name])||!0===t[e.name]).map(e=>s.getMaxValueForDataSeries(e));return Math.max(1,...a)}static getMaxValueForDataSeries(e){return Math.max(...e.data.map(e=>e.value[1]))}static calculateMaxChartValueAndDivisions(e,t,a){let r;r=Array.isArray(e)?s.getMaxValueFromDataHolder(e,a):s.getMaxValueForDataSeries(e);const o=Math.ceil(r*(t||s.DEFAULT_MULTIPLIER))||1;return[o,Math.ceil(o/s.MAXIMUM_DIVISIONS)]}static getIntegerRangeForValues(e,t,a){const[r,o]=s.calculateMaxChartValueAndDivisions(e,t,a);return[r,o]}static formatBytesValue(e,t,a){let r=e;t&&(r=s.getMaxValueFromDataHolder(t,a));const o=Math.floor(Math.log(r)/Math.log(1024));return`${(parseFloat(e)/Math.pow(1024,o)).toFixed(2)} ${["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][o]}`}formatNumber(e){if(!angular.isUndefined(e)&&this.filter)return this.filter("currency")(e,"",0)}}},71:function(e,t){angular.module("graphdb.framework.rest.cluster.service",[]).factory("ClusterRestService",a),a.$inject=["$http"];function a(e){return{getClusterConfig:function(){return e.get("rest/cluster/config")},createCluster:function(t){return e.post("rest/cluster/config",t)},updateCluster:function(t){t.nodes&&delete t.nodes;return e.patch("rest/cluster/config",t)},deleteCluster:function(t){const a=$.param({force:t});return e.delete("rest/cluster/config?"+a)},addNodesToCluster:function(t){return e.post("rest/cluster/config/node",{nodes:t})},replaceNodesInCluster:function(t){return e.patch("rest/cluster/config/node",t)},removeNodesFromCluster:function(t){return e.delete("rest/cluster/config/node",{data:{nodes:t},headers:{"Content-Type":"application/json"}})},getClusterStatus:function(){return e.get("rest/cluster/group/status")},getNodeStatus:function(){return e.get("rest/cluster/node/status")}}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[40,73,119,246],{125:function(n,e,t){"use strict";t.r(e);t(35),t(90);function o(n){const e=[];return Object.keys(n).forEach((function(t){e.push(encodeURIComponent(t)+"="+encodeURIComponent(n[t]))})),e.join("&")}function r(n,e){return _.reduce(n,(function(n,t){if(""===t.key&&""===t.value);else{if(""===t.key)throw new Error(e.instant("externalsync.empty.value.key.error",{value:t.value}));if(n.hasOwnProperty(t.key))throw new Error(e.instant("externalsync.duplicate.key.error",{key:t.key}));n[t.key]=t.value}return n}),{})}function i(n,e){for(let o=0;o<e.length;o++){const r=e[o];if("StringArray"===r.__type)n[r.__name]||(n[r.__name]=[""]);else if("OptionArray"===r.__type)if(n[r.__name])for(let e=0;e<r.__childOptions.length;e++){const t=r.__childOptions[e];if("Boolean"===t.__type)for(let e=0;e<n[r.__name].length;e++){const o=n[r.__name][e];!o.hasOwnProperty([t.__name])&&angular.isDefined(t.__defaultValue)&&(o[t.__name]=t.__defaultValue)}}else{n[r.__name]=[];const e={};for(let n=0;n<r.__childOptions.length;n++){const t=r.__childOptions[n];"StringArray"===t.__type?e[t.__name]=[""]:e[t.__name]=angular.isUndefined(t.__defaultValue)?"":t.__defaultValue}n[r.__name].push(e)}else"Map"===r.__type?n[r.__name]?n[r.__name]=(t=n[r.__name],_.map(t,(function(n,e){return{key:e,value:n}}))):n[r.__name]=[]:"JsonString"===r.__type?!n[r.__name]||n[r.__name]instanceof String||"string"==typeof n[r.__name]||(n[r.__name]=angular.toJson(n[r.__name],2)):angular.isUndefined(n[r.__name])&&(n[r.__name]=angular.isUndefined(r.__defaultValue)?"":r.__defaultValue)}var t;return n}function c(n,e,t){return n.post("repositories/"+e,o({query:t}),{headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/sparql-results+json","X-GraphDB-Local-Consistency":"updating"}})}function a(n){return n.substring(0,n.length-1)+"/instance#"}function s(n,e,t,o,i){const c=function n(e,t){const o={};return _.each(t,(function(t){angular.isDefined(e[t.__name])&&("OptionArray"===t.__type?(o[t.__name]=[],_.each(e[t.__name],(function(e){o[t.__name].push(n(e,t.__childOptions))}))):o[t.__name]=_.cloneDeep(e[t.__name]))})),o}(t,o);for(let n=0;n<o.length;n++)try{"Map"===o[n].__type?c[o[n].__name]=r(c[o[n].__name],$translate):"JsonString"===o[n].__type&&(c[o[n].__name]=angular.fromJson(c[o[n].__name]))}catch(e){return i(o[n].__label,e.message),null}!function n(e){Array.isArray(e)&&(e=_.filter(e,(function(n){return null!==n&&(!n.trim||""!==n.trim())})));return Object.keys(e).forEach((function(t){""!==e[t]&&null!=e[t]||!1===e[t]?"object"==typeof e[t]&&(e[t]=n(e[t])):delete e[t]})),e}(c);let s="";s+="PREFIX :<"+e+">\n";return s+="PREFIX inst:<"+a(e)+">\n",s+="INSERT DATA {\n",s+="\tinst:"+n+" :createConnector '''\n",s+=angular.toJson(c,2),s+="\n''' .\n}\n",s=s.replace(/\\/g,"\\\\\\"),s}function l(n,e,t,r,l,u,f,p,d,g){function m(e){n.beingBuiltConnector={percentDone:0,status:{processedEntities:0,estimatedEntities:0,indexedEntities:0,entitiesPerSecond:0},actionName:e?g.instant("externalsync.repairing"):g.instant("externalsync.creating"),waitOnRepairStartOnce:!!e,eta:"-",inline:!1,iri:null}}function y(e,t,o){return m(o),$.extend(n.beingBuiltConnector,{iri:a(e)+t,name:t,inline:!1,doneCallback:function(){n.beingBuiltConnector.modalInstance.dismiss("cancel")}}),n.beingBuiltConnector.modalInstance=r.open({templateUrl:"pages/connectorProgress.html",controller:"CreateProgressCtrl",size:"lg",backdrop:"static",scope:n}),n.beingBuiltConnector.modalInstance}function C(e,r,i){const c=y(e.value,r.name,!1);p.addStatements(t.getActiveRepository(),o({update:r.query})).then((function(){d.getConnectors().then((function(){d.hasConnector(encodeURIComponent(e.value)).then((function(t){n.existing[e.key]=t.data}))})),l.success(g.instant("created.connector",{name:r.name}))}),(function(n){l.error(getError(n)),i()})).finally((function(){c.dismiss("cancel")}))}n.loader=!1,n.controllers=[],n.existing={},n.definitions={},n.getLoaderMessage=function(){const e=(Date.now()-n.loaderStartTime)/1e3,t=n.getHumanReadableSeconds(e);let o="";return o=n.progressMessage?n.progressMessage+"... "+t:g.instant("common.running.operation",{timeHuman:t}),n.extraMessage&&e>10&&(o+="\n"+n.extraMessage),o},n.setLoader=function(e,t,o){e?(n.loader=!0,n.loaderStartTime=Date.now(),n.progressMessage=t,n.extraMessage=o):(n.loader=!1,n.progressMessage="",n.extraMessage="")},n.initConnector=function(e){return d.initConnector(encodeURIComponent(e.value)).then((function(t){return n.definitions[e.key]=t.data,d.hasConnector(encodeURIComponent(e.value)).then((function(t){n.existing[e.key]=t.data}))}))},n.getConnectors=function(){n.isLicenseValid()&&n.canWriteActiveRepo()&&(n.setLoader(!0,g.instant("externalsync.fetching.connectors"),g.instant("common.extra.message")),d.getConnectors().then((function(o){n.connectors=Object.keys(o.data).map((function(n){return{key:n,value:o.data[n]}})),f.all(_.map(n.connectors,(function(e){return n.initConnector(e)}))).finally((function(){m();const o=function(n){const e=_.map(n,(function(n){return"<"+n.value+"connectorStatus>"})).join("|");return e?"SELECT ?connector ?status { ?connector "+e+" ?status }":null}(n.connectors);o?function(n){return c(e,t.getActiveRepository(),n)}(o).then((function(e){const t=function(n){if(n.bindings)for(let e=0;e<n.bindings.length;e++)try{const t=JSON.parse(n.bindings[e].status.value);if("BUILDING"===t.status)return{connector:n.bindings[e].connector.value,status:t}}catch(n){console.error(n)}return{}}(e.data.results);if(t.connector){const e=t.connector.split(/#/);e[0]=e[0].replace(/\/instance$/,"#"),o=e[0],r=e[1],m(),$.extend(n.beingBuiltConnector,{iri:a(o)+r,name:r,inline:!0,doneCallback:function(){n.beingBuiltConnector.inline=!1}})}var o,r})).finally((function(){n.setLoader(!1)})):n.setLoader(!1)}))})).catch((function(e){n.setLoader(!1),l.error(getError(e),g.instant("externalsync.could.not.get.connectors.error"))})),n.existing={})},n.getOptions=function(e){return n.definitions[e.key]},n.isEmpty=function(n){return angular.isObject(n)&&0===Object.keys(n).length},n.toPrettyJson=function(n){return angular.toJson(n,2)},n.$watch((function(){return t.getActiveRepository()}),n.getConnectors),n.$watch((function(){return t.getActiveLocation()}),n.getConnectors),n.copyConnector=function(e,t){let o;angular.isUndefined(t)||(o=_.cloneDeep(t),o.name=o.name+"-copy");r.open({templateUrl:"pages/createConnector.html",controller:"CreateConnectorCtrl",size:"lg",backdrop:"static",resolve:{connector:function(){return e},values:function(){return angular.isUndefined(o)?{name:"",values:{}}:o},options:function(){return n.getOptions(e)}}}).result.then((function(t){C(e,t,(function(){t.skipConversion=!0,n.newConnector(e,t)}))}))},n.newConnector=function(e,t){r.open({templateUrl:"pages/createConnector.html",controller:"CreateConnectorCtrl",size:"lg",backdrop:"static",resolve:{connector:function(){return e},values:function(){return angular.isUndefined(t)?{name:"",values:{}}:t},options:function(){return n.getOptions(e)}}}).result.then((function(t){C(e,t,(function(){t.skipConversion=!0,n.newConnector(e,t)}))}))},n.repair=function(e,r){u.openSimpleModal({title:g.instant("externalsync.confirm.repair"),message:g.instant("externalsync.repair.warning.msg"),warning:!0}).result.then((function(){const i=y(r.value,e.name,!0),c=(s=e.name,"PREFIX prefix:<"+(u=r.value)+">\nINSERT DATA {\n\t<"+a(u)+s+'> prefix:repairConnector ""\n}');var s,u;p.addStatements(t.getActiveRepository(),o({update:c})).then((function(){d.getConnectors().then((function(){d.hasConnector(encodeURIComponent(r.value)).then((function(e){n.existing[r.key]=e.data}))})),l.success(g.instant("externalsync.repair.success.msg",{name:e.name}))}),(function(n){l.error(getError(n))})).finally((function(){i.dismiss("cancel")}))}))},n.delete=function(e,i){const c=i.key.indexOf("Elastic")>=0||i.key.indexOf("Solr")>=0;r.open({templateUrl:"js/angular/externalsync/templates/deleteConnector.html",controller:"DeleteConnectorCtrl",resolve:{popoverMsg:function(){return c?g.instant("delete.connector.conditional",{type:i.key}):""}}}).result.then((function(r){n.setLoader(!0,g.instant("externalsync.delete.progress.msg",{name:e.name}),g.instant("externalsync.extra.message.warning"));const a=function(n,e,t){const o=e.substring(0,e.length-1)+"/instance#";return"PREFIX prefix:<"+e+">\nINSERT DATA {\n\t<"+o+n+'> prefix:dropConnector "'+(t?"force":"")+'"\n}'}(e.name,i.value,r);p.addStatements(t.getActiveRepository(),o({update:a})).then((function(){d.getConnectors().then((function(){d.hasConnector(encodeURIComponent(i.value)).then((function(e){n.existing[i.key]=e.data}))})),r?(l.success(g.instant("externalsync.delete.force.success.msg",{name:e.name})),c&&l.warning(g.instant("externalsync.delete.remote.warning",{key:i.key}))):l.success(g.instant("externalsync.delete.success.msg",{name:e.name}))}),(function(n){l.error(getError(n))})).finally((function(){n.setLoader(!1)}))}))},n.viewQuery=function(e,t){r.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:function(){const o=n.getOptions(e);return s(t.name,e.value,i(t.values,o),o)}}})}}function u(n,e,t){n.force=!1,n.popoverMsg=t,n.ok=function(){e.close(n.force)},n.cancel=function(){e.dismiss()}}function f(n,e,t,o,r){function i(){return s(n.name,t.value,n.values,n.options,(function(n,e){r.error(e,n)}))}n.connector=t,n.addField=function(e,t){const o=_.cloneDeep(n.defaultValues[t][0]);n.values[t].splice(e+1,0,o)},n.addOption=function(n,e){e.splice(n+1,0,"")},n.deleteOption=function(n,e){e.splice(n,1)},n.addMapOption=function(n,e){e.splice(n+1,0,{key:"",value:""})},n.deleteMapOption=function(n,e){e.splice(n,1)},n.ok=function(){if(n.form.$valid){const t=i();t&&e.close({name:n.name,values:n.values,options:n.options,query:t})}},n.viewQuery=function(){const n=i();n&&o.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:function(){return n}}})},n.cancel=function(){e.dismiss("cancel")}}function p(n,e,t,o,r,c,a,s){angular.extend(this,e("ExtendNewConnectorCtrl",{$scope:n,$uibModalInstance:o,connector:r,$uibModal:c})),n.values=a.values,n.options=s,n.name=a.name,a.skipConversion||(n.values=i(n.values,n.options)),n.defaultValues=_.cloneDeep(n.values)}function d(n,e,t,o,r){function i(){const i=function(n){const e=n.replace(/\/instance#.+$/,"#connectorStatus");let t="";return t+="SELECT ?status {\n",t+="\t<"+n+"> <"+e+"> ?status",t+="\n}",t}(n.beingBuiltConnector.iri);n.beingBuiltConnector.iri=null,n.progressInterval=e((function(){(function(n){return c(t,o.getActiveRepository(),n)})(i).then((function(t){const o=function(n){if(n.bindings&&n.bindings.length>0)try{return JSON.parse(n.bindings[0].status.value)}catch(n){console.error(n)}return{}}(t.data.results);"BUILDING"===o.status?(n.beingBuiltConnector.status=o,n.beingBuiltConnector.percentDone=(100*o.processedEntities/o.estimatedEntities).toFixed(0),n.beingBuiltConnector.eta=n.getHumanReadableSeconds(o.etaSeconds),n.beingBuiltConnector.actionName=o.repair?r.instant("externalsync.repairing"):r.instant("externalsync.creating"),n.beingBuiltConnector.waitOnRepairStartOnce=!1):"BUILT"!==o.status||n.beingBuiltConnector.waitOnRepairStartOnce||(e.cancel(n.progressInterval),n.beingBuiltConnector.doneCallback&&n.beingBuiltConnector.doneCallback())}))}),1e3),n.$on("$destroy",(function(){e.cancel(n.progressInterval)}))}n.beingBuiltConnector=n.beingBuiltConnector||{},!n.beingBuiltConnector.inline&&n.beingBuiltConnector.iri&&i(),n.$watch("beingBuiltConnector.iri",(function(e){n.beingBuiltConnector.inline&&e&&i()}))}angular.module("graphdb.framework.externalsync.controllers",["graphdb.framework.rest.rdf4j.repositories.service","graphdb.framework.rest.connectors.service"]).controller("ConnectorsCtrl",l).controller("ExtendNewConnectorCtrl",f).controller("CreateConnectorCtrl",p).controller("CreateProgressCtrl",d).controller("DeleteConnectorCtrl",u).filter("ceil",(function(){return function(n){return Math.ceil(n)}})),l.$inject=["$scope","$http","$repositories","$uibModal","toastr","ModalService","$q","RDF4JRepositoriesRestService","ConnectorsRestService","$translate"],u.$inject=["$scope","$uibModalInstance","popoverMsg"],f.$inject=["$scope","$uibModalInstance","connector","$uibModal","toastr"],p.$inject=["$scope","$controller","$http","$uibModalInstance","connector","$uibModal","values","options"],d.$inject=["$scope","$interval","$http","$repositories","$translate"]},173:function(n,e,t){"use strict";t.r(e);t(7);angular.module("graphdb.framework.externalsync.directives",[]).directive("createProgress",(function(){return{templateUrl:"pages/connectorProgress.html",controller:"CreateProgressCtrl",restrict:"EA"}}))},264:function(n,e,t){"use strict";t.r(e);t(7),t(28),t(34),t(125),t(173);angular.module("graphdb.framework.externalsync",["graphdb.framework.core.controllers","graphdb.framework.externalsync.controllers","graphdb.framework.externalsync.directives","graphdb.framework.core.directives"]).filter("singular",(function(){return function(n){return angular.isUndefined(n)?n:n.replace(/ies$/,"y").replace(/s$/,"")}}))},90:function(n,e){angular.module("graphdb.framework.rest.connectors.service",[]).factory("ConnectorsRestService",t),t.$inject=["$http"];function t(n){return{getConnectors:function(){return n.get("rest/connectors")},initConnector:function(e){return n.get("rest/connectors/options?prefix="+e)},hasConnector:function(e){return n.get("rest/connectors/existing?prefix="+e)},checkConnector:function(e){return n.post("rest/connectors/check",e,{headers:{"Content-Type":"text/plain"}})}}}}}]);
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[40,73,119,246],{125:function(n,e,t){"use strict";t.r(e);t(35),t(90);function o(n){const e=[];return Object.keys(n).forEach((function(t){e.push(encodeURIComponent(t)+"="+encodeURIComponent(n[t]))})),e.join("&")}function r(n,e){return _.reduce(n,(function(n,t){if(""===t.key&&""===t.value);else{if(""===t.key)throw new Error(e.instant("externalsync.empty.value.key.error",{value:t.value}));if(n.hasOwnProperty(t.key))throw new Error(e.instant("externalsync.duplicate.key.error",{key:t.key}));n[t.key]=t.value}return n}),{})}function i(n,e){for(let o=0;o<e.length;o++){const r=e[o];if("StringArray"===r.__type)n[r.__name]||(n[r.__name]=[""]);else if("OptionArray"===r.__type)if(n[r.__name])for(let e=0;e<r.__childOptions.length;e++){const t=r.__childOptions[e];if("Boolean"===t.__type)for(let e=0;e<n[r.__name].length;e++){const o=n[r.__name][e];!o.hasOwnProperty([t.__name])&&angular.isDefined(t.__defaultValue)&&(o[t.__name]=t.__defaultValue)}}else{n[r.__name]=[];const e={};for(let n=0;n<r.__childOptions.length;n++){const t=r.__childOptions[n];"StringArray"===t.__type?e[t.__name]=[""]:e[t.__name]=angular.isUndefined(t.__defaultValue)?"":t.__defaultValue}n[r.__name].push(e)}else"Map"===r.__type?n[r.__name]?n[r.__name]=(t=n[r.__name],_.map(t,(function(n,e){return{key:e,value:n}}))):n[r.__name]=[]:"JsonString"===r.__type?!n[r.__name]||n[r.__name]instanceof String||"string"==typeof n[r.__name]||(n[r.__name]=angular.toJson(n[r.__name],2)):angular.isUndefined(n[r.__name])&&(n[r.__name]=angular.isUndefined(r.__defaultValue)?"":r.__defaultValue)}var t;return n}function c(n,e,t){return n.post("repositories/"+e,o({query:t}),{headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/sparql-results+json","X-GraphDB-Local-Consistency":"updating"}})}function a(n){return n.substring(0,n.length-1)+"/instance#"}function s(n,e,t,o,i){const c=function n(e,t){const o={};return _.each(t,(function(t){angular.isDefined(e[t.__name])&&("OptionArray"===t.__type?(o[t.__name]=[],_.each(e[t.__name],(function(e){o[t.__name].push(n(e,t.__childOptions))}))):o[t.__name]=_.cloneDeep(e[t.__name]))})),o}(t,o);for(let n=0;n<o.length;n++)try{"Map"===o[n].__type?c[o[n].__name]=r(c[o[n].__name],$translate):"JsonString"===o[n].__type&&(c[o[n].__name]=angular.fromJson(c[o[n].__name]))}catch(e){return i(o[n].__label,e.message),null}!function n(e){Array.isArray(e)&&(e=_.filter(e,(function(n){return null!==n&&(!n.trim||""!==n.trim())})));return Object.keys(e).forEach((function(t){""!==e[t]&&null!=e[t]||!1===e[t]?"object"==typeof e[t]&&(e[t]=n(e[t])):delete e[t]})),e}(c);let s="";s+="PREFIX :<"+e+">\n";return s+="PREFIX inst:<"+a(e)+">\n",s+="INSERT DATA {\n",s+="\tinst:"+n+" :createConnector '''\n",s+=angular.toJson(c,2),s+="\n''' .\n}\n",s=s.replace(/\\/g,"\\\\\\"),s}function l(n,e,t,r,l,u,f,p,d,g){function m(e){n.beingBuiltConnector={percentDone:0,status:{processedEntities:0,estimatedEntities:0,indexedEntities:0,entitiesPerSecond:0},actionName:e?g.instant("externalsync.repairing"):g.instant("externalsync.creating"),waitOnRepairStartOnce:!!e,eta:"-",inline:!1,iri:null}}function y(e,t,o){return m(o),$.extend(n.beingBuiltConnector,{iri:a(e)+t,name:t,inline:!1,doneCallback:function(){n.beingBuiltConnector.modalInstance.dismiss("cancel")}}),n.beingBuiltConnector.modalInstance=r.open({templateUrl:"pages/connectorProgress.html",controller:"CreateProgressCtrl",size:"lg",backdrop:"static",scope:n}),n.beingBuiltConnector.modalInstance}function C(e,r,i){const c=y(e.value,r.name,!1);p.addStatements(t.getActiveRepository(),o({update:r.query})).then((function(){d.getConnectors().then((function(){d.hasConnector(encodeURIComponent(e.value)).then((function(t){n.existing[e.key]=t.data}))})),l.success(g.instant("created.connector",{name:r.name}))}),(function(n){l.error(getError(n)),i()})).finally((function(){c.dismiss("cancel")}))}n.loader=!1,n.controllers=[],n.existing={},n.definitions={},n.getLoaderMessage=function(){const e=(Date.now()-n.loaderStartTime)/1e3,t=n.getHumanReadableSeconds(e);let o="";return o=n.progressMessage?n.progressMessage+"... "+t:g.instant("common.running.operation",{timeHuman:t}),n.extraMessage&&e>10&&(o+="\n"+n.extraMessage),o},n.setLoader=function(e,t,o){e?(n.loader=!0,n.loaderStartTime=Date.now(),n.progressMessage=t,n.extraMessage=o):(n.loader=!1,n.progressMessage="",n.extraMessage="")},n.initConnector=function(e){return d.initConnector(encodeURIComponent(e.value)).then((function(t){return n.definitions[e.key]=t.data,d.hasConnector(encodeURIComponent(e.value)).then((function(t){n.existing[e.key]=t.data}))}))},n.getConnectors=function(){n.isLicenseValid()&&n.canWriteActiveRepo()&&(n.setLoader(!0,g.instant("externalsync.fetching.connectors"),g.instant("common.extra.message")),d.getConnectors().then((function(o){n.connectors=Object.keys(o.data).map((function(n){return{key:n,value:o.data[n]}})),f.all(_.map(n.connectors,(function(e){return n.initConnector(e)}))).finally((function(){m();const o=function(n){const e=_.map(n,(function(n){return"<"+n.value+"connectorStatus>"})).join("|");return e?"SELECT ?connector ?status { ?connector "+e+" ?status }":null}(n.connectors);o?function(n){return c(e,t.getActiveRepository(),n)}(o).then((function(e){const t=function(n){if(n.bindings)for(let e=0;e<n.bindings.length;e++)try{const t=JSON.parse(n.bindings[e].status.value);if("BUILDING"===t.status)return{connector:n.bindings[e].connector.value,status:t}}catch(n){console.error(n)}return{}}(e.data.results);if(t.connector){const e=t.connector.split(/#/);e[0]=e[0].replace(/\/instance$/,"#"),o=e[0],r=e[1],m(),$.extend(n.beingBuiltConnector,{iri:a(o)+r,name:r,inline:!0,doneCallback:function(){n.beingBuiltConnector.inline=!1}})}var o,r})).finally((function(){n.setLoader(!1)})):n.setLoader(!1)}))})).catch((function(e){n.setLoader(!1),l.error(getError(e),g.instant("externalsync.could.not.get.connectors.error"))})),n.existing={})},n.getOptions=function(e){return n.definitions[e.key]},n.isEmpty=function(n){return angular.isObject(n)&&0===Object.keys(n).length},n.toPrettyJson=function(n){return angular.toJson(n,2)},n.$watch((function(){return t.getActiveRepository()}),n.getConnectors),n.$watch((function(){return t.getActiveLocation()}),n.getConnectors),n.copyConnector=function(e,t){let o;angular.isUndefined(t)||(o=_.cloneDeep(t),o.name=o.name+"-copy");r.open({templateUrl:"pages/createConnector.html",controller:"CreateConnectorCtrl",size:"lg",backdrop:"static",resolve:{connector:function(){return e},values:function(){return angular.isUndefined(o)?{name:"",values:{}}:o},options:function(){return n.getOptions(e)}}}).result.then((function(t){C(e,t,(function(){t.skipConversion=!0,n.newConnector(e,t)}))}))},n.newConnector=function(e,t){r.open({templateUrl:"pages/createConnector.html",controller:"CreateConnectorCtrl",size:"lg",backdrop:"static",resolve:{connector:function(){return e},values:function(){return angular.isUndefined(t)?{name:"",values:{}}:t},options:function(){return n.getOptions(e)}}}).result.then((function(t){C(e,t,(function(){t.skipConversion=!0,n.newConnector(e,t)}))}))},n.repair=function(e,r){u.openSimpleModal({title:g.instant("externalsync.confirm.repair"),message:g.instant("externalsync.repair.warning.msg"),warning:!0}).result.then((function(){const i=y(r.value,e.name,!0),c=(s=e.name,"PREFIX prefix:<"+(u=r.value)+">\nINSERT DATA {\n\t<"+a(u)+s+'> prefix:repairConnector ""\n}');var s,u;p.addStatements(t.getActiveRepository(),o({update:c})).then((function(){d.getConnectors().then((function(){d.hasConnector(encodeURIComponent(r.value)).then((function(e){n.existing[r.key]=e.data}))})),l.success(g.instant("externalsync.repair.success.msg",{name:e.name}))}),(function(n){l.error(getError(n))})).finally((function(){i.dismiss("cancel")}))}))},n.delete=function(e,i){const c=i.key.indexOf("Elastic")>=0||i.key.indexOf("Solr")>=0;r.open({templateUrl:"js/angular/externalsync/templates/deleteConnector.html",controller:"DeleteConnectorCtrl",resolve:{popoverMsg:function(){return c?g.instant("delete.connector.conditional",{type:i.key}):""}}}).result.then((function(r){n.setLoader(!0,g.instant("externalsync.delete.progress.msg",{name:e.name}),g.instant("externalsync.extra.message.warning"));const a=function(n,e,t){const o=e.substring(0,e.length-1)+"/instance#";return"PREFIX prefix:<"+e+">\nINSERT DATA {\n\t<"+o+n+'> prefix:dropConnector "'+(t?"force":"")+'"\n}'}(e.name,i.value,r);p.addStatements(t.getActiveRepository(),o({update:a})).then((function(){d.getConnectors().then((function(){d.hasConnector(encodeURIComponent(i.value)).then((function(e){n.existing[i.key]=e.data}))})),r?(l.success(g.instant("externalsync.delete.force.success.msg",{name:e.name})),c&&l.warning(g.instant("externalsync.delete.remote.warning",{key:i.key}))):l.success(g.instant("externalsync.delete.success.msg",{name:e.name}))}),(function(n){l.error(getError(n))})).finally((function(){n.setLoader(!1)}))}))},n.viewQuery=function(e,t){r.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:function(){const o=n.getOptions(e);return s(t.name,e.value,i(t.values,o),o)}}})}}function u(n,e,t){n.force=!1,n.popoverMsg=t,n.ok=function(){e.close(n.force)},n.cancel=function(){e.dismiss()}}function f(n,e,t,o,r){function i(){return s(n.name,t.value,n.values,n.options,(function(n,e){r.error(e,n)}))}n.connector=t,n.addField=function(e,t){const o=_.cloneDeep(n.defaultValues[t][0]);n.values[t].splice(e+1,0,o)},n.addOption=function(n,e){e.splice(n+1,0,"")},n.deleteOption=function(n,e){e.splice(n,1)},n.addMapOption=function(n,e){e.splice(n+1,0,{key:"",value:""})},n.deleteMapOption=function(n,e){e.splice(n,1)},n.ok=function(){if(n.form.$valid){const t=i();t&&e.close({name:n.name,values:n.values,options:n.options,query:t})}},n.viewQuery=function(){const n=i();n&&o.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:function(){return n}}})},n.cancel=function(){e.dismiss("cancel")}}function p(n,e,t,o,r,c,a,s){angular.extend(this,e("ExtendNewConnectorCtrl",{$scope:n,$uibModalInstance:o,connector:r,$uibModal:c})),n.values=a.values,n.options=s,n.name=a.name,a.skipConversion||(n.values=i(n.values,n.options)),n.defaultValues=_.cloneDeep(n.values)}function d(n,e,t,o,r){function i(){const i=function(n){const e=n.replace(/\/instance#.+$/,"#connectorStatus");let t="";return t+="SELECT ?status {\n",t+="\t<"+n+"> <"+e+"> ?status",t+="\n}",t}(n.beingBuiltConnector.iri);n.beingBuiltConnector.iri=null,n.progressInterval=e((function(){(function(n){return c(t,o.getActiveRepository(),n)})(i).then((function(t){const o=function(n){if(n.bindings&&n.bindings.length>0)try{return JSON.parse(n.bindings[0].status.value)}catch(n){console.error(n)}return{}}(t.data.results);"BUILDING"===o.status?(n.beingBuiltConnector.status=o,n.beingBuiltConnector.percentDone=(100*o.processedEntities/o.estimatedEntities).toFixed(0),n.beingBuiltConnector.eta=n.getHumanReadableSeconds(o.etaSeconds),n.beingBuiltConnector.actionName=o.repair?r.instant("externalsync.repairing"):r.instant("externalsync.creating"),n.beingBuiltConnector.waitOnRepairStartOnce=!1):"BUILT"!==o.status||n.beingBuiltConnector.waitOnRepairStartOnce||(e.cancel(n.progressInterval),n.beingBuiltConnector.doneCallback&&n.beingBuiltConnector.doneCallback())}))}),1e3),n.$on("$destroy",(function(){e.cancel(n.progressInterval)}))}n.beingBuiltConnector=n.beingBuiltConnector||{},!n.beingBuiltConnector.inline&&n.beingBuiltConnector.iri&&i(),n.$watch("beingBuiltConnector.iri",(function(e){n.beingBuiltConnector.inline&&e&&i()}))}angular.module("graphdb.framework.externalsync.controllers",["graphdb.framework.rest.rdf4j.repositories.service","graphdb.framework.rest.connectors.service"]).controller("ConnectorsCtrl",l).controller("ExtendNewConnectorCtrl",f).controller("CreateConnectorCtrl",p).controller("CreateProgressCtrl",d).controller("DeleteConnectorCtrl",u).filter("ceil",(function(){return function(n){return Math.ceil(n)}})),l.$inject=["$scope","$http","$repositories","$uibModal","toastr","ModalService","$q","RDF4JRepositoriesRestService","ConnectorsRestService","$translate"],u.$inject=["$scope","$uibModalInstance","popoverMsg"],f.$inject=["$scope","$uibModalInstance","connector","$uibModal","toastr"],p.$inject=["$scope","$controller","$http","$uibModalInstance","connector","$uibModal","values","options"],d.$inject=["$scope","$interval","$http","$repositories","$translate"]},172:function(n,e,t){"use strict";t.r(e);t(7);angular.module("graphdb.framework.externalsync.directives",[]).directive("createProgress",(function(){return{templateUrl:"pages/connectorProgress.html",controller:"CreateProgressCtrl",restrict:"EA"}}))},263:function(n,e,t){"use strict";t.r(e);t(7),t(28),t(34),t(125),t(172);angular.module("graphdb.framework.externalsync",["graphdb.framework.core.controllers","graphdb.framework.externalsync.controllers","graphdb.framework.externalsync.directives","graphdb.framework.core.directives"]).filter("singular",(function(){return function(n){return angular.isUndefined(n)?n:n.replace(/ies$/,"y").replace(/s$/,"")}}))},90:function(n,e){angular.module("graphdb.framework.rest.connectors.service",[]).factory("ConnectorsRestService",t),t.$inject=["$http"];function t(n){return{getConnectors:function(){return n.get("rest/connectors")},initConnector:function(e){return n.get("rest/connectors/options?prefix="+e)},hasConnector:function(e){return n.get("rest/connectors/existing?prefix="+e)},checkConnector:function(e){return n.post("rest/connectors/check",e,{headers:{"Content-Type":"text/plain"}})}}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[41,249],{102:function(e,t){angular.module("graphdb.framework.rest.graphexplore.data.service",[]).factory("GraphDataRestService",n),n.$inject=["$http"];function n(e){return{getClassHierarchyData:function(t){return e.get("rest/class-hierarchy",{params:{graphURI:t}})},reloadClassHierarchy:function(t){return e.get("rest/class-hierarchy",{params:{doReload:!0,graphURI:t}})},getClassInstances:function(t){return e.get("rest/class-hierarchy/class-instances",{params:{targetUri:t}})},getDomainRangeData:function(t,n){return e.get("rest/domain-range",{params:{targetUri:t,collapsed:n}})},checkDomainRangeData:function(t){return e.head("rest/domain-range",{params:{targetUri:t}})},getRelationshipsData:function(t,n,r){return e.get("rest/dependencies/matrix",{params:{mode:n,classes:_.map(t,(function(e){return e.name})),graphURI:r}})},getRelationshipsClasses:function(t,n){return e.get("rest/dependencies/classes",{params:{mode:t,graphURI:n}})},getRelationshipsStatus:function(t){return e.get("rest/dependencies/status",{params:{graphURI:t}})},calculateRelationships:function(t){return e.get("rest/dependencies/update",{params:{graphURI:t}})},getPredicates:function(t,n,r){return e.get("rest/dependencies/predicates",{params:{from:t,to:n,mode:"all",graphURI:r}})},getInstanceNode:function(t){return e.get("rest/explore-graph/node",{params:t})},getInstanceNodeLinks:function(t){return e.get("rest/explore-graph/links",{params:t})},getProperties:function(t){return e.get("rest/explore-graph/properties",{params:t})},updateGraph:function(t){let n={headers:{"Content-Type":"application/json"}};return n=Object.assign(n,t),e.post("rest/explore-graph/graph",n)},getRdfsLabelAndComment:function(t,n,r){const a=r||{};return e({url:"rest/explore/details",method:"GET",params:_.extend(a,{uri:t,languages:n}),headers:{Accept:"application/json"}})}}}},
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[41,249],{102:function(e,t){angular.module("graphdb.framework.rest.graphexplore.data.service",[]).factory("GraphDataRestService",n),n.$inject=["$http"];function n(e){return{getClassHierarchyData:function(t){return e.get("rest/class-hierarchy",{params:{graphURI:t}})},reloadClassHierarchy:function(t){return e.get("rest/class-hierarchy",{params:{doReload:!0,graphURI:t}})},getClassInstances:function(t){return e.get("rest/class-hierarchy/class-instances",{params:{targetUri:t}})},getDomainRangeData:function(t,n){return e.get("rest/domain-range",{params:{targetUri:t,collapsed:n}})},checkDomainRangeData:function(t){return e.head("rest/domain-range",{params:{targetUri:t}})},getRelationshipsData:function(t,n,r){return e.get("rest/dependencies/matrix",{params:{mode:n,classes:_.map(t,(function(e){return e.name})),graphURI:r}})},getRelationshipsClasses:function(t,n){return e.get("rest/dependencies/classes",{params:{mode:t,graphURI:n}})},getRelationshipsStatus:function(t){return e.get("rest/dependencies/status",{params:{graphURI:t}})},calculateRelationships:function(t){return e.get("rest/dependencies/update",{params:{graphURI:t}})},getPredicates:function(t,n,r){return e.get("rest/dependencies/predicates",{params:{from:t,to:n,mode:"all",graphURI:r}})},getInstanceNode:function(t){return e.get("rest/explore-graph/node",{params:t})},getInstanceNodeLinks:function(t){return e.get("rest/explore-graph/links",{params:t})},getProperties:function(t){return e.get("rest/explore-graph/properties",{params:t})},updateGraph:function(t){let n={headers:{"Content-Type":"application/json"}};return n=Object.assign(n,t),e.post("rest/explore-graph/graph",n)},getRdfsLabelAndComment:function(t,n,r){const a=r||{};return e({url:"rest/explore/details",method:"GET",params:_.extend(a,{uri:t,languages:n}),headers:{Accept:"application/json"}})}}}},186:function(e,t,n){"use strict";n.r(t);var r=n(457);n(102);function a(e,t){return{restrict:"A",template:'<div id="dependencies-chord"></div>',scope:{dependenciesData:"="},link:function(n){n.$watch("dependenciesData",(function(){if(n.dependenciesData){const a=n.dependenciesData;!function(a,s){if(function(){let e=!0;for(const t of a){if(t.some(e=>0!==e)){e=!1;break}}return e}())return;const o=d3.scaleOrdinal(d3.schemeCategory10),i=d3.select("body").append("div").attr("class","tooltip").style("opacity",0);d3.select("body").on("click",(function(){i.style("opacity",0)}));const c=Math.min(800,800)/2.8,d=c-24,p=d3.arc().innerRadius(d).outerRadius(c),l=d3.chord().padAngle(.04).sortSubgroups(d3.descending).sortChords(d3.ascending),u=d3.ribbon().radius(d),g=d3.select("#dependencies-chord").append("svg").attr("viewBox","0 0 800 800").attr("preserveAspectRatio","xMidYMid meet").style("font","10px sans-serif").append("g").attr("id","circle").attr("transform","translate(400,400)");g.append("circle").attr("r",c).style("fill","none");const f=l(a),h=g.selectAll(".group").data(f.groups).enter().append("g").attr("class","group").on("mouseover",(function(){const e=h.nodes().indexOf(this);m.classed("fade",(function(t){return t.source.index!==e&&t.target.index!==e}))}));h.append("title").text((function(e,t){return s[t]})),h.append("path").attr("id",(function(e,t){return"group"+t})).attr("d",p).style("fill",(function(e,t){return o(t)})),h.append("text").each((function(e){e.angle=(e.startAngle+e.endAngle)/2})).attr("dy",".35em").attr("transform",(function(e){return"rotate("+(180*e.angle/Math.PI-90)+")translate("+(d+26)+")"+(e.angle>Math.PI?"rotate(180)":"")})).style("text-anchor",(function(e){return e.angle>Math.PI?"end":null})).text((function(e){return s[e.index]}));const m=g.selectAll(".chord").data(f).enter().append("path").attr("class","chord").style("fill",(function(e){return o(e.target.index)})).style("fill-opacity",".67").style("stroke","#000").style("stroke-width",".25px").style("cursor","pointer").attr("d",u);m.on("mouseover",(function(){d3.select(this).style("fill-opacity","1")})),m.on("mouseout",(function(){d3.select(this).style("fill-opacity",".67")})),m.on("click",(function(e,r){const a=s[r.source.index],o=s[r.target.index],c=e.pageX,d=e.pageY;t.getPredicates(a,o,n.selectedGraph&&n.selectedGraph.contextID.uri).success((function(e){let t="<div class='dependencies-tooltip'>"+("<div class='row'>"+a+" <i class='fa fa-exchange'></i> "+o+"</div>")+_.map(e.slice(0,10),(function(e){const t=" <i class='fa fa-long-arrow-"+("out"===e.direction?"right":"left")+"'></i>";return"<div class='row'>"+e.predicate+" : "+e.weight+t+" </div>"})).join("");e.length>10?t=t+"<div class='pull-right'>And "+(e.length-10).toString()+" more...</div></div>":t+="</div>",i.html(t).style("left",c+"px").style("top",d+"px")})),i.transition().duration(200).style("opacity",1)})),d3.select("#circle").on("mouseleave",(function(){g.selectAll(".chord").classed("fade",!1)})),d3.select("#download-svg").on("mouseover",(function(){const t=r.a.Export.generateBase64ImageSource(".dependencies-chord svg");d3.select(this).attrs({href:t,download:"dependencies-"+e.getActiveRepository()+".svg"})}))}(a.matrix,a.nodes,a.direction)}}))}}}angular.module("graphdb.framework.graphexplore.directives.dependencies",["graphdb.framework.graphexplore.controllers.dependencies","graphdb.framework.rest.graphexplore.data.service"]).directive("dependenciesChord",a),a.$inject=["$repositories","GraphDataRestService"]},446:function(e,t,n){var r,a;r=[n(454)],void 0===(a=function(){function e(e,t){return e.each((function(){var e=t.apply(this,arguments),n=select(this);for(var r in e)n.attr(r,e[r])}))}function t(e,t){for(var n in t)e.attr(n,t[n]);return e}return"undefined"==typeof d3&&(d3=n(454)),d3.selection.prototype.attrs=function(n){return("function"==typeof n?e:t)(this,n)},d3.selection.prototype.moveToFront=function(){return this.each((function(){d3.select(this.parentNode.appendChild(this))}))},d3.selection.prototype.moveToBack=function(){return this.each((function(){const e=this.parentNode.firstChild;e&&this.parentNode.insertBefore(this,e)}))},d3}.apply(t,r))||(e.exports=a)},457:function(e,t,n){"use strict";n(446);var r=r||{};r.Export={getCSSRules:function(e){const t=$('link[href="'+e+'"]')[0].sheet.rules;let n="";return _.each(t,(function(e){n+=e.cssText})),n},generateBase64ImageSource:function(e){e||(e="svg");const t=d3.selectAll(e).attr("version","1.1").attr("xmlns","http://www.w3.org/2000/svg").node().parentNode.innerHTML;return"data:image/svg+xml;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(t)))}},t.a=r}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[42],{183:function(t,e,r){"use strict";r.r(e);var n=r(457),a=r(456);r(10);function o(t,e,r,o,s,c,i,l,d,u,p,f,h){return{restrict:"AE",template:'<div id="domain-range"></div>',scope:{showPredicatesInfoPanel:"=",selectedPredicate:"=",collapseEdges:"="},link:function(u){const p=l((function(){!function(u){var p=d3.select("#domain-range").append("svg").attr("viewBox","0 0 1200 600").attr("preserveAspectRatio","xMidYMid meet").on("dblclick.zoom",null),g=d3.forceSimulation(),y=d3.drag().subject((function(t){return t})).on("start",(function(t,e){g.stop(),e.fx=t.x,e.fy=t.y,d3.select(this).classed("selected",!0)})).on("end",(function(t,e){e.fx=null,e.fy=null,d3.select(this).classed("selected",!1),b?(g.alpha(.2).restart(),b=!1):g.restart()})).on("drag",(function(t,e){b=!0,g.alphaTarget(0).restart(),e.fx=t.x,e.fy=t.y})),x=p.append("defs");x.append("marker").attrs({id:"arrow",viewBox:"0 -5 10 10",refX:10,refY:0,markerUnits:"strokeWidth",markerWidth:5,markerHeight:5,orient:"auto",fill:f}).append("path").attrs({d:"M0,-5L10,0L0,5",class:"arrowHead"}),x.append("marker").attrs({id:"collapsed-arrow",viewBox:"0 -5 10 10",refX:9,refY:0,markerUnits:"strokeWidth",markerWidth:4,markerHeight:4,orient:"auto",fill:f}).append("path").attrs({d:"M0,-5L10,0L0,5",class:"arrowHead"}),x.append("marker").attrs({id:"arrow-loop",viewBox:"0 -5 10 10",refX:7,refY:0,markerUnits:"strokeWidth",markerWidth:5,markerHeight:5,orient:"auto",fill:f}).append("path").attrs({d:"M0,-5L10,0L0,5",class:"arrowHead"}),d3.select("#download-svg").on("mouseover",(function(){var t=n.a.Export.getCSSRules("css/domain-range-graph.css?v=2.7.4");$("defs").append('<style type="text/css"><![CDATA['+t+"]]></style>");var e=n.a.Export.generateBase64ImageSource("#domain-range svg");d3.select(this).attrs({href:e,download:"domain-range-graph-"+r.getActiveRepository()+".svg"})})),function(){var t=d3.select(".legend-container").append("svg").attr("viewBox","0 0 "+1200/7+" "+1200/7*1.2).attr("preserveAspectRatio","xMidYMid meet");t.append("rect").attrs({width:1200/7,height:1200/7*1.2}).style("fill","rgba(235, 235, 235, 0.9)");var e=16+1200/18/2.5,r=e+1200/90;t.append("circle").attrs({class:"legend-class-node",cx:(16+e)/2,cy:30,r:1200/18/4.5}),t.append("text").attrs({x:r,y:30+1200/370}).style("font-size",1200/90/1.1+"px").text("main class node"),t.append("circle").attrs({class:"legend-object-node",cx:(16+e)/2,cy:70,r:1200/110/1.25}),t.append("text").attrs({x:r,y:30+1200/370+40}).style("font-size",1200/90/1.1+"px").text("class node"),t.append("circle").attrs({class:"legend-datatype-node",cx:(16+e)/2,cy:70+1200/45,r:1200/110/2}),t.append("text").attrs({x:r,y:99.90990990990991}).style("font-size",1200/90/1.1+"px").text("datatype node"),t.append("line").attrs({class:"property-arrow",x1:16,y1:123.33333333333334,x2:e,y2:123.33333333333334}).style("stroke-width",1.2).attr("marker-end","url("+s.absUrl()+"#arrow)"),t.append("text").attrs({x:r,y:126.57657657657658}).style("font-size",1200/90/1.1+"px").text("explicit property"),t.append("line").attrs({class:"implicit-property-arrow",x1:16,y1:150,x2:e,y2:150}).style("stroke-width",1.2).attr("marker-end","url("+s.absUrl()+"#arrow)"),t.append("text").attrs({x:r,y:150+1200/370}).style("font-size",1200/90/1.1+"px").text("implicit property"),t.append("line").attrs({class:"collapsed-property-arrow",x1:16,y1:150+1200/45,x2:e,y2:150+1200/45}).style("stroke-width",2).attr("marker-end","url("+s.absUrl()+"#collapsed-arrow)"),t.append("text").attrs({x:r,y:179.9099099099099}).style("font-size",1200/90/1.1+"px").text("collapsed property")}();var m=s.search().uri,v=s.search().name;const k=s.search().collapsed;(function(t,e){o.getDomainRangeData(t,e).success((function(t,e,r){u.domainRangeGraphData=t})).error((function(t){d.error("Request for "+v+" failed!")}))})(m,k),$(window).on("popstate",(function(){c.set(i.DOMAIN_RANGE_WENT_BACK,!0)})),e.onpopstate=function(e){e.state&&t.$broadcast("changeCollapsedEdgesState",e.state.collapsed)},u.$watch("collapseEdges",(function(){angular.isUndefined(u.collapseEdges)||(c.set(i.DOMAIN_RANGE_COLLAPSE_EDGES,u.collapseEdges),"true"!==c.get(i.DOMAIN_RANGE_WENT_BACK)&&function(e){t.$broadcast("switchEdgeMode",{uri:m,name:v,collapsed:e})}(u.collapseEdges),c.remove(i.DOMAIN_RANGE_WENT_BACK))})),u.$watch("domainRangeGraphData",(function(){if(u.domainRangeGraphData){var r=_.cloneDeep(u.domainRangeGraphData);const P=r.nodes,j=r.links;g.nodes(P).force("x",d3.forceX(600)).force("y",d3.forceY(300)).force("charge",d3.forceManyBody().strength(-800)).force("link",d3.forceLink(j).distance(1200/3.5));var n=p.selectAll(".link").data(j).enter().append("g");function o(t){t.style("stroke",f),t.style("stroke-width",2),t.attr("marker-end","url("+s.absUrl()+"#collapsed-arrow)")}var c,i,d=0;n.each((function(t){if(t.objectPropNodeClassUri!==m)c=n.append("line").attrs({class:"link","marker-end":"url("+s.absUrl()+"#arrow)"}).style("stroke-width",1.2).each((function(t){switch(t.propertyType){case"objectLeft":t.targetRadius=1200/18;break;case"objectRight":t.targetRadius=1200/110;break;case"datatype":t.targetRadius=1200/110/2;break;default:t.targetRadius=0}var e=d3.select(this);t.targetNodeEdgeCount>1?o(e):t.implicit&&e.style("stroke-dasharray","3, 3")}));else{if(angular.isUndefined(i)){i=d3.select(this).append("path").attrs({d:"M 0 0 A "+1200/18/2+" "+1200/18/2+" 0 1 1 0 "+1200/18/2,class:"loop-link",fill:"none","marker-end":"url("+s.absUrl()+"#arrow-loop)"}).style("stroke-width",1.2)}(d+=t.targetNodeEdgeCount)>1&&o(d3.select(".loop-link"))}}));var x={};function k(){$.isEmptyObject(x)||(x.text.style("fill","black"),x.background.style("fill","#f0f0f0"))}function b(t,e){k(),x.text=d3.select(this),x.background=d3.select(this.previousSibling),x.text.style("fill","white"),x.background.style("fill",f),l((function(){u.showPredicatesInfoPanel=!0,u.selectedPredicate=e})),t.stopPropagation()}$("document").ready((function(){$("#domain-range").bind("click",k)}));var w=n.append("text").attr("class",(function(t){return t.objectPropNodeClassUri===m?"loop-link-property-name":"property-name"})).attr("dx",(function(t){return 1200/18/2*("objectLeft"===t.propertyType?1:-1)})).style("text-anchor",(function(t){return"objectLeft"===t.propertyType?"end":"start"})).style("font-size",1200/90).text((function(t){return t.targetNodeEdgeCount>1?t.targetNodeEdgeCount+" predicates":t.name}));w.each((function(t){var r=d3.select(this);/\d\spredicates/.test(r.text())?r.style("font-weight","bold").on("click",b):r.on("click",(function(t,r){e.open("resource?uri="+encodeURIComponent(r.uri),"_blank")}))}));var E=n.append("rect").attr("class",(function(t){return t.objectPropNodeClassUri!==m?"link-background":"loop-link-background"})).attr("width",(function(t){return t.calculatedWidth=this.previousSibling.getBBox().width,t.calculatedWidth+4})).attr("height",(function(t){return t.calculatedHeight=this.previousSibling.getBBox().height,t.calculatedHeight+2})).attr("transform",(function(t){var e=2-1200/18/2*("objectLeft"===t.propertyType?1:-1);return"objectLeft"===t.propertyType&&(e+=t.calculatedWidth),"translate(-"+e+",-"+(2+t.calculatedHeight/2)+")"})).on("click",(function(t){t.stopPropagation()})),N=p.selectAll(".node").data(P).enter().append("g"),R=N.filter((function(t){return t.objectPropClassUri!==m})).append("circle").each((function(t){var e=d3.select(this);"main"===t.classPosition?e.attrs({class:"class-node",r:1200/18}).attr("marker-end","url("+s.absUrl()+"#loop-link)"):null===t.objectPropClassName?e.attrs({class:"datatype-node",r:1200/110/2}):e.attrs({class:"object-prop-node",r:1200/110})})).call(y);d3.selectAll(".object-prop-node").on("dblclick",(function(e,r,n){u.$apply((function(){t.$broadcast("reloadDomainRangeGraphView",r,n)}))})),N.filter((function(t){return t.objectPropClassName&&t.objectPropClassUri!==m})).append("text").attr("class",(function(t){return t.classPosition+"-class-label"})).style("font-size",1200/90).text((function(t){return t.objectPropClassName})).on("click",(function(t,r){e.open("resource?uri="+encodeURIComponent(r.objectPropClassUri),"_blank")}));var C=N.select("text");p.select(".class-node").each((function(){d3.select(this.parentNode).append("text").attr("class","rdf-class-label").style("font-size",(function(t){return a.a.Text.calcFontSize(v,1200/18)})).text(v).on("click",(function(){e.open("resource?uri="+encodeURIComponent(m),"_blank")}))}));var T=p.select(".class-node + text"),A=d3.select(".class-node"),L=d3.selectAll(".loop-link-background"),M=d3.selectAll(".loop-link-property-name");if(w=d3.selectAll(".property-name"),!angular.isUndefined(i)){var U=[];L.each((function(t,e){d3.select(this);U.push({idx:e,width:t.calculatedWidth,height:t.calculatedHeight})}))}g.on("tick",(function(t){var e=8*g.alpha();function r(t){var e=t.x+1200/18*2,r=t.y-1200/18/1.9;var n=[];L.each((function(a,o){n.push(a),o<h?function(n,a){var o=$.grep(U,(function(t){return t.idx==a}));a>0&&(e+=parseFloat(a*(o[0].height/(a/1.4)))),n.attrs({transform:"rotate(270, "+t.x+","+t.y+") translate("+e+","+r+")",width:o[0].height,height:o[0].width})}(d3.select(this),o):d3.select(this).remove()})),function(t){var e;d3.select(".view-more-preds-label").style("font-weight","bold").each((function(r){r.target.allEdges=t,e=this.getComputedTextLength()})).on("click",b),d3.select(".view-more-preds-rect").attr("height",e+4)}(n)}c.filter((function(t){return t.objectPropNodeClassUri!==m})).attr("x1",(function(t){return t.source.x})).attr("y1",(function(t){return t.source.y})).attr("x2",(function(t){return t.targetX})).attr("y2",(function(t){return t.targetY})).each((function(t){!function(t){"objectLeft"===t.propertyType?(t.source.x-=8*e,t.source.y-=e/9):(t.target.x+=8*e,t.target.y-=e/9)}(t);var r=Math.atan2(t.target.y-t.source.y,t.target.x-t.source.x);t.targetX=t.target.x-Math.cos(r)*t.targetRadius,t.targetY=t.target.y-Math.sin(r)*t.targetRadius})),R.each((function(t){"main"!==t.classPosition||angular.isUndefined(i)||(!function(t){var e=t.x+64,r=t.y-1200/18/5.7-5;i.attr("transform","rotate(270, "+t.x+","+t.y+") translate("+e+","+r+")")}(t),function(t){function e(e,r){var n=$.grep(U,(function(t){return t.idx==r})),a=0;r>0&&(a=parseFloat(2*r*(n[0].height/1.4)));var o=t.x,s=t.y-1200/18*2.1-a;e.attrs({x:o,y:s}).moveToFront()}M.each((function(t,r){var n=d3.select(this),a=M.size()-h;a<0?e(n,r):(0==r&&!u.collapseEdges&&a>1&&(!function(t,e,r){t.classed("view-more-preds-label",!0).text(r+" predicates more ..."),null!==this.nextSibling&&e.classed("view-more-preds-rect",!0)}(n,d3.select(this.nextSibling),a),e(n,r)),r<h?e(n,r):n.remove())}))}(t),r(t)),t.objectPropClassUri!==m&&d3.select(this).attr("cx",(function(t){return"main"===t.classPosition?function(t){!window.ActiveXObject&&"ActiveXObject"in window&&(Math.log10=function(t){return Math.log(t)/Math.LN10});var e=A.attr("cx")-600,r=.5*Math.log10(Math.abs(e));return t.x+=e>0?-r:r,t.x}(t):t.x})).attr("cy",(function(t){return t.y}))})),T.attr("x",(function(t){return t.x})).attr("y",(function(t){return t.y})).moveToFront(),E.filter((function(t){return t.objectPropNodeClassUri!==m})).attr("x",(function(t){return t.target.x>t.source.x?t.source.x+(t.target.x-t.source.x)/2:t.target.x+(t.source.x-t.target.x)/2})).attr("y",(function(t){return t.target.y>t.source.y?t.source.y+(t.target.y-t.source.y)/2:t.target.y+(t.source.y-t.target.y)/2})).moveToFront(),w.attr("x",(function(t){return t.target.x>t.source.x?t.source.x+(t.target.x-t.source.x)/2:t.target.x+(t.source.x-t.target.x)/2})).attr("y",(function(t){return t.target.y>t.source.y?t.source.y+(t.target.y-t.source.y)/2:t.target.y+(t.source.y-t.target.y)/2})).moveToFront(),C.attr("x",(function(t){return"right"===t.classPosition?t.x+1200/110*1.2:t.x-1200/110*1.2})).attr("y",(function(t){return t.y})).moveToFront()}))}}));let b=!1}(u)}),50);u.$on("$destroy",(function(){l.cancel(p)}))}}}angular.module("graphdb.framework.graphexplore.directives.domainrange",["graphdb.framework.graphexplore.controllers.domainrange","graphdb.framework.utils.localstorageadapter"]).constant("ONTO_RED","var(--primary-color)").constant("ONTO_GREEN","var(--tertiary-color)").constant("ONTO_BLUE","var(--secondary-color)").constant("NON_COLLAPSED_REFLEXIVE_LINK_LIMIT",6).directive("domainRangeGraph",o),o.$inject=["$rootScope","$window","$repositories","GraphDataRestService","$location","LocalStorageAdapter","LSKeys","$timeout","toastr","ONTO_RED","ONTO_GREEN","ONTO_BLUE","NON_COLLAPSED_REFLEXIVE_LINK_LIMIT"]},446:function(t,e,r){var n,a;n=[r(454)],void 0===(a=function(){function t(t,e){return t.each((function(){var t=e.apply(this,arguments),r=select(this);for(var n in t)r.attr(n,t[n])}))}function e(t,e){for(var r in e)t.attr(r,e[r]);return t}return"undefined"==typeof d3&&(d3=r(454)),d3.selection.prototype.attrs=function(r){return("function"==typeof r?t:e)(this,r)},d3.selection.prototype.moveToFront=function(){return this.each((function(){d3.select(this.parentNode.appendChild(this))}))},d3.selection.prototype.moveToBack=function(){return this.each((function(){const t=this.parentNode.firstChild;t&&this.parentNode.insertBefore(this,t)}))},d3}.apply(e,n))||(t.exports=a)},456:function(t,e,r){"use strict";r(446);var n=n||{};n.Text=function(){function t(t,e,r,n){r=r||10;var a=e/3;return"string"==typeof t?(a*=10/(t.substring(0,e/3).length+1.5),a+=1,t.match(/[\u0900-\u0DFF\u1100-\u11FF\u2E80-\u2EFF\u3000-\u9FFF]/)&&(a*=.6),a<r&&(a=r),Math.round(a)):(a<r&&(a=r),Math.round(a))}return{calcFontSizeRaw:t,calcFontSize:function(e,r,n,a){return t(e,r,n)+"px"},getTextWithElipsisIfNeeded:function(t,e){return"string"==typeof t&&t.length>e?t.substring(0,e-3)+"...":t}}}(),n.Transition={fadeIn:function(t,e){t.style("opacity",0).transition().duration(e).style("opacity",1)},fadeOut:function(t,e){t.style("opacity",1).transition().duration(e).style("opacity",0)}},n.Click=function(){const t=function(t,r){let n,a=1,o=arguments.length;for(;++a<o;)n=arguments[a],t[n]=e(t,r,r[n]);return t};function e(t,e,r){return function(){var n=r.apply(e,arguments);return n===e?t:n}}return{delayDblClick:function(){var e=d3.dispatch("click","dblclick");return t((function(t){var r,n=null;t.on("mousedown",(function(){r=d3.pointer(document.body),+new Date})),t.on("mouseup",(function(t,a){var o,s,c;(s=r,c=d3.pointer(document.body),Math.sqrt(Math.pow(s[0]-c[0],2),Math.pow(s[1]-c[1],2))>5)||(n?(window.clearTimeout(n),n=null,e.call("dblclick",t,t,a)):n=window.setTimeout((o=t,function(){e.call("click",o,o,a),n=null}),250))}))}),e,"on")}}}(),e.a=n},457:function(t,e,r){"use strict";r(446);var n=n||{};n.Export={getCSSRules:function(t){const e=$('link[href="'+t+'"]')[0].sheet.rules;let r="";return _.each(e,(function(t){r+=t.cssText})),r},generateBase64ImageSource:function(t){t||(t="svg");const e=d3.selectAll(t).attr("version","1.1").attr("xmlns","http://www.w3.org/2000/svg").node().parentNode.innerHTML;return"data:image/svg+xml;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(e)))}},e.a=n}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[43,145,162,274],{128:function(e,o){function r(e,o,r,t,s){e.message=s,e.close=()=>{o.dismiss()},e.copyToClipboard=()=>{navigator.clipboard.writeText(e.message).then(()=>{t.success(r.instant("import.help.messages.copied_to_clipboard")),e.close()},e=>{console.error("Could not copy text: ",e)})}}angular.module("graphdb.framework.impex.import.controllers.import-resource-message-dialog",[]).controller("ImportResourceMessageDialogController",r),r.$inject=["$scope","$uibModalInstance","$translate","toastr","message"]},
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[43,145,162,274],{128:function(e,o){function r(e,o,r,t,s){e.message=s,e.close=()=>{o.dismiss()},e.copyToClipboard=()=>{navigator.clipboard.writeText(e.message).then(()=>{t.success(r.instant("import.help.messages.copied_to_clipboard")),e.close()},e=>{console.error("Could not copy text: ",e)})}}angular.module("graphdb.framework.impex.import.controllers.import-resource-message-dialog",[]).controller("ImportResourceMessageDialogController",r),r.$inject=["$scope","$uibModalInstance","$translate","toastr","message"]},204:function(e,o,r){"use strict";r.r(o);r(128);var t=r(68),s=r(73);function a(e){return{restrict:"E",templateUrl:"js/angular/import/templates/import-resource-message.html",scope:{resource:"="},link:o=>{o.ImportResourceStatus=t.ImportResourceStatus,o.toTitleCase=e=>s.toTitleCase(e),o.showMessage=o=>{e.open({templateUrl:"js/angular/import/templates/import-resource-message-dialog.html",controller:"ImportResourceMessageDialogController",size:"lg",windowClass:"import-resource-message-dialog",backdrop:"static",resolve:{message:function(){return o?o.importResource.message:""}}})}}}}angular.module("graphdb.framework.import.directives.import-resource-message",["graphdb.framework.impex.import.controllers.import-resource-message-dialog"]).directive("importResourceMessage",a),a.$inject=["$uibModal"]},68:function(e,o,r){"use strict";r.r(o),r.d(o,"ImportResourceStatus",(function(){return t}));const t={NONE:"NONE",UPLOADING:"UPLOADING",UPLOAD_ERROR:"UPLOAD_ERROR",UPLOADED:"UPLOADED",PENDING:"PENDING",IMPORTING:"IMPORTING",DONE:"DONE",ERROR:"ERROR",INTERRUPTING:"INTERRUPTING"}},73:function(e,o,r){"use strict";r.r(o),r.d(o,"removeSpecialChars",(function(){return s})),r.d(o,"toBoolean",(function(){return a})),r.d(o,"toTitleCase",(function(){return i}));var t=r(27);const s=e=>e.replace(/[()']/g,""),a=e=>"string"==typeof e?"true"===e:Boolean(e),i=e=>e?Object(t.upperFirst)(e.toLowerCase()):e}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[44,77,162,163],{104:function(e,t,s){"use strict";s.r(t),s.d(t,"ImportResourceTreeElement",(function(){return o}));var r=s(68),i=s(27);class o{constructor(){this.importResource=void 0,this.parent=void 0,this.partialSelected=!1,this.indent=0,this.isImportable=!1,this.hasOngoingImport=!1,this.hasStatusInfo=!1,this.canResetStatus=!1,this.name="",this.shortenedName="",this.path="",this.shortenedContext="",this.selected=!1,this.directories=[],this.files=[],this.isImportedBiggerThanModified=!1,this.isModifiedBiggerThanImported=!1,this.isEditable=!1,this.iconClass="",this.shortenedMessage=""}addResource(e){if(e.isFile())this.files.push(e);else{if(!e.isDirectory())throw new Error("Unsupported resource type!");this.directories.push(e)}}removeResource(e){e.isFile()?this.files=this.files.filter(t=>e.importResource.name!==t.importResource.name):this.directories=this.directories.filter(t=>e.importResource.name!==t.importResource.name)}remove(){this.isRoot()||this.parent.removeResource(this)}getOrCreateDirectory(e){let t=this.directories.find(t=>t.name===e);return t||(t=new o,t.name=e,this.directories.push(t)),t}getRoot(){return this.isRoot()?this:this.parent.getRoot()}isRoot(){return void 0===this.parent}isDirectory(){return this.importResource.isDirectory()}isFile(){return!this.isRoot()&&this.importResource.isFile()}isEmpty(){return 0===this.directories.length&&0===this.files.length}toList(){const e=[];return this.parent&&e.push(this),this.directories.forEach(t=>{e.push(...t.toList())}),e.push(...this.files),e}setSelection(e,t=!0){this.selected=e,this.files.forEach(t=>t.setSelection(e,!1)),this.directories.forEach(t=>t.setSelection(e,!1)),t&&this.getRoot().updateSelectionState()}updateSelectionState(){if(this.directories.forEach(e=>e.updateSelectionState()),this.parent&&this.isDirectory()){const e=this.hasUnselectedChildren(),t=this.hasSelectedChildren();this.selected=t&&!e,this.partialSelected=t&&e}}hasUnselectedChildren(){return this.files.some(e=>!e.selected)||this.directories.some(e=>!e.selected||e.hasUnselectedChildren())}hasSelectedChildren(){return this.files.some(e=>e.selected)||this.directories.some(e=>e.selected||e.hasSelectedChildren())}selectAllWithStatus(e){this.importResource&&e.indexOf(this.importResource.status)>-1&&(this.selected=!0),this.files.forEach(t=>t.selectAllWithStatus(e)),this.directories.forEach(t=>t.selectAllWithStatus(e))}getAllSelectedForImport(){const e=[],t=this.isRoot();return!t&&this.selected&&e.push(this),(t||this.isDirectory()&&!this.selected)&&(this.files.forEach(t=>e.push(...t.getAllSelectedForImport())),this.directories.forEach(t=>e.push(...t.getAllSelectedForImport()))),Object(i.cloneDeep)(e)}getAllSelected(){const e=[];return!this.isRoot()&&this.selected&&e.push(this),this.files.forEach(t=>e.push(...t.getAllSelected())),this.directories.forEach(t=>e.push(...t.getAllSelected())),Object(i.cloneDeep)(e)}getSelectedImportedResources(){return this.getAllSelected().some(e=>e.importResource.status===r.ImportResourceStatus.DONE)}deselectAll(){this.files.forEach(e=>e.deselectAll()),this.directories.forEach(e=>e.deselectAll()),this.selected=!1,this.partialSelected=!1}getAllSelectedFiles(){const e=[];return!this.isRoot()&&this.selected&&e.push(this.importResource),this.files.forEach(t=>e.push(...t.getAllSelectedFiles())),this.directories.forEach(t=>e.push(...t.getAllSelectedFiles())),e}getAllSelectedFilesNames(){return this.getAllSelectedFiles().map(e=>e.name)}getResourceByName(e){if(this.importResource&&this.importResource.name===e)return this;const t=this.files.find(t=>t.importResource.name===e);if(t)return t;for(const t of this.directories){const s=t.getResourceByName(e);if(s)return s}return null}hasTextInResourcesName(e){return!!this.importResource.name.toLowerCase().includes(e.toLowerCase())||(!!this.files.some(t=>t.importResource.name.toLowerCase().includes(e.toLowerCase()))||this.directories.some(t=>t.hasTextInDirectoriesName(e)))}hasTextInDirectoriesName(e){return!(!this.isDirectory()||!this.name.toLowerCase().includes(e.toLowerCase()))||this.directories.some(t=>t.hasTextInDirectoriesName(e))}hasTextInFilesName(e){return!(!this.isFile()||!this.name.toLowerCase().includes(e.toLowerCase()))||(!!this.files.some(t=>t.importResource.name.toLowerCase().includes(e.toLowerCase()))||this.directories.some(t=>t.hasTextInFilesName(e)))}sort(e){this.directories.sort(e),this.files.sort(e),this.directories.forEach(t=>t.sort(e))}getSize(){return this.toList().length}}},
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[44,77,162,163],{104:function(e,t,s){"use strict";s.r(t),s.d(t,"ImportResourceTreeElement",(function(){return o}));var r=s(68),i=s(27);class o{constructor(){this.importResource=void 0,this.parent=void 0,this.partialSelected=!1,this.indent=0,this.isImportable=!1,this.hasOngoingImport=!1,this.hasStatusInfo=!1,this.canResetStatus=!1,this.name="",this.shortenedName="",this.path="",this.shortenedContext="",this.selected=!1,this.directories=[],this.files=[],this.isImportedBiggerThanModified=!1,this.isModifiedBiggerThanImported=!1,this.isEditable=!1,this.iconClass="",this.shortenedMessage=""}addResource(e){if(e.isFile())this.files.push(e);else{if(!e.isDirectory())throw new Error("Unsupported resource type!");this.directories.push(e)}}removeResource(e){e.isFile()?this.files=this.files.filter(t=>e.importResource.name!==t.importResource.name):this.directories=this.directories.filter(t=>e.importResource.name!==t.importResource.name)}remove(){this.isRoot()||this.parent.removeResource(this)}getOrCreateDirectory(e){let t=this.directories.find(t=>t.name===e);return t||(t=new o,t.name=e,this.directories.push(t)),t}getRoot(){return this.isRoot()?this:this.parent.getRoot()}isRoot(){return void 0===this.parent}isDirectory(){return this.importResource.isDirectory()}isFile(){return!this.isRoot()&&this.importResource.isFile()}isEmpty(){return 0===this.directories.length&&0===this.files.length}toList(){const e=[];return this.parent&&e.push(this),this.directories.forEach(t=>{e.push(...t.toList())}),e.push(...this.files),e}setSelection(e,t=!0){this.selected=e,this.files.forEach(t=>t.setSelection(e,!1)),this.directories.forEach(t=>t.setSelection(e,!1)),t&&this.getRoot().updateSelectionState()}updateSelectionState(){if(this.directories.forEach(e=>e.updateSelectionState()),this.parent&&this.isDirectory()){const e=this.hasUnselectedChildren(),t=this.hasSelectedChildren();this.selected=t&&!e,this.partialSelected=t&&e}}hasUnselectedChildren(){return this.files.some(e=>!e.selected)||this.directories.some(e=>!e.selected||e.hasUnselectedChildren())}hasSelectedChildren(){return this.files.some(e=>e.selected)||this.directories.some(e=>e.selected||e.hasSelectedChildren())}selectAllWithStatus(e){this.importResource&&e.indexOf(this.importResource.status)>-1&&(this.selected=!0),this.files.forEach(t=>t.selectAllWithStatus(e)),this.directories.forEach(t=>t.selectAllWithStatus(e))}getAllSelectedForImport(){const e=[],t=this.isRoot();return!t&&this.selected&&e.push(this),(t||this.isDirectory()&&!this.selected)&&(this.files.forEach(t=>e.push(...t.getAllSelectedForImport())),this.directories.forEach(t=>e.push(...t.getAllSelectedForImport()))),Object(i.cloneDeep)(e)}getAllSelected(){const e=[];return!this.isRoot()&&this.selected&&e.push(this),this.files.forEach(t=>e.push(...t.getAllSelected())),this.directories.forEach(t=>e.push(...t.getAllSelected())),Object(i.cloneDeep)(e)}getSelectedImportedResources(){return this.getAllSelected().some(e=>e.importResource.status===r.ImportResourceStatus.DONE)}deselectAll(){this.files.forEach(e=>e.deselectAll()),this.directories.forEach(e=>e.deselectAll()),this.selected=!1,this.partialSelected=!1}getAllSelectedFiles(){const e=[];return!this.isRoot()&&this.selected&&e.push(this.importResource),this.files.forEach(t=>e.push(...t.getAllSelectedFiles())),this.directories.forEach(t=>e.push(...t.getAllSelectedFiles())),e}getAllSelectedFilesNames(){return this.getAllSelectedFiles().map(e=>e.name)}getResourceByName(e){if(this.importResource&&this.importResource.name===e)return this;const t=this.files.find(t=>t.importResource.name===e);if(t)return t;for(const t of this.directories){const s=t.getResourceByName(e);if(s)return s}return null}hasTextInResourcesName(e){return!!this.importResource.name.toLowerCase().includes(e.toLowerCase())||(!!this.files.some(t=>t.importResource.name.toLowerCase().includes(e.toLowerCase()))||this.directories.some(t=>t.hasTextInDirectoriesName(e)))}hasTextInDirectoriesName(e){return!(!this.isDirectory()||!this.name.toLowerCase().includes(e.toLowerCase()))||this.directories.some(t=>t.hasTextInDirectoriesName(e))}hasTextInFilesName(e){return!(!this.isFile()||!this.name.toLowerCase().includes(e.toLowerCase()))||(!!this.files.some(t=>t.importResource.name.toLowerCase().includes(e.toLowerCase()))||this.directories.some(t=>t.hasTextInFilesName(e)))}sort(e){this.directories.sort(e),this.files.sort(e),this.directories.forEach(t=>t.sort(e))}getSize(){return this.toList().length}}},206:function(e,t,s){"use strict";s.r(t),s.d(t,"INDENT",(function(){return c})),s.d(t,"serverImportResourceTypeToIconMapping",(function(){return n})),s.d(t,"userImportResourceTypeToIconMapping",(function(){return a})),s.d(t,"ImportResourceTreeService",(function(){return u}));var r=s(77),i=s(104),o=s(68);const c=30,n=new Map;n.set(r.ImportResourceType.DIRECTORY,"icon-folder"),n.set(r.ImportResourceType.FILE,"icon-file");const a=new Map;a.set(r.ImportResourceType.DIRECTORY,"icon-folder"),a.set(r.ImportResourceType.FILE,"icon-upload"),a.set(r.ImportResourceType.URL,"icon-link"),a.set(r.ImportResourceType.TEXT,"icon-sparql");class u{static toImportResourceTree(e,t){const s=new i.ImportResourceTreeElement;return e.forEach(e=>{u.addResourceToTree(s,e,t)}),s}static mergeResourceTree(e,t,s){e.getRoot().toList().forEach(e=>{t.find(t=>t.name===e.importResource.name)||e.remove()}),t.forEach(t=>{const r=e.getResourceByName(t.name);r?r.importResource=t:u.addResourceToTree(e,t,s)})}static addResourceToTree(e,t,s){const r=u.getPath(t);let o;o=t.isDirectory()?r:r.slice(0,r.length-1);const c=u.getOrCreateParent(e,o);if(t.isFile()){const e=new i.ImportResourceTreeElement;return e.parent=c,e.importResource=t,e.path=r.join("/"),e.name=r[r.length-1],c.addResource(e),u.setIcon(e,s),e}return c.importResource=t,c.path=r.join("/"),u.setIcon(c,s),c}static setIcon(e,t){e.iconClass=t?a.get(e.importResource.type):n.get(e.importResource.type)}static getOrCreateParent(e,t){let s=e;return t.forEach(e=>{const t=s.getOrCreateDirectory(e);t.parent=s,s=t}),s}static getPath(e){if(e.isURL())return[e.name];const t=/[/\\]/;return t.test(e.name)?e.name.split(t):[e.name]}static calculateElementIndent(e){e.indent=8+u.getParentsCount(e)*c+"px",e.directories.forEach(e=>u.calculateElementIndent(e)),e.files.forEach(e=>u.calculateElementIndent(e))}static setupAfterTreeInitProperties(e){e.isRoot()||(e.isImportable=u.isImportable(e.importResource),e.hasOngoingImport=u.hasOngoingImport(e.importResource),e.canResetStatus=u.canResetStatus(e.importResource),e.hasStatusInfo="DONE"===e.importResource.status||"ERROR"===e.importResource.status,e.isEditable=e.importResource.isText(),u.setupShortenedMessage(e),u.setupShortenedContext(e),u.setupShortenedName(e),u.setupImportedAndModifiedComparableProperties(e)),e.directories.forEach(e=>u.setupAfterTreeInitProperties(e)),e.files.forEach(e=>u.setupAfterTreeInitProperties(e))}static setupShortenedMessage(e){const t=e.importResource?e.importResource.message:"";t&&t.length>150&&(e.shortenedMessage=t.substring(0,150)+"...")}static setupShortenedContext(e){const t=e.importResource?e.importResource.context:"";t.length>63&&(e.shortenedContext=t.substring(0,30)+"..."+t.substring(t.length-30))}static setupShortenedName(e){const t=e.name||"";t.length>123&&(e.shortenedName=t.substring(0,30)+"..."+t.substring(t.length-30))}static setupImportedAndModifiedComparableProperties(e){const t=e.importResource;if(t){if(0===t.importedOn||0===t.modifiedOn||t.importedOn===t.modifiedOn)return;e.isImportedBiggerThanModified=t.importedOn>t.modifiedOn,e.isModifiedBiggerThanImported=!e.isImportedBiggerThanModified}}static isImportable(e){return e.status!==o.ImportResourceStatus.IMPORTING&&e.status!==o.ImportResourceStatus.UPLOADING&&e.status!==o.ImportResourceStatus.PENDING&&e.status!==o.ImportResourceStatus.INTERRUPTING&&e.status!==o.ImportResourceStatus.UPLOADING&&e.status!==o.ImportResourceStatus.UPLOADED&&e.status!==o.ImportResourceStatus.UPLOAD_ERROR}static hasOngoingImport(e){return e.status===o.ImportResourceStatus.IMPORTING||e.status===o.ImportResourceStatus.UPLOADING||e.status===o.ImportResourceStatus.PENDING||e.status===o.ImportResourceStatus.INTERRUPTING}static canResetStatus(e){return e.status===o.ImportResourceStatus.DONE||e.status===o.ImportResourceStatus.ERROR}static getParentsCount(e){let t=0;if(void 0===e.parent)return t;let s=e.parent;for(;s;)s=s.parent,t++;return t-1}}},68:function(e,t,s){"use strict";s.r(t),s.d(t,"ImportResourceStatus",(function(){return r}));const r={NONE:"NONE",UPLOADING:"UPLOADING",UPLOAD_ERROR:"UPLOAD_ERROR",UPLOADED:"UPLOADED",PENDING:"PENDING",IMPORTING:"IMPORTING",DONE:"DONE",ERROR:"ERROR",INTERRUPTING:"INTERRUPTING"}},77:function(e,t,s){"use strict";s.r(t),s.d(t,"ImportResourceType",(function(){return r}));const r={DIRECTORY:"directory",FILE:"file",URL:"url",TEXT:"text"}}}]);
|