Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added lazy loading for initial checking #937

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
620 changes: 476 additions & 144 deletions __tests__/groups/group.test.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion constants.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const API_BASE_URL = window.API_BASE_URL || 'https://api.realdevsquad.com';
const API_BASE_URL =
window.API_BASE_URL || 'https://staging-api.realdevsquad.com';
const REPO_SYNC_API_URL =
'https://staging-sync.staging-realdevsquad-com.workers.dev';
const USER_MANAGEMENT_LINK = 'user-management-link';
Expand Down
65 changes: 64 additions & 1 deletion groups/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!-- <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down Expand Up @@ -55,4 +55,67 @@
<div class="toast">
<div class="toast__message"></div>
</div>
</html> -->

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="/images/index.ico" type="image/x-icon" />
<title>Discord Groups | Real Dev Squad</title>
<link rel="stylesheet" href="/global.css" />
<link rel="stylesheet" href="/groups/style.css" />
<script src="/helpers/loadENV.js"></script>
<script src="/constants.js"></script>
<script type="module" src="/groups/script.js" defer></script>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Inter:[email protected]&display=swap"
rel="stylesheet"
/>
</head>

<body>
<nav class="navbar">
<div class="navbar__container">
<a class="back" href="/">
<img src="assets/left-arrow.svg" class="back__icon" alt="Back" />
</a>
<div class="navbar__spacer"></div>
<div class="navbar__profile"></div>
</div>
</nav>
<main class="container">
<section class="group-header">
<div class="search">
<img class="search__icon" src="assets/search.svg" alt="search" />
<input class="search__input" placeholder="Serach for group" />
</div>
<div class="create-group">
<button class="button">
<span class="button__text">Create Group</span>
<img src="assets/plus.svg" class="button__icon" />
</button>
</div>
</section>
<div class="group-container"></div>
</main>
<footer>
<p class="info-repo">
The contents of this website are deployed from this
<a
href="https://github.com/Real-Dev-Squad/website-dashboard"
target="_blank"
rel="noopener noreferrer"
>open sourced repo</a
>
</p>
</footer>
</body>
<div class="toast">
<div class="toast__message"></div>
</div>
</html>
Loading
Loading