samvera-deprecated / browse-everything-components

Web Components for browse-everything user interfaces
MIT License
0 stars 2 forks source link

Implement a Container Component #4

Open jrgriffiniii opened 4 years ago

jrgriffiniii commented 4 years ago

Very similar to #3, but this should instead model directories/folders which are provided by the Rails API. These too should wrap the behavior of a https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox Element, but will also need to be extended to provide a tree-like interface (https://codeburst.io/practical-recursion-implementing-a-file-tree-view-in-react-electron-af62e7b46d26 seems to provide a simple example of how this might be implemented in React - please ignore any Redux integration, as this is going to be handled in https://github.com/jrgriffiniii/browse-everything-react)

jrgriffiniii commented 4 years ago

As modeled within the BrowseEverything API, the properties for this should resemble something along the following:

@Prop() uuid!: string;
@Prop() location!: string;
@Prop() containers: Array<Container>;
@Prop() bytestreams: Array<Bytestream>;
@Prop() name!: string;
@Prop() size: number;
@Prop() mtime: number;