mirror of
				https://github.com/KevinMidboe/seasonedRequest.git
				synced 2025-10-29 18:00:13 +00:00 
			
		
		
		
	404 fix
This commit is contained in:
		
							
								
								
									
										4
									
								
								dist/build.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								dist/build.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										2
									
								
								dist/build.js.map
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/build.js.map
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										14
									
								
								src/App.vue
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								src/App.vue
									
									
									
									
									
								
							| @@ -108,6 +108,10 @@ export default { | |||||||
|     // Router After Leave |     // Router After Leave | ||||||
|     afterLeave(){ |     afterLeave(){ | ||||||
|       document.querySelector('body').scrollTop = 0; |       document.querySelector('body').scrollTop = 0; | ||||||
|  |     }, | ||||||
|  |     // Detect if touch device | ||||||
|  |     isTouchDevice() { | ||||||
|  |       return 'ontouchstart' in document.documentElement; | ||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   created(){ |   created(){ | ||||||
| @@ -117,6 +121,9 @@ export default { | |||||||
|     eventHub.$on('setSearchQuery', this.setSearchQuery); |     eventHub.$on('setSearchQuery', this.setSearchQuery); | ||||||
|     eventHub.$on('requestToken', this.requestToken); |     eventHub.$on('requestToken', this.requestToken); | ||||||
|     eventHub.$on('setUserStatus', this.setUserStatus); |     eventHub.$on('setUserStatus', this.setUserStatus); | ||||||
|  |     if (this.isTouchDevice()) { | ||||||
|  |       document.querySelector('body').classList.add('touch'); | ||||||
|  |     } | ||||||
|   } |   } | ||||||
| } | } | ||||||
| </script> | </script> | ||||||
| @@ -206,7 +213,7 @@ img{ | |||||||
|     &-input{ |     &-input{ | ||||||
|       display: block; |       display: block; | ||||||
|       width: 100%; |       width: 100%; | ||||||
|       padding: 15px 20px 15px 50px; |       padding: 15px 20px 15px 45px; | ||||||
|       outline: none; |       outline: none; | ||||||
|       border: 0; |       border: 0; | ||||||
|       background-color: transparent; |       background-color: transparent; | ||||||
| @@ -275,10 +282,15 @@ img{ | |||||||
|   color: $c-dark; |   color: $c-dark; | ||||||
|   background: transparent; |   background: transparent; | ||||||
|   outline: none; |   outline: none; | ||||||
|  |   transition: background 0.5s ease, color 0.5s ease; | ||||||
|   @include tablet-min{ |   @include tablet-min{ | ||||||
|     font-size: 12px; |     font-size: 12px; | ||||||
|     padding: 6px 20px 5px 20px; |     padding: 6px 20px 5px 20px; | ||||||
|   } |   } | ||||||
|  |   body:not(.touch) &:hover{ | ||||||
|  |     background: $c-dark; | ||||||
|  |     color: $c-white; | ||||||
|  |   } | ||||||
| } | } | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
| @@ -19,16 +19,16 @@ export default { | |||||||
| @import "./src/scss/variables"; | @import "./src/scss/variables"; | ||||||
| @import "./src/scss/media-queries"; | @import "./src/scss/media-queries"; | ||||||
| .not-found{ | .not-found{ | ||||||
|   position: absolute; |  | ||||||
|   top: 0; |  | ||||||
|   left: 0; |  | ||||||
|   width: 100%; |   width: 100%; | ||||||
|   height: 100%; |   height: calc(100vh - 100px); | ||||||
|   background: url('~assets/pulp-fiction.jpg') no-repeat 50% 50%; |   background: url('~assets/pulp-fiction.jpg') no-repeat 50% 50%; | ||||||
|   background-size: cover; |   background-size: cover; | ||||||
|   display: flex; |   display: flex; | ||||||
|   align-items: center; |   align-items: center; | ||||||
|   justify-content: center; |   justify-content: center; | ||||||
|  |   @include tablet-min{ | ||||||
|  |     height: calc(100vh - 75px); | ||||||
|  |   } | ||||||
|   &:before{ |   &:before{ | ||||||
|     content: ""; |     content: ""; | ||||||
|     display: block; |     display: block; | ||||||
|   | |||||||
| @@ -104,7 +104,6 @@ export default { | |||||||
|           document.title = this.movie.title + storage.pageTitlePostfix; |           document.title = this.movie.title + storage.pageTitlePostfix; | ||||||
|       }.bind(this)) |       }.bind(this)) | ||||||
|       .catch(function(error) { |       .catch(function(error) { | ||||||
|         console.log('error'); |  | ||||||
|         this.$router.push({ name: '404' }); |         this.$router.push({ name: '404' }); | ||||||
|       }.bind(this)); |       }.bind(this)); | ||||||
|     }, |     }, | ||||||
|   | |||||||
| @@ -97,6 +97,9 @@ export default { | |||||||
|           if(this.type == 'page'){ |           if(this.type == 'page'){ | ||||||
|             document.title = this.pageTitle; |             document.title = this.pageTitle; | ||||||
|           } |           } | ||||||
|  |       }.bind(this)) | ||||||
|  |       .catch(function(error) { | ||||||
|  |         this.$router.push({ name: '404' }); | ||||||
|       }.bind(this)); |       }.bind(this)); | ||||||
|     }, |     }, | ||||||
|     loadMore(){ |     loadMore(){ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user