2020-02-16 19:30:00 +01:00
|
|
|
// import the styles
|
|
|
|
import Vue from 'vue'
|
|
|
|
import App from './App.vue'
|
|
|
|
import router from './router/index'
|
|
|
|
import store from './store/index'
|
2021-06-20 03:40:40 +02:00
|
|
|
import i18n from './i18n/index'
|
2020-02-16 19:30:00 +01:00
|
|
|
import { library } from '@fortawesome/fontawesome-svg-core'
|
2022-09-06 04:29:10 +02:00
|
|
|
import {
|
|
|
|
faAngleDown,
|
|
|
|
faArrowDown,
|
|
|
|
faArrowLeft,
|
|
|
|
faArrowRight,
|
|
|
|
faBars,
|
|
|
|
faBookmark,
|
|
|
|
faCheck,
|
2022-09-29 22:01:54 +02:00
|
|
|
faChevronRight,
|
2022-09-06 04:29:10 +02:00
|
|
|
faClone,
|
|
|
|
faCommentDots,
|
|
|
|
faCopy,
|
|
|
|
faDownload,
|
|
|
|
faEllipsisH,
|
|
|
|
faEllipsisV,
|
|
|
|
faEnvelope,
|
|
|
|
faExchangeAlt,
|
|
|
|
faExclamationCircle,
|
|
|
|
faExternalLinkAlt,
|
|
|
|
faFileDownload,
|
|
|
|
faFileVideo,
|
|
|
|
faFilter,
|
|
|
|
faFire,
|
|
|
|
faGlobe,
|
|
|
|
faHeart,
|
|
|
|
faHistory,
|
|
|
|
faInfoCircle,
|
|
|
|
faLanguage,
|
|
|
|
faList,
|
|
|
|
faNewspaper,
|
|
|
|
faPlay,
|
|
|
|
faQuestionCircle,
|
|
|
|
faRandom,
|
|
|
|
faRetweet,
|
|
|
|
faRss,
|
|
|
|
faSatelliteDish,
|
|
|
|
faSearch,
|
|
|
|
faShareAlt,
|
|
|
|
faSlidersH,
|
|
|
|
faSortDown,
|
|
|
|
faStar,
|
|
|
|
faStepBackward,
|
|
|
|
faStepForward,
|
|
|
|
faSync,
|
|
|
|
faThumbsUp,
|
|
|
|
faThumbtack,
|
|
|
|
faTimes,
|
|
|
|
faTimesCircle,
|
|
|
|
faUsers
|
|
|
|
} from '@fortawesome/free-solid-svg-icons'
|
2021-01-15 17:14:45 +01:00
|
|
|
import { faGithub } from '@fortawesome/free-brands-svg-icons/faGithub'
|
|
|
|
import { faBitcoin } from '@fortawesome/free-brands-svg-icons/faBitcoin'
|
|
|
|
import { faMonero } from '@fortawesome/free-brands-svg-icons/faMonero'
|
|
|
|
import { faMastodon } from '@fortawesome/free-brands-svg-icons/faMastodon'
|
2020-02-16 19:30:00 +01:00
|
|
|
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
|
|
|
|
|
2022-11-05 15:44:21 +01:00
|
|
|
Vue.config.devtools = process.env.NODE_ENV === 'development'
|
|
|
|
Vue.config.performance = process.env.NODE_ENV === 'development'
|
|
|
|
Vue.config.productionTip = process.env.NODE_ENV === 'development'
|
2020-02-16 19:30:00 +01:00
|
|
|
|
2022-09-06 04:29:10 +02:00
|
|
|
library.add(
|
|
|
|
// solid icons
|
|
|
|
faAngleDown,
|
|
|
|
faArrowDown,
|
|
|
|
faArrowLeft,
|
|
|
|
faArrowRight,
|
|
|
|
faBars,
|
|
|
|
faBookmark,
|
|
|
|
faCheck,
|
2022-09-29 22:01:54 +02:00
|
|
|
faChevronRight,
|
2022-09-06 04:29:10 +02:00
|
|
|
faClone,
|
|
|
|
faCommentDots,
|
|
|
|
faCopy,
|
|
|
|
faDownload,
|
|
|
|
faEllipsisH,
|
|
|
|
faEllipsisV,
|
|
|
|
faEnvelope,
|
|
|
|
faExchangeAlt,
|
|
|
|
faExclamationCircle,
|
|
|
|
faExternalLinkAlt,
|
|
|
|
faFileDownload,
|
|
|
|
faFileVideo,
|
|
|
|
faFilter,
|
|
|
|
faFire,
|
|
|
|
faGlobe,
|
|
|
|
faHeart,
|
|
|
|
faHistory,
|
|
|
|
faInfoCircle,
|
|
|
|
faLanguage,
|
|
|
|
faList,
|
|
|
|
faNewspaper,
|
|
|
|
faPlay,
|
|
|
|
faQuestionCircle,
|
|
|
|
faRandom,
|
|
|
|
faRetweet,
|
|
|
|
faRss,
|
|
|
|
faSatelliteDish,
|
|
|
|
faSearch,
|
|
|
|
faShareAlt,
|
|
|
|
faSlidersH,
|
|
|
|
faSortDown,
|
|
|
|
faStar,
|
|
|
|
faStepBackward,
|
|
|
|
faStepForward,
|
|
|
|
faSync,
|
|
|
|
faThumbsUp,
|
|
|
|
faThumbtack,
|
|
|
|
faTimes,
|
|
|
|
faTimesCircle,
|
|
|
|
faUsers,
|
|
|
|
|
|
|
|
// brand icons
|
|
|
|
faGithub,
|
|
|
|
faBitcoin,
|
|
|
|
faMastodon,
|
|
|
|
faMonero
|
|
|
|
)
|
2020-02-16 19:30:00 +01:00
|
|
|
|
2020-10-04 20:30:54 +02:00
|
|
|
Vue.component('FontAwesomeIcon', FontAwesomeIcon)
|
2020-02-16 19:30:00 +01:00
|
|
|
|
|
|
|
/* eslint-disable-next-line */
|
|
|
|
new Vue({
|
|
|
|
el: '#app',
|
|
|
|
router,
|
|
|
|
store,
|
2020-08-06 05:39:00 +02:00
|
|
|
i18n,
|
2020-02-16 19:30:00 +01:00
|
|
|
render: h => h(App)
|
|
|
|
})
|
|
|
|
|
2022-06-13 15:31:32 +02:00
|
|
|
// to avoid accessing electron api from web app build
|
2022-09-15 10:59:09 +02:00
|
|
|
if (process.env.IS_ELECTRON) {
|
2020-03-24 14:22:29 +01:00
|
|
|
const { ipcRenderer } = require('electron')
|
|
|
|
|
|
|
|
// handle menu event updates from main script
|
|
|
|
ipcRenderer.on('change-view', (event, data) => {
|
|
|
|
if (data.route) {
|
|
|
|
router.push(data.route)
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|