Compare commits
385 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
a654419881 | ||
|
497cf996e8 | ||
|
d5dbc421b1 | ||
|
f965708ad3 | ||
|
f001d197a8 | ||
|
d588bddfaa | ||
|
b780a62588 | ||
|
154b3573a4 | ||
|
7d2551c9c3 | ||
|
7644d05225 | ||
|
1851b0e7d1 | ||
|
76c4d99b87 | ||
|
849ef418a6 | ||
|
d733c0e010 | ||
|
a48e5cd4e8 | ||
|
03942a0073 | ||
|
0bc53dc063 | ||
|
56605beea2 | ||
|
8059d3fbd1 | ||
|
46c38ce0e0 | ||
|
dfa928c1f7 | ||
|
cb696276da | ||
|
5f80628a4d | ||
|
b77f868fc8 | ||
|
6ad9931e43 | ||
|
011a65f73b | ||
|
72ccc90ea0 | ||
|
f3e6c0da32 | ||
|
9308c3f38c | ||
|
c8a7c70838 | ||
|
40f6dcfb4c | ||
|
09785cf366 | ||
|
7279b508db | ||
|
d7996c9707 | ||
|
f0432e724a | ||
|
2f9bb7b8c0 | ||
|
f4b8b5b160 | ||
|
e2962322be | ||
|
c982e42999 | ||
|
eed52a5cfd | ||
|
6272a2eb4f | ||
|
69a4a895d4 | ||
|
511e4b1da0 | ||
|
f22e6f7204 | ||
|
3d4437037e | ||
|
d8745597e9 | ||
|
b279a9693c | ||
|
7fa483d27c | ||
|
9b64c1fbdb | ||
|
a37f84e988 | ||
|
96ac3e53e8 | ||
|
416a7b36e7 | ||
|
be4d53db62 | ||
|
7154ebbf5c | ||
|
4d65bfe3f8 | ||
|
0f0c50a178 | ||
|
9a2fd97f3c | ||
|
3f2fe79151 | ||
|
1ef380d995 | ||
|
c213d5056c | ||
|
62c67cb09f | ||
|
1dd6c7dde5 | ||
|
86bace70a5 | ||
|
ee912b24c7 | ||
|
3e65e1539b | ||
|
4ac2409318 | ||
|
d953f6bcab | ||
|
e0c2b62a6c | ||
|
544d879c0b | ||
|
28f75449d7 | ||
|
fdc84aa6bb | ||
|
592b9d95c6 | ||
|
4abdab5cdb | ||
|
858508bfa9 | ||
|
116413e78d | ||
|
031a26116c | ||
|
65962e26ce | ||
|
30913a5d58 | ||
|
61618fb37c | ||
|
a40ab434ca | ||
|
dbbd930f81 | ||
|
ff3ae3860e | ||
|
e1c4d1a417 | ||
|
e1180a1d84 | ||
|
e57444dc32 | ||
|
f36019c94d | ||
|
c67c8cefdf | ||
|
a9a69b046f | ||
|
98a75e67d8 | ||
|
7188eb9db4 | ||
|
52b13f6d56 | ||
|
8e2daef144 | ||
|
73571f1c48 | ||
|
3e00f6078d | ||
|
355ba2c278 | ||
|
4e08adb76f | ||
|
eb8284ecdb | ||
|
7be93b1fbb | ||
|
76cd1b15ac | ||
|
92bcb25ef7 | ||
|
bb8cac2b2f | ||
|
39d9e5fd8b | ||
|
5a94431b04 | ||
|
c639b0cbf5 | ||
|
f81579371b | ||
|
284dbdb362 | ||
|
5f05f85e41 | ||
|
61faec147b | ||
|
d552538541 | ||
|
8787d997b2 | ||
|
adde092ea6 | ||
|
a808281dd2 | ||
|
6103aad2a7 | ||
|
1e010ec004 | ||
|
a8e36f41d5 | ||
|
f45029b2e8 | ||
|
147f3ce073 | ||
|
ccc726f2ae | ||
|
6769026265 | ||
|
ce5276ba97 | ||
|
b480aae59b | ||
|
ce59d29bb3 | ||
|
fb5f20b308 | ||
|
cee42a1296 | ||
|
7f88f507df | ||
|
2b95bce272 | ||
|
6463af0c31 | ||
|
19a8b6c285 | ||
|
06ea5e1878 | ||
|
4451bbdd71 | ||
|
2f1cc71922 | ||
|
a3286a9896 | ||
|
83ca33611b | ||
|
4f41fb7b54 | ||
|
7151a48138 | ||
|
aaaa4e4569 | ||
|
872d2942b4 | ||
|
918b768634 | ||
|
8305eb4403 | ||
|
91e7c66f9e | ||
|
e392efc091 | ||
|
458ae3731d | ||
|
a647272cf0 | ||
|
72472c13c5 | ||
|
6225d20d1f | ||
|
67f0739d3c | ||
|
17d835d694 | ||
|
42799b0662 | ||
|
d20694e52c | ||
|
62feb7ff60 | ||
|
e29e745b96 | ||
|
340312fa80 | ||
|
006239913e | ||
|
f4bc8cc817 | ||
|
fb1f43bb17 | ||
|
24cef9995a | ||
|
31ffd8d7e9 | ||
|
873184f69b | ||
|
da6977569f | ||
|
8808b38d83 | ||
|
ad654e30d5 | ||
|
6f11487dba | ||
|
dd0d54d4d0 | ||
|
0fd0451c17 | ||
|
06f2fda946 | ||
|
c249333e2a | ||
|
9755a69be8 | ||
|
18e4f7ffe7 | ||
|
7cb60aaace | ||
|
fbcfe432c5 | ||
|
ed71726e87 | ||
|
31a0449e71 | ||
|
04450a6464 | ||
|
d0ec598ee4 | ||
|
ca8b05631a | ||
|
3223fd26f4 | ||
|
7847aeda75 | ||
|
7d02ddfdb5 | ||
|
5079cd9ff2 | ||
|
48f6412721 | ||
|
498e80f2d3 | ||
|
5269a4b7fa | ||
|
88a2f9c85c | ||
|
f20b8c2dc6 | ||
|
bd2081c3b6 | ||
|
6ac4131003 | ||
|
4c5e0447a9 | ||
|
545a2206d7 | ||
|
aa47ffb30f | ||
|
83b175bb5b | ||
|
04bfbec96b | ||
|
f950e9b03f | ||
|
a0f21796c2 | ||
|
9af8720199 | ||
|
53c432ce12 | ||
|
553bbfc818 | ||
|
7b0122a8db | ||
|
7ea4f570cb | ||
|
1e1f2582c5 | ||
|
7e2d512fde | ||
|
6b75485a1e | ||
|
0cfcc00912 | ||
|
496b19b3f1 | ||
|
9618591158 | ||
|
55b6394bf3 | ||
|
4a1dc2c80e | ||
|
cb66158b2d | ||
|
da04d3ce51 | ||
|
bcbce682d5 | ||
|
08f7521e1e | ||
|
3579e7eab5 | ||
|
5922c6b216 | ||
|
c558e729bd | ||
|
ca80101174 | ||
|
6124f483dc | ||
|
90d58e4e2b | ||
|
8cd37d602c | ||
|
e4ed26a961 | ||
|
bc57d229fa | ||
|
c53cd52b4d | ||
|
0d7ca97556 | ||
|
c1e2fd125c | ||
|
6856f84faa | ||
|
de091dfd64 | ||
|
cc07016b07 | ||
|
122f20905c | ||
|
5ff8beb82f | ||
|
ff6cd57873 | ||
|
4c948408c4 | ||
|
cc3a1d78da | ||
|
0cc544a95f | ||
|
03b7402dc5 | ||
|
dd5c400c24 | ||
|
abc702c21f | ||
|
cc3e1bdee8 | ||
|
10cfa773ca | ||
|
8dc42b1f41 | ||
|
6e7ea9a549 | ||
|
ed2ccdd504 | ||
|
6d2bad01e6 | ||
|
3847831d80 | ||
|
44462f4d71 | ||
|
4d20589773 | ||
|
52140ec1a9 | ||
|
08c2a7ad64 | ||
|
d19796f14c | ||
|
e4f53a48d2 | ||
|
154163bd6c | ||
|
4502414934 | ||
|
38e4bc61d9 | ||
|
86c471afcd | ||
|
e2698aaead | ||
|
8cfe4b0f82 | ||
|
fd90a490c0 | ||
|
16c5ffadc7 | ||
|
4a184721e4 | ||
|
1e3bd937ed | ||
|
0f6932f1e8 | ||
|
cab98776db | ||
|
fbc1e3ed3b | ||
|
805d16abda | ||
|
f133229287 | ||
|
8f4031572a | ||
|
d25fa796c0 | ||
|
089d6a5c9e | ||
|
3f83355d9f | ||
|
40380e3066 | ||
|
a6748bafb3 | ||
|
b52f6eb77c | ||
|
98c933fdb7 | ||
|
ece7ffadd6 | ||
|
591bceb8ef | ||
|
04cfd07176 | ||
|
db2282a351 | ||
|
0ec3d6ca9d | ||
|
442b7ce0d3 | ||
|
6a068a90b2 | ||
|
9a6f6c8b39 | ||
|
52d5c32950 | ||
|
de47cff86d | ||
|
a459174f98 | ||
|
75d5aa3a77 | ||
|
c254ca524f | ||
|
51934b8d8d | ||
|
a5dd686bb2 | ||
|
4cbfd04522 | ||
|
6d5d9323bd | ||
|
76063a6284 | ||
|
4119924e57 | ||
|
537336754c | ||
|
06f73919bd | ||
|
3f3e46081c | ||
|
68e4b4eaad | ||
|
9dcb4b51e5 | ||
|
8543849ea1 | ||
|
6ce5240e12 | ||
|
5bc25aefce | ||
|
b737ca7471 | ||
|
a5d7366f94 | ||
|
98f822d89c | ||
|
c33a8250ee | ||
|
adad406696 | ||
|
d82eec0fa4 | ||
|
c93f474547 | ||
|
0afd4a6234 | ||
|
f42786a840 | ||
|
1c1f044966 | ||
|
ad7a80e260 | ||
|
5e040c062c | ||
|
0cede5f90a | ||
|
8dc0deb2a4 | ||
|
1ca44b8f44 | ||
|
4ba9e60194 | ||
|
9d0bb4257f | ||
|
1a273b9bca | ||
|
d9e93cd6c4 | ||
|
5d39860707 | ||
|
60a6f714bc | ||
|
6eebeca259 | ||
|
995034c53f | ||
|
45a0981d05 | ||
|
3d8577a689 | ||
|
5292fc1402 | ||
|
03063f1137 | ||
|
b125a768b8 | ||
|
a721f170e4 | ||
|
76cd69ea16 | ||
|
45d4f277e2 | ||
|
fc2a52aa1a | ||
|
b3e5a1e48d | ||
|
45eb902030 | ||
|
456f7ac00c | ||
|
a93bda71fe | ||
|
0f9d92dd3d | ||
|
5543e9ef64 | ||
|
22dd613660 | ||
|
f7502fe34b | ||
|
8254206f44 | ||
|
3a57cfea02 | ||
|
71bf0437c1 | ||
|
eca4e24362 | ||
|
9a6efb7b37 | ||
|
4b666cbbd2 | ||
|
f8f46db910 | ||
|
f529adac99 | ||
|
3a52b9764b | ||
|
7e78d7716b | ||
|
0488c5c4cb | ||
|
921cc3b6c6 | ||
|
2a7aa28d4c | ||
|
7b3440ac4c | ||
|
958e5a80b7 | ||
|
3179117c62 | ||
|
d895463167 | ||
|
7e0e513051 | ||
|
4309c4f8e2 | ||
|
20b1c90574 | ||
|
7ff6ceb585 | ||
|
3dc3f334ec | ||
|
3476211f8b | ||
|
48e299916f | ||
|
35aebc9f52 | ||
|
cb3e1cf1e9 | ||
|
db509955f6 | ||
|
fb39899f8e | ||
|
f5d4bedc07 | ||
|
e710709c15 | ||
|
d74d6d9539 | ||
|
435e8dfc3b | ||
|
6c68459b34 | ||
|
2e75a63b26 | ||
|
c328996568 | ||
|
c648f19693 | ||
|
2caaf8e8c1 | ||
|
ceb7a7303d | ||
|
c01f533342 | ||
|
ff50361e19 | ||
|
3539a452a3 | ||
|
9dfe084a02 | ||
|
66204401c9 | ||
|
0644e2897d | ||
|
5761451def | ||
|
12db3d20ee | ||
|
80a70a6649 | ||
|
02ed297529 |
1628
.eslintignore
31
.eslintrc.js
@@ -15,7 +15,8 @@ module.exports = {
|
|||||||
'Atomics': 'readonly',
|
'Atomics': 'readonly',
|
||||||
'SharedArrayBuffer': 'readonly',
|
'SharedArrayBuffer': 'readonly',
|
||||||
|
|
||||||
// Jasmine variables
|
// Jest variables
|
||||||
|
'test': 'readonly',
|
||||||
'expect': 'readonly',
|
'expect': 'readonly',
|
||||||
'describe': 'readonly',
|
'describe': 'readonly',
|
||||||
'it': 'readonly',
|
'it': 'readonly',
|
||||||
@@ -23,7 +24,6 @@ module.exports = {
|
|||||||
'afterAll': 'readonly',
|
'afterAll': 'readonly',
|
||||||
'beforeEach': 'readonly',
|
'beforeEach': 'readonly',
|
||||||
'afterEach': 'readonly',
|
'afterEach': 'readonly',
|
||||||
'jasmine': 'readonly',
|
|
||||||
|
|
||||||
// React Native variables
|
// React Native variables
|
||||||
'__DEV__': 'readonly',
|
'__DEV__': 'readonly',
|
||||||
@@ -126,10 +126,37 @@ module.exports = {
|
|||||||
{
|
{
|
||||||
// enable the rule specifically for TypeScript files
|
// enable the rule specifically for TypeScript files
|
||||||
'files': ['*.ts', '*.tsx'],
|
'files': ['*.ts', '*.tsx'],
|
||||||
|
'parserOptions': {
|
||||||
|
// Required for @typescript-eslint/no-floating-promises
|
||||||
|
'project': './tsconfig.eslint.json',
|
||||||
|
},
|
||||||
'rules': {
|
'rules': {
|
||||||
// Warn only because it would make it difficult to convert JS classes to TypeScript, unless we
|
// Warn only because it would make it difficult to convert JS classes to TypeScript, unless we
|
||||||
// make everything public which is not great. New code however should specify member accessibility.
|
// make everything public which is not great. New code however should specify member accessibility.
|
||||||
'@typescript-eslint/explicit-member-accessibility': ['warn'],
|
'@typescript-eslint/explicit-member-accessibility': ['warn'],
|
||||||
|
'@typescript-eslint/type-annotation-spacing': ['error', { 'before': false, 'after': true }],
|
||||||
|
'@typescript-eslint/comma-dangle': ['error', {
|
||||||
|
'arrays': 'always-multiline',
|
||||||
|
'objects': 'always-multiline',
|
||||||
|
'imports': 'always-multiline',
|
||||||
|
'exports': 'always-multiline',
|
||||||
|
'enums': 'always-multiline',
|
||||||
|
'generics': 'always-multiline',
|
||||||
|
'tuples': 'always-multiline',
|
||||||
|
'functions': 'never',
|
||||||
|
}],
|
||||||
|
'@typescript-eslint/semi': ['error', 'always'],
|
||||||
|
'@typescript-eslint/member-delimiter-style': ['error', {
|
||||||
|
'multiline': {
|
||||||
|
'delimiter': 'semi',
|
||||||
|
'requireLast': true,
|
||||||
|
},
|
||||||
|
'singleline': {
|
||||||
|
'delimiter': 'semi',
|
||||||
|
'requireLast': false,
|
||||||
|
},
|
||||||
|
}],
|
||||||
|
'@typescript-eslint/no-floating-promises': ['error'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@@ -1,15 +0,0 @@
|
|||||||
---
|
|
||||||
name: "\U0001F914 Feature requests and support"
|
|
||||||
about: 'For non-bug issues we recommend using the forum, where you''ll be more likely
|
|
||||||
to get an answer: https://discourse.joplinapp.org/'
|
|
||||||
title: ''
|
|
||||||
labels: ''
|
|
||||||
assignees: ''
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
If this is a feature request or a support query, please note that you'll not get an answer here.
|
|
||||||
|
|
||||||
Instead we recommend using the forum where you'll are a lot more likely to get an answer: https://discourse.joplinapp.org/
|
|
||||||
|
|
||||||
The forum is also the right place to submit a feature request so that it can be discussed by other users.
|
|
5
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
blank_issues_enabled: false
|
||||||
|
contact_links:
|
||||||
|
- name: "\U0001F914 Feature requests and support"
|
||||||
|
url: https://discourse.joplinapp.org/
|
||||||
|
about: I have a question or feature request …
|
1597
.gitignore
vendored
40
.travis.yml
@@ -1,5 +1,5 @@
|
|||||||
# Only build tags (Doesn't work - doesn't build anything)
|
# Only build tags (Doesn't work - doesn't build anything)
|
||||||
if: tag IS present OR type = pull_request
|
if: tag IS present OR type = pull_request OR branch = dev
|
||||||
|
|
||||||
rvm: 2.3.3
|
rvm: 2.3.3
|
||||||
|
|
||||||
@@ -17,19 +17,28 @@ matrix:
|
|||||||
- os: osx
|
- os: osx
|
||||||
osx_image: xcode9.0
|
osx_image: xcode9.0
|
||||||
language: node_js
|
language: node_js
|
||||||
node_js: "10"
|
node_js: "12"
|
||||||
env:
|
cache:
|
||||||
- ELECTRON_CACHE=$HOME/.cache/electron
|
npm: false
|
||||||
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
|
# Cache was disabled because when changing from node_js 10 to node_js 12
|
||||||
|
# it was still using build files from Node 10 when building SQLite which
|
||||||
|
# was making it fail. Might be ok to re-enable later on, although it doesn't
|
||||||
|
# make build that much faster.
|
||||||
|
#
|
||||||
|
# env:
|
||||||
|
# - ELECTRON_CACHE=$HOME/.cache/electron
|
||||||
|
# - ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
|
||||||
|
|
||||||
- os: linux
|
- os: linux
|
||||||
sudo: required
|
sudo: required
|
||||||
dist: trusty
|
dist: trusty
|
||||||
language: node_js
|
language: node_js
|
||||||
node_js: "10"
|
node_js: "12"
|
||||||
env:
|
cache:
|
||||||
- ELECTRON_CACHE=$HOME/.cache/electron
|
npm: false
|
||||||
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
|
# env:
|
||||||
|
# - ELECTRON_CACHE=$HOME/.cache/electron
|
||||||
|
# - ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
|
||||||
|
|
||||||
# cache:
|
# cache:
|
||||||
# directories:
|
# directories:
|
||||||
@@ -61,21 +70,16 @@ script:
|
|||||||
- |
|
- |
|
||||||
# Install tools
|
# Install tools
|
||||||
npm install
|
npm install
|
||||||
cd Tools
|
|
||||||
npm install
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
# Run test units.
|
# Run test units.
|
||||||
# Only do it for pull requests because Travis randomly fails to run them
|
# Only do it for pull requests because Travis randomly fails to run them
|
||||||
# and that would break the desktop release.
|
# and that would break the desktop release.
|
||||||
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
|
if [ "$TRAVIS_PULL_REQUEST" != "false" ] || [ "$TRAVIS_BRANCH" = "dev" ]; then
|
||||||
cd CliClient
|
|
||||||
npm run test-ci
|
npm run test-ci
|
||||||
testResult=$?
|
testResult=$?
|
||||||
if [ $testResult -ne 0 ]; then
|
if [ $testResult -ne 0 ]; then
|
||||||
exit $testResult
|
exit $testResult
|
||||||
fi
|
fi
|
||||||
cd ..
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Run linter for pull requests only - this is so that
|
# Run linter for pull requests only - this is so that
|
||||||
@@ -93,7 +97,7 @@ script:
|
|||||||
# tool like poedit. Doing it for Linux only is sufficient.
|
# tool like poedit. Doing it for Linux only is sufficient.
|
||||||
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
|
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
|
||||||
if [ "$TRAVIS_OS_NAME" != "osx" ]; then
|
if [ "$TRAVIS_OS_NAME" != "osx" ]; then
|
||||||
node Tools/validate-translation.js
|
node packages/tools/validate-translation.js
|
||||||
testResult=$?
|
testResult=$?
|
||||||
if [ $testResult -ne 0 ]; then
|
if [ $testResult -ne 0 ]; then
|
||||||
exit $testResult
|
exit $testResult
|
||||||
@@ -102,7 +106,7 @@ script:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Find out if we should run the build or not. Electron-builder gets stuck when
|
# Find out if we should run the build or not. Electron-builder gets stuck when
|
||||||
# builing PRs so we disable it in this case. The Linux build should provide
|
# building PRs so we disable it in this case. The Linux build should provide
|
||||||
# enough info if the app builds or not.
|
# enough info if the app builds or not.
|
||||||
# https://github.com/electron-userland/electron-builder/issues/4263
|
# https://github.com/electron-userland/electron-builder/issues/4263
|
||||||
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
|
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
|
||||||
@@ -112,5 +116,5 @@ script:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Prepare the Electron app and build it
|
# Prepare the Electron app and build it
|
||||||
cd ElectronClient
|
cd packages/app-desktop
|
||||||
USE_HARD_LINKS=false npm run dist
|
USE_HARD_LINKS=false npm run dist
|
||||||
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 9.4 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 480 B After Width: | Height: | Size: 480 B |
Before Width: | Height: | Size: 855 B After Width: | Height: | Size: 855 B |
Before Width: | Height: | Size: 300 KiB After Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 97 KiB After Width: | Height: | Size: 97 KiB |
@@ -13,7 +13,7 @@ gulp.task('icon-packager', function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('deploy', function() {
|
gulp.task('deploy', function() {
|
||||||
fs.copyFileSync(`${__dirname}/dist/icons/Joplin/icons.js`, `${__dirname}/../../../ElectronClient/gui/NoteEditor/NoteBody/TinyMCE/icons.js`);
|
fs.copyFileSync(`${__dirname}/dist/icons/Joplin/icons.js`, `${__dirname}/../../../packages/app-desktop/gui/NoteEditor/NoteBody/TinyMCE/icons.js`);
|
||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
});
|
});
|
||||||
|
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
@@ -27,7 +27,7 @@ module.exports = function(grunt) {
|
|||||||
// },
|
// },
|
||||||
|
|
||||||
shell: {
|
shell: {
|
||||||
command: 'tsc',
|
command: 'tsc --project tsconfig.json',
|
||||||
},
|
},
|
||||||
|
|
||||||
rollup: {
|
rollup: {
|
||||||
@@ -125,7 +125,7 @@ module.exports = function(grunt) {
|
|||||||
// { src: ['changelog.txt'], dest: 'dist', expand: true },
|
// { src: ['changelog.txt'], dest: 'dist', expand: true },
|
||||||
{
|
{
|
||||||
src: ['dist/joplinLists.js'],
|
src: ['dist/joplinLists.js'],
|
||||||
dest: '../../../ElectronClient/gui/NoteEditor/NoteBody/TinyMCE/plugins/lists.js',
|
dest: '../../../packages/app-desktop/gui/NoteEditor/NoteBody/TinyMCE/plugins/lists.js',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
@@ -1,11 +1,13 @@
|
|||||||
# TinyMCE Joplin Lists Plugin
|
# TinyMCE Joplin Lists Plugin
|
||||||
|
|
||||||
|
**As of 2020-11-02 this module no longer builds (a ton of TypeScript errors). No idea why since nothing was changed but should be investigated if modifying this plugin is ever needed.**
|
||||||
|
|
||||||
This is based on https://github.com/tinymce/tinymce/tree/59748a11303fb7cf00fdb8c9392dcb082ee9d965/modules/tinymce/src/plugins/lists
|
This is based on https://github.com/tinymce/tinymce/tree/59748a11303fb7cf00fdb8c9392dcb082ee9d965/modules/tinymce/src/plugins/lists
|
||||||
|
|
||||||
But with support for Joplin checkboxes.
|
But with support for Joplin checkboxes.
|
||||||
|
|
||||||
## Building
|
## Building
|
||||||
|
|
||||||
Use `npm i && npm run build` to build the plugin, which will also copy the compiled version to the right ElectronClient sub-directory.
|
Use `npm i && npm run build` to build the plugin, which will also copy the compiled version to the right packages/app-desktop sub-directory.
|
||||||
|
|
||||||
To test the plugin, use `npm run buildAndStart`, which will build the plugin and start the desktop application.
|
To test the plugin, use `npm run buildAndStart`, which will build the plugin and start the desktop application.
|
@@ -9,7 +9,7 @@
|
|||||||
"test": "bedrock-auto -b phantomjs -d src/test/ts/",
|
"test": "bedrock-auto -b phantomjs -d src/test/ts/",
|
||||||
"test-manual": "bedrock -d src/test/ts/",
|
"test-manual": "bedrock -d src/test/ts/",
|
||||||
"start": "grunt webpack",
|
"start": "grunt webpack",
|
||||||
"buildAndStart": "yarn build && cd .. && cd .. && cd .. && cd ElectronClient && npm start"
|
"buildAndStart": "yarn build && cd .. && cd .. && cd .. && cd packages/app-desktop && npm start"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "Tiny Technologies Inc.",
|
"author": "Tiny Technologies Inc.",
|
@@ -48,7 +48,7 @@ const listState = function (editor: Editor, listName, options:any = {}) {
|
|||||||
// dependent on how the checkbox is styled, so if the style is changed, this might need
|
// dependent on how the checkbox is styled, so if the style is changed, this might need
|
||||||
// to be updated too.
|
// to be updated too.
|
||||||
// For the styling, see:
|
// For the styling, see:
|
||||||
// ReactNativeClient/lib/joplin-renderer/MdToHtml/rules/checkbox.ts
|
// packages/app-mobile/lib/joplin-renderer/MdToHtml/rules/checkbox.ts
|
||||||
//
|
//
|
||||||
// The previous solution was to use "pointer-event: none", which mostly work, however
|
// The previous solution was to use "pointer-event: none", which mostly work, however
|
||||||
// it means that links are no longer clickable when they are within the checkbox label.
|
// it means that links are no longer clickable when they are within the checkbox label.
|