-
Notifications
You must be signed in to change notification settings - Fork 1
/
search.html
133 lines (127 loc) · 4.69 KB
/
search.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
<!doctype html>
<html>
<head>
<title>Search Filesystem < Nautilus Replacement</title>
<script type="application/javascript"
src="bower_components/angular/angular.min.js"></script>
<script type="application/javascript"
src="bower_components/angular-aria/angular-aria.min.js"></script>
<script type="application/javascript"
src="bower_components/angular-animate/angular-animate.min.js"></script>
<script type="application/javascript"
src="bower_components/angular-messages/angular-messages.min.js"></script>
<script type="application/javascript"
src="bower_components/angular-material/angular-material.min.js"></script>
<link rel="stylesheet"
href="bower_components/material-design-icons/iconfont/material-icons.css">
<link rel="stylesheet"
href="bower_components/angular-material/angular-material.min.css">
<link rel="stylesheet"
href="style.css">
</head>
<body ng-app="searchModule">
<section id="searchRoot"
ng-controller="SearchRootController as $search"
layout="column"
layout-fill>
<md-toolbar md-theme="toolbar" class="md-accent">
<div class="md-toolbar-tools" layout="row">
<md-button class="md-icon-button">
<span class="material-icons">
search
</span>
</md-button>
<md-autocomplete flex
md-clear-button="true"
ng-disabled="$search.searchInput.isDisabled"
md-no-cache="$search.searchInput.noCache"
md-selected-item="$search.searchInput.selectedItem"
md-search-text-change="$search.searchInput.searchTextChange($search.searchInput.searchText)"
md-search-text="$search.searchInput.searchText"
md-selected-item-change="$search.searchInput.selectedItemChange(item)"
md-items="item in $search.searchInput.querySearch($search.searchInput.searchText)"
md-item-text="item.display"
md-min-length="3"
placeholder="Enter keywords or phrase ...">
<md-item-template>
<span md-highlight-text="$search.searchInput.searchText" md-highlight-flags="^i">{{item.display}}</span>
</md-item-template>
<md-not-found>
No previous searches matching "{{$search.searchInput.searchText}}" were found.
<a ng-click="$search.searchInput.newState($search.searchInput.searchText)">Create a new one!</a>
</md-not-found>
</md-autocomplete>
<md-menu md-offset="0 48">
<md-button class="md-icon-button"
ng-click="openMenu($mdMenu, $event)">
<span class="material-icons">
menu
</span>
</md-button>
<md-menu-content width="4">
<md-menu-item>
<md-button ng-click="handleClick($item, $event)">
<md-icon class="material-icons">
web_asset
</md-icon>
New window
</md-button>
</md-menu-item>
<md-menu-item>
<md-button ng-click="showSearch($event)">
<md-icon class="material-icons">
search
</md-icon>
Search
</md-button>
</md-menu-item>
<md-divider></md-divider>
<md-menu-item>
<md-button>
<md-checkbox ng-model="showHidden" aria-label="Show Hidden">
Show hidden
</md-checkbox>
</md-button>
</md-menu-item>
<md-divider></md-divider>
<md-menu-item>
<md-button ng-click="manageSettings($event)">
<md-icon class="material-icons">
settings
</md-icon>
Settings
</md-button>
</md-menu-item>
<md-menu-item>
<md-button ng-click="showAbout($event)">
<md-icon class="material-icons">
info_outline
</md-icon>
About
</md-button>
</md-menu-item>
<md-menu-item>
<md-button ng-click="handleClick($item, $event)">
<md-icon class="material-icons">
close
</md-icon>
Close window
</md-button>
</md-menu-item>
</md-menu-content>
</md-menu>
</div>
</md-toolbar>
<md-content layout
flex>
<md-tabs class="md-accent" layout-fill>
<md-tab label="Results">
<md-content class="md-padding">
Results
</md-content>
</md-tab>
</md-tabs>
</md-content>
</section>
<script type="application/javascript"
src="search.js"></script>