-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12168 from nextcloud/enh/dev-31-files-sharing
feat(developer): Add initial changes for Nextcloud 31
- Loading branch information
Showing
3 changed files
with
99 additions
and
1 deletion.
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
86 changes: 86 additions & 0 deletions
86
developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_31.rst
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,86 @@ | ||
======================= | ||
Upgrade to Nextcloud 31 | ||
======================= | ||
|
||
General | ||
------- | ||
|
||
- TBD | ||
|
||
Front-end changes | ||
----------------- | ||
|
||
Logical position CSS rules | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
With Nextcloud 31 all server provided styles are migrated to use `logical positioning <https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_logical_properties_and_values>`_ | ||
instead of physical, this allows the front-end layout to adjust to different language directions (right-to-left). | ||
App developers are strongly encouraged to migrate their apps to logical positioning too. | ||
|
||
Examples for logical vs physical positioning: | ||
|
||
- ``margin-inline-start: 4px;`` instead of ``margin-left: 4px;`` | ||
- ``inset-inline-end: 8px;`` instead of ``right: 8px`` | ||
|
||
Files and Files sharing | ||
^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
With Nextcloud 28 the Files app front-end was migrated to Vue and the private API ( ``OCA.Files`` ) was removed, | ||
but for public shares the legacy frontend-end was still used. With Nextcloud 31 public shares also use the new Vue front-end. | ||
This means accessing the legacy private API in ``OCA.Files`` is no longer possible, all existing apps should migrate to the :ref:`public API<js-library_nextcloud-files>`. | ||
|
||
To make migration easier utility functions are provided in the ``@nextcloud/sharing`` :ref:`package<js-library_nextcloud-sharing>` | ||
to check whether the current Files app instance is a public share or not, and if so to fetch the share token. | ||
|
||
.. code-block:: JavaScript | ||
import { isPublicShare, getSharingToken } from '@nextcloud/sharing/public' | ||
if (isPublicShare()) { | ||
console.info('This is a public share with the sharing token: ', getSharingToken()) | ||
} | ||
Added APIs | ||
^^^^^^^^^^ | ||
|
||
- TBD | ||
|
||
Changed APIs | ||
^^^^^^^^^^^^ | ||
|
||
- TBD | ||
|
||
Deprecated APIs | ||
^^^^^^^^^^^^^^^ | ||
|
||
- TBD | ||
|
||
Removed APIs | ||
^^^^^^^^^^^^ | ||
|
||
- ``OCA.FilesSharingDrop`` removed as part of the Vue migration. Use the Files app API provided by the :ref:`package<js-library_nextcloud-files>` . | ||
|
||
|
||
Back-end changes | ||
---------------- | ||
|
||
Added APIs | ||
^^^^^^^^^^ | ||
|
||
- TBD | ||
|
||
Changed APIs | ||
^^^^^^^^^^^^ | ||
|
||
- TBD | ||
|
||
Deprecated APIs | ||
^^^^^^^^^^^^^^^ | ||
|
||
- TBD | ||
|
||
Removed APIs | ||
^^^^^^^^^^^^ | ||
|
||
- TBD |
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