File tree Expand file tree Collapse file tree 5 files changed +190
-326
lines changed
Expand file tree Collapse file tree 5 files changed +190
-326
lines changed Original file line number Diff line number Diff line change 2929
3030use OC \Profile \ProfileManager ;
3131use OCP \AppFramework \Controller ;
32- use OCP \AppFramework \Http \Attribute \IgnoreOpenAPI ;
32+ use OCP \AppFramework \Http \Attribute \OpenAPI ;
3333use OCP \AppFramework \Http \TemplateResponse ;
3434use OCP \AppFramework \Services \IInitialState ;
3535use OCP \EventDispatcher \IEventDispatcher ;
4242use OCP \Share \IManager as IShareManager ;
4343use OCP \UserStatus \IManager as IUserStatusManager ;
4444
45- #[IgnoreOpenAPI ]
45+ #[OpenAPI(scope: OpenAPI:: SCOPE_IGNORE ) ]
4646class ProfilePageController extends Controller {
4747 public function __construct (
4848 string $ appName ,
Original file line number Diff line number Diff line change 2020 *
2121 */
2222
23- import Vue from 'vue'
2423import { getRequestToken } from '@nextcloud/auth'
25- import { translate as t } from '@nextcloud/l10n'
26- import VTooltip from 'v-tooltip'
27-
28- import logger from './logger.js'
24+ import Vue from 'vue'
2925
3026import Profile from './views/Profile.vue'
3127import ProfileSections from './profile/ProfileSections.js'
3228
33- __webpack_nonce__ = btoa ( getRequestToken ( ) )
29+ // @ts -expect-error Script nonce required for webpack loading additional scripts
30+ __webpack_nonce__ = btoa ( getRequestToken ( ) ?? '' )
3431
3532if ( ! window . OCA ) {
3633 window . OCA = { }
@@ -41,19 +38,8 @@ if (!window.OCA.Core) {
4138}
4239Object . assign ( window . OCA . Core , { ProfileSections : new ProfileSections ( ) } )
4340
44- Vue . use ( VTooltip )
45-
46- Vue . mixin ( {
47- props : {
48- logger,
49- } ,
50- methods : {
51- t,
52- } ,
53- } )
54-
5541const View = Vue . extend ( Profile )
5642
5743window . addEventListener ( 'DOMContentLoaded' , ( ) => {
58- new View ( ) . $mount ( '#vue-profile ' )
44+ new View ( ) . $mount ( '#content ' )
5945} )
You can’t perform that action at this time.
0 commit comments