-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ownCloud] Refactor Application (#51)
* refactor: initial reformat Signed-off-by: Mohammad Mahdi Baghbani Pourvahid <[email protected]> * refactor: controllers Signed-off-by: Mohammad Mahdi Baghbani Pourvahid <[email protected]> * refactor: appinfo Signed-off-by: Mohammad Mahdi Baghbani Pourvahid <[email protected]> * refactor: app & application Signed-off-by: Mohammad Mahdi Baghbani Pourvahid <[email protected]> * refactor: add docs and return types, etc Signed-off-by: Mohammad Mahdi Baghbani Pourvahid <[email protected]> * add: license in file header, remove some dead modules * refactor: more cleanups without breaking the app! Surprising that after deleting bunch of files it still works :) Signed-off-by: Mohammad Mahdi Baghbani Pourvahid <[email protected]> * refactor: wrap up everything remaining Signed-off-by: Mohammad Mahdi Baghbani Pourvahid <[email protected]> --------- Signed-off-by: Mohammad Mahdi Baghbani Pourvahid <[email protected]>
- Loading branch information
1 parent
56b8a67
commit e22483b
Showing
72 changed files
with
17,346 additions
and
17,090 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,23 @@ | ||
<?php | ||
/** | ||
* ownCloud - sciencemesh | ||
* | ||
* This file is licensed under the MIT License. See the LICENCE file. | ||
* @license MIT | ||
* @copyright Sciencemesh 2020 - 2023 | ||
* | ||
* @author Michiel De Jong <[email protected]> | ||
* @author Mohammad Mahdi Baghbani Pourvahid <[email protected]> | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
$app = \OC::$server->query(\OCA\ScienceMesh\AppInfo\ScienceMeshApp::class); | ||
use OCA\ScienceMesh\AppInfo\ScienceMeshApp; | ||
|
||
$app = OC::$server->query(ScienceMeshApp::class); | ||
|
||
\OC::$server->getNavigationManager()->add(function () { | ||
$urlGenerator = \OC::$server->getURLGenerator(); | ||
OC::$server->getNavigationManager()->add(function () { | ||
$urlGenerator = OC::$server->getURLGenerator(); | ||
|
||
return [ | ||
// The string under which your app will be referenced in owncloud | ||
|
@@ -21,6 +34,6 @@ | |
'icon' => $urlGenerator->imagePath('sciencemesh', 'app.svg'), | ||
|
||
// The application's title, used in the navigation & the settings page of your app | ||
'name' => \OC::$server->getL10N('sciencemesh')->t('ScienceMesh'), | ||
'name' => OC::$server->getL10N('sciencemesh')->t('ScienceMesh'), | ||
]; | ||
}); | ||
}); |
Oops, something went wrong.