diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-05 21:09:16 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-05 21:09:16 +0300 |
commit | 2b2299ea5f8717ad59a47c1c40d951409dfeb35b (patch) | |
tree | 806b797004e307caf431cea03a6d3c913c1aaf4c /app/assets/javascripts/ml | |
parent | c4acd4624d61ef923453561a698c905c0ffa7b57 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/ml')
3 files changed, 40 insertions, 0 deletions
diff --git a/app/assets/javascripts/ml/model_registry/routes/models/index/components/ml_models_index.vue b/app/assets/javascripts/ml/model_registry/routes/models/index/components/ml_models_index.vue new file mode 100644 index 00000000000..37e5877ec52 --- /dev/null +++ b/app/assets/javascripts/ml/model_registry/routes/models/index/components/ml_models_index.vue @@ -0,0 +1,34 @@ +<script> +import { GlLink } from '@gitlab/ui'; +import * as translations from '~/ml/model_registry/routes/models/index/translations'; + +export default { + name: 'MlExperimentsIndexApp', + components: { + GlLink, + }, + props: { + models: { + type: Array, + required: true, + }, + }, + i18n: translations, +}; +</script> + +<template> + <div> + <div class="detail-page-header gl-flex-wrap"> + <div class="detail-page-header-body"> + <div class="page-title gl-flex-grow-1 gl-display-flex gl-align-items-center"> + <h2 class="gl-font-size-h-display gl-my-0">{{ $options.i18n.TITLE_LABEL }}</h2> + </div> + </div> + </div> + + <div v-for="model in models" :key="model.name"> + <gl-link :href="model.path"> {{ model.name }} / {{ model.version }} </gl-link> + </div> + </div> +</template> diff --git a/app/assets/javascripts/ml/model_registry/routes/models/index/index.js b/app/assets/javascripts/ml/model_registry/routes/models/index/index.js new file mode 100644 index 00000000000..d303d9716af --- /dev/null +++ b/app/assets/javascripts/ml/model_registry/routes/models/index/index.js @@ -0,0 +1,3 @@ +import MlModelsIndex from './components/ml_models_index.vue'; + +export default MlModelsIndex; diff --git a/app/assets/javascripts/ml/model_registry/routes/models/index/translations.js b/app/assets/javascripts/ml/model_registry/routes/models/index/translations.js new file mode 100644 index 00000000000..f0f45f9424e --- /dev/null +++ b/app/assets/javascripts/ml/model_registry/routes/models/index/translations.js @@ -0,0 +1,3 @@ +import { s__ } from '~/locale'; + +export const TITLE_LABEL = s__('MlExperimentTracking|Model registry'); |