mirror of
https://github.com/Linux4Yourself/book.git
synced 2025-01-23 22:42:26 +08:00
removed unneeded scripts
This commit is contained in:
parent
301948861e
commit
d14547ec87
@ -131,25 +131,6 @@ Vue.component('package-script', {
|
||||
</pre>`,
|
||||
});
|
||||
|
||||
Vue.component('common-script', {
|
||||
props: {
|
||||
name: String,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
info: null
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
selectScript(this.name)
|
||||
.then(res => (this.info = res));
|
||||
},
|
||||
template: `
|
||||
<pre class="pre">
|
||||
{{ info }}
|
||||
</pre>`,
|
||||
});
|
||||
|
||||
Vue.component('warn', {
|
||||
template: `
|
||||
<div class="warn-description">
|
||||
|
@ -77,10 +77,3 @@ getPackageScript = function (name, script) {
|
||||
})
|
||||
.then(response => response.data);
|
||||
}
|
||||
|
||||
selectScript = function(name) {
|
||||
return axios.get(`${scriptsUrlBase}/${name}.sh`, {
|
||||
responseType: 'text'
|
||||
})
|
||||
.then(response => response.data);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user