diff --git a/migrate/Readme.md b/migrate/Readme.md index 6e7bea48594b3096f60420a81d371305609885b3..53dbe7eacb7a92d82c782ea177f2b107a49d921f 100644 --- a/migrate/Readme.md +++ b/migrate/Readme.md @@ -1,3 +1,20 @@ # __Dummy data APBD JABAR__ -Masuk ke folder __dump_data_api__, lalu gunakan perintah `mongorestore` untuk menambahkan __data dummy__ ke basisdata viz-masy \ No newline at end of file +Gunakan perintah `mongorestore dump_data_api` untuk menambahkan __data APBD dummy__ ke basisdata viz-masy + +Gunakan perintah `mongorestore dummy_datas` untuk menambahkan __data Admin dummy__ ke basisdata viz-masy : + + * Akun __superadmin__ + * Username : superadmin + * Password : 111 + + * Akun __admin__ + * Username : admin_dummy + * Password : 111 + * List-Page : [ "5cc1ce9dffdac701e862e339", + "5cc1ce9dffdac701e862e49f", + "5cc1ced0ffdac701e8630aea", + "5cc1ced0ffdac701e8630aeb", + "5cc1ced0ffdac701e8630aec"] + + diff --git a/migrate/dummy_datas/viz-masy/user.bson b/migrate/dummy_datas/viz-masy/user.bson new file mode 100644 index 0000000000000000000000000000000000000000..ab1ef8c3748397aebbcf1f66ecd81834fee082bc Binary files /dev/null and b/migrate/dummy_datas/viz-masy/user.bson differ diff --git a/migrate/dummy_datas/viz-masy/user.metadata.json b/migrate/dummy_datas/viz-masy/user.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..69fda825c6dfd137200193ca621a521a17510dcd --- /dev/null +++ b/migrate/dummy_datas/viz-masy/user.metadata.json @@ -0,0 +1 @@ +{"options":{},"indexes":[{"v":2,"key":{"_id":1},"name":"_id_","ns":"viz-masy.user"},{"v":2,"unique":true,"key":{"username":1},"name":"username_1","ns":"viz-masy.user","background":false,"sparse":false}],"uuid":"1af597404e0d4da780c1cbd9f0894f76"} \ No newline at end of file diff --git a/migrate/dump/viz-masy/kegiatan.bson b/migrate/dump/viz-masy/kegiatan.bson deleted file mode 100644 index fcfaac4b1eb615e44b7f5ca79a72e373916d54a4..0000000000000000000000000000000000000000 Binary files a/migrate/dump/viz-masy/kegiatan.bson and /dev/null differ diff --git a/migrate/dump/viz-masy/kegiatan.metadata.json b/migrate/dump/viz-masy/kegiatan.metadata.json deleted file mode 100644 index c21ba3f10aa636e71719d02468136ac58ac043c2..0000000000000000000000000000000000000000 --- a/migrate/dump/viz-masy/kegiatan.metadata.json +++ /dev/null @@ -1 +0,0 @@ -{"options":{},"indexes":[{"v":2,"key":{"_id":1},"name":"_id_","ns":"viz-masy.kegiatan"}],"uuid":"4eb8f4b28c7347f882d0d5be523d2cd0"} \ No newline at end of file diff --git a/migrate/dump/viz-masy/program.bson b/migrate/dump/viz-masy/program.bson deleted file mode 100644 index eb35bd0e3bcd9dd6cac91b78058be2fddffb3b20..0000000000000000000000000000000000000000 Binary files a/migrate/dump/viz-masy/program.bson and /dev/null differ diff --git a/migrate/dump/viz-masy/program.metadata.json b/migrate/dump/viz-masy/program.metadata.json deleted file mode 100644 index 422051f4d1db8149389fe3a482f5eb736614d995..0000000000000000000000000000000000000000 --- a/migrate/dump/viz-masy/program.metadata.json +++ /dev/null @@ -1 +0,0 @@ -{"options":{},"indexes":[{"v":2,"key":{"_id":1},"name":"_id_","ns":"viz-masy.program"}],"uuid":"14c860f6bf8a4414953ad2a27e5c2e3a"} \ No newline at end of file diff --git a/migrate/dump/viz-masy/rekening.bson b/migrate/dump/viz-masy/rekening.bson deleted file mode 100644 index fb2cf7e6d308b01407629bbbce1e50e5a77d8810..0000000000000000000000000000000000000000 Binary files a/migrate/dump/viz-masy/rekening.bson and /dev/null differ diff --git a/migrate/dump/viz-masy/rekening.metadata.json b/migrate/dump/viz-masy/rekening.metadata.json deleted file mode 100644 index 7c8c2909125d6e38753d62963d74d4e6a1498da5..0000000000000000000000000000000000000000 --- a/migrate/dump/viz-masy/rekening.metadata.json +++ /dev/null @@ -1 +0,0 @@ -{"options":{},"indexes":[{"v":2,"key":{"_id":1},"name":"_id_","ns":"viz-masy.rekening"}],"uuid":"f6437a817e5a44e7959d54b5bfbe926b"} \ No newline at end of file diff --git a/migrate/dump/viz-masy/s_k_p_d.bson b/migrate/dump/viz-masy/s_k_p_d.bson deleted file mode 100644 index eeca557a4a2e8edcb15b0eac0d95011575852ce7..0000000000000000000000000000000000000000 Binary files a/migrate/dump/viz-masy/s_k_p_d.bson and /dev/null differ diff --git a/migrate/dump/viz-masy/s_k_p_d.metadata.json b/migrate/dump/viz-masy/s_k_p_d.metadata.json deleted file mode 100644 index 31e559b38e2b807168d75427a4f11a168f7c52cf..0000000000000000000000000000000000000000 --- a/migrate/dump/viz-masy/s_k_p_d.metadata.json +++ /dev/null @@ -1 +0,0 @@ -{"options":{},"indexes":[{"v":2,"key":{"_id":1},"name":"_id_","ns":"viz-masy.s_k_p_d"}],"uuid":"e80e2c652caf4aa1b5188e304d408399"} \ No newline at end of file diff --git a/migrate/dump/viz-masy/urusan.bson b/migrate/dump/viz-masy/urusan.bson deleted file mode 100644 index eb32215280f807a52399c30ed8096d5fab7afe3b..0000000000000000000000000000000000000000 Binary files a/migrate/dump/viz-masy/urusan.bson and /dev/null differ diff --git a/migrate/dump/viz-masy/urusan.metadata.json b/migrate/dump/viz-masy/urusan.metadata.json deleted file mode 100644 index 793c6773a6c6f57fa937e86e6558da9cf3049efd..0000000000000000000000000000000000000000 --- a/migrate/dump/viz-masy/urusan.metadata.json +++ /dev/null @@ -1 +0,0 @@ -{"options":{},"indexes":[{"v":2,"key":{"_id":1},"name":"_id_","ns":"viz-masy.urusan"}],"uuid":"5d8ed91bde014d46bb6808c43a8a2f11"} \ No newline at end of file diff --git a/migrate/dump/viz-masy/user.bson b/migrate/dump/viz-masy/user.bson deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/migrate/dump/viz-masy/user.metadata.json b/migrate/dump/viz-masy/user.metadata.json deleted file mode 100644 index 0ccd4bde3bec26c464fe0ec2f2f7ba774efef937..0000000000000000000000000000000000000000 --- a/migrate/dump/viz-masy/user.metadata.json +++ /dev/null @@ -1 +0,0 @@ -{"options":{},"indexes":[{"v":2,"key":{"_id":1},"name":"_id_","ns":"viz-masy.user"}],"uuid":"1af597404e0d4da780c1cbd9f0894f76"} \ No newline at end of file diff --git a/static/images/db_diagram.png b/static/images/db_diagram.png deleted file mode 100644 index e7155b093b85523909145ab032df39cdb8f20f83..0000000000000000000000000000000000000000 Binary files a/static/images/db_diagram.png and /dev/null differ diff --git a/static/images/db_diagram.xml b/static/images/db_diagram.xml deleted file mode 100644 index 9fd50387077910ba3745754b1d8d6b48c05bab19..0000000000000000000000000000000000000000 --- a/static/images/db_diagram.xml +++ /dev/null @@ -1 +0,0 @@ -<mxfile modified="2019-03-24T20:32:39.747Z" host="www.draw.io" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36" etag="sjKv_tOLJVeeRa1JJORV" version="10.5.4" type="device"><diagram id="hNmExGK7LZ8nQWeVUjXX" name="Page-1">5Vtbd5s4EP41PLYHJC7OY53LtpukTTfb0+2+5MhGBjaAqJBje3/9CiOMQcKQ1lz29CXHGiQxfDMajb5RNHgZbX+jKPHviYtDDejuVoNXGgD2BeB/M8EuF1i6kws8Gri5yCgFj8G/WAh1IV0HLk4rHRkhIQuSqnBJ4hgvWUWGKCWbarcVCatvTZCHJcHjEoWy9GvgMj+Xziy9lL/HgecXbzZ08SRCRWchSH3kks2RCF5r8JISwvJf0fYShxl2BS75uJuGpwfFKI5ZlwGJ/zn6O93cXYcu/v39fP7p8/dPb4R1XlC4Fh/8JcVUKMx2BQqUrGMXZxPpGpxv/IDhxwQts6cbbnYu81kU8pbBf4opMWV426ircUCAew4mEWZ0x7uIAaDAd3eANW9vShsYMyHzj/CHQoaE2b3D1CUy/IcA5xVAQQmoh1sN2CF/73zBAbM9tv/0c0mmZgBTNoCpwN/ozQCHZVSCgl2+VEWTUOYTj8QovC6l8ypsZZ87QhIB1j+YsZ2IO2jNSBVKvA3Y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mLc+B3/v9hhtccO5RbdY/BwJBxHIhS73jrWKrURZ0LFESjOH+33kkflkKF8TLrHsUcyEgPRQF5XPokW63SQJLZWrlelV1CxPqy+lkexk4+/PDrXWGrFQzClBTLrukB0tZe8jm9/bdHPqd9RsvWaA/VRxZPv1tzjaIFCpKjmD7kSa3uV6t6DqpA/6+ukY8JRl+Ir/p1iwBVlgo4rKqcRRytbyqfUBU+0XbT/bFdx525AT6+Tb/DCeSv7unMe5oQ3y3+KzGNI+Z+l8Po/</diagram></mxfile> \ No newline at end of file diff --git a/static/medium_january.csv b/static/medium_january.csv deleted file mode 100644 index 6e26a83837743fc77f0efd17ddb206c43bd6fcf6..0000000000000000000000000000000000000000 --- a/static/medium_january.csv +++ /dev/null @@ -1,44 +0,0 @@ -title,category,views -"How Flexbox works — explained with big, colorful, animated gifs",Design,5700 -How I went from zero experience to landing a 6-figure San Francisco design job in less than 12 months,Design,3700 -"I ranked every Intro to Data Science course on the internet, based on thousands of data points",Data Science,1600 -Nobody wants to use software,Development,2700 -A million requests per second with Python,Development,1100 -Material Design and the Mystery Meat Navigation Problem,Design,1100 -Lossless Web Navigation with Trails,Design,688 -How to use spaced repetition with Anki to learn to code faster,Development,756 -How to commit entire directories to GitHub directly from your browser using GitHub.js,Development,82 -"Every time you build a to-do list app, a puppy dies",Development,1500 -How to build your own Uber-for-X application part 2,Development,650 -How we got our 2-year-old repo trending on GitHub in just 48 hours,Data Science,718 -How making hundreds of hip hop beats helped me understand HTML and CSS,Development,506 -Scaling your Redux App with ducks,Development,315 -A Beginner’s JavaScript Study Plan,Development,672 -JavaScript’s Prototypal Inheritance Explained Using CSS,Development,519 -Tree-shaking ES6 Modules in webpack 2,Development,86 -3 JavaScript questions to watch out for during coding interviews,Development,1100 -Build a Node.js API in Under 30 Minutes,Development,343 -npm cache: the unsung hero,Development,122 -Code That Doesn't Exist Is The Code You Don't Need To Debug,Development,204 -A 5-minute Intro to Styled Components,Design,760 -How to land a top-notch tech internship — and a tech job — while you’re still in school,Development,1600 -"Firebase: the great, the meh, and the ugly",Development,407 -Which programming languages got the most GitHub stars in 2016?,Data Science,100 -ElasticSearch with Django the easy way,Development,115 -Git Please: how to force push without being a jerk,Development,66 -React Interview Questions,Development,389 -"React’s Five Fingers of Death. Master these five concepts, then master React",Development,1700 -How to set up ESLint in Atom so you can contribute to Open Source,Development,94 -"If you want a developer job, be fearless and dream big",Development,695 -Understanding Flexbox: Everything you need to know,Design,2200 -How I designed an algorithm that mixes playlists of bands coming to your town,Design,47 -How making hundreds of hip hop beats helped me understand HTML and CSS,Design,506 -WebSlides: a new open source way to build beautiful presentations that run in your browser,Design,747 -What I’ve learned from 18 weeks of vlogging my coding journey,Design,276 -How I used machine learning to explore the differences between British and American literature,Data Science,74 -The Rise of the Data Engineer,Data Science,862 -How to bootstrap your analytics in 1 hour,Data Science,90 -Rolling Stone’s 500 Greatest Albums Visualized Using Pandas and Bokeh,Data Science,48 -Recognizing Traffic Lights With Deep Learning,Data Science,1700 -Women only said 27% of the words in 2016’s biggest movies,Data Science,1000 -What I learned from analyzing the top 252 Medium stories of 2016,Data Science,2200 diff --git a/static/visualisasi.js b/static/visualisasi.js deleted file mode 100644 index b2dfa60ac00894bfb1aa55ee4a1342397a8edd3a..0000000000000000000000000000000000000000 --- a/static/visualisasi.js +++ /dev/null @@ -1,120 +0,0 @@ - - - -var bubbleChart = function() { - var width = 600, - height = 400, - maxRadius = 6, - columnForColor = "category", - columnForWidth = "views"; - - function chart(selection) { - // create chart - var data = selection.datum(); - var div = selection; - var svg = div.select("svg"); - svg.attr("width", width).attr("height", height); - - //put the data (hidden) to be visible when mouseover - var tooltip = selection - .append("div") - .style("position", "absolute") - .style("visibility", "hidden") - .style("color", "white") - .style("padding", "8px") - .style("background-color", "#626D71") - .style("border-radius", "6px") - .style("text-align", "center") - .style("font-family", "monospace") - .style("width", "400px") - .text(""); - - // make force simulation function - var simulation = d3.forceSimulation(data) - .force("charge", d3.forceManyBody().strength([-50])) - .force("x", d3.forceX()) - .force("y", d3.forceY()) - .on("tick", ticked) - // ticked handler function - function ticked(e) { - node.attr("cx", function(d) { - return d.x; - }) - .attr("cy", function(d) { - return d.y; - }); - } - - //create circles width by data - var radiusCircles = d3.scaleLinear().domain([d3.min(data, function(d) { - return +d[columnForWidth]; - }), d3.max(data, function(d) { - return +d[columnForWidth]; - })]).range([5,18]); // map the min-max data in the column for width to 5-18 - - //create circle colors by data - var colorCircles = d3.scaleOrdinal(d3.schemeCategory10); - node - - //create the circles - var node = svg.selectAll("circle") - .data(data) - .enter() - .append("circle") - .attr('r', function(d) { - return radiusCircles(d[columnForWidth]); - }) - .style("fill", function(d) { - return colorCircles(d[columnForColor]); - }) - .attr('transform','translate(' + [width / 2, height / 2] + ')') - // set data visible in mouseover - .on("mouseover", function(d) { - tooltip.html(d[columnForColor] + "<br>" + d.title + "<br>" + d[columnForWidth] + " hearts"); - return tooltip.style("visibility", "visible"); - }) - .on("mousemove", function() { - return tooltip.style("top", (d3.event.pageY - 10) + "px").style("left", (d3.event.pageX + 10) + "px"); - }) - .on("mouseout", function() { - return tooltip.style("visibility", "hidden"); - }); - - } - - chart.width = function(val){ - if (!arguments) { - return width - } else { - width = val - } - return chart - } - - chart.height = function(val) { - if (!arguments) { - return height - } else { - height = val - } - return chart - } - - chart.columnForColor = function(value) { - if (!arguments.columnForColor) { - return columnForColor; - } - columnForColor = value; - return chart; - }; - - chart.columnForWidth = function(value) { - if (!arguments.columnForWidth) { - return columnForWidth; - } - columnForWidth = value; - return chart; - }; - - return chart -} \ No newline at end of file diff --git a/templates/test-visualisasi.html b/templates/test-visualisasi.html deleted file mode 100644 index f90fbec6f6445deb59f3d13f76d7fe01c5995628..0000000000000000000000000000000000000000 --- a/templates/test-visualisasi.html +++ /dev/null @@ -1,26 +0,0 @@ -<!DOCTYPE html> -<html> -<head> - <title>Page Title</title> - <script src = "https://d3js.org/d3.v4.min.js"></script> - <script src = "../static/visualisasi.js"></script> -</head> -<body> - <div class="bubbleChart" id="chart"> - <svg> - - </svg> - </div> - <script> - d3.csv('../static/medium_january.csv', function(error, csv_data) { - if (error){ - console.error("error reading csv"); - throw error; - } - console.log(csv_data); - var chart = bubbleChart().width(600).height(400); - d3.select("#chart").datum(csv_data).call(chart); - }); - </script> -</body> -</html> \ No newline at end of file