Commit Graph

11 Commits

Author SHA1 Message Date
Laurent David
fc72a1d7b1 MDL-75337 core: Single button - core changes
* Change all core calls toward single_button to use single_button::BUTTON_PRIMARY
    when needed
2023-01-24 06:01:35 +01:00
Sujith Haridasan
0845f53d14 MDL-67975 nextcloud: Add support for Link to file
This change set would bring the following new additions
to the nextcloud repo:
1. Create a new radio button in filepicker: "Link to file"
2. When user clicks this radio button a warning message
   would be created, saying this file would become public.
   Meaning a public link is created in the nextcloud server.
3. Created a sync_reference method to sync the files downloaded
   from nextcloud server. The sync/refresh time given is 1 day/24 hours.
4. Made sure that when the file is downloaded, we use the file
   from moodledata file pool.

Signed-off-by: Sujith Haridasan <sujith@moodle.com>
2021-06-09 13:34:31 +05:30
Jake Dallimore
255a910c92 MDL-59510 core_oauth2: autorefresh google drive, nextcloud and onedrive
Request additional offline access, allowing the repository to sign in
automatically each time, including across different user sessions, until
either the refresh token is invalidated or the user logs out of the
repository.
2020-10-05 09:19:29 +08:00
Jan Dageförde
47da79bae9 MDL-64243 nextcloud: Add support for offline download for Moodle Mobile 2019-03-06 16:32:24 +01:00
Jun Pataleta
98fada12c4 Merge branch 'MDL-64228-master' of git://github.com/jleyva/moodle 2018-11-29 20:51:52 +08:00
Juan Leyva
676545bc66 MDL-64228 nextcloud: Handle the offline parameter in send_file
This will neew a follow-up issue.
This patch is just preventing downloading the HTML popup code when a file is not found.
Ideally, we should be able to serve the original file using the system OAuth.
2018-11-28 10:21:27 +01:00
Damyon Wiese
da868a1e32 MDL-64227 nextcloud: Small layout for login links
When we need to show a login link, we don't want the normal page layout because we are in an iframe
already. Use the embedded layout to reduce the clutter of the page.
2018-11-28 12:51:31 +08:00
Eloy Lafuente (stronk7)
ef9073bb66 NOBUG: Fixed file access permissions 2018-11-02 21:08:46 +01:00
Damyon Wiese
e8da9f7fdf MDL-58943 repository_nextcloud: Remove return types
FILE_EXTERNAL and FILE_REFERENCE are not supported at this time.

Minor php coding style changes.
2018-10-31 14:38:28 +08:00
Jan Dageförde
4354a4286a MDL-58943 nextcloud: translatable exception messages 2018-10-31 10:42:58 +08:00
Nina Herrmann
b4e24a82db MDL-58943 repository: Add repository_nextcloud
Based on repository_owncloud from
https://github.com/learnweb/moodle-repository_owncloud at 5b5fdbb.
Differences to the original:

* Renamed to repository_nextcloud
* Updated version.php for core
* Removed compatibility polyfills (webdav, privacy)
* Removed boilerplate files (e.g. README, CI config)
* Implement null_provider for privacy API as personal data is neither
  stored nor transmitted to the external system
2018-10-31 10:42:57 +08:00