Adopt standalone package manifest and dependency lock
This commit is contained in:
@@ -11,15 +11,13 @@ export const source = async () => await fs.readFile(componentSourcePath, "utf8")
|
||||
export const createComponent = (context: RuntimeContext) => context.objectId;
|
||||
|
||||
export const props = derived(async (context: RuntimeContext) => {
|
||||
const projects = await context.edge("port:project-react:subject").resolve();
|
||||
if (projects.length !== 1) {
|
||||
throw new Error(`Project component ${context.objectId} has ${projects.length} subjects`);
|
||||
}
|
||||
const named = context.interface("port:project-react:named");
|
||||
const tasks = context.interface("port:project-react:tasks");
|
||||
return {
|
||||
project_id: projects[0],
|
||||
project_id: named.objectId,
|
||||
component_id: context.objectId,
|
||||
name: await context.state<string>("port:project-react:name").live(),
|
||||
tasks: await context.edge("port:project-react:tasks").resolve(),
|
||||
name: await named.live("operation:named:name:get"),
|
||||
tasks: await tasks.invoke("operation:project-tasks:tasks:resolve"),
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user