From 39c38c737114dc7f946b1895b2a4ba27a5546c60 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 6 Jul 2021 13:07:07 +0200 Subject: Migrated frontend to typescript --- packages/client/src/App.vue | 15 +- packages/client/src/components/BaseBackButton.vue | 8 +- packages/client/src/components/BaseBreadcrumb.vue | 8 +- packages/client/src/components/BaseButton.vue | 8 +- .../client/src/components/BaseErrorMessage.vue | 8 +- packages/client/src/components/CommitPatch.vue | 248 +++++++++++---------- packages/client/src/components/HomeHeader.vue | 8 +- .../client/src/components/HomeProjectsHeader.vue | 10 +- .../src/components/RepositoryCloneDropdown.vue | 106 +++++---- .../client/src/components/RepositoryHeader.vue | 10 +- .../client/src/components/RepositoryNavbar.vue | 10 +- .../client/src/components/RepositoryTreeBlob.vue | 39 ++-- .../client/src/components/RepositoryTreeTree.vue | 15 +- packages/client/src/lib/marked.min.js | 8 - packages/client/src/main.js | 5 - packages/client/src/main.ts | 5 + packages/client/src/router/index.js | 54 ----- packages/client/src/router/index.ts | 54 +++++ packages/client/src/shims-vue.d.ts | 6 + packages/client/src/util/fetch.js | 35 --- packages/client/src/util/fetch.ts | 37 +++ packages/client/src/util/hljs-languages.js | 45 ---- packages/client/src/util/hljs-languages.ts | 45 ++++ packages/client/src/util/util.ts | 7 + packages/client/src/views/Home.vue | 38 ++-- packages/client/src/views/PageNotFound.vue | 6 +- packages/client/src/views/Repository.vue | 27 +-- packages/client/src/views/RepositoryAbout.vue | 26 ++- packages/client/src/views/RepositoryCommit.vue | 28 +-- packages/client/src/views/RepositoryLog.vue | 41 ++-- packages/client/src/views/RepositoryRedirect.vue | 0 packages/client/src/views/RepositoryTree.vue | 60 +++-- 32 files changed, 574 insertions(+), 446 deletions(-) delete mode 100644 packages/client/src/lib/marked.min.js delete mode 100644 packages/client/src/main.js create mode 100644 packages/client/src/main.ts delete mode 100644 packages/client/src/router/index.js create mode 100644 packages/client/src/router/index.ts create mode 100644 packages/client/src/shims-vue.d.ts delete mode 100644 packages/client/src/util/fetch.js create mode 100644 packages/client/src/util/fetch.ts delete mode 100644 packages/client/src/util/hljs-languages.js create mode 100644 packages/client/src/util/hljs-languages.ts create mode 100644 packages/client/src/util/util.ts delete mode 100644 packages/client/src/views/RepositoryRedirect.vue (limited to 'packages/client/src') diff --git a/packages/client/src/App.vue b/packages/client/src/App.vue index 0c50f3a..d34fcc5 100644 --- a/packages/client/src/App.vue +++ b/packages/client/src/App.vue @@ -2,8 +2,11 @@ -