2020-11-17 10:45:35 +05:30
|
|
|
import { createApp } from 'vue'
|
|
|
|
import { library } from '@fortawesome/fontawesome-svg-core'
|
|
|
|
import { faThumbsUp, faThumbsDown, faEye } from '@fortawesome/free-solid-svg-icons'
|
|
|
|
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
|
|
|
|
library.add(faThumbsUp, faThumbsDown, faEye)
|
|
|
|
|
2021-01-02 01:35:44 +05:30
|
|
|
import("uikit/src/less/uikit.less")
|
|
|
|
import("uikit/dist/js/uikit.min.js")
|
2020-11-17 10:45:35 +05:30
|
|
|
|
|
|
|
import router from '@/router/router'
|
|
|
|
import App from './App.vue'
|
|
|
|
|
|
|
|
import './registerServiceWorker'
|
|
|
|
|
2020-11-27 12:16:36 +05:30
|
|
|
const mixin = {
|
|
|
|
methods: {
|
|
|
|
timeFormat: function (duration) {
|
|
|
|
|
|
|
|
var pad = function (num, size) {
|
|
|
|
return ("000" + num).slice(size * -1);
|
|
|
|
};
|
|
|
|
|
|
|
|
var time = parseFloat(duration).toFixed(3),
|
|
|
|
hours = Math.floor(time / 60 / 60),
|
|
|
|
minutes = Math.floor(time / 60) % 60,
|
|
|
|
seconds = Math.floor(time - minutes * 60);
|
|
|
|
|
|
|
|
var str = "";
|
|
|
|
|
|
|
|
if (hours > 0) str += pad(hours, 2) + ":";
|
|
|
|
|
|
|
|
str += pad(minutes, 2) + ":" + pad(seconds, 2);
|
|
|
|
|
|
|
|
return str;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-17 10:45:35 +05:30
|
|
|
const app = createApp(App)
|
|
|
|
app.use(router)
|
2020-11-27 12:16:36 +05:30
|
|
|
app.mixin(mixin)
|
2020-11-17 10:45:35 +05:30
|
|
|
app.component('font-awesome-icon', FontAwesomeIcon)
|
|
|
|
app.mount('#app')
|