Skip to content

Commit 4d9937f

Browse files
committed
refactor: split appstore from settings
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 1047d52 commit 4d9937f

100 files changed

Lines changed: 3543 additions & 318 deletions

File tree

Some content is hidden

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

.gitignore

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,17 @@ node_modules/
1717

1818
# ignore all apps except core ones
1919
/apps*/*
20+
!/apps/admin_audit
21+
!/apps/appstore
2022
!/apps/cloud_federation_api
2123
!/apps/comments
2224
!/apps/contactsinteraction
2325
!/apps/dashboard
2426
!/apps/dav
25-
!/apps/files
27+
!/apps/encryption
2628
!/apps/federation
2729
!/apps/federatedfilesharing
28-
!/apps/sharebymail
29-
!/apps/encryption
30+
!/apps/files
3031
!/apps/files_external
3132
!/apps/files_reminders
3233
!/apps/files_sharing
@@ -38,9 +39,9 @@ node_modules/
3839
!/apps/profile
3940
!/apps/provisioning_api
4041
!/apps/settings
42+
!/apps/sharebymail
4143
!/apps/systemtags
4244
!/apps/testing
43-
!/apps/admin_audit
4445
!/apps/updatenotification
4546
!/apps/theming
4647
!/apps/twofactor_backupcodes

.tx/config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ source_file = translationfiles/templates/admin_audit.pot
88
source_lang = en
99
type = PO
1010

11+
[o:nextcloud:p:nextcloud:r:appstore]
12+
file_filter = translationfiles/<lang>/appstore.po
13+
source_file = translationfiles/templates/appstore.pot
14+
source_lang = en
15+
type = PO
16+
1117
[o:nextcloud:p:nextcloud:r:cloud_federation_api]
1218
file_filter = translationfiles/<lang>/cloud_federation_api.po
1319
source_file = translationfiles/templates/cloud_federation_api.pot

apps/appstore/appinfo/info.xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
- SPDX-FileCopyrightText: 2025 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="../../../resources/app-info-shipped.xsd">
8+
<id>appstore</id>
9+
<name>Nextcloud Appstore</name>
10+
<summary>Nextcloud Appstore</summary>
11+
<description>Nextcloud Appstore</description>
12+
<version>1.0.0</version>
13+
<licence>agpl</licence>
14+
<author>Nextcloud</author>
15+
<namespace>Appstore</namespace>
16+
17+
<category>customization</category>
18+
<bugs>https://github.com/nextcloud/server/issues</bugs>
19+
<dependencies>
20+
<nextcloud min-version="34" max-version="34"/>
21+
</dependencies>
22+
</info>

apps/appstore/appinfo/routes.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/**
6+
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
7+
* SPDX-License-Identifier: AGPL-3.0-or-later
8+
*/
9+
return [
10+
'routes' => [
11+
['name' => 'AppSettings#getAppDiscoverJSON', 'url' => '/settings/api/apps/discover', 'verb' => 'GET', 'root' => ''],
12+
['name' => 'AppSettings#getAppDiscoverMedia', 'url' => '/settings/api/apps/media', 'verb' => 'GET', 'root' => ''],
13+
['name' => 'AppSettings#listCategories', 'url' => '/settings/apps/categories', 'verb' => 'GET' , 'root' => ''],
14+
['name' => 'AppSettings#viewApps', 'url' => '/settings/apps', 'verb' => 'GET' , 'root' => ''],
15+
['name' => 'AppSettings#listApps', 'url' => '/settings/apps/list', 'verb' => 'GET' , 'root' => ''],
16+
['name' => 'AppSettings#enableApp', 'url' => '/settings/apps/enable/{appId}', 'verb' => 'GET' , 'root' => ''],
17+
['name' => 'AppSettings#enableApp', 'url' => '/settings/apps/enable/{appId}', 'verb' => 'POST' , 'root' => ''],
18+
['name' => 'AppSettings#enableApps', 'url' => '/settings/apps/enable', 'verb' => 'POST' , 'root' => ''],
19+
['name' => 'AppSettings#disableApp', 'url' => '/settings/apps/disable/{appId}', 'verb' => 'GET' , 'root' => ''],
20+
['name' => 'AppSettings#disableApps', 'url' => '/settings/apps/disable', 'verb' => 'POST' , 'root' => ''],
21+
['name' => 'AppSettings#updateApp', 'url' => '/settings/apps/update/{appId}', 'verb' => 'GET' , 'root' => ''],
22+
['name' => 'AppSettings#uninstallApp', 'url' => '/settings/apps/uninstall/{appId}', 'verb' => 'GET' , 'root' => ''],
23+
['name' => 'AppSettings#viewApps', 'url' => '/settings/apps/{category}', 'verb' => 'GET', 'defaults' => ['category' => ''] , 'root' => ''],
24+
['name' => 'AppSettings#viewApps', 'url' => '/settings/apps/{category}/{id}', 'verb' => 'GET', 'defaults' => ['category' => '', 'id' => ''] , 'root' => ''],
25+
['name' => 'AppSettings#force', 'url' => '/settings/apps/force', 'verb' => 'POST' , 'root' => ''],
26+
],
27+
];
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
throw new RuntimeException($err);
18+
}
19+
20+
require_once __DIR__ . '/composer/autoload_real.php';
21+
22+
return ComposerAutoloaderInitAppstore::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": "Appstore"
7+
},
8+
"autoload" : {
9+
"psr-4": {
10+
"OCA\\Appstore\\": "../lib/"
11+
}
12+
}
13+
}

apps/appstore/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)