Refactor RandomPicker.vue for improved readability and maintainability. Enhance template formatting by standardizing indentation and spacing, and update button properties for consistency. Add a new button for navigating to the list page in index.vue, and adjust date handling in settings and index pages for better date management. Update dataProvider and settings utility functions for improved response handling and configuration management.
This commit is contained in:
@@ -1,11 +1,7 @@
|
||||
import { kvProvider } from "./providers/kvProvider";
|
||||
import { getSetting } from "./settings";
|
||||
|
||||
export const formatResponse = (data, message = null) => ({
|
||||
success: true,
|
||||
data,
|
||||
message,
|
||||
});
|
||||
export const formatResponse = (data, message = null) => (data);
|
||||
|
||||
export const formatError = (message, code = "UNKNOWN_ERROR") => ({
|
||||
success: false,
|
||||
|
||||
Reference in New Issue
Block a user