-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.html
136 lines (128 loc) · 6.4 KB
/
app.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>App</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link href='https://fonts.googleapis.com/css?family=Poppins' rel='stylesheet'>
<style>
body {
font-family: 'Poppins', sans-serif;
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<div class="container-fluid">
<a class="navbar-brand" href="/dashboard"><h2><strong>Shiftlog</strong></h2></a>
<div class="d-flex">
<a href="/profile" class="btn btn-outline-light me-2"><i class="fas fa-user"></i></a>
<a onclick="logout()" class="btn btn-outline-light"><i class="fas fa-sign-out-alt"></i></a>
</div>
</div>
</nav>
<div class="container my-5">
<h1><strong id="appNameHeader">App Name</strong></h1>
<h5>API Endpoint: <code id="apiEndpoint"></code></h5>
</div>
<div class="container my-3">
<button type="button" class="btn btn-danger" data-bs-toggle="modal" data-bs-target="#delete-app-modal">Delete App</button>
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#update-app-modal">Update App</button>
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#create-release-modal">Create Release</button>
</div>
<!-- Display App Releases Here in table -->
<div class="container my-5">
<table id="releaseTable" class="table table-striped">
<thead>
<tr>
<th scope="col">S.No.</th>
<th scope="col">Version Code</th>
<th scope="col">Version Name</th>
<th scope="col">Hidden</th>
<th scope="col">Last Modified</th>
</tr>
</thead>
<tbody id="releases">
<!-- show loader icon -->
<tr id="loader">
<td colspan="5" class="text-center">
<div class="spinner-border text-primary" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</td>
</tr>
</tbody>
</table>
<!-- show no releases message -->
<div id="noReleases" class="text-center" style="display: none;">
<img src="assets/void.png" alt="Void" style="width: 50vh; height: auto;">
<h3>No Releases Found!</h3>
</div>
</div>
<!-- Modal to Delete App -->
<div class="modal fade" id="delete-app-modal" tabindex="-1" aria-labelledby="delete-app-modal-label" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-body">
<h5>Are you sure you want to delete this app? All releases will be deleted permanently. This action is irreversible!</h5>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" onclick="deleteApp()">Delete</button>
</div>
</div>
</div>
</div>
<!-- Modal to Update App Details -->
<div class="modal fade" id="update-app-modal" tabindex="-1" aria-labelledby="update-app-modal-label" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header bg-primary text-white">
<h5 class="modal-title" id="update-app-modal-label">Update App Details</h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form id="updateAppForm" action="javascript:updateApp()">
<div class="mb-3">
<label for="appName" class="form-label">App Name</label>
<input type="text" class="form-control" id="appName">
</div>
<div class="mb-3">
<label for="hidden" class="form-label">Hidden</label>
<input type="checkbox" class="form-check-input" id="hidden">
</div>
<button type="submit" class="btn btn-primary">Update</button>
</form>
</div>
</div>
</div>
</div>
<!-- Modal to Create Release -->
<div class="modal fade" id="create-release-modal" tabindex="-1" aria-labelledby="create-release-modal-label" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header bg-primary text-white">
<h5 class="modal-title" id="create-release-modal-label">Create Release</h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form id="createReleaseForm" action="javascript:createRelease()">
<div class="mb-3">
<label for="versionCode" class="form-label">Version Code</label>
<input type="text" class="form-control" id="versionCode" required>
</div>
<div class="mb-3">
<label for="versionName" class="form-label">Version Name</label>
<input type="text" class="form-control" id="versionName" required>
</div>
<button type="submit" class="btn btn-primary">Create</button>
</form>
</div>
</div>
</div>
</div>
<script src="logic/app.js"></script>
</body>
</html>