Compare commits
261 Commits
plugin_sys
...
release_cl
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
54f4b41de8 | ||
|
|
b33aeeecc5 | ||
|
|
7eefac0b54 | ||
|
|
3fbec21c2e | ||
|
|
d3b2f23983 | ||
|
|
9956b6612d | ||
|
|
bc3f6dd51a | ||
|
|
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 | ||
|
|
ea878fb614 | ||
|
|
5fd0408365 | ||
|
|
2d099b2bed | ||
|
|
3c0b9ee522 | ||
|
|
9dfe084a02 | ||
|
|
987890ba98 | ||
|
|
3358c46122 | ||
|
|
66204401c9 | ||
|
|
0644e2897d | ||
|
|
5761451def | ||
|
|
d819e6ee0c | ||
|
|
b66be79351 | ||
|
|
433fa21069 | ||
|
|
12db3d20ee | ||
|
|
80a70a6649 | ||
|
|
02ed297529 | ||
|
|
30543104be | ||
|
|
b6a004086c | ||
|
|
4265b3afb0 | ||
|
|
ccd7ba28d7 | ||
|
|
871f8b3a72 | ||
|
|
f276d2b2d4 | ||
|
|
2bb5acdfb1 | ||
|
|
dda0d8ca08 | ||
|
|
15f22c0507 | ||
|
|
fa7bd2cfab | ||
|
|
dc51781976 | ||
|
|
c874aee774 | ||
|
|
6c84fdc51d | ||
|
|
8ff0f7c529 | ||
|
|
b326ffc41c | ||
|
|
a0de8582e6 | ||
|
|
5eb0417b1a | ||
|
|
c42d9cf069 | ||
|
|
d965a7b6db | ||
|
|
c1919c2908 | ||
|
|
3fd7470104 | ||
|
|
0bf74142ac | ||
|
|
b3bf7144ac | ||
|
|
5738a4f92b | ||
|
|
784851b217 | ||
|
|
0e0803e050 | ||
|
|
3d3abfe259 | ||
|
|
3f38b518fe | ||
|
|
e673ee97de | ||
|
|
7cb55ffdc4 | ||
|
|
b706217d41 | ||
|
|
6f680081f4 | ||
|
|
fe41d37f8f | ||
|
|
833fb1264f | ||
|
|
f007735936 | ||
|
|
73a39d36ea | ||
|
|
a43ab26a46 | ||
|
|
f5f117cb72 | ||
|
|
fc6da04081 | ||
|
|
12ff654986 | ||
|
|
e852ad846f | ||
|
|
28e00fdf2e | ||
|
|
3bd0656eab | ||
|
|
e9af71dd76 | ||
|
|
73b33e8e32 | ||
|
|
c2c7efee91 | ||
|
|
c9c44d5643 | ||
|
|
0836fca822 | ||
|
|
566df5039c | ||
|
|
559655bf33 | ||
|
|
0eab23fbcf | ||
|
|
f334f4f487 | ||
|
|
49bfa49489 | ||
|
|
5f81944a3e | ||
|
|
00057da17d | ||
|
|
0a05464013 |
1568
.eslintignore
2
.github/PULL_REQUEST_TEMPLATE
vendored
@@ -20,6 +20,6 @@ If it's not related to any platform (such as a translation, change to the docume
|
||||
|
||||
Then please append the issue that you've addressed or fixed. Use "Resolves #123" for new features or improvements and "Fixes #123" for bug fixes.
|
||||
|
||||
AND PLEASE READ THE GUIDE: https://github.com/laurent22/joplin/blob/master/CONTRIBUTING.md
|
||||
AND PLEASE READ THE GUIDE: https://github.com/laurent22/joplin/blob/dev/CONTRIBUTING.md
|
||||
|
||||
-->
|
||||
|
||||
1539
.gitignore
vendored
13
.travis.yml
@@ -61,21 +61,18 @@ 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
|
||||
cd packages/app-cli
|
||||
npm run test-ci
|
||||
testResult=$?
|
||||
if [ $testResult -ne 0 ]; then
|
||||
exit $testResult
|
||||
fi
|
||||
cd ..
|
||||
cd ../..
|
||||
fi
|
||||
|
||||
# Run linter for pull requests only - this is so that
|
||||
@@ -93,7 +90,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 +99,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 +109,5 @@ script:
|
||||
fi
|
||||
|
||||
# Prepare the Electron app and build it
|
||||
cd ElectronClient
|
||||
cd packages/app-desktop
|
||||
USE_HARD_LINKS=false npm run dist
|
||||
|
||||
2707
Assets/PluginDocTheme/assets/css/main.css
Normal file
|
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 |
36
Assets/PluginDocTheme/helpers/index.js
Normal file
@@ -0,0 +1,36 @@
|
||||
function camelCaseToDots(s) {
|
||||
const output = [];
|
||||
for (let i = 0; i < s.length; i++) {
|
||||
const c = s[i];
|
||||
if (c === c.toLowerCase() || i === 0) {
|
||||
output.push(c.toLowerCase());
|
||||
} else {
|
||||
output.push('.');
|
||||
output.push(c.toLowerCase());
|
||||
}
|
||||
}
|
||||
|
||||
return output.join('');
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
jpFormatClassName: function(className) {
|
||||
if (className.indexOf('Joplin') !== 0 || className.indexOf(' ') >= 0) return className;
|
||||
|
||||
const p = className.substr(6);
|
||||
if (p === '') return 'joplin';
|
||||
|
||||
return `joplin.${camelCaseToDots(p)
|
||||
.replace(/menu\.items/, 'menuItems')
|
||||
.replace(/toolbar\.buttons/, 'toolbarButtons')}`;
|
||||
},
|
||||
|
||||
jpIsAllowedGroup: function(name) {
|
||||
return name !== 'Constructors';
|
||||
},
|
||||
|
||||
jsIsNotKindVariable: function(classes) {
|
||||
if (!classes) return true;
|
||||
return classes.indexOf('tsd-kind-variable') < 0;
|
||||
},
|
||||
};
|
||||
@@ -13,7 +13,7 @@
|
||||
<li class="state failure">The search index is not available</li>
|
||||
</ul>
|
||||
|
||||
<a href="{{relativeURL "classes/sandbox.html"}}" class="title">{{project.name}}</a>
|
||||
<a href="{{relativeURL "classes/joplin.html"}}" class="title">{{project.name}}</a>
|
||||
</div>
|
||||
|
||||
<div class="table-cell" id="tsd-widgets">
|
||||
|
Before Width: | Height: | Size: 300 KiB After Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 97 KiB After Width: | Height: | Size: 97 KiB |
27
Assets/TinyMCE/IconPack/gulpfile.js
Normal file
@@ -0,0 +1,27 @@
|
||||
const iconPackager = require('@ephox/oxide-icons-tools').iconPackager;
|
||||
const clean = require('gulp-clean');
|
||||
const gulp = require('gulp');
|
||||
const fs = require('fs');
|
||||
|
||||
gulp.task('icon-packager', function() {
|
||||
const contents = fs.readFileSync('package.json');
|
||||
const name = JSON.parse(contents).iconPackName;
|
||||
|
||||
return gulp.src('src/svg/**/*.svg')
|
||||
.pipe(iconPackager({ name }))
|
||||
.pipe(gulp.dest('dist'));
|
||||
});
|
||||
|
||||
gulp.task('deploy', function() {
|
||||
fs.copyFileSync(`${__dirname}/dist/icons/Joplin/icons.js`, `${__dirname}/../../../packages/app-desktop/gui/NoteEditor/NoteBody/TinyMCE/icons.js`);
|
||||
return Promise.resolve();
|
||||
});
|
||||
|
||||
gulp.task('clean', function() {
|
||||
return gulp.src('./dist', {
|
||||
read: false,
|
||||
allowEmpty: true,
|
||||
}).pipe(clean());
|
||||
});
|
||||
|
||||
gulp.task('default', gulp.series('clean', 'icon-packager', 'deploy'));
|
||||
|
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',
|
||||
},
|
||||
],
|
||||
},
|
||||
13
Assets/TinyMCE/JoplinLists/README.md
Normal file
@@ -0,0 +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 packages/app-desktop sub-directory.
|
||||
|
||||
To test the plugin, use `npm run buildAndStart`, which will build the plugin and start the desktop application.
|
||||
54
Assets/TinyMCE/JoplinLists/package.json
Normal file
@@ -0,0 +1,54 @@
|
||||
{
|
||||
"name": "joplin-tinymce-lists",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"scripts": {
|
||||
"prepublishOnly": "npm run lint && npm run build",
|
||||
"lint": "tslint src/**/*.ts",
|
||||
"build": "grunt",
|
||||
"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 packages/app-desktop && npm start"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "Tiny Technologies Inc.",
|
||||
"devDependencies": {
|
||||
"@ephox/agar": "latest",
|
||||
"@ephox/bedrock": "latest",
|
||||
"@ephox/mcagar": "latest",
|
||||
"@ephox/swag": "latest",
|
||||
"@ephox/tslint-rules": "latest",
|
||||
"awesome-typescript-loader": "^5.2.1",
|
||||
"grunt": "^1.0.4",
|
||||
"grunt-contrib-clean": "^2.0.0",
|
||||
"grunt-contrib-concat": "^1.0.1",
|
||||
"grunt-contrib-copy": "^1.0.0",
|
||||
"grunt-contrib-uglify": "^4.0.0",
|
||||
"grunt-shell": "^2.1.0",
|
||||
"grunt-tslint": "^5.0.2",
|
||||
"grunt-webpack": "^3.1.3",
|
||||
"load-grunt-tasks": "^4.0.0",
|
||||
"tinymce": "latest",
|
||||
"ts-loader": "^5.3.0",
|
||||
"tslib": "^1.9.3",
|
||||
"tslint": "^5.11.0",
|
||||
"typescript": "^3.1.6",
|
||||
"webpack": "^4.25.1",
|
||||
"webpack-livereload-plugin": "^2.1.1"
|
||||
},
|
||||
"files": [
|
||||
"lib/main",
|
||||
"lib/demo",
|
||||
"lib/test",
|
||||
"src",
|
||||
"tsconfig.json",
|
||||
"readme.md",
|
||||
"LEGAL.txt",
|
||||
"LICENSE.txt"
|
||||
],
|
||||
"main": "./lib/main/ts/api/Main.js",
|
||||
"module": "./lib/main/ts/api/Main.js",
|
||||
"types": "./lib/main/ts/api/Main.d.ts",
|
||||
"license": "Apache-2.0"
|
||||
}
|
||||
@@ -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.
|
||||