├── .gitignore ├── .nvmrc ├── CONTRIBUTING.md ├── LICENSE.md ├── README.md ├── app ├── app.html ├── app.js ├── background.js ├── images │ ├── compose.svg │ ├── logo.svg │ └── update.svg ├── package-lock.json ├── package.json ├── stylesheets │ ├── checkbox.less │ ├── fonts.less │ ├── grid.less │ ├── main.less │ ├── spinner.less │ └── tags.less └── vendor │ ├── electron_boilerplate │ ├── env_config.js │ └── external_links.js │ ├── hint │ └── hint.css │ ├── jasmine │ ├── boot.js │ ├── jasmine-html.js │ ├── jasmine.css │ └── jasmine.js │ ├── magnific-popup │ ├── jquery.magnific-popup.js │ ├── jquery.magnific-popup.min.js │ └── magnific-popup.css │ ├── montserrat │ ├── Montserrat-Bold.otf │ ├── Montserrat-Regular.otf │ └── SIL Open Font License.txt │ ├── normalize │ └── normalize.css │ ├── playfair-display │ ├── Playfair Display 700.ttf │ ├── Playfair Display 700italic.ttf │ ├── Playfair Display 900.ttf │ ├── Playfair Display 900italic.ttf │ ├── Playfair Display italic.ttf │ ├── Playfair Display regular.ttf │ └── SIL Open Font License.txt │ └── tagit │ ├── .githooks │ ├── install.sh │ ├── post-commit │ └── pre-commit │ ├── .gitignore │ ├── LICENSE │ ├── Makefile │ ├── README.markdown │ ├── _static │ ├── examples.css │ ├── master.css │ ├── reset.css │ ├── screenshot.png │ └── subpage.css │ ├── css │ ├── jquery.tagit.css │ └── tagit.ui-zendesk.css │ ├── examples.html │ ├── js │ ├── tag-it.js │ └── tag-it.min.js │ └── prototype.js ├── config ├── env_development.json ├── env_production.json └── env_test.json ├── gulpfile.js ├── package-lock.json ├── package.json ├── resources ├── icon.png ├── linux │ ├── DEBIAN │ │ └── control │ └── app.desktop ├── osx │ ├── Info.plist │ ├── appdmg.json │ ├── child.plist │ ├── dmg-background.png │ ├── dmg-background@2x.png │ ├── dmg-icon.icns │ ├── helper_apps │ │ ├── Info EH.plist │ │ ├── Info NP.plist │ │ └── Info.plist │ ├── icon.icns │ └── parent.plist └── windows │ ├── icon.ico │ ├── installer.nsi │ ├── setup-banner.bmp │ └── setup-icon.ico └── tasks ├── app_npm_install.js ├── build.js ├── release.js ├── release_linux.js ├── release_osx.js ├── release_windows.js ├── start.js └── utils.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | *.log 3 | .DS_Store 4 | Thumbs.db 5 | 6 | /app/spec.js 7 | /app/node_modules 8 | /build/ 9 | /releases/ 10 | /tmp/ 11 | -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 11 2 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | We're really happy to get bug fixes and contributions to Plain Email. 4 | 5 | # License (GPL-3.0) 6 | 7 | All (new) contributed material must be released under the GNU General Public License v3.0. All new contributed material that is not executable, including all text when not executed, is also released under the Creative Commons Attribution 3.0 International (CC BY 3.0) license or later. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Plain Email 2 | ============== 3 | 4 | An app concept for efficient one-touch email processing workflow 5 | 6 | ![Screenshot](http://www.plainemail.com/images/screenshot.png) 7 | 8 | # Quick start 9 | The only development dependency of this project is [Node.js](https://nodejs.org). So just make sure you have it installed. 10 | 11 | Then type few commands known to every Node developer... 12 | 13 | ``` 14 | npm install 15 | npm start 16 | ``` 17 | 18 | ... and boom! You have Plain Email running. 19 | 20 | # Structure of the project 21 | 22 | There are **two** `package.json` files: 23 | 24 | #### 1. For development 25 | Sits on path: `plain-email/package.json`. Here you declare dependencies for your development environment and build scripts. **This file is not distributed with the release!** 26 | 27 | #### 2. For the application 28 | Sits on path: `plain-email/app/package.json`. This is **real** manifest of the app. 29 | 30 | ### Project's folders 31 | 32 | - `app` - code of the application. 33 | - `config` - place for you to declare environment specific stuff. 34 | - `build` - in this folder lands built, runnable application. 35 | - `releases` - ready for distribution installers will land here. 36 | - `resources` - resources for particular operating system. 37 | - `tasks` - build and development environment scripts. 38 | 39 | 40 | # Development 41 | 42 | #### Installation 43 | 44 | ``` 45 | npm install 46 | ``` 47 | It will also download Electron runtime, and install dependencies for second `package.json` file inside `app` folder. 48 | 49 | #### Starting the app 50 | 51 | ``` 52 | npm start 53 | ``` 54 | 55 | #### Adding pure-js npm modules to your app 56 | 57 | Remember to add your dependency to `app/package.json` file, so do: 58 | 59 | ``` 60 | cd app 61 | npm install name_of_npm_module --save 62 | ``` 63 | 64 | #### Adding native npm modules to your app 65 | 66 | If you want to install native module you need to compile it agains Electron, not Node.js you are firing in command line by typing `npm install` [(Read more)](https://github.com/atom/electron/blob/master/docs/tutorial/using-native-node-modules.md). 67 | 68 | ``` 69 | npm run app-install -- name_of_npm_module 70 | ``` 71 | 72 | Of course this method works also for pure-js modules, so you can use it all the time if you're able to remember such an ugly command. 73 | 74 | #### Unit tests 75 | 76 | This project uses [jasmine](http://jasmine.github.io/2.0/introduction.html) unit test runner. To run it go with standard: 77 | 78 | ``` 79 | npm test 80 | ``` 81 | 82 | You don't have to declare paths to spec files in any particular place. The runner will search through the project for all `*.spec.js` files and include them automatically. 83 | 84 | 85 | # Making a release 86 | 87 | **Note:** There are various icon and bitmap files in `resources` directory. Those are used in installers and are intended to be replaced by your own graphics. 88 | 89 | To make ready for distribution installer use command: 90 | 91 | ``` 92 | npm run release 93 | ``` 94 | 95 | It will start the packaging process for operating system you are running this command on. Ready for distribution file will be outputted to `releases` directory. 96 | 97 | You can create Windows installer only when running on Windows, the same is true for Linux and OSX. So to generate all three installers you need all three operating systems. 98 | 99 | At the moment only the OSX installer is built properly. 100 | -------------------------------------------------------------------------------- /app/app.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Plain Email 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 33 |
34 | 35 |
36 |
37 |
38 | 45 |
46 | 47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 | 56 | 59 | 60 |
61 | 62 |
63 | 64 |
65 | 66 |
67 | 68 |
69 | 70 |
71 |
72 | 73 |
74 | 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 |
Inbox Zero
110 |
111 |
112 |
113 |
114 |
115 |
116 | 117 | 149 | 150 | 151 | -------------------------------------------------------------------------------- /app/app.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | // ======= 4 | // MODULES 5 | // ======= 6 | 7 | // Electron core modules 8 | var electron = require("electron"); 9 | var ipc = electron.ipcRenderer; 10 | var webFrame = electron.webFrame; 11 | var shell = electron.shell; 12 | 13 | var remote = electron.remote; 14 | var BrowserWindow = remote.BrowserWindow; 15 | 16 | // Utilities 17 | var os = require("os"); 18 | var path = require("path"); 19 | var app = remote.app; 20 | var jetpack = require("fs-jetpack").cwd(app.getAppPath()); 21 | var moment = require("moment"); 22 | var filesize = require("filesize"); 23 | 24 | // jQuery 25 | window.$ = window.jQuery = require("jquery"); 26 | require("jquery-ui"); 27 | 28 | $.fn.switchUiState = function(state) { 29 | this.removeClass("reading loading zero responding delegating composing").addClass(state) 30 | $(".email").scrollTop(0); 31 | return this; 32 | }; 33 | 34 | // ======== 35 | // UPDATING 36 | // ======== 37 | $(function(){ 38 | $(".js-update").hide().click(function(){ 39 | ipc.send("install-update"); 40 | }); 41 | 42 | ipc.on("update-available", function (event, error) { 43 | $(".js-update").show(); 44 | }); 45 | 46 | ipc.send("check-updates"); 47 | }); 48 | 49 | // =========== 50 | // FILE UPLOAD 51 | // =========== 52 | $(function(){ 53 | var handler = $(".plain-email"); 54 | 55 | var preventer = function(event){ 56 | event.preventDefault(); 57 | event.stopPropagation(); 58 | }; 59 | 60 | handler.on("dragenter dragover dragleave", preventer); 61 | 62 | handler[0].ondrop = function(event){ 63 | event.preventDefault(); 64 | event.stopPropagation(); 65 | 66 | var files = event.dataTransfer.files; 67 | for(var i = 0; i").html( 72 | $("") 73 | .text("Attachment: " + parsedPath.base) 74 | .attr("data-filename", parsedPath.base) 75 | .attr("data-path", files[i].path) 76 | ) 77 | ); 78 | } 79 | }; 80 | }); 81 | 82 | // ============= 83 | // SPELLCHECKING 84 | // ============= 85 | 86 | var selection; 87 | 88 | function resetSelection() { 89 | selection = { 90 | isMisspelled: false, 91 | spellingSuggestions: [] 92 | }; 93 | } 94 | 95 | resetSelection(); 96 | 97 | // Reset the selection when clicking around, before the spell-checker runs and the context menu shows. 98 | window.addEventListener("mousedown", resetSelection); 99 | 100 | // ======= 101 | // COOKIES 102 | // ======= 103 | 104 | document.__defineGetter__("cookie", function () { 105 | var cookies = JSON.parse(localStorage.cookies || "{}"); 106 | 107 | var output = []; 108 | for (var cookieName in cookies) { 109 | output.push(cookieName + "=" + cookies[cookieName]); 110 | } 111 | return output.join(";"); 112 | }); 113 | 114 | document.__defineSetter__("cookie", function (s) { 115 | var cookies = JSON.parse(localStorage.cookies || "{}"); 116 | 117 | var parts = s.split("="); 118 | var key = parts[0]; 119 | var value = parts[1]; 120 | 121 | cookies[key] = value; 122 | 123 | localStorage.cookies = JSON.stringify(cookies); 124 | return key + "=" + value; 125 | }); 126 | 127 | document.clearCookies = function () { 128 | return delete localStorage.cookies; 129 | }; 130 | 131 | // ================ 132 | // GOOGLE ANALYTICS 133 | // ================ 134 | 135 | (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ 136 | (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), 137 | m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) 138 | })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); 139 | 140 | ga("create", "UA-72649000-2", "none"); 141 | ga("set", "checkProtocolTask", function(){}); 142 | ga("set", "location", "http://www.plainemail.com"); 143 | ga("send", "pageview"); 144 | 145 | // ========== 146 | // CONTROLLER 147 | // ========== 148 | 149 | function fetchEmail() { 150 | $(".plain-email").switchUiState("loading"); 151 | ipc.send("fetch-email"); 152 | } 153 | 154 | function archive() { 155 | $(".plain-email").switchUiState("loading"); 156 | ipc.send("archive"); 157 | } 158 | 159 | function startResponding(justSender) { 160 | $(".plain-email").switchUiState("responding"); 161 | $(".responding-column .body-write-box")[0].setSelectionRange(0, 0); 162 | $(".responding-column .body-write-box").focus(); 163 | $(".js-respond-checkbox").prop("checked", justSender); 164 | } 165 | 166 | function startComposing() { 167 | $(".plain-email").switchUiState("composing"); 168 | $(".composing-column .subject-write-box").focus(); 169 | } 170 | 171 | function startDelegating(loopingIn) { 172 | $(".plain-email").switchUiState("delegating"); 173 | $(".delegating-column .tagit input").first().focus(); 174 | $(".js-loop-in-checkbox").prop("checked", loopingIn); 175 | } 176 | 177 | function deleteEmail() { 178 | if (confirm("Really delete?")) { 179 | $(".plain-email").switchUiState("loading"); 180 | ipc.send("delete"); 181 | } 182 | } 183 | 184 | function delegateSend() { 185 | $(".plain-email").switchUiState("loading"); 186 | 187 | ipc.send("send", { 188 | type: "forward", 189 | to: $(".delegating-column .recipients").val(), 190 | cc: $(".delegating-column .carbon-copy-recipients").val(), 191 | subject: $(".delegating-column .subject-write-box").val(), 192 | text: $(".delegating-column .body-write-box").val(), 193 | loopingIn: $(".js-loop-in-checkbox").is(":checked") 194 | }); 195 | } 196 | 197 | function responseSend() { 198 | $(".plain-email").switchUiState("loading"); 199 | 200 | ipc.send("send", { 201 | type: "reply", 202 | subject: $(".responding-column .subject-write-box").val(), 203 | text: $(".responding-column .body-write-box").val(), 204 | respondAll: $(".js-respond-checkbox").is(":checked") 205 | }); 206 | } 207 | 208 | function signOut() { 209 | $(".plain-email").switchUiState("loading"); 210 | 211 | ipc.send("sign-out"); 212 | } 213 | 214 | function composeSend() { 215 | $(".plain-email").switchUiState("loading"); 216 | 217 | ipc.send("send", { 218 | type: "new", 219 | to: $(".composing-column .recipients").val(), 220 | cc: $(".composing-column .carbon-copy-recipients").val(), 221 | subject: $(".composing-column .subject-write-box").val(), 222 | text: $(".composing-column .body-write-box").val(), 223 | attachments: $(".composing-column .attachments .attachment").map(function(index, element) { 224 | return { 225 | filename: $(element).attr("data-filename"), 226 | path: $(element).attr("data-path") 227 | }; 228 | }).toArray() 229 | }); 230 | } 231 | 232 | // =============== 233 | // KEYBOARD EVENTS 234 | // =============== 235 | 236 | function keyupHandler(event) { 237 | $(".plain-email").removeClass("keyboard-modifier"); 238 | } 239 | 240 | // handle when cmd+tab is pressed and the key up event is skipped 241 | $(window).blur(keyupHandler).focus(keyupHandler); 242 | 243 | function keydownHandler(event) { 244 | if ((event.metaKey || event.ctrlKey) && (event.keyCode == 17 || event.keyCode == 91) ) { 245 | $(".plain-email").addClass("keyboard-modifier"); 246 | } 247 | 248 | if (event.keyCode == 27) { 249 | $(".js-start-reading:visible").click(); 250 | } 251 | 252 | if ((event.metaKey || event.ctrlKey) && event.keyCode == 13) { 253 | $(".primary.button:visible").click(); 254 | } 255 | 256 | if ((event.metaKey || event.ctrlKey) && event.keyCode == 78) { 257 | $(".js-compose:visible").click(); 258 | } 259 | 260 | if (event.target.tagName.toLowerCase() === "input" || event.target.tagName.toLowerCase() === "textarea") { 261 | return; 262 | } 263 | 264 | if (event.which == 32) { 265 | event.preventDefault(); // prevent the default action (scroll / move caret) 266 | event.stopPropagation(); 267 | $(".js-first:visible").click(); 268 | } 269 | 270 | if (event.which == 37) { 271 | event.preventDefault(); // prevent the default action (scroll / move caret) 272 | event.stopPropagation(); 273 | $(".js-second:visible").click() 274 | } 275 | 276 | if (event.which == 39) { 277 | event.preventDefault(); // prevent the default action (scroll / move caret) 278 | event.stopPropagation(); 279 | $(".js-third:visible").click() 280 | } 281 | 282 | if (event.which == 38) { 283 | event.preventDefault(); // prevent the default action (scroll / move caret) 284 | event.stopPropagation(); 285 | $(".js-fourth:visible").click() 286 | } 287 | 288 | if (event.which == 85) { 289 | event.preventDefault(); // prevent the default action (scroll / move caret) 290 | event.stopPropagation(); 291 | $(".js-unsubscribe:visible").click(); 292 | } 293 | 294 | if (event.which == 8) { 295 | event.preventDefault(); // prevent the default action (scroll / move caret) 296 | event.stopPropagation(); 297 | $(".js-delete:visible").click(); 298 | } 299 | 300 | if (event.which == 192) { 301 | event.preventDefault(); // prevent the default action (scroll / move caret) 302 | event.stopPropagation(); 303 | 304 | if (env.name !== "production") { 305 | remote.getCurrentWindow().toggleDevTools(); 306 | } 307 | } 308 | 309 | if (event.which == 72) { 310 | event.preventDefault(); // prevent the default action (scroll / move caret) 311 | event.stopPropagation(); 312 | 313 | $("header").css("visibility","hidden"); 314 | $("footer").css("visibility","hidden"); 315 | } 316 | 317 | if ((event.metaKey || event.ctrlKey) && event.which == 76) { 318 | event.preventDefault(); // prevent the default action (scroll / move caret) 319 | event.stopPropagation(); 320 | 321 | signOut(); 322 | } 323 | } 324 | 325 | // ============ 326 | // MOUSE EVENTS 327 | // ============ 328 | 329 | $(function () { 330 | // Prevent opening new Electron window on cmd+click 331 | $(".action, .js-compose").click(function (event) { 332 | if (event.metaKey || event.ctrlKey) { 333 | event.preventDefault(); 334 | } 335 | }) 336 | 337 | 338 | $(".js-get-email").click(function () { 339 | fetchEmail(); 340 | }); 341 | 342 | $(".js-archive").click(function () { 343 | archive(); 344 | }); 345 | 346 | $(".js-respond-all").click(function () { 347 | startResponding(true); 348 | }); 349 | 350 | $(".js-delegate").click(function () { 351 | startDelegating(false); 352 | }); 353 | 354 | $(".js-delegate-send").click(function () { 355 | delegateSend(); 356 | }); 357 | 358 | $(".js-compose-send").click(function () { 359 | composeSend(); 360 | }); 361 | 362 | $(".js-response-send").click(function () { 363 | responseSend(); 364 | }); 365 | 366 | $(".js-start-reading").click(function () { 367 | fetchEmail(); 368 | }); 369 | 370 | $(".js-compose").click(function () { 371 | startComposing(); 372 | }); 373 | 374 | $(".js-delete").click(function () { 375 | deleteEmail(); 376 | }); 377 | 378 | $(".js-loop-in").click(function () { 379 | startDelegating(true); 380 | }); 381 | 382 | $(".js-respond").click(function () { 383 | startResponding(false); 384 | }); 385 | }); 386 | 387 | // ==== 388 | // VIEW 389 | // ==== 390 | 391 | // Initialize UI 392 | $(function () { 393 | fetchEmail(); 394 | 395 | $("body").keydown(keydownHandler).keyup(keyupHandler); 396 | 397 | $(".recipients").tagit({ 398 | placeholderText: "to", 399 | animate: false, 400 | autocomplete: { 401 | source: function (request, response) { 402 | response( 403 | ipc.sendSync("autocomplete", request.term) 404 | ); 405 | } 406 | } 407 | }); 408 | 409 | $(".carbon-copy-recipients").tagit({ 410 | placeholderText: "cc", 411 | animate: false, 412 | autocomplete: { 413 | source: function (request, response) { 414 | response( 415 | ipc.sendSync("autocomplete", request.term) 416 | ); 417 | } 418 | } 419 | }); 420 | 421 | var messages = [ 422 | "Get back to work now.", 423 | "What a ride!", 424 | "Go and live your life now.", 425 | "You're getting faster!", 426 | "I think this was a record time.", 427 | "More email coming soon!", 428 | "What? That was it?", 429 | "Void.", 430 | "Emails are no more.", 431 | "I knew you could do it!", 432 | "That was easy, right?", 433 | "Another job well done.", 434 | "Calling it a success!", 435 | "Our work is done here.", 436 | "I knew it was possible!", 437 | "I checked, and it is true!", 438 | "Nailed it!", 439 | "Hasta la vista, baby.", 440 | "See You Later, Alligator.", 441 | "Veni, vidi, vici.", 442 | "you have reached, young padawan.", 443 | "Energy levels over 9000!", 444 | "Move along, nothing to see here.", 445 | "You're my hero, inbox zero!" 446 | ]; 447 | 448 | $(".zero-quote").text( 449 | messages[Math.floor( 450 | Math.random() * messages.length 451 | )] 452 | ); 453 | }); 454 | 455 | 456 | function buildEntityList(selector, data) { 457 | if (data) data.forEach(function (x) { 458 | return $(selector).append( 459 | $("") 460 | .text(x.name == "" ? x.address : x.name + " ") 461 | .addClass("hint--bottom-right hint--no-animate") 462 | .attr("data-hint", x.address) 463 | ) 464 | }); 465 | } 466 | 467 | ipc.on("email", function (event, email) { 468 | // Clean up UI 469 | $(".delegating-column .recipients").tagit("removeAll"); 470 | $(".delegating-column .carbon-copy-recipients").tagit("removeAll"); 471 | 472 | $(".composing-column .recipients").tagit("removeAll"); 473 | $(".composing-column .carbon-copy-recipients").tagit("removeAll"); 474 | $(".composing-column .subject-write-box").val(""); 475 | $(".composing-column .body-write-box").val(""); 476 | $(".composing-column .attachments").html(""); 477 | 478 | // Build UI for the received email 479 | $(".from").html(""); 480 | buildEntityList(".from", email.from); 481 | 482 | $(".to").html(""); 483 | buildEntityList(".to", email.to); 484 | buildEntityList(".to", email.cc); 485 | 486 | var $attachments = $(".email-column .attachments, .delegating-column .attachments"); 487 | $attachments.html(""); 488 | if (email.attachments) email.attachments.forEach(function (attachment) { 489 | console.log(attachment); 490 | 491 | if((attachment.contentDisposition == "attachment" || (attachment.contentType && !attachment.contentType.startsWith("image"))) && attachment.content) { 492 | var base64encodedImage = "data:application/octet-stream;base64," + attachment.content.toString("base64"); 493 | 494 | var $attachmentLink = $("") 495 | .text("Attachment: " + attachment.filename + " (" + filesize(attachment.size)+ ")") 496 | .addClass("attachment") 497 | .attr("download", attachment.filename) 498 | .attr("href", base64encodedImage); 499 | 500 | // Lightbox if the content is an image 501 | if(attachment.contentType.startsWith("image")) $($attachmentLink).magnificPopup({ 502 | type: "image", 503 | image: { 504 | markup: '
'+ 505 | '
'+ 506 | '
'+ 507 | '
'+ 508 | '
' + 509 | '
'+ 510 | '
'+ 511 | '
'+ 512 | '
'+ 513 | '
'+ 514 | '
'+ 515 | '
' 516 | } 517 | }); 518 | 519 | $attachments.append($("
").html($attachmentLink)); 520 | } 521 | }); 522 | 523 | $(".subject") 524 | .text(email.subject); 525 | 526 | $(".date") 527 | .text( 528 | moment(email.date).from(moment()) 529 | ).attr("title", moment(email.date).calendar()); 530 | 531 | // Render email body 532 | $(".body").html($("")); 533 | 534 | var $frame = $(".body iframe"); 535 | 536 | var doc = $frame[0].contentWindow.document; 537 | 538 | var $head = $("head", doc); 539 | 540 | $head.append($("", { 541 | rel: "stylesheet", 542 | href: "./stylesheets/main.css", 543 | type: "text/css" 544 | })); 545 | 546 | var $body = $("body", doc); 547 | $body.html(email.html); 548 | 549 | $("a", $body).click(function (event) { 550 | event.preventDefault(); 551 | shell.openExternal($(this).attr("href")); 552 | }); 553 | 554 | // Set unsubscribe link 555 | $(".js-respond-all").removeClass("hidden"); 556 | $(".js-unsubscribe").addClass("hidden").unbind("click"); 557 | 558 | function setUnsubscribeLink (url) { 559 | $(".js-respond-all").addClass("hidden"); 560 | 561 | $(".js-unsubscribe").removeClass("hidden").unbind("click").click(function () { 562 | if (confirm("Unsubscribe?")) { 563 | shell.openExternal(url); 564 | } 565 | }); 566 | } 567 | 568 | if(email.unsubscribeLink) { 569 | setUnsubscribeLink(email.unsubscribeLink); 570 | } else { 571 | $("a", $body).each(function (index, link) { 572 | var linkUrl = $(link).attr("href") || ""; 573 | var linkText = ($(link).text() || "").toLowerCase(); 574 | 575 | if ( 576 | linkUrl.indexOf("http://www.aweber.com/z/r/?") > -1 || 577 | linkText.indexOf("unsubscribe") > -1 || 578 | linkText.indexOf("opt out") > -1 || 579 | linkText.indexOf("opt-out") > -1 || 580 | linkText.indexOf("change email preferences") > -1 581 | ) { 582 | setUnsubscribeLink(linkUrl); 583 | } 584 | }); 585 | } 586 | 587 | // Reset keyboard handler 588 | $body.unbind("keydown").keydown(keydownHandler); 589 | $body.unbind("keyup").keyup(keyupHandler); 590 | 591 | // Resize iframe to match the content 592 | var updateBody = function () { 593 | var body = doc.body; 594 | var html = doc.documentElement; 595 | 596 | $frame.css({ 597 | height: Math.max(body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight) 598 | }); 599 | } 600 | 601 | // haha, progressive enhancement as the iframe loads. I really tried to make this prettier! 602 | var times = [100, 1000, 2000, 3000, 5000]; 603 | 604 | times.map(function(time){ 605 | setTimeout(updateBody, time); 606 | }); 607 | 608 | // Reply & delegate 609 | $(".responding-column .subject-write-box").text(email.quoted.replySubject); 610 | $(".delegating-column .subject-write-box").text(email.quoted.forwardSubject); 611 | $(".quoted-body").val(email.quoted.text); 612 | 613 | // Display UI 614 | $(".plain-email").switchUiState("reading"); 615 | }); 616 | 617 | ipc.on("error", function (event, error) { 618 | $(".plain-email").switchUiState("loading"); 619 | location.reload(); 620 | }); 621 | 622 | ipc.on("softerror",function (event, error) { 623 | $(".plain-email").switchUiState("reading"); 624 | alert(error); 625 | }); 626 | 627 | ipc.on("loading", function (event) { 628 | $(".plain-email").switchUiState("loading"); 629 | }); 630 | 631 | ipc.on("zero", function (event) { 632 | $(".plain-email").switchUiState("zero"); 633 | }); -------------------------------------------------------------------------------- /app/images/compose.svg: -------------------------------------------------------------------------------- 1 | Mail Icon -------------------------------------------------------------------------------- /app/images/logo.svg: -------------------------------------------------------------------------------- 1 | P -------------------------------------------------------------------------------- /app/images/update.svg: -------------------------------------------------------------------------------- 1 | noun_53441 -------------------------------------------------------------------------------- /app/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "plain-email", 3 | "productName": "Plain Email", 4 | "identifier": "com.plainemail", 5 | "description": "An email client concept for efficient single-touch email processing workflow.", 6 | "version": "0.3.0", 7 | "author": "Andrej Pancik ", 8 | "main": "background.js", 9 | "license": "COPYRIGHT", 10 | "repository": { 11 | "type": "git", 12 | "url": "https://bitbucket.org/apancik/plain-email.git" 13 | }, 14 | "config": { 15 | "target": "development" 16 | }, 17 | "dependencies": { 18 | "colors": "1.1.2", 19 | "dompurify": "0.8.5", 20 | "electron-dl": "1.10.0", 21 | "emailjs-imap-client": "2.0.5", 22 | "filesize": "3.5.6", 23 | "fs-jetpack": "0.13.3", 24 | "googleapis": "18.0.0", 25 | "html-linkify": "1.2.2", 26 | "html-to-text": "3.2.0", 27 | "jquery": "2.2.4", 28 | "jquery-ui": "1.10.5", 29 | "jsdom": "9.12.0", 30 | "mailparser": "2.0.3", 31 | "moment": "2.18.1", 32 | "nodemailer": "4.0.0", 33 | "ssl-root-cas": "1.2.3" 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /app/stylesheets/checkbox.less: -------------------------------------------------------------------------------- 1 | // ========== 2 | // CHECKBOXES 3 | // ========== 4 | .checkbox { 5 | margin-bottom: 1em; 6 | margin-top: 1em; 7 | 8 | input[type=checkbox] { 9 | display: none; 10 | } 11 | 12 | label { 13 | .not-selectable(); 14 | 15 | display: inline-block; 16 | cursor: pointer; 17 | position: relative; 18 | padding-left: 25px; 19 | margin-right: 15px; 20 | font-size: 13px; 21 | } 22 | 23 | label:before { 24 | .input-border(); 25 | 26 | content: ""; 27 | display: inline-block; 28 | 29 | width: 16px; 30 | height: 16px; 31 | 32 | margin-right: 10px; 33 | position: absolute; 34 | left: 0; 35 | bottom: 1px; 36 | } 37 | 38 | input[type=checkbox]:checked + label:before { 39 | content: "\2713"; 40 | font-size: 15px; 41 | color: @accent-color; 42 | text-align: center; 43 | line-height: 15px; 44 | } 45 | } -------------------------------------------------------------------------------- /app/stylesheets/fonts.less: -------------------------------------------------------------------------------- 1 | // ===== 2 | // FONTS 3 | // ===== 4 | 5 | // ================ 6 | // MONTSERRAT 7 | // ================ 8 | 9 | @font-face { 10 | font-family: "Montserrat"; 11 | font-style: normal; 12 | font-weight: 400; 13 | src: url("../vendor/montserrat/Montserrat-Regular.otf") format("opentype"); 14 | } 15 | 16 | @font-face { 17 | font-family: "Montserrat"; 18 | font-style: normal; 19 | font-weight: 700; 20 | src: url("../vendor/montserrat/Montserrat-Bold.otf") format("opentype"); 21 | } 22 | 23 | // ================ 24 | // PLAYFAIR DISPLAY 25 | // ================ 26 | @font-face { 27 | font-family: "Playfair Display"; 28 | font-style: normal; 29 | font-weight: 400; 30 | src: url(../vendor/playfair-display/Playfair Display regular.ttf) format("truetype"); 31 | } 32 | 33 | @font-face { 34 | font-family: "Playfair Display"; 35 | font-style: italic; 36 | font-weight: 400; 37 | src: url(../vendor/playfair-display/Playfair Display italic.ttf) format("truetype"); 38 | } 39 | 40 | @font-face { 41 | font-family: "Playfair Display"; 42 | font-style: normal; 43 | font-weight: 700; 44 | src: url(../vendor/playfair-display/Playfair Display 700.ttf) format("truetype"); 45 | } 46 | 47 | @font-face { 48 | font-family: "Playfair Display"; 49 | font-style: italic; 50 | font-weight: 700; 51 | src: url(../vendor/playfair-display/Playfair Display 700italic.ttf) format("truetype"); 52 | } 53 | 54 | @font-face { 55 | font-family: "Playfair Display"; 56 | font-style: normal; 57 | font-weight: 900; 58 | src: url(../vendor/playfair-display/Playfair Display 900.ttf) format("truetype"); 59 | } 60 | 61 | @font-face { 62 | font-family: "Playfair Display"; 63 | font-style: italic; 64 | font-weight: 900; 65 | src: url(../vendor/playfair-display/Playfair Display 900italic.ttf) format("truetype"); 66 | } -------------------------------------------------------------------------------- /app/stylesheets/grid.less: -------------------------------------------------------------------------------- 1 | // ==== 2 | // GRID 3 | // ==== 4 | @column-size: 640px; 5 | @gutter-width: 10px; 6 | @column-width: @column-size - @gutter-width * 2; 7 | 8 | .side-by-side() { 9 | .grid { 10 | width: @column-size * 2; 11 | } 12 | } 13 | 14 | .centered() { 15 | margin-left: auto; 16 | margin-right: auto; 17 | max-width: @column-size; 18 | } 19 | 20 | .grid { 21 | width: @column-size * 1; 22 | margin: 0 auto; 23 | padding: 0; 24 | } 25 | 26 | .row:before, .row:after { 27 | clear: both; 28 | display: table; 29 | content: " "; 30 | *zoom: 1; 31 | } 32 | 33 | .column { 34 | width: @column-width; 35 | float: left; 36 | display: inline; 37 | margin-left: @gutter-width; 38 | margin-right: @gutter-width; 39 | } -------------------------------------------------------------------------------- /app/stylesheets/main.less: -------------------------------------------------------------------------------- 1 | @import "../vendor/normalize/normalize.css"; 2 | 3 | @import "fonts"; 4 | @import "grid"; 5 | @import "checkbox"; 6 | @import "tags"; 7 | @import "spinner"; 8 | 9 | // ===== 10 | // RESET 11 | // ===== 12 | html { 13 | box-sizing: border-box; 14 | } 15 | 16 | // Don't display ugly scrollbars in webkit 17 | *::-webkit-scrollbar { 18 | display: none; 19 | } 20 | 21 | // nie je toto negovanie predosleho 22 | *, *:before, *:after { 23 | box-sizing: inherit; 24 | } 25 | 26 | button:focus { 27 | outline: 0; 28 | } 29 | 30 | textarea { 31 | border: none; 32 | overflow: auto; 33 | outline: none; 34 | -webkit-box-shadow: none; 35 | box-shadow: none; 36 | } 37 | 38 | // ========= 39 | // NORMALIZE 40 | // ========= 41 | 42 | // ================== 43 | // VARIABLES & MIXINS 44 | // ================== 45 | @accent-color: #94D600; 46 | @light-color: #EBE9E6; 47 | @dark-color: #423D32; 48 | 49 | .serif() { 50 | font-family: "Montserrat"; 51 | } 52 | 53 | .input-border() { 54 | border: 1px solid @light-color; 55 | } 56 | 57 | .not-selectable() { 58 | -webkit-user-select: none; 59 | user-select: none; 60 | } 61 | 62 | // ================== 63 | // DEFAULT TYPOGRAPHY 64 | // ================== 65 | html, body { 66 | width: 100%; 67 | height: 100%; 68 | margin: 0; 69 | padding: 0; 70 | font-family: "Playfair Display"; 71 | font-size: 18px; 72 | color: @dark-color; 73 | } 74 | 75 | a { 76 | color: @accent-color; 77 | text-decoration: none; 78 | } 79 | 80 | // Use primary color as selection color 81 | ::selection { 82 | background: @accent-color; 83 | color: white; 84 | text-shadow: none; 85 | } 86 | 87 | // ========== 88 | // APP STYLES 89 | // ========== 90 | .plain-email { 91 | // ================== 92 | // INTERACTION STATES 93 | // ================== 94 | .column, .actions, .menu { 95 | display: none; 96 | } 97 | 98 | &.loading { 99 | .loading-column { 100 | display: inherit; 101 | } 102 | } 103 | 104 | &.reading { 105 | .email-column, .default-actions-column, .menu { 106 | display: inherit; 107 | } 108 | 109 | &.keyboard-modifier { 110 | .modifier-actions-column { 111 | display: inherit; 112 | } 113 | 114 | .default-actions-column { 115 | display: none; 116 | } 117 | } 118 | } 119 | 120 | &.zero { 121 | .zero-column, .menu { 122 | display: inherit; 123 | } 124 | } 125 | 126 | &.responding { 127 | .email-column, .responding-column, .menu { 128 | display: inherit; 129 | } 130 | 131 | .side-by-side() 132 | } 133 | 134 | &.delegating { 135 | .email-column, .delegating-column, .menu { 136 | display: inherit; 137 | } 138 | 139 | .side-by-side() 140 | } 141 | 142 | &.composing { 143 | .composing-column { 144 | display: inherit; 145 | } 146 | } 147 | 148 | // ============= 149 | // MAIN CONTROLS 150 | // ============= 151 | header { 152 | .not-selectable(); 153 | 154 | font-size: 13px; 155 | padding: 2em; 156 | 157 | .logo { 158 | margin-top: 0.9em; 159 | margin-left: 2em; 160 | display: inline-block; 161 | float: left; 162 | } 163 | 164 | .dropdown { 165 | .serif(); 166 | margin-left: 8em; 167 | margin-top: 1.7em; 168 | font-weight: 700; 169 | font-size: 12px; 170 | letter-spacing: 1.5px; 171 | text-transform: uppercase; 172 | float: left; 173 | } 174 | 175 | .menu { 176 | float: right !important; 177 | margin-top: 1.3em; 178 | margin-right: 2em; 179 | 180 | a { 181 | margin-right: 1.5em; 182 | } 183 | } 184 | } 185 | 186 | .email-container { 187 | position: absolute; 188 | top: 5em; 189 | bottom: 3em; 190 | right: 0; 191 | left: 0; 192 | } 193 | 194 | .email { 195 | font-size: 13px; 196 | overflow-y: scroll; 197 | max-height: 100%; 198 | 199 | .metainformation { 200 | padding-top: 4em; 201 | font-size: 16px; 202 | .centered(); 203 | 204 | .to, .from { 205 | color: @accent-color; 206 | text-decoration: none; 207 | font-weight: 700; 208 | 209 | a { 210 | margin-right: 0.5em; 211 | } 212 | } 213 | 214 | .date { 215 | .not-selectable(); 216 | 217 | float: right; 218 | } 219 | } 220 | 221 | .subject { 222 | .serif(); 223 | font-size: 24px; 224 | color: @dark-color; 225 | margin-top: 2em; 226 | } 227 | 228 | .body { 229 | margin-top: 2em; 230 | } 231 | 232 | iframe { 233 | width: @column-width; 234 | border: none; 235 | overflow: hidden; 236 | } 237 | 238 | .value { 239 | .serif(); 240 | padding-left: 2em; 241 | } 242 | 243 | textarea { 244 | .input-border(); 245 | font-size: 18px; 246 | width: 100%; 247 | resize: none; 248 | } 249 | 250 | .subject-write-box { 251 | .subject(); 252 | border: none; 253 | } 254 | 255 | .recipients, .carbon-copy-recipients { 256 | padding: 1em; 257 | padding-left: 2em; 258 | height: 3.5em; 259 | } 260 | .body-write-box { 261 | padding: 2em; 262 | height: 500px; 263 | } 264 | } 265 | 266 | .zero-message { 267 | .not-selectable(); 268 | 269 | top: 45%; 270 | position: fixed; 271 | width: @column-width; 272 | 273 | .zero { 274 | .serif(); 275 | font-size: 55px; 276 | color: @dark-color; 277 | text-align: center; 278 | } 279 | 280 | .zero-quote { 281 | font-size: 18px; 282 | text-align: center; 283 | } 284 | } 285 | 286 | footer { 287 | .not-selectable(); 288 | 289 | font-size: 13px; 290 | position: absolute; 291 | bottom: 1em; 292 | left: 0; 293 | right: 0; 294 | .centered(); 295 | } 296 | 297 | .action { 298 | padding: 1em 3.4em; 299 | .serif(); 300 | color: @accent-color; 301 | text-transform: uppercase; 302 | text-decoration: none; 303 | 304 | &.hidden { 305 | display: none; 306 | } 307 | 308 | &.disabled { 309 | color: @light-color; 310 | cursor: default; 311 | } 312 | } 313 | 314 | .attachment { 315 | .serif(); 316 | 317 | padding: 0.4em 1em 0.4em 1em; 318 | background: white; 319 | display: inline-block; 320 | border: 1px solid @accent-color; 321 | border-radius: 20px; 322 | letter-spacing: 2px; 323 | margin-right: 1em; 324 | margin-bottom: 0.2em 325 | } 326 | 327 | .button { 328 | .serif(); 329 | .action(); 330 | background: white; 331 | display: inline-block; 332 | border: 2px solid @accent-color; 333 | border-radius: 40px; 334 | font-weight: 700; 335 | letter-spacing: 2px; 336 | } 337 | 338 | .primary.button { 339 | .button(); 340 | background: @accent-color; 341 | color: white; 342 | } 343 | } -------------------------------------------------------------------------------- /app/stylesheets/spinner.less: -------------------------------------------------------------------------------- 1 | // ======= 2 | // SPINNER 3 | // ======= 4 | .spinner { 5 | .not-selectable(); 6 | 7 | margin: 100px auto 0; 8 | padding-top: 100px; 9 | width: 70px; 10 | text-align: center; 11 | 12 | & > div { 13 | width: 18px; 14 | height: 18px; 15 | background-color: @dark-color; 16 | border-radius: 100%; 17 | display: inline-block; 18 | -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both; 19 | animation: sk-bouncedelay 1.4s infinite ease-in-out both; 20 | } 21 | 22 | .bounce1 { 23 | -webkit-animation-delay: -0.32s; 24 | animation-delay: -0.32s; 25 | } 26 | 27 | .bounce2 { 28 | -webkit-animation-delay: -0.16s; 29 | animation-delay: -0.16s; 30 | } 31 | } 32 | 33 | @-webkit-keyframes sk-bouncedelay { 34 | 0%, 80%, 100% { 35 | -webkit-transform: scale(0) 36 | } 37 | 40% { 38 | -webkit-transform: scale(1.0) 39 | } 40 | } 41 | 42 | @keyframes sk-bouncedelay { 43 | 0%, 80%, 100% { 44 | -webkit-transform: scale(0); 45 | transform: scale(0); 46 | } 47 | 40% { 48 | -webkit-transform: scale(1.0); 49 | transform: scale(1.0); 50 | } 51 | } -------------------------------------------------------------------------------- /app/stylesheets/tags.less: -------------------------------------------------------------------------------- 1 | // ========= 2 | // TAG INPUT 3 | // ========= 4 | ul.tagit { 5 | .input-border(); 6 | 7 | margin-left: 0px !important; 8 | margin-right: 0px !important; 9 | padding-top: 0.5em; 10 | padding-bottom: 0.5em; 11 | padding-left: 2em; 12 | 13 | li.tagit-choice { 14 | .tagit-label { 15 | &:not(a) { 16 | color: @dark-color; 17 | } 18 | } 19 | 20 | .tagit-close { 21 | margin-right: .4em; 22 | .text-icon { 23 | color: @accent-color; 24 | display: inline !important; 25 | } 26 | } 27 | 28 | .ui-icon { 29 | display: none; 30 | } 31 | } 32 | } 33 | 34 | .tagit { 35 | .ui-helper-hidden-accessible { 36 | clip: rect(1px,1px,1px,1px); 37 | position: absolute !important; 38 | } 39 | } 40 | 41 | // ============ 42 | // AUTOCOMPLETE 43 | // ============ 44 | /* Forked from a jQuery UI theme, so that we don't require the jQuery UI CSS as a dependency. */ 45 | .tagit-autocomplete { 46 | &.ui-autocomplete { 47 | position: absolute; 48 | cursor: default; 49 | } 50 | 51 | &.ui-menu { 52 | list-style: none; 53 | padding: 2px; 54 | margin: 0; 55 | display: block; 56 | float: left; 57 | 58 | .ui-menu { 59 | margin-top: -3px; 60 | } 61 | 62 | .ui-menu-item { 63 | margin: 0; 64 | padding: 0; 65 | float: left; 66 | clear: left; 67 | width: 100%; 68 | 69 | a { 70 | text-decoration: none; 71 | display: block; 72 | padding:.2em .4em; 73 | padding-right: 1em; 74 | line-height: 1.5; 75 | zoom: 1; 76 | } 77 | } 78 | } 79 | 80 | &.ui-widget-content { 81 | border: 1px solid #aaaaaa; 82 | background: #ffffff 50% 50% repeat-x; 83 | color: #222222; 84 | } 85 | 86 | .ui-state-hover, .ui-state-focus { 87 | font-weight: bold; 88 | color: @dark-color; 89 | } 90 | 91 | .ui-state-active { 92 | order: 1px solid #aaaaaa; 93 | } 94 | 95 | .ui-widget-content { 96 | border: 1px solid #aaaaaa; 97 | } 98 | } -------------------------------------------------------------------------------- /app/vendor/electron_boilerplate/env_config.js: -------------------------------------------------------------------------------- 1 | // Loads config/env_XXX.json file and puts it 2 | // in proper place for given Electron context. 3 | 4 | 'use strict'; 5 | 6 | (function () { 7 | var jetpack = require('fs-jetpack'); 8 | if (typeof window === 'object') { 9 | // Web browser context, __dirname points to folder where app.html file is. 10 | window.env = jetpack.read(__dirname + '/env_config.json', 'json'); 11 | } else { 12 | // Node context 13 | module.exports = jetpack.read(__dirname + '/../../env_config.json', 'json'); 14 | } 15 | }()); 16 | -------------------------------------------------------------------------------- /app/vendor/electron_boilerplate/external_links.js: -------------------------------------------------------------------------------- 1 | // Convenient way for opening links in external browser, not in the app. 2 | // Useful especially if you have a lot of links to deal with. 3 | // 4 | // Usage: 5 | // 6 | // Every link with class ".js-external-link" will be opened in external browser. 7 | // google 8 | // 9 | // The same behaviour for many links can be achieved by adding 10 | // this class to any parent tag of an anchor tag. 11 | // 15 | var electron = require("electron"); 16 | var shell = electron.shell; 17 | 18 | (function () { 19 | 'use strict'; 20 | 21 | var supportExternalLinks = function (e) { 22 | var href; 23 | var isExternal = false; 24 | 25 | var checkDomElement = function (element) { 26 | if (element.nodeName === 'A') { 27 | href = element.getAttribute('href'); 28 | } 29 | if (element.classList.contains('js-external-link')) { 30 | isExternal = true; 31 | } 32 | if (href && isExternal) { 33 | shell.openExternal(href); 34 | e.preventDefault(); 35 | } else if (element.parentElement) { 36 | checkDomElement(element.parentElement); 37 | } 38 | } 39 | 40 | checkDomElement(e.target); 41 | } 42 | 43 | document.addEventListener('click', supportExternalLinks, false); 44 | }()); 45 | -------------------------------------------------------------------------------- /app/vendor/hint/hint.css: -------------------------------------------------------------------------------- 1 | /*! Hint.css - v2.1.0 - 2016-02-15 2 | * http://kushagragour.in/lab/hint/ 3 | * Copyright (c) 2016 Kushagra Gour; Licensed */ 4 | 5 | /*-------------------------------------* HINT.css - A CSS tooltip library 6 | \*-------------------------------------*/ 7 | /** 8 | * HINT.css is a tooltip library made in pure CSS. 9 | * 10 | * Source: https://github.com/chinchang/hint.css 11 | * Demo: http://kushagragour.in/lab/hint/ 12 | * 13 | * Release under The MIT License 14 | * 15 | */ 16 | /** 17 | * source: hint-core.scss 18 | * 19 | * Defines the basic styling for the tooltip. 20 | * Each tooltip is made of 2 parts: 21 | * 1) body (:after) 22 | * 2) arrow (:before) 23 | * 24 | * Classes added: 25 | * 1) hint 26 | */ 27 | [data-hint] { 28 | position: relative; 29 | display: inline-block; 30 | /** 31 | * tooltip arrow 32 | */ 33 | /** 34 | * tooltip body 35 | */ } 36 | [data-hint]:before, [data-hint]:after { 37 | position: absolute; 38 | -webkit-transform: translate3d(0, 0, 0); 39 | -moz-transform: translate3d(0, 0, 0); 40 | transform: translate3d(0, 0, 0); 41 | visibility: hidden; 42 | opacity: 0; 43 | z-index: 1000000; 44 | pointer-events: none; 45 | -webkit-transition: 0.3s ease; 46 | -moz-transition: 0.3s ease; 47 | transition: 0.3s ease; 48 | -webkit-transition-delay: 0ms; 49 | -moz-transition-delay: 0ms; 50 | transition-delay: 0ms; } 51 | [data-hint]:hover:before, [data-hint]:hover:after { 52 | visibility: visible; 53 | opacity: 1; } 54 | [data-hint]:hover:before, [data-hint]:hover:after { 55 | -webkit-transition-delay: 100ms; 56 | -moz-transition-delay: 100ms; 57 | transition-delay: 100ms; } 58 | [data-hint]:before { 59 | content: ''; 60 | position: absolute; 61 | background: transparent; 62 | border: 6px solid transparent; 63 | z-index: 1000001; } 64 | [data-hint]:after { 65 | content: attr(data-hint); 66 | background: #383838; 67 | color: white; 68 | padding: 8px 10px; 69 | font-size: 12px; 70 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 71 | line-height: 12px; 72 | white-space: nowrap; } 73 | 74 | [data-hint='']:before, [data-hint='']:after { 75 | display: none !important; } 76 | 77 | /** 78 | * source: hint-position.scss 79 | * 80 | * Defines the positoning logic for the tooltips. 81 | * 82 | * Classes added: 83 | * 1) hint--top 84 | * 2) hint--bottom 85 | * 3) hint--left 86 | * 4) hint--right 87 | */ 88 | /** 89 | * set default color for tooltip arrows 90 | */ 91 | .hint--top-left:before { 92 | border-top-color: #383838; } 93 | 94 | .hint--top-right:before { 95 | border-top-color: #383838; } 96 | 97 | .hint--top:before { 98 | border-top-color: #383838; } 99 | 100 | .hint--bottom-left:before { 101 | border-bottom-color: #383838; } 102 | 103 | .hint--bottom-right:before { 104 | border-bottom-color: #383838; } 105 | 106 | .hint--bottom:before { 107 | border-bottom-color: #383838; } 108 | 109 | .hint--left:before { 110 | border-left-color: #383838; } 111 | 112 | .hint--right:before { 113 | border-right-color: #383838; } 114 | 115 | /** 116 | * top tooltip 117 | */ 118 | .hint--top:before { 119 | margin-bottom: -12px; } 120 | 121 | .hint--top:before, .hint--top:after { 122 | bottom: 100%; 123 | left: 50%; } 124 | 125 | .hint--top:after, .hint--top:before { 126 | -webkit-transform: translateX(-50%); 127 | -moz-transform: translateX(-50%); 128 | transform: translateX(-50%); } 129 | 130 | .hint--top:hover:after, .hint--top:hover:before, .hint--top:focus:after, .hint--top:focus:before { 131 | -webkit-transform: translateX(-50%) translateY(-8px); 132 | -moz-transform: translateX(-50%) translateY(-8px); 133 | transform: translateX(-50%) translateY(-8px); } 134 | 135 | /** 136 | * bottom tooltip 137 | */ 138 | .hint--bottom:before { 139 | margin-top: -12px; } 140 | 141 | .hint--bottom:before, .hint--bottom:after { 142 | top: 100%; 143 | left: 50%; } 144 | 145 | .hint--bottom:after, .hint--bottom:before { 146 | -webkit-transform: translateX(-50%); 147 | -moz-transform: translateX(-50%); 148 | transform: translateX(-50%); } 149 | 150 | .hint--bottom:hover:after, .hint--bottom:hover:before, .hint--bottom:focus:after, .hint--bottom:focus:before { 151 | -webkit-transform: translateX(-50%) translateY(8px); 152 | -moz-transform: translateX(-50%) translateY(8px); 153 | transform: translateX(-50%) translateY(8px); } 154 | 155 | /** 156 | * right tooltip 157 | */ 158 | .hint--right:before { 159 | margin-left: -12px; 160 | margin-bottom: -6px; } 161 | 162 | .hint--right:after { 163 | margin-bottom: -14px; } 164 | 165 | .hint--right:before, .hint--right:after { 166 | left: 100%; 167 | bottom: 50%; } 168 | 169 | .hint--right:hover:after, .hint--right:hover:before, .hint--right:focus:after, .hint--right:focus:before { 170 | -webkit-transform: translateX(8px); 171 | -moz-transform: translateX(8px); 172 | transform: translateX(8px); } 173 | 174 | /** 175 | * left tooltip 176 | */ 177 | .hint--left:before { 178 | margin-right: -12px; 179 | margin-bottom: -6px; } 180 | 181 | .hint--left:after { 182 | margin-bottom: -14px; } 183 | 184 | .hint--left:before, .hint--left:after { 185 | right: 100%; 186 | bottom: 50%; } 187 | 188 | .hint--left:hover:after, .hint--left:hover:before, .hint--left:focus:after, .hint--left:focus:before { 189 | -webkit-transform: translateX(-8px); 190 | -moz-transform: translateX(-8px); 191 | transform: translateX(-8px); } 192 | 193 | /** 194 | * top-left tooltip 195 | */ 196 | .hint--top-left:before { 197 | margin-bottom: -12px; } 198 | 199 | .hint--top-left:before, .hint--top-left:after { 200 | bottom: 100%; 201 | left: 50%; } 202 | 203 | .hint--top-left:after, .hint--top-left:before { 204 | -webkit-transform: translateX(-100%); 205 | -moz-transform: translateX(-100%); 206 | transform: translateX(-100%); } 207 | 208 | .hint--top-left:after { 209 | margin-left: 6px; } 210 | 211 | .hint--top-left:hover:after, .hint--top-left:hover:before, .hint--top-left:focus:after, .hint--top-left:focus:before { 212 | -webkit-transform: translateX(-100%) translateY(-8px); 213 | -moz-transform: translateX(-100%) translateY(-8px); 214 | transform: translateX(-100%) translateY(-8px); } 215 | 216 | /** 217 | * top-right tooltip 218 | */ 219 | .hint--top-right:before { 220 | margin-bottom: -12px; } 221 | 222 | .hint--top-right:before, .hint--top-right:after { 223 | bottom: 100%; 224 | left: 50%; } 225 | 226 | .hint--top-right:after, .hint--top-right:before { 227 | -webkit-transform: translateX(0); 228 | -moz-transform: translateX(0); 229 | transform: translateX(0); } 230 | 231 | .hint--top-right:after { 232 | margin-left: -6px; } 233 | 234 | .hint--top-right:hover:after, .hint--top-right:hover:before, .hint--top-right:focus:after, .hint--top-right:focus:before { 235 | -webkit-transform: translateY(-8px); 236 | -moz-transform: translateY(-8px); 237 | transform: translateY(-8px); } 238 | 239 | /** 240 | * bottom-left tooltip 241 | */ 242 | .hint--bottom-left:before { 243 | margin-top: -12px; } 244 | 245 | .hint--bottom-left:before, .hint--bottom-left:after { 246 | top: 100%; 247 | left: 50%; } 248 | 249 | .hint--bottom-left:after, .hint--bottom-left:before { 250 | -webkit-transform: translateX(-100%); 251 | -moz-transform: translateX(-100%); 252 | transform: translateX(-100%); } 253 | 254 | .hint--bottom-left:after { 255 | margin-left: 6px; } 256 | 257 | .hint--bottom-left:hover:after, .hint--bottom-left:hover:before, .hint--bottom-left:focus:after, .hint--bottom-left:focus:before { 258 | -webkit-transform: translateX(-100%) translateY(8px); 259 | -moz-transform: translateX(-100%) translateY(8px); 260 | transform: translateX(-100%) translateY(8px); } 261 | 262 | /** 263 | * bottom-right tooltip 264 | */ 265 | .hint--bottom-right:before { 266 | margin-top: -12px; } 267 | 268 | .hint--bottom-right:before, .hint--bottom-right:after { 269 | top: 100%; 270 | left: 50%; } 271 | 272 | .hint--bottom-right:after, .hint--bottom-right:before { 273 | -webkit-transform: translateX(0); 274 | -moz-transform: translateX(0); 275 | transform: translateX(0); } 276 | 277 | .hint--bottom-right:after { 278 | margin-left: -6px; } 279 | 280 | .hint--bottom-right:hover:after, .hint--bottom-right:hover:before, .hint--bottom-right:focus:after, .hint--bottom-right:focus:before { 281 | -webkit-transform: translateY(8px); 282 | -moz-transform: translateY(8px); 283 | transform: translateY(8px); } 284 | 285 | /** 286 | * source: hint-theme.scss 287 | * 288 | * Defines basic theme for tooltips. 289 | * 290 | */ 291 | [data-hint] { 292 | /** 293 | * tooltip body 294 | */ } 295 | [data-hint]:after { 296 | text-shadow: 0 -1px 0px black; 297 | box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3); } 298 | 299 | /** 300 | * source: hint-color-types.scss 301 | * 302 | * Contains tooltips of various types based on color differences. 303 | * 304 | * Classes added: 305 | * 1) hint--error 306 | * 2) hint--warning 307 | * 3) hint--info 308 | * 4) hint--success 309 | * 310 | */ 311 | /** 312 | * Error 313 | */ 314 | .hint--error:after { 315 | background-color: #b34e4d; 316 | text-shadow: 0 -1px 0px #592726; } 317 | 318 | .hint--error.hint--top-left:before { 319 | border-top-color: #b34e4d; } 320 | 321 | .hint--error.hint--top-right:before { 322 | border-top-color: #b34e4d; } 323 | 324 | .hint--error.hint--top:before { 325 | border-top-color: #b34e4d; } 326 | 327 | .hint--error.hint--bottom-left:before { 328 | border-bottom-color: #b34e4d; } 329 | 330 | .hint--error.hint--bottom-right:before { 331 | border-bottom-color: #b34e4d; } 332 | 333 | .hint--error.hint--bottom:before { 334 | border-bottom-color: #b34e4d; } 335 | 336 | .hint--error.hint--left:before { 337 | border-left-color: #b34e4d; } 338 | 339 | .hint--error.hint--right:before { 340 | border-right-color: #b34e4d; } 341 | 342 | /** 343 | * Warning 344 | */ 345 | .hint--warning:after { 346 | background-color: #c09854; 347 | text-shadow: 0 -1px 0px #6c5328; } 348 | 349 | .hint--warning.hint--top-left:before { 350 | border-top-color: #c09854; } 351 | 352 | .hint--warning.hint--top-right:before { 353 | border-top-color: #c09854; } 354 | 355 | .hint--warning.hint--top:before { 356 | border-top-color: #c09854; } 357 | 358 | .hint--warning.hint--bottom-left:before { 359 | border-bottom-color: #c09854; } 360 | 361 | .hint--warning.hint--bottom-right:before { 362 | border-bottom-color: #c09854; } 363 | 364 | .hint--warning.hint--bottom:before { 365 | border-bottom-color: #c09854; } 366 | 367 | .hint--warning.hint--left:before { 368 | border-left-color: #c09854; } 369 | 370 | .hint--warning.hint--right:before { 371 | border-right-color: #c09854; } 372 | 373 | /** 374 | * Info 375 | */ 376 | .hint--info:after { 377 | background-color: #3986ac; 378 | text-shadow: 0 -1px 0px #1a3c4d; } 379 | 380 | .hint--info.hint--top-left:before { 381 | border-top-color: #3986ac; } 382 | 383 | .hint--info.hint--top-right:before { 384 | border-top-color: #3986ac; } 385 | 386 | .hint--info.hint--top:before { 387 | border-top-color: #3986ac; } 388 | 389 | .hint--info.hint--bottom-left:before { 390 | border-bottom-color: #3986ac; } 391 | 392 | .hint--info.hint--bottom-right:before { 393 | border-bottom-color: #3986ac; } 394 | 395 | .hint--info.hint--bottom:before { 396 | border-bottom-color: #3986ac; } 397 | 398 | .hint--info.hint--left:before { 399 | border-left-color: #3986ac; } 400 | 401 | .hint--info.hint--right:before { 402 | border-right-color: #3986ac; } 403 | 404 | /** 405 | * Success 406 | */ 407 | .hint--success:after { 408 | background-color: #458746; 409 | text-shadow: 0 -1px 0px #1a321a; } 410 | 411 | .hint--success.hint--top-left:before { 412 | border-top-color: #458746; } 413 | 414 | .hint--success.hint--top-right:before { 415 | border-top-color: #458746; } 416 | 417 | .hint--success.hint--top:before { 418 | border-top-color: #458746; } 419 | 420 | .hint--success.hint--bottom-left:before { 421 | border-bottom-color: #458746; } 422 | 423 | .hint--success.hint--bottom-right:before { 424 | border-bottom-color: #458746; } 425 | 426 | .hint--success.hint--bottom:before { 427 | border-bottom-color: #458746; } 428 | 429 | .hint--success.hint--left:before { 430 | border-left-color: #458746; } 431 | 432 | .hint--success.hint--right:before { 433 | border-right-color: #458746; } 434 | 435 | /** 436 | * source: hint-always.scss 437 | * 438 | * Defines a persisted tooltip which shows always. 439 | * 440 | * Classes added: 441 | * 1) hint--always 442 | * 443 | */ 444 | .hint--always:after, .hint--always:before { 445 | opacity: 1; 446 | visibility: visible; } 447 | 448 | .hint--always.hint--top:after, .hint--always.hint--top:before { 449 | -webkit-transform: translateX(-50%) translateY(-8px); 450 | -moz-transform: translateX(-50%) translateY(-8px); 451 | transform: translateX(-50%) translateY(-8px); } 452 | 453 | .hint--always.hint--top-left:after, .hint--always.hint--top-left:before { 454 | -webkit-transform: translateX(-100%) translateY(-8px); 455 | -moz-transform: translateX(-100%) translateY(-8px); 456 | transform: translateX(-100%) translateY(-8px); } 457 | 458 | .hint--always.hint--top-right:after, .hint--always.hint--top-right:before { 459 | -webkit-transform: translateY(-8px); 460 | -moz-transform: translateY(-8px); 461 | transform: translateY(-8px); } 462 | 463 | .hint--always.hint--bottom:after, .hint--always.hint--bottom:before { 464 | -webkit-transform: translateX(-50%) translateY(8px); 465 | -moz-transform: translateX(-50%) translateY(8px); 466 | transform: translateX(-50%) translateY(8px); } 467 | 468 | .hint--always.hint--bottom-left:after, .hint--always.hint--bottom-left:before { 469 | -webkit-transform: translateX(-100%) translateY(8px); 470 | -moz-transform: translateX(-100%) translateY(8px); 471 | transform: translateX(-100%) translateY(8px); } 472 | 473 | .hint--always.hint--bottom-right:after, .hint--always.hint--bottom-right:before { 474 | -webkit-transform: translateY(8px); 475 | -moz-transform: translateY(8px); 476 | transform: translateY(8px); } 477 | 478 | .hint--always.hint--left:after, .hint--always.hint--left:before { 479 | -webkit-transform: translateX(-8px); 480 | -moz-transform: translateX(-8px); 481 | transform: translateX(-8px); } 482 | 483 | .hint--always.hint--right:after, .hint--always.hint--right:before { 484 | -webkit-transform: translateX(8px); 485 | -moz-transform: translateX(8px); 486 | transform: translateX(8px); } 487 | 488 | /** 489 | * source: hint-rounded.scss 490 | * 491 | * Defines rounded corner tooltips. 492 | * 493 | * Classes added: 494 | * 1) hint--rounded 495 | * 496 | */ 497 | .hint--rounded:after { 498 | border-radius: 4px; } 499 | 500 | /** 501 | * source: hint-effects.scss 502 | * 503 | * Defines various transition effects for the tooltips. 504 | * 505 | * Classes added: 506 | * 1) hint--no-animate 507 | * 2) hint--bounce 508 | * 509 | */ 510 | .hint--no-animate:before, .hint--no-animate:after { 511 | -webkit-transition-duration: 0ms; 512 | -moz-transition-duration: 0ms; 513 | transition-duration: 0ms; } 514 | 515 | .hint--bounce:before, .hint--bounce:after { 516 | -webkit-transition: opacity 0.3s ease, visibility 0.3s ease, -webkit-transform 0.3s cubic-bezier(0.71, 1.7, 0.77, 1.24); 517 | -moz-transition: opacity 0.3s ease, visibility 0.3s ease, -moz-transform 0.3s cubic-bezier(0.71, 1.7, 0.77, 1.24); 518 | transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.71, 1.7, 0.77, 1.24); } 519 | -------------------------------------------------------------------------------- /app/vendor/jasmine/boot.js: -------------------------------------------------------------------------------- 1 | /** 2 | Starting with version 2.0, this file "boots" Jasmine, performing all of the necessary initialization before executing the loaded environment and all of a project's specs. This file should be loaded after `jasmine.js` and `jasmine_html.js`, but before any project source files or spec files are loaded. Thus this file can also be used to customize Jasmine for a project. 3 | 4 | If a project is using Jasmine via the standalone distribution, this file can be customized directly. If a project is using Jasmine via the [Ruby gem][jasmine-gem], this file can be copied into the support directory via `jasmine copy_boot_js`. Other environments (e.g., Python) will have different mechanisms. 5 | 6 | The location of `boot.js` can be specified and/or overridden in `jasmine.yml`. 7 | 8 | [jasmine-gem]: http://github.com/pivotal/jasmine-gem 9 | */ 10 | 11 | (function() { 12 | 13 | /** 14 | * ## Require & Instantiate 15 | * 16 | * Require Jasmine's core files. Specifically, this requires and attaches all of Jasmine's code to the `jasmine` reference. 17 | */ 18 | window.jasmine = jasmineRequire.core(jasmineRequire); 19 | 20 | /** 21 | * Since this is being run in a browser and the results should populate to an HTML page, require the HTML-specific Jasmine code, injecting the same reference. 22 | */ 23 | jasmineRequire.html(jasmine); 24 | 25 | /** 26 | * Create the Jasmine environment. This is used to run all specs in a project. 27 | */ 28 | var env = jasmine.getEnv(); 29 | 30 | /** 31 | * ## The Global Interface 32 | * 33 | * Build up the functions that will be exposed as the Jasmine public interface. A project can customize, rename or alias any of these functions as desired, provided the implementation remains unchanged. 34 | */ 35 | var jasmineInterface = jasmineRequire.interface(jasmine, env); 36 | 37 | /** 38 | * Add all of the Jasmine global/public interface to the proper global, so a project can use the public interface directly. For example, calling `describe` in specs instead of `jasmine.getEnv().describe`. 39 | */ 40 | if (typeof window == "undefined" && typeof exports == "object") { 41 | extend(exports, jasmineInterface); 42 | } else { 43 | extend(window, jasmineInterface); 44 | } 45 | 46 | /** 47 | * ## Runner Parameters 48 | * 49 | * More browser specific code - wrap the query string in an object and to allow for getting/setting parameters from the runner user interface. 50 | */ 51 | 52 | var queryString = new jasmine.QueryString({ 53 | getWindowLocation: function() { return window.location; } 54 | }); 55 | 56 | var catchingExceptions = queryString.getParam("catch"); 57 | env.catchExceptions(typeof catchingExceptions === "undefined" ? true : catchingExceptions); 58 | 59 | /** 60 | * ## Reporters 61 | * The `HtmlReporter` builds all of the HTML UI for the runner page. This reporter paints the dots, stars, and x's for specs, as well as all spec names and all failures (if any). 62 | */ 63 | var htmlReporter = new jasmine.HtmlReporter({ 64 | env: env, 65 | onRaiseExceptionsClick: function() { queryString.navigateWithNewParam("catch", !env.catchingExceptions()); }, 66 | addToExistingQueryString: function(key, value) { return queryString.fullStringWithNewParam(key, value); }, 67 | getContainer: function() { return document.body; }, 68 | createElement: function() { return document.createElement.apply(document, arguments); }, 69 | createTextNode: function() { return document.createTextNode.apply(document, arguments); }, 70 | timer: new jasmine.Timer() 71 | }); 72 | 73 | /** 74 | * The `jsApiReporter` also receives spec results, and is used by any environment that needs to extract the results from JavaScript. 75 | */ 76 | env.addReporter(jasmineInterface.jsApiReporter); 77 | env.addReporter(htmlReporter); 78 | 79 | /** 80 | * Filter which specs will be run by matching the start of the full name against the `spec` query param. 81 | */ 82 | var specFilter = new jasmine.HtmlSpecFilter({ 83 | filterString: function() { return queryString.getParam("spec"); } 84 | }); 85 | 86 | env.specFilter = function(spec) { 87 | return specFilter.matches(spec.getFullName()); 88 | }; 89 | 90 | /** 91 | * Setting up timing functions to be able to be overridden. Certain browsers (Safari, IE 8, phantomjs) require this hack. 92 | */ 93 | window.setTimeout = window.setTimeout; 94 | window.setInterval = window.setInterval; 95 | window.clearTimeout = window.clearTimeout; 96 | window.clearInterval = window.clearInterval; 97 | 98 | /** 99 | * ## Execution 100 | * 101 | * Replace the browser window's `onload`, ensure it's called, and then run all of the loaded specs. This includes initializing the `HtmlReporter` instance and then executing the loaded Jasmine environment. All of this will happen after all of the specs are loaded. 102 | */ 103 | var currentWindowOnload = window.onload; 104 | 105 | window.onload = function() { 106 | if (currentWindowOnload) { 107 | currentWindowOnload(); 108 | } 109 | htmlReporter.initialize(); 110 | env.execute(); 111 | }; 112 | 113 | /** 114 | * Helper function for readability above. 115 | */ 116 | function extend(destination, source) { 117 | for (var property in source) destination[property] = source[property]; 118 | return destination; 119 | } 120 | 121 | }()); 122 | -------------------------------------------------------------------------------- /app/vendor/jasmine/jasmine-html.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2008-2015 Pivotal Labs 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining 5 | a copy of this software and associated documentation files (the 6 | "Software"), to deal in the Software without restriction, including 7 | without limitation the rights to use, copy, modify, merge, publish, 8 | distribute, sublicense, and/or sell copies of the Software, and to 9 | permit persons to whom the Software is furnished to do so, subject to 10 | the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | */ 23 | jasmineRequire.html = function(j$) { 24 | j$.ResultsNode = jasmineRequire.ResultsNode(); 25 | j$.HtmlReporter = jasmineRequire.HtmlReporter(j$); 26 | j$.QueryString = jasmineRequire.QueryString(); 27 | j$.HtmlSpecFilter = jasmineRequire.HtmlSpecFilter(); 28 | }; 29 | 30 | jasmineRequire.HtmlReporter = function(j$) { 31 | 32 | var noopTimer = { 33 | start: function() {}, 34 | elapsed: function() { return 0; } 35 | }; 36 | 37 | function HtmlReporter(options) { 38 | var env = options.env || {}, 39 | getContainer = options.getContainer, 40 | createElement = options.createElement, 41 | createTextNode = options.createTextNode, 42 | onRaiseExceptionsClick = options.onRaiseExceptionsClick || function() {}, 43 | addToExistingQueryString = options.addToExistingQueryString || defaultQueryString, 44 | timer = options.timer || noopTimer, 45 | results = [], 46 | specsExecuted = 0, 47 | failureCount = 0, 48 | pendingSpecCount = 0, 49 | htmlReporterMain, 50 | symbols, 51 | failedSuites = []; 52 | 53 | this.initialize = function() { 54 | clearPrior(); 55 | htmlReporterMain = createDom('div', {className: 'jasmine_html-reporter'}, 56 | createDom('div', {className: 'banner'}, 57 | createDom('a', {className: 'title', href: 'http://jasmine.github.io/', target: '_blank'}), 58 | createDom('span', {className: 'version'}, j$.version) 59 | ), 60 | createDom('ul', {className: 'symbol-summary'}), 61 | createDom('div', {className: 'alert'}), 62 | createDom('div', {className: 'results'}, 63 | createDom('div', {className: 'failures'}) 64 | ) 65 | ); 66 | getContainer().appendChild(htmlReporterMain); 67 | 68 | symbols = find('.symbol-summary'); 69 | }; 70 | 71 | var totalSpecsDefined; 72 | this.jasmineStarted = function(options) { 73 | totalSpecsDefined = options.totalSpecsDefined || 0; 74 | timer.start(); 75 | }; 76 | 77 | var summary = createDom('div', {className: 'summary'}); 78 | 79 | var topResults = new j$.ResultsNode({}, '', null), 80 | currentParent = topResults; 81 | 82 | this.suiteStarted = function(result) { 83 | currentParent.addChild(result, 'suite'); 84 | currentParent = currentParent.last(); 85 | }; 86 | 87 | this.suiteDone = function(result) { 88 | if (result.status == 'failed') { 89 | failedSuites.push(result); 90 | } 91 | 92 | if (currentParent == topResults) { 93 | return; 94 | } 95 | 96 | currentParent = currentParent.parent; 97 | }; 98 | 99 | this.specStarted = function(result) { 100 | currentParent.addChild(result, 'spec'); 101 | }; 102 | 103 | var failures = []; 104 | this.specDone = function(result) { 105 | if(noExpectations(result) && typeof console !== 'undefined' && typeof console.error !== 'undefined') { 106 | console.error('Spec \'' + result.fullName + '\' has no expectations.'); 107 | } 108 | 109 | if (result.status != 'disabled') { 110 | specsExecuted++; 111 | } 112 | 113 | symbols.appendChild(createDom('li', { 114 | className: noExpectations(result) ? 'empty' : result.status, 115 | id: 'spec_' + result.id, 116 | title: result.fullName 117 | } 118 | )); 119 | 120 | if (result.status == 'failed') { 121 | failureCount++; 122 | 123 | var failure = 124 | createDom('div', {className: 'spec-detail failed'}, 125 | createDom('div', {className: 'description'}, 126 | createDom('a', {title: result.fullName, href: specHref(result)}, result.fullName) 127 | ), 128 | createDom('div', {className: 'messages'}) 129 | ); 130 | var messages = failure.childNodes[1]; 131 | 132 | for (var i = 0; i < result.failedExpectations.length; i++) { 133 | var expectation = result.failedExpectations[i]; 134 | messages.appendChild(createDom('div', {className: 'result-message'}, expectation.message)); 135 | messages.appendChild(createDom('div', {className: 'stack-trace'}, expectation.stack)); 136 | } 137 | 138 | failures.push(failure); 139 | } 140 | 141 | if (result.status == 'pending') { 142 | pendingSpecCount++; 143 | } 144 | }; 145 | 146 | this.jasmineDone = function() { 147 | var banner = find('.banner'); 148 | banner.appendChild(createDom('span', {className: 'duration'}, 'finished in ' + timer.elapsed() / 1000 + 's')); 149 | 150 | var alert = find('.alert'); 151 | 152 | alert.appendChild(createDom('span', { className: 'exceptions' }, 153 | createDom('label', { className: 'label', 'for': 'raise-exceptions' }, 'raise exceptions'), 154 | createDom('input', { 155 | className: 'raise', 156 | id: 'raise-exceptions', 157 | type: 'checkbox' 158 | }) 159 | )); 160 | var checkbox = find('#raise-exceptions'); 161 | 162 | checkbox.checked = !env.catchingExceptions(); 163 | checkbox.onclick = onRaiseExceptionsClick; 164 | 165 | if (specsExecuted < totalSpecsDefined) { 166 | var skippedMessage = 'Ran ' + specsExecuted + ' of ' + totalSpecsDefined + ' specs - run all'; 167 | alert.appendChild( 168 | createDom('span', {className: 'bar skipped'}, 169 | createDom('a', {href: '?', title: 'Run all specs'}, skippedMessage) 170 | ) 171 | ); 172 | } 173 | var statusBarMessage = ''; 174 | var statusBarClassName = 'bar '; 175 | 176 | if (totalSpecsDefined > 0) { 177 | statusBarMessage += pluralize('spec', specsExecuted) + ', ' + pluralize('failure', failureCount); 178 | if (pendingSpecCount) { statusBarMessage += ', ' + pluralize('pending spec', pendingSpecCount); } 179 | statusBarClassName += (failureCount > 0) ? 'failed' : 'passed'; 180 | } else { 181 | statusBarClassName += 'skipped'; 182 | statusBarMessage += 'No specs found'; 183 | } 184 | 185 | alert.appendChild(createDom('span', {className: statusBarClassName}, statusBarMessage)); 186 | 187 | for(i = 0; i < failedSuites.length; i++) { 188 | var failedSuite = failedSuites[i]; 189 | for(var j = 0; j < failedSuite.failedExpectations.length; j++) { 190 | var errorBarMessage = 'AfterAll ' + failedSuite.failedExpectations[j].message; 191 | var errorBarClassName = 'bar errored'; 192 | alert.appendChild(createDom('span', {className: errorBarClassName}, errorBarMessage)); 193 | } 194 | } 195 | 196 | var results = find('.results'); 197 | results.appendChild(summary); 198 | 199 | summaryList(topResults, summary); 200 | 201 | function summaryList(resultsTree, domParent) { 202 | var specListNode; 203 | for (var i = 0; i < resultsTree.children.length; i++) { 204 | var resultNode = resultsTree.children[i]; 205 | if (resultNode.type == 'suite') { 206 | var suiteListNode = createDom('ul', {className: 'suite', id: 'suite-' + resultNode.result.id}, 207 | createDom('li', {className: 'suite-detail'}, 208 | createDom('a', {href: specHref(resultNode.result)}, resultNode.result.description) 209 | ) 210 | ); 211 | 212 | summaryList(resultNode, suiteListNode); 213 | domParent.appendChild(suiteListNode); 214 | } 215 | if (resultNode.type == 'spec') { 216 | if (domParent.getAttribute('class') != 'specs') { 217 | specListNode = createDom('ul', {className: 'specs'}); 218 | domParent.appendChild(specListNode); 219 | } 220 | var specDescription = resultNode.result.description; 221 | if(noExpectations(resultNode.result)) { 222 | specDescription = 'SPEC HAS NO EXPECTATIONS ' + specDescription; 223 | } 224 | if(resultNode.result.status === 'pending' && resultNode.result.pendingReason !== '') { 225 | specDescription = specDescription + ' PENDING WITH MESSAGE: ' + resultNode.result.pendingReason; 226 | } 227 | specListNode.appendChild( 228 | createDom('li', { 229 | className: resultNode.result.status, 230 | id: 'spec-' + resultNode.result.id 231 | }, 232 | createDom('a', {href: specHref(resultNode.result)}, specDescription) 233 | ) 234 | ); 235 | } 236 | } 237 | } 238 | 239 | if (failures.length) { 240 | alert.appendChild( 241 | createDom('span', {className: 'menu bar spec-list'}, 242 | createDom('span', {}, 'Spec List | '), 243 | createDom('a', {className: 'failures-menu', href: '#'}, 'Failures'))); 244 | alert.appendChild( 245 | createDom('span', {className: 'menu bar failure-list'}, 246 | createDom('a', {className: 'spec-list-menu', href: '#'}, 'Spec List'), 247 | createDom('span', {}, ' | Failures '))); 248 | 249 | find('.failures-menu').onclick = function() { 250 | setMenuModeTo('failure-list'); 251 | }; 252 | find('.spec-list-menu').onclick = function() { 253 | setMenuModeTo('spec-list'); 254 | }; 255 | 256 | setMenuModeTo('failure-list'); 257 | 258 | var failureNode = find('.failures'); 259 | for (var i = 0; i < failures.length; i++) { 260 | failureNode.appendChild(failures[i]); 261 | } 262 | } 263 | }; 264 | 265 | return this; 266 | 267 | function find(selector) { 268 | return getContainer().querySelector('.jasmine_html-reporter ' + selector); 269 | } 270 | 271 | function clearPrior() { 272 | // return the reporter 273 | var oldReporter = find(''); 274 | 275 | if(oldReporter) { 276 | getContainer().removeChild(oldReporter); 277 | } 278 | } 279 | 280 | function createDom(type, attrs, childrenVarArgs) { 281 | var el = createElement(type); 282 | 283 | for (var i = 2; i < arguments.length; i++) { 284 | var child = arguments[i]; 285 | 286 | if (typeof child === 'string') { 287 | el.appendChild(createTextNode(child)); 288 | } else { 289 | if (child) { 290 | el.appendChild(child); 291 | } 292 | } 293 | } 294 | 295 | for (var attr in attrs) { 296 | if (attr == 'className') { 297 | el[attr] = attrs[attr]; 298 | } else { 299 | el.setAttribute(attr, attrs[attr]); 300 | } 301 | } 302 | 303 | return el; 304 | } 305 | 306 | function pluralize(singular, count) { 307 | var word = (count == 1 ? singular : singular + 's'); 308 | 309 | return '' + count + ' ' + word; 310 | } 311 | 312 | function specHref(result) { 313 | return addToExistingQueryString('spec', result.fullName); 314 | } 315 | 316 | function defaultQueryString(key, value) { 317 | return '?' + key + '=' + value; 318 | } 319 | 320 | function setMenuModeTo(mode) { 321 | htmlReporterMain.setAttribute('class', 'jasmine_html-reporter ' + mode); 322 | } 323 | 324 | function noExpectations(result) { 325 | return (result.failedExpectations.length + result.passedExpectations.length) === 0 && 326 | result.status === 'passed'; 327 | } 328 | } 329 | 330 | return HtmlReporter; 331 | }; 332 | 333 | jasmineRequire.HtmlSpecFilter = function() { 334 | function HtmlSpecFilter(options) { 335 | var filterString = options && options.filterString() && options.filterString().replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'); 336 | var filterPattern = new RegExp(filterString); 337 | 338 | this.matches = function(specName) { 339 | return filterPattern.test(specName); 340 | }; 341 | } 342 | 343 | return HtmlSpecFilter; 344 | }; 345 | 346 | jasmineRequire.ResultsNode = function() { 347 | function ResultsNode(result, type, parent) { 348 | this.result = result; 349 | this.type = type; 350 | this.parent = parent; 351 | 352 | this.children = []; 353 | 354 | this.addChild = function(result, type) { 355 | this.children.push(new ResultsNode(result, type, this)); 356 | }; 357 | 358 | this.last = function() { 359 | return this.children[this.children.length - 1]; 360 | }; 361 | } 362 | 363 | return ResultsNode; 364 | }; 365 | 366 | jasmineRequire.QueryString = function() { 367 | function QueryString(options) { 368 | 369 | this.navigateWithNewParam = function(key, value) { 370 | options.getWindowLocation().search = this.fullStringWithNewParam(key, value); 371 | }; 372 | 373 | this.fullStringWithNewParam = function(key, value) { 374 | var paramMap = queryStringToParamMap(); 375 | paramMap[key] = value; 376 | return toQueryString(paramMap); 377 | }; 378 | 379 | this.getParam = function(key) { 380 | return queryStringToParamMap()[key]; 381 | }; 382 | 383 | return this; 384 | 385 | function toQueryString(paramMap) { 386 | var qStrPairs = []; 387 | for (var prop in paramMap) { 388 | qStrPairs.push(encodeURIComponent(prop) + '=' + encodeURIComponent(paramMap[prop])); 389 | } 390 | return '?' + qStrPairs.join('&'); 391 | } 392 | 393 | function queryStringToParamMap() { 394 | var paramStr = options.getWindowLocation().search.substring(1), 395 | params = [], 396 | paramMap = {}; 397 | 398 | if (paramStr.length > 0) { 399 | params = paramStr.split('&'); 400 | for (var i = 0; i < params.length; i++) { 401 | var p = params[i].split('='); 402 | var value = decodeURIComponent(p[1]); 403 | if (value === 'true' || value === 'false') { 404 | value = JSON.parse(value); 405 | } 406 | paramMap[decodeURIComponent(p[0])] = value; 407 | } 408 | } 409 | 410 | return paramMap; 411 | } 412 | 413 | } 414 | 415 | return QueryString; 416 | }; 417 | -------------------------------------------------------------------------------- /app/vendor/jasmine/jasmine.css: -------------------------------------------------------------------------------- 1 | body { overflow-y: scroll; } 2 | 3 | .jasmine_html-reporter { background-color: #eee; padding: 5px; margin: -8px; font-size: 11px; font-family: Monaco, "Lucida Console", monospace; line-height: 14px; color: #333; } 4 | .jasmine_html-reporter a { text-decoration: none; } 5 | .jasmine_html-reporter a:hover { text-decoration: underline; } 6 | .jasmine_html-reporter p, .jasmine_html-reporter h1, .jasmine_html-reporter h2, .jasmine_html-reporter h3, .jasmine_html-reporter h4, .jasmine_html-reporter h5, .jasmine_html-reporter h6 { margin: 0; line-height: 14px; } 7 | .jasmine_html-reporter .banner, .jasmine_html-reporter .symbol-summary, .jasmine_html-reporter .summary, .jasmine_html-reporter .result-message, .jasmine_html-reporter .spec .description, .jasmine_html-reporter .spec-detail .description, .jasmine_html-reporter .alert .bar, .jasmine_html-reporter .stack-trace { padding-left: 9px; padding-right: 9px; } 8 | .jasmine_html-reporter .banner { position: relative; } 9 | .jasmine_html-reporter .banner .title { background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAAAZCAMAAACGusnyAAACdlBMVEX/////AP+AgICqVaqAQICZM5mAVYCSSZKAQICOOY6ATYCLRouAQICJO4mSSYCIRIiPQICHPIeOR4CGQ4aMQICGPYaLRoCFQ4WKQICPPYWJRYCOQoSJQICNPoSIRICMQoSHQICHRICKQoOHQICKPoOJO4OJQYOMQICMQ4CIQYKLQICIPoKLQ4CKQICNPoKJQISMQ4KJQoSLQYKJQISLQ4KIQoSKQYKIQICIQISMQoSKQYKLQIOLQoOJQYGLQIOKQIOMQoGKQYOLQYGKQIOLQoGJQYOJQIOKQYGJQIOKQoGKQIGLQIKLQ4KKQoGLQYKJQIGKQYKJQIGKQIKJQoGKQYKLQIGKQYKLQIOJQoKKQoOJQYKKQIOJQoKKQoOKQIOLQoKKQYOLQYKJQIOKQoKKQYKKQoKJQYOKQYKLQIOKQoKLQYOKQYKLQIOJQoGKQYKJQYGJQoGKQYKLQoGLQYGKQoGJQYKKQYGJQIKKQoGJQYKLQIKKQYGLQYKKQYGKQYGKQYKJQYOKQoKJQYOKQYKLQYOLQYOKQYKLQYOKQoKKQYKKQYOKQYOJQYKKQYKLQYKKQIKKQoKKQYKKQYKKQoKJQIKKQYKLQYKKQYKKQIKKQYKKQYKKQYKKQIKKQYKJQYGLQYGKQYKKQYKKQYGKQIKKQYGKQYOJQoKKQYOLQYKKQYOKQoKKQ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dHk6MTtmaWxsLXJ1bGU6bm9uemVybztzdHJva2U6bm9uZSIgLz48cGF0aAogICAgICAgICAgICAgZD0ibSA3MTYuMjg5LDM3Ni41OSAzNy42NDA2LDAgMCwxODQuODE2IC0zNy42NDA2LDAgMCwtMTg0LjgxNiB6IgogICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIKICAgICAgICAgICAgIGlkPSJwYXRoNTYiCiAgICAgICAgICAgICBzdHlsZT0iZmlsbDojOGE0MTgyO2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpub256ZXJvO3N0cm9rZTpub25lIiAvPjwvZz48L2c+PC9nPjwvZz48L3N2Zz4=') no-repeat, none; -moz-background-size: 100%; -o-background-size: 100%; -webkit-background-size: 100%; background-size: 100%; display: block; float: left; width: 90px; height: 25px; } 10 | .jasmine_html-reporter .banner .version { margin-left: 14px; position: relative; top: 6px; } 11 | .jasmine_html-reporter .banner .duration { position: absolute; right: 14px; top: 6px; } 12 | .jasmine_html-reporter #jasmine_content { position: fixed; right: 100%; } 13 | .jasmine_html-reporter .version { color: #aaa; } 14 | .jasmine_html-reporter .banner { margin-top: 14px; } 15 | .jasmine_html-reporter .duration { color: #aaa; float: right; } 16 | .jasmine_html-reporter .symbol-summary { overflow: hidden; *zoom: 1; margin: 14px 0; } 17 | .jasmine_html-reporter .symbol-summary li { display: inline-block; height: 8px; width: 14px; font-size: 16px; } 18 | .jasmine_html-reporter .symbol-summary li.passed { font-size: 14px; } 19 | .jasmine_html-reporter .symbol-summary li.passed:before { color: #007069; content: "\02022"; } 20 | .jasmine_html-reporter .symbol-summary li.failed { line-height: 9px; } 21 | .jasmine_html-reporter .symbol-summary li.failed:before { color: #ca3a11; content: "\d7"; font-weight: bold; margin-left: -1px; } 22 | .jasmine_html-reporter .symbol-summary li.disabled { font-size: 14px; } 23 | .jasmine_html-reporter .symbol-summary li.disabled:before { color: #bababa; content: "\02022"; } 24 | .jasmine_html-reporter .symbol-summary li.pending { line-height: 17px; } 25 | .jasmine_html-reporter .symbol-summary li.pending:before { color: #ba9d37; content: "*"; } 26 | .jasmine_html-reporter .symbol-summary li.empty { font-size: 14px; } 27 | .jasmine_html-reporter .symbol-summary li.empty:before { color: #ba9d37; content: "\02022"; } 28 | .jasmine_html-reporter .exceptions { color: #fff; float: right; margin-top: 5px; margin-right: 5px; } 29 | .jasmine_html-reporter .bar { line-height: 28px; font-size: 14px; display: block; color: #eee; } 30 | .jasmine_html-reporter .bar.failed { background-color: #ca3a11; } 31 | .jasmine_html-reporter .bar.passed { background-color: #007069; } 32 | .jasmine_html-reporter .bar.skipped { background-color: #bababa; } 33 | .jasmine_html-reporter .bar.errored { background-color: #ca3a11; } 34 | .jasmine_html-reporter .bar.menu { background-color: #fff; color: #aaa; } 35 | .jasmine_html-reporter .bar.menu a { color: #333; } 36 | .jasmine_html-reporter .bar a { color: white; } 37 | .jasmine_html-reporter.spec-list .bar.menu.failure-list, .jasmine_html-reporter.spec-list .results .failures { display: none; } 38 | .jasmine_html-reporter.failure-list .bar.menu.spec-list, .jasmine_html-reporter.failure-list .summary { display: none; } 39 | .jasmine_html-reporter .running-alert { background-color: #666; } 40 | .jasmine_html-reporter .results { margin-top: 14px; } 41 | .jasmine_html-reporter.showDetails .summaryMenuItem { font-weight: normal; text-decoration: inherit; } 42 | .jasmine_html-reporter.showDetails .summaryMenuItem:hover { text-decoration: underline; } 43 | .jasmine_html-reporter.showDetails .detailsMenuItem { font-weight: bold; text-decoration: underline; } 44 | .jasmine_html-reporter.showDetails .summary { display: none; } 45 | .jasmine_html-reporter.showDetails #details { display: block; } 46 | .jasmine_html-reporter .summaryMenuItem { font-weight: bold; text-decoration: underline; } 47 | .jasmine_html-reporter .summary { margin-top: 14px; } 48 | .jasmine_html-reporter .summary ul { list-style-type: none; margin-left: 14px; padding-top: 0; padding-left: 0; } 49 | .jasmine_html-reporter .summary ul.suite { margin-top: 7px; margin-bottom: 7px; } 50 | .jasmine_html-reporter .summary li.passed a { color: #007069; } 51 | .jasmine_html-reporter .summary li.failed a { color: #ca3a11; } 52 | .jasmine_html-reporter .summary li.empty a { color: #ba9d37; } 53 | .jasmine_html-reporter .summary li.pending a { color: #ba9d37; } 54 | .jasmine_html-reporter .description + .suite { margin-top: 0; } 55 | .jasmine_html-reporter .suite { margin-top: 14px; } 56 | .jasmine_html-reporter .suite a { color: #333; } 57 | .jasmine_html-reporter .failures .spec-detail { margin-bottom: 28px; } 58 | .jasmine_html-reporter .failures .spec-detail .description { background-color: #ca3a11; } 59 | .jasmine_html-reporter .failures .spec-detail .description a { color: white; } 60 | .jasmine_html-reporter .result-message { padding-top: 14px; color: #333; white-space: pre; } 61 | .jasmine_html-reporter .result-message span.result { display: block; } 62 | .jasmine_html-reporter .stack-trace { margin: 5px 0 0 0; max-height: 224px; overflow: auto; line-height: 18px; color: #666; border: 1px solid #ddd; background: white; white-space: pre; } 63 | -------------------------------------------------------------------------------- /app/vendor/magnific-popup/magnific-popup.css: -------------------------------------------------------------------------------- 1 | /* Magnific Popup CSS */ 2 | .mfp-bg { 3 | top: 0; 4 | left: 0; 5 | width: 100%; 6 | height: 100%; 7 | z-index: 1042; 8 | overflow: hidden; 9 | position: fixed; 10 | background: #0b0b0b; 11 | opacity: 0.8; } 12 | 13 | .mfp-wrap { 14 | top: 0; 15 | left: 0; 16 | width: 100%; 17 | height: 100%; 18 | z-index: 1043; 19 | position: fixed; 20 | outline: none !important; 21 | -webkit-backface-visibility: hidden; } 22 | 23 | .mfp-container { 24 | text-align: center; 25 | position: absolute; 26 | width: 100%; 27 | height: 100%; 28 | left: 0; 29 | top: 0; 30 | padding: 0 8px; 31 | box-sizing: border-box; } 32 | 33 | .mfp-container:before { 34 | content: ''; 35 | display: inline-block; 36 | height: 100%; 37 | vertical-align: middle; } 38 | 39 | .mfp-align-top .mfp-container:before { 40 | display: none; } 41 | 42 | .mfp-content { 43 | position: relative; 44 | display: inline-block; 45 | vertical-align: middle; 46 | margin: 0 auto; 47 | text-align: left; 48 | z-index: 1045; } 49 | 50 | .mfp-inline-holder .mfp-content, 51 | .mfp-ajax-holder .mfp-content { 52 | width: 100%; 53 | cursor: auto; } 54 | 55 | .mfp-ajax-cur { 56 | cursor: progress; } 57 | 58 | .mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close { 59 | cursor: -moz-zoom-out; 60 | cursor: -webkit-zoom-out; 61 | cursor: zoom-out; } 62 | 63 | .mfp-zoom { 64 | cursor: pointer; 65 | cursor: -webkit-zoom-in; 66 | cursor: -moz-zoom-in; 67 | cursor: zoom-in; } 68 | 69 | .mfp-auto-cursor .mfp-content { 70 | cursor: auto; } 71 | 72 | .mfp-close, 73 | .mfp-arrow, 74 | .mfp-preloader, 75 | .mfp-counter { 76 | -webkit-user-select: none; 77 | -moz-user-select: none; 78 | user-select: none; } 79 | 80 | .mfp-loading.mfp-figure { 81 | display: none; } 82 | 83 | .mfp-hide { 84 | display: none !important; } 85 | 86 | .mfp-preloader { 87 | color: #CCC; 88 | position: absolute; 89 | top: 50%; 90 | width: auto; 91 | text-align: center; 92 | margin-top: -0.8em; 93 | left: 8px; 94 | right: 8px; 95 | z-index: 1044; } 96 | .mfp-preloader a { 97 | color: #CCC; } 98 | .mfp-preloader a:hover { 99 | color: #FFF; } 100 | 101 | .mfp-s-ready .mfp-preloader { 102 | display: none; } 103 | 104 | .mfp-s-error .mfp-content { 105 | display: none; } 106 | 107 | button.mfp-close, 108 | button.mfp-arrow { 109 | overflow: visible; 110 | cursor: pointer; 111 | background: transparent; 112 | border: 0; 113 | -webkit-appearance: none; 114 | display: block; 115 | outline: none; 116 | padding: 0; 117 | z-index: 1046; 118 | box-shadow: none; 119 | touch-action: manipulation; } 120 | 121 | button::-moz-focus-inner { 122 | padding: 0; 123 | border: 0; } 124 | 125 | .mfp-close { 126 | width: 44px; 127 | height: 44px; 128 | line-height: 44px; 129 | position: absolute; 130 | right: 0; 131 | top: 0; 132 | text-decoration: none; 133 | text-align: center; 134 | opacity: 0.65; 135 | padding: 0 0 18px 10px; 136 | color: #FFF; 137 | font-style: normal; 138 | font-size: 28px; 139 | font-family: Arial, Baskerville, monospace; } 140 | .mfp-close:hover, 141 | .mfp-close:focus { 142 | opacity: 1; } 143 | .mfp-close:active { 144 | top: 1px; } 145 | 146 | .mfp-close-btn-in .mfp-close { 147 | color: #333; } 148 | 149 | .mfp-image-holder .mfp-close, 150 | .mfp-iframe-holder .mfp-close { 151 | color: #FFF; 152 | right: -6px; 153 | text-align: right; 154 | padding-right: 6px; 155 | width: 100%; } 156 | 157 | .mfp-counter { 158 | position: absolute; 159 | top: 0; 160 | right: 0; 161 | color: #CCC; 162 | font-size: 12px; 163 | line-height: 18px; 164 | white-space: nowrap; } 165 | 166 | .mfp-arrow { 167 | position: absolute; 168 | opacity: 0.65; 169 | margin: 0; 170 | top: 50%; 171 | margin-top: -55px; 172 | padding: 0; 173 | width: 90px; 174 | height: 110px; 175 | -webkit-tap-highlight-color: transparent; } 176 | .mfp-arrow:active { 177 | margin-top: -54px; } 178 | .mfp-arrow:hover, 179 | .mfp-arrow:focus { 180 | opacity: 1; } 181 | .mfp-arrow:before, 182 | .mfp-arrow:after { 183 | content: ''; 184 | display: block; 185 | width: 0; 186 | height: 0; 187 | position: absolute; 188 | left: 0; 189 | top: 0; 190 | margin-top: 35px; 191 | margin-left: 35px; 192 | border: medium inset transparent; } 193 | .mfp-arrow:after { 194 | border-top-width: 13px; 195 | border-bottom-width: 13px; 196 | top: 8px; } 197 | .mfp-arrow:before { 198 | border-top-width: 21px; 199 | border-bottom-width: 21px; 200 | opacity: 0.7; } 201 | 202 | .mfp-arrow-left { 203 | left: 0; } 204 | .mfp-arrow-left:after { 205 | border-right: 17px solid #FFF; 206 | margin-left: 31px; } 207 | .mfp-arrow-left:before { 208 | margin-left: 25px; 209 | border-right: 27px solid #3F3F3F; } 210 | 211 | .mfp-arrow-right { 212 | right: 0; } 213 | .mfp-arrow-right:after { 214 | border-left: 17px solid #FFF; 215 | margin-left: 39px; } 216 | .mfp-arrow-right:before { 217 | border-left: 27px solid #3F3F3F; } 218 | 219 | .mfp-iframe-holder { 220 | padding-top: 40px; 221 | padding-bottom: 40px; } 222 | .mfp-iframe-holder .mfp-content { 223 | line-height: 0; 224 | width: 100%; 225 | max-width: 900px; } 226 | .mfp-iframe-holder .mfp-close { 227 | top: -40px; } 228 | 229 | .mfp-iframe-scaler { 230 | width: 100%; 231 | height: 0; 232 | overflow: hidden; 233 | padding-top: 56.25%; } 234 | .mfp-iframe-scaler iframe { 235 | position: absolute; 236 | display: block; 237 | top: 0; 238 | left: 0; 239 | width: 100%; 240 | height: 100%; 241 | box-shadow: 0 0 8px rgba(0, 0, 0, 0.6); 242 | background: #000; } 243 | 244 | /* Main image in popup */ 245 | img.mfp-img { 246 | width: auto; 247 | max-width: 100%; 248 | height: auto; 249 | display: block; 250 | line-height: 0; 251 | box-sizing: border-box; 252 | padding: 40px 0 40px; 253 | margin: 0 auto; } 254 | 255 | /* The shadow behind the image */ 256 | .mfp-figure { 257 | line-height: 0; } 258 | .mfp-figure:after { 259 | content: ''; 260 | position: absolute; 261 | left: 0; 262 | top: 40px; 263 | bottom: 40px; 264 | display: block; 265 | right: 0; 266 | width: auto; 267 | height: auto; 268 | z-index: -1; 269 | box-shadow: 0 0 8px rgba(0, 0, 0, 0.6); 270 | background: #444; } 271 | .mfp-figure small { 272 | color: #BDBDBD; 273 | display: block; 274 | font-size: 12px; 275 | line-height: 14px; } 276 | .mfp-figure figure { 277 | margin: 0; } 278 | 279 | .mfp-bottom-bar { 280 | margin-top: -36px; 281 | position: absolute; 282 | top: 100%; 283 | left: 0; 284 | width: 100%; 285 | cursor: auto; } 286 | 287 | .mfp-title { 288 | text-align: left; 289 | line-height: 18px; 290 | color: #F3F3F3; 291 | word-wrap: break-word; 292 | padding-right: 36px; } 293 | 294 | .mfp-image-holder .mfp-content { 295 | max-width: 100%; } 296 | 297 | .mfp-gallery .mfp-image-holder .mfp-figure { 298 | cursor: pointer; } 299 | 300 | @media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) { 301 | /** 302 | * Remove all paddings around the image on small screen 303 | */ 304 | .mfp-img-mobile .mfp-image-holder { 305 | padding-left: 0; 306 | padding-right: 0; } 307 | .mfp-img-mobile img.mfp-img { 308 | padding: 0; } 309 | .mfp-img-mobile .mfp-figure:after { 310 | top: 0; 311 | bottom: 0; } 312 | .mfp-img-mobile .mfp-figure small { 313 | display: inline; 314 | margin-left: 5px; } 315 | .mfp-img-mobile .mfp-bottom-bar { 316 | background: rgba(0, 0, 0, 0.6); 317 | bottom: 0; 318 | margin: 0; 319 | top: auto; 320 | padding: 3px 5px; 321 | position: fixed; 322 | box-sizing: border-box; } 323 | .mfp-img-mobile .mfp-bottom-bar:empty { 324 | padding: 0; } 325 | .mfp-img-mobile .mfp-counter { 326 | right: 5px; 327 | top: 3px; } 328 | .mfp-img-mobile .mfp-close { 329 | top: 0; 330 | right: 0; 331 | width: 35px; 332 | height: 35px; 333 | line-height: 35px; 334 | background: rgba(0, 0, 0, 0.6); 335 | position: fixed; 336 | text-align: center; 337 | padding: 0; } } 338 | 339 | @media all and (max-width: 900px) { 340 | .mfp-arrow { 341 | -webkit-transform: scale(0.75); 342 | transform: scale(0.75); } 343 | .mfp-arrow-left { 344 | -webkit-transform-origin: 0; 345 | transform-origin: 0; } 346 | .mfp-arrow-right { 347 | -webkit-transform-origin: 100%; 348 | transform-origin: 100%; } 349 | .mfp-container { 350 | padding-left: 6px; 351 | padding-right: 6px; } } 352 | -------------------------------------------------------------------------------- /app/vendor/montserrat/Montserrat-Bold.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apancik/plain-email/935c3933804111fb9297dbeb1b4559539254b375/app/vendor/montserrat/Montserrat-Bold.otf -------------------------------------------------------------------------------- /app/vendor/montserrat/Montserrat-Regular.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apancik/plain-email/935c3933804111fb9297dbeb1b4559539254b375/app/vendor/montserrat/Montserrat-Regular.otf -------------------------------------------------------------------------------- /app/vendor/montserrat/SIL Open Font License.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011-2012, Julieta Ulanovsky (julieta.ulanovsky@gmail.com), with Reserved Font Names 'Montserrat' 2 | This Font Software is licensed under the SIL Open Font License, Version 1.1. 3 | This license is copied below, and is also available with a FAQ at: 4 | http://scripts.sil.org/OFL 5 | 6 | This Font Software is licensed under the SIL Open Font License, Version 1.1. 7 | This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL 8 | 9 | ----------------------------------------------------------- 10 | SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 11 | ----------------------------------------------------------- 12 | 13 | PREAMBLE 14 | The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others. 15 | 16 | The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives. 17 | 18 | DEFINITIONS 19 | "Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation. 20 | 21 | "Reserved Font Name" refers to any names specified as such after the copyright statement(s). 22 | 23 | "Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s). 24 | 25 | "Modified Version" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment. 26 | 27 | "Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software. 28 | 29 | PERMISSION & CONDITIONS 30 | Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions: 31 | 32 | 1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself. 33 | 34 | 2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user. 35 | 36 | 3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users. 37 | 38 | 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission. 39 | 40 | 5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software. 41 | 42 | TERMINATION 43 | This license becomes null and void if any of the above conditions are not met. 44 | 45 | DISCLAIMER 46 | THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. -------------------------------------------------------------------------------- /app/vendor/normalize/normalize.css: -------------------------------------------------------------------------------- 1 | /*! normalize.css v3.0.2 | MIT License | git.io/normalize */ 2 | 3 | /** 4 | * 1. Set default font family to sans-serif. 5 | * 2. Prevent iOS text size adjust after orientation change, without disabling 6 | * user zoom. 7 | */ 8 | 9 | html { 10 | font-family: sans-serif; /* 1 */ 11 | -ms-text-size-adjust: 100%; /* 2 */ 12 | -webkit-text-size-adjust: 100%; /* 2 */ 13 | } 14 | 15 | /** 16 | * Remove default margin. 17 | */ 18 | 19 | body { 20 | margin: 0; 21 | } 22 | 23 | /* HTML5 display definitions 24 | ========================================================================== */ 25 | 26 | /** 27 | * Correct `block` display not defined for any HTML5 element in IE 8/9. 28 | * Correct `block` display not defined for `details` or `summary` in IE 10/11 29 | * and Firefox. 30 | * Correct `block` display not defined for `main` in IE 11. 31 | */ 32 | 33 | article, 34 | aside, 35 | details, 36 | figcaption, 37 | figure, 38 | footer, 39 | header, 40 | hgroup, 41 | main, 42 | menu, 43 | nav, 44 | section, 45 | summary { 46 | display: block; 47 | } 48 | 49 | /** 50 | * 1. Correct `inline-block` display not defined in IE 8/9. 51 | * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera. 52 | */ 53 | 54 | audio, 55 | canvas, 56 | progress, 57 | video { 58 | display: inline-block; /* 1 */ 59 | vertical-align: baseline; /* 2 */ 60 | } 61 | 62 | /** 63 | * Prevent modern browsers from displaying `audio` without controls. 64 | * Remove excess height in iOS 5 devices. 65 | */ 66 | 67 | audio:not([controls]) { 68 | display: none; 69 | height: 0; 70 | } 71 | 72 | /** 73 | * Address `[hidden]` styling not present in IE 8/9/10. 74 | * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22. 75 | */ 76 | 77 | [hidden], 78 | template { 79 | display: none; 80 | } 81 | 82 | /* Links 83 | ========================================================================== */ 84 | 85 | /** 86 | * Remove the gray background color from active links in IE 10. 87 | */ 88 | 89 | a { 90 | background-color: transparent; 91 | } 92 | 93 | /** 94 | * Improve readability when focused and also mouse hovered in all browsers. 95 | */ 96 | 97 | a:active, 98 | a:hover { 99 | outline: 0; 100 | } 101 | 102 | /* Text-level semantics 103 | ========================================================================== */ 104 | 105 | /** 106 | * Address styling not present in IE 8/9/10/11, Safari, and Chrome. 107 | */ 108 | 109 | abbr[title] { 110 | border-bottom: 1px dotted; 111 | } 112 | 113 | /** 114 | * Address style set to `bolder` in Firefox 4+, Safari, and Chrome. 115 | */ 116 | 117 | b, 118 | strong { 119 | font-weight: bold; 120 | } 121 | 122 | /** 123 | * Address styling not present in Safari and Chrome. 124 | */ 125 | 126 | dfn { 127 | font-style: italic; 128 | } 129 | 130 | /** 131 | * Address variable `h1` font-size and margin within `section` and `article` 132 | * contexts in Firefox 4+, Safari, and Chrome. 133 | */ 134 | 135 | h1 { 136 | font-size: 2em; 137 | margin: 0.67em 0; 138 | } 139 | 140 | /** 141 | * Address styling not present in IE 8/9. 142 | */ 143 | 144 | mark { 145 | background: #ff0; 146 | color: #000; 147 | } 148 | 149 | /** 150 | * Address inconsistent and variable font size in all browsers. 151 | */ 152 | 153 | small { 154 | font-size: 80%; 155 | } 156 | 157 | /** 158 | * Prevent `sub` and `sup` affecting `line-height` in all browsers. 159 | */ 160 | 161 | sub, 162 | sup { 163 | font-size: 75%; 164 | line-height: 0; 165 | position: relative; 166 | vertical-align: baseline; 167 | } 168 | 169 | sup { 170 | top: -0.5em; 171 | } 172 | 173 | sub { 174 | bottom: -0.25em; 175 | } 176 | 177 | /* Embedded content 178 | ========================================================================== */ 179 | 180 | /** 181 | * Remove border when inside `a` element in IE 8/9/10. 182 | */ 183 | 184 | img { 185 | border: 0; 186 | } 187 | 188 | /** 189 | * Correct overflow not hidden in IE 9/10/11. 190 | */ 191 | 192 | svg:not(:root) { 193 | overflow: hidden; 194 | } 195 | 196 | /* Grouping content 197 | ========================================================================== */ 198 | 199 | /** 200 | * Address margin not present in IE 8/9 and Safari. 201 | */ 202 | 203 | figure { 204 | margin: 1em 40px; 205 | } 206 | 207 | /** 208 | * Address differences between Firefox and other browsers. 209 | */ 210 | 211 | hr { 212 | -moz-box-sizing: content-box; 213 | box-sizing: content-box; 214 | height: 0; 215 | } 216 | 217 | /** 218 | * Contain overflow in all browsers. 219 | */ 220 | 221 | pre { 222 | overflow: auto; 223 | } 224 | 225 | /** 226 | * Address odd `em`-unit font size rendering in all browsers. 227 | */ 228 | 229 | code, 230 | kbd, 231 | pre, 232 | samp { 233 | font-family: monospace, monospace; 234 | font-size: 1em; 235 | } 236 | 237 | /* Forms 238 | ========================================================================== */ 239 | 240 | /** 241 | * Known limitation: by default, Chrome and Safari on OS X allow very limited 242 | * styling of `select`, unless a `border` property is set. 243 | */ 244 | 245 | /** 246 | * 1. Correct color not being inherited. 247 | * Known issue: affects color of disabled elements. 248 | * 2. Correct font properties not being inherited. 249 | * 3. Address margins set differently in Firefox 4+, Safari, and Chrome. 250 | */ 251 | 252 | button, 253 | input, 254 | optgroup, 255 | select, 256 | textarea { 257 | color: inherit; /* 1 */ 258 | font: inherit; /* 2 */ 259 | margin: 0; /* 3 */ 260 | } 261 | 262 | /** 263 | * Address `overflow` set to `hidden` in IE 8/9/10/11. 264 | */ 265 | 266 | button { 267 | overflow: visible; 268 | } 269 | 270 | /** 271 | * Address inconsistent `text-transform` inheritance for `button` and `select`. 272 | * All other form control elements do not inherit `text-transform` values. 273 | * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera. 274 | * Correct `select` style inheritance in Firefox. 275 | */ 276 | 277 | button, 278 | select { 279 | text-transform: none; 280 | } 281 | 282 | /** 283 | * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` 284 | * and `video` controls. 285 | * 2. Correct inability to style clickable `input` types in iOS. 286 | * 3. Improve usability and consistency of cursor style between image-type 287 | * `input` and others. 288 | */ 289 | 290 | button, 291 | html input[type="button"], /* 1 */ 292 | input[type="reset"], 293 | input[type="submit"] { 294 | -webkit-appearance: button; /* 2 */ 295 | cursor: pointer; /* 3 */ 296 | } 297 | 298 | /** 299 | * Re-set default cursor for disabled elements. 300 | */ 301 | 302 | button[disabled], 303 | html input[disabled] { 304 | cursor: default; 305 | } 306 | 307 | /** 308 | * Remove inner padding and border in Firefox 4+. 309 | */ 310 | 311 | button::-moz-focus-inner, 312 | input::-moz-focus-inner { 313 | border: 0; 314 | padding: 0; 315 | } 316 | 317 | /** 318 | * Address Firefox 4+ setting `line-height` on `input` using `!important` in 319 | * the UA stylesheet. 320 | */ 321 | 322 | input { 323 | line-height: normal; 324 | } 325 | 326 | /** 327 | * It's recommended that you don't attempt to style these elements. 328 | * Firefox's implementation doesn't respect box-sizing, padding, or width. 329 | * 330 | * 1. Address box sizing set to `content-box` in IE 8/9/10. 331 | * 2. Remove excess padding in IE 8/9/10. 332 | */ 333 | 334 | input[type="checkbox"], 335 | input[type="radio"] { 336 | box-sizing: border-box; /* 1 */ 337 | padding: 0; /* 2 */ 338 | } 339 | 340 | /** 341 | * Fix the cursor style for Chrome's increment/decrement buttons. For certain 342 | * `font-size` values of the `input`, it causes the cursor style of the 343 | * decrement button to change from `default` to `text`. 344 | */ 345 | 346 | input[type="number"]::-webkit-inner-spin-button, 347 | input[type="number"]::-webkit-outer-spin-button { 348 | height: auto; 349 | } 350 | 351 | /** 352 | * 1. Address `appearance` set to `searchfield` in Safari and Chrome. 353 | * 2. Address `box-sizing` set to `border-box` in Safari and Chrome 354 | * (include `-moz` to future-proof). 355 | */ 356 | 357 | input[type="search"] { 358 | -webkit-appearance: textfield; /* 1 */ 359 | -moz-box-sizing: content-box; 360 | -webkit-box-sizing: content-box; /* 2 */ 361 | box-sizing: content-box; 362 | } 363 | 364 | /** 365 | * Remove inner padding and search cancel button in Safari and Chrome on OS X. 366 | * Safari (but not Chrome) clips the cancel button when the search input has 367 | * padding (and `textfield` appearance). 368 | */ 369 | 370 | input[type="search"]::-webkit-search-cancel-button, 371 | input[type="search"]::-webkit-search-decoration { 372 | -webkit-appearance: none; 373 | } 374 | 375 | /** 376 | * Define consistent border, margin, and padding. 377 | */ 378 | 379 | fieldset { 380 | border: 1px solid #c0c0c0; 381 | margin: 0 2px; 382 | padding: 0.35em 0.625em 0.75em; 383 | } 384 | 385 | /** 386 | * 1. Correct `color` not being inherited in IE 8/9/10/11. 387 | * 2. Remove padding so people aren't caught out if they zero out fieldsets. 388 | */ 389 | 390 | legend { 391 | border: 0; /* 1 */ 392 | padding: 0; /* 2 */ 393 | } 394 | 395 | /** 396 | * Remove default vertical scrollbar in IE 8/9/10/11. 397 | */ 398 | 399 | textarea { 400 | overflow: auto; 401 | } 402 | 403 | /** 404 | * Don't inherit the `font-weight` (applied by a rule above). 405 | * NOTE: the default cannot safely be changed in Chrome and Safari on OS X. 406 | */ 407 | 408 | optgroup { 409 | font-weight: bold; 410 | } 411 | 412 | /* Tables 413 | ========================================================================== */ 414 | 415 | /** 416 | * Remove most spacing between table cells. 417 | */ 418 | 419 | table { 420 | border-collapse: collapse; 421 | border-spacing: 0; 422 | } 423 | 424 | td, 425 | th { 426 | padding: 0; 427 | } 428 | -------------------------------------------------------------------------------- /app/vendor/playfair-display/Playfair Display 700.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apancik/plain-email/935c3933804111fb9297dbeb1b4559539254b375/app/vendor/playfair-display/Playfair Display 700.ttf -------------------------------------------------------------------------------- /app/vendor/playfair-display/Playfair Display 700italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apancik/plain-email/935c3933804111fb9297dbeb1b4559539254b375/app/vendor/playfair-display/Playfair Display 700italic.ttf -------------------------------------------------------------------------------- /app/vendor/playfair-display/Playfair Display 900.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apancik/plain-email/935c3933804111fb9297dbeb1b4559539254b375/app/vendor/playfair-display/Playfair Display 900.ttf -------------------------------------------------------------------------------- /app/vendor/playfair-display/Playfair Display 900italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apancik/plain-email/935c3933804111fb9297dbeb1b4559539254b375/app/vendor/playfair-display/Playfair Display 900italic.ttf -------------------------------------------------------------------------------- /app/vendor/playfair-display/Playfair Display italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apancik/plain-email/935c3933804111fb9297dbeb1b4559539254b375/app/vendor/playfair-display/Playfair Display italic.ttf -------------------------------------------------------------------------------- /app/vendor/playfair-display/Playfair Display regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apancik/plain-email/935c3933804111fb9297dbeb1b4559539254b375/app/vendor/playfair-display/Playfair Display regular.ttf -------------------------------------------------------------------------------- /app/vendor/playfair-display/SIL Open Font License.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010-2012 by Claus Eggers Sørensen (es@forthehearts.net), with Reserved Font Name 'Playfair' 2 | This Font Software is licensed under the SIL Open Font License, Version 1.1. 3 | This license is copied below, and is also available with a FAQ at: 4 | http://scripts.sil.org/OFL 5 | 6 | This Font Software is licensed under the SIL Open Font License, Version 1.1. 7 | This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL 8 | 9 | ----------------------------------------------------------- 10 | SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 11 | ----------------------------------------------------------- 12 | 13 | PREAMBLE 14 | The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others. 15 | 16 | The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives. 17 | 18 | DEFINITIONS 19 | "Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation. 20 | 21 | "Reserved Font Name" refers to any names specified as such after the copyright statement(s). 22 | 23 | "Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s). 24 | 25 | "Modified Version" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment. 26 | 27 | "Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software. 28 | 29 | PERMISSION & CONDITIONS 30 | Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions: 31 | 32 | 1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself. 33 | 34 | 2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user. 35 | 36 | 3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users. 37 | 38 | 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission. 39 | 40 | 5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software. 41 | 42 | TERMINATION 43 | This license becomes null and void if any of the above conditions are not met. 44 | 45 | DISCLAIMER 46 | THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. -------------------------------------------------------------------------------- /app/vendor/tagit/.githooks/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cd "$(dirname "$0")" 3 | cd ../.git/hooks 4 | ln -s ../../.githooks/pre-commit . 5 | ln -s ../../.githooks/post-commit . 6 | 7 | -------------------------------------------------------------------------------- /app/vendor/tagit/.githooks/post-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ -a .commit ]; then 4 | rm .commit 5 | git add js/tag-it.min.js 6 | git commit --amend -C HEAD --no-verify -q 7 | fi 8 | 9 | make gh-pages 10 | 11 | -------------------------------------------------------------------------------- /app/vendor/tagit/.githooks/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | make 4 | 5 | touch .commit 6 | 7 | -------------------------------------------------------------------------------- /app/vendor/tagit/.gitignore: -------------------------------------------------------------------------------- 1 | *.swm 2 | *.swn 3 | *.swo 4 | *.swp 5 | .DS_Store 6 | -------------------------------------------------------------------------------- /app/vendor/tagit/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011 Levy Carneiro Jr. 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /app/vendor/tagit/Makefile: -------------------------------------------------------------------------------- 1 | JS=./js/tag-it.js 2 | MINIFIED_OUTPUT=./js/tag-it.min.js 3 | 4 | build: 5 | @echo 6 | @echo "Compiling JS..." 7 | @curl --progress-bar -f -d compilation_level=SIMPLE_OPTIMIZATIONS -d output_format=text -d output_info=compiled_code --data-urlencode "js_code@${JS}" https://closure-compiler.appspot.com/compile -o ${MINIFIED_OUTPUT} 8 | 9 | gh-pages: 10 | @echo "Updating GitHub pages..." 11 | @if git checkout gh-pages -q; then \ 12 | git merge master -Xtheirs && \ 13 | git checkout master -q; \ 14 | fi 15 | 16 | .PHONY: gh-pages 17 | 18 | -------------------------------------------------------------------------------- /app/vendor/tagit/README.markdown: -------------------------------------------------------------------------------- 1 | # Tag-it: a jQuery UI plugin 2 | 3 | Tag-it is a simple and configurable tag editing widget with autocomplete support. 4 | 5 | [Homepage](http://aehlke.github.com/tag-it/) 6 | 7 | ## Demo 8 | 9 | ![Screenshot](http://aehlke.github.com/tag-it/_static/screenshot.png) 10 | 11 | Check the [examples.html](http://aehlke.github.com/tag-it/examples.html) for several demos and the [prototype.js](http://aehlke.github.com/tag-it/prototype.js) file for a JavaScript prototype with all options and events. 12 | 13 | ## Usage 14 | 15 | First, load [jQuery](http://jquery.com/) (v1.4 or greater), [jQuery UI](http://jqueryui.com/) (v1.8 or greater), and the plugin: 16 | 17 | 18 | 19 | 20 | 21 | If you're using a custom jQuery UI build, it must contain the Core, Widget, Position, and Autocomplete components. The Effects Core with "Blind" and "Highlight" Effect components are optional, but used if available. 22 | 23 | The plugin requires either a jQuery UI theme or a Tag-it theme to be present, as well as its own included base CSS file ([jquery.tagit.css](http://github.com/aehlke/tag-it/raw/master/css/jquery.tagit.css)). Here we use the Flick theme as an example: 24 | 25 | 26 | 27 | 28 | Now, let's attach it to an existing `