mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-13 18:45:43 +05:00
Migrate OO docs from 7.3 to 8.3
This commit is contained in:
parent
6c29fe9ac2
commit
407df843ec
@ -23,7 +23,7 @@ main() {
|
||||
|
||||
ask_for_license
|
||||
|
||||
# Remeber the 1st version that is installed. This will help us install only
|
||||
# Remember the 1st version that is installed. This will help us install only
|
||||
# needed OnlyOffice versions in a later version of this script.
|
||||
set_prop oldest_needed_version v1
|
||||
|
||||
@ -33,7 +33,8 @@ main() {
|
||||
install_old_version v4 6ebc6938
|
||||
install_old_version v5 88a356f0
|
||||
install_old_version v6 abd8a309
|
||||
install_version v7 v8.3.0.82+10 1734b1e46cad5e3e8af0bdbae08989c66bb717c2df0c06a6cfc962162cdeafdc4c1d6afb77a435e8e665fce2a6703e4d354cb8d15e575d8939df5e4be67fd4fc
|
||||
install_version v7 v7.3.3.60+9 315eaf6705bf350a5c4475d3efcd6d3964d28b2237e0b6bc475ac6e71ecc0dae4e565141d39b79fccc35308b559497fca5c4a39f69ac290c117a57290b942d8b
|
||||
install_version v8 v8.3.0.82+10 1734b1e46cad5e3e8af0bdbae08989c66bb717c2df0c06a6cfc962162cdeafdc4c1d6afb77a435e8e665fce2a6703e4d354cb8d15e575d8939df5e4be67fd4fc
|
||||
install_x2t v7.3+1 ab0c05b0e4c81071acea83f0c6a8e75f5870c360ec4abc4af09105dd9b52264af9711ec0b7020e87095193ac9b6e20305e446f2321a541f743626a598e5318c1
|
||||
|
||||
rm -rf "$BUILDS_DIR"
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
define(() => {
|
||||
const version = 7;
|
||||
const version = 8;
|
||||
return {
|
||||
currentVersionNumber: version,
|
||||
currentVersion: 'v' + version
|
||||
|
||||
@ -3010,8 +3010,23 @@ Uncaught TypeError: Cannot read property 'calculatedType' of null
|
||||
}
|
||||
readOnly = true;
|
||||
}
|
||||
} else if (content && content.version <= 7) {
|
||||
version = 'v7/';
|
||||
APP.migrate = true;
|
||||
// Registedred ~~users~~ editors can start the migration
|
||||
if (common.isLoggedIn() && !readOnly) {
|
||||
content.migration = true;
|
||||
APP.onLocal();
|
||||
} else {
|
||||
msg = h('div.alert.alert-warning.cp-burn-after-reading', Messages.oo_sheetMigration_anonymousEditor);
|
||||
if (APP.helpMenu) {
|
||||
$(APP.helpMenu.menu).after(msg);
|
||||
} else {
|
||||
$('#cp-app-oo-editor').prepend(msg);
|
||||
}
|
||||
readOnly = true;
|
||||
}
|
||||
}
|
||||
// NOTE: don't forget to also update the version in 'EV_OOIFRAME_REFRESH'
|
||||
|
||||
// If the sheet is locked by an offline user, remove it
|
||||
if (content && content.saveLock && !isUserOnline(content.saveLock)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user