This repository has been archived by the owner on Jun 5, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.html
74 lines (69 loc) · 3.03 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width">
<title>GoHub</title>
<script src="//cdn.polyfill.io/v2/polyfill.min.js"></script>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link href='//unpkg.com/normalize.css' rel='stylesheet'>
<link href="//unpkg.com/[email protected]/github-markdown.css" rel='stylesheet'>
<!-- <script src="//unpkg.com/[email protected]/dist/receptor.js"></script> -->
<!-- <script src="//unpkg.com/interactjs/dist/interact.min.js"></script> -->
<!-- <script src="https://bundle.run/[email protected]"></script> -->
<link href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/solarized-dark.min.css" rel="stylesheet">
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/go.min.js"></script>
<link href="//farhadg.github.io/code-mirror-themes/themes/chrome-devtools.css" rel="stylesheet">
<link href="//unpkg.com/[email protected]/lib/codemirror.css" rel='stylesheet'>
<script src="//unpkg.com/[email protected]/lib/codemirror.js"></script>
<script src="//unpkg.com/[email protected]/keymap/sublime.js"></script>
<script src="//unpkg.com/[email protected]/addon/fold/foldcode.js"></script>
<script src="//unpkg.com/[email protected]/addon/mode/loadmode.js"></script>
<script src='//unpkg.com/[email protected]/base64.min.js'></script>
<script src='//unpkg.com/[email protected]/marked.min.js'></script>
<script src="//unpkg.com/[email protected]/powjs.js"></script>
<link href='css/index.css' rel='stylesheet'>
</head>
<body>
<header>
<span>gohub://</span><code></code>
</header>
<main>
<div id="panel"></div>
<div id="editor-container"></div>
<div id="preview" class="markdown-body"></div>
</main>
<footer>Copyright (c) 2018 The GoHub Authors. This source code is licensed under the BSD-style license</footer>
<template>
<!-- 直接接受减肥后的 resp data -->
<details func="repo" param="data" if="is.object(data.content)&&!sel(`#panel details[sha='${data.sha}']`)"
open
let="ctx=data.content"
sha="{{data.sha}}"
origin="{{ctx.Repo}}"
repo="{{data.owner}}/{{data.repo}}"
subdir="{{ctx.Subdir||''}}"
filename="{{ctx.Filename}}"
render=":ctx"
do="this.renew(sel(`#panel details[repo='${data.owner}/${data.repo}']`))"
break
>
<summary>{{ctx.Description}}</summary>
<div if="':';" each="ctx.Package,val-pkg">
<p title="{{pkg.Progress}}: {{pkg.Synopsis}}">{{pkg.Import}}</p>
</div>
</details>
<dl func="list" param="data"
if="!sel(`#panel details[sha='${data.sha}']`)&&':'||'';"
each="data.content,data.sha,val-rep"
do="this.appendTo(sel('#panel'))">
<details sha="{{sha}}" repo="{{rep.repo}}">
<summary>{{rep.synopsis}}</summary>
</details>
</dl>
</template>
<script src='js/script.js?_=1526892615177'></script>
</body>
</html>