put mymind support

This commit is contained in:
janson 2022-11-10 09:10:58 +08:00
parent 5933982410
commit 371b167d55
33 changed files with 7513 additions and 0 deletions

View File

@ -0,0 +1,16 @@
include $(TOPDIR)/rules.mk
PKG_VERSION:=1.0.0
PKG_RELEASE:=20221110
PKG_MAINTAINER:=xiaobao <xiaobao@linkease.com>
LUCI_TITLE:=LuCI support for mymind
LUCI_DESCRIPTION:=all
LUCI_DEPENDS:= +luci-app-linkease
LUCI_PKGARCH:=all
include $(TOPDIR)/feeds/luci/luci.mk
# call BuildPackage - OpenWrt buildroot signature

View File

@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2013-2019 Ondrej Zara
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.

View File

@ -0,0 +1,8 @@
Privacy Policy
==============
This application can be configured to use Google Drive as a storage option for Mind Map design files. If you decide to do so, please note that My Mind will have a theoretical access to all your Google Drive files.
This application, however, only saves/loads those files that are explicitely requested by the user via My Mind's User Interface.
This application is not accessing, reading, writing, modifying or deleting other kinds of data. In particular, user data and metadata (information about the user logged into the Google ecosystem) is never accessed.

View File

@ -0,0 +1,37 @@
# My Mind
![Screenshot](screenshot.png)
My Mind is a web application for creating and managing Mind maps. It is free to use and you can fork its source code. It is distributed under the terms of the MIT license.
New to Mind maps? They are useful, aesthetic and cool! Read more about these special diagrams in [the Wikipedia article](http://en.wikipedia.org/wiki/Mind_map).
* [Official web page](http://my-mind.github.io/)
* [Sample mind map](http://my-mind.github.io/?map=examples/features.mymind) showcasing many features
* [News / Changelog](https://github.com/ondras/my-mind/wiki/News)
* [Documentation](https://github.com/ondras/my-mind/wiki)
* <a target="_blank" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=3340079"><img src="https://www.paypal.com/en_GB/i/btn/btn_donate_LG.gif" alt="Donate" title="Donate to support further development" /></a>
## Installation
Note: there is also an online version, which can be found at [my-mind.github.io](http://my-mind.github.io/)
* Download the zip by clicking [here](archive/master.zip) and extract the archive, or clone the repository using git
* Open index.html in your webbrowser
* Done! If need be, you can find the manual [here](https://github.com/ondras/my-mind/wiki)
## Contributing
Do you want to participate?
* Found a bug? [Open an issue.](https://github.com/ondras/my-mind/issues)
* Not sure how to do stuff? [Check the docs.](https://github.com/ondras/my-mind/wiki)
* Have a feature request? [Open an issue.](https://github.com/ondras/my-mind/issues)
* Have an improvement? [Submit a pull request.](https://github.com/ondras/my-mind/pulls)
## License
[MIT](LICENSE.txt)
## Links
* [cdnjs](https://nobige.cn/post/20191116-qian_duan_cdn_zheng_li_he_ji/)

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,121 @@
.item {
position: absolute;
}
.item.cut {
opacity: 0.5;
}
.item.collapsed .children {
display: none;
}
.content {
position: relative;
display: inline-block;
white-space: nowrap;
cursor: pointer;
}
.content > * {
vertical-align: middle;
}
.text {
display: inline-block;
text-align: center;
min-width: 0.5em;
min-height: 1.3em;
line-height: 1.3em;
outline: none;
}
.value, .status {
margin-right: 0.2em;
}
.text ~ .value, .text ~ .status {
margin-left: 0.2em;
margin-right: 0;
}
.value {
opacity: 0.7;
}
.value:not(:empty):before {
content: "(";
}
.value:not(:empty):after {
content: ")";
}
.status {
font-size: 150%;
line-height: 0.8;
}
.status.yes:after {
content: "✔";
color: #0f0;
}
.status.no:after {
content: "✘";
color: #f00;
}
canvas {
position: absolute;
left: 0;
top: 0;
}
.notes-indicator {
width: 16px;
height: 100%;
background: url("../icons/notes-indicator.png") right center no-repeat;
position: absolute;
top: -8px;
right: 0;
opacity: 0.4;
display: none;
}
.notes-indicator-visible {
display: block;
}
.toggle {
position: absolute;
width: 12px;
height: 12px;
line-height: 12px;
cursor: pointer;
border-radius: 50%;
border: 1px solid #00f;
background-color: #88f;
text-align: center;
font-weight: bold;
font-family: sans-serif;
color: #fff;
opacity: 0.7;
}
.toggle:hover {
opacity: 1;
}
.toggle:before {
content: "";
}
.collapsed > .toggle:before {
content: "+";
}
:not(.current):not(.collapsed) > .toggle {
/* NOT display:none - we need to have non-zero dimensions for layouting */
visibility: hidden;
}

View File

@ -0,0 +1,33 @@
#menu {
position: absolute;
z-index: 1;
border: 1px solid #666;
background-color: #fff;
box-shadow: 0 0 2px 1px #666;
}
#menu button {
display: block;
background-color: transparent;
border: none;
margin: 0;
padding: 3px 6px;
font-size: 15px;
width: 130px;
text-align: left;
}
#menu button:hover {
font-weight: bold;
}
#menu span {
display: block;
border-top: 1px solid #666;
margin-top: 4px;
padding-top: 4px;
}
#menu .ui select.fa-select, .ui select.fa-select option {
font-size: 13px;
}

View File

@ -0,0 +1,7 @@
.ui, #toggle, #tip {
display: none;
}
#port > .item {
position: static;
}

View File

@ -0,0 +1,43 @@
.shape-box > .content {
padding: 0.15em 0.4em;
background-color: #fff;
border: 1px solid #666;
border-radius: 3px;
}
.shape-ellipse > .content {
background-color: #fff;
border: 1px solid #666;
border-radius: 50%;
padding: 0.5em 1em;
}
/* current */
.current > .content {
background-color: rgba(255, 255, 187, 0.9);
}
/* root */
#port > .item > .content {
font-weight: bold;
border-width: 2px;
font-size: 140%;
}
#port > .item > .toggle {
display: none;
}
/* 1st children */
#port > .item > .children > .item > .content {
border-width: 2px;
font-size: 120%;
}
.item .icon {
margin: 0 0.5em 0 0;
font-size: x-large;
}

View File

@ -0,0 +1,73 @@
@import url(ui.css);
@import url(item.css);
@import url(shape.css);
@import url(menu.css);
* {
font-family: source sans pro, sans-serif;
}
html, body {
margin: 0;
overflow: hidden;
height: 100%;
background-color: #eed;
-webkit-user-select: none; /* no magnifier on hold */
}
[contenteditable] { /* allow for editable items */
-webkit-user-select: auto;
}
ul {
margin: 0;
padding: 0;
list-style: none;
}
#port {
overflow: hidden;
font-size: 15px;
}
#throbber {
position: absolute;
top: 50px;
left: -60px;
width: 50px;
height: 50px;
background-image: url(throbber.gif);
}
#throbber:not(.visible) {
opacity: 0;
}
.ghost {
position: absolute !important; /* to prevent collision with .content */
opacity: 0.5;
z-index: 1;
}
#tip {
position: fixed;
z-index: 1;
left: 10px;
bottom: 5px;
transition: all 500ms;
font-size: 1rem; /* do not scale with map zoom */
}
#tip:before {
content: "Tip: ";
}
#tip code {
padding: 0 4px;
border-radius: 4px;
background-color: rgba(0, 0, 0, 0.1);
}
#tip.hidden {
opacity: 0;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@ -0,0 +1,226 @@
button:not(:disabled) {
cursor: pointer;
}
.ui {
position: fixed;
right: 0;
top: 0;
height: 100%;
background-color: #fff;
width: 200px;
max-width: 600px;
box-shadow: 0 0 2px 2px #666;
-webkit-transition: -webkit-transform 500ms;
transition: transform 500ms;
}
.ui:not(.visible) {
-webkit-transform: translate(100%, 0);
transform: translate(100%, 0);
}
.ui h3 {
background-color: #34495e;
color: #fff;
padding: 0.2em 0;
margin: 0;
text-transform: capitalize;
text-align: center;
}
.ui select, .ui input {
background-color: transparent;
border: 1px solid rgba(50, 70, 90, 0.5);
font-size: 13px;
border-radius: 4px;
padding: 4px;
-moz-box-sizing: border-box;
box-sizing: border-box;
-webkit-font-smoothing: subpixel-antialiased;
transition: all 250ms linear;
}
.ui select:hover, .ui input:hover, .ui select:focus, .ui input:focus {
border-color: rgba(50, 70, 90, 1);
}
.ui select, .ui input, .ui #color {
width: 168px;
}
.ui .go {
font-weight: bold;
}
.ui p {
margin: 8px 16px;
}
.ui p.desc {
font-size: 13px;
}
.ui:not([id]) button {
border: none;
padding: 0;
margin: 0 4px;
background-color: transparent;
width: 32px;
}
.ui button:first-child {
margin-left: 0 !important;
}
.ui button:last-child {
margin-right: 0 !important;
}
.ui button[data-command=Help] {
position: absolute;
left: -50px;
top: 5px;
}
.ui button[data-command=Notes] {
position: absolute;
left: -90px;
top: 5px;
}
.ui table {
width: 100%;
border-collapse: collapse;
}
.ui table td:first-child {
padding-left: 16px;
}
.ui table td:last-child {
text-align: right;
padding-right: 16px;
}
.ui span {
text-transform: uppercase;
font-size: 80%;
}
.ui #color {
display: block;
}
.ui #color::after {
clear: both;
content: "";
display: block;
}
.ui [data-color] {
display: block;
float: left;
width: 14px;
height: 14px;
border-radius: 3px;
margin-right: 2px;
border: 1px solid transparent;
}
.ui [data-color]:hover, .ui [data-color]:first-child {
border-color: #000;
}
#notes {
width: 50%;
}
#notes-editor {
border: 0;
width: 100%;
height: 100%;
}
.pell-content {
height: calc(100% - 60px);
}
.ui #github {
position: absolute;
right: 8px;
bottom: 6px;
}
.ui #github img {
vertical-align: middle;
}
.ui #privacy {
position: absolute;
left: 8px;
bottom: 6px;
}
.ui #toggle {
z-index: 999;
position: absolute;
left: -23px;
top: 48%;
width: 35px;
height: 35px;
padding: 0 0 0 2px;
text-align: left;
border: none;
background-color: #fff;
box-shadow: -3px 0 2px 0px #666;
line-height: 8px;
border-radius: 50%;
}
.ui #toggle:after {
content: "←";
font-weight: bold;
font-size: 22px;
}
.ui.visible #toggle:after {
content: "→";
}
.ui#help {
overflow-y: auto;
right: auto;
left: 0;
background-color: rgba(255, 255, 255, 0.7);
width: 250px;
}
.ui#help:not(.visible) {
-webkit-transform: translate(-100%, 0);
transform: translate(-100%, 0);
}
.ui#help table {
font-size: 80%;
}
.ui#io button {
width: 45%;
}
.ui#io button:nth-child(odd) {
float: left;
}
.ui#io button:nth-child(even) {
float: right;
}
.ui select.fa-select ,
.ui select.fa-select option {
font-family: fontAwesome;
font-size: x-large;
}

