refactor: clean up code formatting and improve readability across multiple components
- Standardized the use of quotes and spacing in various files. - Removed unnecessary line breaks and trailing spaces in components. - Improved the structure of computed properties and methods for better clarity. - Enhanced the consistency of prop definitions and emit events in Vue components. - Updated the GraphQL composable to streamline error handling and data processing. - Refactored network configuration files for better organization and readability. - Cleaned up model files by removing redundant lines and ensuring consistent formatting. - Adjusted router configuration for improved readability. - Enhanced utility functions for better maintainability and clarity.
This commit is contained in:
@@ -3,14 +3,14 @@ interface Props {
|
||||
title: string;
|
||||
value: string;
|
||||
change?: string;
|
||||
changeType?: 'positive' | 'negative' | 'neutral';
|
||||
changeType?: "positive" | "negative" | "neutral";
|
||||
icon?: string;
|
||||
loading?: boolean;
|
||||
}
|
||||
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
changeType: 'neutral',
|
||||
loading: false
|
||||
changeType: "neutral",
|
||||
loading: false,
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -22,7 +22,11 @@ const props = withDefaults(defineProps<Props>(), {
|
||||
</div>
|
||||
<div v-else class="analytics-value">{{ value }}</div>
|
||||
<div class="analytics-title">{{ title }}</div>
|
||||
<div v-if="change && !loading" class="analytics-change" :class="`change-${changeType}`">
|
||||
<div
|
||||
v-if="change && !loading"
|
||||
class="analytics-change"
|
||||
:class="`change-${changeType}`"
|
||||
>
|
||||
{{ change }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user