Skip to content

Commit

Permalink
Style PopupsNextcloudFiles view
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Nov 10, 2022
1 parent 3c78f9b commit efbc756
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public static function loadApp() : void
$oProvider = \RainLoop\Api::Actions()->DomainProvider();
$oDomain = $oProvider->Load('nextcloud');
if (!$oDomain) {
// $oDomain = \RainLoop\Model\Domain::fromIniArray('nextcloud', []);
$oDomain = new \RainLoop\Model\Domain('nextcloud');
$iSecurityType = \MailSo\Net\Enumerations\ConnectionSecurityType::NONE;
$oDomain->SetConfig(
Expand Down
2 changes: 2 additions & 0 deletions plugins/nextcloud/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ public function Init() : void
$this->addHook('main.fabrica', 'MainFabrica');
$this->addHook('filter.app-data', 'FilterAppData');

$this->addCss('style.css');

$this->addJs('js/webdav.js');

$this->addJs('js/message.js');
Expand Down
4 changes: 0 additions & 4 deletions plugins/nextcloud/js/webdav.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ const
btn.name = 'select';
btn.textContent = 'select';
btn.className = 'button-vue';
btn.style.marginLeft = '1em';
summary.append(btn);
summary.item_name = item.name;
}
Expand All @@ -179,21 +178,18 @@ const
btn.name = 'select';
btn.textContent = 'select';
btn.className = 'button-vue';
btn.style.marginLeft = '1em';
li.append(btn);

btn = document.createElement('button');
btn.name = 'share-internal';
btn.textContent = '🔗 internal';
btn.className = 'button-vue';
btn.style.marginLeft = '1em';
li.append(btn);
/*
btn = document.createElement('button');
btn.name = 'share-public';
btn.textContent = '🔗 public';
btn.className = 'button-vue';
btn.style.marginLeft = '1em';
li.append(btn);
*/
parent.append(li);
Expand Down
15 changes: 15 additions & 0 deletions plugins/nextcloud/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#V-PopupsNextcloudFiles li:hover {
background-color: var(--color-background-hover);
}
#V-PopupsNextcloudFiles li {
clear: right;
}
#V-PopupsNextcloudFiles li button {
cursor: pointer;
float: right;
margin: 0 0 0 0.5em;
}

#rl-app .squire-wysiwyg a {
text-decoration: underline;
}

0 comments on commit efbc756

Please sign in to comment.