mirror of
https://github.com/WebTools-NG/WebTools-NG
synced 2024-11-22 02:53:05 +00:00
Fix #574
This commit is contained in:
parent
35060e0161
commit
4ce11d6419
4 changed files with 4 additions and 18 deletions
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
|
@ -11,10 +11,10 @@ jobs:
|
|||
|
||||
strategy:
|
||||
matrix:
|
||||
# os: [macos-latest, ubuntu-latest, windows-latest]
|
||||
os: [macos-latest, ubuntu-latest, windows-latest]
|
||||
# os: [macos-latest]
|
||||
# os: [ubuntu-latest, windows-latest]
|
||||
os: [windows-latest]
|
||||
# os: [windows-latest]
|
||||
|
||||
steps:
|
||||
- name: Check out Git repository
|
||||
|
|
|
@ -91,13 +91,11 @@ app.on('ready', async () => {
|
|||
} catch (e) {
|
||||
console.error('Vue Devtools failed to install:', e.toString())
|
||||
}
|
||||
|
||||
}
|
||||
// Open system Dialog
|
||||
ipcMain.handle('dialog', (event, method, params) => {
|
||||
dialog[method](params);
|
||||
});
|
||||
|
||||
Menu.setApplicationMenu(null)
|
||||
createWindow()
|
||||
})
|
||||
|
|
|
@ -13,9 +13,6 @@ const tmdb = new class TMDB {
|
|||
constructor() {
|
||||
this.baseUrl = 'https://www.themoviedb.org/';
|
||||
this.baseAPIUrl = 'https://api.themoviedb.org';
|
||||
// this.BearerKey = 'eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiIwNzZjOTRlOTM5YThkNzhjOTg1NGY4MTc0YTI5NGVhYSIsInN1YiI6IjYyNTA5NjcxYzYxM2NlMDA1MWYwMjMyYSIsInNjb3BlcyI6WyJhcGlfcmVhZCJdLCJ2ZXJzaW9uIjoxfQ.Ch9U33tcVeh5qbVUG12LZ7qX8ulbIZjURlyGuj3ULBk';
|
||||
this.apiKey = '076c94e939a8d78c9854f8174a294eaa';
|
||||
|
||||
}
|
||||
|
||||
get tmdbHeader(){
|
||||
|
@ -31,7 +28,6 @@ const tmdb = new class TMDB {
|
|||
async getTMDBShowInfo( tmdbId ){
|
||||
log.info(`[tmdb.js] (getTMDBShowInfo) - Getting tmdb info for ${tmdbId}`);
|
||||
let url = `${this.baseAPIUrl}/3/tv/${tmdbId}?language=en-US`
|
||||
// api_key=<<api_key>>
|
||||
let header = {
|
||||
"Accept": "application/json"
|
||||
};
|
||||
|
|
|
@ -23,18 +23,10 @@ const wtutils = new class WTUtils {
|
|||
|
||||
envVarLocal( envName ){
|
||||
// This will return the value of a line defined in /locales/.env.local
|
||||
const { readFileSync } = require('fs')
|
||||
|
||||
const { readFileSync } = require('fs');
|
||||
const data = readFileSync( wtutils.Home + '/locales/.env.local', 'utf8').split(/[\n\r]/);
|
||||
|
||||
console.log('Ged 55-3' + JSON.stringify(data))
|
||||
|
||||
const matches = data.filter(s => s.includes(envName));
|
||||
console.log('Ged 55-4' + JSON.stringify(matches))
|
||||
const retval = matches[0].split('=')[1]
|
||||
|
||||
console.log('Ged 55-5: ' + retval)
|
||||
|
||||
const retval = matches[0].split('=')[1];
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue