Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 99858d86c1 | |||
| 6984efdafd | |||
| 48d80edb0a | |||
| b57743c61a | |||
| a58ca57e46 | |||
| dc6ec4eb89 |
@@ -9,7 +9,7 @@ labels:
|
|||||||
|
|
||||||
### Environment
|
### Environment
|
||||||
|
|
||||||
* Side menu version:
|
* Custom menu version:
|
||||||
* Nextcloud version:
|
* Nextcloud version:
|
||||||
* PHP version:
|
* PHP version:
|
||||||
* Web server (Nginx, Apache2):
|
* Web server (Nginx, Apache2):
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ Comptatible with AppOrder.
|
|||||||
* [How to contribute?](#how-to-contribute)
|
* [How to contribute?](#how-to-contribute)
|
||||||
* [Screenshots](https://gitnet.fr/deblan/side_menu/src/branch/master/screenshots/)
|
* [Screenshots](https://gitnet.fr/deblan/side_menu/src/branch/master/screenshots/)
|
||||||
|
|
||||||
You like this app and you want to support me? [Buy me a coffee](https://www.buymeacoffee.com/deblan) ☕
|
You like this app and you want to support me? ☕ [Buy me a coffee](https://www.buymeacoffee.com/deblan) or [Donate with liberapay](https://liberapay.com/deblan)
|
||||||
|
|
||||||
Requirements
|
Requirements
|
||||||
------------
|
------------
|
||||||
|
|||||||
+4
-3
@@ -22,10 +22,11 @@ Requirements:
|
|||||||
|
|
||||||
If you like this application and if you want to support the development:
|
If you like this application and if you want to support the development:
|
||||||
|
|
||||||
* ☕ [Buy me a coffee](https://www.buymeacoffee.com/deblan)
|
* [Buy me a coffee](https://www.buymeacoffee.com/deblan)
|
||||||
* 😃 [Leave a comment](https://apps.nextcloud.com/apps/side_menu#comments)
|
* [Donate with liberapay](https://liberapay.com/deblan)
|
||||||
|
* [Leave a comment](https://apps.nextcloud.com/apps/side_menu#comments)
|
||||||
]]></description>
|
]]></description>
|
||||||
<version>1.20.0</version>
|
<version>1.21.0</version>
|
||||||
<licence>agpl</licence>
|
<licence>agpl</licence>
|
||||||
<author mail="contact@deblan.fr" homepage="https://www.deblan.io/">Simon Vieille</author>
|
<author mail="contact@deblan.fr" homepage="https://www.deblan.io/">Simon Vieille</author>
|
||||||
<namespace>SideMenu</namespace>
|
<namespace>SideMenu</namespace>
|
||||||
|
|||||||
@@ -97,6 +97,7 @@ class JsController extends Controller
|
|||||||
$targetBlankApps = $this->config->getAppValueArray('target-blank-apps', '[]');
|
$targetBlankApps = $this->config->getAppValueArray('target-blank-apps', '[]');
|
||||||
$useAvatar = $this->config->getAppValueBool('use-avatar', '0');
|
$useAvatar = $this->config->getAppValueBool('use-avatar', '0');
|
||||||
$isForced = $this->config->getAppValueBool('force', '0');
|
$isForced = $this->config->getAppValueBool('force', '0');
|
||||||
|
$addLogoLink = $this->config->getAppValueBool('add-logo-link', '1');
|
||||||
$avatar = null;
|
$avatar = null;
|
||||||
$settings = null;
|
$settings = null;
|
||||||
|
|
||||||
@@ -141,6 +142,8 @@ class JsController extends Controller
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$indexUrl = OC::$server->getURLGenerator()->linkTo('', 'index.php');
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'opener-position' => $this->config->getAppValue('opener-position', 'before'),
|
'opener-position' => $this->config->getAppValue('opener-position', 'before'),
|
||||||
'opener-hover' => $this->config->getAppValueBool('opener-hover', '0'),
|
'opener-hover' => $this->config->getAppValueBool('opener-hover', '0'),
|
||||||
@@ -156,6 +159,7 @@ class JsController extends Controller
|
|||||||
'target-blank-apps' => $targetBlankApps,
|
'target-blank-apps' => $targetBlankApps,
|
||||||
'settings' => $settings,
|
'settings' => $settings,
|
||||||
'logo' => $this->themingDefaults->getLogo(),
|
'logo' => $this->themingDefaults->getLogo(),
|
||||||
|
'logo-link' => $addLogoLink ? $indexUrl : null,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -79,6 +79,7 @@ class Admin implements ISettings
|
|||||||
'big-menu' => $this->config->getAppValue('big-menu', '0'),
|
'big-menu' => $this->config->getAppValue('big-menu', '0'),
|
||||||
'big-menu-hidden-apps' => $this->config->getAppValueArray('big-menu-hidden-apps', '[]'),
|
'big-menu-hidden-apps' => $this->config->getAppValueArray('big-menu-hidden-apps', '[]'),
|
||||||
'display-logo' => $this->config->getAppValue('display-logo', '1'),
|
'display-logo' => $this->config->getAppValue('display-logo', '1'),
|
||||||
|
'add-logo-link' => $this->config->getAppValue('add-logo-link', '1'),
|
||||||
'use-avatar' => $this->config->getAppValue('use-avatar', '0'),
|
'use-avatar' => $this->config->getAppValue('use-avatar', '0'),
|
||||||
'opener-position' => $this->config->getAppValue('opener-position', 'before'),
|
'opener-position' => $this->config->getAppValue('opener-position', 'before'),
|
||||||
'opener-hover' => $this->config->getAppValue('opener-hover', '0'),
|
'opener-hover' => $this->config->getAppValue('opener-hover', '0'),
|
||||||
|
|||||||
+8
-1
@@ -16,7 +16,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<div v-bind:class="classes">
|
<div v-bind:class="classes">
|
||||||
<img v-bind:src="image">
|
<a v-if="link !== null" v-bind:href="link">
|
||||||
|
<img v-bind:src="image">
|
||||||
|
</a>
|
||||||
|
<img v-else v-bind:src="image">
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -28,6 +31,10 @@ export default {
|
|||||||
type: String,
|
type: String,
|
||||||
required: true
|
required: true
|
||||||
},
|
},
|
||||||
|
link: {
|
||||||
|
type: String,
|
||||||
|
required: false
|
||||||
|
},
|
||||||
classes: {
|
classes: {
|
||||||
type: Object,
|
type: Object,
|
||||||
required: true
|
required: true
|
||||||
|
|||||||
+13
-2
@@ -25,8 +25,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
|
|
||||||
<OpenerButton />
|
<OpenerButton />
|
||||||
|
|
||||||
<Logo v-if="!avatar && logo" v-bind:classes="{'side-menu-logo': true, 'avatardiv': false}" v-bind:image="logo" />
|
<Logo
|
||||||
<Logo v-if="avatar" v-bind:classes="{'side-menu-logo': true, 'avatardiv': true}" v-bind:image="avatar" />
|
v-if="!avatar && logo" v-bind:classes="{'side-menu-logo': true, 'avatardiv': false}"
|
||||||
|
v-bind:image="logo"
|
||||||
|
v-bind:link="logoLink"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<Logo
|
||||||
|
v-if="avatar" v-bind:classes="{'side-menu-logo': true, 'avatardiv': true}"
|
||||||
|
v-bind:image="avatar"
|
||||||
|
v-bind:link="logoLink"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul class="side-menu-apps-list">
|
<ul class="side-menu-apps-list">
|
||||||
@@ -62,6 +71,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
apps: [],
|
apps: [],
|
||||||
logo: null,
|
logo: null,
|
||||||
|
logoLink: null,
|
||||||
avatar: null,
|
avatar: null,
|
||||||
forceLightIcon: false,
|
forceLightIcon: false,
|
||||||
targetBlankApps: [],
|
targetBlankApps: [],
|
||||||
@@ -135,6 +145,7 @@ export default {
|
|||||||
that.forceLightIcon = config['force-light-icon']
|
that.forceLightIcon = config['force-light-icon']
|
||||||
that.avatar = config['avatar']
|
that.avatar = config['avatar']
|
||||||
that.logo = config['logo']
|
that.logo = config['logo']
|
||||||
|
that.logoLink = config['logo-link']
|
||||||
that.settings = config['settings']
|
that.settings = config['settings']
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -64,3 +64,6 @@
|
|||||||
"Show the link to settings": "Zeigen Sie den Link zu den Einstellungen an"
|
"Show the link to settings": "Zeigen Sie den Link zu den Einstellungen an"
|
||||||
"The menu is enabled by default for users": "Das Menü ist standardmäßig für Benutzer aktiviert"
|
"The menu is enabled by default for users": "Das Menü ist standardmäßig für Benutzer aktiviert"
|
||||||
"Except when the configuration is forced.": "Außer wenn die Konfiguration erzwungen wird."
|
"Except when the configuration is forced.": "Außer wenn die Konfiguration erzwungen wird."
|
||||||
|
"Apps that should not be displayed in the menu": "Apps, die nicht im Menü angezeigt werden sollen"
|
||||||
|
"This feature is only compatible with the <code>big menu</code> display.": "Kompatibel mit der Anzeige <code> Großes Menü </ code>."
|
||||||
|
"The logo is a link to the default app": "Das Logo ist ein Link zur Standard-App"
|
||||||
|
|||||||
@@ -64,3 +64,6 @@
|
|||||||
"Show the link to settings": "Afficher le lien vers les paramètres"
|
"Show the link to settings": "Afficher le lien vers les paramètres"
|
||||||
"The menu is enabled by default for users": "Le menu est activé par défaut pour les utilisateurs"
|
"The menu is enabled by default for users": "Le menu est activé par défaut pour les utilisateurs"
|
||||||
"Except when the configuration is forced.": "Sauf lorsque la configuration est forcée."
|
"Except when the configuration is forced.": "Sauf lorsque la configuration est forcée."
|
||||||
|
"Apps that should not be displayed in the menu": "Applications qui ne doivent pas être affichées dans le menu"
|
||||||
|
"This feature is only compatible with the <code>big menu</code> display.": "Compatible avec l'affichage <code>Menu large</code>."
|
||||||
|
"The logo is a link to the default app": "Le logo est un lien vers l'application par défaut"
|
||||||
|
|||||||
@@ -359,9 +359,21 @@ $choicesSizes = [
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<p><em><?php p($l->t('The logo is a link to the default app')); ?></em></p>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<select id="side-menu-add-logo-link" name="add-logo-link" class="side-menu-setting">
|
||||||
|
<?php foreach ($choicesYesNo as $label => $value): ?>
|
||||||
|
<option value="<?php echo $value ?>" <?php if ($value === $_['add-logo-link']): ?>selected<?php endif; ?>>
|
||||||
|
<?php echo $l->t($label); ?>
|
||||||
|
</option>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label for="side-menu-top-menu-apps">
|
<label for="side-menu-top-menu-apps">
|
||||||
<?php p($l->t('Apps that not must show in the menu')); ?>
|
<?php p($l->t('Apps that should not be displayed in the menu')); ?>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user