-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #207 from desci-labs/m0ar/nodes-lib
Create `nodes-lib`
- Loading branch information
Showing
61 changed files
with
12,512 additions
and
278 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/** | ||
* This file contains automerge actions for modifying the manifest file. | ||
* This can be used by applications who wish to build a responsive, | ||
* multi-client application for editing the manifest. | ||
* | ||
* @package | ||
*/ | ||
|
||
import { | ||
ResearchObjectComponentTypeMap, | ||
ResearchObjectV1Author, | ||
ResearchObjectV1Component, | ||
ResearchObjectV1Dpid | ||
} from "./ResearchObject"; | ||
|
||
export type ManifestActions = | ||
| { type: 'Add Components'; components: ResearchObjectV1Component[] } | ||
| { type: 'Delete Components'; paths: string[] } | ||
| { type: 'Rename Component'; path: string; fileName: string } | ||
| { type: 'Rename Component Path'; oldPath: string; newPath: string } | ||
| { | ||
type: 'Update Component'; | ||
component: ResearchObjectV1Component; | ||
componentIndex: number; | ||
} | ||
| { | ||
type: 'Assign Component Type'; | ||
component: ResearchObjectV1Component; | ||
componentTypeMap: ResearchObjectComponentTypeMap; | ||
} | ||
| { type: 'Set Drive Clock'; time: string } | ||
// frontend changes to support | ||
| { type: 'Update Title'; title: string } | ||
| { type: 'Update Description'; description: string } | ||
| { type: 'Update License'; defaultLicense: string } | ||
| { type: 'Update ResearchFields'; researchFields: string[] } | ||
| { type: 'Add Component'; component: ResearchObjectV1Component } | ||
| { type: 'Delete Component'; path: string } | ||
| { type: 'Add Contributor'; author: ResearchObjectV1Author } | ||
| { type: 'Remove Contributor'; contributorIndex: number } | ||
| { type: 'Pin Component'; path: string } | ||
| { type: 'UnPin Component'; path: string } | ||
| { | ||
type: 'Update Component'; | ||
component: ResearchObjectV1Component; | ||
componentIndex: number; | ||
} | ||
| { | ||
type: 'Publish Dpid'; | ||
dpid: ResearchObjectV1Dpid; | ||
} | ||
| { type: 'Remove Dpid' } | ||
| | ||
{ | ||
type: "Update CoverImage"; | ||
cid: string | undefined; | ||
}; |
Oops, something went wrong.