forked from jdiehl/brackets-extension-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextensionManager.html
83 lines (73 loc) · 3.12 KB
/
extensionManager.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
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet/less" type="text/css" href="../../../styles/brackets.less">
<link rel="stylesheet" type="text/css" href="extensionManager.css">
<script src="../../../thirdparty/jquery-1.7.min.js"></script>
<script src="../../../thirdparty/less-1.3.0.min.js"></script>
<script>
$(function () {
var $dialog = $(".modal:first");
var $tabs = $dialog.find(".tabSwitcher");
var $extensions = $dialog.find(".extensions").addClass("installed");
var $item = $extensions.find("> div:first").remove();
$tabs.find(".availableTab").click(function () {
$tabs.find("li.active").removeClass("active");
$(this).closest("li").addClass("active");
$extensions.removeClass("installed");
});
$tabs.find('.installedTab').click(function () {
$tabs.find('li.active').removeClass("active");
$(this).closest("li").addClass("active");
$extensions.addClass("installed");
});
// Default case: not installed, not enabled
$extensions.append($item.clone(true));
$extensions.append($item.clone(true).addClass("outdated"));
// Installed, but not enabled
$item.addClass("installed");
$extensions.append($item.clone(true));
$extensions.append($item.clone(true).addClass("outdated"));
// Installed and enabled
$item.addClass("enabled");
$item.find(".installationCheckbox").attr("checked", true);
$extensions.append($item.clone(true));
$extensions.append($item.clone(true).addClass("outdated"));
});
</script>
</head>
<body>
<div class="modal-backdrop in"></div>
<div class="modal in extensionManager">
<div class="modal-header">
<a href="#" class="close">×</a>
<ul class="tabSwitcher">
<li class="active installedTab"><a>Installed</a></li>
<li class="availableTab"><a>Available</a></li>
</ul>
<h1 class="dialog-title">Extension Manager</h1>
</div>
<div class="modal-body">
<div class="loading">
Loading...
</div>
<div class="installed extensions">
<div>
<input type="checkbox" class="installationCheckbox">
<div class="titleField">My awesome extension</div>
<div class="descriptionField">This extension does something truly, utterly amazing. It is absolutely mindblowing.</div>
<div class="buttons">
<div class="versionField">1.2.3</div>
<button class="btn primary updateButton">Update</button>
<button class="btn danger uninstallButton">Uninstall</button>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<input class="filter"/>
<button class="btn updateAllButton">Update all</button>
</div>
</div>
</body>
</html>