Reorganize repo structure and standards references
This commit is contained in:
1 parent
3cb93a81be
commit
be2054274d
5885 files changed
+2588
-195
No files matched your search
@@ -0,0 +1,21 @@
|
||||
import { toTaskListModel, type TaskListData, type TaskListModel } from "@toolctrl/view-models";
|
||||
import { renderTaskList } from "@toolctrl/ui-subframe";
|
||||
|
||||
import { defineAdapter } from "./defineAdapter.js";
|
||||
|
||||
/**
|
||||
* Normalizes the domain {@link TaskListData} into the {@link TaskListModel}
|
||||
* prop-model the UI implementation renders (M015). Reuses the VM's pure
|
||||
* `toTaskListModel` mapper so the Subframe / mock renderers stay dumb and
|
||||
* swappable (M017 hot-swap drill). Backs both the standalone `/tasks` browser
|
||||
* and the embedded entity "Tasks tab" (DoD 8).
|
||||
*/
|
||||
export function toTaskListProps(vm: TaskListData): TaskListModel {
|
||||
return toTaskListModel(vm);
|
||||
}
|
||||
|
||||
export const taskListAdapter = defineAdapter({
|
||||
name: "taskList",
|
||||
toProps: toTaskListProps,
|
||||
defaultRenderer: renderTaskList,
|
||||
});
|
||||
Reference in new issue
Block a user