Commit 115ffa37 authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett

Change props to meet guidelines

parent f0e23800
<script> <script>
const RepoFile = { const RepoFile = {
props: { props: {
name: 'repo-file', file: {
file: Object, type: Object,
isTree: Boolean, required: true,
isMini: Boolean, },
loading: Object, isMini: {
hasFiles: Boolean, type: Boolean,
activeFile: Object, required: false,
default: false,
},
loading: {
type: Object,
required: false,
default: {},
},
hasFiles: {
type: Boolean,
required: false,
default: false,
},
activeFile: {
type: Object,
required: true,
},
}, },
methods: { methods: {
......
<script> <script>
const RepoFileOptions = { const RepoFileOptions = {
props: { props: {
name: 'repo-file-options', isMini: {
isMini: Boolean, type: Boolean,
projectName: String, required: false,
default: false,
},
projectName: {
type: String,
required: true,
},
}, },
}; };
......
<script> <script>
const RepoLoadingFile = { const RepoLoadingFile = {
props: {
loading: {
type: Object,
required: false,
default: {},
},
hasFiles: {
type: Boolean,
required: false,
default: false,
},
isMini: {
type: Boolean,
required: false,
default: false,
},
},
methods: { methods: {
lineOfCode(n) { lineOfCode(n) {
return `line-of-code-${n}`; return `line-of-code-${n}`;
}, },
}, },
props: {
loading: Object,
hasFiles: Boolean,
isMini: Boolean,
},
}; };
export default RepoLoadingFile; export default RepoLoadingFile;
......
<script> <script>
const RepoPreviousDirectory = { const RepoPreviousDirectory = {
props: { props: {
name: 'repo-previous-directory', prevUrl: {
prevUrl: String, type: String,
required: true,
},
}, },
methods: { methods: {
......
...@@ -3,9 +3,10 @@ import RepoStore from './repo_store'; ...@@ -3,9 +3,10 @@ import RepoStore from './repo_store';
const RepoTab = { const RepoTab = {
props: { props: {
name: 'repo-tab', tab: {
tab: Object, type: Object,
saved: true, required: true,
},
}, },
computed: { computed: {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment