Migrate all the things

* Migrates from Mongo to Postgres.
* Migrates from JSPM to Webpack.
* Migrates from React to Vuejs.
* Migrates from Bootstrap to Bulma.

Also:
* Fixes rendering of meta data in the document head tag.
This commit is contained in:
Jonathan Cremin 2016-10-03 13:31:29 +01:00
parent 09706778d9
commit 7bb0497ff4
76 changed files with 6741 additions and 1760 deletions

41
chrome/src/spotify.js Normal file
View file

@ -0,0 +1,41 @@
const apiUrl = 'https://match.audio';
function contextClick(e) {
console.log(e);
}
console.log('attach');
window.addEventListener('click', contextClick);
// document.addSelectorListener('iframe', (outerEvent) => {
// document.addEventListener('click', contextClick);
// outerEvent.target.contentDocument.addEventListener('click', contextClick);
// document.removeSelectorListener('.front iframe');
// iframes[outerEvent.target.src] = true;
// });
// document.addSelectorListener('#context-actions-area iframe', (outerEvent) => {
// outerEvent.target.addEventListener('load', () => {
// const ul = outerEvent.target.contentDocument.querySelector('.dropdown-interior-menu');
//
// for (let node of ul.childNodes) {
// console.log(node);
// }
//
//
// const li = document.createElement('li');
// ul.appendChild(li);
// const a = document.createElement('a');
// a.innerText = 'Open in Match Audio'
// a.href = apiUrl;
// a.target = '_blank';
// a.addEventListener('click', (e) => {
// e.preventDefault();
// window.open(apiUrl + '/spotify/' + match[1] + '/' + match[2], '_blank');
// });
// li.appendChild(a);
// });
// });