diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-15 18:07:43 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-15 18:07:43 +0300 |
commit | f8a5275c45ed2276daf843764113476749e680d2 (patch) | |
tree | 4856524dbeebf0280a87ff71bcc274f496975e72 /app/assets/javascripts/achievements | |
parent | e6fed37d941271b897d37820fd3b571feab280b0 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/achievements')
-rw-r--r-- | app/assets/javascripts/achievements/components/achievements_app.vue | 31 | ||||
-rw-r--r-- | app/assets/javascripts/achievements/constants.js | 7 | ||||
-rw-r--r-- | app/assets/javascripts/achievements/routes.js | 16 |
3 files changed, 54 insertions, 0 deletions
diff --git a/app/assets/javascripts/achievements/components/achievements_app.vue b/app/assets/javascripts/achievements/components/achievements_app.vue new file mode 100644 index 00000000000..5f40231856f --- /dev/null +++ b/app/assets/javascripts/achievements/components/achievements_app.vue @@ -0,0 +1,31 @@ +<script> +export default { + inject: { + canAdminAchievement: { + type: Boolean, + required: true, + }, + canAwardAchievement: { + type: Boolean, + required: true, + }, + groupFullPath: { + type: String, + required: true, + }, + groupId: { + type: Number, + required: true, + }, + textQuery: { + type: String, + required: false, + default: null, + }, + }, +}; +</script> + +<template> + <div></div> +</template> diff --git a/app/assets/javascripts/achievements/constants.js b/app/assets/javascripts/achievements/constants.js new file mode 100644 index 00000000000..82a56588c96 --- /dev/null +++ b/app/assets/javascripts/achievements/constants.js @@ -0,0 +1,7 @@ +export const INDEX_ROUTE_NAME = 'index'; +export const NEW_ROUTE_NAME = 'new'; +export const EDIT_ROUTE_NAME = 'edit'; +export const trackViewsOptions = { + category: 'Achievements' /* eslint-disable-line @gitlab/require-i18n-strings */, + action: 'view_achievements_list', +}; diff --git a/app/assets/javascripts/achievements/routes.js b/app/assets/javascripts/achievements/routes.js new file mode 100644 index 00000000000..12aa17d73b6 --- /dev/null +++ b/app/assets/javascripts/achievements/routes.js @@ -0,0 +1,16 @@ +import { INDEX_ROUTE_NAME, NEW_ROUTE_NAME, EDIT_ROUTE_NAME } from './constants'; + +export default [ + { + name: INDEX_ROUTE_NAME, + path: '/', + }, + { + name: NEW_ROUTE_NAME, + path: '/new', + }, + { + name: EDIT_ROUTE_NAME, + path: '/:id/edit', + }, +]; |