[READ-ONLY] Mirror of https://github.com/probablykasper/yt-email-notifier. macOS menubar app for YouTube upload notification emails
email menubar notifications tray youtube
0

Configure Feed

Select the types of activity you want to include in your feed.

Ability to specify custom minutesBetweenRefreshes

Kasper (Aug 29, 2020, 2:50 AM +0200) 09a95585 0d199e53

+11 -4
+5 -2
src/server.js
··· 326 326 storeUpdate() 327 327 328 328 } else if (type === 'newEmail') { 329 - data.channels = [] 330 - store.instances.push(data) 329 + store.instances.push({ 330 + email: data.email, 331 + minutesBetweenRefreshes: data.minutesBetweenRefreshes, 332 + channels: [], 333 + }) 331 334 storeUpdate() 332 335 333 336 } else if (type === 'addChannel') {
+5 -2
src/web/index.html
··· 14 14 <div class="modal-background" onclick="$('#new-email-modal').removeClass('is-active')"></div> 15 15 <div class="modal-content box px-6 py-5"> 16 16 <form id='new-email-form'> 17 - <h1 class='is-size-4'><b>New email</b></h1> 18 - <input id='new-email-input' class="input my-5" type="email" placeholder="Email" required> 17 + <h1 class='title is-size-4'><b>New email</b></h1> 18 + <label class='label'>Email</label> 19 + <input id='new-email-input' class="input mb-5" type="email" placeholder="Email" required> 20 + <label class='label'>Minutes between refreshes</label> 21 + <input id='new-email-minutes-input' class="input mb-5" type="number" placeholder="60" required> 19 22 <button type="submit" class="button is-success">Create</button> 20 23 <div class="button" onclick="$('#new-email-modal').removeClass('is-active')">Cancel</div> 21 24 </form>
+1
src/web/index.js
··· 40 40 e.preventDefault() 41 41 window.a('newEmail', { 42 42 email: $('#new-email-input').val(), 43 + minutesBetweenRefreshes: $('#new-email-minutes-input').val() || 60, 43 44 }) 44 45 $('#new-email-modal').removeClass('is-active') 45 46 return false