-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v3.0.0 - update schemas Co-authored-by: Oleg Proskurin <[email protected]>
- Loading branch information
1 parent
83c2185
commit 661c5e2
Showing
49 changed files
with
19,446 additions
and
2,009 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,3 +39,6 @@ package-lock.json | |
content-log.json | ||
|
||
dist/ | ||
|
||
.env | ||
.env.local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
const fallback = require('./fallback-settings'); | ||
|
||
const confCodes = [ | ||
'jsn', | ||
'gqconf', | ||
'mlconf', | ||
'qaconf', | ||
'doconf', | ||
'nodeconf', | ||
'rs', | ||
]; | ||
|
||
const getSettings = () => { | ||
const settings = confCodes.reduce( | ||
(acc, code) => ({ ...acc, [code]: fallback }), | ||
{}, | ||
); | ||
try { | ||
confCodes.forEach(code => { | ||
settings[ | ||
code | ||
] = require(`../../live-conferences/src/conferences/${code}/conference-settings`); | ||
}); | ||
return settings; | ||
} catch (err) { | ||
if (err.code === 'MODULE_NOT_FOUND') { | ||
console.log( | ||
`\n\nCan't find live-conferences folder. Fallback settings will be used!\n\n`, | ||
); | ||
return settings; | ||
} | ||
throw err; | ||
} | ||
}; | ||
|
||
module.exports = { getSettings }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
|
||
const { getContent } = require('../dist'); | ||
const { getSettings } = require('./conference-settings'); | ||
|
||
const CURRENT_CONF = 'mlconf'; | ||
|
||
const testLaunch = async () => { | ||
const settings = getSettings(); | ||
const content = await getContent(settings[CURRENT_CONF]); | ||
|
||
fs.writeFileSync( | ||
path.resolve(__dirname, '../content-log.json'), | ||
JSON.stringify(content, null, 2), | ||
); | ||
// console.log('content', content); | ||
}; | ||
|
||
testLaunch(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.