feat: add FormKit framework support and update dependencies
- Add `telecart_forms` table migration and default checkout form seeder - Implement `FormsHandler` to fetch form schemas - Update `OrderCreateService` to handle custom fields in order comments - Add `update` method to QueryBuilder and Grammar - Add `Arr::except` helper - Update composer dependencies (Carbon, Symfony, PHPUnit, etc.) - Improve `MigratorService` error handling - Add unit tests for new functionality
This commit is contained in:
14
frontend/admin/src/stores/forms.js
Normal file
14
frontend/admin/src/stores/forms.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import {defineStore} from "pinia";
|
||||
import {apiPost} from "@/utils/http.js";
|
||||
|
||||
export const useFormsStore = defineStore('forms', {
|
||||
state: () => ({}),
|
||||
|
||||
actions: {
|
||||
async getFormByAlias(alias) {
|
||||
return await apiPost('getFormByAlias', {
|
||||
alias,
|
||||
});
|
||||
}
|
||||
},
|
||||
});
|
||||
@@ -63,6 +63,15 @@ export const useSettingsStore = defineStore('settings', {
|
||||
},
|
||||
|
||||
mainpage_blocks: [],
|
||||
|
||||
forms: {
|
||||
checkout: {
|
||||
alias: '',
|
||||
friendly_name: '',
|
||||
is_custom: false,
|
||||
schema: [],
|
||||
}
|
||||
},
|
||||
},
|
||||
}),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user