refactor: Removed old client page logic
This commit is contained in:
		
							
								
								
									
										10
									
								
								.vscode/extensions.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								.vscode/extensions.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| { | ||||
|   "recommendations": [ | ||||
|     "EditorConfig.editorconfig", | ||||
|     "dbaeumer.vscode-eslint", | ||||
|     "christian-kohler.path-intellisense", | ||||
|     "mrmlnc.vscode-puglint", | ||||
|     "robinbentley.sass-indented", | ||||
|     "octref.vetur" | ||||
|   ] | ||||
| } | ||||
| @@ -1,17 +0,0 @@ | ||||
| 'use strict' | ||||
|  | ||||
| import $ from 'jquery' | ||||
|  | ||||
| module.exports = (alerts, socket) => { | ||||
|   if ($('#page-type-create').length) { | ||||
|     let pageEntryPath = $('#page-type-create').data('entrypath') | ||||
|  | ||||
|     // -> Discard | ||||
|  | ||||
|     $('.btn-create-discard').on('click', (ev) => { | ||||
|       $('#modal-create-discard').toggleClass('is-active') | ||||
|     }) | ||||
|  | ||||
|     require('../components/editor.js')(alerts, pageEntryPath, socket) | ||||
|   } | ||||
| } | ||||
| @@ -1,22 +0,0 @@ | ||||
| 'use strict' | ||||
|  | ||||
| import $ from 'jquery' | ||||
|  | ||||
| module.exports = (alerts, socket) => { | ||||
|   if ($('#page-type-edit').length) { | ||||
|     let pageEntryPath = $('#page-type-edit').data('entrypath') | ||||
|     // let pageCleanExit = false | ||||
|  | ||||
|     // -> Discard | ||||
|  | ||||
|     $('.btn-edit-discard').on('click', (ev) => { | ||||
|       $('#modal-edit-discard').toggleClass('is-active') | ||||
|     }) | ||||
|  | ||||
|     // window.onbeforeunload = function () { | ||||
|     //   return (pageCleanExit) ? true : 'Unsaved modifications will be lost. Are you sure you want to navigate away from this page?' | ||||
|     // } | ||||
|  | ||||
|     require('../components/editor.js')(alerts, pageEntryPath, socket) | ||||
|   } | ||||
| } | ||||
| @@ -1,9 +0,0 @@ | ||||
| 'use strict' | ||||
|  | ||||
| import $ from 'jquery' | ||||
|  | ||||
| module.exports = (alerts) => { | ||||
|   if ($('#page-type-history').length) { | ||||
|     // let currentBasePath = ($('#page-type-history').data('entrypath') !== 'home') ? $('#page-type-history').data('entrypath') : '' | ||||
|   } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user