From d4e60f26922bb1628187d9351ccbd70d56941423 Mon Sep 17 00:00:00 2001
From: Alex Anderson
Date: Sat, 8 Jun 2019 13:55:35 -0300
Subject: [PATCH 1/4] :rocket: Update meetup id
---
js/main.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/js/main.js b/js/main.js
index 3f36412..b9d9992 100644
--- a/js/main.js
+++ b/js/main.js
@@ -1,3 +1,4 @@
+const MEETUP_ISSUE_ID = 14;
fetch('https://api.github.com/repos/devfsa/vagas/issues')
.then(response => {
response.json()
@@ -39,7 +40,7 @@ fetch('https://api.github.com/repos/devfsa/vagas/issues')
console.log('Fetch Error:', err);
});
-fetch('https://api.github.com/repos/devfsa/meetups/issues/13/comments', { headers: { "Accept": "text" } })
+fetch(`https://api.github.com/repos/devfsa/meetups/issues/${MEETUP_ISSUE_ID}/comments`, { headers: { "Accept": "text" } })
.then(response => {
response.json()
.then(data => {
From df56af70485fd75c012e1d251e10efef8970a275 Mon Sep 17 00:00:00 2001
From: Alex Anderson
Date: Tue, 11 Jun 2019 19:23:56 -0300
Subject: [PATCH 2/4] :rocket: update all links associated with meetup issue
---
index.html | 4 ++--
js/main.js | 7 +++++++
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/index.html b/index.html
index e1fb8b5..6703c84 100644
--- a/index.html
+++ b/index.html
@@ -53,13 +53,13 @@ 25 Mai
diff --git a/js/main.js b/js/main.js
index b9d9992..0719fbc 100644
--- a/js/main.js
+++ b/js/main.js
@@ -99,3 +99,10 @@ fetch(`https://api.github.com/repos/devfsa/meetups/issues/${MEETUP_ISSUE_ID}/com
.catch(err => {
console.log('Fetch Error:', err);
});
+
+window.onload = (ev) => {
+ let submissionDOM = document.getElementById('submission');
+ let seeallDom = document.getElementById('seeall');
+ submissionDOM.href=`https://github.com/devfsa/meetups/issues/${MEETUP_ISSUE_ID}`;
+ seeallDom.href=`https://github.com/devfsa/meetups/issues/${MEETUP_ISSUE_ID}`;
+}
\ No newline at end of file
From 340b6eee7972d95af3b1010e91c42522a8bf7596 Mon Sep 17 00:00:00 2001
From: Alex Anderson
Date: Tue, 11 Jun 2019 19:26:36 -0300
Subject: [PATCH 3/4] :rocket: Remove literal link
---
index.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/index.html b/index.html
index 6703c84..78abc4d 100644
--- a/index.html
+++ b/index.html
@@ -53,13 +53,13 @@ 25 Mai
From eaf45986017c8bd7c51f003150ee0a96a20a0eae Mon Sep 17 00:00:00 2001
From: Alex Anderson
Date: Tue, 11 Jun 2019 19:33:21 -0300
Subject: [PATCH 4/4] :bug: Add missing id
---
index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.html b/index.html
index 6b52da9..d4cae94 100644
--- a/index.html
+++ b/index.html
@@ -53,7 +53,7 @@ 08 Jun