-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.html
162 lines (160 loc) · 6.26 KB
/
index.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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<!DOCTYPE html>
<html lang="en">
<head>
<script>
if (document.location.pathname === "/")
document.location.href =
"https://github.com/ibrahemesam/repo-view/blob/main/README.md#README";
</script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<meta name="robots" content="noindex" />
<meta name="robots" content="nonofollow" />
<link rel="stylesheet" href="css/prism.css" data-noprefix />
<link rel="stylesheet" href="css/ipynp.notebook.css" data-noprefix />
<!-- <link rel="stylesheet" href="css/prism-line-numbers.css" data-noprefix /> -->
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/default.min.css"> -->
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/theme-switch.css" />
<link rel="stylesheet" href="css/main.css" />
<!-- <meta name="darkreader" content="NO-DARKREADER-PLUGIN" /> -->
<script src="js/darkreader.min.js"></script>
<!-- <script src="js/nodarkreader.min.js"></script> -->
<link rel="icon" href="asset/favicon.svg" />
<title>RepoView</title>
<script type="text/javascript">
// setup darkTheme before anything
(async () => {
var useDarkThemeCookie = await localStorage.getItem("useDarkTheme");
if (useDarkThemeCookie) {
window.useDarkTheme = useDarkThemeCookie
? JSON.parse(useDarkThemeCookie)
: useDarkThemeCookie;
} else {
if (window.matchMedia) {
if (window.matchMedia("(prefers-color-scheme: dark)").matches) {
useDarkTheme = true;
} else {
useDarkTheme = false;
}
} else {
useDarkTheme = true; // default is dark 🤓
}
}
useDarkTheme ? darkreader.enable() : darkreader.disable();
})();
if (
new URLSearchParams(document.location.search).get(
"hide_acknowledgement"
) === "true"
) {
document.documentElement.setAttribute("acknowledgement-hidden", "true");
}
</script>
</head>
<body>
<include-html src="widgets/theme-switch.html"></include-html>
<div class="container">
<div class="location" id="location-div" hidden></div>
<ul id="tree-ul" class="tree" hidden>
<li class="header">
<div id="cwd-name-div"></div>
<a class="btn" href="#" id="btnDownloadRepo">Download</a>
<div class="last"></div>
</li>
</ul>
<div class="blob-view" id="preview-div" hidden>
<div class="header">
<div id="preview-item-name-div"></div>
<div class="btn download-logo" id="btnDownloadFile"></div>
<div class="last">
<a id="raw-btn" class="btn" href="" target="_blank">Raw</a>
</div>
</div>
<div class="content" id="preview-item-content-div"></div>
</div>
<!-- <div class="space"></div> -->
<div id="no-internet-div" hidden>You are offline</div>
<div class="loader--ellipsis" id="loader-ellipsis-div">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<div class="loader--spinner" id="main-loader-spinner-div">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<form class="create-url" id="create-url" hidden>
<h3>Create repo-view URL</h3>
<label for="token">Github Access Token</label>
<div class="input-field">
<input type="text" placeholder="..." id="token" required />
<button name="btn-inp-paste" class="paste" target="#token"></button>
</div>
<label for="owner">Github Username</label>
<div class="input-field">
<input type="text" placeholder="..." id="owner" required />
<button name="btn-inp-paste" class="paste" target="#owner"></button>
</div>
<label for="repo">Github Repository</label>
<div class="input-field">
<input type="text" placeholder="..." id="repo" required />
<button name="btn-inp-paste" class="paste" target="#repo"></button>
</div>
<button name="btn-create-url">Create</button>
<div class="created-url" id="created-url">
<a target="_blank"></a>
<button name="btn-copy-created-url">Copy</button>
</div>
</form>
<div class="footer">
<div class="made-with-love">
<div>
<strong
><a
href="https://github.com/ibrahemesam/repo-view"
target="_blank"
>repo-view</a
></strong
>
: created with ❤️ by
<a href="https://www.linkedin.com/in/ibrahem-essam" target="_blank">
Ibrahem Essam</a
>
</div>
<div>
<span>
— inspired by:
<a href="https://gitfront.io" target="_blank">GitFront</a> —</span
>
</div>
</div>
</div>
</div>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js"></script> -->
<script src="js/include-html.js"></script>
<script src="js/prism.js"></script>
<!-- <script src="js/prism-line-numbers.js"></script> -->
<!-- <script src="https://unpkg.com/commonmark@latest/dist/commonmark.min.js"></script> -->
<script src="https://unpkg.com/dompurify@latest/dist/purify.min.js"></script>
<!-- IntersectionObserver browser support -->
<!-- <script src="https://polyfill.io/v3/polyfill.min.js?features=IntersectionObserver"></script> -->
<script src="js/marked.min.js"></script>
<script src="js/my-marked-base-url.js"></script>
<script src="js/ipynp.notebook.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/web-streams-polyfill@2.0.2/dist/ponyfill.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/streamsaver@2.0.3/StreamSaver.min.js"></script>
<script type="module" src="js/main.js"></script>
</body>
</html>