Use resolves
This commit is contained in:
@@ -1,36 +0,0 @@
|
||||
//Librairies
|
||||
import Api from './api.js';
|
||||
import Lang from './lang.js';
|
||||
import Projects from './projects.js';
|
||||
import User from './user.js';
|
||||
import { createApp } from 'vue';
|
||||
|
||||
//Main template
|
||||
import Spot from '../Spot.vue';
|
||||
|
||||
//Style
|
||||
import Css from './../styles/spot.scss';
|
||||
|
||||
//App Configuration from PHP
|
||||
const appConfig = JSON.parse(document.getElementById('app-config').textContent);
|
||||
|
||||
//Instances
|
||||
const oProjects = new Projects(appConfig.projects);
|
||||
const oUser = new User(appConfig.user, appConfig.consts.default_timezone);
|
||||
const oLang = new Lang({translations: appConfig.consts.lang, prefix: appConfig.consts.lang_prefix});
|
||||
const oApi = new Api({
|
||||
server: appConfig.consts.server,
|
||||
processPage: appConfig.consts.process_page,
|
||||
timezone: oUser.timezone,
|
||||
errorCode: appConfig.consts.error,
|
||||
lang: oLang
|
||||
});
|
||||
|
||||
//Mount app
|
||||
const oSpot = createApp(Spot);
|
||||
oSpot.provide('appConfig', appConfig);
|
||||
oSpot.provide('api', oApi);
|
||||
oSpot.provide('lang', oLang);
|
||||
oSpot.provide('projects', oProjects);
|
||||
oSpot.provide('user', oUser);
|
||||
oSpot.mount('#container');
|
||||
@@ -1,4 +1,4 @@
|
||||
import { getDragPosition } from './common.js';
|
||||
import { getDragPosition } from '@scripts/common';
|
||||
|
||||
$.prototype.defaultVal = function(sDefaultValue)
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { icon } from '@fortawesome/fontawesome-svg-core';
|
||||
import { getIcon } from './icons.js';
|
||||
import { getIcon } from '@scripts/icons';
|
||||
|
||||
const defaults = {
|
||||
albumLabel: 'Image %1 of %2',
|
||||
|
||||
Reference in New Issue
Block a user