stable

Clone or download

Read-only

feat: autocompleter for project to allow

Go to site admin ยป ONLYOFFICE Have a server that is restricted (you may have to hack the database). You should be able to search for a project to be allowed. The project cannot be added yet, the corresponding button is disabled for now. Allowing a project for a server is intertwined with its existing presence in other servers (a project cannot be allowed for more than one server). In order to anticipate this exclusion (and the fact that project autocompleter developer experience is poor), the frontend is now a Vue3 app to have fine control of various components. No functional changes in displaying/adding/editing/removing servers. Part of story #29981: restrict an OnlyOffice server to some projects only Change-Id: I6c8bd50f2e9a1f75707b9fd2c012fefdb281b0d8

Modified Files

Name
M .eslintrc.js +1 โˆ’0 Go to diff View file
A plugins/onlyoffice/build-manifest.json +9 โˆ’0 Go to diff View file
M plugins/onlyoffice/include/Administration/OnlyOfficeAdminSettingsController.php +4 โˆ’2 Go to diff View file
M plugins/onlyoffice/include/Administration/OnlyOfficeAdminSettingsPresenter.php +1 โˆ’6 Go to diff View file
M plugins/onlyoffice/include/Open/OnlyOfficeEditorController.php +1 โˆ’1 Go to diff View file
M plugins/onlyoffice/include/onlyofficePlugin.php +9 โˆ’6 Go to diff View file
D plugins/onlyoffice/pnpm-lock.yaml +0 โˆ’11 Go to diff View file
R plugins/onlyoffice/package.json Go to diff View file
A plugins/onlyoffice/scripts/open-in-onlyoffice/pnpm-lock.yaml +7 โˆ’0 Go to diff View file
R plugins/onlyoffice/scripts/onlyoffice-editor.ts Go to diff View file
R plugins/onlyoffice/scripts/open-in-onlyoffice.ts Go to diff View file
R plugins/onlyoffice/scripts/style.scss Go to diff View file
R plugins/onlyoffice/tsconfig.json Go to diff View file
R plugins/onlyoffice/vite.config.ts Go to diff View file
A plugins/onlyoffice/scripts/siteadmin/package.json +27 โˆ’0 Go to diff View file
A plugins/onlyoffice/scripts/siteadmin/pnpm-lock.yaml +543 โˆ’0 Go to diff View file
A plugins/onlyoffice/scripts/siteadmin/po/fr_FR.po +110 โˆ’0 Go to diff View file
A plugins/onlyoffice/scripts/siteadmin/src/components/CsrfToken.vue +34 โˆ’0 Go to diff View file
A plugins/onlyoffice/scripts/siteadmin/src/components/Servers/AddServerButton.vue +39 โˆ’0 Go to diff View file
A plugins/onlyoffice/scripts/siteadmin/src/components/Servers/AddServerModal.vue +123 โˆ’0 Go to diff View file
A plugins/onlyoffice/scripts/siteadmin/src/components/Servers/DeleteServerButton.vue +36 โˆ’0 Go to diff View file
A plugins/onlyoffice/scripts/siteadmin/src/components/Servers/DeleteServerModal.vue +110 โˆ’0 Go to diff View file
A plugins/onlyoffice/scripts/siteadmin/src/components/Servers/EditServerButton.vue +36 โˆ’0 Go to diff View file
A plugins/onlyoffice/scripts/siteadmin/src/components/Servers/EditServerModal.vue +137 โˆ’0 Go to diff View file
A plugins/onlyoffice/scripts/siteadmin/src/components/Servers/Restrict/AllowAllProjectsCheckbox.vue +41 โˆ’0 Go to diff View file
A plugins/onlyoffice/scripts/siteadmin/src/components/Servers/Restrict/AllowedProjectsTable.vue +81 โˆ’0 Go to diff View file
A plugins/onlyoffice/scripts/siteadmin/src/components/Servers/Restrict/ProjectAutocompleter.vue +42 โˆ’0 Go to diff View file
A plugins/onlyoffice/scripts/siteadmin/src/components/Servers/RestrictServerButton.vue +36 โˆ’0 Go to diff View file
A plugins/onlyoffice/scripts/siteadmin/src/components/Servers/RestrictServerModal.vue +100 โˆ’0 Go to diff View file
A plugins/onlyoffice/scripts/siteadmin/src/components/Servers/ServerRow.vue +68 โˆ’0 Go to diff View file
A plugins/onlyoffice/scripts/siteadmin/src/components/Servers/ServersEmptyState.vue +29 โˆ’0 Go to diff View file
A plugins/onlyoffice/scripts/siteadmin/src/components/ServersApp.vue +70 โˆ’0 Go to diff View file
A plugins/onlyoffice/scripts/siteadmin/src/helpers/emitter.ts +30 โˆ’0 Go to diff View file
A plugins/onlyoffice/scripts/siteadmin/src/helpers/strict-inject.test.ts +65 โˆ’0 Go to diff View file
A plugins/onlyoffice/scripts/siteadmin/src/helpers/strict-inject.ts +33 โˆ’0 Go to diff View file
R plugins/onlyoffice/scripts/onlyoffice-siteadmin.ts Go to diff View file
A plugins/onlyoffice/scripts/siteadmin/src/onlyoffice-siteadmin.ts +41 โˆ’0 Go to diff View file
A plugins/onlyoffice/scripts/siteadmin/src/type.ts +46 โˆ’0 Go to diff View file
A plugins/onlyoffice/scripts/siteadmin/tsconfig.json +10 โˆ’0 Go to diff View file
A plugins/onlyoffice/scripts/siteadmin/vite.config.ts +41 โˆ’0 Go to diff View file
M plugins/onlyoffice/site-content/fr_FR/LC_MESSAGES/tuleap-onlyoffice.po +0 โˆ’82 Go to diff View file
M plugins/onlyoffice/site-content/pr_BR/LC_MESSAGES/tuleap-onlyoffice.po +0 โˆ’79 Go to diff View file
M plugins/onlyoffice/templates/site-admin.mustache +3 โˆ’284 Go to diff View file
M src/common/include/CSRFSynchronizerTokenPresenter.php +1 โˆ’10 Go to diff View file