mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-30 18:47:51 +00:00 
			
		
		
		
	 b01d032d0d
			
		
	
	b01d032d0d
	
	
	
		
			
			* Enhancement: Updates sidebar to a new design (#2733) * feat: Changes primary navbar to new design (#2598) * feat: updates design for secondary navbar (#2612) * Changes primary nvbar to new design * Updates design for contexual sidebar * Fixes issues with JSON * Remove duplication of notificatons in Navigation * Fixes broken tests * Fixes broken tests * Update app/javascript/dashboard/components/layout/AvailabilityStatus.vue * Update app/javascript/dashboard/components/layout/AvailabilityStatus.vue * Update app/javascript/dashboard/components/layout/SidebarItem.vue Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> * Update app/javascript/dashboard/components/layout/SidebarItem.vue Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> * Update app/javascript/dashboard/modules/sidebar/components/Secondary.vue Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> * Chore: Update design changes to features * Fixes menu transitions and refactors code * Refactors sidebar routeing logic * lint error fixes * Fixes dropdown menu styles * Fixes secondary new item links * Fixes lint scss issues * fixes linter issues * Fixes broken test cases * Update AvailabilityStatus.spec.js * Review feedbacks * Fixes add modal for label * Add tooltip for primary menu item * Tooltip for notifications * Adds tooltip for primary menu items * Review fixes * Review fixes * Fix merge issues * fixes logo size for login pages * fixes Merge breaks with styles Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
		
			
				
	
	
		
			84 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			84 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Vue
		
	
	
	
	
	
| <template>
 | |
|   <div class="file message-text__wrap">
 | |
|     <div class="icon-wrap">
 | |
|       <fluent-icon icon="document" class="file--icon" size="32" />
 | |
|     </div>
 | |
|     <div class="meta">
 | |
|       <h5 class="text-block-title">
 | |
|         {{ decodeURI(fileName) }}
 | |
|       </h5>
 | |
|       <a
 | |
|         class="download clear link button small"
 | |
|         rel="noreferrer noopener nofollow"
 | |
|         target="_blank"
 | |
|         :href="url"
 | |
|       >
 | |
|         {{ $t('CONVERSATION.DOWNLOAD') }}
 | |
|       </a>
 | |
|     </div>
 | |
|   </div>
 | |
| </template>
 | |
| 
 | |
| <script>
 | |
| export default {
 | |
|   props: {
 | |
|     url: {
 | |
|       type: String,
 | |
|       required: true,
 | |
|     },
 | |
|   },
 | |
|   computed: {
 | |
|     fileName() {
 | |
|       const filename = this.url.substring(this.url.lastIndexOf('/') + 1);
 | |
|       return filename;
 | |
|     },
 | |
|   },
 | |
|   methods: {
 | |
|     openLink() {
 | |
|       const win = window.open(this.url, '_blank', 'noopener');
 | |
|       if (win) win.focus();
 | |
|     },
 | |
|   },
 | |
| };
 | |
| </script>
 | |
| 
 | |
| <style lang="scss" scoped>
 | |
| @import '~dashboard/assets/scss/variables';
 | |
| 
 | |
| .file {
 | |
|   display: flex;
 | |
|   flex-direction: row;
 | |
|   padding: $space-smaller 0;
 | |
|   cursor: pointer;
 | |
| 
 | |
|   .icon-wrap {
 | |
|     font-size: $font-size-giga;
 | |
|     color: $color-white;
 | |
|     line-height: 1;
 | |
|     margin-left: $space-smaller;
 | |
|     margin-right: $space-slab;
 | |
|   }
 | |
| 
 | |
|   .text-block-title {
 | |
|     margin: 0;
 | |
|     color: $color-white;
 | |
|     font-weight: $font-weight-bold;
 | |
|     word-break: break-word;
 | |
|   }
 | |
| 
 | |
|   .button {
 | |
|     padding: 0;
 | |
|     margin: 0;
 | |
|     color: $color-primary-light;
 | |
|   }
 | |
| 
 | |
|   .meta {
 | |
|     padding-right: $space-two;
 | |
|   }
 | |
| 
 | |
|   .time {
 | |
|     min-width: $space-larger;
 | |
|   }
 | |
| }
 | |
| </style>
 |