-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
59 lines (59 loc) · 2.16 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
<!doctype html>
<html>
<head>
<title>factorio-assist</title>
<!-- build:css -->
<link rel="stylesheet" type="text/css" href="static/css/main.css">
<link rel="stylesheet" type="text/css" href="data/v0.11.22/sprites.css">
<!-- endbuild -->
<!-- build:js -->
<script src="jspm_packages/system.js"></script>
<script src="config.js"></script>
<script>System.import('./app/app');</script>
<!-- endbuild -->
</head>
<body ng-app="myApp" ng-controller="mainCtrl as m">
<md-toolbar>
<div class="md-toolbar-tools">
<h1><span>Factorio Assist</span></h1>
<span flex></span>
</div>
</md-toolbar>
<md-content layout-padding>
<section ng-if="!m.selectedRecipe">
<md-autocomplete md-selected-item="m.selectedRecipe"
md-search-text="m.searchText"
md-items="item in m.querySearch()"
md-item-text="item.name"
md-min-length="2"
placeholder="search for an item">
<md-item-template>
<div layout="row" layout-align="start center">
<div class="md-avatar icon-{{item.shortName}}"></div>
<span md-highlight-text="m.searchText" md-highlight-flags="i">{{item.name}}</span>
</div>
</md-item-template>
</md-autocomplete>
</section>
<section ng-if="m.selectedRecipe">
<md-toolbar>
<div class="md-toolbar-tools">
<div class="icon-{{m.selectedRecipe.shortName}}"></div>
<h3>{{m.selectedRecipe.name}}</h3>
<span flex></span>
<md-button>
<md-icon md-svg-icon="md-cancel" aria-label="cancel"></md-icon>
</md-button>
</div>
</md-toolbar>
<md-content class="md-whiteframe-z1" layout-padding>
<md-list ng-if="false">
<md-list-item ng-repeat="r in m.recipes">
<div><div class="itemIcon icon-{{item.shortName}}"></div> {{r.name}}</div>
</md-list-item>
</md-list>
</md-content>
</section>
</md-content>
</body>
</html>