Showing
6 changed files
with
7 additions
and
7 deletions
... | @@ -112,7 +112,7 @@ var timestamp = function (date) { | ... | @@ -112,7 +112,7 @@ var timestamp = function (date) { |
112 | + pad(Math.floor(Math.abs(offset) / 60), 2) | 112 | + pad(Math.floor(Math.abs(offset) / 60), 2) |
113 | + ":" + pad(Math.abs(offset) % 60, 2); | 113 | + ":" + pad(Math.abs(offset) % 60, 2); |
114 | } | 114 | } |
115 | - | 115 | + //시작 시간까지 10분 이내로 남은 이벤트 확인 |
116 | function checkEvents(){ | 116 | function checkEvents(){ |
117 | var nDate = new Date(); | 117 | var nDate = new Date(); |
118 | for(var i = 0;i<events.length;i++){ | 118 | for(var i = 0;i<events.length;i++){ |
... | @@ -133,7 +133,7 @@ var timestamp = function (date) { | ... | @@ -133,7 +133,7 @@ var timestamp = function (date) { |
133 | } | 133 | } |
134 | }; | 134 | }; |
135 | 135 | ||
136 | - //이벤트 시작 10분 전 동안 카카오톡 나에게메시지 보내기 | 136 | + //10분 이내의 이벤트 카카오톡 나에게 보내기로 알림 보내기 |
137 | function sendMessage(event,minute){ | 137 | function sendMessage(event,minute){ |
138 | let template_objectObj = { | 138 | let template_objectObj = { |
139 | "object_type" : 'text', | 139 | "object_type" : 'text', | ... | ... |
... | @@ -6,8 +6,8 @@ var GoogleStrategy = require('passport-google-oauth').OAuth2Strategy; | ... | @@ -6,8 +6,8 @@ var GoogleStrategy = require('passport-google-oauth').OAuth2Strategy; |
6 | 6 | ||
7 | //구글 로그인 | 7 | //구글 로그인 |
8 | passport.use(new GoogleStrategy({ | 8 | passport.use(new GoogleStrategy({ |
9 | - clientID:'978869138601-u3euf0c04sbdor68r30m599gilvjn91e.apps.googleusercontent.com', | 9 | + clientID: 'ClientID', |
10 | - clientSecret:'9ERYhDZJK-CrX3moES2z11ol', | 10 | + clientSecret:'ClientSecret', |
11 | callbackURL:'http://localhost:3000/auth/google/callback', | 11 | callbackURL:'http://localhost:3000/auth/google/callback', |
12 | scope:['openid','email','https://www.googleapis.com/auth/calendar.readonly', | 12 | scope:['openid','email','https://www.googleapis.com/auth/calendar.readonly', |
13 | 'https://www.googleapis.com/auth/calendar', | 13 | 'https://www.googleapis.com/auth/calendar', |
... | @@ -30,7 +30,7 @@ router.get('/auth/google/callback',passport.authenticate('google',{ | ... | @@ -30,7 +30,7 @@ router.get('/auth/google/callback',passport.authenticate('google',{ |
30 | 30 | ||
31 | //카카오 로그인 | 31 | //카카오 로그인 |
32 | const kakaoKey = { | 32 | const kakaoKey = { |
33 | - clientID: "cf6ae2286a1b022bafa454588f32878b", | 33 | + clientID: "Kakao Rest Api ID", |
34 | callbackURL: "/oauth/callback" | 34 | callbackURL: "/oauth/callback" |
35 | }; | 35 | }; |
36 | 36 | ... | ... |
... | @@ -39,7 +39,7 @@ | ... | @@ -39,7 +39,7 @@ |
39 | <body bgcolor="e7ded9"> | 39 | <body bgcolor="e7ded9"> |
40 | <center> | 40 | <center> |
41 | <br> | 41 | <br> |
42 | - <h1 style="font-size:35px">Calendar Lists</h1> | 42 | + <h1 style="font-size:35px">Calendar List</h1> |
43 | <p> | 43 | <p> |
44 | <form action="/events" method="POST"> | 44 | <form action="/events" method="POST"> |
45 | <input type=hidden name="googleToken" value=<%= googleToken %>> | 45 | <input type=hidden name="googleToken" value=<%= googleToken %>> | ... | ... |
... | @@ -208,7 +208,7 @@ form .question input[type="text"]:valid ~ label { | ... | @@ -208,7 +208,7 @@ form .question input[type="text"]:valid ~ label { |
208 | <form action="/events/remove" method="POST"> | 208 | <form action="/events/remove" method="POST"> |
209 | <p style="font-size:17px">일정</p> | 209 | <p style="font-size:17px">일정</p> |
210 | <p>summary : <%= val.summary %></p> | 210 | <p>summary : <%= val.summary %></p> |
211 | - <p>created : <%= val.created %></p> | 211 | + <p>description : <%= val.description %></p> |
212 | <p>start : <%= val.start.dateTime %></p> | 212 | <p>start : <%= val.start.dateTime %></p> |
213 | <p>end : <%= val.end.dateTime %></p> | 213 | <p>end : <%= val.end.dateTime %></p> |
214 | <input type="hidden" name="eId" value=<%= val.id %>> | 214 | <input type="hidden" name="eId" value=<%= val.id %>> | ... | ... |
발표자료/Reminder-Talk 발표자료.pptx
0 → 100644
No preview for this file type
발표자료/데모영상.mp4
0 → 100644
No preview for this file type
-
Please register or login to post a comment