Skip to content

Commit b15fdfd

Browse files
committed
chore(profile): move profile app from core to apps
Signed-off-by: skjnldsv <[email protected]>
1 parent dfa7e7e commit b15fdfd

35 files changed

+1222
-37
lines changed

.gitignore

+1
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

+6
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

+1-1
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/appinfo/info.xml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
- SPDX-FileCopyrightText: 2018-2024 Nextcloud GmbH and Nextcloud contributors
4+
- SPDX-License-Identifier: AGPL-3.0-only
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>Chris Ng</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

+25
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();

apps/profile/composer/composer.json

+13
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

+18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)