From cca5b9352941ff61ca6ba08f47e03b0a5ee1bafd Mon Sep 17 00:00:00 2001 From: aljawaid <10233708+aljawaid@users.noreply.github.com> Date: Tue, 26 Sep 2023 21:35:10 +0100 Subject: [PATCH] Rename Plugin RelationshipManager > TaskLinker --- .../{link-relations.css => task-linker.css} | 0 ...uilder.js => task-linker-graph-builder.js} | 0 .../js/{link-relations.js => task-linker.js} | 0 ...ontroller.php => TaskLinkerController.php} | 15 ++-- Plugin.php | 18 ++--- README.md | 78 +++++++++---------- 6 files changed, 56 insertions(+), 55 deletions(-) rename Assets/css/{link-relations.css => task-linker.css} (100%) rename Assets/js/{link-relations-graph-builder.js => task-linker-graph-builder.js} (100%) rename Assets/js/{link-relations.js => task-linker.js} (100%) rename Controller/{MyController.php => TaskLinkerController.php} (60%) diff --git a/Assets/css/link-relations.css b/Assets/css/task-linker.css similarity index 100% rename from Assets/css/link-relations.css rename to Assets/css/task-linker.css diff --git a/Assets/js/link-relations-graph-builder.js b/Assets/js/task-linker-graph-builder.js similarity index 100% rename from Assets/js/link-relations-graph-builder.js rename to Assets/js/task-linker-graph-builder.js diff --git a/Assets/js/link-relations.js b/Assets/js/task-linker.js similarity index 100% rename from Assets/js/link-relations.js rename to Assets/js/task-linker.js diff --git a/Controller/MyController.php b/Controller/TaskLinkerController.php similarity index 60% rename from Controller/MyController.php rename to Controller/TaskLinkerController.php index 4675669..dc0ab09 100644 --- a/Controller/MyController.php +++ b/Controller/TaskLinkerController.php @@ -1,18 +1,19 @@ response->html($this->helper->layout->config('pluginNameExampleCamelCase:folder/filename', array( - 'title' => t('PluginNameExampleStudlyCaps') . ' ⥂ ' . t('Settings'), + $this->response->html($this->helper->layout->config('taskLinker:folder/filename', array( + 'title' => t('Task Linker') . ' ⥂ ' . t('Settings'), ))); } } diff --git a/Plugin.php b/Plugin.php index f17b673..a9bf7c4 100644 --- a/Plugin.php +++ b/Plugin.php @@ -1,6 +1,6 @@ hook->on('template:layout:css', array('template' => 'plugins/RelationshipManager/Assets/css/relationship-manager.css')); - $this->hook->on('template:layout:css', array('template' => 'plugins/RelationshipManager/Assets/css/vis.css')); + $this->hook->on('template:layout:css', array('template' => 'plugins/TaskLinker/Assets/css/task-linker.css')); + $this->hook->on('template:layout:css', array('template' => 'plugins/TaskLinker/Assets/css/vis.css')); // JS - Asset Hook // - Keep filename lowercase - $this->hook->on('template:layout:js', array('template' => 'plugins/RelationshipManager/Assets/js/relationship-manager.js')); - $this->hook->on('template:layout:js', array('template' => 'plugins/RelationshipManager/Assets/js/relationship-manager-graph-builder.js')); - $this->hook->on('template:layout:js', array('template' => 'plugins/RelationshipManager/Assets/js/vis.min.js')); + $this->hook->on('template:layout:js', array('template' => 'plugins/TaskLinker/Assets/js/task-linker.js')); + $this->hook->on('template:layout:js', array('template' => 'plugins/TaskLinker/Assets/js/task-linker-graph-builder.js')); + $this->hook->on('template:layout:js', array('template' => 'plugins/TaskLinker/Assets/js/vis.min.js')); // Views - Template Hook // - Override name should start lowercase e.g. pluginNameExampleCamelCase @@ -31,7 +31,7 @@ public function initialize() // Extra Page - Routes // - Example: $this->route->addRoute('/my/custom/route', 'MyController', 'show', 'PluginNameExampleStudlyCaps'); // - Must have the corresponding action in the matching controller - //$this->route->addRoute('/ / ', ' ', ' ', 'RelationshipManager'); + //$this->route->addRoute('/ / ', ' ', ' ', 'TaskLinker'); } public function onStartup() @@ -43,7 +43,7 @@ public function getPluginName() { // Plugin Name MUST be identical to namespace for Plugin Directory to detect updated versions // Do not translate the plugin name here - return 'RelationshipManager'; + return 'TaskLinker'; } public function getPluginDescription() @@ -72,6 +72,6 @@ public function getCompatibleVersion() public function getPluginHomepage() { - return 'https://github.com/aljawaid/RelationshipManager'; + return 'https://github.com/aljawaid/TaskLinker'; } } diff --git a/README.md b/README.md index c4f1540..01a13f9 100644 --- a/README.md +++ b/README.md @@ -1,30 +1,30 @@ -

RelationshipManager

+

TaskLinker

- - GitHub Latest Release (by date) + + GitHub Latest Release (by date) - - GitHub All Releases + + GitHub All Releases - - GitHub Repository File Count + + GitHub Repository File Count - - GitHub Repository Size + + GitHub Repository Size - - GitHub Code Size + + GitHub Code Size

- - GitHub Discussions + + GitHub Discussions - - GitHub Commits Since Last Release + + GitHub Commits Since Last Release - - GitHub Commit Monthly Activity + + GitHub Commit Monthly Activity Kanboard @@ -60,17 +60,17 @@ Go to `Settings` ⥂ ## Installation & Compatibility

- - Code Scanning + + Code Scanning - - PHP Compatibility Test + + PHP Compatibility Test - - PHP Compatibility Test + + PHP Compatibility Test - - PHP Compatibility Test + + PHP Compatibility Test

@@ -116,26 +116,26 @@ Go to `Settings` ⥂ ---

- - RelationshipManager + + TaskLinker - - RelationshipManager + + TaskLinker - - RelationshipManager + + TaskLinker - - RelationshipManager + + TaskLinker - - RelationshipManager + + TaskLinker - - RelationshipManager + + TaskLinker - - GitHub commits since latest release (by date) + + GitHub commits since latest release (by date)