Socket
Socket
Sign inDemoInstall

joplin-plugin-kanban

Package Overview
Dependencies
143
Maintainers
4
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.5 to 1.0.6

images/kanban-screenshot.png

3

package.json
{
"name": "joplin-plugin-kanban",
"version": "1.0.5",
"version": "1.0.6",
"scripts": {

@@ -41,2 +41,3 @@ "test": "jest",

"js-yaml": "^4.1.0",
"moment": "^2.29.1",
"react": "^17.0.2",

@@ -43,0 +44,0 @@ "react-dnd": "^14.0.3",

@@ -18,4 +18,4 @@ {

],
"_publish_hash": "sha256:38525feda35cd117c10fa2a8dc5bbfbfe154f53e3ba2eabe2df8031a94b056c4",
"_publish_commit": "dev:f36a5735c8375cca20539f4f32417577eb690aa4"
"_publish_hash": "sha256:7b0aaa0eeb28620f1cab3867cfd264eb909014b9a2cc8adecc97860285f634e5",
"_publish_commit": "dev:761553203aca247b8da414317a613e03f9276e2e"
}

@@ -1,24 +0,77 @@

# Joplin Plugin
# Joplin Kanban Plugin
This is a template to create a new Joplin plugin.
This a plugin for the note taking app [Joplin](https://joplinapp.org/), which adds a flexible kanban board view for your notes, to help you organize your tasks.
The main two files you will want to look at are:
![screenshot](images/kanban-screenshot.png)
- `/src/index.ts`, which contains the entry point for the plugin source code.
- `/src/manifest.json`, which is the plugin manifest. It contains information such as the plugin a name, version, etc.
## Installation
## Building the plugin
In Joplin, go to Tools > Options, then on the left select Plugins, search for "kanban" and click install. You can read more about Joplin plugins [here](https://joplinapp.org/plugins/).
The plugin is built using Webpack, which creates the compiled code in `/dist`. A JPL archive will also be created at the root, which can use to distribute the plugin.
## Usage
To build the plugin, simply run `npm run dist`.
To get started, you'll need a notebook which will contain all tasks that you want to see on the board. The plugin will only show tasks in a single notebook and it's sub-notebooks.
The project is setup to use TypeScript, although you can change the configuration to use plain JavaScript.
A kanban board is defined by a special type of note, which contains all of its configuration. Create a new note, and paste in the following:
## Updating the plugin framework
```yaml
```kanban
columns:
- name: Backlog
backlog: true
- name: Work in progress
tag: wip
- name: Finished
tag: done
```​
```
To update the plugin framework, run `npm run update`.
It is important that the confiuration is surrounded by a code block (` ```kanban ... ``` `), otherwise it won't be detected.
In general this command tries to do the right thing - in particular it's going to merge the changes in package.json and .gitignore instead of overwriting. It will also leave "/src" as well as README.md untouched.
After pasting the configuration, you might have to switch to a different note, then back, but then you should immediately see a kanban view pop up on the right. It should contain all notes in the notebook, sorted into columns. You can drag the notes around and see that their tags are updated.
The file that may cause problem is "webpack.config.js" because it's going to be overwritten. For that reason, if you want to change it, consider creating a separate JavaScript file and include it in webpack.config.js. That way, when you update, you only have to restore the line that include your file.
If you switch to a different note that's on the board, the kanban should stay visible. But if you switch to another notebook, or restart Joplin, you'll need to first open the note which contains the configuration again.
## Configuration
There are two ways to configure a kanban board: the YAML based text config ([a quick intro on YAML](https://learnxinyminutes.com/docs/yaml/)), that you see above, or the config dialog. The options available are the same with both methods.
### Columns
You can have any number of columns on your kanban board. A column is defined by its name (which must be unique) and a list of rules. These rules determine what notes show up in the given column. If _any one_ of the rules matches, the note is sorted into the column. Here's the list of supported rules:
* `tag: ...` Matches if the note has the given tag. If the tag doesn't exist, it is created automatically. You can also use `tags` to define a list tags.
* `notebookPath: ...` Matches if the note is in the notebook, defined by the path. You can read more about notebook paths below, in the filters section.
* `completed: true` Matches if the note is a todo and is marked as done. You can also use `completed: false` to match uncompleted todos.
* `backlog: true` Matches if the note doesn't fit into any other column. You can use this to collect all your unmarked notes.
You can edit these rules via the config dialog, by double clicking the column name.
### Filters
Filters are rules which define what notes should be visible on your board. For example, with the following config only notes with a `task` tag will show up on the kanban view:
```yaml
```kanban
filters:
tag: task
columns:
...
```
Filters can contain the same rules as columns, except for the `rootNotebookPath` property. This defines the notebook from which notes are displayed on the board. By default, it is the parent notebook of the config note, but you can set it to anything. It's a `/` separated path so with a notebook structure like
```
Parent/
├─ Nested Parent/
│ ├─ Kanban board/
```
To give the path to `Kanban board` you should write `"Parent/Nested Parent/Kanban board"`
To edit the filters via the config dialog, click the gear icon next to the board name.
## Further information
If you want to know more about the workings of the plugin or its development check out the [original proposal](https://discourse.joplinapp.org/t/kanban-board-project/17469) and the [progress reports](https://discourse.joplinapp.org/t/kanban-board-project/17469)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc