mirror of
				https://github.com/Alamantus/Lexiconga.git
				synced 2025-10-31 08:26:46 +01:00 
			
		
		
		
	Add some tweaks to help with upgrades
This commit is contained in:
		
							parent
							
								
									21d91a9920
								
							
						
					
					
						commit
						9e7e113cc2
					
				
					 2 changed files with 8 additions and 1 deletions
				
			
		|  | @ -11,7 +11,7 @@ | |||
|     "watch-js": "parcel watch template-index.html offline.html template-view.html template-passwordreset.html --no-hmr --public-url /lexiconga/", | ||||
|     "watch-php": "cpx \"src/php/**/{*,.*}\" dist -v -w", | ||||
|     "bundle": "npm run process-images && npm run bundle-js && npm run copy-files && npm run copy-php", | ||||
|     "bundle-js": "parcel build template-index.html offline.html template-view.html template-passwordreset.html", | ||||
|     "bundle-js": "parcel build template-index.html offline.html template-view.html template-passwordreset.html --no-source-maps", | ||||
|     "copy-files": "cpx \"node_modules/upup/dist/*.min.js\" dist -v", | ||||
|     "copy-php": "cpx \"src/php/**/{*,.*}\" dist", | ||||
|     "process-images": "node dev/resize-images.js", | ||||
|  |  | |||
|  | @ -1,5 +1,12 @@ | |||
| <?php | ||||
| require_once(realpath(dirname(__FILE__) . '/./api/Response.php')); | ||||
| $show_upgrade_screen = false; | ||||
| 
 | ||||
| if ($show_upgrade_screen) { | ||||
|   $html = '<h1>Code Update in Progress</h1><p>Please refresh the page in 10 minutes.</p>'; | ||||
|   return Response::html($html); | ||||
| } | ||||
| 
 | ||||
| $view = isset($_GET['view']) ? $_GET['view'] : false; | ||||
| 
 | ||||
| switch ($view) { | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue