-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
152 lines (137 loc) · 9.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
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
<!-- Author: Tianxiang Zhang <[email protected]> -->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1">
<title>Paper Gmail</title>
<script src="bower_components/webcomponentsjs/webcomponents.js">
</script>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<link rel="shortcut icon" href="images/gmail.ico">
<link rel="import" href="htmls/elements.html">
<link rel="import" href="htmls/route.html">
<link rel="stylesheet" href="stylesheets/app.css">
</head>
<body class="fullbleed layout vertical" >
<template is="dom-bind" id="app">
<more-route-selector>
<iron-pages selected="{{route}}" class="fullbleed fit">
<section route="login" >
<pg-login></pg-login>
</section>
<section route="inbox" class="layout vertical fit">
<paper-dialog style="position:fixed;top:60px;right:10px;width:90%;height:80%;" id="newEmail" >
<paper-tags-input label="To" placeholder="Add a recipient" tags="{{draftTo}}">
</paper-tags-input>
<paper-input label="Subject" value="{{draftSubject}}">
</paper-input>
<div style="withd:100%;padding-left:22px;">
<iron-autogrow-textarea style="width:100%;border:none;" bind-value="{{draftBody}}" placeholder="Say something" id="draft-bodya" >
</iron-autogrow-textarea>
</div>
<div style="position:fixed;top:90px;right:60px;" class="buttons">
<paper-button on-click="deleteDraft" dialog-dismiss>Drop</paper-button>
<paper-button on-tap="sendEmail" dialog-confirm>SEND</paper-button>
</div>
</paper-dialog>
<paper-header-panel class="flex layout vertical">
<paper-toolbar style="background-color:#00B0FF" class="toolbar-smaller">
<paper-icon-button onclick="toggleDrawer()" icon="menu" id="navicon" >
</paper-icon-button>
<div id="heading" style="width:185px;" class="hide-mobile"><p>{{_parseHeading(heading)}}</p>
</div>
<paper-input-container no-label-float="true" style="background-color:#81D4FA;margin-right:10px;" class="flex">
<label>Search</label>
<iron-icon style="margin-left:15px;margin-right:15px;" prefix icon="search"></iron-icon>
<input is="iron-input" bind-value="{{search}}" on-keypress="searchpressed">
</paper-input-container>
<paper-icon-button onclick="refreshInbox()" icon="refresh">
</paper-icon-button>
<paper-icon-button class="hide-mobile" icon="apps">
</paper-icon-button>
<iron-image class="avatar" src="{{user.profile_image}}"></iron-image>
</paper-toolbar>
<paper-drawer-panel id="drawerPanel" flex>
<paper-header-panel class="layout vertical fit" drawer>
<div class="flex">
<paper-menu >
<paper-item class="menu-item" onclick="refreshInboxWithLabel('TODAY')"><iron-icon class="menu-icon" icon="today"></iron-icon> Today </paper-item>
<paper-item class="menu-item" onclick="refreshInboxWithLabel('INBOX')"><iron-icon class="menu-icon" icon="mail"></iron-icon> Inbox </paper-item>
<div class="separator"></div>
<paper-item class="menu-item" onclick="refreshInboxWithLabel('STARRED')"><iron-icon class="menu-icon" icon="star"></iron-icon> Starred</paper-item>
<paper-item class="menu-item" onclick="refreshInboxWithLabel('IMPORTANT')"><iron-icon class="menu-icon" icon="turned-in"></iron-icon> Important</paper-item>
<paper-item class="menu-item" onclick="refreshInboxWithLabel('DRAFTS')"><iron-icon class="menu-icon" icon="drafts"></iron-icon> Drafts</paper-item>
<paper-item class="menu-item" onclick="refreshInboxWithLabel('SENT')"><iron-icon class="menu-icon" icon="send"></iron-icon> Sent</paper-item>
<div class="separator"></div>
</paper-menu>
</div>
<div class="layout vertical ">
<div>
<template is="dom-repeat" items="{{labels}}">
<template is="dom-if" if="{{_isUserLable(item)}}">
<div style="padding-left:17px;padding-top:10px;padding-bottom:10px;padding-right:17px;" data-name="{{item.name}}" class="menu-item" on-click="refreshInboxWithLabel">
<iron-icon class="menu-icon" icon="icons:folder"></iron-icon><span>{{_parseLabel(item.name)}}</span>
</div>
</template>
</template>
</div>
</div>
</paper-header-panel>
<paper-header-panel main class="flex fit layout vertical" mode="seamed">
<template is="dom-if" if="{{loading}}">
<div style="margin-top:20px;width:50px;margin-left:auto;margin-right:auto;">
<paper-spinner active></paper-spinner>
</div>
</template>
<neon-animated-pages selected="{{main_page}}" class="layout vertical flex fit"
>
<pg-inbox style="width:95%;margin-left:auto;margin-right:auto;margin-top:20px;margin-bottom:20px;"
threads="{{threads}}"
alldone="{{alldone}}"
bottom-loading="{{bottomLoading}}"
show-more-button="{{showMoreButton}}"
></pg-inbox>
<pg-email-body
style="width:95%;margin-left:auto;margin-right:auto;margin-top:20px;margin-bottom:40px;"
user="{{user}}"
labels="{{labels}}"
selected-thread="{{selectedThread}}"
reply-to-list="{{replyToList}}"
>
</pg-email-body>
</neon-animated-pages>
</paper-header-panel>
</paper-drawer-panel>
<paper-fab on-tap ="showNewEmail" class="down-right-button" icon="add"></paper-fab>
</paper-header-panel>
</section>
</iron-pages>
</more-route-selector>
<paper-toast id="emailTrashed" text="Moved to Trashed" ><span role="button" on-click="appUntrashEmail" style="color:#eeff41;"> Undo </span></paper-toast>
<paper-toast id="emailMoved" text="Moved to {{movetofolder}}" ></paper-toast>
<paper-toast id="nomoreemails" text="No More Emails To Load" ></paper-toast>
<paper-toast id="emailSent" text="Email Sent" ></paper-toast>
<paper-toast id="emailNotSent" text="Email Not Sent" ></paper-toast>
<paper-toast id="emailArchived" text="Archived" ><span role="button" on-click="appUnarchiveEmail" style="color:#eeff41;"> Undo </span></paper-toast>
</template>
</body>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-67219607-1', 'auto');
ga('send', 'pageview');
</script>
<script src="https://apis.google.com/js/client.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="scripts/mime_js.js"></script>
<script src="scripts/base64.js"></script>
<script src="scripts/utils.js"></script>
<script src="scripts/app.js"></script>
<script src="scripts/email_modify.js"></script>
<script src="scripts/view_navigate.js"></script>
</html>