Compare commits
292 Commits
android-v1
...
electron_1
Author | SHA1 | Date | |
---|---|---|---|
|
817931f4cf | ||
|
3eda7d1c26 | ||
|
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 |
1715
.eslintignore
26
.eslintrc.js
@@ -15,7 +15,8 @@ module.exports = {
|
||||
'Atomics': 'readonly',
|
||||
'SharedArrayBuffer': 'readonly',
|
||||
|
||||
// Jasmine variables
|
||||
// Jest variables
|
||||
'test': 'readonly',
|
||||
'expect': 'readonly',
|
||||
'describe': 'readonly',
|
||||
'it': 'readonly',
|
||||
@@ -23,7 +24,6 @@ module.exports = {
|
||||
'afterAll': 'readonly',
|
||||
'beforeEach': 'readonly',
|
||||
'afterEach': 'readonly',
|
||||
'jasmine': 'readonly',
|
||||
|
||||
// React Native variables
|
||||
'__DEV__': 'readonly',
|
||||
@@ -130,6 +130,28 @@ module.exports = {
|
||||
// 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.
|
||||
'@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,
|
||||
},
|
||||
}],
|
||||
},
|
||||
},
|
||||
],
|
||||
|
@@ -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 …
|
1685
.gitignore
vendored
11
.travis.yml
@@ -61,21 +61,16 @@ script:
|
||||
- |
|
||||
# Install tools
|
||||
npm install
|
||||
cd Tools
|
||||
npm install
|
||||
cd ..
|
||||
|
||||
# Run test units.
|
||||
# Only do it for pull requests because Travis randomly fails to run them
|
||||
# and that would break the desktop release.
|
||||
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
|
||||
cd CliClient
|
||||
npm run test-ci
|
||||
testResult=$?
|
||||
if [ $testResult -ne 0 ]; then
|
||||
exit $testResult
|
||||
fi
|
||||
cd ..
|
||||
fi
|
||||
|
||||
# Run linter for pull requests only - this is so that
|
||||
@@ -93,7 +88,7 @@ script:
|
||||
# tool like poedit. Doing it for Linux only is sufficient.
|
||||
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
|
||||
if [ "$TRAVIS_OS_NAME" != "osx" ]; then
|
||||
node Tools/validate-translation.js
|
||||
node packages/tools/validate-translation.js
|
||||
testResult=$?
|
||||
if [ $testResult -ne 0 ]; then
|
||||
exit $testResult
|
||||
@@ -102,7 +97,7 @@ script:
|
||||
fi
|
||||
|
||||
# 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.
|
||||
# https://github.com/electron-userland/electron-builder/issues/4263
|
||||
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
|
||||
@@ -112,5 +107,5 @@ script:
|
||||
fi
|
||||
|
||||
# Prepare the Electron app and build it
|
||||
cd ElectronClient
|
||||
cd packages/app-desktop
|
||||
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() {
|
||||
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();
|
||||
});
|
||||
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
@@ -27,7 +27,7 @@ module.exports = function(grunt) {
|
||||
// },
|
||||
|
||||
shell: {
|
||||
command: 'tsc',
|
||||
command: 'tsc --project tsconfig.json',
|
||||
},
|
||||
|
||||
rollup: {
|
||||
@@ -125,7 +125,7 @@ module.exports = function(grunt) {
|
||||
// { src: ['changelog.txt'], dest: 'dist', expand: true },
|
||||
{
|
||||
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
|
||||
|
||||
**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
|
||||
|
||||
But with support for Joplin checkboxes.
|
||||
|
||||
## 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.
|
@@ -9,7 +9,7 @@
|
||||
"test": "bedrock-auto -b phantomjs -d src/test/ts/",
|
||||
"test-manual": "bedrock -d src/test/ts/",
|
||||
"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": [],
|
||||
"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
|
||||
// to be updated too.
|
||||
// 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
|
||||
// it means that links are no longer clickable when they are within the checkbox label.
|