mirror of
https://gitlab.com/Shinobi-Systems/ShinobiCE.git
synced 2025-03-09 15:40:15 +00:00
Support Shinobi at https://licenses.shinobi.video/subscribe
This commit is contained in:
parent
ef40f3f231
commit
167603dfb0
118 changed files with 16152 additions and 5441 deletions
|
@ -1,5 +1,5 @@
|
|||
var fs = require('fs');
|
||||
module.exports = function(s,config){
|
||||
module.exports = function(s,config,lang){
|
||||
//directories
|
||||
s.group = {}
|
||||
if(!config.windowsTempDir&&s.isWin===true){config.windowsTempDir='C:/Windows/Temp'}
|
||||
|
@ -40,10 +40,44 @@ module.exports = function(s,config){
|
|||
fs.mkdirSync(s.dir.fileBin);
|
||||
}
|
||||
//additional storage areas
|
||||
s.listOfStorage = [{
|
||||
name: lang['Default'],
|
||||
value: ""
|
||||
}]
|
||||
s.dir.addStorage.forEach(function(v,n){
|
||||
v.path = s.checkCorrectPathEnding(v.path)
|
||||
if(!fs.existsSync(v.path)){
|
||||
fs.mkdirSync(v.path);
|
||||
}
|
||||
s.listOfStorage.push({
|
||||
name: v.name,
|
||||
value: v.path
|
||||
})
|
||||
})
|
||||
//get audio files list
|
||||
s.listOfAudioFiles = [
|
||||
{
|
||||
name:lang['No Sound'],
|
||||
value:""
|
||||
}
|
||||
]
|
||||
fs.readdirSync(s.mainDirectory + '/web/libs/audio').forEach(function(file){
|
||||
s.listOfAudioFiles.push({
|
||||
name: file,
|
||||
value: file
|
||||
})
|
||||
})
|
||||
//get themes list
|
||||
s.listOfThemes = [
|
||||
{
|
||||
name:lang['Default'],
|
||||
value:""
|
||||
}
|
||||
]
|
||||
fs.readdirSync(s.mainDirectory + '/web/libs/themes').forEach(function(folder){
|
||||
s.listOfThemes.push({
|
||||
name: folder,
|
||||
value: folder
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue