-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
144 lines (134 loc) · 6.36 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
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
134
135
136
137
138
139
140
141
142
143
144
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" title="white" href="styles/themes/white-theme.css" />
<link rel="stylesheet" type="text/css" title="dark" disabled="true" href="styles/themes/dark-theme.css" />
<link rel="stylesheet" type="text/css" title="gray" disabled="true" href="styles/themes/gray-theme.css" />
<script src="platen.js"></script>
<title>platen</title>
</head>
<body data-ng-app="platen" data-ng-csp>
<div data-ng-controller="MainController" class="main-container">
<aside id="settings-panel" data-ng-class="{'options-visible': optionsPanelVisible}" data-ng-show="optionsPanelVisible">
<header class="settings-panel-header">
<span>settings</span>
<span class="icon-close" data-ng-click="toggleOptionsPanel()"></span>
</header>
<div class="settings-container">
<section class="option-container">
<header>theme</header>
<ul>
<li data-ng-repeat="theme in themes" data-ng-bind="theme" data-ng-click="switchTheme(theme)"
data-ng-class="{'theme-option':true, selected: settings.theme === theme}" />
</li>
</ul>
</section>
<section class="option-container">
<header>login credentials</header>
<button class="btn" data-ng-click="loginCredentials()">edit</button>
</section>
<section class="option-container">
<header>fonts</header>
<div class="option-group">
<label>post title</label>
<select data-ng-options="font for font in fonts" data-ng-model="settings.postTitleFont"
data-ng-change="saveFont(settings.postTitleFont, settingsKeys.postTitleFont)"></select>
<div class="font-controls">
<span class="icon-larger-font" data-ng-click="changeFontSize('postTitleFontSize', 1)"></span>
<span class="icon-smaller-font" data-ng-click="changeFontSize('postTitleFontSize', -1)"></span>
</div>
</div>
<div class="option-group">
<label>post body</label>
<select data-ng-options="font for font in fonts" data-ng-model="settings.postBodyFont"
data-ng-change="saveFont(settings.postBodyFont, settingsKeys.postBodyFont)"></select>
<div class="font-controls">
<span class="icon-larger-font" data-ng-click="changeFontSize('postBodyFontSize', 1)"></span>
<span class="icon-smaller-font" data-ng-click="changeFontSize('postBodyFontSize', -1)"></span>
<span class="icon-larger-line-height" data-ng-click="changeFontSize('postBodyLineHeight', 1)"></span>
<span class="icon-smaller-line-height" data-ng-click="changeFontSize('postBodyLineHeight', -1)"></span>
</div>
</div>
<div class="option-group">
<label>post html</label>
<select data-ng-options="font for font in fonts" data-ng-model="settings.postHtmlFont"
data-ng-change="saveFont(settings.postHtmlFont, settingsKeys.postHtmlFont)"></select>
<div class="font-controls">
<span class="icon-larger-font" data-ng-click="changeFontSize('postHtmlFontSize', 1)"></span>
<span class="icon-smaller-font" data-ng-click="changeFontSize('postHtmlFontSize', -1)"></span>
<span class="icon-larger-line-height" data-ng-click="changeFontSize('postHtmlLineHeight', 1)"></span>
<span class="icon-smaller-line-height" data-ng-click="changeFontSize('postHtmlLineHeight', -1)"></span>
</div>
</div>
<div class="option-group">
<button class="btn" data-ng-click="resetFonts()">reset fonts</button>
</div>
</section>
<section class="option-container">
<header>utilities</header>
<div class="option-group">
<button class="btn" data-ng-click="deleteAllPosts()">delete all posts</button>
</div>
<div class="option-group">
<button class="btn" data-ng-click="deleteAllImages()">delete all images</button>
</div>
</section>
</div>
</aside>
<section id="main-panel" data-ng-class="{'options-visible': optionsPanelVisible}" >
<nav>
<ul>
<li><span data-ng-click="toggleOptionsPanel()"><i class="icon-settings"></i></span></li>
<li><a href="#/posts"><i class="icon-posts-list" title="view posts"></i></a></li>
<li><a href="#/posts/0"><i class="icon-new-post" title="create post"></i></a></li>
<li><a href="#/images"><i class="icon-images-list" title="view images"></i></a></li>
<li><a href="#/logs"><i class="icon-logs" title="view logs"></i></a></li>
<li><a href="#/about"><i class="icon-help" title="about"></i></a></li>
</ul>
</nav>
<div class="status-bar">
<div class="status-container">
<span data-ng-click="showMessage()" data-ng-class="{'status-light': true, processing: appStatus.isProcessing, error: (!appStatus.isSuccess && !appStatus.isProcessing), success: (appStatus.isSuccess && !appStatus.isProcessing)}"></span>
<div data-ng-class="{rotate: appStatus.isProcessing, status: true}" title="{{appStatus.message}}"></div>
</div>
<span data-ng-show="appStatus.showMessage"
data-ng-class="{'status-message': true, error: !appStatus.isSuccess, success: appStatus.isSuccess}">
<span data-ng-bind="appStatus.message"></span>
<span class="icon-close" data-ng-click="dismissMessage()"></span>
</span>
</div>
<section data-ng-view></section>
</section>
<div id="delete-posts-confirm">
<div modal="deleteAllPostsConfirmOpen" close="close()">
<div class="modal-header">
<h2>Delete All Posts</h2>
</div>
<div class="modal-body">
<p>Are you sure you want to delete all posts?</p>
</div>
<div class="modal-footer">
<button class="btn btn-warning cancel" ng-click="proceedWithAllPostsDelete()">Proceed</button>
<button class="btn btn-warning cancel" ng-click="cancelAllPostsDelete()">Cancel</button>
</div>
</div>
</div>
<div id="delete-images-confirm">
<div modal="deleteAllImagesConfirmOpen" close="close()">
<div class="modal-header">
<h2>Delete All Posts</h2>
</div>
<div class="modal-body">
<p>Are you sure you want to delete all images?</p>
</div>
<div class="modal-footer">
<button class="btn btn-warning cancel" ng-click="proceedWithAllImagesDelete()">Proceed</button>
<button class="btn btn-warning cancel" ng-click="cancelAllImagesDelete()">Cancel</button>
</div>
</div>
</div>
</div>
<iframe id="embedded_ga" seamless="seamless" src="analytics/embedded_ga_host.html"></iframe>
</body>
</html>