From a2f00eb3feea64cc0bc46c52804e59cba264d859 Mon Sep 17 00:00:00 2001 From: Ruben Carlo Benante Date: Sat, 11 Jul 2026 15:30:37 -0300 Subject: [PATCH] QualKard: scaffold plugin from Skeleton + ported qualcard grading math (v0.2.0) --- Asset/css/skeleton.css | 1 - Asset/js/skeleton.js | 1 - Plugin.php | 37 +++++++++++++++++++++---------------- Template/layout/header.php | 1 - VERSION | 2 +- 5 files changed, 22 insertions(+), 20 deletions(-) delete mode 100644 Asset/css/skeleton.css delete mode 100644 Asset/js/skeleton.js delete mode 100644 Template/layout/header.php diff --git a/Asset/css/skeleton.css b/Asset/css/skeleton.css deleted file mode 100644 index b112526..0000000 --- a/Asset/css/skeleton.css +++ /dev/null @@ -1 +0,0 @@ -/* Skeleton plugin styles -- add CSS here. Loaded via template:layout:css. */ diff --git a/Asset/js/skeleton.js b/Asset/js/skeleton.js deleted file mode 100644 index 7a9d9f2..0000000 --- a/Asset/js/skeleton.js +++ /dev/null @@ -1 +0,0 @@ -// Skeleton plugin script -- add JS here. Loaded via template:layout:js. diff --git a/Plugin.php b/Plugin.php index 78240ed..01d8085 100644 --- a/Plugin.php +++ b/Plugin.php @@ -1,35 +1,40 @@ template->hook->attach('template:layout:top', 'skeleton:layout/header'); + // Hooks are wired in later versions (setup on Integrations, the grade handler, the badge). + } - // 2. Load the plugin stylesheet (currently empty -- proves the CSS hook fires). - $this->hook->on('template:layout:css', array( - 'template' => 'plugins/Skeleton/Asset/css/skeleton.css', - )); - - // 3. Load the plugin script (currently empty -- proves the JS hook fires). - $this->hook->on('template:layout:js', array( - 'template' => 'plugins/Skeleton/Asset/js/skeleton.js', - )); + public function getHelpers() + { + return array( + 'Plugin\QualKard\Helper' => array('QualKardHelper'), + ); } public function getPluginName() { - return 'Skeleton'; + return 'QualKard'; } public function getPluginDescription() { - return t('Reusable skeleton/template for building Kanboard plugins.'); + return t('Flashcard spaced repetition: grade a card by dragging it to a column, and it comes back when due (needs RecoReco).'); } public function getPluginAuthor() @@ -39,12 +44,12 @@ class Plugin extends Base public function getPluginVersion() { - return '0.1.0'; + return '0.2.0'; } public function getPluginHomepage() { - return 'https://code.beco.cc/beco/kanboard-plugin-skeleton'; + return 'https://code.beco.cc/beco/QualKard'; } public function getCompatibleVersion() diff --git a/Template/layout/header.php b/Template/layout/header.php deleted file mode 100644 index 4c07070..0000000 --- a/Template/layout/header.php +++ /dev/null @@ -1 +0,0 @@ -
Skeleton
diff --git a/VERSION b/VERSION index fbbf65e..586edbc 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -QualKard v0.1 +QualKard v0.2