mirror of
				https://github.com/nkanaev/yarr.git
				synced 2025-10-30 06:31:07 +00:00 
			
		
		
		
	logout ui
This commit is contained in:
		
							
								
								
									
										1
									
								
								assets/graphicarts/log-out.svg
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								assets/graphicarts/log-out.svg
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | |||||||
|  | <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-log-out"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path><polyline points="16 17 21 12 16 7"></polyline><line x1="21" y1="12" x2="9" y2="12"></line></svg> | ||||||
| After Width: | Height: | Size: 367 B | 
| @@ -94,6 +94,11 @@ | |||||||
|                         <span class="icon mr-1">{% inline "upload.svg" %}</span> |                         <span class="icon mr-1">{% inline "upload.svg" %}</span> | ||||||
|                         Export |                         Export | ||||||
|                     </b-dropdown-item> |                     </b-dropdown-item> | ||||||
|  |                     <b-dropdown-divider v-if="authenticated"></b-dropdown-divider> | ||||||
|  |                     <b-dropdown-item-button v-if="authenticated"> | ||||||
|  |                         <span class="icon mr-1">{% inline "log-out.svg" %}</span> | ||||||
|  |                         Log out | ||||||
|  |                     </b-dropdown-item-button> | ||||||
|                 </b-dropdown> |                 </b-dropdown> | ||||||
|             </div> |             </div> | ||||||
|             <div class="p-2 overflow-auto border-top flex-grow-1"> |             <div class="p-2 overflow-auto border-top flex-grow-1"> | ||||||
|   | |||||||
| @@ -2,6 +2,11 @@ | |||||||
|  |  | ||||||
| var TITLE = document.title | var TITLE = document.title | ||||||
|  |  | ||||||
|  | function authenticated() { | ||||||
|  |   return /auth=.+/g.test(document.cookie) | ||||||
|  |  | ||||||
|  | } | ||||||
|  |  | ||||||
| var FONTS = [ | var FONTS = [ | ||||||
|   "Arial", |   "Arial", | ||||||
|   "Courier New", |   "Courier New", | ||||||
| @@ -171,6 +176,7 @@ var vm = new Vue({ | |||||||
|         'size': 1, |         'size': 1, | ||||||
|       }, |       }, | ||||||
|       'refreshRate': undefined, |       'refreshRate': undefined, | ||||||
|  |       'authenticated': authenticated(), | ||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   computed: { |   computed: { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user