Browse Source
			
			
			Merge pull request #197 from finish06/master
			
				Add App - Flood
			
			
				pull/207/head
			
			
		 
		
			
				
					
						
						KodeStar
					
					8 years ago
					
						
							committed by
							
								
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: 4AEE18F83AFDEB23
						
					
				
			
		
		
		
	
		
			
				 4 changed files with 
16 additions and 
2 deletions
			 
			
		 
		
			
				- 
					
					
					 
					app/Item.php
				
 
			
				- 
					
					
					 
					app/SupportedApps/Flood.php
				
 
			
				- 
					
					
					 
					readme.md
				
 
			
				- 
					
						
							
								BIN
							
						
					
					
					 
					storage/app/public/supportedapps/Flood.png
				 
			
		
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -34,6 +34,7 @@ class Item extends Model | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            'Dokuwiki' => \App\SupportedApps\Dokuwiki::class, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            'Duplicati' => \App\SupportedApps\Duplicati::class, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            'Emby' => \App\SupportedApps\Emby::class, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            'Flood' => \App\SupportedApps\Flood::class, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            'Gitea' => \App\SupportedApps\Gitea::class, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            'Glances' => \App\SupportedApps\Glances::class, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            'Grafana' => \App\SupportedApps\Grafana::class, | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -114,7 +115,7 @@ class Item extends Model | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                $output->view = $view; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if(!isset($output->dataonly)) $output->dataonly = '0'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					             | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        return (object)$output; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    } | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -134,7 +135,7 @@ class Item extends Model | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            //die(var_dump($store)) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					             | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $config['enabled'] = ($store) ? true : false; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $config = json_encode($config); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  | 
				
			
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
			
				
					| 
						
						
						
					 | 
				
				 | 
				
					@ -0,0 +1,12 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					<?php namespace App\SupportedApps; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					class Flood implements Contracts\Applications { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    public function defaultColour() | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        return '##00D091'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    public function icon() | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        return 'supportedapps/Flood.png'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					} | 
				
			
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -79,6 +79,7 @@ Supported applications are recognized by the title of the application as entered | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					- unRAID | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					- pfSense | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					- pyLoad | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					- rTorrent/Flood | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					- rTorrent/ruTorrent | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					- Syncthing | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					- Watcher3 | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  | 
				
			
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
					
						
							
								
									
	
		
			
			
				
					
						
						
						
							
							 
							
								
									Width: 
									 | 
									Height: 
									 | 
								
								Size: 20 KiB
							 
						
						
					 
				 
				
			 
			
		 
	 |