Skip to content

Commit

Permalink
feat(dev): add service buttons (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher authored May 27, 2024
1 parent cb39701 commit 52f4472
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 14 deletions.
71 changes: 67 additions & 4 deletions dist/dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,76 @@
<!-- Navigation-->
<nav id="nav-container"></nav>

<!-- Projects section-->
<section class="py-5 offset-anchor" id="Projects">
<div class="container my-5">
<!-- Hero section-->
<section class="py-5 offset-anchor" id="Hero">
<div class="container my-3">
<div class="row gx-5 justify-content-center">
<div class="col-lg-8 col-xl-6">
<div class="text-center text-white">
<h2 class="fw-bolder pb-4">Projects</h2>
<h1 class="fw-bolder">Developer Dashboard</h1>
</div>

<div>
<!-- Cloudsmith button -->
<a class="btn btn-warning mx-1 my-2" href="https://cloudsmith.io/~lizardbyte/repos" target="_blank" rel="noopener noreferrer">
<span class="fa-stack fa-xs">
<i class="fas fa-diamond fa-stack-2x"></i>
<i class="fas fa-circle fa-stack-1x" style="color:orange"></i>
</span>
Cloudsmith
</a>

<!-- CodeCov button -->
<a class="btn btn-info mx-1 my-2" href="https://app.codecov.io/gh/LizardByte" target="_blank" rel="noopener noreferrer">
<i class="fas fa-umbrella me-2"></i>CodeCov
</a>

<!-- Crowdin buttons -->
<a class="btn btn-info mx-1 my-2" href="https://crowdin.com/project/lizardbyte" target="_blank" rel="noopener noreferrer">
<i class="fas fa-globe me-2"></i>Crowdin (projects)
</a>
<a class="btn btn-info mx-1 my-2" href="https://crowdin.com/project/lizardbyte-docs" target="_blank" rel="noopener noreferrer">
<i class="fas fa-globe me-2"></i>Crowdin (docs)
</a>

<!-- GitHub Caches button -->
<a class="btn btn-info mx-1 my-2" href="https://github.com/organizations/LizardByte/settings/actions/caches" target="_blank" rel="noopener noreferrer">
<i class="fas fa-database me-2"></i>GitHub Caches
</a>

<!-- GitHub Hosted Runners button -->
<a class="btn btn-info mx-1 my-2" href="https://github.com/organizations/LizardByte/settings/actions/hosted-runners" target="_blank" rel="noopener noreferrer">
<i class="fab fa-github me-2"></i>GitHub Hosted Runners
</a>

<!-- PyPI button -->
<a class="btn btn-info mx-1 my-2" href="https://pypi.org/user/LizardByte/" target="_blank" rel="noopener noreferrer">
<i class="fab fa-python me-2"></i>PyPI
</a>

<!-- ReadTheDocs button -->
<a class="btn btn-info mx-1 my-2" href="https://readthedocs.org/dashboard/lizardbyte/subprojects/" target="_blank" rel="noopener noreferrer">
<i class="fas fa-book me-2"></i>ReadTheDocs
</a>

<!-- YouTrack button -->
<a class="btn btn-warning mx-1 my-2" href="https://lizardbyte.youtrack.cloud" target="_blank" rel="noopener noreferrer">
<i class="fas fa-bug me-2"></i>YouTrack
</a>
</div>

</div>
</div>
</div>
</section>

<!-- Repos section-->
<section class="py-5 offset-anchor" id="Repos">
<div class="container my-3">
<div class="row gx-5 justify-content-center">
<div class="col-lg-8 col-xl-6">
<div class="text-center text-white">
<h2 class="fw-bolder pb-4">Repos</h2>
</div>
</div>
</div>
Expand Down
10 changes: 0 additions & 10 deletions dist/js/dev_dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ $(document).ready(function(){
"Stars",
"Forks",
"Open Issues & Pulls",
"Master Default",
"Languages",
"License",
"Docs",
Expand Down Expand Up @@ -164,14 +163,6 @@ $(document).ready(function(){
table_data_image_src.alt = ""
table_data_image.append(table_data_image_src)

// default branch is master
let default_branch_data = document.createElement("i")
if (sorted[repo]['default_branch'] === "master") {
default_branch_data.className = "fa-fw fa-solid fa-check-circle text-success"
} else {
default_branch_data.className = "fa-fw fa-solid fa-times-circle text-danger"
}

// get license data
// if blank use font awesome red X circle icon
let license_data = document.createElement("i")
Expand Down Expand Up @@ -204,7 +195,6 @@ $(document).ready(function(){
"stargazers_count": sorted[repo]['stargazers_count'],
"forks": sorted[repo]['forks'],
"open_issues": sorted[repo]['open_issues'],
"default_branch": default_branch_data,
"language": language_data,
"license": license_data,
"readthedocs": docs_link,
Expand Down

0 comments on commit 52f4472

Please sign in to comment.