added notifications and signed posts to board

master
Kevin Froman 2019-08-31 19:13:59 -05:00
parent 2cb36875d2
commit 17d345824e
33 changed files with 1078 additions and 17 deletions

View File

@ -63,5 +63,5 @@ class ClientAPISecurity:
if request.endpoint == 'siteapi.site':
resp.headers['Content-Security-Policy'] = "default-src 'none'; style-src data: 'unsafe-inline'; img-src data:"
else:
resp.headers['Content-Security-Policy'] = "default-src 'none'; script-src 'self'; object-src 'none'; style-src 'self'; img-src 'self'; media-src 'none'; frame-src 'none'; font-src 'self'; connect-src 'self'"
resp.headers['Content-Security-Policy'] = "default-src 'none'; script-src 'self'; object-src 'none'; style-src 'self' 'unsafe-inline'; img-src 'self'; media-src 'none'; frame-src 'none'; font-src 'self'; connect-src 'self'"
return resp

View File

@ -1,3 +1,22 @@
/*
Onionr - Private P2P Communication
This file handles the boards/circles interface
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
requested = []
var windowHeight = window.innerHeight;
@ -113,9 +132,14 @@ newPostForm.onsubmit = function(){
.then(function(data) {
newPostForm.style.display = 'block'
if (data == 'failure due to duplicate insert'){
alert('This message is already queued')
PNotify.error({
text: "This message is already queued"
})
return
}
PNotify.success({
text: "Message queued for posting"
})
setTimeout(function(){getBlocks()}, 3000)
})
return false

View File

@ -9,9 +9,12 @@
Circles
</title>
<link rel='shortcut icon' type='image/ico' href='/shared/images/favicon.ico'>
<link rel='stylesheet' href='/shared/main/PNotifyBrightTheme.css'>
<link rel='stylesheet' href='/shared/main/bulma.min.css'>
<link rel="stylesheet" href="/shared/main/styles-new.css">
<link rel="stylesheet" href='/shared/main/styles-new.css'>
<link rel="stylesheet" href="theme.css">
<script defer src='/shared/node_modules/pnotify/dist/iife/PNotify.js'></script>
<script defer src='/shared/node_modules/pnotify/dist/iife/PNotifyButtons.js'></script>
<script defer src='/shared/navbar.js'></script>
<script defer src='/shared/misc.js'></script>
<script defer src='board.js'></script>

View File

@ -8,9 +8,17 @@
Onionr Mail
</title>
<link rel='shortcut icon' type='image/ico' href='/shared/images/favicon.ico'>
<link rel="stylesheet" href="/shared/fontawesome-free-5.10.2/css/all.min.css">
<link rel='stylesheet' href="/shared/main/PNotifyBrightTheme.css">
<link rel="stylesheet" href="/shared/main/bulma.min.css">
<link rel="stylesheet" href="/shared/main/styles-new.css">
<link rel="stylesheet" href="/mail/mail.css">
<script defer src='/shared/node_modules/pnotify/dist/iife/PNotify.js'></script>
<script defer src='/shared/node_modules/pnotify/dist/iife/PNotifyButtons.js'></script>
<script defer src='/shared/navbar.js'></script>
<script defer src='/shared/misc.js'></script>
<script defer src='/mail/mail.js'></script>
<script defer src='/mail/sendmail.js'></script>
</head>
<body>
@ -63,7 +71,7 @@
<input id="myPub" class="input myPub" type="text" readonly>
</p>
<p class="control">
<a id="myPubCopy" class="button is-primary">Copy</a>
<a id="myPubCopy" class="button is-primary"><i class="fas fa-copy"></i></a>
</p>
</div>
</div>
@ -108,12 +116,12 @@
<div id='sendMessage' class='overlay'>
<div class='overlayContent'>
<div class="field">
<label>Select friend: <select id='friendSelect'></select></label>
<label><i class="fas fa-user"></i> Select friend: <select id='friendSelect'></select></label>
</div>
<form method='post' action='' id='sendForm' enctype="application/x-www-form-urlencoded">
<span class='closeOverlay' overlay='sendMessage'></span>
<div class="field">
To: <input id='draftID' type='text' name='to' placeholder='pubkey' required>
To: <input id='draftID' type='text' name='to' placeholder='pubkey or select above' required>
</div>
Subject: <input name='subject' id='draftSubject' maxlength=25 type='text'
placeholder='message subject'>
@ -130,7 +138,7 @@
<ul>
<li class="is-active">
<a>
<span>Inbox</span>
<span id="inboxTab">Inbox</span>
</a>
</li>
<li>
@ -145,6 +153,7 @@
</li>
</ul>
</div>
<div class='content' id='noInbox'>No messages to show ¯\_(ツ)_/¯</div>
<div class='content'>
<div class='mailPing'>
API server either shutdown, has disabled mail, or has experienced a bug.
@ -157,10 +166,6 @@
<div id="infoOverlay" class='overlay'>
</div>
<script src='/shared/navbar.js'></script>
<script src='/shared/misc.js'></script>
<script src='/mail/mail.js'></script>
<script src='/mail/sendmail.js'></script>
</body>
</html>

View File

@ -25,6 +25,7 @@ tabBtns = document.getElementById('tabBtns')
threadContent = {}
replyBtn = document.getElementById('replyBtn')
addUnknownContact = document.getElementById('addUnknownContact')
noInbox = document.getElementById('noInbox')
function addContact(pubkey, friendName){
fetch('/friends/add/' + pubkey, {
@ -106,6 +107,7 @@ function openThread(bHash, sender, date, sigBool, pubkey, subjectLine){
function setActiveTab(tabName){
threadPart.innerHTML = ""
noInbox.style.display = 'none'
window.inboxActive = false
switch(tabName){
case 'inbox':
@ -118,7 +120,7 @@ function setActiveTab(tabName){
break
case 'compose':
overlay('sendMessage')
setActiveTab('inbox')
document.getElementById('inboxTab').click()
break
}
}
@ -235,7 +237,7 @@ function getInbox(){
for(var i = 0; i < pms.length; i++) {
var add = true
if (pms[i].trim().length == 0){
threadPart.innerText = 'No messages to show ¯\\_(ツ)_/¯'
noInbox.style.display = 'block'
continue
}
else{
@ -322,9 +324,6 @@ function showSentboxWindow(to, content){
}
function refreshPms(callNext){
if (threadPart.innerText.includes("¯\\_(ツ)_/¯")){
threadPart.innerText = ""
}
if (! window.inboxActive){
return
}
@ -335,6 +334,9 @@ fetch('/mail/getinbox', {
.then((resp) => resp.text()) // Transform the data into json
.then(function(data) {
pms = data.split(',').reverse()
if (pms.length > 0){
noInbox.style.display = 'none'
}
if (callNext){
getInbox()
}

View File

@ -19,6 +19,7 @@
<script defer src='/shared/configeditor.js'></script>
<script defer src='/shared/sites.js'></script>
<script defer src='/private/js/console.js'></script>
<script>alert("Content security policy appears to not be working. Your browser security is weak!")</script>
</head>
<body>
@ -160,7 +161,8 @@
Last Received: <span id='lastIncoming'>None since start</span>
</div>
<div class="column">
⬇️ Total Requests: <span id='totalRec'>None since start</span>
<i class="fas fa-arrow-down"></i>
Total Requests: <span id='totalRec'>None since start</span>
</div>
</div>
<i class="fas fa-link"></i>

View File

@ -0,0 +1 @@
[ui-pnotify].ui-pnotify .brighttheme{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}[ui-pnotify].ui-pnotify .brighttheme.ui-pnotify-container{padding:1.3rem}[ui-pnotify].ui-pnotify-with-icon .brighttheme .ui-pnotify-confirm,[ui-pnotify].ui-pnotify-with-icon .brighttheme .ui-pnotify-text,[ui-pnotify].ui-pnotify-with-icon .brighttheme .ui-pnotify-title{margin-left:1.8rem}[dir=rtl] [ui-pnotify].ui-pnotify-with-icon .brighttheme .ui-pnotify-confirm,[dir=rtl] [ui-pnotify].ui-pnotify-with-icon .brighttheme .ui-pnotify-text,[dir=rtl] [ui-pnotify].ui-pnotify-with-icon .brighttheme .ui-pnotify-title{margin-right:1.8rem;margin-left:0}[ui-pnotify].ui-pnotify .brighttheme .ui-pnotify-title{font-size:1.2rem;line-height:1.4rem;margin-top:-.2rem;margin-bottom:1rem}[ui-pnotify].ui-pnotify .brighttheme .ui-pnotify-text{font-size:1rem;line-height:1.2rem;margin-top:0}[ui-pnotify].ui-pnotify .brighttheme .ui-pnotify-icon{line-height:1}[ui-pnotify].ui-pnotify .brighttheme-notice{background-color:#ffffa2;border:0 solid #ff0}[ui-pnotify].ui-pnotify .brighttheme-notice div,[ui-pnotify].ui-pnotify .brighttheme-notice h4{color:#4f4f00}[ui-pnotify].ui-pnotify .brighttheme-info{background-color:#8fcedd;border:0 solid #0286a5}[ui-pnotify].ui-pnotify .brighttheme-info div,[ui-pnotify].ui-pnotify .brighttheme-info h4{color:#012831}[ui-pnotify].ui-pnotify .brighttheme-success{background-color:#aff29a;border:0 solid #35db00}[ui-pnotify].ui-pnotify .brighttheme-success div,[ui-pnotify].ui-pnotify .brighttheme-success h4{color:#104300}[ui-pnotify].ui-pnotify .brighttheme-error{background-color:#ffaba2;background-image:repeating-linear-gradient(135deg,transparent,transparent 35px,rgba(255,255,255,.3) 35px,rgba(255,255,255,.3) 70px);border:0 solid #ff1800}[ui-pnotify].ui-pnotify .brighttheme-error div,[ui-pnotify].ui-pnotify .brighttheme-error h4{color:#4f0800}[ui-pnotify].ui-pnotify .brighttheme .ui-pnotify-closer,[ui-pnotify].ui-pnotify .brighttheme .ui-pnotify-sticker{font-size:1rem;line-height:1.2rem}[ui-pnotify].ui-pnotify .brighttheme-icon-closer,[ui-pnotify].ui-pnotify .brighttheme-icon-error,[ui-pnotify].ui-pnotify .brighttheme-icon-info,[ui-pnotify].ui-pnotify .brighttheme-icon-notice,[ui-pnotify].ui-pnotify .brighttheme-icon-sticker,[ui-pnotify].ui-pnotify .brighttheme-icon-success{position:relative;width:1rem;height:1rem;font-size:1rem;font-weight:700;line-height:1rem;font-family:"Courier New",Courier,monospace;border-radius:50%}[ui-pnotify].ui-pnotify .brighttheme-icon-closer:after,[ui-pnotify].ui-pnotify .brighttheme-icon-info:after,[ui-pnotify].ui-pnotify .brighttheme-icon-notice:after,[ui-pnotify].ui-pnotify .brighttheme-icon-sticker:after,[ui-pnotify].ui-pnotify .brighttheme-icon-success:after{position:absolute;top:0;left:.2rem}[ui-pnotify].ui-pnotify .brighttheme-icon-notice{background-color:#2e2e00;color:#ffffa2}[ui-pnotify].ui-pnotify .brighttheme-icon-notice:after{content:"!"}[ui-pnotify].ui-pnotify .brighttheme-icon-info{background-color:#012831;color:#8fcedd}[ui-pnotify].ui-pnotify .brighttheme-icon-info:after{content:"i"}[ui-pnotify].ui-pnotify .brighttheme-icon-success{background-color:#104300;color:#aff29a}[ui-pnotify].ui-pnotify .brighttheme-icon-success:after{content:"\002713"}[ui-pnotify].ui-pnotify .brighttheme-icon-error{width:0;height:0;font-size:0;line-height:0;border-radius:0;border-left:.6rem solid transparent;border-right:.6rem solid transparent;border-bottom:1.2rem solid #2e0400;color:#ffaba2}[ui-pnotify].ui-pnotify .brighttheme-icon-error:after{position:absolute;top:.1rem;left:-.25rem;font-size:.9rem;font-weight:700;line-height:1.4rem;font-family:"Courier New",Courier,monospace;content:"!"}[ui-pnotify].ui-pnotify .brighttheme-icon-closer,[ui-pnotify].ui-pnotify .brighttheme-icon-sticker{display:inline-block}[ui-pnotify].ui-pnotify .brighttheme-icon-closer:after{content:"\002715"}[ui-pnotify].ui-pnotify .brighttheme-icon-sticker:after{top:-1px;content:"\002016"}[ui-pnotify].ui-pnotify .brighttheme-icon-sticker.brighttheme-icon-stuck:after{content:"\00003E"}[ui-pnotify].ui-pnotify .brighttheme .ui-pnotify-confirm{margin-top:1rem}[ui-pnotify].ui-pnotify .brighttheme .ui-pnotify-prompt-bar{margin-bottom:1rem}[ui-pnotify].ui-pnotify .brighttheme .ui-pnotify-action-button{text-transform:uppercase;font-weight:700;padding:.4rem 1rem;border:none;background:0 0;cursor:pointer}[ui-pnotify].ui-pnotify .brighttheme-notice .ui-pnotify-action-button.brighttheme-primary{background-color:#ff0;color:#4f4f00}[ui-pnotify].ui-pnotify .brighttheme-info .ui-pnotify-action-button.brighttheme-primary{background-color:#0286a5;color:#012831}[ui-pnotify].ui-pnotify .brighttheme-success .ui-pnotify-action-button.brighttheme-primary{background-color:#35db00;color:#104300}[ui-pnotify].ui-pnotify .brighttheme-error .ui-pnotify-action-button.brighttheme-primary{background-color:#ff1800;color:#4f0800}

View File

@ -0,0 +1,202 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

View File

@ -0,0 +1,786 @@
[![npm version](https://badge.fury.io/js/pnotify.svg)](https://www.npmjs.com/package/pnotify) [![Waffle.io - Columns and their card count](https://badge.waffle.io/sciactive/pnotify.svg?columns=all)](https://waffle.io/sciactive/pnotify) [![jsDelivr Hits](https://data.jsdelivr.com/v1/package/npm/pnotify/badge?style=rounded)](https://www.jsdelivr.com/package/npm/pnotify)
PNotify is a vanilla JavaScript notification and [confirmation/prompt](http://sciactive.com/pnotify/#confirm-module) library. PNotify can provide [desktop notifications](http://sciactive.com/pnotify/#web-notifications) based on the [Web Notifications spec](http://www.w3.org/TR/notifications/) with fall back to an in-browser notice.
<h1>Demos</h1>
* http://sciactive.com/pnotify/ for the latest release
* https://sciactive.github.io/pnotify/ for what's in development
<h1>Table of Contents</h1>
<!-- TOC START min:1 max:3 link:true asterisk:false update:true -->
- [Getting Started](#getting-started)
- [Migrating from PNotify 3](#migrating-from-pnotify-3)
- [Installation](#installation)
- [Svelte](#svelte)
- [React](#react)
- [Angular](#angular)
- [Angular (Injectable)](#angular-injectable)
- [AngularJS](#angularjs)
- [Vanilla JS (ES5)](#vanilla-js-es5)
- [Vanilla JS (ES6)](#vanilla-js-es6)
- [Styles](#styles)
- [Bright Theme](#bright-theme)
- [Material](#material)
- [Material Icons](#material-icons)
- [Bootstrap](#bootstrap)
- [Font Awesome (Icons)](#font-awesome-icons)
- [Creating Notices](#creating-notices)
- [Options](#options)
- [Changing Defaults](#changing-defaults)
- [Module Options](#module-options)
- [Desktop Module](#desktop-module)
- [Buttons Module](#buttons-module)
- [NonBlock Module](#nonblock-module)
- [Mobile Module](#mobile-module)
- [Animate Module](#animate-module)
- [Confirm Module](#confirm-module)
- [History Module](#history-module)
- [Callbacks Module](#callbacks-module)
- [Static Methods and Properties](#static-methods-and-properties)
- [Instance Methods and Properties](#instance-methods-and-properties)
- [From the Svelte Component API](#from-the-svelte-component-api)
- [Events](#events)
- [Stacks](#stacks)
- [Example Stack](#example-stack)
- [Features](#features)
- [Licensing and Additional Info](#licensing-and-additional-info)
<!-- TOC END -->
# Getting Started
You can get PNotify using NPM. (You can also use [jsDelivr](https://www.jsdelivr.com/package/npm/pnotify) or [UNPKG](https://unpkg.com/pnotify/).)
```sh
npm install --save pnotify
# If you plan to use Material style:
npm install --save material-design-icons
# If you plan to use the Animate module:
npm install --save animate.css
# If you plan to use the NonBlock module:
npm install --save nonblockjs
```
Inside the pnotify module directory:
* `src` Svelte components and uncompressed Bright Theme CSS.
* `lib/es` uncompressed ECMAScript modules.
* `lib/umd` uncompressed UMD modules.
* `lib/iife` uncompressed IIFE scripts.
* `dist` compressed Bright Theme CSS.
* `dist/es` compressed ECMAScript modules.
* `dist/umd` compressed UMD modules.liz
* `dist/iife` compressed IIFE scripts.
## [Migrating from PNotify 3](MIGRATING.md)
# Installation
In addition to the JS, be sure to [include a PNotify style](#styles).
## Svelte
[PNotify in Svelte](https://codesandbox.io/s/nwoxqkvw6m). Import the Svelte files from `src`:
```js
import PNotify from 'pnotify/src/PNotify.html';
import PNotifyButtons from 'pnotify/src/PNotifyButtons.html';
PNotify.alert('Notice me, senpai!');
```
## React
[PNotify in React](https://codesandbox.io/s/wwqzk8472w). Import the ES modules from `dist`:
```js
import PNotify from 'pnotify/dist/es/PNotify';
import PNotifyButtons from 'pnotify/dist/es/PNotifyButtons';
PNotify.alert('Notice me, senpai!');
```
## Angular
[PNotify in Angular](https://codesandbox.io/s/l3pzkl64yq). Import the ES modules from `dist` and initiate the modules:
```ts
import PNotify from 'pnotify/dist/es/PNotify';
import PNotifyButtons from 'pnotify/dist/es/PNotifyButtons';
//...
export class WhateverComponent {
constructor() {
PNotifyButtons; // Initiate the module. Important!
PNotify.alert('Notice me, senpai!');
}
}
```
<small>For IE support, see [this issue](https://github.com/sciactive/pnotify/issues/343).</small>
## Angular (Injectable)
[PNotify in Angular](https://codesandbox.io/s/17yr520yj) as an injectable service:
```ts
// pnotify.service.ts
import { Injectable } from '@angular/core';
import PNotify from 'pnotify/dist/es/PNotify';
import PNotifyButtons from 'pnotify/dist/es/PNotifyButtons';
@Injectable()
export class PNotifyService {
getPNotify() {
PNotifyButtons; // Initiate the module. Important!
return PNotify;
}
}
// whatever.module.ts
//...
import { PNotifyService } from './pnotify.service';
@NgModule({
declarations: [...],
imports: [...],
providers: [PNotifyService],
bootstrap: [...]
})
export class WhateverModule {}
// whatever.component.ts
import { PNotifyService } from './pnotify.service';
//...
export class WhateverComponent {
pnotify = undefined;
constructor(pnotifyService: PNotifyService) {
this.pnotify = pnotifyService.getPNotify();
this.pnotify.alert('Notice me, senpai!');
}
}
```
## AngularJS
[PNotify in AngularJS](https://codesandbox.io/s/o5mp55p2p9). Import the UMD modules from `dist`:
```js
var angular = require('angular');
var PNotify = require('pnotify/dist/umd/PNotify');
var PNotifyButtons = require('pnotify/dist/umd/PNotifyButtons');
angular.module('WhateverModule', [])
.value('PNotify', PNotify)
.controller('WhateverController', ['PNotify', function(PNotify) {
PNotify.alert('Notice me, senpai!');
}]);
```
## Vanilla JS (ES5)
PNotify in vanilla ECMAScript 5. Include the IIFE scripts from `dist`:
```html
<script type="text/javascript" src="node_modules/pnotify/dist/iife/PNotify.js"></script>
<script type="text/javascript" src="node_modules/pnotify/dist/iife/PNotifyButtons.js"></script>
<script type="text/javascript">
PNotify.alert('Notice me, senpai!');
</script>
```
## Vanilla JS (ES6)
PNotify in vanilla ECMAScript 6+. Include the ES modules from `dist`:
```js
import PNotify from 'node_modules/pnotify/dist/es/PNotify.js';
import PNotifyButtons from 'node_modules/pnotify/dist/es/PNotifyButtons.js';
PNotify.alert('Notice me, senpai!');
```
# Styles
## Bright Theme
The default, standalone theme, Bright Theme. Include the CSS file in your page:
```html
<link href="node_modules/pnotify/dist/PNotifyBrightTheme.css" rel="stylesheet" type="text/css" />
```
## Material
The Material Style module. Requires [material-design-icons](https://www.npmjs.com/package/material-design-icons). Include the module in your JS, and set it as the default:
```js
import PNotifyStyleMaterial from 'pnotify/dist/es/PNotifyStyleMaterial.js';
// or
var PNotifyStyleMaterial = require('pnotify/dist/umd/PNotifyStyleMaterial.js');
// Set default styling.
PNotify.defaults.styling = 'material';
// This icon setting requires the Material Icons font. (See below.)
PNotify.defaults.icons = 'material';
```
### Material Icons
To use the Material Style icons, include the Material Design Icons Font in your page.
```sh
# The official Google package:
npm install --save material-design-icons
# OR, An unofficial package that only includes the font:
npm install --save material-design-icon-fonts
```
```html
<link rel="stylesheet" href="node_modules/material-design-icons/iconfont/material-icons.css" />
```
Alternatively, you can use the Google Fonts CDN:
```html
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Material+Icons" />
```
## Bootstrap
To set Bootstrap as the default style, include the appropriate line(s) from below after you import PNotify:
```js
PNotify.defaults.styling = 'bootstrap3'; // Bootstrap version 3
PNotify.defaults.icons = 'bootstrap3'; // glyphicons
// or
PNotify.defaults.styling = 'bootstrap4'; // Bootstrap version 4
```
## Font Awesome (Icons)
To set Font Awesome as the default icons, include the appropriate line from below after you import PNotify:
```js
PNotify.defaults.icons = 'fontawesome4'; // Font Awesome 4
// or
PNotify.defaults.icons = 'fontawesome5'; // Font Awesome 5
```
# Creating Notices
To make a notice, use the helper functions:
```js
// Manually set the type.
PNotify.alert({
text: "I'm an alert.",
type: 'notice'
});
// Automatically set the type.
PNotify.notice({
text: "I'm a notice."
});
PNotify.info({
text: "I'm an info message."
});
PNotify.success({
text: "I'm a success message."
});
PNotify.error({
text: "I'm an error message."
});
```
Or you can manually create a new notice with Svelte's component API (if you know what you're doing):
```js
new PNotify({
target: document.body,
data: {
text: "I'm an alert.",
type: 'notice'
}
});
```
# Options
PNotify options and default values.
`PNotify.defaults = {`
* `title: false`<br>
The notice's title.
* `titleTrusted: false`<br>
Whether to trust the title or escape its contents. (Not allow HTML.)
* `text: false`<br>
The notice's text.
* `textTrusted: false`<br>
Whether to trust the text or escape its contents. (Not allow HTML.)
* `styling: 'brighttheme'`<br>
What styling classes to use. (Can be 'brighttheme', 'bootstrap3', 'bootstrap4', or a styling object. See the source in PNotifyStyleMaterial.html for the properties in a style object.)
* `icons: 'brighttheme'`<br>
What icons classes to use (Can be 'brighttheme', 'bootstrap3', 'fontawesome4', 'fontawesome5', or an icon object. See the source in PNotifyStyleMaterial.html for the properties in an icon object.)
* `addClass: ''`<br>
Additional classes to be added to the notice. (For custom styling.)
* `cornerClass: ''`<br>
Class to be added to the notice for corner styling.
* `autoDisplay: true`<br>
Display the notice when it is created. Turn this off to add notifications to the history without displaying them.
* `width: '360px'`<br>
Width of the notice.
* `minHeight: '16px'`<br>
Minimum height of the notice. It will expand to fit content.
* `type: 'notice'`<br>
Type of the notice. 'notice', 'info', 'success', or 'error'.
* `icon: true`<br>
Set icon to true to use the default icon for the selected style/type, false for no icon, or a string for your own icon class.
* `animation: 'fade'`<br>
The animation to use when displaying and hiding the notice. 'none' and 'fade' are supported through CSS. Others are supported through the Animate module and Animate.css.
* `animateSpeed: 'normal'`<br>
Speed at which the notice animates in and out. 'slow', 'normal', or 'fast'. Respectively, 400ms, 250ms, 100ms.
* `shadow: true`<br>
Display a drop shadow.
* `hide: true`<br>
After a delay, close the notice.
* `delay: 8000`<br>
Delay in milliseconds before the notice is closed.
* `mouseReset: true`<br>
Reset the hide timer if the mouse moves over the notice.
* `remove: true`<br>
Remove the notice's elements from the DOM after it is closed.
* `destroy: true`<br>
Whether to remove the notice from the global array when it is closed.
* `stack: PNotify.defaultStack`<br>
The stack on which the notices will be placed. Also controls the direction the notices stack.
* `modules: {}`<br>
This is where options for modules should be defined.
`}`
```js
PNotify.defaultStack = {
dir1: 'down',
dir2: 'left',
firstpos1: 25,
firstpos2: 25,
spacing1: 36,
spacing2: 36,
push: 'bottom',
context: document.body
}
```
[Learn more about stacks.](#Stacks)
## Changing Defaults
```js
PNotify.defaults.width = '400px';
```
Changing a default for modules can be done in a couple ways.
```js
// This will change the default for every notice, and is the recommended way.
PNotify.modules.History.defaults.maxInStack = 10;
// This will change the default only for notices that don't have a `modules` option.
PNotify.defaults.modules = {
History: {
maxInStack: 10
}
};
```
# Module Options
## Desktop Module
`Desktop: {`
* `desktop: false`<br>
Display the notification as a desktop notification.
* `fallback: true`<br>
If desktop notifications are not supported or allowed, fall back to a regular notice.
* `icon: null`<br>
The URL of the icon to display. If false, no icon will show. If null, a default icon will show.
* `tag: null`<br>
Using a tag lets you update an existing notice, or keep from duplicating notices between tabs. If you leave tag null, one will be generated, facilitating the `update` function.
* `title: null`<br>
Optionally display a different title for the desktop.
* `text: null`<br>
Optionally display different text for the desktop.
* `options: {}`<br>
Any additional options to be passed to the Notification constructor.
`}`
## Buttons Module
`Buttons: {`
* `closer: true`<br>
Provide a button for the user to manually close the notice.
* `closerHover: true`<br>
Only show the closer button on hover.
* `sticker: true`<br>
Provide a button for the user to manually stick the notice.
* `stickerHover: true`<br>
Only show the sticker button on hover.
* `labels: {close: 'Close', stick: 'Stick', unstick: 'Unstick'}`<br>
Lets you change the displayed text, facilitating internationalization.
* `classes: {closer: null, pinUp: null, pinDown: null}`<br>
The classes to use for button icons. Leave them null to use the classes from the styling you're using.
`}`
> :information_source: In v4, it's no longer possible to show closer/sticker buttons when the notice is nonblocking.
## NonBlock Module
Requires [NonBlock.js](https://github.com/sciactive/nonblockjs) 1.0.8 or higher.
**It is also deprecated and unnecessary in v4.** All it does is add the 'nonblock' class to your notice. You can do the same yourself with `addClass: 'nonblock'`.
`NonBlock: {`
* `nonblock: false`<br>
Use NonBlock.js to create a non-blocking notice. It lets the user click elements underneath it.
`}`
## Mobile Module
`Mobile: {`
* `swipeDismiss: true`<br>
Let the user swipe the notice away.
* `styling: true`<br>
Styles the notice to look good on mobile.
`}`
## Animate Module
Requires [Animate.css](https://daneden.github.io/animate.css/).
`Animate: {`
* `animate: false`<br>
Use animate.css to animate the notice.
* `inClass: ''`<br>
The class to use to animate the notice in.
* `outClass: ''`<br>
The class to use to animate the notice out.
`}`
The Animate module also creates a method, `attention`, on notices which accepts an attention grabber class and an animation completed callback.
## Confirm Module
`Confirm: {`
* `confirm: false`<br>
Make a confirmation box.
* `focus: null`<br>
For confirmation boxes, true means the first button or the button with promptTrigger will be focused, and null means focus will change only for modal notices. For prompts, true or null means focus the prompt. When false, focus will not change.
* `prompt: false`<br>
Make a prompt.
* `promptClass: ''`<br>
Classes to add to the input element of the prompt.
* `promptValue: ''`<br>
The value of the prompt. (Note that this is two-way bound to the input.)
* `promptMultiLine: false`<br>
Whether the prompt should accept multiple lines of text.
* `align: 'right'`<br>
Where to align the buttons. (right, center, left, justify)
```js
buttons: [
{
text: 'Ok',
textTrusted: false,
addClass: '',
primary: true,
// Whether to trigger this button when the user hits enter in a single line
// prompt. Also, focus the button if it is a modal prompt.
promptTrigger: true,
click: (notice, value) => {
notice.close();
notice.fire('pnotify.confirm', {notice, value});
}
},
{
text: 'Cancel',
textTrusted: false,
addClass: '',
click: (notice) => {
notice.close();
notice.fire('pnotify.cancel', {notice});
}
}
]
```
* The buttons to display, and their callbacks. If a button has promptTrigger set to true, it will be triggered when the user hits enter in a prompt (unless they hold shift).
`}`
Because the default buttons fire notice events on confirmation and cancellation, you can listen for them like this:
```js
const notice = PNotify.alert({
title: 'Confirmation Needed',
text: 'Are you sure?',
hide: false,
modules: {
Confirm: {
confirm: true
}
}
});
notice.on('pnotify.confirm', () => {
// User confirmed, continue here...
});
notice.on('pnotify.cancel', () => {
// User canceled, continue here...
});
```
## History Module
`History: {`
* `history: true`<br>
Place the notice in the history.
* `maxInStack: Infinity`<br>
Maximum number of notices to have open in its stack.
`}`
The History module also has two methods:
* `PNotify.modules.History.showLast(stack)`<br>
Reopen the last closed notice from a stack that was placed in the history. If no stack is provided, it will use the default stack.
* `PNotify.modules.History.showAll(stack)`<br>
Reopen all notices from a stack that were placed in the history. If no stack is provided, it will also use the default stack. If stack is `true`, it will reopen all notices from every stack.
> :information_source: In v4, the History module can no longer make a dropdown for you. But hey, it's smaller now.
## Callbacks Module
The callback options all expect the value to be a callback function. If the function returns false on the `beforeOpen` or `beforeClose` callback, that event will be canceled. `beforeInit` and `afterInit` will only work for notices created with the helper functions.
`Callbacks: {`
* `beforeInit`<br>
Called before the notice has been initialized. Given one argument, the options object.
* `afterInit`<br>
Called after the notice has been initialized. Given one argument, the notice object.
* `beforeOpen`<br>
Called before the notice opens. Given one argument, the notice object.
* `afterOpen`<br>
Called after the notice opens. Given one argument, the notice object.
* `beforeClose`<br>
Called before the notice closes. Given one argument, the notice object.
* `afterClose`<br>
Called after the notice closes. Given one argument, the notice object.
`}`
# Static Methods and Properties
* `PNotify.alert(options)`<br>
Create a notice.
* `PNotify.notice(options)`<br>
Create a notice with 'notice' type.
* `PNotify.info(options)`<br>
Create a notice with 'info' type.
* `PNotify.success(options)`<br>
Create a notice with 'success' type.
* `PNotify.error(options)`<br>
Create a notice with 'error' type.
* `PNotify.closeAll()`<br>
Close all notices.
* `PNotify.removeAll()`<br>
Alias for closeAll(). (Deprecated)
* `PNotify.closeStack(stack)`<br>
Close all the notices in a stack.
* `PNotify.removeStack(stack)`<br>
Alias for closeStack(stack). (Deprecated)
* `PNotify.positionAll()`<br>
Reposition all notices.
* `PNotify.VERSION`<br>
PNotify version number.
* `PNotify.defaults`<br>
Defaults for options.
* `PNotify.defaultStack`<br>
The default stack object.
* `PNotify.notices`<br>
An array of all active notices.
* `PNotify.modules`<br>
This object holds all the PNotify modules.
* `PNotify.styling`<br>
Styling objects.
# Instance Methods and Properties
* `notice.open()`<br>
Open the notice.
* `notice.close()`<br>
Close the notice.
* `notice.remove()`<br>
Alias for close(). (Deprecated)
* `notice.update(options)`<br>
Update the notice with new options.
* `notice.addModuleClass(...classNames)`<br>
This is for modules to add classes to the notice.
* `notice.removeModuleClass(...classNames)`<br>
This is for modules to remove classes from the notice.
* `notice.hasModuleClass(...classNames)`<br>
This is for modules to test classes on the notice.
* `notice.refs.elem`<br>
The notice's DOM element.
* `notice.refs.container`<br>
The notice container DOM element.
* `notice.refs.titleContainer`<br>
The title container DOM element.
* `notice.refs.textContainer`<br>
The text container DOM element.
* `notice.refs.iconContainer`<br>
The icon container DOM element.
## From the [Svelte Component API](https://svelte.technology/guide#component-api)
* `notice.get(option)`<br>
Get the value of an option.
* `notice.set(options)`<br>
You probably want to use `update(options)` instead. It has some special PNotify secret sauce to make sure your notice doesn't break.
* `notice.observe(key, callback[, options])`<br>
Observe an option. See the Svelte docs for more info.
* `notice.destroy()`<br>
Removes the component from the DOM and any observers/event listeners. You probably want to use `close()` instead. It will animate the notice out and you can open it again. Once you destroy it, you can't open it again.
## Events
* `notice.on(eventName, callback)`<br>
Assign a callback to an event. Callback receives an `event` argument.
* `notice.fire(eventName, event)`<br>
Fire an event.
# Stacks
A stack is an object used to determine where to position notices.
Stack properties:
* `dir1`<br>
The primary stacking direction. Can be `'up'`, `'down'`, `'right'`, or `'left'`.
* `firstpos1`<br>
Number of pixels from the edge of the context, relative to `dir1`, the first notice will appear. If undefined, the current position of the notice, whatever that is, will be used.
* `spacing1`<br>
Number of pixels between notices along `dir1`. If undefined, `25` will be used.
* `dir2`<br>
The secondary stacking direction. Should be a perpendicular direction to `dir1`. The notices will continue in this direction when they reach the edge of the viewport along `dir1`.
* `firstpos2`<br>
Number of pixels from the edge of the context, relative to `dir2`, the first notice will appear. If undefined, the current position of the notice, whatever that is, will be used.
* `spacing2`<br>
Number of pixels between notices along `dir2`. If undefined, `25` will be used.
* `push`<br>
Where, in the stack, to push new notices. Can be `'top'` or `'bottom'`.
* `modal`<br>
Whether to create a modal overlay when this stack's notices are open.
* `overlayClose`<br>
Whether clicking on the modal overlay should close the stack's notices.
* `context`<br>
The DOM element this stack's notices should appear in. If undefined, `document.body` will be used.
Stack behavior:
* If there is no `dir1` property, the notice will be centered in the context.
* If there is a `dir1` and no `dir2`, the notices will be centered along the axis of `dir1`.
* The `firstpos*` values are relative to an edge determined by the corresponding `dir*` value.
* `dirX === 'up'` means `firstposX` is relative to the **bottom** edge.
* `dirX === 'down'` means `firstposX` is relative to the **top** edge.
* `dirX === 'left'` means `firstposX` is relative to the **right** edge.
* `dirX === 'right'` means `firstposX` is relative to the **left** edge.
* Stacks are independent of each other, so a stack doesn't know and doesn't care if it overlaps (and blocks) another stack.
* Stack objects are used and manipulated by PNotify, and therefore, should be a variable when passed.
> :warning: Calling something like `PNotify.alert({text: 'notice', stack: {dir1: 'down', firstpos1: 25}});` may not do what you want. It will create a notice, but that notice will be in its own stack and will overlap other notices.
## Example Stack
Here is an example stack with comments to explain. You can play with it [here](https://codesandbox.io/s/2po6zq9yrr).
```js
const stackBottomModal = {
dir1: 'up', // With a dir1 of 'up', the stacks will start appearing at the bottom.
// Without a `dir2`, this stack will be horizontally centered, since the `dir1` axis is vertical.
firstpos1: 25, // The notices will appear 25 pixels from the bottom of the context.
// Without a `spacing1`, this stack's notices will be placed 25 pixels apart.
push: 'top', // Each new notice will appear at the bottom of the screen, which is where the 'top' of the stack is. Other notices will be pushed up.
modal: true, // When a notice appears in this stack, a modal overlay will be created.
overlayClose: true, // When the user clicks on the overlay, all notices in this stack will be closed.
context: document.getElementById('page-container') // The notices will be placed in the 'page-container' element.
};
```
If you just want to position a single notice programmatically, and don't want to add any other notices into the stack, you can use something like this:
```js
PNotify.alert({
text: "Notice that's positioned in its own stack.",
stack: {
dir1: 'down', dir2: 'right', // Position from the top left corner.
firstpos1: 90, firstpos2: 90 // 90px from the top, 90px from the left.
}
});
```
# Features
* Rich graphical features and effects.
* Material, Bootstrap 3/4, Font Awesome 4/5, or the stand-alone theme, Bright Theme.
* Mobile styling and swipe support.
* Timed hiding.
* Slick animations with Animate.css.
* Attention getters with Animate.css.
* Highly customizable UI.
* Sticky notices.
* Optional close and stick buttons.
* Non-blocking notices for less intrusive use.
* Notification types: notice, info, success, and error.
* Stacks allow notices to position together or independently.
* Control stack direction and push to top or bottom.
* Modal notices.
* Confirm dialogs, alert buttons, and prompts.
* RTL language support.
* Feature rich API.
* Desktop notifications based on the Web Notifications standard.
* Dynamically update existing notices.
* Put forms and other HTML in notices.
* By default, escapes text to prevent XSS attack.
* Callbacks for lifespan events.
* Notice history for reshowing old notices.
* Universally compatible.
* Works with any frontend library (React, Angular, Svelte, Vue, Ember, etc.).
* Works well with bundlers (Webpack, Rollup, etc.).
* No dependencies for most features.
# Licensing and Additional Info
Copyright 2009-2019 Hunter Perrin
Copyright 2015 Google, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
See http://sciactive.com/pnotify/ for more information, and demos.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,2 @@
var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},PNotifyCallbacks=function(a){"use strict";function f(t,e,n){var r=t?t.get().modules:e.modules,o=r&&r.Callbacks?r.Callbacks:{};return o[n]?o[n]:function(){return!0}}var r=(a=a&&a.__esModule?a.default:a).prototype.open,o=a.prototype.close;function t(t){!function(t,e){t._handlers=n(),t._slots=n(),t._bind=e._bind,t._staged={},t.options=e,t.root=e.root||t,t.store=e.store||t.root.store,e.root||(t._beforecreate=[],t._oncreate=[],t._aftercreate=[])}(this,t),this._state=i({},t.data),this._intro=!0,this._fragment=(this._state,{c:e,m:e,p:e,d:e}),t.target&&(this._fragment.c(),this._mount(t.target,t.anchor))}function e(){}function i(t,e){for(var n in e)t[n]=e[n];return t}function n(){return Object.create(null)}function s(t){for(;t&&t.length;)t.shift()()}return a.prototype.open=function(){if(!1!==f(this,null,"beforeOpen")(this)){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];r.apply(this,e),f(this,null,"afterOpen")(this)}},a.prototype.close=function(t){if(!1!==f(this,null,"beforeClose")(this,t)){for(var e=arguments.length,n=Array(1<e?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];o.apply(this,[t].concat(n)),f(this,null,"afterClose")(this,t)}},i(t.prototype,{destroy:function(t){this.destroy=e,this.fire("destroy"),this.set=e,this._fragment.d(!1!==t),this._fragment=null,this._state={}},get:function(){return this._state},fire:function(t,e){var n=t in this._handlers&&this._handlers[t].slice();if(!n)return;for(var r=0;r<n.length;r+=1){var o=n[r];if(!o.__calling)try{o.__calling=!0,o.call(this,e)}finally{o.__calling=!1}}},on:function(t,e){var n=this._handlers[t]||(this._handlers[t]=[]);return n.push(e),{cancel:function(){var t=n.indexOf(e);~t&&n.splice(t,1)}}},set:function(t){if(this._set(i({},t)),this.root._lock)return;!function(t){t._lock=!0,s(t._beforecreate),s(t._oncreate),s(t._aftercreate),t._lock=!1}(this.root)},_set:function(t){var e=this._state,n={},r=!1;for(var o in t=i(this._staged,t),this._staged={},t)this._differs(t[o],e[o])&&(n[o]=r=!0);if(!r)return;this._state=i(i({},e),t),this._recompute(n,this._state),this._bind&&this._bind(n,this._state);this._fragment&&(this.fire("state",{changed:n,current:this._state,previous:e}),this._fragment.p(n,this._state),this.fire("update",{changed:n,current:this._state,previous:e}))},_stage:function(t){i(this._staged,t)},_mount:function(t,e){this._fragment[this._fragment.i?"i":"m"](t,e||null)},_differs:function(t,e){return t!=t?e==e:t!==e||t&&"object"===(void 0===t?"undefined":_typeof(t))||"function"==typeof t}}),t.prototype._recompute=e,function(t){function e(t,e){f(null,e,"beforeInit")(e);var n=t(e);return f(n,null,"afterInit")(n),n}t.key="Callbacks",t.getCallbacks=f;var n=a.alert,r=a.notice,o=a.info,i=a.success,s=a.error;a.alert=function(t){return e(n,t)},a.notice=function(t){return e(r,t)},a.info=function(t){return e(o,t)},a.success=function(t){return e(i,t)},a.error=function(t){return e(s,t)},a.modules.Callbacks=t}(t),t}(PNotify);
//# sourceMappingURL=PNotifyCallbacks.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,2 @@
var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},PNotifyHistory=function(c){"use strict";c=c&&c.__esModule?c.default:c;var e,t={initModule:function(t){if(this.set(t),this.get().history){var e=this.get()._notice;e.get().destroy&&e.set({destroy:!1})}},beforeOpen:function(){var t=this.get(),e=t.maxInStack,n=t._options;if(e!==1/0){var o=n.stack;if(!1!==o&&c.notices&&c.notices.length>e){for(var i="top"===o.push,s=[],r=0,a=i?0:c.notices.length-1;i?a<c.notices.length:0<=a;i?a++:a--)-1!==["opening","open"].indexOf(c.notices[a].get()._state)&&c.notices[a].get().stack===o&&(e<=r?s.push(c.notices[a]):r++);for(var f=0;f<s.length;f++)s[f].close(!1)}}}};function n(t){!function(t,e){t._handlers=i(),t._slots=i(),t._bind=e._bind,t._staged={},t.options=e,t.root=e.root||t,t.store=e.store||t.root.store,e.root||(t._beforecreate=[],t._oncreate=[],t._aftercreate=[])}(this,t),this._state=s(_extends({_notice:null,_options:{}},c.modules.History.defaults),t.data),this._intro=!0,this._fragment=(this._state,{c:o,m:o,p:o,d:o}),t.target&&(this._fragment.c(),this._mount(t.target,t.anchor))}function o(){}function s(t,e){for(var n in e)t[n]=e[n];return t}function i(){return Object.create(null)}function r(t){for(;t&&t.length;)t.shift()()}return s(n.prototype,{destroy:function(t){this.destroy=o,this.fire("destroy"),this.set=o,this._fragment.d(!1!==t),this._fragment=null,this._state={}},get:function(){return this._state},fire:function(t,e){var n=t in this._handlers&&this._handlers[t].slice();if(!n)return;for(var o=0;o<n.length;o+=1){var i=n[o];if(!i.__calling)try{i.__calling=!0,i.call(this,e)}finally{i.__calling=!1}}},on:function(t,e){var n=this._handlers[t]||(this._handlers[t]=[]);return n.push(e),{cancel:function(){var t=n.indexOf(e);~t&&n.splice(t,1)}}},set:function(t){if(this._set(s({},t)),this.root._lock)return;!function(t){t._lock=!0,r(t._beforecreate),r(t._oncreate),r(t._aftercreate),t._lock=!1}(this.root)},_set:function(t){var e=this._state,n={},o=!1;for(var i in t=s(this._staged,t),this._staged={},t)this._differs(t[i],e[i])&&(n[i]=o=!0);if(!o)return;this._state=s(s({},e),t),this._recompute(n,this._state),this._bind&&this._bind(n,this._state);this._fragment&&(this.fire("state",{changed:n,current:this._state,previous:e}),this._fragment.p(n,this._state),this.fire("update",{changed:n,current:this._state,previous:e}))},_stage:function(t){s(this._staged,t)},_mount:function(t,e){this._fragment[this._fragment.i?"i":"m"](t,e||null)},_differs:function(t,e){return t!=t?e==e:t!==e||t&&"object"===(void 0===t?"undefined":_typeof(t))||"function"==typeof t}}),s(n.prototype,t),n.prototype._recompute=o,(e=n).key="History",e.defaults={history:!0,maxInStack:1/0},e.init=function(t){return new e({target:document.body})},e.showLast=function(t){if(void 0===t&&(t=c.defaultStack),!1!==t){var e="top"===t.push,n=e?0:c.notices.length-1,o=void 0;do{if(!(o=c.notices[n]))return;n+=e?1:-1}while(o.get().stack!==t||!o.get()._modules.History.get().history||"opening"===o.get()._state||"open"===o.get()._state);o.open()}},e.showAll=function(t){if(void 0===t&&(t=c.defaultStack),!1!==t)for(var e=0;e<c.notices.length;e++){var n=c.notices[e];!0!==t&&n.get().stack!==t||!n.get()._modules.History.get().history||n.open()}},c.modules.History=e,n}(PNotify);
//# sourceMappingURL=PNotifyHistory.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,2 @@
var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},PNotifyNonBlock=function(e){"use strict";e=e&&e.__esModule?e.default:e;var n;function t(t){!function(t,e){t._handlers=i(),t._slots=i(),t._bind=e._bind,t._staged={},t.options=e,t.root=e.root||t,t.store=e.store||t.root.store,e.root||(t._beforecreate=[],t._oncreate=[],t._aftercreate=[])}(this,t),this._state=s(_extends({_notice:null,_options:{}},e.modules.NonBlock.defaults),t.data),this._intro=!0,this._fragment=(this._state,{c:o,m:o,p:o,d:o}),t.target&&(this._fragment.c(),this._mount(t.target,t.anchor))}function o(){}function s(t,e){for(var n in e)t[n]=e[n];return t}function i(){return Object.create(null)}function r(t){for(;t&&t.length;)t.shift()()}return s(t.prototype,{destroy:function(t){this.destroy=o,this.fire("destroy"),this.set=o,this._fragment.d(!1!==t),this._fragment=null,this._state={}},get:function(){return this._state},fire:function(t,e){var n=t in this._handlers&&this._handlers[t].slice();if(!n)return;for(var o=0;o<n.length;o+=1){var i=n[o];if(!i.__calling)try{i.__calling=!0,i.call(this,e)}finally{i.__calling=!1}}},on:function(t,e){var n=this._handlers[t]||(this._handlers[t]=[]);return n.push(e),{cancel:function(){var t=n.indexOf(e);~t&&n.splice(t,1)}}},set:function(t){if(this._set(s({},t)),this.root._lock)return;!function(t){t._lock=!0,r(t._beforecreate),r(t._oncreate),r(t._aftercreate),t._lock=!1}(this.root)},_set:function(t){var e=this._state,n={},o=!1;for(var i in t=s(this._staged,t),this._staged={},t)this._differs(t[i],e[i])&&(n[i]=o=!0);if(!o)return;this._state=s(s({},e),t),this._recompute(n,this._state),this._bind&&this._bind(n,this._state);this._fragment&&(this.fire("state",{changed:n,current:this._state,previous:e}),this._fragment.p(n,this._state),this.fire("update",{changed:n,current:this._state,previous:e}))},_stage:function(t){s(this._staged,t)},_mount:function(t,e){this._fragment[this._fragment.i?"i":"m"](t,e||null)},_differs:function(t,e){return t!=t?e==e:t!==e||t&&"object"===(void 0===t?"undefined":_typeof(t))||"function"==typeof t}}),s(t.prototype,{initModule:function(t){this.set(t),this.doNonBlockClass()},update:function(){this.doNonBlockClass()},doNonBlockClass:function(){this.get().nonblock?this.get()._notice.addModuleClass("nonblock"):this.get()._notice.removeModuleClass("nonblock")}}),t.prototype._recompute=o,(n=t).key="NonBlock",n.defaults={nonblock:!1},n.init=function(t){return new n({target:document.body,data:{_notice:t}})},e.modules.NonBlock=n,t}(PNotify);
//# sourceMappingURL=PNotifyNonBlock.js.map

View File

@ -0,0 +1 @@
{"version":3,"sources":["PNotifyNonBlock.js"],"names":["_typeof","Symbol","iterator","obj","constructor","prototype","_extends","Object","assign","target","i","arguments","length","source","key","hasOwnProperty","call","PNotifyNonBlock","PNotify","__esModule","Component","options","component","_handlers","blankObject","_slots","_bind","_staged","root","store","_beforecreate","_oncreate","_aftercreate","init","this","_state","_notice","_options","modules","NonBlock","defaults","data","_intro","_fragment","c","noop","m","p","d","_mount","anchor","tar","src","k","create","callAll","fns","shift","destroy","detach","fire","set","get","eventName","handlers","slice","handler","__calling","on","push","cancel","index","indexOf","splice","newState","_set","_lock","flush","oldState","changed","dirty","_differs","_recompute","current","previous","_stage","a","b","initModule","doNonBlockClass","update","nonblock","addModuleClass","removeModuleClass","notice","document","body"],"mappings":"AAAA,IAAIA,QAA4B,mBAAXC,QAAoD,iBAApBA,OAAOC,SAAwB,SAAUC,GAAO,cAAcA,GAAS,SAAUA,GAAO,OAAOA,GAAyB,mBAAXF,QAAyBE,EAAIC,cAAgBH,QAAUE,IAAQF,OAAOI,UAAY,gBAAkBF,GAElQG,SAAWC,OAAOC,QAAU,SAAUC,GAAU,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAAE,IAAIG,EAASF,UAAUD,GAA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C,KAAKgD,WAAWH,EAAS7C,KAAKC,QAC1BD,KAAKR,OAAOQ,KAAKR,MAAMqD,EAAS7C,KAAKC,QAErCD,KAAKS,YACRT,KAAK0B,KAAK,QAAS,CAAEmB,QAASA,EAASI,QAASjD,KAAKC,OAAQiD,SAAUN,IACvE5C,KAAKS,UAAUI,EAAEgC,EAAS7C,KAAKC,QAC/BD,KAAK0B,KAAK,SAAU,CAAEmB,QAASA,EAASI,QAASjD,KAAKC,OAAQiD,SAAUN,MAzGzEO,OA6GD,SAAgBX,GACflE,EAAO0B,KAAKP,QAAS+C,IA7GrBzB,OAgHD,SAAgBxC,EAAQyC,GACvBhB,KAAKS,UAAUT,KAAKS,UAAUjC,EAAI,IAAM,KAAKD,EAAQyC,GAAU,OAhH/D+B,SAmHD,SAAkBK,EAAGC,GACpB,OAAOD,GAAKA,EAAIC,GAAKA,EAAID,IAAMC,GAAKD,GAA+D,iBAA5C,IAANA,EAAoB,YAActF,QAAQsF,KAAiC,mBAANA,KAlHvH9E,EAAOS,EAAgBZ,UAzET,CACbmF,WAAY,SAAoBnE,GAC/Ba,KAAK2B,IAAIxC,GACTa,KAAKuD,mBAENC,OAAQ,WACPxD,KAAKuD,mBAENA,gBAAiB,WACZvD,KAAK4B,MAAM6B,SACdzD,KAAK4B,MAAM1B,QAAQwD,eAAe,YAElC1D,KAAK4B,MAAM1B,QAAQyD,kBAAkB,eA+DxC5E,EAAgBZ,UAAU6E,WAAarC,GA1DxBzB,EA4DTH,GA3DKH,IAAM,WAEhBM,EAAUoB,SAAW,CAEpBmD,UAAU,GAGXvE,EAAUa,KAAO,SAAU6D,GAC1B,OAAO,IAAI1E,EAAU,CAAEX,OAAQsF,SAASC,KACvCvD,KAAM,CACLL,QAAW0D,MAKd5E,EAAQoB,QAAQC,SAAWnB,EA8KrBH,EA3Nc,CA4NpBC","file":"PNotifyNonBlock.js","sourceRoot":"../"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
{"version":3,"sources":["PNotifyStyleMaterial.js"],"names":["_typeof","Symbol","iterator","obj","constructor","prototype","_extends","Object","assign","target","i","arguments","length","source","key","hasOwnProperty","call","PNotifyStyleMaterial","PNotify","add_css","style","name","document","createElement","id","textContent","node","appendChild","append","head","options","component","_handlers","blankObject","_slots","_bind","_staged","root","store","_beforecreate","_oncreate","_aftercreate","init","this","_state","data","_intro","getElementById","_fragment","c","noop","m","p","d","_mount","anchor","Component","tar","src","k","create","callAll","fns","shift","__esModule","destroy","detach","fire","set","get","eventName","handlers","slice","handler","__calling","on","push","cancel","index","indexOf","splice","newState","_set","_lock","flush","oldState","changed","dirty","_differs","_recompute","current","previous","_stage","a","b","modules","StyleMaterial","modulesPrependContainer","styling","material","container","notice","info","success","error","icons","closer","pinUp","pinDown"],"mappings":"AAAA,IAAIA,QAA4B,mBAAXC,QAAoD,iBAApBA,OAAOC,SAAwB,SAAUC,GAAO,cAAcA,GAAS,SAAUA,GAAO,OAAOA,GAAyB,mBAAXF,QAAyBE,EAAIC,cAAgBH,QAAUE,IAAQF,OAAOI,UAAY,gBAAkBF,GAElQG,SAAWC,OAAOC,QAAU,SAAUC,GAAU,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAAE,IAAIG,EAASF,UAAUD,GAAI,IAAK,IAAII,KAAOD,EAAcN,OAAOF,UAAUU,eAAeC,KAAKH,EAAQC,KAAQL,EAAOK,GAAOD,EAAOC,IAAY,OAAOL,GAGnPQ,qBAAuB,SAAUC,GACpC,aAqCA,SAASC,IACR,IAAIC,EAkDL,SAAuBC,GACtB,OAAOC,SAASC,cAAcF,GAnDlBE,CAAc,SAC1BH,EAAMI,GAAK,uBACXJ,EAAMK,YAAc,0zJAoDrB,SAAgBhB,EAAQiB,GACvBjB,EAAOkB,YAAYD,GApDnBE,CAAON,SAASO,KAAMT,GAgBvB,SAASH,EAAqBa,IAyC9B,SAAcC,EAAWD,GACxBC,EA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