Skip to content

Commit

Permalink
chore: added ability to upload docker images as an admin #334
Browse files Browse the repository at this point in the history
  • Loading branch information
bsilkyn committed Apr 18, 2024
1 parent 1ed52e7 commit 1bbe961
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 2 deletions.
7 changes: 6 additions & 1 deletion frontend/src/assets/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,12 @@
"teachers": {
"title": "Teachers"
},
"teacher": "Teacher"
"teacher": "Teacher",
"catalog": "Catalog",
"docker_images": {
"title": "Docker images",
"name": "Name docker image"
}
},
"primevue": {
"startsWith": "Starts with",
Expand Down
7 changes: 6 additions & 1 deletion frontend/src/assets/lang/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,12 @@
"teachers": {
"title": "Leerkrachten"
},
"teacher": "Leerkracht"
"teacher": "Leerkracht",
"catalog": "Catalogus",
"docker_images": {
"title": "Docker images",
"name": "Naam docker image"
}
},
"primevue": {
"accept": "Ja",
Expand Down
9 changes: 9 additions & 0 deletions frontend/src/components/layout/admin/AdminSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ const items = ref([
},
],
},
{
label: 'admin.catalog',
items: [
{
label: 'admin.docker_images.title',
route: 'admin-docker_images',
},
],
},
]);
</script>

Expand Down
3 changes: 3 additions & 0 deletions frontend/src/config/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ export const endpoints = {
byTeacher: '/api/teachers/{teacherId}/courses/',
byAssistant: '/api/assistants/{assistantId}/courses/',
},
dockerImages: {
index: '/api/docker-images/',
},
students: {
index: '/api/students/',
retrieve: '/api/students/{id}/',
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/router/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import SubmissionView from '@/views/submissions/SubmissionView.vue';
import AdminView from '@/views/admin/AdminView.vue';
import UsersView from '@/views/admin/UsersView.vue';
import ProjectsView from '@/views/projects/ProjectsView.vue';
import DockerImagesView from '@/views/admin/DockerImagesView.vue';

const routes: RouteRecordRaw[] = [
// Authentication
Expand Down Expand Up @@ -149,6 +150,7 @@ const routes: RouteRecordRaw[] = [
children: [
{ path: '', component: AdminView, name: 'admin' },
{ path: 'users', component: UsersView, name: 'admin-users' },
{ path: 'docker_images', component: DockerImagesView, name: 'admin-docker_images' },
],
},

Expand Down

0 comments on commit 1bbe961

Please sign in to comment.