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