Update web links to samples
This commit is contained in:
		
							parent
							
								
									3f9ac3d5f4
								
							
						
					
					
						commit
						6953b2cfde
					
				| @ -42,8 +42,10 @@ | |||||||
|                     android:host="noties.io" |                     android:host="noties.io" | ||||||
|                     android:scheme="https" /> |                     android:scheme="https" /> | ||||||
| 
 | 
 | ||||||
|                 <data android:pathPattern="/Markwon/app/sample/.*" /> |                 <data android:pathPrefix="/Markwon/app"/> | ||||||
|                 <data android:pathPattern="/Markwon/app/search" /> | 
 | ||||||
|  |                 <data android:pathPattern="sample/.*" /> | ||||||
|  |                 <data android:pathPattern="search" /> | ||||||
| 
 | 
 | ||||||
|             </intent-filter> |             </intent-filter> | ||||||
|         </activity> |         </activity> | ||||||
|  | |||||||
| @ -5,8 +5,11 @@ | |||||||
|         <h1>Markwon Sample</h1> |         <h1>Markwon Sample</h1> | ||||||
|         <span> |         <span> | ||||||
|           Download |           Download | ||||||
|           <a href="https://github.com/noties/Markwon/raw/sample-store/markwon-debug.apk">sample app</a> and open |           <a | ||||||
|           <a :href="currentWindowLocation()">this link</a> again |             href="https://github.com/noties/Markwon/raw/sample-store/markwon-debug.apk" | ||||||
|  |           >sample app</a> and open | ||||||
|  |           <a :href="currentWindowLocation()" target="_blank">this link</a> again or try local one (if you already have app installed): | ||||||
|  |           <a :href="buildLocalDeeplink()">{{ buildLocalDeeplink() }}</a> | ||||||
|         </span> |         </span> | ||||||
|       </template> |       </template> | ||||||
|       <template v-else> |       <template v-else> | ||||||
| @ -32,11 +35,16 @@ export default { | |||||||
|       return msgs[Math.floor(Math.random() * msgs.length)]; |       return msgs[Math.floor(Math.random() * msgs.length)]; | ||||||
|     }, |     }, | ||||||
|     isSampleLink() { |     isSampleLink() { | ||||||
|       const path = this.$router.currentRoute.path; |       const path = window.location.href; | ||||||
|       return /^\/app\/(sample|search).*$/.test(path); |       return /^.*\/app\/(sample|search).*$/.test(path); | ||||||
|     }, |     }, | ||||||
|     currentWindowLocation() { |     currentWindowLocation() { | ||||||
|       return window.location.href |       return window.location.href; | ||||||
|  |     }, | ||||||
|  |     buildLocalDeeplink() { | ||||||
|  |       const path = window.location.href; | ||||||
|  |       const link = /.*\/app\/((?:sample|search).*)/.exec(path)[1]; | ||||||
|  |       return "markwon://" + link; | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
| }; | }; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Dimitry Ivanov
						Dimitry Ivanov