mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-30 18:47:51 +00:00 
			
		
		
		
	chore: Fix Eslint warnings (#3654)
				
					
				
			* Fix all the eslint warnings * Revert the schema
This commit is contained in:
		| @@ -28,9 +28,7 @@ module.exports = { | ||||
|     }], | ||||
|     'vue/html-self-closing': 'off', | ||||
|     "vue/no-v-html": 'off', | ||||
|     'vue/singleline-html-element-content-newline': 'warn', | ||||
|     'vue/require-default-prop': 'warn', | ||||
|     'vue/require-prop-types': 'warn', | ||||
|     'vue/singleline-html-element-content-newline': 'off', | ||||
|     'import/extensions': ['off'] | ||||
|  | ||||
|   }, | ||||
|   | ||||
| @@ -11,7 +11,7 @@ | ||||
| <script> | ||||
| export default { | ||||
|   props: { | ||||
|     message: String, | ||||
|     message: { type: String, default: '' }, | ||||
|     showButton: Boolean, | ||||
|     duration: { | ||||
|       type: [String, Number], | ||||
|   | ||||
| @@ -18,12 +18,11 @@ | ||||
| export default { | ||||
|   props: { | ||||
|     disabled: Boolean, | ||||
|     isFullwidth: Boolean, | ||||
|     type: String, | ||||
|     size: String, | ||||
|     type: { type: String, default: '' }, | ||||
|     size: { type: String, default: '' }, | ||||
|     checked: Boolean, | ||||
|     name: String, | ||||
|     id: String, | ||||
|     name: { type: String, default: '' }, | ||||
|     id: { type: String, default: '' }, | ||||
|   }, | ||||
|   data() { | ||||
|     return { | ||||
|   | ||||
| @@ -12,9 +12,9 @@ | ||||
| <script> | ||||
| export default { | ||||
|   props: { | ||||
|     title: String, | ||||
|     message: String, | ||||
|     buttonText: String, | ||||
|     title: { type: String, default: '' }, | ||||
|     message: { type: String, default: '' }, | ||||
|     buttonText: { type: String, default: '' }, | ||||
|   }, | ||||
| }; | ||||
| </script> | ||||
|   | ||||
| @@ -1,12 +1,12 @@ | ||||
| <template> | ||||
|   <div class="row loading-state"> | ||||
|     <h6 class="message">{{ message }}<span class="spinner"></span></h6> | ||||
|     <h6 class="message">{{ message }}<span class="spinner" /></h6> | ||||
|   </div> | ||||
| </template> | ||||
| <script> | ||||
| export default { | ||||
|   props: { | ||||
|     message: String, | ||||
|     message: { type: String, default: '' }, | ||||
|   }, | ||||
| }; | ||||
| </script> | ||||
|   | ||||
| @@ -18,12 +18,12 @@ | ||||
| <script> | ||||
| export default { | ||||
|   props: { | ||||
|     heading: String, | ||||
|     point: [Number, String], | ||||
|     index: Number, | ||||
|     desc: String, | ||||
|     heading: { type: String, default: '' }, | ||||
|     point: { type: [Number, String], default: '' }, | ||||
|     index: { type: Number, default: null }, | ||||
|     desc: { type: String, default: '' }, | ||||
|     selected: Boolean, | ||||
|     onClick: Function, | ||||
|     onClick: { type: Function, default: () => {} }, | ||||
|   }, | ||||
| }; | ||||
| </script> | ||||
|   | ||||
| @@ -21,12 +21,12 @@ export default { | ||||
|   }, | ||||
|   props: { | ||||
|     show: Boolean, | ||||
|     onClose: Function, | ||||
|     onConfirm: Function, | ||||
|     title: String, | ||||
|     message: String, | ||||
|     confirmText: String, | ||||
|     rejectText: String, | ||||
|     onClose: { type: Function, default: () => {} }, | ||||
|     onConfirm: { type: Function, default: () => {} }, | ||||
|     title: { type: String, default: '' }, | ||||
|     message: { type: String, default: '' }, | ||||
|     confirmText: { type: String, default: '' }, | ||||
|     rejectText: { type: String, default: '' }, | ||||
|   }, | ||||
| }; | ||||
| </script> | ||||
|   | ||||
| @@ -57,9 +57,9 @@ export default { | ||||
|     WootSubmitButton, | ||||
|   }, | ||||
|   props: { | ||||
|     resetPasswordToken: String, | ||||
|     redirectUrl: String, | ||||
|     config: String, | ||||
|     resetPasswordToken: { type: String, default: '' }, | ||||
|     redirectUrl: { type: String, default: '' }, | ||||
|     config: { type: String, default: '' }, | ||||
|   }, | ||||
|   data() { | ||||
|     return { | ||||
|   | ||||
| @@ -10,8 +10,8 @@ | ||||
| <script> | ||||
| export default { | ||||
|   props: { | ||||
|     headerTitle: String, | ||||
|     headerContent: String, | ||||
|     headerTitle: { type: String, default: '' }, | ||||
|     headerContent: { type: String, default: '' }, | ||||
|   }, | ||||
| }; | ||||
| </script> | ||||
|   | ||||
| @@ -25,9 +25,9 @@ export default { | ||||
|     SettingsHeader, | ||||
|   }, | ||||
|   props: { | ||||
|     headerTitle: String, | ||||
|     headerButtonText: String, | ||||
|     icon: String, | ||||
|     headerTitle: { type: String, default: '' }, | ||||
|     headerButtonText: { type: String, default: '' }, | ||||
|     icon: { type: String, default: '' }, | ||||
|     keepAlive: { | ||||
|       type: Boolean, | ||||
|       default: true, | ||||
|   | ||||
| @@ -61,10 +61,10 @@ export default { | ||||
|     Modal, | ||||
|   }, | ||||
|   props: { | ||||
|     id: Number, | ||||
|     edcontent: String, | ||||
|     edshortCode: String, | ||||
|     onClose: Function, | ||||
|     id: { type: Number, default: null }, | ||||
|     edcontent: { type: String, default: '' }, | ||||
|     edshortCode: { type: String, default: '' }, | ||||
|     onClose: { type: Function, default: () => {} }, | ||||
|   }, | ||||
|   data() { | ||||
|     return { | ||||
|   | ||||
| @@ -47,8 +47,8 @@ export default { | ||||
|   mixins: [globalConfigMixin], | ||||
|   props: { | ||||
|     integrationId: { | ||||
|       type: String, | ||||
|       default: '', | ||||
|       type: [String, Number], | ||||
|       required: true, | ||||
|     }, | ||||
|     integrationLogo: { | ||||
|       type: String, | ||||
|   | ||||
| @@ -68,14 +68,17 @@ import globalConfigMixin from 'shared/mixins/globalConfigMixin'; | ||||
|  | ||||
| export default { | ||||
|   mixins: [alertMixin, globalConfigMixin], | ||||
|   props: [ | ||||
|     'integrationId', | ||||
|     'integrationLogo', | ||||
|     'integrationName', | ||||
|     'integrationDescription', | ||||
|     'integrationEnabled', | ||||
|     'integrationAction', | ||||
|   ], | ||||
|   props: { | ||||
|     integrationId: { | ||||
|       type: [String, Number], | ||||
|       required: true, | ||||
|     }, | ||||
|     integrationLogo: { type: String, default: '' }, | ||||
|     integrationName: { type: String, default: '' }, | ||||
|     integrationDescription: { type: String, default: '' }, | ||||
|     integrationEnabled: { type: Boolean, default: false }, | ||||
|     integrationAction: { type: String, default: '' }, | ||||
|   }, | ||||
|   data() { | ||||
|     return { | ||||
|       showDeleteConfirmationPopup: false, | ||||
|   | ||||
| @@ -33,7 +33,14 @@ export default { | ||||
|     IntegrationHelpText, | ||||
|   }, | ||||
|   mixins: [globalConfigMixin], | ||||
|   props: ['integrationId', 'code'], | ||||
|  | ||||
|   props: { | ||||
|     integrationId: { | ||||
|       type: [String, Number], | ||||
|       required: true, | ||||
|     }, | ||||
|     code: { type: String, default: '' }, | ||||
|   }, | ||||
|   data() { | ||||
|     return { | ||||
|       integrationLoaded: false, | ||||
|   | ||||
| @@ -56,7 +56,7 @@ export default { | ||||
|     }; | ||||
|   }, | ||||
|   watch: { | ||||
|     value: function(newValue) { | ||||
|     value(newValue) { | ||||
|       this.greetingsMessage = newValue; | ||||
|     }, | ||||
|   }, | ||||
|   | ||||
| @@ -19,7 +19,11 @@ | ||||
|  | ||||
| <script> | ||||
| export default { | ||||
|   props: ['url', 'thumb', 'readableTime'], | ||||
|   props: { | ||||
|     url: { type: String, default: '' }, | ||||
|     thumb: { type: String, default: '' }, | ||||
|     readableTime: { type: String, default: '' }, | ||||
|   }, | ||||
|   methods: { | ||||
|     onImgError() { | ||||
|       this.$emit('error'); | ||||
|   | ||||
| @@ -11,9 +11,11 @@ export default { | ||||
|   props: { | ||||
|     src: { | ||||
|       type: String, | ||||
|       default: '', | ||||
|     }, | ||||
|     size: { | ||||
|       type: String, | ||||
|       default: '', | ||||
|     }, | ||||
|   }, | ||||
|   computed: { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Muhsin Keloth
					Muhsin Keloth