-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
94 lines (87 loc) · 3.12 KB
/
Copy pathpopup.html
File metadata and controls
94 lines (87 loc) · 3.12 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Kutt.it Link Manager</title>
<link rel="stylesheet" href="popup.css" />
</head>
<body>
<header>
<h1>Kutt.it</h1>
<button id="open-options" title="Settings" aria-label="Open settings">
⚙️
</button>
</header>
<div id="update-banner" class="update-banner hidden" role="alert">
<span>✨ Updated to <strong id="update-version"></strong></span>
<a id="update-changelog" href="https://github.com/nechodom/kutt-extension-chrome/releases" target="_blank" rel="noopener noreferrer">What's new</a>
<button id="dismiss-update" type="button" aria-label="Dismiss update notification">×</button>
</div>
<section id="status" role="status" aria-live="polite"></section>
<section id="auth-info" class="card hidden">
<h2>API key required</h2>
<p>
Please add your <code>X-API-KEY</code> on the settings page to start using the
extension.
</p>
<button id="go-to-options">Open settings</button>
</section>
<section id="create-form" class="card hidden">
<h2>Create short link</h2>
<div class="quick-actions">
<button
id="shorten-current-tab"
type="button"
class="primary"
title="Shorten the URL of the active tab"
>
Shorten current tab
</button>
</div>
<form id="link-form">
<label>
Target URL
<input type="url" name="target" id="target" placeholder="https://example.com" required />
</label>
<label>
Description
<input type="text" name="description" id="description" placeholder="Optional description" />
</label>
<label>
Custom back half
<input type="text" name="customurl" id="customurl" placeholder="Optional custom slug" />
</label>
<label>
Domain
<input type="text" name="domain" id="domain" placeholder="Optional custom domain" />
</label>
<div class="form-actions">
<button type="submit">Shorten</button>
</div>
</form>
</section>
<section id="links" class="card hidden">
<div class="links-header">
<h2>Recent links</h2>
<button id="refresh-links" title="Refresh" aria-label="Refresh links">⟳</button>
</div>
<ul id="links-list"></ul>
<p id="no-links" class="muted hidden">No links yet. Create one above!</p>
</section>
<template id="link-item-template">
<li class="link-item">
<div class="link-main">
<a class="short-link" target="_blank" rel="noopener noreferrer"></a>
<p class="long-link"></p>
</div>
<div class="link-meta">
<span class="created"></span>
<button class="copy-button" title="Copy to clipboard">Copy</button>
<button class="stats-button" title="Open link stats">Stats</button>
</div>
</li>
</template>
<script src="popup.js" type="module"></script>
</body>
</html>