forked from eliperelman/search
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
98 lines (97 loc) · 4.28 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="Search for Bower packages. Bower is a package manager for the web.">
<meta name="author" content="The Bower team">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta property="og:title" content="Bower search">
<meta property="og:type" content="website">
<meta property="og:url" content="bower.io/search">
<meta property="og:image" content="http://bower.io/img/bower-logo.png">
<title>Bower - Search</title>
<link href="dist/app.css" rel="stylesheet">
<style>
[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
display: none !important;
}
</style>
</head>
<body ng-app="BowerSearch" ng-controller="IndexController">
<header>
<div class="container">
<div class="row">
<div>
<div class="logo">
<a href="http://bower.io/" target="_self">
<img src="http://bower.io/img/bower-logo.png" alt="bower logo">
</a>
</div>
<h1 class="hidden-xs">Search Bower Packages</h1>
<input id="q" type="search" results="5" autofocus="autofocus" ng-model="q" ng-change="search()" class="form-control" placeholder="e.g. 'package-name', OR 'keyword', OR 'keyword owner:jquery'">
</div>
</div>
</div>
</header>
<section ng-cloak>
<div class="container">
<div class="row">
<div ng-show="hasResults" class="col-md-12">
<table class="table table-hover search-results">
<thead>
<th><a ng-click="sortResults('name')">Name</a></th>
<th class="hidden-xs"><a ng-click="sortResults('owner')">Owner</a></th>
<th class="hidden-xs"><a ng-click="sortResults('stars')">Stars</a></th>
<th class="hidden-xs"><a ng-click="sortResults('updated')">Updated</a></th>
</thead>
<tbody>
<tr ng-repeat="result in results">
<td class="name">
<h4>
<a bind-attr-once="{href: result.website}" bind-once="result.name"></a>
</h4>
<p class="description" bind-attr-once="{title: result.description}" bind-once="result.description"></p>
<p class="visible-xs">
<span class="label" bind-once="'Owner: ' + result.owner"></span>
<span class="label" bind-once="'Stars: ' + result.stars"></span>
<span class="label" bind-once="'Updated: ' + (result.updated | formatDate)"></span>
</p>
</td>
<td class="hidden-xs owner" bind-once="result.owner"></td>
<td class="hidden-xs stars" bind-once="result.stars"></td>
<td class="hidden-xs updated" bind-once="result.updated | formatDate"></td>
</tr>
</tbody>
</table>
</div>
<ul ng-show="hasResults" class="pager">
<li ng-class="{disabled: !hasPrev()}"><a shortcut="{{leftKey}}" ng-click="goToPrev()">← Previous</a></li>
<li ng-class="{disabled: !hasNext()}"><a shortcut="{{rightKey}}" ng-click="goToNext()">Next →</a></li>
</ul>
<div ng-show="hasResults" class="pager-info">
{{count}} matched results. Showing page {{page}} of {{pagesCount}}.
</div>
<div ng-show="!loading && !results.length" class="col-md-12">
<div class="alert alert-warning">
You search didn't return any results. Please try a different keyword.
</div>
</div>
<div ng-show="loading" class="spinner">
<div class="bounce1"></div>
<div class="bounce2"></div>
<div class="bounce3"></div>
</div>
<div ng-show="loadingError" class="col-md-12">
<div class="alert alert-danger">
Couldn't fetch packages list from the registry. Please try refreshing the browser again.
</div>
</div>
</div>
</div>
</section>
<a class="hidden-xs" href="https://github.com/bower/search"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>
<script src="dist/app.js"></script>
<script>var _gaq=[['_setAccount','UA-43531210-2'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script'))</script>
</body>
</html>