mirror of
https://github.com/nextcloud/server.git
synced 2026-10-31 18:15:57 +01:00
The login, login flow, password protected share, unsupported browser, updater, installer and recommended apps pages are built by the Vue 3 toolchain from here on. Core moves over in steps, so which of its parts belong to which toolchain is listed once in `build/core-vue3.mjs`, and both the linters and the unit test runners pick their share from there. Vite extracts the component styles instead of injecting them from the script, so every place that loads one of these scripts now also loads the stylesheet of the same name. The dependencies of these pages that were only declared for the legacy build are added to the root package. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de> Assisted-by: ClaudeCode:claude-opus-5-5
44 lines
1.2 KiB
PHP
44 lines
1.2 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
namespace OC\Core\Controller;
|
|
|
|
use OCP\AppFramework\Controller;
|
|
use OCP\AppFramework\Http\Attribute\FrontpageRoute;
|
|
use OCP\AppFramework\Http\Attribute\NoCSRFRequired;
|
|
use OCP\AppFramework\Http\Attribute\OpenAPI;
|
|
use OCP\AppFramework\Http\Attribute\PublicPage;
|
|
use OCP\AppFramework\Http\Response;
|
|
use OCP\AppFramework\Http\TemplateResponse;
|
|
use OCP\IRequest;
|
|
use OCP\Util;
|
|
|
|
#[OpenAPI(scope: OpenAPI::SCOPE_IGNORE)]
|
|
class UnsupportedBrowserController extends Controller {
|
|
public function __construct(IRequest $request) {
|
|
parent::__construct('core', $request);
|
|
}
|
|
|
|
/**
|
|
* @return Response
|
|
*/
|
|
#[PublicPage]
|
|
#[NoCSRFRequired]
|
|
#[FrontpageRoute(verb: 'GET', url: 'unsupported')]
|
|
public function index(): Response {
|
|
Util::addTranslations('core');
|
|
Util::addScript('core', 'unsupported-browser');
|
|
Util::addStyle('core', 'unsupported-browser');
|
|
Util::addStyle('core', 'icons');
|
|
|
|
// not using RENDER_AS_ERROR as we need the JSConfigHelper for url generation
|
|
return new TemplateResponse('core', 'unsupportedbrowser', [], TemplateResponse::RENDER_AS_GUEST);
|
|
}
|
|
}
|