Welcome to mirror list, hosted at ThFree Co, Russian Federation.

state.js « stores « registry « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 724c64b49946dce58a4af3cfbc3c2c5fcb032c80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
export default () => ({
  isLoading: false,
  endpoint: '', // initial endpoint to fetch the repos list
  isDeleteDisabled: false, // controls the delete buttons in the registry
  /**
   * Each object in `repos` has the following strucure:
   * {
   *   name: String,
   *   isLoading: Boolean,
   *   tagsPath: String // endpoint to request the list
   *   destroyPath: String // endpoit to delete the repo
   *   list: Array // List of the registry images
   * }
   *
   * Each registry image inside `list` has the following structure:
   * {
   *   tag: String,
   *   revision: String
   *   shortRevision: String
   *   size: Number
   *   layers: Number
   *   createdAt: String
   *   destroyPath: String // endpoit to delete each image
   * }
   */
  repos: [],
});