Skip to content

Commit 9576624

Browse files
Merge pull request #49244 from nextcloud/feat/profile-app
2 parents e91b78d + 0f52c2c commit 9576624

File tree

62 files changed

+1268
-68
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+1268
-68
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
!/apps/lookup_server_connector
3636
!/apps/user_ldap
3737
!/apps/oauth2
38+
!/apps/profile
3839
!/apps/provisioning_api
3940
!/apps/settings
4041
!/apps/systemtags

.tx/config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,12 @@ source_file = translationfiles/templates/oauth2.pot
116116
source_lang = en
117117
type = PO
118118

119+
[o:nextcloud:p:nextcloud:r:profile]
120+
file_filter = translationfiles/<lang>/profile.po
121+
source_file = translationfiles/templates/profile.pot
122+
source_lang = en
123+
type = PO
124+
119125
[o:nextcloud:p:nextcloud:r:provisioning_api]
120126
file_filter = translationfiles/<lang>/provisioning_api.po
121127
source_file = translationfiles/templates/provisioning_api.pot

apps/dav/lib/CardDAV/Converter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function createCardFromUser(IUser $user): ?VCard {
7676
new Text(
7777
$vCard,
7878
'X-SOCIALPROFILE',
79-
$this->urlGenerator->linkToRouteAbsolute('core.ProfilePage.index', ['targetUserId' => $user->getUID()]),
79+
$this->urlGenerator->linkToRouteAbsolute('profile.ProfilePage.index', ['targetUserId' => $user->getUID()]),
8080
[
8181
'TYPE' => 'NEXTCLOUD',
8282
'X-NC-SCOPE' => IAccountManager::SCOPE_PUBLISHED

apps/profile/.noopenapi

Whitespace-only changes.

apps/profile/appinfo/info.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
- SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
4+
- SPDX-License-Identifier: AGPL-3.0-or-later
5+
-->
6+
<info xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
7+
xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
8+
<id>profile</id>
9+
<name>Profile</name>
10+
<summary>This application provides the profile</summary>
11+
<description>Provides a customisable user profile interface.</description>
12+
<version>1.0.0</version>
13+
<licence>agpl</licence>
14+
<author>Nextcloud GmbH</author>
15+
<namespace>Profile</namespace>
16+
<category>social</category>
17+
<bugs>https://github.com/nextcloud/server/issues</bugs>
18+
<dependencies>
19+
<nextcloud min-version="31" max-version="31"/>
20+
</dependencies>
21+
</info>

apps/profile/composer/autoload.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
// autoload.php @generated by Composer
4+
5+
if (PHP_VERSION_ID < 50600) {
6+
if (!headers_sent()) {
7+
header('HTTP/1.1 500 Internal Server Error');
8+
}
9+
$err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
10+
if (!ini_get('display_errors')) {
11+
if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
12+
fwrite(STDERR, $err);
13+
} elseif (!headers_sent()) {
14+
echo $err;
15+
}
16+
}
17+
trigger_error(
18+
$err,
19+
E_USER_ERROR
20+
);
21+
}
22+
23+
require_once __DIR__ . '/composer/autoload_real.php';
24+
25+
return ComposerAutoloaderInitProfile::getLoader();
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"config" : {
3+
"vendor-dir": ".",
4+
"optimize-autoloader": true,
5+
"classmap-authoritative": true,
6+
"autoloader-suffix": "Profile"
7+
},
8+
"autoload" : {
9+
"psr-4": {
10+
"OCA\\Profile\\": "../lib/"
11+
}
12+
}
13+
}

apps/profile/composer/composer.lock

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)