sirjeff 4 недель назад
Родитель
Сommit
3e63a5965d
3 измененных файлов с 31 добавлено и 45 удалено
  1. 19 43
      Plugin.php
  2. 11 1
      release.md
  3. 1 1
      ver

+ 19 - 43
Plugin.php

@@ -16,49 +16,25 @@ class Plugin extends Base {
     $this->hook->on("template:project:sidebar", ["template" => "OMIProjectBranding:project/sidebar"]);
     $this->route->addRoute("project/:project_id/branding", "ProjectBrandingController", "show", "OMIProjectBranding");
     $this->template->setTemplateOverride("header", "OMIProjectBranding:header");
-    
-        $this->container['colorModel'] = $this->container->factory(function ($c) {
-            return new \Kanboard\Plugin\OMIProjectBranding\Model\CustomColorModel($c);
-        });
+    $this->container["colorModel"] = $this->container->factory(function ($c) {
+      return new \Kanboard\Plugin\OMIProjectBranding\Model\CustomColorModel($c);
+    });
+  }
+  
+  public function getClasses() {
+    return [
+      "Plugin\OMIProjectBranding\Controller" => [
+        "ProjectBrandingController",
+      ],
+      "Plugin\OMIProjectBranding\Model" => [
+        "ProjectBrandingModel",
+        "CustomColorModel",
+      ],
+      "Plugin\OMIProjectBranding\Helper" => [
+        "ProjectBrandingHelper",
+      ],
+    ];
   }
-    
-  public function onColorList(Event $event)
-    {
-        $colors = $event->get('colors');
-        
-        $colors['brand_color_1'] = [
-            'name' => 'Client Primary',
-            'background' => '#1A2B3C',
-            'border' => '#0F1A2B',
-        ];
-        
-        $colors['brand_color_2'] = [
-            'name' => 'Client Secondary',
-            'background' => '#D9E3F1',
-            'border' => '#C4D1E5',
-        ];
-        
-        $event->set('colors', $colors);
-    }
-
- public function getClasses()
-    {
-        return [
-
-            
-
-            'Plugin\OMIProjectBranding\Controller' => [
-                'ProjectBrandingController',
-            ],
-'Plugin\OMIProjectBranding\Model' => [
-                'ProjectBrandingModel',
-                'CustomColorModel',
-            ],
-            'Plugin\OMIProjectBranding\Helper' => [
-                'ProjectBrandingHelper',
-            ],
-        ];
-    }
   
   public function getPluginName() {
     return "OMI Project Branding";
@@ -73,7 +49,7 @@ class Plugin extends Base {
   }
   
   public function getPluginVersion() {
-    return "1.0.3";
+    return "1.0.4";
   }
   
   public function getPluginHomepage() {

+ 11 - 1
release.md

@@ -1,4 +1,14 @@
-# Release Notes 
+# Release Notes  
+
+## v1.0.4 2025-08-14 *[more_styles]*  
+Why the version jump? This was so I could test the database `drop table` which only kicks in via a version _after_ the initial one.  
+I think it took 2 tries to get it going :/  
+
+- Added 3 fields to the db `foreground_color`, `background_color` & `second_background`  
+- Added the drop table statement to the `Sqlite.php` schema file.  
+- Added custom routine that builds the "data/OMIProjectBrandingColours.txt" file.  
+  Used for adding custom colours.  
+- Removed Herobrine . 
 
 ## v1.0.1 2025-08-12 *[main]*
 

+ 1 - 1
ver

@@ -1 +1 @@
-1.0.3
+1.0.4