mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-08 00:47:04 +03:00
Style PopupsNextcloudFiles view
This commit is contained in:
parent
3c78f9bf04
commit
efbc7563ac
4 changed files with 18 additions and 4 deletions
|
|
@ -63,6 +63,7 @@ class SnappyMailHelper
|
||||||
$oProvider = \RainLoop\Api::Actions()->DomainProvider();
|
$oProvider = \RainLoop\Api::Actions()->DomainProvider();
|
||||||
$oDomain = $oProvider->Load('nextcloud');
|
$oDomain = $oProvider->Load('nextcloud');
|
||||||
if (!$oDomain) {
|
if (!$oDomain) {
|
||||||
|
// $oDomain = \RainLoop\Model\Domain::fromIniArray('nextcloud', []);
|
||||||
$oDomain = new \RainLoop\Model\Domain('nextcloud');
|
$oDomain = new \RainLoop\Model\Domain('nextcloud');
|
||||||
$iSecurityType = \MailSo\Net\Enumerations\ConnectionSecurityType::NONE;
|
$iSecurityType = \MailSo\Net\Enumerations\ConnectionSecurityType::NONE;
|
||||||
$oDomain->SetConfig(
|
$oDomain->SetConfig(
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,8 @@ class NextcloudPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
$this->addHook('main.fabrica', 'MainFabrica');
|
$this->addHook('main.fabrica', 'MainFabrica');
|
||||||
$this->addHook('filter.app-data', 'FilterAppData');
|
$this->addHook('filter.app-data', 'FilterAppData');
|
||||||
|
|
||||||
|
$this->addCss('style.css');
|
||||||
|
|
||||||
$this->addJs('js/webdav.js');
|
$this->addJs('js/webdav.js');
|
||||||
|
|
||||||
$this->addJs('js/message.js');
|
$this->addJs('js/message.js');
|
||||||
|
|
|
||||||
|
|
@ -155,7 +155,6 @@ const
|
||||||
btn.name = 'select';
|
btn.name = 'select';
|
||||||
btn.textContent = 'select';
|
btn.textContent = 'select';
|
||||||
btn.className = 'button-vue';
|
btn.className = 'button-vue';
|
||||||
btn.style.marginLeft = '1em';
|
|
||||||
summary.append(btn);
|
summary.append(btn);
|
||||||
summary.item_name = item.name;
|
summary.item_name = item.name;
|
||||||
}
|
}
|
||||||
|
|
@ -179,21 +178,18 @@ const
|
||||||
btn.name = 'select';
|
btn.name = 'select';
|
||||||
btn.textContent = 'select';
|
btn.textContent = 'select';
|
||||||
btn.className = 'button-vue';
|
btn.className = 'button-vue';
|
||||||
btn.style.marginLeft = '1em';
|
|
||||||
li.append(btn);
|
li.append(btn);
|
||||||
|
|
||||||
btn = document.createElement('button');
|
btn = document.createElement('button');
|
||||||
btn.name = 'share-internal';
|
btn.name = 'share-internal';
|
||||||
btn.textContent = '🔗 internal';
|
btn.textContent = '🔗 internal';
|
||||||
btn.className = 'button-vue';
|
btn.className = 'button-vue';
|
||||||
btn.style.marginLeft = '1em';
|
|
||||||
li.append(btn);
|
li.append(btn);
|
||||||
/*
|
/*
|
||||||
btn = document.createElement('button');
|
btn = document.createElement('button');
|
||||||
btn.name = 'share-public';
|
btn.name = 'share-public';
|
||||||
btn.textContent = '🔗 public';
|
btn.textContent = '🔗 public';
|
||||||
btn.className = 'button-vue';
|
btn.className = 'button-vue';
|
||||||
btn.style.marginLeft = '1em';
|
|
||||||
li.append(btn);
|
li.append(btn);
|
||||||
*/
|
*/
|
||||||
parent.append(li);
|
parent.append(li);
|
||||||
|
|
|
||||||
15
plugins/nextcloud/style.css
Normal file
15
plugins/nextcloud/style.css
Normal file
|
|
@ -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;
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue