|
|
|
|
@ -37,10 +37,6 @@ if (process.env.NODE_ENV === 'development') { |
|
|
|
|
Vue.config.devtools = true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
window.urlIs = (urlPatternName) => { |
|
|
|
|
return window.location.pathname.search(window.LIL_STORE.urls[urlPatternName]) > -1; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
const components = { |
|
|
|
|
UploadContestWork, |
|
|
|
|
ContestWorks, |
|
|
|
|
@ -50,11 +46,11 @@ const components = { |
|
|
|
|
|
|
|
|
|
Object.assign(components, window.LIL_STORE.components); |
|
|
|
|
|
|
|
|
|
if(urlIs('faq')){ |
|
|
|
|
if(window.LIL_STORE.urlIs('faq')){ |
|
|
|
|
const FAQ = require('../components/FAQ.vue'); |
|
|
|
|
components['faq'] = FAQ.default; |
|
|
|
|
} |
|
|
|
|
if(urlIs('userProfileEdit') || urlIs('userBonuses')){ |
|
|
|
|
if(window.LIL_STORE.urlIs('userProfileEdit') || window.LIL_STORE.urlIs('userBonuses')){ |
|
|
|
|
const profile = require("./modules/profile"); |
|
|
|
|
profile.main(); |
|
|
|
|
} |
|
|
|
|
@ -64,6 +60,7 @@ const app = new Vue({ |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
store: window.LIL_STORE, |
|
|
|
|
} }, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
components: components |
|
|
|
|
}); |
|
|
|
|
|