-
Notifications
You must be signed in to change notification settings - Fork 17
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
IoT & Dialogue functionality #187
Conversation
… into the non-terminal functions instead of the answer funcs
…o get them from query
…a sýningar eru í boði
Grammar2
Started implementing SPPF reduction functionality in `query.py`, tailored to reducing parse forests for queries. Modified usage of `banned_nonterminals`.
console.log("result: ", result); | ||
if (result.valid === true) { | ||
console.log("Request url in valid check: ", requestURL); | ||
window.location.href = `${requestURL}/iot-connect-success`; |
Check warning
Code scanning / CodeQL
Client-side cross-site scripting
return "Tenging við snjalltæki tókst"; | ||
} catch (error) { | ||
console.log(error); | ||
window.location.href = `${requestURL}/iot-connect-error`; |
Check warning
Code scanning / CodeQL
Client-side cross-site scripting
let connectButton = document.getElementById('connect_button'); | ||
connectButton.onclick = function () { | ||
console.log('Click happened'); | ||
window.location.href = connectUrl; |
Check warning
Code scanning / CodeQL
Client-side cross-site scripting
const connectUrl = decodeURIComponent(queryParams.get('connect_url')); | ||
let connectButton = document.getElementById('connect_button'); | ||
connectButton.onclick = function () { | ||
window.location.href = connectUrl; |
Check warning
Code scanning / CodeQL
Client-side cross-site scripting
console.log("result: ", result); | ||
if (result.valid === true) { | ||
console.log("Request url in valid check: ", requestURL); | ||
window.location.href = `${requestURL}/iot-connect-success`; |
Check warning
Code scanning / CodeQL
Client-side URL redirect
return "Tenging við snjalltæki tókst"; | ||
} catch (error) { | ||
console.log(error); | ||
window.location.href = `${requestURL}/iot-connect-error`; |
Check warning
Code scanning / CodeQL
Client-side URL redirect
let connectButton = document.getElementById('connect_button'); | ||
connectButton.onclick = function () { | ||
console.log('Click happened'); | ||
window.location.href = connectUrl; |
Check warning
Code scanning / CodeQL
Client-side URL redirect
const connectUrl = decodeURIComponent(queryParams.get('connect_url')); | ||
let connectButton = document.getElementById('connect_button'); | ||
connectButton.onclick = function () { | ||
window.location.href = connectUrl; |
Check warning
Code scanning / CodeQL
Client-side URL redirect
Some refactoring to iot_hue and iot_speaker modules, simplified module grammars. Improvements to grammar generator (now works around format strings). Hotfix for small bug in dialogue.py, raised in query.py, will be fixed better in coming commits to dialogue functionality.
Large modifications to Hue javascript, simplified the Hue grammar for the time being. Working on Sonos module and the Sonos class.
Temporarily disabled spotify functionality (not as ready for production). Currently refactoring the Sonos class.
Changed target branch for this PR to
|
Work in progress!
Integrating IoT and dialogue functionality into Greynir.