aboutsummaryrefslogtreecommitdiff
path: root/packages/client/src/views/Repository.vue
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2021-07-06 14:55:58 +0200
committerHampusM <hampus@hampusmat.com>2021-07-06 14:55:58 +0200
commitc2dc7906e47a05cecc6350fd6a3d6f6f955a3423 (patch)
tree0f3895eb00783943a13d27235dfd88bcda5a844c /packages/client/src/views/Repository.vue
parent49e6ae50447130ba6e2efd2b561f1b1dcc033099 (diff)
Frontend uses shared types
Diffstat (limited to 'packages/client/src/views/Repository.vue')
-rw-r--r--packages/client/src/views/Repository.vue5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/client/src/views/Repository.vue b/packages/client/src/views/Repository.vue
index c91491c..8586b2a 100644
--- a/packages/client/src/views/Repository.vue
+++ b/packages/client/src/views/Repository.vue
@@ -11,10 +11,11 @@
<script lang="ts">
import { defineComponent, Ref, ref } from "vue";
import { Router } from "vue-router";
+import { Repository } from "shared_types";
+import { getParam } from "../util/util";
import RepositoryHeader from "../components/RepositoryHeader.vue";
import RepositoryNavbar from "../components/RepositoryNavbar.vue";
-import { getParam } from "../util/util";
export default defineComponent({
name: "Repository",
@@ -37,7 +38,7 @@ export default defineComponent({
});
if(repository_data) {
- const data = (await repository_data.json()).data;
+ const data: Repository = (await repository_data.json()).data;
name.value = data.name;
description.value = data.description;
has_readme.value = data.has_readme;