Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Urgly way to rebuild the tree object
- Loading branch information
1 parent
973c0c0
commit c1ade00
Showing
4 changed files
with
60 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,43 @@ | ||
<script> | ||
export default { | ||
data() { | ||
return { | ||
} | ||
}, | ||
computed: { | ||
}, | ||
vuex: { | ||
getters: { | ||
repoTree: ({ github }) => github.repoTree | ||
} | ||
}, | ||
ready() { | ||
}, | ||
methods: {}, | ||
components: {} | ||
}; | ||
} | ||
} | ||
</script> | ||
|
||
<template lang="html"> | ||
<div> | ||
<pre> | ||
{{{ repoTree }}} | ||
</pre> | ||
<div class="boxed-header"> | ||
<span class="repo-tree">Repository Tree</span> | ||
<button type="button" class="btn btn-sm btn-primary right" @click="copy">Copy to clipboard</button> | ||
</div> | ||
<div class="boxed-content"> | ||
<pre class="form-control">{{{ repoTree }}}</pre> | ||
</div> | ||
</template> | ||
|
||
<style lang="css"> | ||
.boxed-header { | ||
position: relative; | ||
padding: 10px; | ||
margin-bottom: -1px; | ||
font-size: 13px; | ||
line-height: 26px; | ||
color: #68777d; | ||
background-color: #f2f9fc; | ||
border: 1px solid #c9e6f2; | ||
border-radius: 3px; | ||
border-bottom-right-radius: 0; | ||
border-bottom-left-radius: 0; | ||
} | ||
.boxed-content { | ||
margin-bottom: 10px; | ||
border: 1px solid #ddd; | ||
border-top: 0; | ||
border-bottom-right-radius: 3px; | ||
border-bottom-left-radius: 3px; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters