forked from raindropio/old-chrome-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
232 lines (196 loc) · 10.7 KB
/
popup.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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
<!DOCTYPE html>
<html lang="en" id="ng-app" ng-app="avenger" ng-csp xmlns:ng="http://angularjs.org">
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="css/normalize.css">
<link rel="stylesheet" type="text/css" href="libs/ionicons.min.css">
<link rel="stylesheet" type="text/css" href="css/popup.css">
<link rel="stylesheet" type="text/css" href="browsers/popup.css">
<script src="libs/angular.js"></script>
<script src="libs/angular-animate.min.js"></script>
<script src="libs/angular-cookies.min.js"></script>
<script src="libs/angular-contenteditable.js"></script>
<script src="libs/jquery.js"></script>
<script src="libs/translate.js"></script>
<script src="libs/services.js"></script>
<script src="browsers/popup.js"></script>
<script src="popup.js"></script>
</head>
<body>
<div class="global-wrap closable">
<div class="controller" id="addController" ng-controller="Add" ng-show="currentController=='add'" ng-init="actions.loadPage()">
<div class="padding" style="padding-bottom:0" ng-show="actions.notification">
<div id="notification">
<i class="ion-ios7-information-outline"></i>
<p>{{actions.notification}}</p>
</div>
</div>
<div id="stepsController" class="steps" ng-class="{'invers' : step==''}" ng-class="{'loading' : actions.loading}">
<div class="stepPage" ng-show="step==''">
<form ng-submit="actions.saveRaindrop()">
<div class="actions padding">
<div class="pull-left logolang">
<a href="http://raindrop.io/app" target="_blank"><div class="user-avatar" ng-style="{'background-image':'url(https://www.gravatar.com/avatar/'+user.me.email_MD5+'?d=mm&s=48)'}"></div>
<span class="logotype-text"></span></a>
<select ng-model="actions.language" ng-change="actions.changeLanguage()" style="display:none;">
<option value="en_US">EN</option><option value="ru_RU">RU</option>
</select>
</div>
<input id="saveRaindropButton" type="submit" class="pull-right btn btn-invert btn-green" ng-disabled="form.title=='' || form.collectionId==undefined || actions.loading" ng-class="{'loading' : actions.loading}" value="{{'save'|translate}} {{form.type+'d'|translate}}" autofocus title="{{'enterTitleAndCollection'|translate}}" ng-hide="editMode" />
<input id="saveRaindropButton" type="submit" class="pull-right btn btn-invert btn-green" ng-disabled="form.title=='' || form.collectionId==undefined || actions.loading" ng-class="{'loading' : actions.loading}" value="{{'saveChanges'|translate}}" autofocus title="{{'enterTitleAndCollection'|translate}}" ng-show="editMode" />
<a href="" class="pull-right btn" style="margin-right:12px;" ng-show="editMode && !actions.loading" ng-click="actions.deleteRaindrop()"><i class="ion-ios7-trash-outline"></i> {{'remove'|translate}}</a>
<div class="clear"></div>
</div>
<div class="table addForm">
<div class="row">
<div class="cell padding addFormCover">
<!-- SLIDER -->
<div class="addCoverSlider">
<!--style="background-image: url('{{cover.link|fixURL}}')"-->
<!--div class="coverSlide" ng-repeat="(k,cover) in form.media" ng-style="{'background-image':'url('+helpers.fixURL(cover.link)+')'}" ng-show="form.cover==k && cover.link"></div-->
<div class="coverSlide cs-img" ng-repeat="(k,cover) in form.media" ng-show="form.cover==k && cover.link"><img ng-src="{{cover.link|fixURL}}" alt="" /><span class="cs-border"></span></div>
<div class="coverSlide" style="height:124px" ng-show="form.cover==form.media.length-1 && haveScreenshot==false">
<a href="" class="makeScreenButton" ng-click="actions.capturePage()">
<i class="ion-ios7-camera-outline"></i><br/>
<span>{{'clickToMakeScreenshot'|translate}}</span>
</a>
</div>
</div>
</div>
<div class="cell padding">
<!-- EDITOR -->
<h6>{{'titleAndDescription'|translate}}</h6>
<textarea class="edit-title" msd-elastic ng-model="form.title" placeholder="{{'enterTitle'|translate}}" maxlength="100"></textarea>
<textarea class="edit-excerpt" msd-elastic ng-model="form.excerpt" placeholder="{{'enterDescription'|translate}}" maxlength="100"></textarea>
<br>
<h6 class="caption">{{'tags'|translate}}</h6>
<extra-search class="mini" keys="form.tags" allowed-type="tag" placeholder="{{'addTag'|translate}}" autocomplete="tags.items" submit="tags.submit()"></extra-search>
</div>
</div>
<div class="row">
<div class="cell padding addFormCoverOptions">
<!-- COVER SETTING -->
<h6>{{'cover'|translate}}</h6>
<input type="checkbox" id="formCoverEnabler" ng-model="form.coverEnabled" /> <label for="formCoverEnabler">{{'enable'|translate}}</label>
<span class="adco-navi" ng-show="form.coverEnabled && form.media.length>1">
<a href="" class="sliderNavigation" ng-click="actions.left()"><i class="ion-ios7-arrow-left"></i></a><a href="" class="sliderNavigation" ng-click="actions.right()"><i class="ion-ios7-arrow-right"></i></a>
</span>
</div>
<div class="cell padding addFormOptions">
<!-- SELECTION -->
<div class="table">
<div class="cell">
<h6><b>{{'saveToCollection'|translate}}</b></h6>
<div class="ajaxed" ng-click="actions.showStep('collection')">
<i class="ion-ios7-albums-outline"></i><a href="" ng-show="form.collectionId==undefined">{{'selectCollection'|translate}}</a><a href="" ng-show="form.collectionId>=0">{{actions.currentCollection()}}</a>
</div>
</div>
<div class="cell">
<h6>{{'type'|translate}}</h6>
<div class="ajaxed" ng-click="actions.showStep('type')">
<i class="ion-ios7-bookmarks-outline" ng-show="form.type == 'link'"></i><i class="ion-ios7-copy-outline" ng-show="form.type == 'article'"></i><i class="ion-ios7-camera-outline" ng-show="form.type == 'image'"></i><i class="ion-ios7-browsers-outline" ng-show="form.type == 'video'"></i><a href="">{{form.type | translate}}</a>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
</div>
<!-- SELECT TYPE -->
<div class="stepPage selectPage" ng-show="step=='type'">
<div class="actions padding">
<a href="" class="pull-left btn" ng-click="actions.showHome()"><i class="ion-ios7-arrow-thin-left"></i> {{'back'|translate}}</a>
<div class="clear"></div>
</div>
<div class="contentWrap">
<div class="table">
<div class="row rowMin">
<h6 class="padding">{{'selectPreferedType'|translate}}</h6>
</div>
<div class="row">
<div class="changeList">
<ul>
<li ng-class="{'active' : form.type == 'link'}"><a href="" class="padding" ng-click="form.type='link'; actions.showHome()"><i class="ion-ios7-bookmarks-outline"></i> {{'link' | translate}}</a></li>
<li ng-class="{'active' : form.type == 'article'}"><a href="" class="padding" ng-click="form.type='article'; actions.showHome()"><i class="ion-ios7-copy-outline"></i> {{'article' | translate}}</a></li>
<li ng-class="{'active' : form.type == 'image'}"><a href="" class="padding" ng-click="form.type='image'; actions.showHome()"><i class="ion-ios7-camera-outline"></i> {{'image' | translate}}</a></li>
<li ng-class="{'active' : form.type == 'video'}"><a href="" class="padding" ng-click="form.type='video'; actions.showHome()"><i class="ion-ios7-browsers-outline"></i> {{'video' | translate}}</a></li>
</ul>
</div>
<br>
</div>
</div>
</div>
</div>
<!-- SELECT COLLECTION -->
<div class="stepPage selectPage" ng-show="step=='collection'">
<div class="actions padding">
<a href="" class="pull-left btn" ng-click="actions.showHome()" ng-disabled="actions.loading"><i class="ion-ios7-arrow-thin-left"></i> {{'back'|translate}}</a>
<div class="clear"></div>
</div>
<div class="contentWrap">
<div class="table"><!-- style="height: {{actions.homeHeight}}px;"-->
<div class="row rowMin">
<h6 class="padding">
<span class="pull-right">
<a href="" ng-click="actions.changeOrder('sort')" ng-class="{'inactiveLink' : actions.orderBy=='sort'}">{{'bySort'|translate}}</a> /
<a href="" ng-click="actions.changeOrder('title')" ng-class="{'inactiveLink' : actions.orderBy=='title'}">{{'byName'|translate}}</a> /
<a href="" ng-click="actions.changeOrder('lastUpdate')" ng-class="{'inactiveLink' : actions.orderBy=='lastUpdate'}">{{'byDate'|translate}}</a>
</span>
{{'selectCollection'|translate}}
</h6>
</div>
<div class="row rowMin">
<div class="padding-horizontal">
<form><div class="table" style="margin-bottom:12px;">
<div class="cell" style="width:100%"><input type="search" ng-model="actions.filter" ng-disabled="actions.loading" required placeholder="{{'findOrCreateCollection'|translate}}..." autofocus /></div>
<div class="cell"><input ng-disabled="actions.loading" ng-class="{'loading' : actions.loading}" ng-click="actions.newCollection()" type="submit" class="btn" value="{{'createCollection'|translate}}" style="margin-left:10px;" /></div>
</div></form>
</div>
</div>
<div class="row">
<div class="changeList" style="max-height: 300px;"><!--height: {{actions.homeHeight-90}}px;-->
<ul>
<li ng-repeat="item in collections | filter: actions.filter | orderBy:actions.orderBy:actions.orderDirection" ng-class="{'active' : item._id == form.collectionId}">
<a href="" class="padding" ng-click="form.collectionId=item._id; actions.showHome()">
<!--i class="ion-ios7-locked-outline" ng-hide="item.public"></i><i class="ion-ios7-albums-outline" ng-show="item.public"></i-->
<span class="cover" style="background-image:url('{{item.cover[0]|fixURL}}');">
<i class="ion-ios7-albums-outline" ng-hide="item.cover[0]"></i>
</span>
{{item.title}}
<span class="ion-ios7-locked-outline" ng-hide="item.public"></span>
</a>
</li>
</ul>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="controller" id="authController" ng-controller="Auth" ng-show="currentController=='auth'">
<div class="steps"><div class="stepPage">
<div class="actions padding">
<div class="pull-right">
<!--a href="" ng-click="goTo('add')" class="btn" style="margin-right:12px;"><i class="ion-refresh"></i> {{'checkAgain'|translate}}</a-->
<a href="https://raindrop.io/account" target="_blank" onClick="return openLink(this);" class="btn btn-invert btn-green" style="margin-right:12px;"><i class="ion-log-in"></i> {{'signIn'|translate}}</a>
<a href="https://raindrop.io/account/signup" target="_blank" onClick="return openLink(this);" class="btn">{{'signUp'|translate}}</a>
</div>
<div class="pull-left logolang">
<a href="https://raindrop.io/app" target="_blank"><span class="logotype-text" style="border:0"></span></a>
</div>
<div class="clear"></div>
</div>
<div class="padding">
<div id="notification">
<i class="ion-ios7-information-outline"></i>
<p>{{'startToSave'|translate}}</p>
</div>
</div>
</div></div>
</div>
</div>
</body>
</html>