View File

@ -0,0 +1,91 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1.0" />
<title></title>
<link rel="stylesheet" type="text/css" href="https://npm.elemecdn.com/pell/dist/pell.min.css">
<style>
body {
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<div id="notes-content"></div>
<script>
var sendMessage = function(action, value) {
window.parent.postMessage({
action: action,
value: value
}, '*');
};
window.addEventListener("message", function(e) {
if (e.data && e.data.action) {
switch (e.data.action) {
case "setContent":
window.editor.content.innerHTML = e.data.value;
break;
case "getContent":
sendMessage('setContent', window.editor.content.innerHTML);
break;
}
}
}, false);
window.onload = function() {
window.editor = window.pell.init({
element: document.getElementById('notes-content'),
onChange: function(html) {
sendMessage('setContent', html);
},
defaultParagraphSeparator: 'div',
styleWithCSS: false,
actions: [
'bold',
'italic',
'underline',
'strikethrough',
'heading1',
'heading2',
'paragraph',
'quote',
'olist',
'ulist',
'code',
'line',
{
name: 'link',
result: function() {
const url = window.prompt('Enter the link URL');
if (url) {
window.pell.exec('createLink', url);
}
}
},
{
name: 'close',
icon: 'Close',
title: 'Close Notes',
result: function() {
sendMessage('closeEditor', true);
}
}
],
classes: {
actionbar: 'pell-actionbar',
button: 'pell-button',
content: 'pell-content',
selected: 'pell-button-selected'
}
})
}
</script>
<script src="http://npm.elemecdn.com/pell"></script>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 790 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,365 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:osb="http://www.openswatchbook.org/uri/2009/osb"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="100.5"
height="100.5"
id="svg2"
version="1.1"
inkscape:version="0.48.4 r9939"
sodipodi:docname="logo.svg">
<defs
id="defs4">
<linearGradient
id="linearGradient3950">
<stop
style="stop-color:#eeeeec;stop-opacity:1;"
offset="0"
id="stop3952" />
<stop
id="stop3958"
offset="0.5"
style="stop-color:#eeeeec;stop-opacity:0.49803922;" />
<stop
style="stop-color:#eeeeec;stop-opacity:0;"
offset="1"
id="stop3954" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient3934">
<stop
style="stop-color:#729fcf;stop-opacity:1;"
offset="0"
id="stop3936" />
<stop
style="stop-color:#729fcf;stop-opacity:0;"
offset="1"
id="stop3938" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient3926">
<stop
style="stop-color:#729fcf;stop-opacity:1;"
offset="0"
id="stop3928" />
<stop
style="stop-color:#729fcf;stop-opacity:0;"
offset="1"
id="stop3930" />
</linearGradient>
<linearGradient
id="linearGradient3811"
osb:paint="gradient">
<stop
style="stop-color:#eeeeec;stop-opacity:1;"
offset="0"
id="stop3813" />
<stop
style="stop-color:#eeeeec;stop-opacity:0.24705882;"
offset="0.10769231"
id="stop3821" />
<stop
style="stop-color:#eeeeec;stop-opacity:0;"
offset="1"
id="stop3815" />
</linearGradient>
<linearGradient
id="linearGradient3957">
<stop
style="stop-color:#729fcf;stop-opacity:1;"
offset="0"
id="stop3959" />
<stop
id="stop3973"
offset="0.83076924"
style="stop-color:#729fcf;stop-opacity:0.49803922;" />
<stop
style="stop-color:#729fcf;stop-opacity:0;"
offset="1"
id="stop3961" />
</linearGradient>
<linearGradient
id="linearGradient3861">
<stop
style="stop-color:#555753;stop-opacity:1;"
offset="0"
id="stop3863" />
<stop
style="stop-color:#555753;stop-opacity:0.24705882;"
offset="0.95384616"
id="stop3879" />
<stop
style="stop-color:#555753;stop-opacity:0;"
offset="1"
id="stop3865" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient3853">
<stop
style="stop-color:#2e3436;stop-opacity:1;"
offset="0"
id="stop3855" />
<stop
style="stop-color:#2e3436;stop-opacity:0;"
offset="1"
id="stop3857" />
</linearGradient>
<linearGradient
id="linearGradient3833">
<stop
style="stop-color:#729fcf;stop-opacity:1;"
offset="0"
id="stop3835" />
<stop
id="stop3841"
offset="0.40000001"
style="stop-color:#729fcf;stop-opacity:0.49803922;" />
<stop
style="stop-color:#729fcf;stop-opacity:0;"
offset="1"
id="stop3837" />
</linearGradient>
<linearGradient
id="linearGradient3797">
<stop
style="stop-color:#729fcf;stop-opacity:1;"
offset="0"
id="stop3799" />
<stop
id="stop3805"
offset="0.73846155"
style="stop-color:#729fcf;stop-opacity:0.49803922;" />
<stop
style="stop-color:#729fcf;stop-opacity:0;"
offset="1"
id="stop3801" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3833"
id="linearGradient3839"
x1="35.992271"
y1="971.09375"
x2="64.009659"
y2="971.09375"
gradientUnits="userSpaceOnUse" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3853"
id="radialGradient3859"
cx="51.42564"
cy="1038.7981"
fx="51.42564"
fy="1038.7981"
r="25.491026"
gradientTransform="matrix(1,0,0,0.1069758,0,927.67183)"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3926"
id="linearGradient3932"
x1="41.919182"
y1="967.81268"
x2="57.638966"
y2="967.81268"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3934"
id="linearGradient3940"
x1="47.370735"
y1="983.86664"
x2="52.938766"
y2="983.86664"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3797"
id="linearGradient3046"
gradientUnits="userSpaceOnUse"
x1="20.875662"
y1="1004.267"
x2="76.027336"
y2="1004.267" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="5.6568542"
inkscape:cx="27.022189"
inkscape:cy="65.253162"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1920"
inkscape:window-height="1145"
inkscape:window-x="1920"
inkscape:window-y="0"
inkscape:window-maximized="1" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-951.86218)">
<g
id="g3965"
transform="matrix(0.87335401,0,0,0.87335401,4.7729708,129.21159)">
<rect
transform="matrix(0,-1,1,0,0,0)"
ry="10"
rx="10"
y="0.25"
x="-1052.1122"
height="100"
width="100"
id="rect3039"
style="fill:#eeeeec;fill-opacity:1;stroke:#204a87;stroke-width:0.5;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
<rect
style="fill:none;stroke:#729fcf;stroke-width:0.49659538;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
id="rect3041"
width="99.319077"
height="99.319077"
x="0.59046113"
y="952.45264"
rx="9.9319077"
ry="9.9319077" />
</g>
<path
sodipodi:type="arc"
style="fill:url(#radialGradient3859);fill-opacity:1;stroke:none"
id="path3843"
sodipodi:cx="51.42564"
sodipodi:cy="1038.7981"
sodipodi:rx="25.241026"
sodipodi:ry="2.476923"
d="m 76.666666,1038.7981 c 0,1.368 -11.300792,2.4769 -25.241026,2.4769 -13.940234,0 -25.241026,-1.1089 -25.241026,-2.4769 0,-1.368 11.300792,-2.4769 25.241026,-2.4769 13.940234,0 25.241026,1.1089 25.241026,2.4769 z"
transform="translate(-2.8307692,2.7902882)" />
<g
id="g3041"
transform="translate(-0.87536919,-2)">
<g
transform="matrix(1.1570738,0,0,0.73672744,-7.7805549,273.73097)"
id="g3035">
<path
transform="matrix(0.35495108,-0.88493004,0.77120246,0.40729496,-742.15673,650.73834)"
d="m 75.527338,1004.267 c 0,14.9536 -12.122266,27.0759 -27.075838,27.0759 -14.953573,0 -27.075838,-12.1223 -27.075838,-27.0759 0,-14.95354 12.122265,-27.07581 27.075838,-27.07581 14.953572,0 27.075838,12.12227 27.075838,27.07581 z"
sodipodi:ry="27.075838"
sodipodi:rx="27.075838"
sodipodi:cy="1004.267"
sodipodi:cx="48.4515"
id="path3785"
style="fill:url(#linearGradient3046);fill-opacity:1;stroke:#729fcf;stroke-width:1;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none"
sodipodi:type="arc" />
<path
sodipodi:type="arc"
style="fill:none;stroke:#204a87;stroke-width:1;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none"
id="path3759"
sodipodi:cx="48.4515"
sodipodi:cy="1004.267"
sodipodi:rx="27.075838"
sodipodi:ry="27.075838"
d="m 75.527338,1004.267 c 0,14.9536 -12.122266,27.0759 -27.075838,27.0759 -14.953573,0 -27.075838,-12.1223 -27.075838,-27.0759 0,-14.95354 12.122265,-27.07581 27.075838,-27.07581 14.953572,0 27.075838,12.12227 27.075838,27.07581 z"
transform="matrix(0.8714841,0,0,1,7.3096687,12.628031)" />
</g>
</g>
<path
sodipodi:type="arc"
style="fill:#eeeeec;fill-opacity:1;stroke:#204a87;stroke-width:1;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none"
id="path3755"
sodipodi:cx="34.55732"
sodipodi:cy="993.93536"
sodipodi:rx="8.1940031"
sodipodi:ry="8.1940031"
d="m 42.751323,993.93536 c 0,4.52543 -3.66858,8.19404 -8.194003,8.19404 -4.525423,0 -8.194003,-3.66861 -8.194003,-8.19404 0,-4.52542 3.66858,-8.194 8.194003,-8.194 4.525423,0 8.194003,3.66858 8.194003,8.194 z"
transform="matrix(-0.84657206,0.48875732,-0.48875732,-0.84657205,554.39803,1840.7315)" />
<path
sodipodi:type="arc"
style="fill:#eeeeec;fill-opacity:1;stroke:#204a87;stroke-width:1;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none"
id="path3757"
sodipodi:cx="59.139328"
sodipodi:cy="998.38861"
sodipodi:rx="4.2751322"
sodipodi:ry="4.4532628"
d="m 63.41446,998.38861 c 0,2.45949 -1.914042,4.45329 -4.275132,4.45329 -2.36109,0 -4.275132,-1.9938 -4.275132,-4.45329 0,-2.45947 1.914042,-4.45326 4.275132,-4.45326 2.36109,0 4.275132,1.99379 4.275132,4.45326 z"
transform="matrix(-0.74348535,0.70960306,-0.71090476,-0.742124,817.9943,1719.2735)" />
<path
sodipodi:type="arc"
style="fill:#555753;fill-opacity:1;stroke:#729fcf;stroke-width:1;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none"
id="path3761"
sodipodi:cx="34.022926"
sodipodi:cy="994.11353"
sodipodi:rx="3.0282187"
sodipodi:ry="3.0282187"
d="m 37.051145,994.11353 c 0,1.67243 -1.35578,3.02821 -3.028219,3.02821 -1.672439,0 -3.028218,-1.35578 -3.028218,-3.02821 0,-1.67244 1.355779,-3.02822 3.028218,-3.02822 1.672439,0 3.028219,1.35578 3.028219,3.02822 z"
transform="matrix(0.64658836,0,0,0.64658836,17.189883,373.56249)" />
<path
transform="matrix(0.64658836,0,0,0.64658836,42.128155,377.83762)"
d="m 37.051145,994.11353 c 0,1.67243 -1.35578,3.02821 -3.028219,3.02821 -1.672439,0 -3.028218,-1.35578 -3.028218,-3.02821 0,-1.67244 1.355779,-3.02822 3.028218,-3.02822 1.672439,0 3.028219,1.35578 3.028219,3.02822 z"
sodipodi:ry="3.0282187"
sodipodi:rx="3.0282187"
sodipodi:cy="994.11353"
sodipodi:cx="34.022926"
id="path3767"
style="fill:#555753;fill-opacity:1;stroke:#729fcf;stroke-width:1;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none"
sodipodi:type="arc" />
<g
style="font-size:43.07986069px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:none;stroke:#204a87;font-family:Inconsolata;-inkscape-font-specification:Inconsolata Bold"
id="text3856"
transform="translate(-0.9476607,10)">
<path
style="stroke:#204a87;font-family:Inconsolata;-inkscape-font-specification:Inconsolata Bold"
d="m 50.174617,981.06107 c 0.37862,0 0.750239,0.0771 1.114859,0.23139 0.378619,0.15426 0.722192,0.36461 1.03072,0.63105 0.308501,0.26645 0.55391,0.58197 0.736228,0.94658 0.196313,0.36461 0.294477,0.75726 0.294491,1.17796 -1.4e-5,0.37864 -0.08416,0.74324 -0.252421,1.09383 -0.168295,0.35058 -0.39968,0.6591 -0.694158,0.92554 -0.280481,0.26644 -0.617042,0.4768 -1.009684,0.63105 -0.378644,0.15426 -0.785322,0.23139 -1.220035,0.23139 -0.44876,0 -0.869461,-0.0771 -1.262105,-0.23139 -0.392665,-0.15425 -0.736238,-0.36461 -1.03072,-0.63105 -0.2945,-0.26644 -0.525886,-0.57496 -0.694158,-0.92554 -0.168289,-0.35059 -0.252429,-0.71519 -0.252421,-1.09383 -8e-6,-0.39265 0.08413,-0.77128 0.252421,-1.13589 0.168272,-0.36461 0.399658,-0.68013 0.694158,-0.94658 0.294482,-0.28047 0.638055,-0.49783 1.03072,-0.65209 0.392644,-0.16828 0.813345,-0.25242 1.262105,-0.25242"
id="path3900"
inkscape:connector-curvature="0" />
<path
style="stroke:#204a87;font-family:Inconsolata;-inkscape-font-specification:Inconsolata Bold"
d="m 42.917511,960.23633 c 0.645072,-0.617 1.339229,-1.13587 2.082474,-1.55659 0.757256,-0.4347 1.549577,-0.76425 2.376965,-0.98865 0.841394,-0.23837 1.710844,-0.35757 2.608351,-0.3576 1.234046,3e-5 2.348905,0.21038 3.344579,0.63105 0.995645,0.40671 1.837048,0.96764 2.524211,1.68281 0.687128,0.71522 1.213005,1.5426 1.577631,2.48214 0.378613,0.93959 0.567928,1.93525 0.567948,2.98698 -2e-5,0.81338 -0.112207,1.54259 -0.336562,2.18765 -0.210369,0.63107 -0.511872,1.22005 -0.904509,1.76695 -0.378649,0.54693 -0.84142,1.0728 -1.388315,1.57763 -0.532905,0.50486 -1.121887,1.01671 -1.766948,1.53556 -0.322552,0.25244 -0.581985,0.51888 -0.778298,0.79934 -0.182318,0.28048 -0.322552,0.57497 -0.420702,0.88347 -0.08415,0.2945 -0.140247,0.61704 -0.168281,0.96761 -0.02806,0.33658 -0.04208,0.70118 -0.04207,1.09383 l 0,2.37696 -4.270123,0 0,-2.37696 c -9e-6,-0.603 0.02103,-1.14991 0.06311,-1.64074 0.04206,-0.49081 0.154248,-0.98162 0.336561,-1.47246 0.196318,-0.50482 0.490809,-1.02369 0.883474,-1.55659 0.392644,-0.5469 0.939556,-1.17094 1.640737,-1.87212 0.869437,-0.86944 1.472442,-1.65475 1.809017,-2.35593 0.350571,-0.71518 0.525863,-1.42336 0.525877,-2.12455 -1.4e-5,-0.51884 -0.08415,-1.00265 -0.252421,-1.45142 -0.168294,-0.46275 -0.406692,-0.86241 -0.715193,-1.199 -0.294504,-0.33654 -0.6521,-0.60298 -1.072789,-0.79933 -0.40669,-0.19631 -0.848427,-0.29447 -1.325211,-0.29449 -0.532899,2e-5 -1.044752,0.1052 -1.535561,0.31552 -0.476804,0.19635 -0.939576,0.47682 -1.388316,0.84141 -0.448756,0.36463 -0.883481,0.80636 -1.304175,1.32521 -0.406685,0.50486 -0.792328,1.07281 -1.15693,1.70384 l -3.218371,-3.07112 c 0.504837,-0.75724 1.072784,-1.43738 1.70384,-2.04041 z"
id="path3883"
inkscape:connector-curvature="0" />
<path
style="stroke:#204a87;font-family:Inconsolata;-inkscape-font-specification:Inconsolata Bold"
d="m 50.174617,981.06107 c 0.37862,0 0.750239,0.0771 1.114859,0.23139 0.378619,0.15426 0.722192,0.36461 1.03072,0.63105 0.308501,0.26645 0.55391,0.58197 0.736228,0.94658 0.196313,0.36461 0.294477,0.75726 0.294491,1.17796 -1.4e-5,0.37864 -0.08416,0.74324 -0.252421,1.09383 -0.168295,0.35058 -0.39968,0.6591 -0.694158,0.92554 -0.280481,0.26644 -0.617042,0.4768 -1.009684,0.63105 -0.378644,0.15426 -0.785322,0.23139 -1.220035,0.23139 -0.44876,0 -0.869461,-0.0771 -1.262105,-0.23139 -0.392665,-0.15425 -0.736238,-0.36461 -1.03072,-0.63105 -0.2945,-0.26644 -0.525886,-0.57496 -0.694158,-0.92554 -0.168289,-0.35059 -0.252429,-0.71519 -0.252421,-1.09383 -8e-6,-0.39265 0.08413,-0.77128 0.252421,-1.13589 0.168272,-0.36461 0.399658,-0.68013 0.694158,-0.94658 0.294482,-0.28047 0.638055,-0.49783 1.03072,-0.65209 0.392644,-0.16828 0.813345,-0.25242 1.262105,-0.25242"
id="path3904"
inkscape:connector-curvature="0" />
<path
style="fill:url(#linearGradient3932);fill-opacity:1;stroke:#729fcf;stroke-width:0.88508385;font-family:Inconsolata;-inkscape-font-specification:Inconsolata Bold"
d="m 51.246743,958.3551 c 1.437972,0.22537 2.200404,0.49227 3.327809,1.34453 1.168747,0.88351 2.444631,2.67088 2.606656,5.04155 0.162024,2.65195 -1.19831,3.91824 -1.994644,4.79227 -0.796334,0.87404 -2.645573,2.04052 -3.508717,4.02771 -0.271033,0.23534 -0.300558,4.06254 -0.300558,4.06254 l -2.673891,0 c 0,0 0.02209,-1.93923 0.04418,-3.20959 0.02209,-1.27036 1.625341,-3.53769 2.695703,-4.52738 1.070363,-0.98968 2.943847,-2.60748 2.55883,-5.71811 -0.241938,-1.95465 -1.712887,-3.89799 -4.396978,-3.90988 -2.350107,-0.0104 -5.038402,3.11733 -5.344768,3.70563 l -1.898642,-1.84649 c 1.16321,-1.34857 2.397371,-2.40231 4.075683,-3.16481 1.668287,-0.75794 3.326802,-0.83034 4.809337,-0.59797 z"
id="path3906"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ssccccczzssccss" />
<path
style="fill:url(#linearGradient3940);fill-opacity:1;stroke:#729fcf;stroke-width:0.75084299;font-family:Inconsolata;-inkscape-font-specification:Inconsolata Bold"
d="m 50.178442,981.66337 c 0.284285,0 0.563312,0.0579 0.837085,0.17374 0.284283,0.11582 0.542252,0.27376 0.773909,0.47382 0.231635,0.20006 0.415899,0.43696 0.552791,0.71073 0.1474,0.27377 0.221106,0.56858 0.221117,0.88447 -1.1e-5,0.28429 -0.06319,0.55805 -0.189529,0.82129 -0.126363,0.26323 -0.300097,0.49488 -0.521203,0.69493 -0.210598,0.20006 -0.463303,0.35801 -0.758115,0.47382 -0.284302,0.11583 -0.589653,0.17374 -0.916055,0.17374 -0.336948,0 -0.652829,-0.0579 -0.947643,-0.17374 -0.294829,-0.11581 -0.552799,-0.27376 -0.773908,-0.47382 -0.221124,-0.20005 -0.394858,-0.4317 -0.521204,-0.69493 -0.126359,-0.26324 -0.189535,-0.537 -0.189529,-0.82129 -6e-6,-0.29482 0.06317,-0.57911 0.189529,-0.85288 0.126346,-0.27377 0.30008,-0.51067 0.521204,-0.71074 0.221109,-0.21058 0.479079,-0.37379 0.773908,-0.48961 0.294814,-0.12635 0.610695,-0.18953 0.947643,-0.18953"
id="path3908"
inkscape:connector-curvature="0" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 314 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

