├── src-tauri
├── icons
│ ├── icon.ico
│ ├── icon.png
│ ├── 32x32.png
│ ├── icon.icns
│ ├── 128x128.png
│ ├── StoreLogo.png
│ ├── 128x128@2x.png
│ ├── Square30x30Logo.png
│ ├── Square44x44Logo.png
│ ├── Square71x71Logo.png
│ ├── Square89x89Logo.png
│ ├── Square107x107Logo.png
│ ├── Square142x142Logo.png
│ ├── Square150x150Logo.png
│ ├── Square284x284Logo.png
│ ├── Square310x310Logo.png
│ ├── 128x128.png.license
│ ├── 32x32.png.license
│ ├── icon.icns.license
│ ├── icon.ico.license
│ ├── icon.png.license
│ ├── 128x128@2x.png.license
│ ├── StoreLogo.png.license
│ ├── Square107x107Logo.png.license
│ ├── Square142x142Logo.png.license
│ ├── Square150x150Logo.png.license
│ ├── Square284x284Logo.png.license
│ ├── Square30x30Logo.png.license
│ ├── Square310x310Logo.png.license
│ ├── Square44x44Logo.png.license
│ ├── Square71x71Logo.png.license
│ └── Square89x89Logo.png.license
├── Cargo.lock.license
├── tauri.conf.json.license
├── .gitignore
├── build.rs
├── src
│ ├── main.rs
│ └── lib.rs
├── about.toml
├── capabilities
│ ├── main.json
│ └── main.json.license
├── Cargo.toml
├── about.hbs
└── tauri.conf.json
├── version_info.json
├── tsconfig.json
├── yarn.lock.license
├── renovate.json.license
├── tsconfig.json.license
├── .prettierignore.license
├── .prettierrc.license
├── .vscode
├── settings.json.license
└── settings.json
├── version_info.json.license
├── package.json.license
├── i18n
├── locales
│ ├── de.json.license
│ ├── en.json.license
│ ├── es.json.license
│ ├── fr.json.license
│ ├── th.json.license
│ ├── uk.json.license
│ ├── pt_br.json.license
│ ├── ru.json.license
│ ├── tr.json.license
│ └── zh_cn.json.license
└── i18n.config.ts
├── scripts
├── delete-window-state-macos.sh.license
├── delete-window-state-macos.sh
└── embed-license-reports.js
├── .github
├── ISSUE_TEMPLATE
│ ├── bug_report.md.license
│ ├── feature_request.md.license
│ ├── dependency_request.md.license
│ ├── config.yml
│ ├── feature_request.md
│ ├── bug_report.md
│ └── dependency_request.md
├── workflows
│ ├── test_frontend.yml
│ ├── provenance_check.yml
│ ├── devskim.yml
│ ├── test_tauri.yml
│ └── release.yml
└── pull_request_template.md
├── .prettierignore
├── utils
├── idGenerator.js
├── objects.ts
├── drag-n-drop.js
├── emitter.ts
├── themes.ts
└── iconManager.ts
├── REUSE.toml
├── renovate.json
├── .gitignore
├── vitest.config.ts
├── .prettierrc
├── components
├── icon
│ ├── PhPlusCircleDuotone.vue
│ ├── Github.vue
│ ├── Catppuccin.vue
│ ├── Discord.vue
│ ├── Arrow.vue
│ └── Kanri.vue
├── kanban
│ ├── TagDisplay.vue
│ ├── ZoomAdjustment.vue
│ ├── TagEdit.vue
│ ├── BoardPreview.vue
│ └── SearchBar.vue
├── ClickCounter.vue
├── HexColorInput.vue
├── Dropdown.vue
├── PinnedBar.vue
├── Tooltip.vue
├── modal
│ ├── CardTags.vue
│ ├── Changelog.vue
│ ├── Confirmation.vue
│ ├── RenameBoard.vue
│ └── CustomBackground.vue
├── Modal.vue
├── LanguageSelector.vue
├── CustomThemeEditor.vue
└── Sidebar.vue
├── SECURITY.md
├── eslint.config.js
├── LICENSES
├── MIT.txt
└── CC0-1.0.txt
├── plugins
├── errorHandler.ts
├── importedDirectives.js
└── directives.ts
├── stores
├── tauriStore.js
├── layout.ts
├── theme.ts
└── settings.ts
├── app.vue
├── pages
└── index.spec.ts
├── assets
└── css
│ ├── global.css
│ └── scrollbars.css
├── test
└── setup.ts
├── tailwind.config.js
├── Dockerfile.armv7
├── Dockerfile.arm64
├── nuxt.config.ts
├── types
├── kanban-types.d.ts
└── json-schemas.ts
├── package.json
├── CONTRIBUTING.md
├── README.md
├── CODE_OF_CONDUCT.md
└── composables
└── useBoard.ts
/src-tauri/icons/icon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kanriapp/kanri/HEAD/src-tauri/icons/icon.ico
--------------------------------------------------------------------------------
/src-tauri/icons/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kanriapp/kanri/HEAD/src-tauri/icons/icon.png
--------------------------------------------------------------------------------
/src-tauri/icons/32x32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kanriapp/kanri/HEAD/src-tauri/icons/32x32.png
--------------------------------------------------------------------------------
/src-tauri/icons/icon.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kanriapp/kanri/HEAD/src-tauri/icons/icon.icns
--------------------------------------------------------------------------------
/src-tauri/icons/128x128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kanriapp/kanri/HEAD/src-tauri/icons/128x128.png
--------------------------------------------------------------------------------
/src-tauri/icons/StoreLogo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kanriapp/kanri/HEAD/src-tauri/icons/StoreLogo.png
--------------------------------------------------------------------------------
/src-tauri/icons/128x128@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kanriapp/kanri/HEAD/src-tauri/icons/128x128@2x.png
--------------------------------------------------------------------------------
/version_info.json:
--------------------------------------------------------------------------------
1 | {
2 | "buildMajor": "0",
3 | "buildMinor": "8",
4 | "buildRevision": "2"
5 | }
6 |
--------------------------------------------------------------------------------
/src-tauri/icons/Square30x30Logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kanriapp/kanri/HEAD/src-tauri/icons/Square30x30Logo.png
--------------------------------------------------------------------------------
/src-tauri/icons/Square44x44Logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kanriapp/kanri/HEAD/src-tauri/icons/Square44x44Logo.png
--------------------------------------------------------------------------------
/src-tauri/icons/Square71x71Logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kanriapp/kanri/HEAD/src-tauri/icons/Square71x71Logo.png
--------------------------------------------------------------------------------
/src-tauri/icons/Square89x89Logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kanriapp/kanri/HEAD/src-tauri/icons/Square89x89Logo.png
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | // https://v3.nuxtjs.org/concepts/typescript
3 | "extends": "./.nuxt/tsconfig.json"
4 | }
5 |
--------------------------------------------------------------------------------
/src-tauri/icons/Square107x107Logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kanriapp/kanri/HEAD/src-tauri/icons/Square107x107Logo.png
--------------------------------------------------------------------------------
/src-tauri/icons/Square142x142Logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kanriapp/kanri/HEAD/src-tauri/icons/Square142x142Logo.png
--------------------------------------------------------------------------------
/src-tauri/icons/Square150x150Logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kanriapp/kanri/HEAD/src-tauri/icons/Square150x150Logo.png
--------------------------------------------------------------------------------
/src-tauri/icons/Square284x284Logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kanriapp/kanri/HEAD/src-tauri/icons/Square284x284Logo.png
--------------------------------------------------------------------------------
/src-tauri/icons/Square310x310Logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kanriapp/kanri/HEAD/src-tauri/icons/Square310x310Logo.png
--------------------------------------------------------------------------------
/yarn.lock.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 |
3 | SPDX-License-Identifier: CC0-1.0
4 |
--------------------------------------------------------------------------------
/renovate.json.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 |
3 | SPDX-License-Identifier: CC0-1.0
4 |
--------------------------------------------------------------------------------
/tsconfig.json.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 |
3 | SPDX-License-Identifier: CC0-1.0
4 |
--------------------------------------------------------------------------------
/.prettierignore.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 |
3 | SPDX-License-Identifier: Apache-2.0
4 |
--------------------------------------------------------------------------------
/.prettierrc.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox , gitoak
2 |
3 | SPDX-License-Identifier: Apache-2.0
4 |
--------------------------------------------------------------------------------
/.vscode/settings.json.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 |
3 | SPDX-License-Identifier: CC0-1.0
4 |
--------------------------------------------------------------------------------
/version_info.json.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 |
3 | SPDX-License-Identifier: CC0-1.0
4 |
--------------------------------------------------------------------------------
/package.json.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox , gitoak
2 |
3 | SPDX-License-Identifier: Apache-2.0
4 |
--------------------------------------------------------------------------------
/src-tauri/Cargo.lock.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 |
3 | SPDX-License-Identifier: Apache-2.0
4 |
--------------------------------------------------------------------------------
/i18n/locales/de.json.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox , gitoak
2 |
3 | SPDX-License-Identifier: Apache-2.0
4 |
--------------------------------------------------------------------------------
/i18n/locales/en.json.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox , gitoak
2 |
3 | SPDX-License-Identifier: Apache-2.0
4 |
--------------------------------------------------------------------------------
/i18n/locales/es.json.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox , Chadowo
2 |
3 | SPDX-License-Identifier: Apache-2.0
4 |
--------------------------------------------------------------------------------
/i18n/locales/fr.json.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox , RReldiv
2 |
3 | SPDX-License-Identifier: Apache-2.0
4 |
--------------------------------------------------------------------------------
/i18n/locales/th.json.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox , Warut92
2 |
3 | SPDX-License-Identifier: Apache-2.0
4 |
--------------------------------------------------------------------------------
/i18n/locales/uk.json.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox , D9d9vadya
2 |
3 | SPDX-License-Identifier: Apache-2.0
4 |
--------------------------------------------------------------------------------
/src-tauri/tauri.conf.json.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 |
3 | SPDX-License-Identifier: Apache-2.0
4 |
--------------------------------------------------------------------------------
/i18n/locales/pt_br.json.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox , RBRapha
2 |
3 | SPDX-License-Identifier: Apache-2.0
4 |
--------------------------------------------------------------------------------
/i18n/locales/ru.json.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox , RomanPro100
2 |
3 | SPDX-License-Identifier: Apache-2.0
4 |
--------------------------------------------------------------------------------
/scripts/delete-window-state-macos.sh.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 |
3 | SPDX-License-Identifier: Apache-2.0
4 |
--------------------------------------------------------------------------------
/src-tauri/icons/128x128.png.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 |
3 | SPDX-License-Identifier: GPL-3.0-or-later
4 |
--------------------------------------------------------------------------------
/src-tauri/icons/32x32.png.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 |
3 | SPDX-License-Identifier: GPL-3.0-or-later
4 |
--------------------------------------------------------------------------------
/src-tauri/icons/icon.icns.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 |
3 | SPDX-License-Identifier: GPL-3.0-or-later
4 |
--------------------------------------------------------------------------------
/src-tauri/icons/icon.ico.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 |
3 | SPDX-License-Identifier: GPL-3.0-or-later
4 |
--------------------------------------------------------------------------------
/src-tauri/icons/icon.png.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 |
3 | SPDX-License-Identifier: GPL-3.0-or-later
4 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/bug_report.md.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 |
3 | SPDX-License-Identifier: Apache-2.0
4 |
--------------------------------------------------------------------------------
/.prettierignore:
--------------------------------------------------------------------------------
1 | src-tauri
2 | dist
3 | .nuxt
4 | .output
5 | node_modules
6 | coverage
7 | build
8 | logs
9 | *.log
10 | *.min.js
11 | *.min.css
12 |
--------------------------------------------------------------------------------
/src-tauri/icons/128x128@2x.png.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 |
3 | SPDX-License-Identifier: GPL-3.0-or-later
4 |
--------------------------------------------------------------------------------
/src-tauri/icons/StoreLogo.png.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 |
3 | SPDX-License-Identifier: GPL-3.0-or-later
4 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature_request.md.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 |
3 | SPDX-License-Identifier: Apache-2.0
4 |
--------------------------------------------------------------------------------
/src-tauri/icons/Square107x107Logo.png.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 |
3 | SPDX-License-Identifier: GPL-3.0-or-later
4 |
--------------------------------------------------------------------------------
/src-tauri/icons/Square142x142Logo.png.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 |
3 | SPDX-License-Identifier: GPL-3.0-or-later
4 |
--------------------------------------------------------------------------------
/src-tauri/icons/Square150x150Logo.png.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 |
3 | SPDX-License-Identifier: GPL-3.0-or-later
4 |
--------------------------------------------------------------------------------
/src-tauri/icons/Square284x284Logo.png.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 |
3 | SPDX-License-Identifier: GPL-3.0-or-later
4 |
--------------------------------------------------------------------------------
/src-tauri/icons/Square30x30Logo.png.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 |
3 | SPDX-License-Identifier: GPL-3.0-or-later
4 |
--------------------------------------------------------------------------------
/src-tauri/icons/Square310x310Logo.png.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 |
3 | SPDX-License-Identifier: GPL-3.0-or-later
4 |
--------------------------------------------------------------------------------
/src-tauri/icons/Square44x44Logo.png.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 |
3 | SPDX-License-Identifier: GPL-3.0-or-later
4 |
--------------------------------------------------------------------------------
/src-tauri/icons/Square71x71Logo.png.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 |
3 | SPDX-License-Identifier: GPL-3.0-or-later
4 |
--------------------------------------------------------------------------------
/src-tauri/icons/Square89x89Logo.png.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 |
3 | SPDX-License-Identifier: GPL-3.0-or-later
4 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/dependency_request.md.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 |
3 | SPDX-License-Identifier: Apache-2.0
4 |
--------------------------------------------------------------------------------
/i18n/locales/tr.json.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox , Taiizor
2 |
3 | SPDX-License-Identifier: Apache-2.0
4 |
--------------------------------------------------------------------------------
/i18n/locales/zh_cn.json.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox , GU XI FENG
2 |
3 | SPDX-License-Identifier: Apache-2.0
4 |
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.codeActionsOnSave": {
3 | "source.fixAll": "never",
4 | "source.fixAll.eslint": "always"
5 | },
6 | "eslint.useFlatConfig": true
7 | }
8 |
--------------------------------------------------------------------------------
/i18n/i18n.config.ts:
--------------------------------------------------------------------------------
1 | // SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 | //
3 | // SPDX-License-Identifier: CC0-1.0
4 |
5 | export default defineI18nConfig(() => {
6 | return {
7 | fallbackLocale: "en",
8 | }
9 | })
10 |
--------------------------------------------------------------------------------
/utils/idGenerator.js:
--------------------------------------------------------------------------------
1 | // SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 | //
3 | // SPDX-License-Identifier: Apache-2.0
4 | import { createId } from "@paralleldrive/cuid2";
5 |
6 | export function generateUniqueID() {
7 | return createId();
8 | }
9 |
--------------------------------------------------------------------------------
/src-tauri/.gitignore:
--------------------------------------------------------------------------------
1 | # SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 | #
3 | # SPDX-License-Identifier: CC0-1.0
4 |
5 | # Generated by Cargo
6 | # will have compiled files and executables
7 | /target/
8 | WixTools
9 | /gen/schemas/*
10 | /gen/*
--------------------------------------------------------------------------------
/src-tauri/build.rs:
--------------------------------------------------------------------------------
1 | // SPDX-FileCopyrightText: 2019-2022, The Tauri Programme in the Commons Conservancy
2 | // SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
3 | //
4 | // SPDX-License-Identifier: Apache-2.0
5 | // SPDX-License-Identifier: MIT
6 |
7 | fn main() {
8 | tauri_build::build()
9 | }
10 |
--------------------------------------------------------------------------------
/REUSE.toml:
--------------------------------------------------------------------------------
1 | # SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 | #
3 | # SPDX-License-Identifier: CC0-1.0
4 |
5 | version = 1
6 | SPDX-PackageName = "kanri"
7 | SPDX-PackageSupplier = "trobonox "
8 | SPDX-PackageDownloadLocation = "https://github.com/kanriapp/kanri"
9 | annotations = []
10 |
--------------------------------------------------------------------------------
/renovate.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3 | "extends": ["config:recommended"],
4 | "packageRules": [
5 | {
6 | "groupName": "all non-major dependencies",
7 | "groupSlug": "all-minor-patch",
8 | "matchUpdateTypes": ["minor", "patch"],
9 | "matchPackageNames": ["*"]
10 | }
11 | ]
12 | }
13 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 | #
3 | # SPDX-License-Identifier: CC0-1.0
4 |
5 | node_modules
6 | *.log*
7 | .nuxt
8 | .nitro
9 | .cache
10 | .output
11 | .env
12 | .idea
13 | dist/*
14 | dist
15 |
16 | LICENSES_3RD_PARTY.txt
17 | src-tauri/license.html
18 |
19 | src-tauri/gen/*
20 | src-tauri/gen/schemas
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/config.yml:
--------------------------------------------------------------------------------
1 | # SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 | #
3 | # SPDX-License-Identifier: Apache-2.0
4 |
5 | blank_issues_enabled: true
6 | contact_links:
7 | - name: Official Kanri Discord server
8 | url: https://discord.gg/AVqHrvxB9C
9 | about: Talk to the developer, community and request support or provide feedback.
10 |
--------------------------------------------------------------------------------
/src-tauri/src/main.rs:
--------------------------------------------------------------------------------
1 | // SPDX-FileCopyrightText: 2019-2022, The Tauri Programme in the Commons Conservancy
2 | // SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
3 | //
4 | // SPDX-License-Identifier: Apache-2.0
5 | // SPDX-License-Identifier: MIT
6 |
7 | #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
8 |
9 | fn main() {
10 | app_lib::run();
11 | }
12 |
--------------------------------------------------------------------------------
/scripts/delete-window-state-macos.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | TARGET_DIR="$HOME/Library/Application Support/tech.trobonox.kanri"
4 | TARGET_FILE=".window-state.json"
5 |
6 | FILE_PATH="$TARGET_DIR/$TARGET_FILE"
7 |
8 | if [ -f "$FILE_PATH" ]; then
9 | echo "Found .window-state.json at $FILE_PATH..."
10 | rm "$FILE_PATH"
11 | echo "Deleted $FILE_PATH"
12 | else
13 | echo "File not found: $FILE_PATH"
14 | fi
--------------------------------------------------------------------------------
/utils/objects.ts:
--------------------------------------------------------------------------------
1 | // SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 | //
3 | // SPDX-License-Identifier: Apache-2.0
4 |
5 | export function findObjectById>(
6 | objectArray: Array,
7 | objectId: string
8 | ) {
9 | return objectArray.filter((object: Partial<{ id: string }>) => {
10 | return object.id == objectId;
11 | })[0];
12 | }
13 |
--------------------------------------------------------------------------------
/src-tauri/about.toml:
--------------------------------------------------------------------------------
1 | # SPDX-FileCopyrightText: 2022-2025 trobonox
2 | #
3 | # SPDX-License-Identifier: Apache-2.0
4 |
5 | accepted = [
6 | "Apache-2.0",
7 | "Apache-2.0 WITH LLVM-exception",
8 | "MIT",
9 | "BSD-3-Clause",
10 | "MPL-2.0",
11 | "Unicode-DFS-2016",
12 | "Unicode-3.0",
13 | "CC0-1.0",
14 | "MIT-0",
15 | "GPL-3.0", # this is for Kanri itself
16 | "ISC"
17 | ]
18 |
--------------------------------------------------------------------------------
/vitest.config.ts:
--------------------------------------------------------------------------------
1 | // SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox , gitoak
2 | //
3 | // SPDX-License-Identifier: CC0-1.0
4 |
5 | import { defineVitestConfig } from "@nuxt/test-utils/config";
6 |
7 | export default defineVitestConfig({
8 | test: {
9 | environment: "nuxt",
10 | setupFiles: ["./test/setup.ts"],
11 | environmentOptions: {
12 | nuxt: {
13 | domEnvironment: "jsdom",
14 | },
15 | },
16 | },
17 | });
18 |
--------------------------------------------------------------------------------
/.prettierrc:
--------------------------------------------------------------------------------
1 | {
2 | "printWidth": 80,
3 | "tabWidth": 2,
4 | "useTabs": false,
5 | "semi": true,
6 | "singleQuote": false,
7 | "quoteProps": "as-needed",
8 | "jsxSingleQuote": false,
9 | "trailingComma": "es5",
10 | "bracketSpacing": true,
11 | "jsxBracketSameLine": false,
12 | "arrowParens": "always",
13 | "proseWrap": "preserve",
14 | "htmlWhitespaceSensitivity": "css",
15 | "endOfLine": "lf",
16 | "embeddedLanguageFormatting": "auto"
17 | }
18 |
--------------------------------------------------------------------------------
/components/icon/PhPlusCircleDuotone.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
14 |
15 |
--------------------------------------------------------------------------------
/SECURITY.md:
--------------------------------------------------------------------------------
1 |
6 |
7 | # Security Policy
8 |
9 | ## Supported Versions
10 |
11 | Since this app is constantly changing and previous versions are not receiving any bug fixes, only the latest version has proper support.
12 |
13 | | Version | Supported |
14 | | ------- | ------------------ |
15 | | 0.8.2 | :white_check_mark: |
16 | | < 0.8.2 | :x: |
17 |
18 | ## Reporting a Vulnerability
19 |
20 | If you find any vulnerability, please write an email at hello@trobo.dev with a short description, reproduction steps and possible attacks.
21 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature_request.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Feature request
3 | about: Suggest an idea for this project
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Is your feature request related to a problem? Please describe.**
11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12 |
13 | **Describe the solution you'd like**
14 | A clear and concise description of what you want to happen.
15 |
16 | **Describe alternatives you've considered**
17 | A clear and concise description of any alternative solutions or features you've considered.
18 |
19 | **Additional context**
20 | Add any other context or screenshots about the feature request here.
21 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/bug_report.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Bug report
3 | about: Create a report to help us improve
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Describe the bug**
11 | A clear and concise description of what the bug is.
12 |
13 | **To Reproduce**
14 | Steps to reproduce the behavior:
15 | 1. Go to '...'
16 | 2. Click on '....'
17 | 3. Scroll down to '....'
18 | 4. See error
19 |
20 | **Expected behavior**
21 | A clear and concise description of what you expected to happen.
22 |
23 | **Screenshots**
24 | If applicable, add screenshots to help explain your problem.
25 |
26 | **Desktop (please complete the following information):**
27 | - OS: [e.g. Fedora Linux 42, Windows 11, ...]
28 | - App version [e.g. 22]
29 |
30 | **Additional context**
31 | Add any other context about the problem here.
32 |
--------------------------------------------------------------------------------
/.github/workflows/test_frontend.yml:
--------------------------------------------------------------------------------
1 | # SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 | #
3 | # SPDX-License-Identifier: Apache-2.0
4 |
5 | name: "Test frontend on pull requests"
6 | permissions:
7 | contents: read
8 | pull-requests: write
9 | on:
10 | pull_request:
11 | types: [ opened, reopened ]
12 | branches:
13 | - main
14 | paths:
15 | - 'package.json'
16 | - 'yarn.lock'
17 |
18 | jobs:
19 | test-frontend:
20 | strategy:
21 | fail-fast: false
22 |
23 | runs-on: ubuntu-22.04
24 | steps:
25 | - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
26 | - name: setup node
27 | uses: actions/setup-node@v4
28 | with:
29 | node-version: 22
30 | - name: install app dependencies and build it
31 | run: yarn && yarn generate
32 |
--------------------------------------------------------------------------------
/.github/workflows/provenance_check.yml:
--------------------------------------------------------------------------------
1 | # SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 | #
3 | # SPDX-License-Identifier: Apache-2.0
4 |
5 | name: Test Dependency Provenance
6 | on:
7 | pull_request:
8 | branches:
9 | - main
10 | paths:
11 | # Trigger a run only on PRs that change the lockfile
12 | - package-lock.json
13 | - yarn.lock
14 |
15 | permissions:
16 | contents: read
17 | jobs:
18 | check-provenance:
19 | runs-on: ubuntu-latest
20 | steps:
21 | - uses: actions/checkout@v4
22 | with:
23 | fetch-depth: 0
24 | - name: Check provenance downgrades
25 | uses: danielroe/provenance-action@main
26 | id: check
27 | with:
28 | fail-on-provenance-change: true
29 | - name: Print result
30 | run: "echo 'Downgraded: ${{ steps.check.outputs.downgraded }}'"
31 |
--------------------------------------------------------------------------------
/.github/workflows/devskim.yml:
--------------------------------------------------------------------------------
1 | # SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 | #
3 | # SPDX-License-Identifier: Apache-2.0
4 |
5 | name: DevSkim
6 |
7 | on:
8 | push:
9 | branches: [ "main" ]
10 | pull_request:
11 | branches: [ "main" ]
12 | schedule:
13 | - cron: '33 12 * * 4'
14 |
15 | jobs:
16 | lint:
17 | name: DevSkim
18 | runs-on: ubuntu-22.04
19 | permissions:
20 | actions: read
21 | contents: read
22 | security-events: write
23 | steps:
24 | - name: Checkout code
25 | uses: actions/checkout@v5
26 |
27 | - name: Run DevSkim scanner
28 | uses: microsoft/DevSkim-Action@v1
29 |
30 | - name: Upload DevSkim scan results to GitHub Security tab
31 | uses: github/codeql-action/upload-sarif@v3
32 | with:
33 | sarif_file: devskim-results.sarif
34 |
--------------------------------------------------------------------------------
/src-tauri/capabilities/main.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "../gen/schemas/desktop-schema.json",
3 | "identifier": "main-capability",
4 | "description": "Capability for the main window",
5 | "windows": [
6 | "main"
7 | ],
8 | "permissions": [
9 | "core:default",
10 | "core:image:default",
11 | "core:window:allow-show",
12 | "core:window:allow-hide",
13 | "core:app:allow-app-show",
14 | "core:app:allow-app-hide",
15 | "core:window:default",
16 | "store:default",
17 | "dialog:allow-open",
18 | "dialog:default",
19 | "autostart:default",
20 | "log:default",
21 | "fs:default",
22 | "fs:allow-read",
23 | "fs:allow-write",
24 | "fs:allow-read-text-file",
25 | "fs:allow-write-text-file",
26 | "window-state:default"
27 | ]
28 | }
29 |
--------------------------------------------------------------------------------
/components/icon/Github.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
18 |
--------------------------------------------------------------------------------
/src-tauri/capabilities/main.json.license:
--------------------------------------------------------------------------------
1 | SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 |
3 | SPDX-License-Identifier: GPL-3.0-or-later
4 |
5 | Kanri is an offline Kanban board app made using Tauri and Nuxt.
6 | Copyright (C) 2022-2025 trobonox
7 |
8 | This program is free software: you can redistribute it and/or modify
9 | it under the terms of the GNU General Public License as published by
10 | the Free Software Foundation, either version 3 of the License, or
11 | (at your option) any later version.
12 |
13 | This program is distributed in the hope that it will be useful,
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 | GNU General Public License for more details.
17 |
18 | You should have received a copy of the GNU General Public License
19 | along with this program. If not, see .
20 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/dependency_request.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Dependency Request
3 | about: Request a dependency that you want to use in one of your pull requests
4 | title: ''
5 | labels: dependency request
6 | assignees: trobonox
7 |
8 | ---
9 |
10 | **What dependency do you want to use?**
11 | Specify the exact package name on npm and also a version number you require.
12 |
13 | **What feature do you want to implement using this dependency**
14 | Short description of what you want to add.
15 |
16 | **Have you tried to implement your feature with currently added libraries?**
17 | Describe why exactly you would need this dependency and why it's not possible to implement your feature without it or another similar library.
18 |
19 | **Do you have any alternative libraries you could use to achieve the same result?**
20 | If there is a better known, more maintained or more trustworthy library/libraries, please list them here.
21 |
22 | **Additional context**
23 | Add any other context or screenshots about the dependency request here.
24 |
--------------------------------------------------------------------------------
/eslint.config.js:
--------------------------------------------------------------------------------
1 | // SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox , gitoak
2 | //
3 | // SPDX-License-Identifier: CC0-1.0
4 |
5 | import withNuxt from "./.nuxt/eslint.config.mjs";
6 | import tailwind from "eslint-plugin-tailwindcss";
7 | import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
8 |
9 | export default withNuxt(
10 | ...tailwind.configs["flat/recommended"],
11 | eslintPluginPrettierRecommended,
12 | {
13 | files: ["**/*.ts", "**/*.vue"],
14 | rules: {
15 | "no-undef": "off",
16 | "tailwindcss/no-custom-classname": "off",
17 | "vue/html-indent": "off",
18 | "vue/multi-word-component-names": "off",
19 | "vue/v-on-event-hyphenation": "off",
20 | "@typescript-eslint/no-invalid-void-type": "off",
21 | "@typescript-eslint/unified-signatures": "off",
22 | "prettier/prettier": "error", // Treat Prettier issues as ESLint errors
23 | },
24 | },
25 | {
26 | ignores: ["src-tauri/**/*", "dist/**/*", "pages/licenses/**/*"],
27 | }
28 | );
29 |
--------------------------------------------------------------------------------
/LICENSES/MIT.txt:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c)
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6 |
7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
10 |
--------------------------------------------------------------------------------
/plugins/errorHandler.ts:
--------------------------------------------------------------------------------
1 | /* SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 |
3 | SPDX-License-Identifier: GPL-3.0-or-later
4 |
5 | Kanri is an offline Kanban board app made using Tauri and Nuxt.
6 | Copyright (C) 2022-2025 trobonox
7 |
8 | This program is free software: you can redistribute it and/or modify
9 | it under the terms of the GNU General Public License as published by
10 | the Free Software Foundation, either version 3 of the License, or
11 | (at your option) any later version.
12 |
13 | This program is distributed in the hope that it will be useful,
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 | GNU General Public License for more details.
17 |
18 | You should have received a copy of the GNU General Public License
19 | along with this program. If not, see .
20 | */
21 |
22 | import { error } from "@tauri-apps/plugin-log";
23 |
24 | export default defineNuxtPlugin((nuxtApp) => {
25 | nuxtApp.hook("vue:error", (err, instance, info) => {
26 | error("Vue error: " + err + " ; " + info);
27 | });
28 | });
29 |
--------------------------------------------------------------------------------
/stores/tauriStore.js:
--------------------------------------------------------------------------------
1 | /* SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 |
3 | SPDX-License-Identifier: GPL-3.0-or-later
4 |
5 | Kanri is an offline Kanban board app made using Tauri and Nuxt.
6 | Copyright (C) 2022-2025 trobonox
7 |
8 | This program is free software: you can redistribute it and/or modify
9 | it under the terms of the GNU General Public License as published by
10 | the Free Software Foundation, either version 3 of the License, or
11 | (at your option) any later version.
12 |
13 | This program is distributed in the hope that it will be useful,
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 | GNU General Public License for more details.
17 |
18 | You should have received a copy of the GNU General Public License
19 | along with this program. If not, see .
20 | */
21 |
22 | import { defineStore } from "pinia";
23 | import { LazyStore } from "@tauri-apps/plugin-store";
24 |
25 | export const useTauriStore = defineStore("tauriStore", {
26 | state: () => {
27 | return { store: new LazyStore(".kanri.dat") };
28 | },
29 | });
30 |
--------------------------------------------------------------------------------
/app.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
48 |
--------------------------------------------------------------------------------
/plugins/importedDirectives.js:
--------------------------------------------------------------------------------
1 | /* SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 |
3 | SPDX-License-Identifier: GPL-3.0-or-later
4 |
5 | Kanri is an offline Kanban board app made using Tauri and Nuxt.
6 | Copyright (C) 2022-2025 trobonox
7 |
8 | This program is free software: you can redistribute it and/or modify
9 | it under the terms of the GNU General Public License as published by
10 | the Free Software Foundation, either version 3 of the License, or
11 | (at your option) any later version.
12 |
13 | This program is distributed in the hope that it will be useful,
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 | GNU General Public License for more details.
17 |
18 | You should have received a copy of the GNU General Public License
19 | along with this program. If not, see .
20 | */
21 |
22 | import { defineNuxtPlugin } from "#imports";
23 | import VCalendar from "v-calendar";
24 | import "v-calendar/style.css";
25 | import VueDragscroll from "vue-dragscroll";
26 |
27 | export default defineNuxtPlugin(({ vueApp }) => {
28 | vueApp.use(VueDragscroll);
29 | vueApp.use(VCalendar);
30 | });
31 |
--------------------------------------------------------------------------------
/components/icon/Catppuccin.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
12 |
13 |
--------------------------------------------------------------------------------
/pages/index.spec.ts:
--------------------------------------------------------------------------------
1 | /* SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox , gitoak
2 |
3 | SPDX-License-Identifier: GPL-3.0-or-later
4 |
5 | Kanri is an offline Kanban board app made using Tauri and Nuxt.
6 | Copyright (C) 2022-2025 trobonox
7 |
8 | This program is free software: you can redistribute it and/or modify
9 | it under the terms of the GNU General Public License as published by
10 | the Free Software Foundation, either version 3 of the License, or
11 | (at your option) any later version.
12 |
13 | This program is distributed in the hope that it will be useful,
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 | GNU General Public License for more details.
17 |
18 | You should have received a copy of the GNU General Public License
19 | along with this program. If not, see .
20 | */
21 |
22 | import { it, expect, describe } from "vitest";
23 | import { mountSuspended } from "@nuxt/test-utils/runtime";
24 | import Index from "@/pages/index.vue";
25 |
26 | describe("Index", () => {
27 | it("should render", async () => {
28 | const page = await mountSuspended(Index);
29 | expect(page.html()).toContain("Welcome back to Kanri!");
30 | });
31 | });
32 |
--------------------------------------------------------------------------------
/components/icon/Discord.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
18 |
--------------------------------------------------------------------------------
/assets/css/global.css:
--------------------------------------------------------------------------------
1 | /* SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 |
3 | SPDX-License-Identifier: GPL-3.0-or-later
4 |
5 | Kanri is an offline Kanban board app made using Tauri and Nuxt.
6 | Copyright (C) 2022-2025 trobonox
7 |
8 | This program is free software: you can redistribute it and/or modify
9 | it under the terms of the GNU General Public License as published by
10 | the Free Software Foundation, either version 3 of the License, or
11 | (at your option) any later version.
12 |
13 | This program is distributed in the hope that it will be useful,
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 | GNU General Public License for more details.
17 |
18 | You should have received a copy of the GNU General Public License
19 | along with this program. If not, see .
20 | */
21 |
22 | body {
23 | overscroll-behavior: none;
24 | scroll-behavior: smooth;
25 | background-color: #111112;
26 | }
27 |
28 | .smooth-dnd-container {
29 | min-height: 40px !important;
30 | }
31 |
32 | body:has(> .disable-animations) * {
33 | -webkit-transition: none !important;
34 | -moz-transition: none !important;
35 | -o-transition: none !important;
36 | transition: none !important;
37 | }
38 |
--------------------------------------------------------------------------------
/test/setup.ts:
--------------------------------------------------------------------------------
1 | /* SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox , gitoak
2 |
3 | SPDX-License-Identifier: GPL-3.0-or-later
4 |
5 | Kanri is an offline Kanban board app made using Tauri and Nuxt.
6 | Copyright (C) 2022-2025 trobonox
7 |
8 | This program is free software: you can redistribute it and/or modify
9 | it under the terms of the GNU General Public License as published by
10 | the Free Software Foundation, either version 3 of the License, or
11 | (at your option) any later version.
12 |
13 | This program is distributed in the hope that it will be useful,
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 | GNU General Public License for more details.
17 |
18 | You should have received a copy of the GNU General Public License
19 | along with this program. If not, see .
20 | */
21 |
22 | import { config } from "@vue/test-utils";
23 | import { createI18n } from "vue-i18n";
24 | import en from "@/locales/en.json";
25 | import { vi } from "vitest";
26 |
27 | config.global.plugins.push(
28 | createI18n({
29 | legacy: false,
30 | locale: "en",
31 | messages: { en },
32 | })
33 | );
34 |
35 | if (typeof window !== "undefined") {
36 | window.__TAURI_IPC__ = vi.fn();
37 | }
38 |
--------------------------------------------------------------------------------
/tailwind.config.js:
--------------------------------------------------------------------------------
1 | // SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 | //
3 | // SPDX-License-Identifier: CC0-1.0
4 |
5 | module.exports = {
6 | content: [],
7 | plugins: [],
8 | theme: {
9 | extend: {
10 | keyframes: {
11 | slideDownAndFade: {
12 | from: { opacity: 0, transform: "translateY(-2px)" },
13 | to: { opacity: 1, transform: "translateY(0)" },
14 | },
15 | slideLeftAndFade: {
16 | from: { opacity: 0, transform: "translateX(2px)" },
17 | to: { opacity: 1, transform: "translateX(0)" },
18 | },
19 | slideUpAndFade: {
20 | from: { opacity: 0, transform: "translateY(2px)" },
21 | to: { opacity: 1, transform: "translateY(0)" },
22 | },
23 | slideRightAndFade: {
24 | from: { opacity: 0, transform: "translateX(-2px)" },
25 | to: { opacity: 1, transform: "translateX(0)" },
26 | },
27 | },
28 | animation: {
29 | slideDownAndFade:
30 | "slideDownAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
31 | slideLeftAndFade:
32 | "slideLeftAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
33 | slideUpAndFade: "slideUpAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
34 | slideRightAndFade:
35 | "slideRightAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
36 | },
37 | },
38 | },
39 | };
40 |
--------------------------------------------------------------------------------
/Dockerfile.armv7:
--------------------------------------------------------------------------------
1 | # SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox , Vexcited
2 | #
3 | # SPDX-License-Identifier: Apache-2.0
4 |
5 | FROM debian:sid
6 | ARG DEBIAN_FRONTEND=noninteractive
7 |
8 | # Add ARMHF architecture *first*
9 | RUN dpkg --add-architecture armhf
10 |
11 | # Update and upgrade *before* installing anything
12 | RUN apt update && apt upgrade -y
13 |
14 | RUN apt install rustup -y
15 | RUN rustup default stable
16 |
17 | # Install the ARMHF target libraries
18 | RUN apt-get install -y \
19 | build-essential \
20 | libc6:armhf \
21 | libc6-dev:armhf \
22 | libapparmor1:armhf \
23 | libwebkit2gtk-4.1-dev:armhf \
24 | libssl-dev:armhf \
25 | gcc-arm-linux-gnueabihf \
26 | g++-arm-linux-gnueabihf \
27 | libbz2-dev
28 |
29 | RUN rustup target add armv7-unknown-linux-gnueabihf
30 | RUN rustup toolchain install stable-armv7-unknown-linux-gnueabihf
31 | RUN cargo install --version 2.8.4 tauri-cli
32 | WORKDIR /app
33 |
34 | ENV CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc \
35 | CC_armv7_unknown_linux_gnueabihf=arm-linux-gnueabihf-gcc \
36 | CXX_armv7_unknown_linux_gnueabihf=arm-linux-gnueabihf-g++ \
37 | PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig \
38 | PKG_CONFIG_ALLOW_CROSS=1
39 | WORKDIR /app/src-tauri
40 | CMD ["cargo", "tauri", "build", "-b", "deb", "--target", "armv7-unknown-linux-gnueabihf"]
41 |
--------------------------------------------------------------------------------
/.github/workflows/test_tauri.yml:
--------------------------------------------------------------------------------
1 | # SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 | #
3 | # SPDX-License-Identifier: Apache-2.0
4 |
5 | name: "Test Tauri app on pull requests"
6 | permissions:
7 | contents: read
8 | pull-requests: write
9 | on:
10 | pull_request:
11 | types: [ opened, reopened ]
12 | branches:
13 | - main
14 | paths:
15 | - '.github/workflows/**'
16 | - 'src/**'
17 | - 'src-tauri/**'
18 |
19 | jobs:
20 | test-tauri:
21 | strategy:
22 | fail-fast: false
23 | matrix:
24 | platform: [ubuntu-22.04]
25 |
26 | runs-on: ${{ matrix.platform }}
27 | steps:
28 | - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
29 | - name: setup node
30 | uses: actions/setup-node@v4
31 | with:
32 | node-version: 22
33 | - name: install Rust stable
34 | uses: actions-rs/toolchain@v1
35 | with:
36 | toolchain: stable
37 | - name: install dependencies (ubuntu only)
38 | if: matrix.platform == 'ubuntu-22.04'
39 | run: |
40 | sudo apt-get update
41 | sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev
42 | - name: install app dependencies and build it
43 | run: yarn && yarn generate
44 | - uses: tauri-apps/tauri-action@v0
45 | env:
46 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47 |
--------------------------------------------------------------------------------
/components/kanban/TagDisplay.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
20 |
21 |
22 |
69 |
70 |
71 |
72 |
73 |
74 |
83 |
84 |
90 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 |
6 |
7 | # Contributing to Kanri
8 | Thank you for showing interest into contributing to Kanri! First off, some general information:
9 | Kanri is written in TypeScript, Vue (Nuxt v3), and Rust; and is licensed under the GPLv3 license. The landing page and docs site uses Astro with Starlight and [can be found here](https://github.com/trobonox/kanri-website). The documentation is still a big work in progress and if you would like to help, please reach out!
10 |
11 | ## A few rules
12 | By contributing to Kanri, you confirm that the work you are submitting is yours and it will be licensed under the GPLv3 license of the project.
13 |
14 | To ensure uniformity in Kanri's repository, every contributor must follow these set of rules:
15 | * Commits must use the commit convention. (e.g. `feat: add x feature`)
16 | * Have ESLint and Volar installed on your IDE for code formatting.
17 | * Follow the general Vue conventions (except for kebab-casing and events)
18 | * Use camelCasing on any function/method/property in code you've contributed.
19 |
20 | Please also take a look at the [Code of Conduct](https://github.com/trobonox/kanri/blob/main/CODE_OF_CONDUCT.md).
21 |
22 | ## Here’s the process for contributing to Kanri
23 | * Fork the Kanri repository, and clone it locally on your development machine.
24 | * Find help wanted tickets that are up for grabs in GitHub or look at the things that are todo or work in progress in the roadmap (projects tab). Comment to let everyone know you’re working on it and let a core contributor assign the issue to you. If there’s no ticket for what you want to work on, you are free to continue with your changes but consider opening an issue or a discussion to make sure what you want to add is in line with the project vision.
25 | * If in some case you need to use another dependency, create a new issue requesting for the package to be reviewed (by adding the "dependency request" label to the according issue).
26 | * Your code should follow general Vue conventions, except for some exclusions, most notably camelCasing and events.
27 | * After writing your code, make sure to lint your code with `yarn lint`.
28 | * When your changes are checked in to your fork, make sure to test your code extensively. Your commits should also follow the commit conventions.
29 | * Submit your pull request for a code review and wait for a Kanri core contributor to review it. When in doubt, ask for help in the Kanri Discord server or open an issue.
30 | * Last but not least, make sure to have fun with the code!
31 |
32 | We’re glad you’re here; good luck and have fun. 🤍
33 |
34 | ## Development workspace
35 | ### Recommended IDE setup
36 | * IDE: Visual Studio Code (w/ Volar & ESLint)
37 | * Node.js (LTS recommended) & NPM
38 | * Yarn Package Manager
39 | * [Tauri Development Environment](https://tauri.app/v1/guides/getting-started/prerequisites/)
40 |
41 | ### Building and testing your fork
42 | While testing and making modifications to Kanri, make sure to familiarise yourself with these three commands.
43 |
44 | ```bash
45 | # Install dependencies
46 | yarn install
47 |
48 | # Start debug tauri build
49 | yarn tauri dev
50 |
51 | # Lint and cleanup code
52 | yarn lint
53 |
54 | # Build tauri for production
55 | yarn generate
56 | yarn tauri build
57 | ```
58 |
--------------------------------------------------------------------------------
/components/Modal.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
20 |
21 |
22 |
23 |
8 |
9 | Kanban boards done right. Made with simplicity and user experience in mind, Kanri helps you create Kanban boards easily, right from your desktop. No internet connection or account needed!
10 |
25 |
26 |
27 | ## 🚀 Demo
28 | 
29 |
30 |
31 | ## ⬇️ Download
32 | You can download Kanri for Windows, Mac and Linux at [kanriapp.com](https://kanriapp.com), it's free!
33 |
34 | Alternatively, macOS users can install using homebrew:
35 | ```bash
36 | brew install --no-quarantine kanriapp/cask/kanri
37 | ```
38 |
39 | Apple Silicon users, please run this command to prevent the error saying the app is broken (not required if installing using homebrew):
40 | ```bash
41 | xattr -cr /Applications/kanri.app
42 | ```
43 |
44 | ## ✨ Why Kanri?
45 | - 🏙 Modern - featuring a clean design & new technologies like Tauri
46 | - 👓 Familiar - uses a Kanban board layout (with unlimited boards, columns and tasks, including rich-text descriptions, sub-tasks, due-dates and tags)
47 | - 🧾 Offline - saves your data in a local `.json` file
48 | - 🛠 Customizable - allows for custom themes, background images and card colors
49 | - ⌨ With power users in mind - implements keyboard shortcuts to speed up board navigation
50 |
51 | ## 📋 Roadmap
52 | Long term vision for the project:
53 | - 👷♂️ Improve current features and refactor to avoid tech debt
54 | - ➕ Add additional small/mid-sized features with high impact (reminders, sub-tasks, etc.)
55 | - 🚚 Work towards 1.0 release with features from the backlog like internationalization or a widget panel
56 | - 🔍 After 1.0: Assess what direction to take (focus on offline-only features or add support for cloud sync and collaboration)
57 |
58 | A granular list of priorities can be found [in the roadmap](https://github.com/orgs/kanriapp/projects/2).
59 |
60 | This project is open for any contributions or feature requests as long as they are polite, provide enough context and remain patient (replies might take a few days).
61 |
62 | > [!NOTE]
63 | > This project is still in active development and is provided "AS IS". Please make regular backups/exports to prevent any data loss.
64 |
65 | ## 🛠 Contributing & Build Setup
66 | If you want to contribute, please take a look at the [Contribution Guidelines](https://github.com/trobonox/kanri/blob/main/CONTRIBUTING.md).
67 | The `main` branch is equivalent to a `dev` branch where development is done on - submit PRs here. The `release` branch is similar to a `stable` branch with the code of latest release.
68 |
69 | **Build Setup**:
70 | If you want to build the app, you need to install Node.js (latest LTS version recommended), a package manager like yarn and the [↗ Tauri development environment](https://tauri.app/start/prerequisites/).
71 | Then, depending on your use case you can run the commands below:
72 |
73 | ```bash
74 | # Install dependencies
75 | yarn install
76 |
77 | # Start debug tauri build
78 | yarn tauri dev
79 |
80 | # Build tauri for production
81 | yarn generate
82 | yarn tauri build
83 | ```
84 |
85 | ---
86 | **Copyright (c) 2022-2025 trobonox (trobo@kanriapp.com)**. Licensed under GPL v3 (with some files under Apache 2.0 or other licenses stated in the files themselves).
87 | The Kanri logo, name and other branding are **NOT** open source, full copyright belongs to trobonox.
88 |
--------------------------------------------------------------------------------
/components/modal/RenameBoard.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
20 |
21 |
22 |
23 |
24 |
25 |
83 |
84 |
85 |
120 |
121 |
129 |
--------------------------------------------------------------------------------
/.github/workflows/release.yml:
--------------------------------------------------------------------------------
1 | # SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 | #
3 | # SPDX-License-Identifier: Apache-2.0
4 |
5 | name: 'Create Release'
6 |
7 | on:
8 | push:
9 | branches:
10 | - release
11 |
12 | concurrency:
13 | group: ${{ github.workflow }}-${{ github.ref }}
14 | cancel-in-progress: true
15 |
16 | jobs:
17 | publish-kanri:
18 | permissions:
19 | contents: write
20 | strategy:
21 | fail-fast: false
22 | matrix:
23 | include:
24 | - platform: 'macos-latest' # for Arm based macs (M1 and above).
25 | args: '--target aarch64-apple-darwin'
26 | - platform: 'macos-latest' # for Intel based macs.
27 | args: '--target x86_64-apple-darwin'
28 | - platform: 'ubuntu-22.04' # for Tauri v1 you could replace this with ubuntu-20.04.
29 | args: ''
30 | - platform: 'windows-latest'
31 | args: ''
32 |
33 | runs-on: ${{ matrix.platform }}
34 | outputs:
35 | upload_url: ${{ steps.release.outputs.releaseUploadUrl }}
36 | steps:
37 | - uses: actions/checkout@v5
38 |
39 | - name: setup node
40 | uses: actions/setup-node@v4
41 | with:
42 | node-version: lts/*
43 |
44 | - name: install Rust stable
45 | uses: dtolnay/rust-toolchain@stable
46 | with:
47 | # Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
48 | targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
49 |
50 | - name: install dependencies (ubuntu only)
51 | if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
52 | run: |
53 | sudo apt-get update
54 | sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
55 | # webkitgtk 4.0 is for Tauri v1 - webkitgtk 4.1 is for Tauri v2.
56 | # You can remove the one that doesn't apply to your app to speed up the workflow a bit.
57 |
58 | - name: install frontend dependencies
59 | run: |
60 | yarn cache clean
61 | yarn config delete proxy
62 | yarn config delete https-proxy
63 | yarn config delete registry
64 | yarn install --network-timeout 1000000 --frozen-lockfile
65 |
66 | - name: Build frontend
67 | run: yarn generate
68 |
69 | - name: Override linuxdeploy version (potential Linux fix)
70 | if: matrix.platform == 'ubuntu-22.04'
71 | run: |
72 | # Pin linuxdeploy version to prevent @tauri-apps/cli-linux-x64-gnu from pulling in an outdated version
73 | TAURI_TOOLKIT_PATH="${XDG_CACHE_HOME:-$HOME/.cache}/tauri"
74 | mkdir -p "$TAURI_TOOLKIT_PATH"
75 | wget https://github.com/linuxdeploy/linuxdeploy/releases/download/1-alpha-20250213-2/linuxdeploy-x86_64.AppImage -O "$TAURI_TOOLKIT_PATH/linuxdeploy-x86_64.AppImage"
76 | chmod +x "$TAURI_TOOLKIT_PATH/linuxdeploy-x86_64.AppImage"
77 |
78 |
79 | - uses: tauri-apps/tauri-action@v0
80 | id: release
81 | env:
82 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
83 | with:
84 | tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version.
85 | releaseName: 'Kanri v__VERSION__'
86 | releaseBody: 'See the assets to download this version and install.'
87 | releaseDraft: true
88 | prerelease: false
89 | args: ${{ matrix.args }}
90 |
91 | publish-kanri-arm:
92 | needs: publish-kanri
93 | permissions:
94 | contents: write
95 | strategy:
96 | matrix:
97 | arch: [arm64, armv7]
98 |
99 | runs-on: ubuntu-22.04
100 | steps:
101 | - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
102 | - uses: actions/setup-node@v4
103 | with:
104 | node-version: lts/*
105 | - name: Install dependencies
106 | run: yarn install
107 | - name: Build for ${{ matrix.arch }}
108 | run: yarn run init:${{matrix.arch}} && yarn run build:${{matrix.arch}}
109 |
110 | - name: Output Tauri release url
111 | run: echo ${{ needs.publish-kanri.outputs.upload_url }}
112 |
113 | - name: Upload Multiple Release Assets
114 | uses: NBTX/upload-release-assets@v1
115 | env:
116 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
117 | with:
118 | upload_url: ${{ needs.publish-kanri.outputs.upload_url }}
119 | targets: ./src-tauri/target/*/release/bundle/deb/*.deb
120 |
121 |
122 |
--------------------------------------------------------------------------------
/stores/settings.ts:
--------------------------------------------------------------------------------
1 | /* SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 |
3 | SPDX-License-Identifier: GPL-3.0-or-later
4 |
5 | Kanri is an offline Kanban board app made using Tauri and Nuxt.
6 | Copyright (C) 2022-2025 trobonox
7 |
8 | This program is free software: you can redistribute it and/or modify
9 | it under the terms of the GNU General Public License as published by
10 | the Free Software Foundation, either version 3 of the License, or
11 | (at your option) any later version.
12 |
13 | This program is distributed in the hope that it will be useful,
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 | GNU General Public License for more details.
17 |
18 | You should have received a copy of the GNU General Public License
19 | along with this program. If not, see .
20 | */
21 |
22 | import { disable, enable, isEnabled } from "@tauri-apps/plugin-autostart";
23 | import type { set } from "zod/v4";
24 |
25 | export const useSettingsStore = defineStore("settings", {
26 | state: () => {
27 | /* Start page settings */
28 | const boardSortingOption = ref("manual");
29 | const reverseSorting = ref(false);
30 | // TODO: implement logic/migrate to store
31 |
32 | /* Overall app settings */
33 | const locale = ref("en");
34 | const animationsEnabled = ref(true);
35 | const autostartEnabled = ref(false);
36 | const disableSpellcheck = ref(false);
37 |
38 | /* Global board settings */
39 | const columnZoomLevel = ref(0);
40 | const addToTopOfColumnButtonEnabled = ref(false);
41 | const displayColumnCardCountEnabled = ref(false);
42 | const defaultRelativeDueDatesEnabled = ref(false);
43 |
44 | return {
45 | locale,
46 | animationsEnabled,
47 | autostartEnabled,
48 | disableSpellcheck,
49 |
50 | columnZoomLevel,
51 | addToTopOfColumnButtonEnabled,
52 | displayColumnCardCountEnabled,
53 | defaultRelativeDueDatesEnabled,
54 | }
55 | },
56 |
57 | actions: {
58 | async loadSettings() {
59 | const store = useTauriStore().store;
60 |
61 | const localeSaved: string = await store.get("locale") ?? "en";
62 | const animationsEnabledSaved: boolean = await store.get("animationsEnabled") ?? true;
63 | const autostartEnabledSaved: boolean = await isEnabled() ?? false;
64 |
65 | const columnZoomLevelSaved: number = await store.get("columnZoomLevel") ?? 0;
66 | const addToTopOfColumnButtonEnabledSaved: boolean = await store.get("addToTopOfColumnButtonEnabled") ?? false;
67 | const displayColumnCardCountEnabledSaved: boolean = await store.get("displayColumnCardCountEnabled") ?? false;
68 | const defaultRelativeDueDatesEnabledSaved: boolean = await store.get("defaultRelativeDueDatesEnabled") ?? false;
69 |
70 | this.locale = localeSaved;
71 | this.animationsEnabled = animationsEnabledSaved;
72 | this.autostartEnabled = autostartEnabledSaved;
73 | this.columnZoomLevel = columnZoomLevelSaved;
74 | this.addToTopOfColumnButtonEnabled = addToTopOfColumnButtonEnabledSaved;
75 | this.displayColumnCardCountEnabled = displayColumnCardCountEnabledSaved;
76 | this.defaultRelativeDueDatesEnabled = defaultRelativeDueDatesEnabledSaved;
77 | },
78 |
79 | async deleteAllData() {
80 | const store = useTauriStore().store;
81 | await store.reset();
82 | await this.loadSettings(); // load defaults
83 | },
84 |
85 | async setLocale(locale: string) {
86 | this.locale = locale;
87 | await useTauriStore().store.set("locale", locale);
88 | },
89 |
90 | async setAnimationsEnabled(value: boolean) {
91 | this.animationsEnabled = value;
92 | await useTauriStore().store.set("animationsEnabled", value);
93 | },
94 |
95 | async setAutostartEnabled(value: boolean) {
96 | this.autostartEnabled = value;
97 |
98 | // set using tauri plugin, not saving in store
99 | if (value) await enable();
100 | else await disable();
101 | },
102 |
103 | async setDisableSpellcheck(value: boolean) {
104 | this.disableSpellcheck = value;
105 | await useTauriStore().store.set("disableSpellcheck", value);
106 | },
107 |
108 | async setColumnZoomLevel(value: number) {
109 | this.columnZoomLevel = value;
110 | await useTauriStore().store.set("columnZoomLevel", value);
111 | },
112 |
113 | async setAddToTopOfColumnButtonEnabled(value: boolean) {
114 | this.addToTopOfColumnButtonEnabled = value;
115 | await useTauriStore().store.set("addToTopOfColumnButtonEnabled", value);
116 | },
117 |
118 | async setDisplayColumnCardCountEnabled(value: boolean) {
119 | this.displayColumnCardCountEnabled = value;
120 | await useTauriStore().store.set("displayColumnCardCountEnabled", value);
121 | },
122 |
123 | async setDefaultRelativeDueDatesEnabled(value: boolean) {
124 | this.defaultRelativeDueDatesEnabled = value;
125 | await useTauriStore().store.set("defaultRelativeDueDatesEnabled", value);
126 | }
127 | }
128 | });
129 |
--------------------------------------------------------------------------------
/types/json-schemas.ts:
--------------------------------------------------------------------------------
1 | /* SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 |
3 | SPDX-License-Identifier: GPL-3.0-or-later
4 |
5 | Kanri is an offline Kanban board app made using Tauri and Nuxt.
6 | Copyright (C) 2022-2025 trobonox
7 |
8 | This program is free software: you can redistribute it and/or modify
9 | it under the terms of the GNU General Public License as published by
10 | the Free Software Foundation, either version 3 of the License, or
11 | (at your option) any later version.
12 |
13 | This program is distributed in the hope that it will be useful,
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 | GNU General Public License for more details.
17 |
18 | You should have received a copy of the GNU General Public License
19 | along with this program. If not, see .
20 | */
21 |
22 | import { z } from "zod";
23 |
24 | export const kanriThemeSchema = z.object({
25 | accent: z.string(),
26 | accentDarker: z.string(),
27 | bgPrimary: z.string(),
28 | elevation1: z.string(),
29 | elevation2: z.string(),
30 | elevation3: z.string(),
31 | text: z.string(),
32 | textButtons: z.string(),
33 | textD1: z.string(),
34 | textD2: z.string(),
35 | textD3: z.string(),
36 | textD4: z.string(),
37 | });
38 |
39 | const kanriTagSchema = z.object({
40 | id: z.string().optional(),
41 | text: z.string(),
42 | color: z.string().optional(),
43 | style: z.string().optional(),
44 | });
45 |
46 | const kanriCardSchema = z.object({
47 | color: z.string().optional(),
48 | description: z.string().optional(),
49 | id: z.string().optional(),
50 | name: z.string(),
51 | tasks: z
52 | .array(
53 | z.object({
54 | id: z.string().optional(),
55 | finished: z.boolean(),
56 | name: z.string(),
57 | })
58 | )
59 | .optional(),
60 | dueDate: z.string().optional().nullable(),
61 | tags: z.array(kanriTagSchema).optional().nullable(),
62 | });
63 |
64 | const kanriColumnSchema = z.object({
65 | cards: z.array(kanriCardSchema),
66 | id: z.string(),
67 | title: z.string(),
68 | });
69 |
70 | const kanriBoardBackgroundSchema = z
71 | .object({
72 | blur: z.string(),
73 | brightness: z.string(),
74 | src: z.string(),
75 | })
76 | .optional()
77 | .nullable();
78 |
79 | export const kanriBoardSchema = z.object({
80 | globalTags: z.array(kanriTagSchema).optional().nullable(),
81 | background: kanriBoardBackgroundSchema,
82 | columns: z.array(kanriColumnSchema),
83 | id: z.string(),
84 | lastEdited: z.string().optional(),
85 | title: z.string(),
86 | });
87 |
88 | export const kanbanElectronBoardSchema = z.object({
89 | id: z.string(),
90 | lists: z.array(kanriColumnSchema),
91 | title: z.string(),
92 | });
93 |
94 | export const kanriJsonSchema = z.object({
95 | activeTheme: z.string(),
96 | animationsEnabled: z.boolean().optional().nullable(),
97 | boardSortingOption: z.string().optional().nullable(),
98 | boards: z.array(kanriBoardSchema),
99 | colors: kanriThemeSchema,
100 | columnZoomLevel: z.number().optional().nullable(),
101 | lastInstalledVersion: z.string().optional().nullable(),
102 | savedCustomTheme: kanriThemeSchema.optional().nullable(),
103 | reverseSorting: z.boolean().optional().nullable(),
104 | addToTopOfColumnButtonEnabled: z.boolean().optional().nullable(),
105 | displayColumnCardCountEnabled: z.boolean().optional().nullable(),
106 | // If enabled, newly created due dates default to relative countdown mode
107 | defaultRelativeDueDatesEnabled: z.boolean().optional().nullable(),
108 | pins: z
109 | .array(
110 | z.object({
111 | id: z.string(),
112 | title: z.string(),
113 | pinIcon: z.string().optional(),
114 | pinIconText: z.string().optional(),
115 | })
116 | )
117 | .optional()
118 | .nullable(),
119 | });
120 |
121 | export const kanbanElectronJsonSchema = z.object({
122 | activeTheme: z.string(),
123 | boards: z.array(kanbanElectronBoardSchema),
124 | colors: kanriThemeSchema,
125 | columnZoomLevel: z.string().optional(),
126 | });
127 |
128 | export const trelloJsonSchema = z.object({
129 | cards: z.array(
130 | z.object({
131 | labels: z.array(
132 | z.object({
133 | id: z.string(),
134 | idBoard: z.string(),
135 | name: z.string(),
136 | color: z.string(),
137 | uses: z.number(),
138 | })
139 | ),
140 | due: z.string().nullable(),
141 | closed: z.boolean(),
142 | desc: z.string(),
143 | id: z.string(),
144 | idChecklists: z.array(z.string()),
145 | idList: z.string(),
146 | name: z.string(),
147 | })
148 | ),
149 | checklists: z.array(
150 | z.object({
151 | checkItems: z.array(
152 | z.object({
153 | id: z.string(),
154 | name: z.string(),
155 | state: z.string(),
156 | })
157 | ),
158 | id: z.string(),
159 | idBoard: z.string(),
160 | idCard: z.string(),
161 | })
162 | ),
163 | labels: z.array(
164 | z.object({
165 | id: z.string(),
166 | idBoard: z.string(),
167 | name: z.string(),
168 | color: z.string(),
169 | uses: z.number(),
170 | })
171 | ),
172 | lists: z.array(
173 | z.object({
174 | closed: z.boolean(),
175 | id: z.string(),
176 | name: z.string(),
177 | })
178 | ),
179 | name: z.string(),
180 | });
181 |
--------------------------------------------------------------------------------
/components/CustomThemeEditor.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
20 |
21 |
22 |
23 |
24 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
47 |
48 |
49 |
54 |
55 |
56 |
57 |
58 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
134 |
135 |
153 |
--------------------------------------------------------------------------------
/utils/iconManager.ts:
--------------------------------------------------------------------------------
1 | /* SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox , gruen132
2 |
3 | SPDX-License-Identifier: GPL-3.0-or-later
4 |
5 | Kanri is an offline Kanban board app made using Tauri and Nuxt.
6 | Copyright (C) 2022-2025 trobonox
7 |
8 | This program is free software: you can redistribute it and/or modify
9 | it under the terms of the GNU General Public License as published by
10 | the Free Software Foundation, either version 3 of the License, or
11 | (at your option) any later version.
12 |
13 | This program is distributed in the hope that it will be useful,
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 | GNU General Public License for more details.
17 |
18 | You should have received a copy of the GNU General Public License
19 | along with this program. If not, see .
20 | */
21 |
22 | import {
23 | PhArticle,
24 | PhNotepad,
25 | PhListChecks,
26 | PhBookmark,
27 | PhFlag,
28 | PhStar,
29 | PhPushPin,
30 | // Add more icons here
31 | PhNote,
32 | PhBookmarks,
33 | PhFiles,
34 | PhFolder,
35 | PhFolderOpen,
36 | PhClipboard,
37 | PhClipboardText,
38 | PhKanban,
39 | PhChartBar,
40 | PhGraph,
41 | PhBriefcase,
42 | PhTarget,
43 | PhLightbulb,
44 | PhRocket,
45 | } from "@phosphor-icons/vue";
46 | import type { Component } from "vue";
47 |
48 | export interface IconDefinition {
49 | name: string;
50 | component: Component;
51 | category: string;
52 | tags?: string[];
53 | }
54 |
55 | const iconCategories = [
56 | "Common",
57 | "Documents",
58 | "Organization",
59 | "Project Management",
60 | "Misc",
61 | ] as const;
62 |
63 | export type IconCategory = (typeof iconCategories)[number];
64 |
65 | export const availableIcons: IconDefinition[] = [
66 | // Common icons
67 | {
68 | name: "article",
69 | component: PhArticle,
70 | category: "Common",
71 | tags: ["document", "paper", "file"],
72 | },
73 | {
74 | name: "star",
75 | component: PhStar,
76 | category: "Common",
77 | tags: ["favorite", "important"],
78 | },
79 | {
80 | name: "pin",
81 | component: PhPushPin,
82 | category: "Common",
83 | tags: ["pinned", "save"],
84 | },
85 |
86 | // Documents
87 | {
88 | name: "notepad",
89 | component: PhNotepad,
90 | category: "Documents",
91 | tags: ["notes", "write"],
92 | },
93 | {
94 | name: "note",
95 | component: PhNote,
96 | category: "Documents",
97 | tags: ["memo", "write"],
98 | },
99 | {
100 | name: "clipboard",
101 | component: PhClipboard,
102 | category: "Documents",
103 | tags: ["tasks", "list"],
104 | },
105 | {
106 | name: "clipboard-text",
107 | component: PhClipboardText,
108 | category: "Documents",
109 | tags: ["tasks", "list", "notes"],
110 | },
111 |
112 | // Organization
113 | {
114 | name: "folder",
115 | component: PhFolder,
116 | category: "Organization",
117 | tags: ["directory", "storage"],
118 | },
119 | {
120 | name: "folder-open",
121 | component: PhFolderOpen,
122 | category: "Organization",
123 | tags: ["directory", "storage"],
124 | },
125 | {
126 | name: "files",
127 | component: PhFiles,
128 | category: "Organization",
129 | tags: ["documents", "multiple"],
130 | },
131 |
132 | // Project Management
133 | {
134 | name: "kanban",
135 | component: PhKanban,
136 | category: "Project Management",
137 | tags: ["board", "tasks"],
138 | },
139 | {
140 | name: "list",
141 | component: PhListChecks,
142 | category: "Project Management",
143 | tags: ["tasks", "todo"],
144 | },
145 | {
146 | name: "chart",
147 | component: PhChartBar,
148 | category: "Project Management",
149 | tags: ["stats", "progress"],
150 | },
151 | {
152 | name: "graph",
153 | component: PhGraph,
154 | category: "Project Management",
155 | tags: ["analytics", "progress"],
156 | },
157 | {
158 | name: "target",
159 | component: PhTarget,
160 | category: "Project Management",
161 | tags: ["goal", "aim"],
162 | },
163 |
164 | // Misc
165 | {
166 | name: "bookmark",
167 | component: PhBookmark,
168 | category: "Misc",
169 | tags: ["save", "mark"],
170 | },
171 | {
172 | name: "bookmarks",
173 | component: PhBookmarks,
174 | category: "Misc",
175 | tags: ["save", "multiple"],
176 | },
177 | {
178 | name: "flag",
179 | component: PhFlag,
180 | category: "Misc",
181 | tags: ["mark", "important"],
182 | },
183 | {
184 | name: "briefcase",
185 | component: PhBriefcase,
186 | category: "Misc",
187 | tags: ["work", "business"],
188 | },
189 | {
190 | name: "lightbulb",
191 | component: PhLightbulb,
192 | category: "Misc",
193 | tags: ["idea", "creative"],
194 | },
195 | {
196 | name: "rocket",
197 | component: PhRocket,
198 | category: "Misc",
199 | tags: ["launch", "start"],
200 | },
201 | ];
202 |
203 | export const getIconsByCategory = (
204 | category: IconCategory
205 | ): IconDefinition[] => {
206 | return availableIcons.filter((icon) => icon.category === category);
207 | };
208 |
209 | export const searchIcons = (query: string): IconDefinition[] => {
210 | const searchTerm = query.toLowerCase();
211 | return availableIcons.filter(
212 | (icon) =>
213 | icon.name.toLowerCase().includes(searchTerm) ||
214 | icon.tags?.some((tag) => tag.toLowerCase().includes(searchTerm))
215 | );
216 | };
217 |
218 | export const categories = iconCategories;
219 |
--------------------------------------------------------------------------------
/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 |
6 |
7 | # Contributor Covenant Code of Conduct
8 |
9 | ## Our Pledge
10 |
11 | We as members, contributors, and leaders pledge to make participation in our
12 | community a harassment-free experience for everyone, regardless of age, body
13 | size, visible or invisible disability, ethnicity, sex characteristics, gender
14 | identity and expression, level of experience, education, socio-economic status,
15 | nationality, personal appearance, race, religion, or sexual identity
16 | and orientation.
17 |
18 | We pledge to act and interact in ways that contribute to an open, welcoming,
19 | diverse, inclusive, and healthy community.
20 |
21 | ## Our Standards
22 |
23 | Examples of behavior that contributes to a positive environment for our
24 | community include:
25 |
26 | * Demonstrating empathy and kindness toward other people
27 | * Being respectful of differing opinions, viewpoints, and experiences
28 | * Giving and gracefully accepting constructive feedback
29 | * Accepting responsibility and apologizing to those affected by our mistakes,
30 | and learning from the experience
31 | * Focusing on what is best not just for us as individuals, but for the
32 | overall community
33 |
34 | Examples of unacceptable behavior include:
35 |
36 | * The use of sexualized language or imagery, and sexual attention or
37 | advances of any kind
38 | * Trolling, insulting or derogatory comments, and personal or political attacks
39 | * Public or private harassment
40 | * Publishing others' private information, such as a physical or email
41 | address, without their explicit permission
42 | * Other conduct which could reasonably be considered inappropriate in a
43 | professional setting
44 |
45 | ## Enforcement Responsibilities
46 |
47 | Community leaders are responsible for clarifying and enforcing our standards of
48 | acceptable behavior and will take appropriate and fair corrective action in
49 | response to any behavior that they deem inappropriate, threatening, offensive,
50 | or harmful.
51 |
52 | Community leaders have the right and responsibility to remove, edit, or reject
53 | comments, commits, code, wiki edits, issues, and other contributions that are
54 | not aligned to this Code of Conduct, and will communicate reasons for moderation
55 | decisions when appropriate.
56 |
57 | ## Scope
58 |
59 | This Code of Conduct applies within all community spaces, and also applies when
60 | an individual is officially representing the community in public spaces.
61 | Examples of representing our community include using an official e-mail address,
62 | posting via an official social media account, or acting as an appointed
63 | representative at an online or offline event.
64 |
65 | ## Enforcement
66 |
67 | Instances of abusive, harassing, or otherwise unacceptable behavior may be
68 | reported to the community leaders responsible for enforcement at
69 | hello@trobo.dev.
70 | All complaints will be reviewed and investigated promptly and fairly.
71 |
72 | All community leaders are obligated to respect the privacy and security of the
73 | reporter of any incident.
74 |
75 | ## Enforcement Guidelines
76 |
77 | Community leaders will follow these Community Impact Guidelines in determining
78 | the consequences for any action they deem in violation of this Code of Conduct:
79 |
80 | ### 1. Correction
81 |
82 | **Community Impact**: Use of inappropriate language or other behavior deemed
83 | unprofessional or unwelcome in the community.
84 |
85 | **Consequence**: A private, written warning from community leaders, providing
86 | clarity around the nature of the violation and an explanation of why the
87 | behavior was inappropriate. A public apology may be requested.
88 |
89 | ### 2. Warning
90 |
91 | **Community Impact**: A violation through a single incident or series
92 | of actions.
93 |
94 | **Consequence**: A warning with consequences for continued behavior. No
95 | interaction with the people involved, including unsolicited interaction with
96 | those enforcing the Code of Conduct, for a specified period of time. This
97 | includes avoiding interactions in community spaces as well as external channels
98 | like social media. Violating these terms may lead to a temporary or
99 | permanent ban.
100 |
101 | ### 3. Temporary Ban
102 |
103 | **Community Impact**: A serious violation of community standards, including
104 | sustained inappropriate behavior.
105 |
106 | **Consequence**: A temporary ban from any sort of interaction or public
107 | communication with the community for a specified period of time. No public or
108 | private interaction with the people involved, including unsolicited interaction
109 | with those enforcing the Code of Conduct, is allowed during this period.
110 | Violating these terms may lead to a permanent ban.
111 |
112 | ### 4. Permanent Ban
113 |
114 | **Community Impact**: Demonstrating a pattern of violation of community
115 | standards, including sustained inappropriate behavior, harassment of an
116 | individual, or aggression toward or disparagement of classes of individuals.
117 |
118 | **Consequence**: A permanent ban from any sort of public interaction within
119 | the community.
120 |
121 | ## Attribution
122 |
123 | This Code of Conduct is adapted from the [Contributor Covenant][homepage],
124 | version 2.0, available at
125 | https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
126 |
127 | Community Impact Guidelines were inspired by [Mozilla's code of conduct
128 | enforcement ladder](https://github.com/mozilla/diversity).
129 |
130 | [homepage]: https://www.contributor-covenant.org
131 |
132 | For answers to common questions about this code of conduct, see the FAQ at
133 | https://www.contributor-covenant.org/faq. Translations are available at
134 | https://www.contributor-covenant.org/translations.
135 |
--------------------------------------------------------------------------------
/components/kanban/SearchBar.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
20 |
21 |
block in `pages/licenses/index.vue`
8 | // 4) Read `src-tauri/license.html`, extract the ... and replace the block in `pages/licenses/rust.vue`
9 |
10 | // Note: This project uses type: module. Use ESM imports and import.meta.url.
11 | import { execSync } from 'node:child_process';
12 | import { readFileSync, writeFileSync, existsSync } from 'node:fs';
13 | import path from 'node:path';
14 | import { fileURLToPath } from 'node:url';
15 |
16 | const __filename = fileURLToPath(import.meta.url);
17 | const __dirname = path.dirname(__filename);
18 | const repoRoot = path.resolve(__dirname, '..');
19 |
20 | function log(step, message) {
21 | const stamp = new Date().toISOString();
22 | console.log(`[${stamp}] [${step}] ${message}`);
23 | }
24 |
25 | function run(cmd, cwd) {
26 | log('run', `${cmd} (cwd=${cwd || process.cwd()})`);
27 | execSync(cmd, { stdio: 'inherit', cwd: cwd || process.cwd(), shell: true });
28 | }
29 |
30 | function findFirstExisting(paths) {
31 | for (const p of paths) {
32 | if (existsSync(p)) return p;
33 | }
34 | return null;
35 | }
36 |
37 | // Escape angle brackets for safe insertion into HTML
38 | function escapeAngleBrackets(content) {
39 | // The intent is to display raw text in HTML; escape < and >.
40 | // Also normalize CRLF to LF to avoid double-escaping edge cases.
41 | return content.replace(/\r\n/g, '\n').replace(//g, '>');
42 | }
43 |
44 | // Replace the first
...
block in a Vue SFC file with provided content
45 | function replacePreBlock(vueFilePath, escapedText) {
46 | const original = readFileSync(vueFilePath, 'utf8');
47 |
48 | // Capture indentation before
to keep formatting consistent
49 | const preRegex = /(\n|\r|^)\s*
/i;
50 | const match = original.match(preRegex);
51 | if (!match) {
52 | throw new Error(`No
...
block found in ${vueFilePath}`);
53 | }
54 |
55 | // Determine the indentation of the first
`;
62 | const updated = original.replace(preRegex, replacement);
63 | writeFileSync(vueFilePath, updated);
64 | return { changed: original !== updated };
65 | }
66 |
67 | // Extract the first ... block from an HTML file
68 | function extractMain(htmlFilePath) {
69 | const html = readFileSync(htmlFilePath, 'utf8');
70 | const mainRegex = //i;
71 | const m = html.match(mainRegex);
72 | if (!m) {
73 | throw new Error(`No ... found in ${htmlFilePath}`);
74 | }
75 | return m[0];
76 | }
77 |
78 | // Replace the first ... block in a Vue SFC
79 | function replaceMainInVue(vueFilePath, newMainHtml) {
80 | const original = readFileSync(vueFilePath, 'utf8');
81 | const mainRegex = //i;
82 | if (!mainRegex.test(original)) {
83 | throw new Error(`No ... block found in ${vueFilePath}`);
84 | }
85 | const updated = original.replace(mainRegex, newMainHtml);
86 | writeFileSync(vueFilePath, updated);
87 | return { changed: original !== updated };
88 | }
89 |
90 | async function main() {
91 | const args = process.argv.slice(2);
92 | const skipCommands = args.includes('--skip-commands');
93 |
94 | // Step 1: run yarn generate
95 | if (!skipCommands) {
96 | log('step-1', 'Running `yarn generate` at repository root...');
97 | run('yarn generate', repoRoot);
98 | } else {
99 | log('step-1', 'Skipping `yarn generate` (flag --skip-commands)');
100 | }
101 |
102 | // Step 2: run cargo about generate in src-tauri
103 | const srcTauriDir = path.resolve(repoRoot, 'src-tauri');
104 | if (!skipCommands) {
105 | log('step-2', 'Generating Rust license report with `cargo about`...');
106 | const aboutHbs = path.resolve(srcTauriDir, 'about.hbs');
107 | if (!existsSync(aboutHbs)) {
108 | throw new Error(`Template not found: ${aboutHbs}`);
109 | }
110 | run('cargo about generate about.hbs -o license.html', srcTauriDir);
111 | } else {
112 | log('step-2', 'Skipping `cargo about generate` (flag --skip-commands)');
113 | }
114 |
115 | // Step 3: Replace
in pages/licenses/index.vue with escaped LICENSES_3RD_PARTY.txt
116 | log('step-3', 'Embedding LICENSES_3RD_PARTY.txt into pages/licenses/index.vue...');
117 | const thirdPartyReportPath = path.resolve(repoRoot, 'LICENSES_3RD_PARTY.txt');
118 | if (!existsSync(thirdPartyReportPath)) {
119 | throw new Error(`Missing file: ${thirdPartyReportPath}`);
120 | }
121 | const rawThirdParty = readFileSync(thirdPartyReportPath, 'utf8');
122 | const escapedThirdParty = escapeAngleBrackets(rawThirdParty);
123 |
124 | const licensesIndexCandidates = [
125 | path.resolve(repoRoot, 'pages', 'licenses', 'index.vue'), // expected
126 | path.resolve(repoRoot, 'pages', 'licenes', 'index.vue'), // fallback for potential typo
127 | ];
128 | const licensesIndexPath = findFirstExisting(licensesIndexCandidates);
129 | if (!licensesIndexPath) {
130 | throw new Error('Could not find licenses index.vue page in either pages/licenses/index.vue or pages/licenes/index.vue');
131 | }
132 | replacePreBlock(licensesIndexPath, escapedThirdParty);
133 | log('step-3', `Updated
block in ${path.relative(repoRoot, licensesIndexPath)}`);
134 |
135 | // Step 4: Extract from src-tauri/license.html and replace in pages/licenses/rust.vue
136 | log('step-4', 'Replacing in pages/licenses/rust.vue with generated Rust licenses HTML...');
137 | const generatedHtmlPath = path.resolve(srcTauriDir, 'license.html');
138 | if (!existsSync(generatedHtmlPath)) {
139 | throw new Error(`Generated HTML not found: ${generatedHtmlPath}. Did step 2 succeed?`);
140 | }
141 | const newMainHtml = extractMain(generatedHtmlPath);
142 |
143 | const rustVueCandidates = [
144 | path.resolve(repoRoot, 'pages', 'licenses', 'rust.vue'), // expected
145 | path.resolve(repoRoot, 'pages', 'rust.vue'), // fallback for potential older path
146 | ];
147 | const rustVuePath = findFirstExisting(rustVueCandidates);
148 | if (!rustVuePath) {
149 | throw new Error('Could not find Rust licenses page in either pages/licenses/rust.vue or pages/rust.vue');
150 | }
151 | replaceMainInVue(rustVuePath, newMainHtml);
152 | log('step-4', `Updated block in ${path.relative(repoRoot, rustVuePath)}`);
153 |
154 | log('done', 'All steps completed successfully.');
155 | }
156 |
157 | main().catch(err => {
158 | console.error(`[error] ${err.message}`);
159 | process.exit(1);
160 | });
--------------------------------------------------------------------------------
/LICENSES/CC0-1.0.txt:
--------------------------------------------------------------------------------
1 | Creative Commons Legal Code
2 |
3 | CC0 1.0 Universal
4 |
5 | CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
6 | LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
7 | ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
8 | INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
9 | REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
10 | PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
11 | THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
12 | HEREUNDER.
13 |
14 | Statement of Purpose
15 |
16 | The laws of most jurisdictions throughout the world automatically confer
17 | exclusive Copyright and Related Rights (defined below) upon the creator
18 | and subsequent owner(s) (each and all, an "owner") of an original work of
19 | authorship and/or a database (each, a "Work").
20 |
21 | Certain owners wish to permanently relinquish those rights to a Work for
22 | the purpose of contributing to a commons of creative, cultural and
23 | scientific works ("Commons") that the public can reliably and without fear
24 | of later claims of infringement build upon, modify, incorporate in other
25 | works, reuse and redistribute as freely as possible in any form whatsoever
26 | and for any purposes, including without limitation commercial purposes.
27 | These owners may contribute to the Commons to promote the ideal of a free
28 | culture and the further production of creative, cultural and scientific
29 | works, or to gain reputation or greater distribution for their Work in
30 | part through the use and efforts of others.
31 |
32 | For these and/or other purposes and motivations, and without any
33 | expectation of additional consideration or compensation, the person
34 | associating CC0 with a Work (the "Affirmer"), to the extent that he or she
35 | is an owner of Copyright and Related Rights in the Work, voluntarily
36 | elects to apply CC0 to the Work and publicly distribute the Work under its
37 | terms, with knowledge of his or her Copyright and Related Rights in the
38 | Work and the meaning and intended legal effect of CC0 on those rights.
39 |
40 | 1. Copyright and Related Rights. A Work made available under CC0 may be
41 | protected by copyright and related or neighboring rights ("Copyright and
42 | Related Rights"). Copyright and Related Rights include, but are not
43 | limited to, the following:
44 |
45 | i. the right to reproduce, adapt, distribute, perform, display,
46 | communicate, and translate a Work;
47 | ii. moral rights retained by the original author(s) and/or performer(s);
48 | iii. publicity and privacy rights pertaining to a person's image or
49 | likeness depicted in a Work;
50 | iv. rights protecting against unfair competition in regards to a Work,
51 | subject to the limitations in paragraph 4(a), below;
52 | v. rights protecting the extraction, dissemination, use and reuse of data
53 | in a Work;
54 | vi. database rights (such as those arising under Directive 96/9/EC of the
55 | European Parliament and of the Council of 11 March 1996 on the legal
56 | protection of databases, and under any national implementation
57 | thereof, including any amended or successor version of such
58 | directive); and
59 | vii. other similar, equivalent or corresponding rights throughout the
60 | world based on applicable law or treaty, and any national
61 | implementations thereof.
62 |
63 | 2. Waiver. To the greatest extent permitted by, but not in contravention
64 | of, applicable law, Affirmer hereby overtly, fully, permanently,
65 | irrevocably and unconditionally waives, abandons, and surrenders all of
66 | Affirmer's Copyright and Related Rights and associated claims and causes
67 | of action, whether now known or unknown (including existing as well as
68 | future claims and causes of action), in the Work (i) in all territories
69 | worldwide, (ii) for the maximum duration provided by applicable law or
70 | treaty (including future time extensions), (iii) in any current or future
71 | medium and for any number of copies, and (iv) for any purpose whatsoever,
72 | including without limitation commercial, advertising or promotional
73 | purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
74 | member of the public at large and to the detriment of Affirmer's heirs and
75 | successors, fully intending that such Waiver shall not be subject to
76 | revocation, rescission, cancellation, termination, or any other legal or
77 | equitable action to disrupt the quiet enjoyment of the Work by the public
78 | as contemplated by Affirmer's express Statement of Purpose.
79 |
80 | 3. Public License Fallback. Should any part of the Waiver for any reason
81 | be judged legally invalid or ineffective under applicable law, then the
82 | Waiver shall be preserved to the maximum extent permitted taking into
83 | account Affirmer's express Statement of Purpose. In addition, to the
84 | extent the Waiver is so judged Affirmer hereby grants to each affected
85 | person a royalty-free, non transferable, non sublicensable, non exclusive,
86 | irrevocable and unconditional license to exercise Affirmer's Copyright and
87 | Related Rights in the Work (i) in all territories worldwide, (ii) for the
88 | maximum duration provided by applicable law or treaty (including future
89 | time extensions), (iii) in any current or future medium and for any number
90 | of copies, and (iv) for any purpose whatsoever, including without
91 | limitation commercial, advertising or promotional purposes (the
92 | "License"). The License shall be deemed effective as of the date CC0 was
93 | applied by Affirmer to the Work. Should any part of the License for any
94 | reason be judged legally invalid or ineffective under applicable law, such
95 | partial invalidity or ineffectiveness shall not invalidate the remainder
96 | of the License, and in such case Affirmer hereby affirms that he or she
97 | will not (i) exercise any of his or her remaining Copyright and Related
98 | Rights in the Work or (ii) assert any associated claims and causes of
99 | action with respect to the Work, in either case contrary to Affirmer's
100 | express Statement of Purpose.
101 |
102 | 4. Limitations and Disclaimers.
103 |
104 | a. No trademark or patent rights held by Affirmer are waived, abandoned,
105 | surrendered, licensed or otherwise affected by this document.
106 | b. Affirmer offers the Work as-is and makes no representations or
107 | warranties of any kind concerning the Work, express, implied,
108 | statutory or otherwise, including without limitation warranties of
109 | title, merchantability, fitness for a particular purpose, non
110 | infringement, or the absence of latent or other defects, accuracy, or
111 | the present or absence of errors, whether or not discoverable, all to
112 | the greatest extent permissible under applicable law.
113 | c. Affirmer disclaims responsibility for clearing rights of other persons
114 | that may apply to the Work or any use thereof, including without
115 | limitation any person's Copyright and Related Rights in the Work.
116 | Further, Affirmer disclaims responsibility for obtaining any necessary
117 | consents, permissions or other rights required for any use of the
118 | Work.
119 | d. Affirmer understands and acknowledges that Creative Commons is not a
120 | party to this document and has no duty or obligation with respect to
121 | this CC0 or use of the Work.
122 |
--------------------------------------------------------------------------------
/composables/useBoard.ts:
--------------------------------------------------------------------------------
1 | /* SPDX-FileCopyrightText: Copyright (c) 2022-2025 trobonox
2 |
3 | SPDX-License-Identifier: GPL-3.0-or-later
4 |
5 | Kanri is an offline Kanban board app made using Tauri and Nuxt.
6 | Copyright (C) 2022-2025 trobonox
7 |
8 | This program is free software: you can redistribute it and/or modify
9 | it under the terms of the GNU General Public License as published by
10 | the Free Software Foundation, either version 3 of the License, or
11 | (at your option) any later version.
12 |
13 | This program is distributed in the hope that it will be useful,
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 | GNU General Public License for more details.
17 |
18 | You should have received a copy of the GNU General Public License
19 | along with this program. If not, see .
20 | */
21 |
22 | import { computed, toValue } from "vue";
23 | import type { Ref } from "vue";
24 | import type { Board, Card, Column, Tag } from "@/types/kanban-types";
25 | import { useBoardsStore } from "@/stores/boards";
26 |
27 | export function useBoard(id: string | Ref) {
28 | const store = useBoardsStore();
29 |
30 | const board = computed(() => store.boardById(toValue(id)));
31 |
32 | const isPinned = computed(() => store.isPinned(toValue(id)));
33 |
34 | async function init() {
35 | await store.init();
36 |
37 | // in case boards were changed externally
38 | if (!board.value) {
39 | await store.forceReloadBoards();
40 | }
41 | }
42 |
43 | // manual save, usually not needed due to autosave
44 | async function save() {
45 | await store.save();
46 | }
47 |
48 | // Board
49 | function renameBoard(title: string) {
50 | if (!board.value) return;
51 | store.renameBoard(board.value.id, title);
52 | }
53 | function togglePin() {
54 | if (!board.value) return;
55 | store.togglePin(board.value.id);
56 | }
57 | function updateBoardPin() {
58 | if (!board.value) return;
59 | store.updateBoardPin(board.value.id);
60 | }
61 | function duplicate() {
62 | if (!board.value) return;
63 | store.duplicateBoard(board.value.id);
64 | }
65 | function remove() {
66 | if (!board.value) return;
67 | store.removeBoard(board.value.id);
68 | }
69 |
70 | // Columns
71 | function addColumn(title?: string) {
72 | if (!board.value) return;
73 | store.addColumn(board.value.id, title);
74 | }
75 | function removeColumn(columnId: string) {
76 | if (!board.value) return;
77 | store.removeColumn(board.value.id, columnId);
78 | }
79 | function reorderColumns(next: Column[]) {
80 | if (!board.value) return;
81 | store.reorderColumns(board.value.id, next);
82 | }
83 | function setColumnTitle(columnId: string, title: string) {
84 | if (!board.value) return;
85 | store.setColumnTitle(board.value.id, columnId, title);
86 | }
87 |
88 | // Cards
89 | function createCard(columnId: string, card: Card, addToTop?: boolean) {
90 | if (!board.value) return;
91 | if (!addToTop) addToTop = false;
92 | store.createCard(board.value.id, columnId, card, addToTop);
93 | }
94 |
95 | function duplicateCard(columnId: string, cardId: string | undefined) {
96 | if (!board.value) return;
97 | if (!cardId) return;
98 | store.duplicateCard(board.value.id, columnId, cardId);
99 | }
100 |
101 | function deleteCard(columnId: string, cardId: string | undefined) {
102 | if (!board.value) return;
103 | if (!cardId) return;
104 | store.deleteCard(board.value.id, columnId, cardId);
105 | }
106 |
107 | function deleteAllColumnCards(columnId: string) {
108 | if (!board.value) return;
109 | store.deleteAllColumnCards(board.value.id, columnId);
110 | }
111 |
112 | function mutateCard(columnId: string, cardId: string, mut: Parameters[3]) {
113 | if (!board.value) return;
114 | store.mutateCard(board.value.id, columnId, cardId, mut);
115 | }
116 |
117 | function reorderCards(columnId: string, nextCards: Card[]) {
118 | if (!board.value) return;
119 | store.reorderCards(board.value.id, columnId, nextCards);
120 | }
121 |
122 | const setCardName = (
123 | columnId: string,
124 | cardId: string | undefined,
125 | name: string
126 | ) => {
127 | if (!board.value) return;
128 | if (!cardId) return;
129 |
130 | mutateCard(columnId, cardId, (card) => {
131 | card.name = name;
132 | });
133 | };
134 |
135 | const setCardDescription = (
136 | columnId: string,
137 | cardId: string | undefined,
138 | description: string
139 | ) => {
140 | if (!board.value) return;
141 | if (!cardId) return;
142 |
143 | mutateCard(columnId, cardId, (card) => {
144 | card.description = description;
145 | });
146 | };
147 |
148 | const setCardColor = (
149 | columnId: string,
150 | cardId: string | undefined,
151 | color: string
152 | ) => {
153 | if (!board.value) return;
154 | if (!cardId) return;
155 |
156 | mutateCard(columnId, cardId, (card) => {
157 | card.color = color;
158 | });
159 | };
160 |
161 | const setCardTasks = (
162 | columnId: string,
163 | cardId: string | undefined,
164 | tasks: Card["tasks"]
165 | ) => {
166 | if (!board.value) return;
167 | if (!cardId) return;
168 |
169 | mutateCard(columnId, cardId, (card) => {
170 | card.tasks = tasks;
171 | });
172 | };
173 |
174 | const setCardDueDate = (
175 | columnId: string,
176 | cardId: string | undefined,
177 | dueDate: Date | null,
178 | isCounterRelative: boolean,
179 | isCompleted: boolean
180 | ) => {
181 | if (!board.value) return;
182 | if (!cardId) return;
183 |
184 | mutateCard(columnId, cardId, (card) => {
185 | card.dueDate = dueDate;
186 | card.isDueDateCounterRelative = isCounterRelative;
187 | card.isDueDateCompleted = isCompleted;
188 | });
189 | };
190 |
191 | const setCardTags = (
192 | columnId: string,
193 | cardId: string | undefined,
194 | tags: Array
195 | ) => {
196 | if (!board.value) return;
197 | if (!cardId) return;
198 |
199 | mutateCard(columnId, cardId, (card) => {
200 | card.tags = tags;
201 | });
202 | };
203 |
204 | // (Global) Card Tags
205 | const addGlobalTag = (tag: Tag) => {
206 | if (!board.value) return;
207 | store.addGlobalTag(board.value.id, tag);
208 | };
209 |
210 | const removeGlobalTag = (tagId: string) => {
211 | if (!board.value) return;
212 | store.removeGlobalTag(board.value.id, tagId);
213 | };
214 |
215 | const setGlobalTagColor = (tagId: string, color: string) => {
216 | if (!board.value) return;
217 | store.setGlobalTagColor(board.value.id, tagId, color);
218 | };
219 |
220 | const updateGlobalTagName = (tagId: string, newName: string) => {
221 | if (!board.value) return;
222 | store.updateGlobalTagName(board.value.id, tagId, newName);
223 | };
224 |
225 | return {
226 | // state
227 | board,
228 | isPinned,
229 |
230 | // lifecycle
231 | init,
232 | save,
233 |
234 | // board actions
235 | renameBoard,
236 | togglePin,
237 | updateBoardPin,
238 | duplicate,
239 | remove,
240 |
241 | // column actions
242 | addColumn,
243 | removeColumn,
244 | reorderColumns,
245 | setColumnTitle,
246 |
247 | // card actions
248 | createCard,
249 | deleteCard,
250 | deleteAllColumnCards,
251 | duplicateCard,
252 | mutateCard,
253 | reorderCards,
254 | setCardName,
255 | setCardDescription,
256 | setCardColor,
257 | setCardTasks,
258 | setCardDueDate,
259 | setCardTags,
260 |
261 | // global tags
262 | addGlobalTag,
263 | removeGlobalTag,
264 | setGlobalTagColor,
265 | updateGlobalTagName,
266 | };
267 | }
--------------------------------------------------------------------------------