-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* AppManifest registratet and linked * basic pwa service worker via vite-pwa-plugin * ldap using in prod mode * registering manifest.json for production mode saved, added app icons - state: chrome recognizing app as instalable * semi-fixed auth problematic in offline mode * changed some default strategy and added strategy for fonts and backend * putting data in indexeddb is working, stll commented Code for cache and data that is not working yet * alomst working offline - some routes left * changed manifest path to relative one * offline working without admin routes and post events - putting everything into cache * basic functionality of offline banner * deactivated one button if offline * binding to root.isonline * variablie is Offline * boolean isOffline and Component offline Banner * working data binding and event listening with navigator.onLine * removed a console log, aded binding to travel edit and delete button * manifest einbindung neu * added deactivatio of buttons * load method sets isOffline again * changed font caching strategy to network first * NetworkFirst for font - but makes problems * added some comments * offline working with indexedDB * indexeddb offline - not working on mobile browsers * back to cache use for backend routes * changed Dev container build process - no vite anymore but nodemon for file changes * sw using indexed db * InstallationHinweis -logik but not pretty done * locales added * moved boolean to Installation Komponent fixed some conditions * NetworkFirst for font - but makes problems * added some comments * offline working with indexedDB * back to cache use for backend routes * sw using indexed db * little sw changes * beginning of push notification implementation - working in chrome partly * using mongo express also in prod mode * added push object with subscription to user type and model + route to update user subscriptions * push otification uses subscriptions of user to send notification additionally to mail * pushNotification subscription moved to load() - use it after user logged in * make public vapid key aviable in Frontend * NetworkFirst for font - but makes problems * added some comments * offline working with indexedDB * back to cache use for backend routes * sw using indexed db * beginning of push notification implementation - working in chrome partly * removed push subscription from main.ts * removed mistake from mail.ts * InstallationHinweis -logik but not pretty done * moved boolean to Installation Komponent fixed some conditions * NetworkFirst for font - but makes problems * added some comments * offline working with indexedDB * back to cache use for backend routes * sw using indexed db * moved push subscription to function and added button for permission triggering. - button ; cleared main.ts - fixed datat load and store as well as clearing db on logout * working push per subscription in session so far * moved subscription to sessions * moved Installationbanner to App.vue - moved mobile and alreadyInstalled boolean to root and moved "show installation Instructions" Banner to Dropdown Menu * removed events from eventListeners * finally changed bg color in manifest.json * events wait until added * diverses managing of push but now recieving push messages dont work anymore * zwischen commit bei dem nichts geht * little changes - push working again * moved push Logik into push service js * removed pushBanner - not needed * push including url for notification click event * removed PushBanner * moved -load and store details for Reports aut of loading Promise for Faster view * Installationbanner for different Browsers filled with process infos * little changes * added some locales * service worker registration in own file + eventlistener for Update - Notification for user to reload Page * removed useless config * removed async from data saving to indexed * few changes, code cleaning * removed console logs * removed some comments * few order switches * moved promptInstall Eventlistener to App to catch the events on loading * examiner fecth inside the if (hasData) * Load pdf button invisible if offline * improvemtns on push type * cleaned code a bit * another manifest icon size added * some changes to clean code and remove functions from app.vue to helper.ts * added vapid in env.example , and removed comments vrom App * reload automatically +manifest removed from cache * added default installation instructions and renamed icons folder to appicons * little changes on push /subscribe call and removed cot needed code from Instalation.vue * added comments and reduced nesting * little change on comment * fixed mail.ts and sendPushnotification calling * some typos fixed in locales * fixed maximum File Size for precached Files * fixed error vapid is not https, starting to fix session and subscription problem * changed error log for no https in push.ts * make it work in dev mode * refinements * clean up push notifications * add allowedHosts * optimize push notifications * clean up * style banner * fix error for missing env var --------- Co-authored-by: Sarah <[email protected]> Co-authored-by: david-loe <[email protected]>
- Loading branch information
1 parent
bb83042
commit e64715b
Showing
41 changed files
with
8,163 additions
and
3,133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import 'express-session' | ||
import type { Types } from 'mongoose' | ||
import { PushSubscription } from 'web-push' | ||
|
||
declare module 'express-session' { | ||
interface SessionData { | ||
subscription?: PushSubscription | ||
passport: { | ||
user: { | ||
_id: Types.ObjectId | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.