Skip to content
This repository was archived by the owner on Sep 27, 2021. It is now read-only.

Commit 6f6f872

Browse files
committed
fix html
1 parent 41d1cf1 commit 6f6f872

File tree

3 files changed

+25
-25
lines changed

3 files changed

+25
-25
lines changed

ui/components/UserList.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
<div class="btn-group" role="group" aria-label="Basic example">
2222
<router-link v-bind:to="'/user/' + user.username" tag="button" class="btn btn-sm btn-outline-dark">
23-
<i class="fas fa-code-branch"></i> View {{user.totalRepos}}/{{user.reportedRepos}} Repos
23+
<i class="fas fa-code-branch"></i> {{user.totalRepos}}/{{user.reportedRepos}} repos
2424
</router-link>
2525

2626
<button type="button" class="btn btn-sm" v-bind:class="{
@@ -69,6 +69,7 @@
6969
const axios = require('axios');
7070
7171
const capitalize = require('../lib/capitalize');
72+
const isMobile = require('../lib/is-mobile');
7273
7374
const CancelToken = axios.CancelToken;
7475
const urlParams = new URLSearchParams(location.search);
@@ -122,6 +123,9 @@ module.exports = {
122123
this.totalUsers = total;
123124
}
124125
},
126+
computed: {
127+
isMobile
128+
},
125129
filters: {
126130
capitalize,
127131
truncateUsername: function (value) {

ui/lib/is-mobile.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = function isMobile() {
2+
return /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent);
3+
}

www/index.html

Lines changed: 17 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,27 @@
11
<!DOCTYPE html>
2-
<html lang="en">
3-
<head>
4-
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
2+
<head>
3+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
54

6-
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
7-
<meta name="description" content="">
8-
<meta name="author" content="@super3, @montyanderson, @calebcase">
5+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
6+
<meta name="description" content="">
7+
<meta name="author" content="@super3, @montyanderson, @calebcase">
98

10-
<title>GitBackup</title>
9+
<title>GitBackup</title>
1110

12-
<link rel="icon" type="image/png" href="./assets/favicon-32x32.png" sizes="32x32" />
13-
<link rel="icon" type="image/png" href="./assets/favicon-16x16.png" sizes="16x16" />
11+
<link rel="icon" type="image/png" href="./assets/favicon-32x32.png" sizes="32x32" />
12+
<link rel="icon" type="image/png" href="./assets/favicon-16x16.png" sizes="16x16" />
1413

15-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
16-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
17-
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
18-
<script src="https://kit.fontawesome.com/14ede0c6f2.js"></script>
19-
20-
<!-- production version, optimized for size and speed -->
21-
<!--<script src="https://cdn.jsdelivr.net/npm/vue"></script>-->
22-
23-
<!-- Custom styles for this template -->
24-
<link href="./assets/floating-labels.css" rel="stylesheet">
25-
<link href="./assets/style.css" rel="stylesheet">
26-
</head>
27-
<body>
28-
<div class="form-signin" _lpchecked="1">
14+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
15+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
16+
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
17+
<script src="https://kit.fontawesome.com/14ede0c6f2.js"></script>
2918

19+
<link href="./assets/floating-labels.css" rel="stylesheet">
20+
<link href="./assets/style.css" rel="stylesheet">
21+
</head>
22+
<body>
3023

3124
<div id="app"></div>
3225

3326
<script src="assets/script.js"></script>
34-
</body></html>
27+
</body>

0 commit comments

Comments
 (0)