diff --git a/lib/Spot.php b/lib/Spot.php index 3406e0f..9acccce 100755 --- a/lib/Spot.php +++ b/lib/Spot.php @@ -188,7 +188,6 @@ class Spot extends Main self::MAIN_PAGE, array( 'language' => $this->oLang->getLanguage(), - 'filepath_css' => self::addTimestampToFilePath('spot.css'), 'filepath_js' => self::addTimestampToFilePath('../dist/app.js'), ), $asPages diff --git a/src/masks/index.html b/src/masks/index.html index cd9b367..76e1c8d 100755 --- a/src/masks/index.html +++ b/src/masks/index.html @@ -19,11 +19,11 @@ - + Spotty
- \ No newline at end of file + diff --git a/src/scripts/app.js b/src/scripts/app.js index e1c1ae9..7dc5913 100644 --- a/src/scripts/app.js +++ b/src/scripts/app.js @@ -9,7 +9,6 @@ window.setElem = common.setElem; window.getDragPosition = common.getDragPosition; window.copyTextToClipboard = common.copyTextToClipboard; window.getOuterWidth = common.getOuterWidth; - import Css from './../styles/spot.scss'; //Masks @@ -18,8 +17,6 @@ import Spot from './spot.js'; //import Upload from './page.upload.js'; //import Admin from './page.admin.js'; -window.oSpot = new Spot(params); - //let oProject = new Project(oSpot); //oSpot.addPage('project', oProject); @@ -34,6 +31,10 @@ window.oSpot = new Spot(params); import { createApp } from 'vue'; import SpotVue from '../Spot.vue'; +const appConfigElement = document.getElementById('app-config'); +const appConfig = appConfigElement ? JSON.parse(appConfigElement.textContent || '{}') : {}; +const oSpot = new Spot(appConfig); + const oSpotVue = createApp(SpotVue); -oSpotVue.provide('spot', window.oSpot); -oSpotVue.mount('#container'); \ No newline at end of file +oSpotVue.provide('spot', oSpot); +oSpotVue.mount('#container');