Fix linter issues
This commit is contained in:
parent
bce0f1ab3c
commit
46c271aa22
|
@ -145,6 +145,7 @@ function createWindow () {
|
||||||
backgroundColor: '#fff',
|
backgroundColor: '#fff',
|
||||||
icon: isDev
|
icon: isDev
|
||||||
? path.join(__dirname, '../../_icons/iconColor.png')
|
? path.join(__dirname, '../../_icons/iconColor.png')
|
||||||
|
/* eslint-disable-next-line */
|
||||||
: `${__dirname}/_icons/iconColor.png`,
|
: `${__dirname}/_icons/iconColor.png`,
|
||||||
autoHideMenuBar: true,
|
autoHideMenuBar: true,
|
||||||
// useContentSize: true,
|
// useContentSize: true,
|
||||||
|
@ -199,6 +200,7 @@ function createWindow () {
|
||||||
if (isDev) {
|
if (isDev) {
|
||||||
mainWindow.loadURL('http://localhost:9080')
|
mainWindow.loadURL('http://localhost:9080')
|
||||||
} else {
|
} else {
|
||||||
|
/* eslint-disable-next-line */
|
||||||
mainWindow.loadFile(`${__dirname}/index.html`)
|
mainWindow.loadFile(`${__dirname}/index.html`)
|
||||||
|
|
||||||
global.__static = path
|
global.__static = path
|
||||||
|
|
|
@ -25,6 +25,7 @@ Vue.use(VueI18n)
|
||||||
// List of locales approved for use
|
// List of locales approved for use
|
||||||
const activeLocales = ['en-US', 'en_GB', 'ar', 'bg', 'da', 'de-DE', 'el', 'es', 'es-MX', 'fi', 'fr-FR', 'he', 'hu', 'hr', 'id', 'it', 'ja', 'nl', 'pl', 'pt', 'pt-BR', 'pt-PT', 'ru', 'sl', 'sv', 'tr', 'vi', 'zh-CN', 'zh-TW']
|
const activeLocales = ['en-US', 'en_GB', 'ar', 'bg', 'da', 'de-DE', 'el', 'es', 'es-MX', 'fi', 'fr-FR', 'he', 'hu', 'hr', 'id', 'it', 'ja', 'nl', 'pl', 'pt', 'pt-BR', 'pt-PT', 'ru', 'sl', 'sv', 'tr', 'vi', 'zh-CN', 'zh-TW']
|
||||||
const messages = {}
|
const messages = {}
|
||||||
|
/* eslint-disable-next-line */
|
||||||
const fileLocation = isDev ? 'static/locales/' : `${__dirname}/static/locales/`
|
const fileLocation = isDev ? 'static/locales/' : `${__dirname}/static/locales/`
|
||||||
|
|
||||||
// Take active locales and load respective YAML file
|
// Take active locales and load respective YAML file
|
||||||
|
|
|
@ -122,6 +122,7 @@ const actions = {
|
||||||
|
|
||||||
getRegionData ({ commit }, payload) {
|
getRegionData ({ commit }, payload) {
|
||||||
let fileData
|
let fileData
|
||||||
|
/* eslint-disable-next-line */
|
||||||
const fileLocation = payload.isDev ? './static/geolocations/' : `${__dirname}/static/geolocations/`
|
const fileLocation = payload.isDev ? './static/geolocations/' : `${__dirname}/static/geolocations/`
|
||||||
if (fs.existsSync(`${fileLocation}${payload.locale}`)) {
|
if (fs.existsSync(`${fileLocation}${payload.locale}`)) {
|
||||||
fileData = fs.readFileSync(`${fileLocation}${payload.locale}/countries.json`)
|
fileData = fs.readFileSync(`${fileLocation}${payload.locale}/countries.json`)
|
||||||
|
|
Loading…
Reference in New Issue