This commit is contained in:
17
lib/Spot.php
17
lib/Spot.php
@@ -44,6 +44,8 @@ class Spot extends Main
|
||||
|
||||
const MAIN_PAGE = 'index';
|
||||
|
||||
const DIST_FOLDER = '../dist/';
|
||||
|
||||
private Project $oProject;
|
||||
private Media $oMedia;
|
||||
private User $oUser;
|
||||
@@ -188,13 +190,24 @@ class Spot extends Main
|
||||
),
|
||||
self::MAIN_PAGE,
|
||||
array(
|
||||
'language' => $this->oLang->getLanguage(),
|
||||
'filepath_js' => self::addTimestampToFilePath('app.js'),
|
||||
'tags' => [
|
||||
'language' => $this->oLang->getLanguage()
|
||||
],
|
||||
'instances' => [
|
||||
'entrypoint' => $this->getAppEntryPoints()
|
||||
]
|
||||
),
|
||||
$asPages
|
||||
);
|
||||
}
|
||||
|
||||
private function getAppEntryPoints() {
|
||||
return array_map(
|
||||
function($sFileName) {return ['filename' => self::addTimestampToFilePath($sFileName)];},
|
||||
json_decode(file_get_contents(self::DIST_FOLDER.'entrypoints.json'), true)['entrypoints']['app']
|
||||
);
|
||||
}
|
||||
|
||||
public function checkUserClearance($iClearance) {
|
||||
return $this->oUser->checkUserClearance($iClearance);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user