Skip to content

Commit

Permalink
feat: Add commit destination link to edit page
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsukiKigoshi committed Feb 8, 2025
1 parent bdd0cca commit 56a2b51
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions pages/edit/[org]/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
data() {
return {
cachedResponse: {},
commitDestination: '',
text: '',
tify: null
};
Expand Down Expand Up @@ -38,6 +39,16 @@
).contents;
});
}
this.tify.ready.then(() => {
this.commitDestination =
'https://github.com/itsukikigoshi/shinonome-storage/blob/main/' +
this.$route.params.org +
'/' +
this.$route.params.id +
'/' +
this.tify.options.pages[0] +
'.txt';
});
} catch (error) {
console.error('Error fetching data:', error);
}
Expand Down Expand Up @@ -95,9 +106,16 @@
readonly
></v-text-field>
<v-textarea label="Text" :model-value="text"></v-textarea>

<v-text-field label="Commit Message"></v-text-field>
<v-btn>Commit</v-btn>
</form>
<p>
Commit Destination:
<NuxtLink :to="this.commitDestination" target="_blank">
{{ this.commitDestination }}
</NuxtLink>
</p>
</v-col>
</v-row>
</v-container>
Expand Down

0 comments on commit 56a2b51

Please sign in to comment.