[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.

Fixed settings files not included in binary

Kasper (Aug 30, 2020, 3:11 AM +0200) d7670b73 143578fa

+8 -35
+5
package.json
··· 12 12 "build": "pkg . --target macos --output dist/youtube-email-notifier && embler", 13 13 "pack": "embler" 14 14 }, 15 + "pkg": { 16 + "assets": [ 17 + "web/**/*" 18 + ] 19 + }, 15 20 "embler": { 16 21 "realName": "YouTube Email Notifier", 17 22 "appId": "space.kasper.youtube-email-notifier",
+3 -35
src/server.js
··· 1 1 const http = require('http') 2 2 const fs = require('fs') 3 + const path = require('path') 3 4 const connect = require('connect') 4 5 const serveStatic = require('serve-static') 5 6 const WebSocket = require('ws') ··· 16 17 const db = new Datastore({ filename: paths.db, autoload: true }) 17 18 18 19 const app = connect() 19 - app.use(serveStatic('src/web')) 20 + app.use(serveStatic(path.join(__dirname, '../web'))) 20 21 app.use(serveStatic(paths.appDataDir)) 21 22 let server 22 23 ··· 28 29 apiKey: '', 29 30 fromEmail: '', 30 31 unreadErrors: false, 31 - instances: [ 32 - { 33 - email: 'test@example.com', 34 - minutesBetweenRefreshes: 60, 35 - channels: [], 36 - }, 37 - { 38 - email: 'test2@example.com', 39 - minutesBetweenRefreshes: 60*5, 40 - channels: [ 41 - { 42 - icon: 'https://yt3.ggpht.com/a/AATXAJwLt5qcWgwpO6Noz11FaNogK45FeQyBy1Lru0vHGQ=s240-c-k-c0xffffffff-no-rj-mo', 43 - id: 'UCJ6td3C9QlPO9O_J5dF4ZzA', 44 - uploadsPlaylistId: 'UUJ6td3C9QlPO9O_J5dF4ZzA', 45 - name: 'Monstercat: Uncaged', 46 - fromTime: 1597870637076, 47 - }, 48 - { 49 - icon: 'https://yt3.ggpht.com/a/AATXAJy3pMToshtoxjKPLHwSCv7ab4UEO0m7wRbly6i8Gw=s240-c-k-c0xffffffff-no-rj-mo', 50 - id: 'UCCvVpbYRgYjMN7mG7qQN0Pg', 51 - uploadsPlaylistId: 'UUCvVpbYRgYjMN7mG7qQN0Pg', 52 - name: 'Bass Nation', 53 - fromTime: 1597870637076, 54 - }, 55 - { 56 - icon: 'https://yt3.ggpht.com/a/AATXAJwvW4WzARWJorw4NG4eNg5gnR3nZ_brzwdHpz_Bvw=s240-c-k-c0xffffffff-no-rj-mo', 57 - id: 'UCcJL2ld6kxy_nuV1u7PVQ0g', 58 - uploadsPlaylistId: 'UUcJL2ld6kxy_nuV1u7PVQ0g', 59 - name: 'DrDisRespect', 60 - fromTime: 1597870637076, 61 - }, 62 - ], 63 - }, 64 - ], 32 + instances: [], 65 33 } 66 34 } 67 35
src/web/index.html web/index.html
src/web/index.js web/index.js
src/web/lib/bulma.min.css web/lib/bulma.min.css
src/web/lib/handlebars.js web/lib/handlebars.js
src/web/lib/jquery.min.js web/lib/jquery.min.js