Commit Graph

18 Commits

Author SHA1 Message Date
PrestonN 36dfb7849d Refactor video download logic 2022-02-01 22:11:38 -05:00
constraintAutomaton 609996d175
In app download (#1971)
* src/renderer/store/modules/utils.js, src/renderer/components/watch-video-info/watch-video-info.vue, src/renderer/components/watch-video-info/watch-video-info.js, src/renderer/components/ft-icon-button/ft-icon-button.js, src/main/index.js

in-app download in hardcoded path

* download into variable folder supported

download can be done into a specify folder defined in the  settings or can be done by choosing a folder just before the downloading

* src/renderer/store/modules/utils.js: folder is asked before downloading when appropriate

* src/renderer/store/modules/utils.js: toast added for success and faillure

* src/renderer/store/modules/utils.js: mecanism to show download progress

* src/renderer/store/modules/utils.js: percentage symbol added to toast message when displaying progress

* src/renderer/components/download-settings/download-settings.js: clarification comment about electron

* src/renderer/store/modules/utils.js: typo in comment resolved

* src/renderer/store/modules/utils.js: show a toast when there is a file error

* static/locales/fr-FR.yaml: resolved typo in Choose Path

* src/renderer/store/modules/utils.js: download progress notification toast deleted

* corrections of typos, changes in toast messages, toast messages translatable by modifying the ft-toast component to allow translatable strings

* cleaner code for translatable toast

* downloadMedia argument changed from array to object

* src/renderer/components/download-settings/download-settings.sass: trailling space added

* Apply suggestions from code review

folder changed for folderPath

Co-authored-by: PikachuEXE <pikachuexe@gmail.com>

* fix forgotten folderPath renaming

* extra space deleted

* starting toast displayed after download folder asks

* audio button deleted

* experimental electron web library deleted because can cause performance issues

* placeholder for web support

* made better condition for web and electon compatibility and small variable renaming

* better error message when user cancel the download

* falling back to asking the user if the download repository doesn't exist

* falling back mode implemented

* console.log for debugging deleted

* useless import deleted

* small renaming

Co-authored-by: PikachuEXE <pikachuexe@gmail.com>
2022-01-30 12:49:16 -05:00
Preston b2363bb6dd Allow hidden toast messages to be clicked through 2020-12-01 11:02:52 -05:00
Preston 8077d9d999 Update dependencies and fix linting problems 2020-10-04 14:30:54 -04:00
Preston 998f5c2688 Add a few toast messages 2020-08-04 23:44:34 -04:00
Preston 4e92b378da Check for and remove all trailing commas 2020-08-04 22:18:39 -04:00
kylejwatson 56e13c79ca Splice fix 2020-08-02 15:52:48 +01:00
kylejwatson bfadb57694 Reverted default delay 2020-08-02 12:34:51 +01:00
kylejwatson 8c510b7c3c Simplified closing and replacement functionality 2020-08-02 12:28:10 +01:00
kylejwatson a26690b5be Fix linting,
Make toasts fit content rather than having the same width
2020-07-04 16:54:49 +01:00
kylejwatson 0b988e72b9 Change syntax to a utils action 2020-07-04 16:44:35 +01:00
kylejwatson cc101fd119 Removed queue,
destroy elements once all toasts are hidden
2020-07-04 16:13:47 +01:00
kyle.watson 48deb375cb Linted 2020-06-27 16:27:03 +01:00
kyle.watson 38644a76e3 Pass toast object rather than index,
styled correctly
2020-06-27 16:06:42 +01:00
kyle.watson 4cbb445301 Added 5 toast max shown 2020-06-27 11:41:34 +01:00
kyle.watson 1c1257f3db Fixed some styling 2020-06-15 20:26:35 +01:00
kyle.watson 23488369d2 Added event queue,
Added example to share buttons
2020-06-15 20:08:42 +01:00
kyle.watson cb1be0007b Added toast component 2020-06-14 22:13:35 +01:00