@ittinc/strapi-plugin-kanban-board 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +74 -0
  3. package/admin/custom.d.ts +2 -0
  4. package/admin/src/components/Initializer.tsx +19 -0
  5. package/admin/src/components/KanbanInput/index.tsx +605 -0
  6. package/admin/src/components/PluginIcon.tsx +5 -0
  7. package/admin/src/index.ts +136 -0
  8. package/admin/src/pages/App.tsx +15 -0
  9. package/admin/src/pages/HomePage.tsx +398 -0
  10. package/admin/src/pluginId.ts +1 -0
  11. package/admin/src/translations/en.json +5 -0
  12. package/admin/src/translations/ru.json +5 -0
  13. package/admin/src/utils/getTranslation.ts +5 -0
  14. package/admin/tsconfig.build.json +10 -0
  15. package/admin/tsconfig.json +8 -0
  16. package/dist/_chunks/App-BEiW65up.js +343 -0
  17. package/dist/_chunks/App-DXTlN9Fm.mjs +341 -0
  18. package/dist/_chunks/en-C0sbENwZ.js +8 -0
  19. package/dist/_chunks/en-CHHvJuav.mjs +8 -0
  20. package/dist/_chunks/index-9nQMm6ez.js +465 -0
  21. package/dist/_chunks/index-DI_QN_uF.mjs +463 -0
  22. package/dist/_chunks/ru-B7uE6tx_.mjs +8 -0
  23. package/dist/_chunks/ru-Bl2jLOwG.js +8 -0
  24. package/dist/admin/index.js +156 -0
  25. package/dist/admin/index.mjs +157 -0
  26. package/dist/admin/src/components/Initializer.d.ts +5 -0
  27. package/dist/admin/src/components/KanbanInput/index.d.ts +33 -0
  28. package/dist/admin/src/components/PluginIcon.d.ts +2 -0
  29. package/dist/admin/src/index.d.ts +10 -0
  30. package/dist/admin/src/pages/App.d.ts +2 -0
  31. package/dist/admin/src/pages/HomePage.d.ts +2 -0
  32. package/dist/admin/src/pluginId.d.ts +1 -0
  33. package/dist/admin/src/utils/getTranslation.d.ts +2 -0
  34. package/dist/server/index.js +73 -0
  35. package/dist/server/index.mjs +74 -0
  36. package/dist/server/src/bootstrap.d.ts +5 -0
  37. package/dist/server/src/config/index.d.ts +5 -0
  38. package/dist/server/src/content-types/index.d.ts +2 -0
  39. package/dist/server/src/controllers/controller.d.ts +7 -0
  40. package/dist/server/src/controllers/index.d.ts +2 -0
  41. package/dist/server/src/destroy.d.ts +5 -0
  42. package/dist/server/src/index.d.ts +2 -0
  43. package/dist/server/src/middlewares/index.d.ts +2 -0
  44. package/dist/server/src/policies/index.d.ts +2 -0
  45. package/dist/server/src/register.d.ts +5 -0
  46. package/dist/server/src/routes/admin/index.d.ts +5 -0
  47. package/dist/server/src/routes/content-api/index.d.ts +12 -0
  48. package/dist/server/src/routes/index.d.ts +18 -0
  49. package/dist/server/src/services/index.d.ts +2 -0
  50. package/dist/server/src/services/service.d.ts +7 -0
  51. package/package.json +101 -0
  52. package/server/src/bootstrap.ts +7 -0
  53. package/server/src/config/index.ts +4 -0
  54. package/server/src/content-types/index.ts +1 -0
  55. package/server/src/controllers/controller.ts +13 -0
  56. package/server/src/controllers/index.ts +5 -0
  57. package/server/src/destroy.ts +7 -0
  58. package/server/src/index.ts +30 -0
  59. package/server/src/middlewares/index.ts +1 -0
  60. package/server/src/policies/index.ts +1 -0
  61. package/server/src/register.ts +13 -0
  62. package/server/src/routes/admin/index.ts +4 -0
  63. package/server/src/routes/content-api/index.ts +14 -0
  64. package/server/src/routes/index.ts +9 -0
  65. package/server/src/services/index.ts +5 -0
  66. package/server/src/services/service.ts +9 -0
  67. package/server/tsconfig.build.json +10 -0
  68. package/server/tsconfig.json +8 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 sonich
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,74 @@
1
+ # Strapi Plugin Kanban Board
2
+
3
+ Manage your content in a visual Kanban view directly within the Strapi admin panel. This plugin provides a customizable Kanban board field and a dedicated interface for managing tasks, supporting drag-and-drop interactions and configurable columns.
4
+
5
+ ## Features
6
+
7
+ - **Visual Kanban Board**: Drag and drop items between columns (e.g., To Do, In Progress, Done).
8
+ - **Custom Field Integration**: Add a Kanban board as a custom field to your content types.
9
+ - **Configurable Columns**: Define default columns and allow users to add, rename, or delete them.
10
+ - **Item Management**: Add, edit, and delete items with a customizable schema.
11
+ - **Theme Support**: Seamlessly integrates with your Strapi admin theme (Light/Dark).
12
+
13
+ ## Installation
14
+
15
+ ### 1. Install the Plugin
16
+
17
+ Using npm:
18
+
19
+ ```bash
20
+ npm install @ittinc/strapi-plugin-kanban-board
21
+ ```
22
+
23
+ Using yarn:
24
+
25
+ ```bash
26
+ yarn add @ittinc/strapi-plugin-kanban-board
27
+ ```
28
+
29
+ Using pnpm:
30
+
31
+ ```bash
32
+ pnpm add @ittinc/strapi-plugin-kanban-board
33
+ ```
34
+
35
+ ### 2. Rebuild Strapi
36
+
37
+ After installing the plugin, you need to rebuild your Strapi admin panel:
38
+
39
+ ```bash
40
+ npm run build
41
+ # or
42
+ yarn build
43
+ # or
44
+ pnpm run build
45
+ ```
46
+
47
+ ## Usage
48
+
49
+ ### As a Custom Field
50
+
51
+ 1. Go to the **Content-Type Builder** in your Strapi admin panel.
52
+ 2. Select a content type or create a new one.
53
+ 3. Click "Add another field".
54
+ 4. Select the **Custom** tab.
55
+ 5. Choose **Kanban Board**.
56
+ 6. Configure the field settings (Name, etc.).
57
+ 7. In the "Advanced Settings" tab, you can customize the **Board Configuration** and **Permissions**.
58
+
59
+ ### Configuration Options
60
+
61
+ When adding the custom field, you can configure the following options via the UI or directly in the schema:
62
+
63
+ - **Default Columns**: A JSON array of string column titles.
64
+ - *Example*: `["To Do", "In Progress", "Done"]`
65
+ - **Item Schema**: A JSON array defining the fields for each card item.
66
+ - *Example*: `[{"name": "title", "label": "Title", "type": "text", "required": true}, {"name": "subtitle", "label": "Subtitle", "type": "text"}]`
67
+ - **Permissions**:
68
+ - `Allow Adding Columns`
69
+ - `Allow Deleting Columns`
70
+ - `Allow Renaming Columns`
71
+
72
+ ## License
73
+
74
+ MIT
@@ -0,0 +1,2 @@
1
+ declare module '@strapi/design-system/*';
2
+ declare module '@strapi/design-system';
@@ -0,0 +1,19 @@
1
+ import { useEffect, useRef } from 'react';
2
+
3
+ import { PLUGIN_ID } from '../pluginId';
4
+
5
+ type InitializerProps = {
6
+ setPlugin: (id: string) => void;
7
+ };
8
+
9
+ const Initializer = ({ setPlugin }: InitializerProps) => {
10
+ const ref = useRef(setPlugin);
11
+
12
+ useEffect(() => {
13
+ ref.current(PLUGIN_ID);
14
+ }, []);
15
+
16
+ return null;
17
+ };
18
+
19
+ export { Initializer };