You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
641 B
33 lines
641 B
import Vue from 'vue'
|
|
|
|
import Home from './Home'
|
|
|
|
import store from './store'
|
|
|
|
|
|
Vue.config.silent = false;
|
|
Vue.config.devtools = true;
|
|
|
|
|
|
Vue.filter('formatSize', function(size) {
|
|
if (size > 1024 * 1024 * 1024 * 1024) {
|
|
return (size / 1024 / 1024 / 1024 / 1024).toFixed(2) + ' TB';
|
|
} else if (size > 1024 * 1024 * 1024) {
|
|
return (size / 1024 / 1024 / 1024).toFixed(2) + ' GB';
|
|
} else if (size > 1024 * 1024) {
|
|
return (size / 1024 / 1024).toFixed(2) + ' MB';
|
|
} else if (size > 1024) {
|
|
return (size / 1024).toFixed(2) + ' KB';
|
|
}
|
|
return size.toString() + ' B';
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
new Vue({
|
|
store,
|
|
...Home
|
|
}).$mount('#app')
|