Compare commits
No commits in common. 'master' and 'v1.1.0' have entirely different histories.
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@ -1,96 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>BuildMachineOSBuild</key>
|
||||
<string>16A323</string>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>en</string>
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string>NotePost</string>
|
||||
<key>CFBundleDocumentTypes</key>
|
||||
<array/>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>nwjs</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>app.icns</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.netsyms.NotePostApp</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>netsyms-notepost-app</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>Version 1.3.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>NWJS</string>
|
||||
<key>CFBundleURLTypes</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>CFBundleURLName</key>
|
||||
<string>Web site URL</string>
|
||||
<key>CFBundleURLSchemes</key>
|
||||
<array>
|
||||
<string>http</string>
|
||||
<string>https</string>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>CFBundleURLName</key>
|
||||
<string>FTP site URL</string>
|
||||
<key>CFBundleURLSchemes</key>
|
||||
<array>
|
||||
<string>ftp</string>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>CFBundleURLName</key>
|
||||
<string>Local file URL</string>
|
||||
<key>CFBundleURLSchemes</key>
|
||||
<array>
|
||||
<string>file</string>
|
||||
</array>
|
||||
</dict>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.3.0</string>
|
||||
<key>DTCompiler</key>
|
||||
<string>com.apple.compilers.llvm.clang.1_0</string>
|
||||
<key>DTSDKBuild</key>
|
||||
<string>10.12</string>
|
||||
<key>DTSDKName</key>
|
||||
<string>macosx10.12</string>
|
||||
<key>DTXcode</key>
|
||||
<string>0833</string>
|
||||
<key>DTXcodeBuild</key>
|
||||
<string>8E3004b</string>
|
||||
<key>LSFileQuarantineEnabled</key>
|
||||
<true/>
|
||||
<key>LSHasLocalizedDisplayName</key>
|
||||
<string>1</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>10.9.0</string>
|
||||
<key>NSAppleScriptEnabled</key>
|
||||
<true/>
|
||||
<key>NSPrincipalClass</key>
|
||||
<string>BrowserCrApplication</string>
|
||||
<key>NSSupportsAppNap</key>
|
||||
<true/>
|
||||
<key>NSSupportsAutomaticGraphicsSwitching</key>
|
||||
<true/>
|
||||
<key>NSUserActivityTypes</key>
|
||||
<array>
|
||||
<string>NSUserActivityTypeBrowsingWeb</string>
|
||||
</array>
|
||||
<key>NSUserNotificationAlertStyle</key>
|
||||
<string>banner</string>
|
||||
<key>OSAScriptingDefinition</key>
|
||||
<string>scripting.sdef</string>
|
||||
<key>SCMRevision</key>
|
||||
<string>2f0eedbae58fc8cfa2f2ff2988c4c1927e1edbac-</string>
|
||||
<key>UTExportedTypeDeclarations</key>
|
||||
<array/>
|
||||
</dict>
|
||||
</plist>
|
@ -1,5 +0,0 @@
|
||||
#!/bin/sh
|
||||
HERE="$(dirname "$(readlink -f "${0}")")"
|
||||
|
||||
cd $HERE/usr/lib/notepost
|
||||
./notepost
|
@ -1,11 +0,0 @@
|
||||
[Desktop Entry]
|
||||
Name=NotePost
|
||||
Version=1.0
|
||||
Exec=notepost
|
||||
Comment=Launch NotePost
|
||||
Icon=notepost
|
||||
Type=Application
|
||||
Terminal=false
|
||||
StartupNotify=true
|
||||
Categories=Office;Network;
|
||||
Name[en_US]=NotePost
|
Binary file not shown.
Before Width: | Height: | Size: 8.3 KiB |
@ -1,3 +0,0 @@
|
||||
#!/bin/sh
|
||||
cd /usr/lib/notepost
|
||||
./notepost
|
@ -1,21 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component type="desktop-application">
|
||||
<id>notepostapp</id>
|
||||
<metadata_license>MPL-2.0</metadata_license>
|
||||
<project_license>MPL-2.0</project_license>
|
||||
<name>NotePost</name>
|
||||
<summary>Desktop client for NotePost</summary>
|
||||
<description>
|
||||
|
||||
</description>
|
||||
<launchable type="desktop-id">notepost.desktop</launchable>
|
||||
<url type="homepage">https://netsyms.com/apps/notepost</url>
|
||||
<screenshots>
|
||||
<screenshot type="default">
|
||||
<image>https://netsyms.com/files/apps/notepost/app/home_desktop.png</image>
|
||||
</screenshot>
|
||||
</screenshots>
|
||||
<provides>
|
||||
<id>notepost.desktop</id>
|
||||
</provides>
|
||||
</component>
|
@ -1,9 +0,0 @@
|
||||
Package: notepost
|
||||
Version: 1.3.0-1
|
||||
Maintainer: Netsyms Technologies <opensource@netsyms.com>
|
||||
Section: web
|
||||
Homepage: https://netsyms.com/apps/notepost
|
||||
Priority: optional
|
||||
Depends: nw.js-normal | nw.js
|
||||
Description: Desktop client for the NotePost notetaking webapp.
|
||||
Architecture: all
|
@ -1,359 +0,0 @@
|
||||
Copyright (c) 2018-2019 Netsyms Technologies.
|
||||
|
||||
Mozilla Public License Version 2.0
|
||||
==================================
|
||||
|
||||
### 1. Definitions
|
||||
|
||||
**1.1. “Contributor”**
|
||||
means each individual or legal entity that creates, contributes to
|
||||
the creation of, or owns Covered Software.
|
||||
|
||||
**1.2. “Contributor Version”**
|
||||
means the combination of the Contributions of others (if any) used
|
||||
by a Contributor and that particular Contributor's Contribution.
|
||||
|
||||
**1.3. “Contribution”**
|
||||
means Covered Software of a particular Contributor.
|
||||
|
||||
**1.4. “Covered Software”**
|
||||
means Source Code Form to which the initial Contributor has attached
|
||||
the notice in Exhibit A, the Executable Form of such Source Code
|
||||
Form, and Modifications of such Source Code Form, in each case
|
||||
including portions thereof.
|
||||
|
||||
**1.5. “Incompatible With Secondary Licenses”**
|
||||
means
|
||||
|
||||
* **(a)** that the initial Contributor has attached the notice described
|
||||
in Exhibit B to the Covered Software; or
|
||||
* **(b)** that the Covered Software was made available under the terms of
|
||||
version 1.1 or earlier of the License, but not also under the
|
||||
terms of a Secondary License.
|
||||
|
||||
**1.6. “Executable Form”**
|
||||
means any form of the work other than Source Code Form.
|
||||
|
||||
**1.7. “Larger Work”**
|
||||
means a work that combines Covered Software with other material, in
|
||||
a separate file or files, that is not Covered Software.
|
||||
|
||||
**1.8. “License”**
|
||||
means this document.
|
||||
|
||||
**1.9. “Licensable”**
|
||||
means having the right to grant, to the maximum extent possible,
|
||||
whether at the time of the initial grant or subsequently, any and
|
||||
all of the rights conveyed by this License.
|
||||
|
||||
**1.10. “Modifications”**
|
||||
means any of the following:
|
||||
|
||||
* **(a)** any file in Source Code Form that results from an addition to,
|
||||
deletion from, or modification of the contents of Covered
|
||||
Software; or
|
||||
* **(b)** any new file in Source Code Form that contains any Covered
|
||||
Software.
|
||||
|
||||
**1.11. “Patent Claims” of a Contributor**
|
||||
means any patent claim(s), including without limitation, method,
|
||||
process, and apparatus claims, in any patent Licensable by such
|
||||
Contributor that would be infringed, but for the grant of the
|
||||
License, by the making, using, selling, offering for sale, having
|
||||
made, import, or transfer of either its Contributions or its
|
||||
Contributor Version.
|
||||
|
||||
**1.12. “Secondary License”**
|
||||
means either the GNU General Public License, Version 2.0, the GNU
|
||||
Lesser General Public License, Version 2.1, the GNU Affero General
|
||||
Public License, Version 3.0, or any later versions of those
|
||||
licenses.
|
||||
|
||||
**1.13. “Source Code Form”**
|
||||
means the form of the work preferred for making modifications.
|
||||
|
||||
**1.14. “You” (or “Your”)**
|
||||
means an individual or a legal entity exercising rights under this
|
||||
License. For legal entities, “You” includes any entity that
|
||||
controls, is controlled by, or is under common control with You. For
|
||||
purposes of this definition, “control” means **(a)** the power, direct
|
||||
or indirect, to cause the direction or management of such entity,
|
||||
whether by contract or otherwise, or **(b)** ownership of more than
|
||||
fifty percent (50%) of the outstanding shares or beneficial
|
||||
ownership of such entity.
|
||||
|
||||
|
||||
### 2. License Grants and Conditions
|
||||
|
||||
#### 2.1. Grants
|
||||
|
||||
Each Contributor hereby grants You a world-wide, royalty-free,
|
||||
non-exclusive license:
|
||||
|
||||
* **(a)** under intellectual property rights (other than patent or trademark)
|
||||
Licensable by such Contributor to use, reproduce, make available,
|
||||
modify, display, perform, distribute, and otherwise exploit its
|
||||
Contributions, either on an unmodified basis, with Modifications, or
|
||||
as part of a Larger Work; and
|
||||
* **(b)** under Patent Claims of such Contributor to make, use, sell, offer
|
||||
for sale, have made, import, and otherwise transfer either its
|
||||
Contributions or its Contributor Version.
|
||||
|
||||
#### 2.2. Effective Date
|
||||
|
||||
The licenses granted in Section 2.1 with respect to any Contribution
|
||||
become effective for each Contribution on the date the Contributor first
|
||||
distributes such Contribution.
|
||||
|
||||
#### 2.3. Limitations on Grant Scope
|
||||
|
||||
The licenses granted in this Section 2 are the only rights granted under
|
||||
this License. No additional rights or licenses will be implied from the
|
||||
distribution or licensing of Covered Software under this License.
|
||||
Notwithstanding Section 2.1(b) above, no patent license is granted by a
|
||||
Contributor:
|
||||
|
||||
* **(a)** for any code that a Contributor has removed from Covered Software;
|
||||
or
|
||||
* **(b)** for infringements caused by: **(i)** Your and any other third party's
|
||||
modifications of Covered Software, or **(ii)** the combination of its
|
||||
Contributions with other software (except as part of its Contributor
|
||||
Version); or
|
||||
* **(c)** under Patent Claims infringed by Covered Software in the absence of
|
||||
its Contributions.
|
||||
|
||||
This License does not grant any rights in the trademarks, service marks,
|
||||
or logos of any Contributor (except as may be necessary to comply with
|
||||
the notice requirements in Section 3.4).
|
||||
|
||||
#### 2.4. Subsequent Licenses
|
||||
|
||||
No Contributor makes additional grants as a result of Your choice to
|
||||
distribute the Covered Software under a subsequent version of this
|
||||
License (see Section 10.2) or under the terms of a Secondary License (if
|
||||
permitted under the terms of Section 3.3).
|
||||
|
||||
#### 2.5. Representation
|
||||
|
||||
Each Contributor represents that the Contributor believes its
|
||||
Contributions are its original creation(s) or it has sufficient rights
|
||||
to grant the rights to its Contributions conveyed by this License.
|
||||
|
||||
#### 2.6. Fair Use
|
||||
|
||||
This License is not intended to limit any rights You have under
|
||||
applicable copyright doctrines of fair use, fair dealing, or other
|
||||
equivalents.
|
||||
|
||||
#### 2.7. Conditions
|
||||
|
||||
Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
|
||||
in Section 2.1.
|
||||
|
||||
|
||||
### 3. Responsibilities
|
||||
|
||||
#### 3.1. Distribution of Source Form
|
||||
|
||||
All distribution of Covered Software in Source Code Form, including any
|
||||
Modifications that You create or to which You contribute, must be under
|
||||
the terms of this License. You must inform recipients that the Source
|
||||
Code Form of the Covered Software is governed by the terms of this
|
||||
License, and how they can obtain a copy of this License. You may not
|
||||
attempt to alter or restrict the recipients' rights in the Source Code
|
||||
Form.
|
||||
|
||||
#### 3.2. Distribution of Executable Form
|
||||
|
||||
If You distribute Covered Software in Executable Form then:
|
||||
|
||||
* **(a)** such Covered Software must also be made available in Source Code
|
||||
Form, as described in Section 3.1, and You must inform recipients of
|
||||
the Executable Form how they can obtain a copy of such Source Code
|
||||
Form by reasonable means in a timely manner, at a charge no more
|
||||
than the cost of distribution to the recipient; and
|
||||
|
||||
* **(b)** You may distribute such Executable Form under the terms of this
|
||||
License, or sublicense it under different terms, provided that the
|
||||
license for the Executable Form does not attempt to limit or alter
|
||||
the recipients' rights in the Source Code Form under this License.
|
||||
|
||||
#### 3.3. Distribution of a Larger Work
|
||||
|
||||
You may create and distribute a Larger Work under terms of Your choice,
|
||||
provided that You also comply with the requirements of this License for
|
||||
the Covered Software. If the Larger Work is a combination of Covered
|
||||
Software with a work governed by one or more Secondary Licenses, and the
|
||||
Covered Software is not Incompatible With Secondary Licenses, this
|
||||
License permits You to additionally distribute such Covered Software
|
||||
under the terms of such Secondary License(s), so that the recipient of
|
||||
the Larger Work may, at their option, further distribute the Covered
|
||||
Software under the terms of either this License or such Secondary
|
||||
License(s).
|
||||
|
||||
#### 3.4. Notices
|
||||
|
||||
You may not remove or alter the substance of any license notices
|
||||
(including copyright notices, patent notices, disclaimers of warranty,
|
||||
or limitations of liability) contained within the Source Code Form of
|
||||
the Covered Software, except that You may alter any license notices to
|
||||
the extent required to remedy known factual inaccuracies.
|
||||
|
||||
#### 3.5. Application of Additional Terms
|
||||
|
||||
You may choose to offer, and to charge a fee for, warranty, support,
|
||||
indemnity or liability obligations to one or more recipients of Covered
|
||||
Software. However, You may do so only on Your own behalf, and not on
|
||||
behalf of any Contributor. You must make it absolutely clear that any
|
||||
such warranty, support, indemnity, or liability obligation is offered by
|
||||
You alone, and You hereby agree to indemnify every Contributor for any
|
||||
liability incurred by such Contributor as a result of warranty, support,
|
||||
indemnity or liability terms You offer. You may include additional
|
||||
disclaimers of warranty and limitations of liability specific to any
|
||||
jurisdiction.
|
||||
|
||||
|
||||
### 4. Inability to Comply Due to Statute or Regulation
|
||||
|
||||
If it is impossible for You to comply with any of the terms of this
|
||||
License with respect to some or all of the Covered Software due to
|
||||
statute, judicial order, or regulation then You must: **(a)** comply with
|
||||
the terms of this License to the maximum extent possible; and **(b)**
|
||||
describe the limitations and the code they affect. Such description must
|
||||
be placed in a text file included with all distributions of the Covered
|
||||
Software under this License. Except to the extent prohibited by statute
|
||||
or regulation, such description must be sufficiently detailed for a
|
||||
recipient of ordinary skill to be able to understand it.
|
||||
|
||||
|
||||
### 5. Termination
|
||||
|
||||
**5.1.** The rights granted under this License will terminate automatically
|
||||
if You fail to comply with any of its terms. However, if You become
|
||||
compliant, then the rights granted under this License from a particular
|
||||
Contributor are reinstated **(a)** provisionally, unless and until such
|
||||
Contributor explicitly and finally terminates Your grants, and **(b)** on an
|
||||
ongoing basis, if such Contributor fails to notify You of the
|
||||
non-compliance by some reasonable means prior to 60 days after You have
|
||||
come back into compliance. Moreover, Your grants from a particular
|
||||
Contributor are reinstated on an ongoing basis if such Contributor
|
||||
notifies You of the non-compliance by some reasonable means, this is the
|
||||
first time You have received notice of non-compliance with this License
|
||||
from such Contributor, and You become compliant prior to 30 days after
|
||||
Your receipt of the notice.
|
||||
|
||||
**5.2.** If You initiate litigation against any entity by asserting a patent
|
||||
infringement claim (excluding declaratory judgment actions,
|
||||
counter-claims, and cross-claims) alleging that a Contributor Version
|
||||
directly or indirectly infringes any patent, then the rights granted to
|
||||
You by any and all Contributors for the Covered Software under Section
|
||||
2.1 of this License shall terminate.
|
||||
|
||||
**5.3.** In the event of termination under Sections 5.1 or 5.2 above, all
|
||||
end user license agreements (excluding distributors and resellers) which
|
||||
have been validly granted by You or Your distributors under this License
|
||||
prior to termination shall survive termination.
|
||||
|
||||
|
||||
### 6. Disclaimer of Warranty
|
||||
|
||||
> Covered Software is provided under this License on an “as is”
|
||||
> basis, without warranty of any kind, either expressed, implied, or
|
||||
> statutory, including, without limitation, warranties that the
|
||||
> Covered Software is free of defects, merchantable, fit for a
|
||||
> particular purpose or non-infringing. The entire risk as to the
|
||||
> quality and performance of the Covered Software is with You.
|
||||
> Should any Covered Software prove defective in any respect, You
|
||||
> (not any Contributor) assume the cost of any necessary servicing,
|
||||
> repair, or correction. This disclaimer of warranty constitutes an
|
||||
> essential part of this License. No use of any Covered Software is
|
||||
> authorized under this License except under this disclaimer.
|
||||
|
||||
### 7. Limitation of Liability
|
||||
|
||||
> Under no circumstances and under no legal theory, whether tort
|
||||
> (including negligence), contract, or otherwise, shall any
|
||||
> Contributor, or anyone who distributes Covered Software as
|
||||
> permitted above, be liable to You for any direct, indirect,
|
||||
> special, incidental, or consequential damages of any character
|
||||
> including, without limitation, damages for lost profits, loss of
|
||||
> goodwill, work stoppage, computer failure or malfunction, or any
|
||||
> and all other commercial damages or losses, even if such party
|
||||
> shall have been informed of the possibility of such damages. This
|
||||
> limitation of liability shall not apply to liability for death or
|
||||
> personal injury resulting from such party's negligence to the
|
||||
> extent applicable law prohibits such limitation. Some
|
||||
> jurisdictions do not allow the exclusion or limitation of
|
||||
> incidental or consequential damages, so this exclusion and
|
||||
> limitation may not apply to You.
|
||||
|
||||
|
||||
### 8. Litigation
|
||||
|
||||
Any litigation relating to this License may be brought only in the
|
||||
courts of a jurisdiction where the defendant maintains its principal
|
||||
place of business and such litigation shall be governed by laws of that
|
||||
jurisdiction, without reference to its conflict-of-law provisions.
|
||||
Nothing in this Section shall prevent a party's ability to bring
|
||||
cross-claims or counter-claims.
|
||||
|
||||
|
||||
### 9. Miscellaneous
|
||||
|
||||
This License represents the complete agreement concerning the subject
|
||||
matter hereof. If any provision of this License is held to be
|
||||
unenforceable, such provision shall be reformed only to the extent
|
||||
necessary to make it enforceable. Any law or regulation which provides
|
||||
that the language of a contract shall be construed against the drafter
|
||||
shall not be used to construe this License against a Contributor.
|
||||
|
||||
|
||||
### 10. Versions of the License
|
||||
|
||||
#### 10.1. New Versions
|
||||
|
||||
Mozilla Foundation is the license steward. Except as provided in Section
|
||||
10.3, no one other than the license steward has the right to modify or
|
||||
publish new versions of this License. Each version will be given a
|
||||
distinguishing version number.
|
||||
|
||||
#### 10.2. Effect of New Versions
|
||||
|
||||
You may distribute the Covered Software under the terms of the version
|
||||
of the License under which You originally received the Covered Software,
|
||||
or under the terms of any subsequent version published by the license
|
||||
steward.
|
||||
|
||||
#### 10.3. Modified Versions
|
||||
|
||||
If you create software not governed by this License, and you want to
|
||||
create a new license for such software, you may create and use a
|
||||
modified version of this License if you rename the license and remove
|
||||
any references to the name of the license steward (except to note that
|
||||
such modified license differs from this License).
|
||||
|
||||
#### 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses
|
||||
|
||||
If You choose to distribute Source Code Form that is Incompatible With
|
||||
Secondary Licenses under the terms of this version of the License, the
|
||||
notice described in Exhibit B of this License must be attached.
|
||||
|
||||
## Exhibit A - Source Code Form License Notice
|
||||
|
||||
This Source Code Form is subject to the terms of the Mozilla Public
|
||||
License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
If it is not possible or desirable to put the notice in a particular
|
||||
file, then You may include the notice in a location (such as a LICENSE
|
||||
file in a relevant directory) where a recipient would be likely to look
|
||||
for such a notice.
|
||||
|
||||
You may add additional accurate notices of copyright ownership.
|
||||
|
||||
## Exhibit B - “Incompatible With Secondary Licenses” Notice
|
||||
|
||||
This Source Code Form is "Incompatible With Secondary Licenses", as
|
||||
defined by the Mozilla Public License, v. 2.0.
|
||||
|
||||
|
@ -1,2 +0,0 @@
|
||||
#!/bin/sh
|
||||
nwjs /usr/share/notepost
|
@ -1,11 +0,0 @@
|
||||
[Desktop Entry]
|
||||
Name=NotePost
|
||||
Version=1.0
|
||||
Exec=/usr/bin/notepost
|
||||
Comment=Launch the NotePost client
|
||||
Icon=/usr/share/notepost/logo.svg
|
||||
Type=Application
|
||||
Terminal=false
|
||||
StartupNotify=true
|
||||
Encoding=UTF-8
|
||||
Categories=Office;
|
@ -1,359 +0,0 @@
|
||||
Copyright (c) 2018-2019 Netsyms Technologies.
|
||||
|
||||
Mozilla Public License Version 2.0
|
||||
==================================
|
||||
|
||||
### 1. Definitions
|
||||
|
||||
**1.1. “Contributor”**
|
||||
means each individual or legal entity that creates, contributes to
|
||||
the creation of, or owns Covered Software.
|
||||
|
||||
**1.2. “Contributor Version”**
|
||||
means the combination of the Contributions of others (if any) used
|
||||
by a Contributor and that particular Contributor's Contribution.
|
||||
|
||||
**1.3. “Contribution”**
|
||||
means Covered Software of a particular Contributor.
|
||||
|
||||
**1.4. “Covered Software”**
|
||||
means Source Code Form to which the initial Contributor has attached
|
||||
the notice in Exhibit A, the Executable Form of such Source Code
|
||||
Form, and Modifications of such Source Code Form, in each case
|
||||
including portions thereof.
|
||||
|
||||
**1.5. “Incompatible With Secondary Licenses”**
|
||||
means
|
||||
|
||||
* **(a)** that the initial Contributor has attached the notice described
|
||||
in Exhibit B to the Covered Software; or
|
||||
* **(b)** that the Covered Software was made available under the terms of
|
||||
version 1.1 or earlier of the License, but not also under the
|
||||
terms of a Secondary License.
|
||||
|
||||
**1.6. “Executable Form”**
|
||||
means any form of the work other than Source Code Form.
|
||||
|
||||
**1.7. “Larger Work”**
|
||||
means a work that combines Covered Software with other material, in
|
||||
a separate file or files, that is not Covered Software.
|
||||
|
||||
**1.8. “License”**
|
||||
means this document.
|
||||
|
||||
**1.9. “Licensable”**
|
||||
means having the right to grant, to the maximum extent possible,
|
||||
whether at the time of the initial grant or subsequently, any and
|
||||
all of the rights conveyed by this License.
|
||||
|
||||
**1.10. “Modifications”**
|
||||
means any of the following:
|
||||
|
||||
* **(a)** any file in Source Code Form that results from an addition to,
|
||||
deletion from, or modification of the contents of Covered
|
||||
Software; or
|
||||
* **(b)** any new file in Source Code Form that contains any Covered
|
||||
Software.
|
||||
|
||||
**1.11. “Patent Claims” of a Contributor**
|
||||
means any patent claim(s), including without limitation, method,
|
||||
process, and apparatus claims, in any patent Licensable by such
|
||||
Contributor that would be infringed, but for the grant of the
|
||||
License, by the making, using, selling, offering for sale, having
|
||||
made, import, or transfer of either its Contributions or its
|
||||
Contributor Version.
|
||||
|
||||
**1.12. “Secondary License”**
|
||||
means either the GNU General Public License, Version 2.0, the GNU
|
||||
Lesser General Public License, Version 2.1, the GNU Affero General
|
||||
Public License, Version 3.0, or any later versions of those
|
||||
licenses.
|
||||
|
||||
**1.13. “Source Code Form”**
|
||||
means the form of the work preferred for making modifications.
|
||||
|
||||
**1.14. “You” (or “Your”)**
|
||||
means an individual or a legal entity exercising rights under this
|
||||
License. For legal entities, “You” includes any entity that
|
||||
controls, is controlled by, or is under common control with You. For
|
||||
purposes of this definition, “control” means **(a)** the power, direct
|
||||
or indirect, to cause the direction or management of such entity,
|
||||
whether by contract or otherwise, or **(b)** ownership of more than
|
||||
fifty percent (50%) of the outstanding shares or beneficial
|
||||
ownership of such entity.
|
||||
|
||||
|
||||
### 2. License Grants and Conditions
|
||||
|
||||
#### 2.1. Grants
|
||||
|
||||
Each Contributor hereby grants You a world-wide, royalty-free,
|
||||
non-exclusive license:
|
||||
|
||||
* **(a)** under intellectual property rights (other than patent or trademark)
|
||||
Licensable by such Contributor to use, reproduce, make available,
|
||||
modify, display, perform, distribute, and otherwise exploit its
|
||||
Contributions, either on an unmodified basis, with Modifications, or
|
||||
as part of a Larger Work; and
|
||||
* **(b)** under Patent Claims of such Contributor to make, use, sell, offer
|
||||
for sale, have made, import, and otherwise transfer either its
|
||||
Contributions or its Contributor Version.
|
||||
|
||||
#### 2.2. Effective Date
|
||||
|
||||
The licenses granted in Section 2.1 with respect to any Contribution
|
||||
become effective for each Contribution on the date the Contributor first
|
||||
distributes such Contribution.
|
||||
|
||||
#### 2.3. Limitations on Grant Scope
|
||||
|
||||
The licenses granted in this Section 2 are the only rights granted under
|
||||
this License. No additional rights or licenses will be implied from the
|
||||
distribution or licensing of Covered Software under this License.
|
||||
Notwithstanding Section 2.1(b) above, no patent license is granted by a
|
||||
Contributor:
|
||||
|
||||
* **(a)** for any code that a Contributor has removed from Covered Software;
|
||||
or
|
||||
* **(b)** for infringements caused by: **(i)** Your and any other third party's
|
||||
modifications of Covered Software, or **(ii)** the combination of its
|
||||
Contributions with other software (except as part of its Contributor
|
||||
Version); or
|
||||
* **(c)** under Patent Claims infringed by Covered Software in the absence of
|
||||
its Contributions.
|
||||
|
||||
This License does not grant any rights in the trademarks, service marks,
|
||||
or logos of any Contributor (except as may be necessary to comply with
|
||||
the notice requirements in Section 3.4).
|
||||
|
||||
#### 2.4. Subsequent Licenses
|
||||
|
||||
No Contributor makes additional grants as a result of Your choice to
|
||||
distribute the Covered Software under a subsequent version of this
|
||||
License (see Section 10.2) or under the terms of a Secondary License (if
|
||||
permitted under the terms of Section 3.3).
|
||||
|
||||
#### 2.5. Representation
|
||||
|
||||
Each Contributor represents that the Contributor believes its
|
||||
Contributions are its original creation(s) or it has sufficient rights
|
||||
to grant the rights to its Contributions conveyed by this License.
|
||||
|
||||
#### 2.6. Fair Use
|
||||
|
||||
This License is not intended to limit any rights You have under
|
||||
applicable copyright doctrines of fair use, fair dealing, or other
|
||||
equivalents.
|
||||
|
||||
#### 2.7. Conditions
|
||||
|
||||
Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
|
||||
in Section 2.1.
|
||||
|
||||
|
||||
### 3. Responsibilities
|
||||
|
||||
#### 3.1. Distribution of Source Form
|
||||
|
||||
All distribution of Covered Software in Source Code Form, including any
|
||||
Modifications that You create or to which You contribute, must be under
|
||||
the terms of this License. You must inform recipients that the Source
|
||||
Code Form of the Covered Software is governed by the terms of this
|
||||
License, and how they can obtain a copy of this License. You may not
|
||||
attempt to alter or restrict the recipients' rights in the Source Code
|
||||
Form.
|
||||
|
||||
#### 3.2. Distribution of Executable Form
|
||||
|
||||
If You distribute Covered Software in Executable Form then:
|
||||
|
||||
* **(a)** such Covered Software must also be made available in Source Code
|
||||
Form, as described in Section 3.1, and You must inform recipients of
|
||||
the Executable Form how they can obtain a copy of such Source Code
|
||||
Form by reasonable means in a timely manner, at a charge no more
|
||||
than the cost of distribution to the recipient; and
|
||||
|
||||
* **(b)** You may distribute such Executable Form under the terms of this
|
||||
License, or sublicense it under different terms, provided that the
|
||||
license for the Executable Form does not attempt to limit or alter
|
||||
the recipients' rights in the Source Code Form under this License.
|
||||
|
||||
#### 3.3. Distribution of a Larger Work
|
||||
|
||||
You may create and distribute a Larger Work under terms of Your choice,
|
||||
provided that You also comply with the requirements of this License for
|
||||
the Covered Software. If the Larger Work is a combination of Covered
|
||||
Software with a work governed by one or more Secondary Licenses, and the
|
||||
Covered Software is not Incompatible With Secondary Licenses, this
|
||||
License permits You to additionally distribute such Covered Software
|
||||
under the terms of such Secondary License(s), so that the recipient of
|
||||
the Larger Work may, at their option, further distribute the Covered
|
||||
Software under the terms of either this License or such Secondary
|
||||
License(s).
|
||||
|
||||
#### 3.4. Notices
|
||||
|
||||
You may not remove or alter the substance of any license notices
|
||||
(including copyright notices, patent notices, disclaimers of warranty,
|
||||
or limitations of liability) contained within the Source Code Form of
|
||||
the Covered Software, except that You may alter any license notices to
|
||||
the extent required to remedy known factual inaccuracies.
|
||||
|
||||
#### 3.5. Application of Additional Terms
|
||||
|
||||
You may choose to offer, and to charge a fee for, warranty, support,
|
||||
indemnity or liability obligations to one or more recipients of Covered
|
||||
Software. However, You may do so only on Your own behalf, and not on
|
||||
behalf of any Contributor. You must make it absolutely clear that any
|
||||
such warranty, support, indemnity, or liability obligation is offered by
|
||||
You alone, and You hereby agree to indemnify every Contributor for any
|
||||
liability incurred by such Contributor as a result of warranty, support,
|
||||
indemnity or liability terms You offer. You may include additional
|
||||
disclaimers of warranty and limitations of liability specific to any
|
||||
jurisdiction.
|
||||
|
||||
|
||||
### 4. Inability to Comply Due to Statute or Regulation
|
||||
|
||||
If it is impossible for You to comply with any of the terms of this
|
||||
License with respect to some or all of the Covered Software due to
|
||||
statute, judicial order, or regulation then You must: **(a)** comply with
|
||||
the terms of this License to the maximum extent possible; and **(b)**
|
||||
describe the limitations and the code they affect. Such description must
|
||||
be placed in a text file included with all distributions of the Covered
|
||||
Software under this License. Except to the extent prohibited by statute
|
||||
or regulation, such description must be sufficiently detailed for a
|
||||
recipient of ordinary skill to be able to understand it.
|
||||
|
||||
|
||||
### 5. Termination
|
||||
|
||||
**5.1.** The rights granted under this License will terminate automatically
|
||||
if You fail to comply with any of its terms. However, if You become
|
||||
compliant, then the rights granted under this License from a particular
|
||||
Contributor are reinstated **(a)** provisionally, unless and until such
|
||||
Contributor explicitly and finally terminates Your grants, and **(b)** on an
|
||||
ongoing basis, if such Contributor fails to notify You of the
|
||||
non-compliance by some reasonable means prior to 60 days after You have
|
||||
come back into compliance. Moreover, Your grants from a particular
|
||||
Contributor are reinstated on an ongoing basis if such Contributor
|
||||
notifies You of the non-compliance by some reasonable means, this is the
|
||||
first time You have received notice of non-compliance with this License
|
||||
from such Contributor, and You become compliant prior to 30 days after
|
||||
Your receipt of the notice.
|
||||
|
||||
**5.2.** If You initiate litigation against any entity by asserting a patent
|
||||
infringement claim (excluding declaratory judgment actions,
|
||||
counter-claims, and cross-claims) alleging that a Contributor Version
|
||||
directly or indirectly infringes any patent, then the rights granted to
|
||||
You by any and all Contributors for the Covered Software under Section
|
||||
2.1 of this License shall terminate.
|
||||
|
||||
**5.3.** In the event of termination under Sections 5.1 or 5.2 above, all
|
||||
end user license agreements (excluding distributors and resellers) which
|
||||
have been validly granted by You or Your distributors under this License
|
||||
prior to termination shall survive termination.
|
||||
|
||||
|
||||
### 6. Disclaimer of Warranty
|
||||
|
||||
> Covered Software is provided under this License on an “as is”
|
||||
> basis, without warranty of any kind, either expressed, implied, or
|
||||
> statutory, including, without limitation, warranties that the
|
||||
> Covered Software is free of defects, merchantable, fit for a
|
||||
> particular purpose or non-infringing. The entire risk as to the
|
||||
> quality and performance of the Covered Software is with You.
|
||||
> Should any Covered Software prove defective in any respect, You
|
||||
> (not any Contributor) assume the cost of any necessary servicing,
|
||||
> repair, or correction. This disclaimer of warranty constitutes an
|
||||
> essential part of this License. No use of any Covered Software is
|
||||
> authorized under this License except under this disclaimer.
|
||||
|
||||
### 7. Limitation of Liability
|
||||
|
||||
> Under no circumstances and under no legal theory, whether tort
|
||||
> (including negligence), contract, or otherwise, shall any
|
||||
> Contributor, or anyone who distributes Covered Software as
|
||||
> permitted above, be liable to You for any direct, indirect,
|
||||
> special, incidental, or consequential damages of any character
|
||||
> including, without limitation, damages for lost profits, loss of
|
||||
> goodwill, work stoppage, computer failure or malfunction, or any
|
||||
> and all other commercial damages or losses, even if such party
|
||||
> shall have been informed of the possibility of such damages. This
|
||||
> limitation of liability shall not apply to liability for death or
|
||||
> personal injury resulting from such party's negligence to the
|
||||
> extent applicable law prohibits such limitation. Some
|
||||
> jurisdictions do not allow the exclusion or limitation of
|
||||
> incidental or consequential damages, so this exclusion and
|
||||
> limitation may not apply to You.
|
||||
|
||||
|
||||
### 8. Litigation
|
||||
|
||||
Any litigation relating to this License may be brought only in the
|
||||
courts of a jurisdiction where the defendant maintains its principal
|
||||
place of business and such litigation shall be governed by laws of that
|
||||
jurisdiction, without reference to its conflict-of-law provisions.
|
||||
Nothing in this Section shall prevent a party's ability to bring
|
||||
cross-claims or counter-claims.
|
||||
|
||||
|
||||
### 9. Miscellaneous
|
||||
|
||||
This License represents the complete agreement concerning the subject
|
||||
matter hereof. If any provision of this License is held to be
|
||||
unenforceable, such provision shall be reformed only to the extent
|
||||
necessary to make it enforceable. Any law or regulation which provides
|
||||
that the language of a contract shall be construed against the drafter
|
||||
shall not be used to construe this License against a Contributor.
|
||||
|
||||
|
||||
### 10. Versions of the License
|
||||
|
||||
#### 10.1. New Versions
|
||||
|
||||
Mozilla Foundation is the license steward. Except as provided in Section
|
||||
10.3, no one other than the license steward has the right to modify or
|
||||
publish new versions of this License. Each version will be given a
|
||||
distinguishing version number.
|
||||
|
||||
#### 10.2. Effect of New Versions
|
||||
|
||||
You may distribute the Covered Software under the terms of the version
|
||||
of the License under which You originally received the Covered Software,
|
||||
or under the terms of any subsequent version published by the license
|
||||
steward.
|
||||
|
||||
#### 10.3. Modified Versions
|
||||
|
||||
If you create software not governed by this License, and you want to
|
||||
create a new license for such software, you may create and use a
|
||||
modified version of this License if you rename the license and remove
|
||||
any references to the name of the license steward (except to note that
|
||||
such modified license differs from this License).
|
||||
|
||||
#### 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses
|
||||
|
||||
If You choose to distribute Source Code Form that is Incompatible With
|
||||
Secondary Licenses under the terms of this version of the License, the
|
||||
notice described in Exhibit B of this License must be attached.
|
||||
|
||||
## Exhibit A - Source Code Form License Notice
|
||||
|
||||
This Source Code Form is subject to the terms of the Mozilla Public
|
||||
License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
If it is not possible or desirable to put the notice in a particular
|
||||
file, then You may include the notice in a location (such as a LICENSE
|
||||
file in a relevant directory) where a recipient would be likely to look
|
||||
for such a notice.
|
||||
|
||||
You may add additional accurate notices of copyright ownership.
|
||||
|
||||
## Exhibit B - “Incompatible With Secondary Licenses” Notice
|
||||
|
||||
This Source Code Form is "Incompatible With Secondary Licenses", as
|
||||
defined by the Mozilla Public License, v. 2.0.
|
||||
|
||||
|
@ -1,21 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component type="desktop-application">
|
||||
<id>notepostapp</id>
|
||||
<metadata_license>MPL-2.0</metadata_license>
|
||||
<project_license>MPL-2.0</project_license>
|
||||
<name>NotePost</name>
|
||||
<summary>Desktop client for NotePost</summary>
|
||||
<description>
|
||||
|
||||
</description>
|
||||
<launchable type="desktop-id">notepost.desktop</launchable>
|
||||
<url type="homepage">https://netsyms.com/apps/notepost</url>
|
||||
<screenshots>
|
||||
<screenshot type="default">
|
||||
<image>https://netsyms.com/data/uploads/apps/notepost/app/home.png</image>
|
||||
</screenshot>
|
||||
</screenshots>
|
||||
<provides>
|
||||
<id>notepost.desktop</id>
|
||||
</provides>
|
||||
</component>
|
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 101 KiB |
Binary file not shown.
Before Width: | Height: | Size: 7.4 KiB |
@ -1,93 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
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:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="512"
|
||||
height="512"
|
||||
version="1.1"
|
||||
viewBox="0 0 135.47 135.47"
|
||||
id="svg926"
|
||||
sodipodi:docname="logo.svg"
|
||||
inkscape:version="0.92.3 (2405546, 2018-03-11)"
|
||||
inkscape:export-filename="/home/skylar/Documents/Projects/Assets/NotePost/App/logo.png"
|
||||
inkscape:export-xdpi="96"
|
||||
inkscape:export-ydpi="96">
|
||||
<metadata
|
||||
id="metadata932">
|
||||
<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></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs
|
||||
id="defs930" />
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1011"
|
||||
id="namedview928"
|
||||
showgrid="false"
|
||||
inkscape:zoom="1.0413252"
|
||||
inkscape:cx="229.93784"
|
||||
inkscape:cy="198.05844"
|
||||
inkscape:window-x="1920"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg926" />
|
||||
<rect
|
||||
style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.26458984;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
id="rect963"
|
||||
width="135.47"
|
||||
height="135.47"
|
||||
x="-6.1035155e-07"
|
||||
y="-6.1035155e-07"
|
||||
rx="26.458984"
|
||||
ry="26.458984" />
|
||||
<g
|
||||
transform="translate(259.75 23.221)"
|
||||
id="g924">
|
||||
<g
|
||||
transform="matrix(.26458 0 0 .26458 -259.75 -166.19)"
|
||||
id="g922">
|
||||
<g
|
||||
transform="translate(9.006 -6.5066)"
|
||||
id="g920">
|
||||
<path
|
||||
d="m60.228 615.52c-8.1253 0-14.666 6.5426-14.666 14.668v190.67c0 8.1253 6.5407 14.666 14.666 14.666h37.861v-59.871c0-8.1253 6.5426-14.666 14.668-14.666h105.37l0.1313-9.0918v-94.41c0-8.1253 6.5426-14.666 14.668-14.666h32.637v-12.627c0-8.1253-6.5407-14.668-14.666-14.668z"
|
||||
fill="#e57373"
|
||||
id="path914" />
|
||||
<path
|
||||
transform="translate(0 540.36)"
|
||||
d="m243.09 111.68c-8.1253 0-14.668 6.5407-14.668 14.666v94.41h96.258c8.1253 0 14.666 6.5407 14.666 14.666v96.258h94.41c8.1253 0 14.666-6.5407 14.666-14.666v-190.67c0-8.1253-6.5407-14.666-14.666-14.666z"
|
||||
fill="#81c784"
|
||||
id="path916" />
|
||||
<rect
|
||||
x="108.26"
|
||||
y="770.21"
|
||||
width="220"
|
||||
height="220"
|
||||
rx="14.667"
|
||||
ry="14.667"
|
||||
fill="#ffee58"
|
||||
id="rect918" />
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 3.0 KiB |
@ -1,11 +0,0 @@
|
||||
#!/bin/bash
|
||||
# $1 is the binary location, $2 is the arch, $3 is the version
|
||||
mkdir out
|
||||
mkdir -p appimage/NotePost.AppDir/usr/lib/notepost
|
||||
rm -rf appimage/NotePost.AppDir/usr/lib/notepost
|
||||
mv "$1com.netsyms.NotePostApp" "$1notepost"
|
||||
rsync -rv "$1" appimage/NotePost.AppDir/usr/lib/notepost
|
||||
chmod +x appimage/NotePost.AppDir/AppRun
|
||||
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O appimagetool
|
||||
chmod +x appimagetool
|
||||
./appimagetool appimage/NotePost.AppDir "out/NotePost_$2_$3.AppImage"
|
@ -1,11 +0,0 @@
|
||||
#!/bin/bash
|
||||
# $1 is the app source location, $2 is the svg icon, $3 is the app version code, $4 is the build number
|
||||
mkdir -p out
|
||||
rm -rf debian/usr/share/notepost
|
||||
mkdir -p debian/usr/share/notepost
|
||||
mkdir -p debian/usr/share/doc/notepost
|
||||
rsync -rv "$1" debian/usr/share/notepost
|
||||
cp debian/DEBIAN/copyright debian/usr/share/doc/notepost/
|
||||
sed -i "s/Version:\s[0-9.\-]\+/Version: $3+b$4/" debian/DEBIAN/control
|
||||
cp "$2" debian/usr/share/notepost/logo.svg
|
||||
dpkg-deb -b debian "out/notepost_$3+b${4}_all.deb"
|
@ -0,0 +1,38 @@
|
||||
#!/bin/sh
|
||||
# This script removes some stuff in `www/node_modules` that the app doesn't need to run.
|
||||
# It removes about 6MB from the build size.
|
||||
|
||||
cd www/node_modules
|
||||
rm -rf array-parallel
|
||||
rm -rf codemirror
|
||||
rm -rf codemirror-spell-checker
|
||||
rm -rf dom7
|
||||
rm -rf matches-selector
|
||||
rm -rf path-to-regexp
|
||||
rm -rf ssr-window
|
||||
rm -rf template7
|
||||
rm -rf throttleit
|
||||
rm -rf tiny-emitter
|
||||
rm -rf typo-js
|
||||
|
||||
cd @fortawesome/fontawesome-free
|
||||
rm -rf js
|
||||
rm -rf less
|
||||
rm -rf scss
|
||||
rm -rf sprites
|
||||
rm -rf svgs
|
||||
cd ../..
|
||||
|
||||
cd jquery
|
||||
rm -rf src
|
||||
rm -rf external
|
||||
cd ..
|
||||
|
||||
cd framework7
|
||||
rm -rf components
|
||||
rm -rf lazy-components
|
||||
rm -rf less
|
||||
rm -rf modules
|
||||
rm -rf utils
|
||||
|
||||
echo "Cleanup finished"
|
@ -1,7 +0,0 @@
|
||||
cd www
|
||||
yarn licenses generate-disclaimer > ../license-credits.md
|
||||
cd ..
|
||||
yarn licenses generate-disclaimer >> license-credits.md
|
||||
|
||||
cp www/pages/credits.template.html www/pages/credits.html
|
||||
sed -e "/{{credits}}/r license-credits.md" -e "/{{credits}}/d" -i www/pages/credits.html
|
@ -1,69 +0,0 @@
|
||||
#!/bin/bash
|
||||
# This script removes some stuff in `www/node_modules` that the app doesn't need to run.
|
||||
|
||||
echo "Removing bloat in node_modules..."
|
||||
|
||||
set -e
|
||||
|
||||
DIR="$(pwd)/www/node_modules"
|
||||
|
||||
cd $DIR
|
||||
rm -rf array-parallel
|
||||
rm -rf codemirror
|
||||
rm -rf codemirror-spell-checker
|
||||
rm -rf dom7
|
||||
rm -rf matches-selector
|
||||
rm -rf path-to-regexp
|
||||
rm -rf ssr-window
|
||||
rm -rf template7
|
||||
rm -rf throttleit
|
||||
rm -rf tiny-emitter
|
||||
rm -rf typo-js
|
||||
rm -rf .bin
|
||||
cd $DIR
|
||||
|
||||
cd @fortawesome/fontawesome-free
|
||||
rm -rf {js,less,metadata,scss,sprites,svgs}
|
||||
find css -type f -not -name 'all.min.css' -delete
|
||||
cd $DIR
|
||||
|
||||
cd jquery
|
||||
rm -rf src
|
||||
rm -rf external
|
||||
cd $DIR
|
||||
|
||||
cd framework7
|
||||
rm -rf components
|
||||
rm -rf lazy-components
|
||||
rm -rf less
|
||||
rm -rf modules
|
||||
rm -rf utils
|
||||
rm -f framework7.*
|
||||
rm -f framework7-lite.*
|
||||
find css -type f -not -name 'framework7.bundle.min.css' -delete
|
||||
find js -type f -not -name 'framework7.bundle.min.js' -delete
|
||||
cd $DIR
|
||||
|
||||
cd jquery
|
||||
rm -rf src
|
||||
rm -rf external
|
||||
find dist -type f -not -name 'jquery.min.js' -delete
|
||||
cd $DIR
|
||||
|
||||
cd material-design-icons
|
||||
# Remove everything except the icon font and license, but also exclude the
|
||||
# current and parent folder (. , ..) so rm won't complain about refusing
|
||||
# to delete the whole filesystem
|
||||
find . -maxdepth 1 -not -name '.' -not -name 'LICENSE' -not -name 'iconfont' -exec rm -rf {} \;
|
||||
cd $DIR
|
||||
|
||||
cd marked
|
||||
rm -rf {bin,lib,man,src}
|
||||
cd $DIR
|
||||
|
||||
cd shufflejs
|
||||
rm -rf src
|
||||
find dist -type f -not -name 'shuffle.min.js' -delete
|
||||
cd $DIR
|
||||
|
||||
echo "Cleanup finished"
|
@ -1,21 +0,0 @@
|
||||
/*
|
||||
This Source Code Form is subject to the terms of the Mozilla Public
|
||||
License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
.popup {
|
||||
background-color: var(--f7-page-bg-color);
|
||||
}
|
||||
|
||||
.page[data-name="editor"] .page-content textarea#note {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
resize: none;
|
||||
border: none;
|
||||
overflow: auto;
|
||||
outline: none;
|
||||
box-shadow: none;
|
||||
font-size: 1rem;
|
||||
padding: 0.75rem;
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,39 @@
|
||||
@font-face {
|
||||
font-family: 'Material Icons';
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
src:
|
||||
/* from https://fonts.gstatic.com/s/materialicons/v41/flUhRq6tzZclQEJ-Vdg-IuiaDsNY.eot */
|
||||
url('Material_Icons.eot?#iefix') format('embedded-opentype'),
|
||||
/* from https://fonts.gstatic.com/s/materialicons/v41/flUhRq6tzZclQEJ-Vdg-IuiaDsNa.woff */
|
||||
url('Material_Icons.woff') format('woff'),
|
||||
/* from https://fonts.gstatic.com/s/materialicons/v41/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2 */
|
||||
url('Material_Icons.woff2') format('woff2'),
|
||||
/* from https://fonts.gstatic.com/l/font?kit=flUhRq6tzZclQEJ-Vdg-IuiaDsNb&skey=4fbfe4498ec2960a&v=v41#MaterialIcons */
|
||||
url('Material_Icons.svg#MaterialIcons') format('svg'),
|
||||
/* from https://fonts.gstatic.com/s/materialicons/v41/flUhRq6tzZclQEJ-Vdg-IuiaDsNZ.ttf */
|
||||
url('Material_Icons.ttf') format('truetype');
|
||||
}
|
||||
|
||||
|
||||
.material-icons {
|
||||
font-family: 'Material Icons';
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
font-size: 24px; /* Preferred icon size */
|
||||
display: inline-block;
|
||||
line-height: 1;
|
||||
text-transform: none;
|
||||
letter-spacing: normal;
|
||||
word-wrap: normal;
|
||||
white-space: nowrap;
|
||||
direction: ltr;
|
||||
|
||||
/* Support for all WebKit browsers. */
|
||||
-webkit-font-smoothing: antialiased;
|
||||
/* Support for Safari and Chrome. */
|
||||
text-rendering: optimizeLegibility;
|
||||
|
||||
/* Support for Firefox. */
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
Binary file not shown.
@ -0,0 +1,51 @@
|
||||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<defs >
|
||||
<font id="MaterialIcons" horiz-adv-x="512" ><font-face
|
||||
font-family="Material Icons"
|
||||
units-per-em="512"
|
||||
panose-1="2 0 5 3 0 0 0 0 0 0"
|
||||
ascent="512"
|
||||
descent="0"
|
||||
alphabetic="0" />
|
||||
<glyph unicode="0" d="" />
|
||||
<glyph unicode="1" d="" />
|
||||
<glyph unicode="2" d="" />
|
||||
<glyph unicode="3" d="" />
|
||||
<glyph unicode="4" d="" />
|
||||
<glyph unicode="5" d="" />
|
||||
<glyph unicode="6" d="" />
|
||||
<glyph unicode="7" d="" />
|
||||
<glyph unicode="8" d="" />
|
||||
<glyph unicode="9" d="" />
|
||||
<glyph unicode="_" d="" />
|
||||
<glyph unicode="a" d="" />
|
||||
<glyph unicode="b" d="" />
|
||||
<glyph unicode="c" d="" />
|
||||
<glyph unicode="d" d="" />
|
||||
<glyph unicode="e" d="" />
|
||||
<glyph unicode="f" d="" />
|
||||
<glyph unicode="g" d="" />
|
||||
<glyph unicode="h" d="" />
|
||||
<glyph unicode="i" d="" />
|
||||
<glyph unicode="j" d="" />
|
||||
<glyph unicode="k" d="" />
|
||||
<glyph unicode="l" d="" />
|
||||
<glyph unicode="m" d="" />
|
||||
<glyph unicode="n" d="" />
|
||||
<glyph unicode="o" d="" />
|
||||
<glyph unicode="p" d="" />
|
||||
<glyph unicode="q" d="" />
|
||||
<glyph unicode="r" d="" />
|
||||
<glyph unicode="s" d="" />
|
||||
<glyph unicode="t" d="" />
|
||||
<glyph unicode="u" d="" />
|
||||
<glyph unicode="v" d="" />
|
||||
<glyph unicode="w" d="" />
|
||||
<glyph unicode="x" d="" />
|
||||
<glyph unicode="y" d="" />
|
||||
<glyph unicode="z" d="" />
|
||||
</font>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 1.4 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,67 @@
|
||||
/*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
function saveme(callback) {
|
||||
sync(); // update textareas with correct content
|
||||
|
||||
var noteid = $("#note_content").data("noteid");
|
||||
var note = new Note();
|
||||
if (noteid != "") {
|
||||
note = NOTES.get(noteid);
|
||||
if (note.getSyncStatus() != "LOCAL_ONLY") {
|
||||
note.setSyncStatus("LOCAL_EDITED");
|
||||
}
|
||||
}
|
||||
note.setText($("#note_content").val());
|
||||
note.setModified();
|
||||
NOTES.set(note);
|
||||
NOTES.syncAll(function () {
|
||||
app.toast.create({
|
||||
text: 'Note saved.',
|
||||
closeTimeout: 2000
|
||||
}).open();
|
||||
$("#orig_content").val(note.content);
|
||||
if (typeof callback == "function") {
|
||||
callback();
|
||||
}
|
||||
}, function () {
|
||||
app.toast.create({
|
||||
text: 'Note saved locally.',
|
||||
closeTimeout: 2000
|
||||
}).open();
|
||||
$("#orig_content").val(note.content);
|
||||
if (typeof callback == "function") {
|
||||
callback();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function init() {
|
||||
document.getElementById("noteframe").contentWindow.initEditor($("#note_content").val());
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the text from the editor iframe and put it in the hidden textarea
|
||||
* @returns {undefined}
|
||||
*/
|
||||
function sync() {
|
||||
$("#note_content").val(document.getElementById("noteframe").contentWindow.getMarkdown());
|
||||
}
|
||||
|
||||
function exiteditor() {
|
||||
sync();
|
||||
if ($("#note_content").val() == "" || $("#note_content").val() === $("#orig_content").val()) {
|
||||
router.back({force: true, ignoreCache: true, reload: true});
|
||||
} else {
|
||||
saveme(function () {
|
||||
router.back({force: true, ignoreCache: true, reload: true});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
$("#noteframe").on("load", function () {
|
||||
init();
|
||||
});
|
@ -1,294 +0,0 @@
|
||||
/*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
|
||||
class MarkdownEditor {
|
||||
|
||||
constructor(textarea, toolbar, buttons) {
|
||||
this.textarea = textarea;
|
||||
this.toolbar = toolbar;
|
||||
|
||||
if (typeof buttons != "undefined") {
|
||||
for (var i = 0; i < buttons.length; i++) {
|
||||
var div = document.createElement('div');
|
||||
if (buttons[i]['spacer']) {
|
||||
continue; // skip spacers
|
||||
div.className = "toolbar-spacer";
|
||||
div.innerHTML = "|";
|
||||
} else {
|
||||
div.className = "link toolbar-button";
|
||||
if (typeof buttons[i]['linestart'] == "string") {
|
||||
div.setAttribute("data-linestart", buttons[i]['linestart']);
|
||||
div.setAttribute("data-padspace", buttons[i]['padspace'] ? 1 : 0);
|
||||
div.setAttribute("data-maximum", buttons[i]['maximum']);
|
||||
} else {
|
||||
div.setAttribute("data-before", buttons[i]['before']);
|
||||
div.setAttribute("data-after", buttons[i]['after']);
|
||||
}
|
||||
div.innerHTML = "<i class=\"" + buttons[i]['icon'] + " fa-fw\"></i>";
|
||||
}
|
||||
toolbar.appendChild(div);
|
||||
}
|
||||
}
|
||||
|
||||
var btns = toolbar.getElementsByClassName("toolbar-button");
|
||||
var editorobj = this;
|
||||
for (var i = 0; i < btns.length; i++) {
|
||||
btns[i].addEventListener('click', function () {
|
||||
if (editorobj.textarea.value.length == editorobj.getCursorPosition()[0] && editorobj.textarea.value.length == editorobj.getCursorPosition()[1]) {
|
||||
//return;
|
||||
}
|
||||
if (typeof this.dataset.linestart == "string") {
|
||||
editorobj.formatline(this.dataset.linestart, this.dataset.padspace, this.dataset.maximum);
|
||||
} else {
|
||||
editorobj.format(this.dataset.before, this.dataset.after);
|
||||
}
|
||||
editorobj.textarea.focus();
|
||||
}, false);
|
||||
}
|
||||
}
|
||||
|
||||
formatline(start, padspace, maximum) {
|
||||
var text = this.getText();
|
||||
var cursor = this.getCursorPosition();
|
||||
|
||||
var startofline = cursor[0];
|
||||
|
||||
while (startofline - 1 > 0 && text[startofline - 1] != "\n") {
|
||||
startofline--;
|
||||
}
|
||||
|
||||
console.log("startofline", startofline, text[startofline - 1]);
|
||||
|
||||
// Check if the line is already formatted and count how many times
|
||||
var falsestart = startofline;
|
||||
var count = 0;
|
||||
while (falsestart != text.length && text.slice(falsestart, falsestart + start.length) == start) {
|
||||
falsestart += start.length;
|
||||
count++;
|
||||
}
|
||||
console.log("falsestart", falsestart);
|
||||
// Check if we're allowed to add another formatting mark
|
||||
if (count > 0) {
|
||||
if (maximum <= count) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
// If it's the first one and a space is needed after
|
||||
if (count == 0 && padspace == 1) {
|
||||
start += " ";
|
||||
}
|
||||
|
||||
text = [text.slice(0, startofline), start, text.slice(startofline)].join('');
|
||||
this.textarea.value = text;
|
||||
this.textarea.selectionStart = cursor[0] + start.length;
|
||||
this.textarea.selectionEnd = cursor[0] + start.length;
|
||||
}
|
||||
|
||||
format(before, after) {
|
||||
var text = this.getText();
|
||||
var cursor = this.getCursorPosition();
|
||||
var origcursor = this.getCursorPosition();
|
||||
if (cursor[0] == cursor[1]) {
|
||||
// Walk backwards and forwards to get the whole word
|
||||
while (cursor[0] - 1 >= 0 && text[cursor[0] - 1] != " " && text[cursor[0] - 1] != "\n") {
|
||||
cursor[0]--;
|
||||
}
|
||||
while (cursor[1] < text.length && text[cursor[1]] != " " && text[cursor[1]] != "\n") {
|
||||
cursor[1]++;
|
||||
}
|
||||
}
|
||||
|
||||
var subject = text.substring(cursor[0], cursor[1]);
|
||||
|
||||
if (subject.startsWith(before) && subject.endsWith(after)) {
|
||||
// Don't do anything
|
||||
return;
|
||||
}
|
||||
|
||||
if (subject == "") {
|
||||
subject = " ";
|
||||
origcursor[0]++;
|
||||
origcursor[1]++;
|
||||
}
|
||||
|
||||
subject = before + subject + after;
|
||||
text = [text.slice(0, cursor[0]), subject, text.slice(cursor[1])].join('');
|
||||
this.textarea.value = text;
|
||||
this.textarea.selectionStart = origcursor[0] + before.length;
|
||||
this.textarea.selectionEnd = origcursor[1] + before.length;
|
||||
}
|
||||
|
||||
getCursorPosition() {
|
||||
var start = this.textarea.selectionStart;
|
||||
var end = this.textarea.selectionEnd;
|
||||
console.log([start, end], this.textarea.value.length);
|
||||
return [start, end];
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the textarea value, with an extra newline if needed.
|
||||
* @returns string
|
||||
*/
|
||||
getText() {
|
||||
var text = this.textarea.value;
|
||||
// if (text[text.length - 1] != "\n") {
|
||||
// text += "\n";
|
||||
// }
|
||||
return text;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var editor;
|
||||
function initEditor() {
|
||||
editor = new MarkdownEditor(
|
||||
document.getElementById('note'),
|
||||
document.getElementById("editor-toolbar"),
|
||||
[
|
||||
{
|
||||
label: "Bold",
|
||||
icon: "fas fa-bold",
|
||||
before: "**",
|
||||
after: "**"
|
||||
},
|
||||
{
|
||||
label: "Italic",
|
||||
icon: "fas fa-italic",
|
||||
before: "*",
|
||||
after: "*"
|
||||
},
|
||||
{
|
||||
label: "Heading",
|
||||
icon: "fas fa-heading",
|
||||
linestart: "#",
|
||||
padspace: true,
|
||||
maximum: 6
|
||||
},
|
||||
{
|
||||
label: "Strikethrough",
|
||||
icon: "fas fa-strikethrough",
|
||||
before: "~~",
|
||||
after: "~~"
|
||||
},
|
||||
{
|
||||
spacer: true
|
||||
},
|
||||
{
|
||||
label: "Quote",
|
||||
icon: "fas fa-quote-left",
|
||||
linestart: "> ",
|
||||
padspace: false,
|
||||
maximum: 6
|
||||
},
|
||||
{
|
||||
label: "Checklist",
|
||||
icon: "fas fa-tasks",
|
||||
linestart: "- [ ]",
|
||||
padspace: true,
|
||||
maximum: 1
|
||||
},
|
||||
{
|
||||
label: "List",
|
||||
icon: "fas fa-list-ul",
|
||||
linestart: "-",
|
||||
padspace: true,
|
||||
maximum: 1
|
||||
}
|
||||
]);
|
||||
|
||||
document.getElementById('note').addEventListener('keydown', function (event) {
|
||||
if (event.ctrlKey || event.metaKey) {
|
||||
switch (String.fromCharCode(event.which).toLowerCase()) {
|
||||
case 's':
|
||||
event.preventDefault();
|
||||
savenote();
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function getMarkdown() {
|
||||
return document.getElementById('note').value;
|
||||
}
|
||||
|
||||
var save_in_progress = false;
|
||||
|
||||
function savenote(callback) {
|
||||
if (save_in_progress) {
|
||||
console.log("Warning: save already in progress, doing nothing.");
|
||||
return;
|
||||
}
|
||||
app.toast.create({
|
||||
text: '<i class="fas fa-sync fa-spin"></i> Saving...',
|
||||
closeTimeout: 2 * 60 * 1000 // two whole minutes should be enough for *any* connection.
|
||||
}).open();
|
||||
save_in_progress = true;
|
||||
|
||||
var noteid = $("#note").data("noteid");
|
||||
var note = new Note();
|
||||
var append = "";
|
||||
if (noteid != "") {
|
||||
note = NOTES.get(noteid);
|
||||
if (note.getSyncStatus() != "LOCAL_ONLY") {
|
||||
note.setSyncStatus("LOCAL_EDITED");
|
||||
}
|
||||
} else {
|
||||
var tempuuid = Math.random() * 100000000000000000;
|
||||
append = " <!-- MobileNewNoteSaveTempID:" + tempuuid + " -->";
|
||||
}
|
||||
note.setText($("#note").val() + append);
|
||||
note.setModified();
|
||||
NOTES.set(note);
|
||||
NOTES.syncAll(function () {
|
||||
app.toast.create({
|
||||
text: '<i class="fas fa-check"></i> Note saved.',
|
||||
closeTimeout: 3000
|
||||
}).open();
|
||||
$("#orignote").val(note.content);
|
||||
if (append != "") {
|
||||
for (n in NOTES.notes) {
|
||||
if (NOTES.notes[n].getText().endsWith(append)) {
|
||||
$("#note").data("noteid", NOTES.notes[n].noteid);
|
||||
NOTES.notes[n].setText(NOTES.notes[n].getText().replace(append, ""));
|
||||
}
|
||||
}
|
||||
}
|
||||
save_in_progress = false;
|
||||
if (typeof callback == "function") {
|
||||
callback();
|
||||
}
|
||||
}, function () {
|
||||
app.toast.create({
|
||||
text: '<i class="fas fa-save"></i> Note saved locally.',
|
||||
closeTimeout: 3000
|
||||
}).open();
|
||||
$("#orignote").val(note.content);
|
||||
if (append != "") {
|
||||
for (n in NOTES.notes) {
|
||||
if (NOTES.notes[n].getText().endsWith(append)) {
|
||||
$("#note").data("noteid", NOTES.notes[n].noteid);
|
||||
NOTES.notes[n].setText(NOTES.notes[n].getText().replace(append, ""));
|
||||
}
|
||||
}
|
||||
}
|
||||
save_in_progress = false;
|
||||
if (typeof callback == "function") {
|
||||
callback();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function exiteditor() {
|
||||
if ($("#note").val() == "" || $("#note").val() === $("#orignote").val()) {
|
||||
router.back({force: true, ignoreCache: true, reload: true});
|
||||
} else {
|
||||
savenote(function () {
|
||||
router.back({force: true, ignoreCache: true, reload: true});
|
||||
});
|
||||
}
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
/*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
|
||||
$('.item-content[data-setting=editor] .toggle input').on("change", function () {
|
||||
var checked = $(this).prop('checked');
|
||||
localStorage.setItem("alternateeditor", checked);
|
||||
});
|
||||
|
||||
$('.item-content[data-setting=darktheme] .toggle input').on("change", function () {
|
||||
var checked = $(this).prop('checked');
|
||||
localStorage.setItem("darktheme", checked);
|
||||
|
||||
setAppTheme();
|
||||
});
|
@ -1,16 +1,16 @@
|
||||
{
|
||||
"name": "com.netsyms.NotePostApp",
|
||||
"displayName": "NotePost",
|
||||
"version": "1.3.2",
|
||||
"version": "1.1.0",
|
||||
"description": "A cross-platform client app for NotePost.",
|
||||
"author": "Netsyms Technologies",
|
||||
"license": "MPL-2.0",
|
||||
"dependencies": {
|
||||
"framework7": "^5.7.12",
|
||||
"jquery": "^3.5.1",
|
||||
"marked": "^1.1.1",
|
||||
"shufflejs": "^5.2.3",
|
||||
"@fortawesome/fontawesome-free": "^5.14.0",
|
||||
"material-design-icons": "^3.0.1"
|
||||
"@fortawesome/fontawesome-free": "^5.6.3",
|
||||
"easymde": "^2.4.2",
|
||||
"framework7": "^3.6.5",
|
||||
"jquery": "^3.3.1",
|
||||
"marked": "^0.6.0",
|
||||
"shufflejs": "^5.2.1"
|
||||
}
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,40 +0,0 @@
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
<div class="page" data-name="credits">
|
||||
|
||||
<div class="navbar">
|
||||
<div class="navbar-bg"></div>
|
||||
<div class="navbar-inner">
|
||||
<div class="left">
|
||||
<a href="#" class="link icon-only back">
|
||||
<i class="icon icon-back"></i>
|
||||
</a>
|
||||
</div>
|
||||
<div class="title">Open Source</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="page-content">
|
||||
|
||||
<div class="block">
|
||||
<p>This program is licensed under the Mozilla Public License 2.0.
|
||||
To get the source code, visit https://source.netsyms.com/Apps/NotePostApp.
|
||||
<br>
|
||||
This application relies on and is bundled with third-party code.
|
||||
See below for the their licenses and where to find source code.
|
||||
It is likely that not all of the listed third-party code is present
|
||||
on your system; some of it is platform-specific and not included
|
||||
in all builds.
|
||||
</div>
|
||||
|
||||
<div class="block">
|
||||
<h2>Third Party Code and Assets</h2>
|
||||
<pre style="white-space: pre-line; overflow-wrap: break-word;">
|
||||
{{credits}}
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
@ -0,0 +1,39 @@
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
<div class="page" data-name="editnote">
|
||||
|
||||
<div class="navbar">
|
||||
<div class="navbar-inner">
|
||||
<div class="left">
|
||||
<a href="#" class="link icon-only" onclick="exiteditor()">
|
||||
<i class="icon icon-back"></i>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="title">
|
||||
{{#if notetitle}}
|
||||
{{notetitle}}
|
||||
{{else}}
|
||||
New note
|
||||
{{/if}}</div>
|
||||
|
||||
<div class="right">
|
||||
<a href="#" onclick="saveme()" class="link icon-only">
|
||||
<i class="fas fa-save"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="page-content">
|
||||
<textarea id="note_content" style="display: none;" data-noteid="{{noteid}}">{{content}}</textarea>
|
||||
<textarea id="orig_content" style="display: none;">{{content}}</textarea>
|
||||
|
||||
<iframe id="noteframe" src="pages/editor.html" style="width: 100%; height: 98%; border: 0px; padding: 0px; margin: 0px;"></iframe>
|
||||
|
||||
</div>
|
||||
|
||||
<script src="js/editnote.js"></script>
|
||||
|
||||
</div>
|
@ -1,43 +1,71 @@
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
<div class="page" data-name="editor">
|
||||
<!DOCTYPE html>
|
||||
<!--
|
||||
This Source Code Form is subject to the terms of the Mozilla Public
|
||||
License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
-->
|
||||
<title>Editor</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="../node_modules/@fortawesome/fontawesome-free/css/all.min.css">
|
||||
<link rel="stylesheet" href="../node_modules/easymde/dist/easymde.min.css">
|
||||
<script src="../node_modules/easymde/dist/easymde.min.js"></script>
|
||||
|
||||
<div class="navbar">
|
||||
<div class="navbar-bg"></div>
|
||||
<div class="navbar-inner">
|
||||
<div class="left">
|
||||
<a href="#" class="link icon-only" onclick="exiteditor()">
|
||||
<i class="icon icon-back"></i>
|
||||
</a>
|
||||
</div>
|
||||
<style>
|
||||
body {
|
||||
margin: 0px;
|
||||
font-family: Roboto, Noto, Helvetica, Arial, sans-serif;
|
||||
}
|
||||
|
||||
<div class="title">
|
||||
{{#if notetitle}}
|
||||
{{notetitle}}
|
||||
{{else}}
|
||||
New note
|
||||
{{/if}}</div>
|
||||
.CodeMirror {
|
||||
border: none;
|
||||
margin-top: 45px;
|
||||
height: calc(100vh - 45px);
|
||||
}
|
||||
|
||||
<div class="right">
|
||||
<a href="#" onclick="savenote()" class="link icon-only">
|
||||
<i class="fas fa-save"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
.editor-toolbar {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
z-index: 99999;
|
||||
background-color: white;
|
||||
border: none;
|
||||
border-radius: 0px;
|
||||
/* Following lines are from Framework7 .elevation-2 */
|
||||
-webkit-box-shadow: 0px 3px 1px -2px rgba(0,0,0,.2),0px 2px 2px 0px rgba(0,0,0,.14),0px 1px 5px 0px rgba(0,0,0,.12);
|
||||
box-shadow: 0px 3px 1px -2px rgba(0,0,0,.2),0px 2px 2px 0px rgba(0,0,0,.14),0px 1px 5px 0px rgba(0,0,0,.12);
|
||||
/* end Framework7 code */
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="toolbar toolbar-top">
|
||||
<div class="toolbar-inner" id="editor-toolbar">
|
||||
<textarea id="note"></textarea>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
var easymde;
|
||||
function initEditor(markdown) {
|
||||
document.getElementById('note').value = markdown;
|
||||
easymde = new EasyMDE({
|
||||
element: document.getElementById("note"),
|
||||
autoDownloadFontAwesome: false,
|
||||
autofocus: true,
|
||||
forceSync: true,
|
||||
status: false,
|
||||
spellChecker: false,
|
||||
toolbar: [
|
||||
"bold",
|
||||
"italic",
|
||||
"heading",
|
||||
"|",
|
||||
"quote",
|
||||
"unordered-list",
|
||||
"ordered-list",
|
||||
"horizontal-rule"
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
<div class="page-content">
|
||||
<textarea style="display: none;" id="orignote">{{content}}</textarea>
|
||||
<textarea id="note" data-noteid="{{noteid}}">{{content}}</textarea>
|
||||
</div>
|
||||
|
||||
<script src="js/editor.js"></script>
|
||||
|
||||
</div>
|
||||
function getMarkdown() {
|
||||
return document.getElementById('note').value;
|
||||
}
|
||||
</script>
|
Loading…
Reference in New Issue