implemented snapshot diff; started work on admin settings
This commit is contained in:
parent
4c67bf71c4
commit
8b22d56e32
7 changed files with 423 additions and 8 deletions
32
lib/Sections/SnapshotsSection.php
Normal file
32
lib/Sections/SnapshotsSection.php
Normal file
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
namespace OCA\GroupfolderFilesystemSnapshots\Sections;
|
||||
|
||||
use OCP\IL10N;
|
||||
use OCP\IURLGenerator;
|
||||
use OCP\Settings\IIconSection;
|
||||
|
||||
class SnapshotsSection implements IIconSection {
|
||||
private IL10N $l;
|
||||
private IURLGenerator $urlGenerator;
|
||||
|
||||
public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
|
||||
$this->l = $l;
|
||||
$this->urlGenerator = $urlGenerator;
|
||||
}
|
||||
|
||||
public function getIcon(): string {
|
||||
return $this->urlGenerator->imagePath('core', 'actions/settings-dark.svg');
|
||||
}
|
||||
|
||||
public function getID(): string {
|
||||
return 'groupfolder_filesystem_snapshots';
|
||||
}
|
||||
|
||||
public function getName(): string {
|
||||
return $this->l->t('Groupfolder Filesystem Snapshots');
|
||||
}
|
||||
|
||||
public function getPriority(): int {
|
||||
return 98;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue