Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding backend support #180

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

JasonHHouse
Copy link
Owner

In progress

@JasonHHouse JasonHHouse added the enhancement New feature or request label Sep 23, 2020
@JasonHHouse JasonHHouse self-assigned this Sep 23, 2020
This was linked to issues Sep 23, 2020
},
body: JSON.stringify(obj)
})
const put = await response.json();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
Missing semicolon.

'Content-Type': 'application/json'
},
body: JSON.stringify(obj)
})
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing semicolon.

'defaultLibrary': document.getElementById('defaultLibrary').value
}

let response = await fetch(`/configuration/update/plex/library`, {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
'template literal syntax' is only available in ES6 (use 'esversion: 6').
Missing semicolon.

'key': key,
'enabled': document.getElementById('libraryEnabled').value,
'defaultLibrary': document.getElementById('defaultLibrary').value
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing semicolon.

}

export async function savePlexLibraryConfiguration(machineIdentifier, key) {
const obj = {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

'key': key
}
const plexLibraryButtonConfiguration = $("#plexLibraryButtonConfiguration").html();
const theTemplate = Handlebars.compile(plexLibraryButtonConfiguration);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

const obj = {
'machineIdentifier': machineIdentifier,
'key': key
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing semicolon.

*/

export function openPlexLibraryConfigurationModel(machineIdentifier, key) {
const obj = {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

*
*/

export function openPlexLibraryConfigurationModel(machineIdentifier, key) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'export' is only available in ES6 (use 'esversion: 6').

@@ -20,6 +20,7 @@ import {saveEmailNotifications, testEmailNotifications} from "./modules/email-no
import {saveSchedule} from "./modules/schedule.min.js";
import {getSoundOptions, savePushOverNotifications, testPushOverNotifications} from "./modules/push-over-notifications.min.js";
import {saveDiscordNotifications, testDiscordNotifications} from "./modules/discord-notifications.min.js";
import {openPlexLibraryConfigurationModel, savePlexLibraryConfiguration} from "./modules/plex-configuration.min.js"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'import' is only available in ES6 (use 'esversion: 6').
Missing semicolon.

const plexLibraryModalTemplate = $("#plexLibraryModalTemplate").html();
const theTemplate = Handlebars.compile(plexLibraryModalTemplate);
const theCompiledHtml = theTemplate(obj);
const plexLibraryConfigurationModal = document.getElementById('plexLibraryConfigurationModal');
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

'key': key
}
const plexLibraryModalTemplate = $("#plexLibraryModalTemplate").html();
const theTemplate = Handlebars.compile(plexLibraryModalTemplate);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

@JasonHHouse JasonHHouse force-pushed the improvement/default_library_and_disabled_library branch from 3b62c5d to d6545d3 Compare September 28, 2020 11:12
.should('be.visible')
.and(($img) => {
// "naturalWidth" and "naturalHeight" are set when the image loads
expect($img[0].naturalWidth).to.be.greaterThan(0)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing semicolon.


cy.get('.card-img')
.should('be.visible')
.and(($img) => {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').

.should('be.visible')
.and(($img) => {
// "naturalWidth" and "naturalHeight" are set when the image loads
expect($img[0].naturalWidth).to.be.greaterThan(0)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing semicolon.


cy.get('.card-img')
.should('be.visible')
.and(($img) => {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').

.should('be.visible')
.and(($img) => {
// "naturalWidth" and "naturalHeight" are set when the image loads
expect($img[0].naturalWidth).to.be.greaterThan(0)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing semicolon.


cy.get('.card-img')
.should('be.visible')
.and(($img) => {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Library Selection/Exclusion Default Library?
1 participant