-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add notification queue and cleanup toasts
- Loading branch information
Showing
17 changed files
with
235 additions
and
280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
src/renderer/pages/Pile/Toasts/Toast/Loaders/Info/index.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
export default function Info(props) { | ||
return ( | ||
<svg | ||
{...props} | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="44" | ||
height="44" | ||
viewBox="0 0 44 44" | ||
stroke="currentcolor" | ||
> | ||
<g fill="none" fill-rule="evenodd" stroke-width="2"> | ||
<circle cx="22" cy="22" r="1"> | ||
<animate | ||
attributeName="r" | ||
begin="0s" | ||
dur="1.8s" | ||
values="1; 20" | ||
calcMode="spline" | ||
keyTimes="0; 1" | ||
keySplines="0.165, 0.84, 0.44, 1" | ||
repeatCount="indefinite" | ||
/> | ||
<animate | ||
attributeName="stroke-opacity" | ||
begin="0s" | ||
dur="1.8s" | ||
values="1; 0" | ||
calcMode="spline" | ||
keyTimes="0; 1" | ||
keySplines="0.3, 0.61, 0.355, 1" | ||
repeatCount="indefinite" | ||
/> | ||
</circle> | ||
<circle cx="22" cy="22" r="1"> | ||
<animate | ||
attributeName="r" | ||
begin="-0.9s" | ||
dur="1.8s" | ||
values="1; 20" | ||
calcMode="spline" | ||
keyTimes="0; 1" | ||
keySplines="0.165, 0.84, 0.44, 1" | ||
repeatCount="indefinite" | ||
/> | ||
<animate | ||
attributeName="stroke-opacity" | ||
begin="-0.9s" | ||
dur="1.8s" | ||
values="1; 0" | ||
calcMode="spline" | ||
keyTimes="0; 1" | ||
keySplines="0.3, 0.61, 0.355, 1" | ||
repeatCount="indefinite" | ||
/> | ||
</circle> | ||
</g> | ||
</svg> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
The SVG loading animations used within Pile are from: https://github.com/SamHerbert/SVG-Loaders | ||
|
||
The MIT License (MIT) | ||
|
||
Copyright (c) 2014 Sam Herbert | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
33 changes: 33 additions & 0 deletions
33
src/renderer/pages/Pile/Toasts/Toast/Loaders/Thinking/index.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
export default function Thinking(props) { | ||
return ( | ||
<svg | ||
{...props} | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="135" | ||
height="135" | ||
viewBox="0 0 135 135" | ||
fill="currentcolor" | ||
> | ||
<path d="M67.447 58c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10zm9.448 9.447c0 5.523 4.477 10 10 10 5.522 0 10-4.477 10-10s-4.478-10-10-10c-5.523 0-10 4.477-10 10zm-9.448 9.448c-5.523 0-10 4.477-10 10 0 5.522 4.477 10 10 10s10-4.478 10-10c0-5.523-4.477-10-10-10zM58 67.447c0-5.523-4.477-10-10-10s-10 4.477-10 10 4.477 10 10 10 10-4.477 10-10z"> | ||
<animateTransform | ||
attributeName="transform" | ||
type="rotate" | ||
from="0 67 67" | ||
to="-360 67 67" | ||
dur="2.5s" | ||
repeatCount="indefinite" | ||
/> | ||
</path> | ||
<path d="M28.19 40.31c6.627 0 12-5.374 12-12 0-6.628-5.373-12-12-12-6.628 0-12 5.372-12 12 0 6.626 5.372 12 12 12zm30.72-19.825c4.686 4.687 12.284 4.687 16.97 0 4.686-4.686 4.686-12.284 0-16.97-4.686-4.687-12.284-4.687-16.97 0-4.687 4.686-4.687 12.284 0 16.97zm35.74 7.705c0 6.627 5.37 12 12 12 6.626 0 12-5.373 12-12 0-6.628-5.374-12-12-12-6.63 0-12 5.372-12 12zm19.822 30.72c-4.686 4.686-4.686 12.284 0 16.97 4.687 4.686 12.285 4.686 16.97 0 4.687-4.686 4.687-12.284 0-16.97-4.685-4.687-12.283-4.687-16.97 0zm-7.704 35.74c-6.627 0-12 5.37-12 12 0 6.626 5.373 12 12 12s12-5.374 12-12c0-6.63-5.373-12-12-12zm-30.72 19.822c-4.686-4.686-12.284-4.686-16.97 0-4.686 4.687-4.686 12.285 0 16.97 4.686 4.687 12.284 4.687 16.97 0 4.687-4.685 4.687-12.283 0-16.97zm-35.74-7.704c0-6.627-5.372-12-12-12-6.626 0-12 5.373-12 12s5.374 12 12 12c6.628 0 12-5.373 12-12zm-19.823-30.72c4.687-4.686 4.687-12.284 0-16.97-4.686-4.686-12.284-4.686-16.97 0-4.687 4.686-4.687 12.284 0 16.97 4.686 4.687 12.284 4.687 16.97 0z"> | ||
<animateTransform | ||
attributeName="transform" | ||
type="rotate" | ||
from="0 67 67" | ||
to="360 67 67" | ||
dur="8s" | ||
repeatCount="indefinite" | ||
/> | ||
</path> | ||
</svg> | ||
); | ||
} |
28 changes: 28 additions & 0 deletions
28
src/renderer/pages/Pile/Toasts/Toast/Loaders/Waiting/index.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
export default function Waiting(props) { | ||
return ( | ||
<svg | ||
{...props} | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="38" | ||
height="38" | ||
viewBox="0 0 38 38" | ||
stroke="currentcolor" | ||
> | ||
<g fill="none" fill-rule="evenodd"> | ||
<g transform="translate(1 1)" stroke-width="3"> | ||
<circle stroke-opacity=".5" cx="18" cy="18" r="18" /> | ||
<path d="M36 18c0-9.94-8.06-18-18-18"> | ||
<animateTransform | ||
attributeName="transform" | ||
type="rotate" | ||
from="0 18 18" | ||
to="360 18 18" | ||
dur="1s" | ||
repeatCount="indefinite" | ||
/> | ||
</path> | ||
</g> | ||
</g> | ||
</svg> | ||
); | ||
} |
Oops, something went wrong.