View File

@ -0,0 +1 @@
.pell{border:1px solid hsla(0,0%,4%,.1)}.pell,.pell-content{box-sizing:border-box}.pell-content{height:300px;outline:0;overflow-y:auto;padding:10px}.pell-actionbar{background-color:#fff;border-bottom:1px solid hsla(0,0%,4%,.1)}.pell-button{background-color:transparent;border:none;cursor:pointer;height:30px;outline:0;width:30px;vertical-align:bottom}.pell-button-selected{background-color:#f0f0f0}

View File

@ -0,0 +1 @@
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.pell={})}(this,function(t){"use strict";var e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},c="defaultParagraphSeparator",l="formatBlock",a=function(t,e,n){return t.addEventListener(e,n)},s=function(t,e){return t.appendChild(e)},d=function(t){return document.createElement(t)},n=function(t){return document.queryCommandState(t)},f=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;return document.execCommand(t,!1,e)},p={bold:{icon:"<b>B</b>",title:"Bold",state:function(){return n("bold")},result:function(){return f("bold")}},italic:{icon:"<i>I</i>",title:"Italic",state:function(){return n("italic")},result:function(){return f("italic")}},underline:{icon:"<u>U</u>",title:"Underline",state:function(){return n("underline")},result:function(){return f("underline")}},strikethrough:{icon:"<strike>S</strike>",title:"Strike-through",state:function(){return n("strikeThrough")},result:function(){return f("strikeThrough")}},heading1:{icon:"<b>H<sub>1</sub></b>",title:"Heading 1",result:function(){return f(l,"<h1>")}},heading2:{icon:"<b>H<sub>2</sub></b>",title:"Heading 2",result:function(){return f(l,"<h2>")}},paragraph:{icon:"&#182;",title:"Paragraph",result:function(){return f(l,"<p>")}},quote:{icon:"&#8220; &#8221;",title:"Quote",result:function(){return f(l,"<blockquote>")}},olist:{icon:"&#35;",title:"Ordered List",result:function(){return f("insertOrderedList")}},ulist:{icon:"&#8226;",title:"Unordered List",result:function(){return f("insertUnorderedList")}},code:{icon:"&lt;/&gt;",title:"Code",result:function(){return f(l,"<pre>")}},line:{icon:"&#8213;",title:"Horizontal Line",result:function(){return f("insertHorizontalRule")}},link:{icon:"&#128279;",title:"Link",result:function(){var t=window.prompt("Enter the link URL");t&&f("createLink",t)}},image:{icon:"&#128247;",title:"Image",result:function(){var t=window.prompt("Enter the image URL");t&&f("insertImage",t)}}},m={actionbar:"pell-actionbar",button:"pell-button",content:"pell-content",selected:"pell-button-selected"},r=function(n){var t=n.actions?n.actions.map(function(t){return"string"==typeof t?p[t]:p[t.name]?e({},p[t.name],t):t}):Object.keys(p).map(function(t){return p[t]}),r=e({},m,n.classes),i=n[c]||"div",o=d("div");o.className=r.actionbar,s(n.element,o);var u=n.element.content=d("div");return u.contentEditable=!0,u.className=r.content,u.oninput=function(t){var e=t.target.firstChild;e&&3===e.nodeType?f(l,"<"+i+">"):"<br>"===u.innerHTML&&(u.innerHTML=""),n.onChange(u.innerHTML)},u.onkeydown=function(t){var e;"Enter"===t.key&&"blockquote"===(e=l,document.queryCommandValue(e))&&setTimeout(function(){return f(l,"<"+i+">")},0)},s(n.element,u),t.forEach(function(t){var e=d("button");if(e.className=r.button,e.innerHTML=t.icon,e.title=t.title,e.setAttribute("type","button"),e.onclick=function(){return t.result()&&u.focus()},t.state){var n=function(){return e.classList[t.state()?"add":"remove"](r.selected)};a(u,"keyup",n),a(u,"mouseup",n),a(e,"click",n)}s(o,e)}),n.styleWithCSS&&f("styleWithCSS"),f(c,i),n.element},i={exec:f,init:r};t.exec=f,t.init=r,t.default=i,Object.defineProperty(t,"__esModule",{value:!0})});