@@ -61,6 +62,11 @@
Debug
+
+
+ Searcher
+
+
diff --git a/src/persistence/firebase-manager.js b/src/persistence/firebase-manager.js
index f2170e93..1aaa902b 100644
--- a/src/persistence/firebase-manager.js
+++ b/src/persistence/firebase-manager.js
@@ -63,7 +63,7 @@ export class FirebaseManager {
return new Firebase(`${this.baseURL}/${pastebinId}/metags/urls`);
}
- makeGlobalMetagsURLsFirebase(pastebinId = this.pastebinId) {
+ makeGlobalMetagsURLsFirebase() {
return new Firebase(`${this.baseURL}/metags/urls`);
}
diff --git a/src/searcher/searcher-container.css b/src/searcher/searcher-container.css
new file mode 100644
index 00000000..e69de29b
diff --git a/src/searcher/searcher-container.html b/src/searcher/searcher-container.html
new file mode 100644
index 00000000..621b6fa6
--- /dev/null
+++ b/src/searcher/searcher-container.html
@@ -0,0 +1,12 @@
+
+
@@ -71,6 +77,9 @@
+
+
+
+
+
diff --git a/src/searcher/searcher-container.js b/src/searcher/searcher-container.js
new file mode 100644
index 00000000..af0f1d7c
--- /dev/null
+++ b/src/searcher/searcher-container.js
@@ -0,0 +1,17 @@
+/**
+ * Created by DavidIgnacio on 7/17/2017.
+ */
+export class SearcherContainer{
+
+ constructor(firebaseManager){
+ this.firebaseManager = firebaseManager;
+ }
+ attached(){
+ let firebaseURLs = this.firebaseManager.makeGlobalMetagsURLsFirebase();
+ firebaseURLs.on("child_added", function(snapshot){
+ let data = snapshot.val();
+ $("#urlList").append(`
+