Change props to meet guidelines

This commit is contained in:
Luke "Jared" Bennett 2017-07-20 16:37:52 +01:00
parent f0e23800c3
commit 115ffa3749
No known key found for this signature in database
GPG key ID: 402ED51FB5D306C2
5 changed files with 58 additions and 21 deletions

View file

@ -1,13 +1,29 @@
<script>
const RepoFile = {
props: {
name: 'repo-file',
file: Object,
isTree: Boolean,
isMini: Boolean,
loading: Object,
hasFiles: Boolean,
activeFile: Object,
file: {
type: Object,
required: true,
},
isMini: {
type: Boolean,
required: false,
default: false,
},
loading: {
type: Object,
required: false,
default: {},
},
hasFiles: {
type: Boolean,
required: false,
default: false,
},
activeFile: {
type: Object,
required: true,
},
},
methods: {

View file

@ -1,9 +1,15 @@
<script>
const RepoFileOptions = {
props: {
name: 'repo-file-options',
isMini: Boolean,
projectName: String,
isMini: {
type: Boolean,
required: false,
default: false,
},
projectName: {
type: String,
required: true,
},
},
};

View file

@ -1,16 +1,28 @@
<script>
const RepoLoadingFile = {
props: {
loading: {
type: Object,
required: false,
default: {},
},
hasFiles: {
type: Boolean,
required: false,
default: false,
},
isMini: {
type: Boolean,
required: false,
default: false,
},
},
methods: {
lineOfCode(n) {
return `line-of-code-${n}`;
},
},
props: {
loading: Object,
hasFiles: Boolean,
isMini: Boolean,
},
};
export default RepoLoadingFile;

View file

@ -1,8 +1,10 @@
<script>
const RepoPreviousDirectory = {
props: {
name: 'repo-previous-directory',
prevUrl: String,
prevUrl: {
type: String,
required: true,
},
},
methods: {

View file

@ -3,9 +3,10 @@ import RepoStore from './repo_store';
const RepoTab = {
props: {
name: 'repo-tab',
tab: Object,
saved: true,
tab: {
type: Object,
required: true,
},
},
computed: {