Website for visualizing a persons github network.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123 lines
6.0 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  6. <title>Organization - GitHub Graphs</title>
  7. <link rel="icon" href="./favicon.ico" type="image/x-icon" />
  8. <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
  9. <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
  10. <link rel="stylesheet" href="./style.css" />
  11. <link rel="stylesheet" href="https://cdn.rawgit.com/konpa/devicon/df6431e323547add1b4cf45992913f15286456d3/devicon.min.css">
  12. <script
  13. src="https://code.jquery.com/jquery-3.3.1.min.js"
  14. integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
  15. crossorigin="anonymous">
  16. </script>
  17. <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
  18. integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
  19. crossorigin="anonymous">
  20. </script>
  21. <script src="js/githubAPI.js"></script>
  22. <script src="js/friendsGraph.js"></script>
  23. <script src="js/createOrgRepoGraph.js"></script>
  24. <script src="js/utilities.js"></script>
  25. <script src="js/profileGen.js"></script>
  26. <script src="js/createOrgTable.js"></script>
  27. <script src="js/createOrgInfo.js"></script>
  28. <script type="text/javascript" src="https://cdn.datatables.net/v/bs4/dt-1.10.18/datatables.min.js"></script>
  29. <script type="text/javascript" src="js/vis/vis.js"></script>
  30. <link href="js/vis/vis-network.min.css" rel="stylesheet" type="text/css" />
  31. </head>
  32. <body>
  33. <nav class="navbar navbar-dark bg-dark navbar-expand-md">
  34. <a class="navbar-brand" href="/"><img src="img/githubgraph-logo.svg" alt=""></a>
  35. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#main-menu" aria-controls="main-menu" aria-expanded="false" aria-label="Toggle navigation">
  36. <span class="navbar-toggler-icon"></span>
  37. </button>
  38. <div id="main-menu" class="collapse navbar-collapse">
  39. <ul class="navbar-nav flex-fill justify-content-end">
  40. <li class="nav-item">
  41. <a class="nav-link" href="./GraphGenerator.html">Generate graphs</a>
  42. </li>
  43. <li class="nav-item">
  44. <a class="nav-link" href="https://github.com/jrtechs/github-graphs/">View on GitHub</a>
  45. </li>
  46. <li class="nav-item">
  47. <a class="nav-link" href="./about.html">About</a>
  48. </li>
  49. </ul>
  50. </div>
  51. </nav>
  52. <div class="main">
  53. <div class="container-fluid container-xl">
  54. <div class="row">
  55. <div class="col">
  56. <div class="d-flex align-items-baseline justify-content-between my-4">
  57. <div class="d-flex align-items-center">
  58. <svg class="mr-3" width="37" height="31" viewBox="0 0 37 31" fill="none" xmlns="http://www.w3.org/2000/svg">
  59. <path d="M0 31V11C0 10.5093 0.19491 10.0388 0.541852 9.69185C0.888795 9.34491 1.35935 9.15 1.85 9.15H9.25V2C9.25 0.895432 10.1454 0 11.25 0H25.75C26.8546 0 27.75 0.89543 27.75 2V9.15H35.15C35.6407 9.15 36.1112 9.34491 36.4581 9.69185C36.8051 10.0388 37 10.5093 37 11V31H22.2V21.75H14.8V31H0ZM14.8 3.5V8.8H22.2V3.5H14.8ZM3.7 27.3H11.1V21.75H3.7V27.3ZM3.7 18.05H11.1V12.5H3.7V18.05ZM25.9 27.3H33.3V21.75H25.9V27.3ZM25.9 18.05H33.3V12.5H25.9V18.05ZM14.8 18.05H22.2V12.5H14.8V18.05Z" fill="white"/>
  60. </svg>
  61. <h1 class="text-white font-weight-bold">Organization chart</h1>
  62. </div>
  63. </div>
  64. </div>
  65. </div>
  66. <div class="row">
  67. <div class="col-lg-9">
  68. <div class="row pb-4">
  69. <div class="col-12">
  70. <div id="organizationInfo"></div>
  71. </div>
  72. </div>
  73. <div class="row mb-4">
  74. <div class="col-lg-4">
  75. <div class="card">
  76. <div class="card-body" style="font-size: 14px;">
  77. <h3 class="card-title">Repositories</h3>
  78. <table class="table table-sm" id="dataTable">
  79. <thead>
  80. <tr>
  81. <th class="border-top-0">Name</th>
  82. <th class="border-top-0">Forks</th>
  83. </tr>
  84. </thead>
  85. <tbody id="repositoryTable"></tbody>
  86. </table>
  87. </div>
  88. </div>
  89. </div>
  90. <div class="col-lg-8">
  91. <div class="card shadow text-white bg-dark border-white">
  92. <div id="graphLoading"></div>
  93. <div id="myGraph" class="w-100"></div>
  94. </div>
  95. </div>
  96. </div>
  97. </div>
  98. <div class="col-lg-3">
  99. <div id="profileGen"></div>
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. </body>
  105. <script>
  106. function createGraphs(orgname) {
  107. options.width = $("#myGraph").width() + "px";
  108. options.height = "600px";
  109. createOrgRepoGraph(orgname, "myGraph", "graphLoading");
  110. createOrgTable(orgname, 'repositoryTable');
  111. createOrgInfo(orgname, 'organizationInfo')
  112. }
  113. if (findGetParameter("name") !== null) {
  114. createGraphs(findGetParameter("name"))
  115. }
  116. </script>
  117. </html>