Skip to content

Commit

Permalink
fix(this-project): fix code viewer displaying undefined on github api…
Browse files Browse the repository at this point in the history
… calls
  • Loading branch information
tks18 committed Mar 3, 2022
1 parent dfac667 commit 358a9cd
Showing 1 changed file with 12 additions and 27 deletions.
39 changes: 12 additions & 27 deletions src/views/this-project.vue
Original file line number Diff line number Diff line change
Expand Up @@ -385,14 +385,7 @@
>
<v-slide-y-transition>
<div
class="
text-body-1
d-inline-block
text-truncate
font-weight-light
darken-1
breadcrumb
"
class="text-body-1 d-inline-block text-truncate font-weight-light darken-1 breadcrumb"
>
{{ currentPath }}
</div>
Expand Down Expand Up @@ -446,14 +439,7 @@
>
<v-slide-y-transition>
<div
class="
text-body-1
d-inline-block
text-truncate
font-weight-light
darken-1
breadcrumb
"
class="text-body-1 d-inline-block text-truncate font-weight-light darken-1 breadcrumb"
>
{{ currentPath }}
</div>
Expand All @@ -471,13 +457,9 @@
class="d-inline-block text-truncate"
>
<div
class="
text-subtitle-1
mx-2
font-weight-bold
"
class="text-subtitle-1 mx-2 font-weight-bold"
>
{{ repo.name + '/' + current_file.path }}
{{ repo.name + '/' + currentFile.path }}
</div>
</v-col>
<v-col
Expand All @@ -489,7 +471,7 @@
icon
color="primary"
class="mx-1"
@click="open_raw_code(current_file.path)"
@click="open_raw_code(currentFile.path)"
>
<v-icon>mdi-download</v-icon>
</v-btn>
Expand All @@ -500,7 +482,7 @@
class="mx-1"
@click="
copy_content_code(
current_file.decoded_content_original,
currentFile.decoded_content_original,
)
"
>
Expand All @@ -511,7 +493,7 @@
color="primary"
class="mx-1"
small
@click="open_gh_path(current_file.path)"
@click="open_gh_path(currentFile.path)"
>
<v-icon>mdi-xml</v-icon>
</v-btn>
Expand All @@ -525,7 +507,7 @@
:max-height="ismobile ? 700 : 650"
rounded
elevation="13"
v-html="current_file.decoded_content_display"
v-html="currentFile.decoded_content_display"
/>
</v-col>
</v-row>
Expand Down Expand Up @@ -773,7 +755,10 @@ export default {
current_branch: {},
preFormatText,
file_view: false,
current_file: {},
currentFile: {
decoded_content_display: '',
total_lines: 0,
},
startPath: '/',
currentPath: '/',
historyState: [],
Expand Down

0 comments on commit 358a9cd

Please sign in to comment.