From 0b7e347e0eed6c198bfa963d35021a400cea99b5 Mon Sep 17 00:00:00 2001 From: Lachlan Glen <54282009+lachlanglen@users.noreply.github.com> Date: Wed, 22 Nov 2023 08:57:36 -0500 Subject: [PATCH] add automatic star and follow on project creation --- apps/potlock/widget/Project/CreateForm.jsx | 44 ++++++++++++++++++++++ build/potlock/src/Project/CreateForm.jsx | 44 ++++++++++++++++++++++ 2 files changed, 88 insertions(+) diff --git a/apps/potlock/widget/Project/CreateForm.jsx b/apps/potlock/widget/Project/CreateForm.jsx index 748e6ab2..c5fb7d3f 100644 --- a/apps/potlock/widget/Project/CreateForm.jsx +++ b/apps/potlock/widget/Project/CreateForm.jsx @@ -469,6 +469,50 @@ const handleCreateProject = (e) => { {} ), }, + index: { + // star: `{"key":{"type":"social","path":"${ownerId}/widget/Index"},"value":{"type":"star"}}`, + // notify: `{"key":"${ownerId}","value":{"type":"star","item":{"type":"social","path":"${ownerId}/widget/Index"}}}`, + star: { + key: { + type: "social", + path: `${ownerId}/widget/Index`, + }, + value: { + type: "star", + }, + }, + notify: { + key: ownerId, + value: { + type: "star", + item: { + type: "social", + path: `${ownerId}/widget/Index`, + }, + }, + }, + }, + graph: { + star: { + [ownerId]: { + widget: { + Index: "", + }, + }, + }, + follow: { + [ownerId]: "", + }, + }, + // "graph": { + // "follow": { + // "proofofvibes.near": "" + // } + // }, + // "index": { + // "graph": "{\"key\":\"follow\",\"value\":{\"type\":\"follow\",\"accountId\":\"proofofvibes.near\"}}", + // "notify": "{\"key\":\"proofofvibes.near\",\"value\":{\"type\":\"follow\"}}" + // } }, }, }; diff --git a/build/potlock/src/Project/CreateForm.jsx b/build/potlock/src/Project/CreateForm.jsx index 748e6ab2..c5fb7d3f 100644 --- a/build/potlock/src/Project/CreateForm.jsx +++ b/build/potlock/src/Project/CreateForm.jsx @@ -469,6 +469,50 @@ const handleCreateProject = (e) => { {} ), }, + index: { + // star: `{"key":{"type":"social","path":"${ownerId}/widget/Index"},"value":{"type":"star"}}`, + // notify: `{"key":"${ownerId}","value":{"type":"star","item":{"type":"social","path":"${ownerId}/widget/Index"}}}`, + star: { + key: { + type: "social", + path: `${ownerId}/widget/Index`, + }, + value: { + type: "star", + }, + }, + notify: { + key: ownerId, + value: { + type: "star", + item: { + type: "social", + path: `${ownerId}/widget/Index`, + }, + }, + }, + }, + graph: { + star: { + [ownerId]: { + widget: { + Index: "", + }, + }, + }, + follow: { + [ownerId]: "", + }, + }, + // "graph": { + // "follow": { + // "proofofvibes.near": "" + // } + // }, + // "index": { + // "graph": "{\"key\":\"follow\",\"value\":{\"type\":\"follow\",\"accountId\":\"proofofvibes.near\"}}", + // "notify": "{\"key\":\"proofofvibes.near\",\"value\":{\"type\":\"follow\"}}" + // } }, }, };