mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 22:45:45 +01:00
Added types, components and logic for changesets
This commit is contained in:
18
scm-ui-components/packages/ui-types/src/Changesets.js
Normal file
18
scm-ui-components/packages/ui-types/src/Changesets.js
Normal file
@@ -0,0 +1,18 @@
|
||||
//@flow
|
||||
import type { Links } from "./hal";
|
||||
import type { Tag } from "./Tags";
|
||||
export type Changeset = {
|
||||
id: string,
|
||||
date: Date,
|
||||
author: {
|
||||
name: string,
|
||||
mail: string
|
||||
},
|
||||
description: string
|
||||
_links: Links,
|
||||
_embedded: {
|
||||
tags: Tag[]
|
||||
branches: any, //todo: Add correct type
|
||||
parents: any //todo: Add correct type
|
||||
};
|
||||
}
|
||||
8
scm-ui-components/packages/ui-types/src/Tags.js
Normal file
8
scm-ui-components/packages/ui-types/src/Tags.js
Normal file
@@ -0,0 +1,8 @@
|
||||
//@flow
|
||||
import type { Links } from "./hal";
|
||||
|
||||
export type Tag = {
|
||||
name: string,
|
||||
revision: string,
|
||||
_links: Links
|
||||
}
|
||||
@@ -9,4 +9,8 @@ export type { Group, Member } from "./Group";
|
||||
export type { Repository, RepositoryCollection, RepositoryGroup } from "./Repositories";
|
||||
export type { RepositoryType, RepositoryTypeCollection } from "./RepositoryTypes";
|
||||
|
||||
export type { Changeset } from "./Changesets";
|
||||
|
||||
export type { Tag } from "./Tags"
|
||||
|
||||
export type { Config } from "./Config";
|
||||
|
||||
Reference in New Issue
Block a user