Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a0f4eddab0 | |||
| 24bf8496f3 | |||
| 8368562ed0 | |||
| 9a8f5517b6 | |||
| bddd8e9c0c | |||
| 03dbe8eeed | |||
| 321e5b1178 | |||
| 594b818515 | |||
| 7ac19c7bec | |||
| 375ed7d2f1 | |||
| bbd4403c3e | |||
| c52079e882 | |||
| 7864e16ef3 | |||
| 4b06b633b8 | |||
| 12abd19936 |
@@ -6,41 +6,25 @@ This application is rather suitable for instances that activate a lot of applica
|
|||||||
|
|
||||||
Comptatible with AppOrder.
|
Comptatible with AppOrder.
|
||||||
|
|
||||||
Installation
|
* [Installation and upgrade](#user-content-installation-and-upgrade)
|
||||||
------------
|
* [How to contribute?](#user-content-how-to-contribute)
|
||||||
|
* [Preview](#user-content-preview)
|
||||||
|
|
||||||
Side menu is availabe from the app store.
|
Installation and upgrade
|
||||||
|
------------------------
|
||||||
|
|
||||||
If you want to install it from source: go to https://gitnet.fr/deblan/side_menu/releases and download the last release (side_menu_vX.Y.Z.zip).
|
Side menu is availabe from the app store. If you want to install it from source: go to https://gitnet.fr/deblan/side_menu/releases and download the last release (side_menu_vX.Y.Z.zip). Copy the content into `apps`.
|
||||||
|
|
||||||
Copy the archive to your Nextcloud server.
|
|
||||||
|
|
||||||
```
|
```
|
||||||
$ cd /path/to/nextcloud/apps
|
$ cd /path/to/nextcloud/apps
|
||||||
$ unzip -d side_menu /path/to/side_menu_vX.Y.Z.zip
|
$ unzip -d side_menu /path/to/side_menu_vX.Y.Z.zip
|
||||||
```
|
```
|
||||||
|
|
||||||
Upgrade
|
Administrators can edit many settings using the administration page.
|
||||||
-------
|
|
||||||
|
|
||||||
Side menu can be upgraded from the app store.
|
Users can disable the menu using the page of personal settings.
|
||||||
|
|
||||||
If you want to install it from source: go to https://gitnet.fr/deblan/side_menu/releases and download the last release (side_menu_vX.Y.Z.zip).
|
|
||||||
|
|
||||||
Copy the archive to your Nextcloud server.
|
|
||||||
|
|
||||||
```
|
|
||||||
$ cd /path/to/nextcloud/apps
|
|
||||||
$ rm -frv side_menu
|
|
||||||
$ unzip -d side_menu /path/to/side_menu_vX.Y.Z.zip
|
|
||||||
```
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
|
Use the shortcut `Ctrl`+`o` to open and to hide the side menu. Use `tab` to navigate.
|
||||||
|
|
||||||
How to contribute?
|
How to contribute?
|
||||||
------------------
|
------------------
|
||||||
@@ -57,3 +41,14 @@ If you are a developer:
|
|||||||
Build javascripts using `webpack --config ./webpack.js` (add `-w` to build them in real time).
|
Build javascripts using `webpack --config ./webpack.js` (add `-w` to build them in real time).
|
||||||
|
|
||||||
Then commit and create a pull request.
|
Then commit and create a pull request.
|
||||||
|
|
||||||
|
Preview
|
||||||
|
-------
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|||||||
@@ -21,42 +21,51 @@ namespace OCA\SideMenu\Appinfo;
|
|||||||
|
|
||||||
use OC\Security\CSP\ContentSecurityPolicy;
|
use OC\Security\CSP\ContentSecurityPolicy;
|
||||||
use OCP\Util;
|
use OCP\Util;
|
||||||
|
use OCP\IUserSession;
|
||||||
|
|
||||||
$config = \OC::$server->getConfig();
|
$config = \OC::$server->getConfig();
|
||||||
$cspnm = \OC::$server->getContentSecurityPolicyNonceManager();
|
$cspnm = \OC::$server->getContentSecurityPolicyNonceManager();
|
||||||
|
$user = \OC::$server[IUserSession::class]->getUser();
|
||||||
|
|
||||||
|
$enabled = true;
|
||||||
|
|
||||||
Util::addScript('side_menu', 'sideMenu');
|
if ($user !== null) {
|
||||||
Util::addStyle('side_menu', 'sideMenu');
|
$enabled = (bool) $config->getUserValue($user->getUid(), 'side_menu', 'enabled', '1');
|
||||||
|
}
|
||||||
|
|
||||||
$stylesheet = \OC::$server->getURLGenerator()->linkToRoute(
|
if ($enabled) {
|
||||||
'side_menu.Css.stylesheet',
|
Util::addScript('side_menu', 'sideMenu');
|
||||||
[
|
Util::addStyle('side_menu', 'sideMenu');
|
||||||
'v' => $config->getAppValue('side_menu', 'cache', '0'),
|
|
||||||
]
|
|
||||||
);
|
|
||||||
|
|
||||||
$script = \OC::$server->getURLGenerator()->linkToRoute(
|
$stylesheet = \OC::$server->getURLGenerator()->linkToRoute(
|
||||||
'side_menu.Js.script',
|
'side_menu.Css.stylesheet',
|
||||||
[
|
[
|
||||||
'v' => $config->getAppValue('side_menu', 'cache', '0'),
|
'v' => $config->getAppValue('side_menu', 'cache', '0'),
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
Util::addHeader(
|
$script = \OC::$server->getURLGenerator()->linkToRoute(
|
||||||
'link',
|
'side_menu.Js.script',
|
||||||
[
|
[
|
||||||
'href' => $stylesheet,
|
'v' => $config->getAppValue('side_menu', 'cache', '0'),
|
||||||
'rel' => 'stylesheet'
|
]
|
||||||
],
|
);
|
||||||
''
|
|
||||||
);
|
|
||||||
|
|
||||||
Util::addHeader(
|
Util::addHeader(
|
||||||
'script',
|
'link',
|
||||||
[
|
[
|
||||||
'src' => $script,
|
'href' => $stylesheet,
|
||||||
'nonce' => $cspnm->getNonce(),
|
'rel' => 'stylesheet'
|
||||||
],
|
],
|
||||||
''
|
''
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Util::addHeader(
|
||||||
|
'script',
|
||||||
|
[
|
||||||
|
'src' => $script,
|
||||||
|
'nonce' => $cspnm->getNonce(),
|
||||||
|
],
|
||||||
|
''
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|||||||
@@ -6,6 +6,8 @@
|
|||||||
<description><![CDATA[Side menu allows you to modify the position of the main menu by creating a panel on the left of the interface.
|
<description><![CDATA[Side menu allows you to modify the position of the main menu by creating a panel on the left of the interface.
|
||||||
This application is rather suitable for instances that activate a lot of applications.
|
This application is rather suitable for instances that activate a lot of applications.
|
||||||
|
|
||||||
|
Use the shortcut `Ctrl`+`o` to open and to hide the side menu. Use `tab` to navigate.
|
||||||
|
|
||||||
Comptatible with AppOrder.
|
Comptatible with AppOrder.
|
||||||
|
|
||||||
You can report a bug or request a feature by opening an issue.
|
You can report a bug or request a feature by opening an issue.
|
||||||
@@ -13,20 +15,23 @@ You can report a bug or request a feature by opening an issue.
|
|||||||
]]></description>
|
]]></description>
|
||||||
<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>
|
||||||
<version>1.4.1</version>
|
<version>1.6.3</version>
|
||||||
<namespace>SideMenu</namespace>
|
<namespace>SideMenu</namespace>
|
||||||
<category>customization</category>
|
<category>customization</category>
|
||||||
<website>https://gitnet.fr/deblan/side_menu</website>
|
<website>https://gitnet.fr/deblan/side_menu</website>
|
||||||
<bugs>https://gitnet.fr/deblan/side_menu/issues</bugs>
|
<bugs>https://gitnet.fr/deblan/side_menu/issues</bugs>
|
||||||
<repository type="git">https://gitnet.fr/deblan/side_menu</repository>
|
<repository type="git">https://gitnet.fr/deblan/side_menu</repository>
|
||||||
<screenshot>https://upload.deblan.org/u/2020-03/5e7fab2b.jpg</screenshot>
|
|
||||||
<screenshot>https://upload.deblan.org/u/2020-03/5e81b219.jpg</screenshot>
|
<screenshot>https://upload.deblan.org/u/2020-03/5e81b219.jpg</screenshot>
|
||||||
<screenshot>https://upload.deblan.org/u/2020-04/5ea92746.png</screenshot>
|
<screenshot>https://upload.deblan.org/u/2020-03/5e7fab2b.jpg</screenshot>
|
||||||
|
<screenshot>https://upload.deblan.org/u/2020-05/5eb6b76e.png</screenshot>
|
||||||
|
<screenshot>https://upload.deblan.org/u/2020-05/5eb6b78a.png</screenshot>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<nextcloud min-version="18" max-version="18"/>
|
<nextcloud min-version="18" max-version="18"/>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<settings>
|
<settings>
|
||||||
<admin>OCA\SideMenu\Settings\Admin</admin>
|
<admin>OCA\SideMenu\Settings\Admin</admin>
|
||||||
<admin-section>OCA\SideMenu\Settings\Section</admin-section>
|
<admin-section>OCA\SideMenu\Settings\AdminSection</admin-section>
|
||||||
|
<personal>OCA\SideMenu\Settings\Personal</personal>
|
||||||
|
<personal-section>OCA\SideMenu\Settings\PersonalSection</personal-section>
|
||||||
</settings>
|
</settings>
|
||||||
</info>
|
</info>
|
||||||
|
|||||||
@@ -21,5 +21,6 @@ return [
|
|||||||
'routes' => [
|
'routes' => [
|
||||||
['name' => 'Css#stylesheet', 'url' => '/css/stylesheet', 'verb' => 'GET'],
|
['name' => 'Css#stylesheet', 'url' => '/css/stylesheet', 'verb' => 'GET'],
|
||||||
['name' => 'Js#script', 'url' => '/js/script', 'verb' => 'GET'],
|
['name' => 'Js#script', 'url' => '/js/script', 'verb' => 'GET'],
|
||||||
|
['name' => 'PersonalSetting#valueSet', 'url' => '/personalSetting/valueSet', 'verb' => 'POST'],
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -23,3 +23,12 @@
|
|||||||
#side-menu-section select {
|
#side-menu-section select {
|
||||||
margin: 10px 0 10px 0;
|
margin: 10px 0 10px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.keyboard-key {
|
||||||
|
padding: 1px 9px;
|
||||||
|
margin: 0 2px;
|
||||||
|
background: #eee;
|
||||||
|
border: 1px solid #aaa;
|
||||||
|
color: #555;
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
|||||||
@@ -15,10 +15,6 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#appmenu, #appmenu + nav {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#side-menu {
|
#side-menu {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
@@ -84,7 +80,7 @@
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.side-menu-app a:hover, .side-menu-app.active a {
|
.side-menu-app a:hover, .side-menu-app.active, .side-menu-app a:focus {
|
||||||
background: var(--side-menu-current-app-background-color, #444);
|
background: var(--side-menu-current-app-background-color, #444);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,173 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="40"
|
||||||
|
height="40"
|
||||||
|
viewBox="0 0 10.583 10.583"
|
||||||
|
version="1.1"
|
||||||
|
id="svg935"
|
||||||
|
sodipodi:docname="side-menu-opener-dark.svg"
|
||||||
|
inkscape:version="0.92.4 (5da689c313, 2019-01-14)">
|
||||||
|
<metadata
|
||||||
|
id="metadata941">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
<dc:title></dc:title>
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<defs
|
||||||
|
id="defs939" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1"
|
||||||
|
objecttolerance="10"
|
||||||
|
gridtolerance="10"
|
||||||
|
guidetolerance="10"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:window-width="1918"
|
||||||
|
inkscape:window-height="1008"
|
||||||
|
id="namedview937"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="8.34386"
|
||||||
|
inkscape:cx="83.025045"
|
||||||
|
inkscape:cy="14.304895"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="41"
|
||||||
|
inkscape:window-maximized="0"
|
||||||
|
inkscape:current-layer="svg935" />
|
||||||
|
<g
|
||||||
|
transform="translate(.3 -286.074)"
|
||||||
|
fill="#fff"
|
||||||
|
color="#000"
|
||||||
|
fill-opacity=".855"
|
||||||
|
id="g933"
|
||||||
|
style="fill:#000000;fill-opacity:0.89855075">
|
||||||
|
<rect
|
||||||
|
ry="0"
|
||||||
|
rx="0"
|
||||||
|
y="288.474"
|
||||||
|
x="4.266"
|
||||||
|
height="1.451"
|
||||||
|
width="1.451"
|
||||||
|
style="marker:none;fill:#000000;fill-opacity:0.89855075"
|
||||||
|
overflow="visible"
|
||||||
|
paint-order="stroke markers fill"
|
||||||
|
id="rect909" />
|
||||||
|
<g
|
||||||
|
transform="translate(-.13)"
|
||||||
|
id="g915"
|
||||||
|
style="fill:#000000;fill-opacity:0.89855075">
|
||||||
|
<rect
|
||||||
|
style="marker:none;fill:#000000;fill-opacity:0.89855075"
|
||||||
|
width="1.451"
|
||||||
|
height="1.451"
|
||||||
|
x="6.445"
|
||||||
|
y="288.474"
|
||||||
|
rx="0"
|
||||||
|
ry="0"
|
||||||
|
overflow="visible"
|
||||||
|
paint-order="stroke markers fill"
|
||||||
|
id="rect911" />
|
||||||
|
<rect
|
||||||
|
style="marker:none;fill:#000000;fill-opacity:0.89855075"
|
||||||
|
width="1.451"
|
||||||
|
height="1.451"
|
||||||
|
x="2.345"
|
||||||
|
y="288.474"
|
||||||
|
rx="0"
|
||||||
|
ry="0"
|
||||||
|
overflow="visible"
|
||||||
|
paint-order="stroke markers fill"
|
||||||
|
id="rect913" />
|
||||||
|
</g>
|
||||||
|
<rect
|
||||||
|
ry="0"
|
||||||
|
rx="0"
|
||||||
|
y="290.631"
|
||||||
|
x="4.266"
|
||||||
|
height="1.451"
|
||||||
|
width="1.451"
|
||||||
|
style="marker:none;fill:#000000;fill-opacity:0.89855075"
|
||||||
|
overflow="visible"
|
||||||
|
paint-order="stroke markers fill"
|
||||||
|
id="rect917" />
|
||||||
|
<g
|
||||||
|
transform="translate(-.13 2.157)"
|
||||||
|
id="g923"
|
||||||
|
style="fill:#000000;fill-opacity:0.89855075">
|
||||||
|
<rect
|
||||||
|
style="marker:none;fill:#000000;fill-opacity:0.89855075"
|
||||||
|
width="1.451"
|
||||||
|
height="1.451"
|
||||||
|
x="6.445"
|
||||||
|
y="288.474"
|
||||||
|
rx="0"
|
||||||
|
ry="0"
|
||||||
|
overflow="visible"
|
||||||
|
paint-order="stroke markers fill"
|
||||||
|
id="rect919" />
|
||||||
|
<rect
|
||||||
|
style="marker:none;fill:#000000;fill-opacity:0.89855075"
|
||||||
|
width="1.451"
|
||||||
|
height="1.451"
|
||||||
|
x="2.345"
|
||||||
|
y="288.474"
|
||||||
|
rx="0"
|
||||||
|
ry="0"
|
||||||
|
overflow="visible"
|
||||||
|
paint-order="stroke markers fill"
|
||||||
|
id="rect921" />
|
||||||
|
</g>
|
||||||
|
<rect
|
||||||
|
ry="0"
|
||||||
|
rx="0"
|
||||||
|
y="292.808"
|
||||||
|
x="4.266"
|
||||||
|
height="1.451"
|
||||||
|
width="1.451"
|
||||||
|
style="marker:none;fill:#000000;fill-opacity:0.89855075"
|
||||||
|
overflow="visible"
|
||||||
|
paint-order="stroke markers fill"
|
||||||
|
id="rect925" />
|
||||||
|
<g
|
||||||
|
transform="translate(-.13 4.334)"
|
||||||
|
id="g931"
|
||||||
|
style="fill:#000000;fill-opacity:0.89855075">
|
||||||
|
<rect
|
||||||
|
style="marker:none;fill:#000000;fill-opacity:0.89855075"
|
||||||
|
width="1.451"
|
||||||
|
height="1.451"
|
||||||
|
x="6.445"
|
||||||
|
y="288.474"
|
||||||
|
rx="0"
|
||||||
|
ry="0"
|
||||||
|
overflow="visible"
|
||||||
|
paint-order="stroke markers fill"
|
||||||
|
id="rect927" />
|
||||||
|
<rect
|
||||||
|
style="marker:none;fill:#000000;fill-opacity:0.89855075"
|
||||||
|
width="1.451"
|
||||||
|
height="1.451"
|
||||||
|
x="2.345"
|
||||||
|
y="288.474"
|
||||||
|
rx="0"
|
||||||
|
ry="0"
|
||||||
|
overflow="visible"
|
||||||
|
paint-order="stroke markers fill"
|
||||||
|
id="rect929" />
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 4.5 KiB |
@@ -0,0 +1,102 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="40"
|
||||||
|
height="40"
|
||||||
|
viewBox="0 0 10.583 10.583"
|
||||||
|
version="1.1"
|
||||||
|
id="svg1090"
|
||||||
|
sodipodi:docname="side-menu-opener-hamburger-2-dark.svg"
|
||||||
|
inkscape:version="0.92.4 (5da689c313, 2019-01-14)">
|
||||||
|
<metadata
|
||||||
|
id="metadata1096">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
<dc:title></dc:title>
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<defs
|
||||||
|
id="defs1094" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1"
|
||||||
|
objecttolerance="10"
|
||||||
|
gridtolerance="10"
|
||||||
|
guidetolerance="10"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:window-width="1918"
|
||||||
|
inkscape:window-height="1008"
|
||||||
|
id="namedview1092"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="8.34386"
|
||||||
|
inkscape:cx="84.523455"
|
||||||
|
inkscape:cy="12.270318"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="41"
|
||||||
|
inkscape:window-maximized="0"
|
||||||
|
inkscape:current-layer="svg1090" />
|
||||||
|
<rect
|
||||||
|
overflow="visible"
|
||||||
|
style="marker:none;fill:#000000;fill-opacity:1"
|
||||||
|
width="4.806"
|
||||||
|
height="1.256"
|
||||||
|
x="2.888"
|
||||||
|
y="2.787"
|
||||||
|
rx="0"
|
||||||
|
ry=".472"
|
||||||
|
color="#000"
|
||||||
|
fill="#fff"
|
||||||
|
fill-opacity=".855"
|
||||||
|
paint-order="stroke markers fill"
|
||||||
|
id="rect1082" />
|
||||||
|
<rect
|
||||||
|
overflow="visible"
|
||||||
|
style="marker:none;fill:#000000;fill-opacity:1"
|
||||||
|
width="4.806"
|
||||||
|
height="1.256"
|
||||||
|
x="2.888"
|
||||||
|
y="4.655"
|
||||||
|
rx="0"
|
||||||
|
ry=".472"
|
||||||
|
color="#000"
|
||||||
|
fill="#fff"
|
||||||
|
fill-opacity=".855"
|
||||||
|
paint-order="stroke markers fill"
|
||||||
|
id="rect1084" />
|
||||||
|
<rect
|
||||||
|
overflow="visible"
|
||||||
|
style="marker:none;fill:#000000;fill-opacity:1"
|
||||||
|
width="4.806"
|
||||||
|
height="1.256"
|
||||||
|
x="2.888"
|
||||||
|
y="6.54"
|
||||||
|
rx="0"
|
||||||
|
ry=".472"
|
||||||
|
color="#000"
|
||||||
|
fill="#fff"
|
||||||
|
fill-opacity=".855"
|
||||||
|
paint-order="stroke markers fill"
|
||||||
|
id="rect1086" />
|
||||||
|
<path
|
||||||
|
style="marker:none;fill:#000000;fill-opacity:1"
|
||||||
|
d="M1.243.71A.469.469 0 0 0 .881.88a.469.469 0 0 0-.171.362V9.34c0 .146.067.275.171.362a.469.469 0 0 0 .362.171H9.34a.469.469 0 0 0 .362-.171.469.469 0 0 0 .171-.362V1.243a.469.469 0 0 0-.171-.362A.469.469 0 0 0 9.34.71zm.723 1.256h6.65v6.65h-6.65z"
|
||||||
|
color="#000"
|
||||||
|
overflow="visible"
|
||||||
|
fill="#fff"
|
||||||
|
fill-opacity=".855"
|
||||||
|
paint-order="stroke markers fill"
|
||||||
|
id="path1088" />
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 2.8 KiB |
@@ -1,6 +1,101 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 10.583 10.583">
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
<rect overflow="visible" style="marker:none" width="4.806" height="1.256" x="2.888" y="2.787" rx="0" ry=".472" color="#000" fill="#fff" fill-opacity=".855" paint-order="stroke markers fill"/>
|
<svg
|
||||||
<rect overflow="visible" style="marker:none" width="4.806" height="1.256" x="2.888" y="4.655" rx="0" ry=".472" color="#000" fill="#fff" fill-opacity=".855" paint-order="stroke markers fill"/>
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
<rect overflow="visible" style="marker:none" width="4.806" height="1.256" x="2.888" y="6.54" rx="0" ry=".472" color="#000" fill="#fff" fill-opacity=".855" paint-order="stroke markers fill"/>
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
<path style="marker:none" d="M1.243.71A.469.469 0 0 0 .881.88a.469.469 0 0 0-.171.362V9.34c0 .146.067.275.171.362a.469.469 0 0 0 .362.171H9.34a.469.469 0 0 0 .362-.171.469.469 0 0 0 .171-.362V1.243a.469.469 0 0 0-.171-.362A.469.469 0 0 0 9.34.71zm.723 1.256h6.65v6.65h-6.65z" color="#000" overflow="visible" fill="#fff" fill-opacity=".855" paint-order="stroke markers fill"/>
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="40"
|
||||||
|
height="40"
|
||||||
|
viewBox="0 0 10.583 10.583"
|
||||||
|
version="1.1"
|
||||||
|
id="svg1443"
|
||||||
|
sodipodi:docname="side-menu-opener-hamburger-2.svg"
|
||||||
|
inkscape:version="0.92.4 (5da689c313, 2019-01-14)">
|
||||||
|
<metadata
|
||||||
|
id="metadata1449">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<defs
|
||||||
|
id="defs1447" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1"
|
||||||
|
objecttolerance="10"
|
||||||
|
gridtolerance="10"
|
||||||
|
guidetolerance="10"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:window-width="1918"
|
||||||
|
inkscape:window-height="1008"
|
||||||
|
id="namedview1445"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="5.9"
|
||||||
|
inkscape:cx="90.508475"
|
||||||
|
inkscape:cy="4.5762712"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="41"
|
||||||
|
inkscape:window-maximized="0"
|
||||||
|
inkscape:current-layer="svg1443" />
|
||||||
|
<rect
|
||||||
|
overflow="visible"
|
||||||
|
style="marker:none;fill:#ffffff;fill-opacity:1"
|
||||||
|
width="4.806"
|
||||||
|
height="1.256"
|
||||||
|
x="2.888"
|
||||||
|
y="2.787"
|
||||||
|
rx="0"
|
||||||
|
ry=".472"
|
||||||
|
color="#000"
|
||||||
|
fill="#fff"
|
||||||
|
fill-opacity=".855"
|
||||||
|
paint-order="stroke markers fill"
|
||||||
|
id="rect1435" />
|
||||||
|
<rect
|
||||||
|
overflow="visible"
|
||||||
|
style="marker:none;fill:#ffffff;fill-opacity:1"
|
||||||
|
width="4.806"
|
||||||
|
height="1.256"
|
||||||
|
x="2.888"
|
||||||
|
y="4.655"
|
||||||
|
rx="0"
|
||||||
|
ry=".472"
|
||||||
|
color="#000"
|
||||||
|
fill="#fff"
|
||||||
|
fill-opacity=".855"
|
||||||
|
paint-order="stroke markers fill"
|
||||||
|
id="rect1437" />
|
||||||
|
<rect
|
||||||
|
overflow="visible"
|
||||||
|
style="marker:none;fill:#ffffff;fill-opacity:1"
|
||||||
|
width="4.806"
|
||||||
|
height="1.256"
|
||||||
|
x="2.888"
|
||||||
|
y="6.54"
|
||||||
|
rx="0"
|
||||||
|
ry=".472"
|
||||||
|
color="#000"
|
||||||
|
fill="#fff"
|
||||||
|
fill-opacity=".855"
|
||||||
|
paint-order="stroke markers fill"
|
||||||
|
id="rect1439" />
|
||||||
|
<path
|
||||||
|
style="marker:none;fill:#ffffff;fill-opacity:1"
|
||||||
|
d="M1.243.71A.469.469 0 0 0 .881.88a.469.469 0 0 0-.171.362V9.34c0 .146.067.275.171.362a.469.469 0 0 0 .362.171H9.34a.469.469 0 0 0 .362-.171.469.469 0 0 0 .171-.362V1.243a.469.469 0 0 0-.171-.362A.469.469 0 0 0 9.34.71zm.723 1.256h6.65v6.65h-6.65z"
|
||||||
|
color="#000"
|
||||||
|
overflow="visible"
|
||||||
|
fill="#fff"
|
||||||
|
fill-opacity=".855"
|
||||||
|
paint-order="stroke markers fill"
|
||||||
|
id="path1441" />
|
||||||
</svg>
|
</svg>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 2.8 KiB |
@@ -0,0 +1,92 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="40"
|
||||||
|
height="40"
|
||||||
|
viewBox="0 0 10.583 10.583"
|
||||||
|
version="1.1"
|
||||||
|
id="svg1168"
|
||||||
|
sodipodi:docname="side-menu-opener-hamburger-dark.svg"
|
||||||
|
inkscape:version="0.92.4 (5da689c313, 2019-01-14)">
|
||||||
|
<metadata
|
||||||
|
id="metadata1174">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
<dc:title></dc:title>
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<defs
|
||||||
|
id="defs1172" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1"
|
||||||
|
objecttolerance="10"
|
||||||
|
gridtolerance="10"
|
||||||
|
guidetolerance="10"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:window-width="1918"
|
||||||
|
inkscape:window-height="1008"
|
||||||
|
id="namedview1170"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="5.9"
|
||||||
|
inkscape:cx="112.71186"
|
||||||
|
inkscape:cy="0.16949153"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="41"
|
||||||
|
inkscape:window-maximized="0"
|
||||||
|
inkscape:current-layer="svg1168" />
|
||||||
|
<g
|
||||||
|
color="#000"
|
||||||
|
fill="#fff"
|
||||||
|
fill-opacity=".855"
|
||||||
|
transform="translate(0 -286.417)"
|
||||||
|
id="g1166"
|
||||||
|
style="fill:#000000;fill-opacity:0.99637681">
|
||||||
|
<rect
|
||||||
|
ry=".545"
|
||||||
|
rx="0"
|
||||||
|
y="288.816"
|
||||||
|
x="2.516"
|
||||||
|
height="1.451"
|
||||||
|
width="5.551"
|
||||||
|
style="marker:none;fill:#000000;fill-opacity:0.99637681"
|
||||||
|
overflow="visible"
|
||||||
|
paint-order="stroke markers fill"
|
||||||
|
id="rect1160" />
|
||||||
|
<rect
|
||||||
|
ry=".545"
|
||||||
|
rx="0"
|
||||||
|
y="290.973"
|
||||||
|
x="2.516"
|
||||||
|
height="1.451"
|
||||||
|
width="5.551"
|
||||||
|
style="marker:none;fill:#000000;fill-opacity:0.99637681"
|
||||||
|
overflow="visible"
|
||||||
|
paint-order="stroke markers fill"
|
||||||
|
id="rect1162" />
|
||||||
|
<rect
|
||||||
|
ry=".545"
|
||||||
|
rx="0"
|
||||||
|
y="293.15"
|
||||||
|
x="2.516"
|
||||||
|
height="1.451"
|
||||||
|
width="5.551"
|
||||||
|
style="marker:none;fill:#000000;fill-opacity:0.99637681"
|
||||||
|
overflow="visible"
|
||||||
|
paint-order="stroke markers fill"
|
||||||
|
id="rect1164" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 2.5 KiB |
@@ -1,7 +1,91 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 10.583 10.583">
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
<g color="#000" fill="#fff" fill-opacity=".855" transform="translate(0 -286.417)">
|
<svg
|
||||||
<rect ry=".545" rx="0" y="288.816" x="2.516" height="1.451" width="5.551" style="marker:none" overflow="visible" paint-order="stroke markers fill"/>
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
<rect ry=".545" rx="0" y="290.973" x="2.516" height="1.451" width="5.551" style="marker:none" overflow="visible" paint-order="stroke markers fill"/>
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
<rect ry=".545" rx="0" y="293.15" x="2.516" height="1.451" width="5.551" style="marker:none" overflow="visible" paint-order="stroke markers fill"/>
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="40"
|
||||||
|
height="40"
|
||||||
|
viewBox="0 0 10.583 10.583"
|
||||||
|
version="1.1"
|
||||||
|
id="svg1382"
|
||||||
|
sodipodi:docname="side-menu-opener-hamburger.svg"
|
||||||
|
inkscape:version="0.92.4 (5da689c313, 2019-01-14)">
|
||||||
|
<metadata
|
||||||
|
id="metadata1388">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<defs
|
||||||
|
id="defs1386" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1"
|
||||||
|
objecttolerance="10"
|
||||||
|
gridtolerance="10"
|
||||||
|
guidetolerance="10"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:window-width="1918"
|
||||||
|
inkscape:window-height="1008"
|
||||||
|
id="namedview1384"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="5.9"
|
||||||
|
inkscape:cx="108.13559"
|
||||||
|
inkscape:cy="3.8983051"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="41"
|
||||||
|
inkscape:window-maximized="0"
|
||||||
|
inkscape:current-layer="svg1382" />
|
||||||
|
<g
|
||||||
|
color="#000"
|
||||||
|
fill="#fff"
|
||||||
|
fill-opacity=".855"
|
||||||
|
transform="translate(0 -286.417)"
|
||||||
|
id="g1380"
|
||||||
|
style="fill:#ffffff;fill-opacity:1">
|
||||||
|
<rect
|
||||||
|
ry=".545"
|
||||||
|
rx="0"
|
||||||
|
y="288.816"
|
||||||
|
x="2.516"
|
||||||
|
height="1.451"
|
||||||
|
width="5.551"
|
||||||
|
style="marker:none;fill:#ffffff;fill-opacity:1"
|
||||||
|
overflow="visible"
|
||||||
|
paint-order="stroke markers fill"
|
||||||
|
id="rect1374" />
|
||||||
|
<rect
|
||||||
|
ry=".545"
|
||||||
|
rx="0"
|
||||||
|
y="290.973"
|
||||||
|
x="2.516"
|
||||||
|
height="1.451"
|
||||||
|
width="5.551"
|
||||||
|
style="marker:none;fill:#ffffff;fill-opacity:1"
|
||||||
|
overflow="visible"
|
||||||
|
paint-order="stroke markers fill"
|
||||||
|
id="rect1376" />
|
||||||
|
<rect
|
||||||
|
ry=".545"
|
||||||
|
rx="0"
|
||||||
|
y="293.15"
|
||||||
|
x="2.516"
|
||||||
|
height="1.451"
|
||||||
|
width="5.551"
|
||||||
|
style="marker:none;fill:#ffffff;fill-opacity:1"
|
||||||
|
overflow="visible"
|
||||||
|
paint-order="stroke markers fill"
|
||||||
|
id="rect1378" />
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 649 B After Width: | Height: | Size: 2.4 KiB |
@@ -1,19 +1,172 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 10.583 10.583">
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
<g transform="translate(.3 -286.074)" fill="#fff" color="#000" fill-opacity=".855">
|
<svg
|
||||||
<rect ry="0" rx="0" y="288.474" x="4.266" height="1.451" width="1.451" style="marker:none" overflow="visible" paint-order="stroke markers fill"/>
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
<g transform="translate(-.13)">
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
<rect style="marker:none" width="1.451" height="1.451" x="6.445" y="288.474" rx="0" ry="0" overflow="visible" paint-order="stroke markers fill"/>
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
<rect style="marker:none" width="1.451" height="1.451" x="2.345" y="288.474" rx="0" ry="0" overflow="visible" paint-order="stroke markers fill"/>
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="40"
|
||||||
|
height="40"
|
||||||
|
viewBox="0 0 10.583 10.583"
|
||||||
|
version="1.1"
|
||||||
|
id="svg1321"
|
||||||
|
sodipodi:docname="side-menu-opener.svg"
|
||||||
|
inkscape:version="0.92.4 (5da689c313, 2019-01-14)">
|
||||||
|
<metadata
|
||||||
|
id="metadata1327">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<defs
|
||||||
|
id="defs1325" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1"
|
||||||
|
objecttolerance="10"
|
||||||
|
gridtolerance="10"
|
||||||
|
guidetolerance="10"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:window-width="1918"
|
||||||
|
inkscape:window-height="1008"
|
||||||
|
id="namedview1323"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="5.9"
|
||||||
|
inkscape:cx="78.983051"
|
||||||
|
inkscape:cy="5.5932203"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="41"
|
||||||
|
inkscape:window-maximized="0"
|
||||||
|
inkscape:current-layer="svg1321" />
|
||||||
|
<g
|
||||||
|
transform="translate(.3 -286.074)"
|
||||||
|
fill="#fff"
|
||||||
|
color="#000"
|
||||||
|
fill-opacity=".855"
|
||||||
|
id="g1319"
|
||||||
|
style="fill:#ffffff;fill-opacity:0.94565219">
|
||||||
|
<rect
|
||||||
|
ry="0"
|
||||||
|
rx="0"
|
||||||
|
y="288.474"
|
||||||
|
x="4.266"
|
||||||
|
height="1.451"
|
||||||
|
width="1.451"
|
||||||
|
style="marker:none;fill:#ffffff;fill-opacity:0.94565219"
|
||||||
|
overflow="visible"
|
||||||
|
paint-order="stroke markers fill"
|
||||||
|
id="rect1295" />
|
||||||
|
<g
|
||||||
|
transform="translate(-.13)"
|
||||||
|
id="g1301"
|
||||||
|
style="fill:#ffffff;fill-opacity:0.94565219">
|
||||||
|
<rect
|
||||||
|
style="marker:none;fill:#ffffff;fill-opacity:0.94565219"
|
||||||
|
width="1.451"
|
||||||
|
height="1.451"
|
||||||
|
x="6.445"
|
||||||
|
y="288.474"
|
||||||
|
rx="0"
|
||||||
|
ry="0"
|
||||||
|
overflow="visible"
|
||||||
|
paint-order="stroke markers fill"
|
||||||
|
id="rect1297" />
|
||||||
|
<rect
|
||||||
|
style="marker:none;fill:#ffffff;fill-opacity:0.94565219"
|
||||||
|
width="1.451"
|
||||||
|
height="1.451"
|
||||||
|
x="2.345"
|
||||||
|
y="288.474"
|
||||||
|
rx="0"
|
||||||
|
ry="0"
|
||||||
|
overflow="visible"
|
||||||
|
paint-order="stroke markers fill"
|
||||||
|
id="rect1299" />
|
||||||
</g>
|
</g>
|
||||||
<rect ry="0" rx="0" y="290.631" x="4.266" height="1.451" width="1.451" style="marker:none" overflow="visible" paint-order="stroke markers fill"/>
|
<rect
|
||||||
<g transform="translate(-.13 2.157)">
|
ry="0"
|
||||||
<rect style="marker:none" width="1.451" height="1.451" x="6.445" y="288.474" rx="0" ry="0" overflow="visible" paint-order="stroke markers fill"/>
|
rx="0"
|
||||||
<rect style="marker:none" width="1.451" height="1.451" x="2.345" y="288.474" rx="0" ry="0" overflow="visible" paint-order="stroke markers fill"/>
|
y="290.631"
|
||||||
|
x="4.266"
|
||||||
|
height="1.451"
|
||||||
|
width="1.451"
|
||||||
|
style="marker:none;fill:#ffffff;fill-opacity:0.94565219"
|
||||||
|
overflow="visible"
|
||||||
|
paint-order="stroke markers fill"
|
||||||
|
id="rect1303" />
|
||||||
|
<g
|
||||||
|
transform="translate(-.13 2.157)"
|
||||||
|
id="g1309"
|
||||||
|
style="fill:#ffffff;fill-opacity:0.94565219">
|
||||||
|
<rect
|
||||||
|
style="marker:none;fill:#ffffff;fill-opacity:0.94565219"
|
||||||
|
width="1.451"
|
||||||
|
height="1.451"
|
||||||
|
x="6.445"
|
||||||
|
y="288.474"
|
||||||
|
rx="0"
|
||||||
|
ry="0"
|
||||||
|
overflow="visible"
|
||||||
|
paint-order="stroke markers fill"
|
||||||
|
id="rect1305" />
|
||||||
|
<rect
|
||||||
|
style="marker:none;fill:#ffffff;fill-opacity:0.94565219"
|
||||||
|
width="1.451"
|
||||||
|
height="1.451"
|
||||||
|
x="2.345"
|
||||||
|
y="288.474"
|
||||||
|
rx="0"
|
||||||
|
ry="0"
|
||||||
|
overflow="visible"
|
||||||
|
paint-order="stroke markers fill"
|
||||||
|
id="rect1307" />
|
||||||
</g>
|
</g>
|
||||||
<rect ry="0" rx="0" y="292.808" x="4.266" height="1.451" width="1.451" style="marker:none" overflow="visible" paint-order="stroke markers fill"/>
|
<rect
|
||||||
<g transform="translate(-.13 4.334)">
|
ry="0"
|
||||||
<rect style="marker:none" width="1.451" height="1.451" x="6.445" y="288.474" rx="0" ry="0" overflow="visible" paint-order="stroke markers fill"/>
|
rx="0"
|
||||||
<rect style="marker:none" width="1.451" height="1.451" x="2.345" y="288.474" rx="0" ry="0" overflow="visible" paint-order="stroke markers fill"/>
|
y="292.808"
|
||||||
|
x="4.266"
|
||||||
|
height="1.451"
|
||||||
|
width="1.451"
|
||||||
|
style="marker:none;fill:#ffffff;fill-opacity:0.94565219"
|
||||||
|
overflow="visible"
|
||||||
|
paint-order="stroke markers fill"
|
||||||
|
id="rect1311" />
|
||||||
|
<g
|
||||||
|
transform="translate(-.13 4.334)"
|
||||||
|
id="g1317"
|
||||||
|
style="fill:#ffffff;fill-opacity:0.94565219">
|
||||||
|
<rect
|
||||||
|
style="marker:none;fill:#ffffff;fill-opacity:0.94565219"
|
||||||
|
width="1.451"
|
||||||
|
height="1.451"
|
||||||
|
x="6.445"
|
||||||
|
y="288.474"
|
||||||
|
rx="0"
|
||||||
|
ry="0"
|
||||||
|
overflow="visible"
|
||||||
|
paint-order="stroke markers fill"
|
||||||
|
id="rect1313" />
|
||||||
|
<rect
|
||||||
|
style="marker:none;fill:#ffffff;fill-opacity:0.94565219"
|
||||||
|
width="1.451"
|
||||||
|
height="1.451"
|
||||||
|
x="2.345"
|
||||||
|
y="288.474"
|
||||||
|
rx="0"
|
||||||
|
ry="0"
|
||||||
|
overflow="visible"
|
||||||
|
paint-order="stroke markers fill"
|
||||||
|
id="rect1315" />
|
||||||
</g>
|
</g>
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 4.5 KiB |
@@ -27,7 +27,9 @@ use OCP\IRequest;
|
|||||||
class CssController extends Controller
|
class CssController extends Controller
|
||||||
{
|
{
|
||||||
|
|
||||||
/** @var \OCP\IConfig */
|
/**
|
||||||
|
* @var \OCP\IConfig
|
||||||
|
*/
|
||||||
protected $config;
|
protected $config;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -64,6 +66,7 @@ class CssController extends Controller
|
|||||||
],
|
],
|
||||||
'display-logo' => (bool) $this->config->getAppValue('side_menu', 'display-logo', 1),
|
'display-logo' => (bool) $this->config->getAppValue('side_menu', 'display-logo', 1),
|
||||||
'opener-only' => (bool) $this->config->getAppValue('side_menu', 'opener-only', 0),
|
'opener-only' => (bool) $this->config->getAppValue('side_menu', 'opener-only', 0),
|
||||||
|
'external-sites-in-top-menu' => (bool) $this->config->getAppValue('side_menu', 'external-sites-in-top-menu', 0),
|
||||||
'size-icon' => $this->config->getAppValue('side_menu', 'size-icon', 'normal'),
|
'size-icon' => $this->config->getAppValue('side_menu', 'size-icon', 'normal'),
|
||||||
'size-text' => $this->config->getAppValue('side_menu', 'size-text', 'normal'),
|
'size-text' => $this->config->getAppValue('side_menu', 'size-text', 'normal'),
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -27,7 +27,9 @@ use OCP\IRequest;
|
|||||||
class JsController extends Controller
|
class JsController extends Controller
|
||||||
{
|
{
|
||||||
|
|
||||||
/** @var \OCP\IConfig */
|
/**
|
||||||
|
* @var \OCP\IConfig
|
||||||
|
*/
|
||||||
protected $config;
|
protected $config;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -54,6 +56,8 @@ class JsController extends Controller
|
|||||||
$parameters = [
|
$parameters = [
|
||||||
'opener-position' => $this->config->getAppValue('side_menu', 'opener-position', 'before'),
|
'opener-position' => $this->config->getAppValue('side_menu', 'opener-position', 'before'),
|
||||||
'opener-hover' => (bool) $this->config->getAppValue('side_menu', 'opener-hover', '0'),
|
'opener-hover' => (bool) $this->config->getAppValue('side_menu', 'opener-hover', '0'),
|
||||||
|
'external-sites-in-top-menu' => (bool) $this->config->getAppValue('side_menu', 'external-sites-in-top-menu', 0),
|
||||||
|
'force-light-icon' => (bool) $this->config->getAppValue('side_menu', 'force-light-icon', '0'),
|
||||||
'hide-when-no-apps' => (bool) $this->config->getAppValue('side_menu', 'hide-when-no-apps', '0'),
|
'hide-when-no-apps' => (bool) $this->config->getAppValue('side_menu', 'hide-when-no-apps', '0'),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,72 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @license GNU AGPL version 3 or any later version
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Affero General Public License as
|
||||||
|
* published by the Free Software Foundation, either version 3 of the
|
||||||
|
* License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Affero General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace OCA\SideMenu\Controller;
|
||||||
|
|
||||||
|
use OCP\AppFramework\Controller;
|
||||||
|
use OCP\AppFramework\Http\TemplateResponse;
|
||||||
|
use OCP\AppFramework\Http\Response;
|
||||||
|
use OCP\IConfig;
|
||||||
|
use OCP\IRequest;
|
||||||
|
use OCP\IUserSession;
|
||||||
|
|
||||||
|
class PersonalSettingController extends Controller
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \OCP\IConfig
|
||||||
|
*/
|
||||||
|
protected $config;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var IUserSession
|
||||||
|
*/
|
||||||
|
private $userSession;
|
||||||
|
|
||||||
|
public function __construct($appName, IRequest $request, IConfig $config, IUserSession $userSession)
|
||||||
|
{
|
||||||
|
parent::__construct($appName, $request);
|
||||||
|
|
||||||
|
$this->config = $config;
|
||||||
|
$this->userSession = $userSession;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @NoAdminRequired
|
||||||
|
*
|
||||||
|
* @return Response
|
||||||
|
*/
|
||||||
|
public function valueSet($name, $value)
|
||||||
|
{
|
||||||
|
$doSave = false;
|
||||||
|
$user = $this->userSession->getUser();
|
||||||
|
|
||||||
|
if ($name === 'enabled') {
|
||||||
|
$doSave = true;
|
||||||
|
|
||||||
|
if (!in_array($value, ['0', '1'])) {
|
||||||
|
$value = '1';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($doSave) {
|
||||||
|
$this->config->setUserValue($user->getUid(), 'side_menu', 'enabled', $value);
|
||||||
|
}
|
||||||
|
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -26,13 +26,19 @@ use OCP\IConfig;
|
|||||||
|
|
||||||
class Admin implements ISettings
|
class Admin implements ISettings
|
||||||
{
|
{
|
||||||
/** @var IL10N */
|
/**
|
||||||
|
* @var IL10N
|
||||||
|
*/
|
||||||
private $l;
|
private $l;
|
||||||
|
|
||||||
/** @var ILogger */
|
/**
|
||||||
|
* @var ILogger
|
||||||
|
*/
|
||||||
private $logger;
|
private $logger;
|
||||||
|
|
||||||
/** @var IConfig */
|
/**
|
||||||
|
* @var IConfig
|
||||||
|
*/
|
||||||
private $config;
|
private $config;
|
||||||
|
|
||||||
public function __construct(IL10N $l, ILogger $logger, IConfig $config)
|
public function __construct(IL10N $l, ILogger $logger, IConfig $config)
|
||||||
@@ -55,6 +61,7 @@ class Admin implements ISettings
|
|||||||
'background-color-to' => $backgroundColorTo,
|
'background-color-to' => $backgroundColorTo,
|
||||||
'current-app-background-color' => $this->config->getAppValue('side_menu', 'current-app-background-color', '#444444'),
|
'current-app-background-color' => $this->config->getAppValue('side_menu', 'current-app-background-color', '#444444'),
|
||||||
'text-color' => $this->config->getAppValue('side_menu', 'text-color', '#FFFFFF'),
|
'text-color' => $this->config->getAppValue('side_menu', 'text-color', '#FFFFFF'),
|
||||||
|
'force-light-icon' => $this->config->getAppValue('side_menu', 'force-light-icon', '0'),
|
||||||
'cache' => $this->config->getAppValue('side_menu', 'cache', '0'),
|
'cache' => $this->config->getAppValue('side_menu', 'cache', '0'),
|
||||||
'opener' => $this->config->getAppValue('side_menu', 'opener', 'side-menu-opener'),
|
'opener' => $this->config->getAppValue('side_menu', 'opener', 'side-menu-opener'),
|
||||||
'display-logo' => $this->config->getAppValue('side_menu', 'display-logo', '1'),
|
'display-logo' => $this->config->getAppValue('side_menu', 'display-logo', '1'),
|
||||||
@@ -64,6 +71,7 @@ class Admin implements ISettings
|
|||||||
'hide-when-no-apps' => $this->config->getAppValue('side_menu', 'hide-when-no-apps', '0'),
|
'hide-when-no-apps' => $this->config->getAppValue('side_menu', 'hide-when-no-apps', '0'),
|
||||||
'size-icon' => $this->config->getAppValue('side_menu', 'size-icon', 'normal'),
|
'size-icon' => $this->config->getAppValue('side_menu', 'size-icon', 'normal'),
|
||||||
'size-text' => $this->config->getAppValue('side_menu', 'size-text', 'normal'),
|
'size-text' => $this->config->getAppValue('side_menu', 'size-text', 'normal'),
|
||||||
|
'external-sites-in-top-menu' => $this->config->getAppValue('side_menu', 'external-sites-in-top-menu', '0'),
|
||||||
];
|
];
|
||||||
|
|
||||||
return new TemplateResponse('side_menu', 'settings/admin-form', $parameters, '');
|
return new TemplateResponse('side_menu', 'settings/admin-form', $parameters, '');
|
||||||
|
|||||||
@@ -22,12 +22,16 @@ use OCP\IL10N;
|
|||||||
use OCP\IURLGenerator;
|
use OCP\IURLGenerator;
|
||||||
use OCP\Settings\IIconSection;
|
use OCP\Settings\IIconSection;
|
||||||
|
|
||||||
class Section implements IIconSection
|
class AdminSection implements IIconSection
|
||||||
{
|
{
|
||||||
/** @var IL10N */
|
/**
|
||||||
|
* @var IL10N
|
||||||
|
*/
|
||||||
private $l;
|
private $l;
|
||||||
|
|
||||||
/** @var IURLGenerator */
|
/**
|
||||||
|
* @var IURLGenerator
|
||||||
|
*/
|
||||||
private $url;
|
private $url;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -0,0 +1,91 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @license GNU AGPL version 3 or any later version
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Affero General Public License as
|
||||||
|
* published by the Free Software Foundation, either version 3 of the
|
||||||
|
* License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Affero General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace OCA\SideMenu\Settings;
|
||||||
|
|
||||||
|
use OCP\AppFramework\Http\TemplateResponse;
|
||||||
|
use OCP\IL10N;
|
||||||
|
use OCP\ILogger;
|
||||||
|
use OCP\Settings\ISettings;
|
||||||
|
use OCP\IConfig;
|
||||||
|
use OCP\IUserSession;
|
||||||
|
|
||||||
|
class Personal implements ISettings
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var IL10N
|
||||||
|
*/
|
||||||
|
private $l;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var ILogger
|
||||||
|
*/
|
||||||
|
private $logger;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var IConfig
|
||||||
|
*/
|
||||||
|
private $config;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var IUserSession
|
||||||
|
*/
|
||||||
|
private $userSession;
|
||||||
|
|
||||||
|
public function __construct(IL10N $l, ILogger $logger, IConfig $config, IUserSession $userSession)
|
||||||
|
{
|
||||||
|
$this->l = $l;
|
||||||
|
$this->logger = $logger;
|
||||||
|
$this->config = $config;
|
||||||
|
$this->userSession = $userSession;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return TemplateResponse
|
||||||
|
*/
|
||||||
|
public function getForm()
|
||||||
|
{
|
||||||
|
$user = $this->userSession->getUser();
|
||||||
|
|
||||||
|
$parameters = [
|
||||||
|
'enabled' => $this->config->getUserValue($user->getUid(), 'side_menu', 'enabled', '1'),
|
||||||
|
];
|
||||||
|
|
||||||
|
return new TemplateResponse('side_menu', 'settings/personal-form', $parameters, '');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string the section ID, e.g. 'sharing'
|
||||||
|
*/
|
||||||
|
public function getSection()
|
||||||
|
{
|
||||||
|
return 'side_menu';
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return int whether the form should be rather on the top or bottom of
|
||||||
|
* the admin section. The forms are arranged in ascending order of the
|
||||||
|
* priority values. It is required to return a value between 0 and 100.
|
||||||
|
*
|
||||||
|
* E.g.: 70
|
||||||
|
*/
|
||||||
|
public function getPriority()
|
||||||
|
{
|
||||||
|
return 70;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,88 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @license GNU AGPL version 3 or any later version
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Affero General Public License as
|
||||||
|
* published by the Free Software Foundation, either version 3 of the
|
||||||
|
* License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Affero General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace OCA\SideMenu\Settings;
|
||||||
|
|
||||||
|
use OCP\IL10N;
|
||||||
|
use OCP\IURLGenerator;
|
||||||
|
use OCP\Settings\IIconSection;
|
||||||
|
|
||||||
|
class PersonalSection implements IIconSection
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var IL10N
|
||||||
|
*/
|
||||||
|
private $l;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var IURLGenerator
|
||||||
|
*/
|
||||||
|
private $url;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param IURLGenerator $url
|
||||||
|
* @param IL10N $l
|
||||||
|
*/
|
||||||
|
public function __construct(IURLGenerator $url, IL10N $l)
|
||||||
|
{
|
||||||
|
$this->url = $url;
|
||||||
|
$this->l = $l;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* returns the ID of the section. It is supposed to be a lower case string,
|
||||||
|
* e.g. 'ldap'
|
||||||
|
*
|
||||||
|
* @returns string
|
||||||
|
*/
|
||||||
|
public function getID()
|
||||||
|
{
|
||||||
|
return 'side_menu';
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* returns the translated name as it should be displayed, e.g. 'LDAP / AD
|
||||||
|
* integration'. Use the L10N service to translate it.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getName()
|
||||||
|
{
|
||||||
|
return $this->l->t('Side menu');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return int whether the form should be rather on the top or bottom of
|
||||||
|
* the settings navigation. The sections are arranged in ascending order of
|
||||||
|
* the priority values. It is required to return a value between 0 and 99.
|
||||||
|
*
|
||||||
|
* E.g.: 70
|
||||||
|
*/
|
||||||
|
public function getPriority()
|
||||||
|
{
|
||||||
|
return 70;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
|
public function getIcon()
|
||||||
|
{
|
||||||
|
return $this->url->imagePath('theming', 'app-dark.svg');
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -13,6 +13,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nextcloud/axios": "^1.3.2",
|
"@nextcloud/axios": "^1.3.2",
|
||||||
"@nextcloud/vue": "^1.4.0",
|
"@nextcloud/vue": "^1.4.0",
|
||||||
|
"trim": "0.0.1",
|
||||||
"vue": "^2.6.11"
|
"vue": "^2.6.11"
|
||||||
},
|
},
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
|
|
||||||
<ul class="side-menu-apps-list">
|
<ul class="side-menu-apps-list">
|
||||||
<li v-for="app in apps" v-bind:class="{'side-menu-app': true, 'active': app.active}">
|
<li v-for="app in apps" v-bind:class="{'side-menu-app': true, 'active': app.active}">
|
||||||
<a v-bind:href="app.href">
|
<a v-bind:href="app.href" v-bind:title="app.name">
|
||||||
<span class="side-menu-app-icon" v-html="app.icon"></span>
|
<span class="side-menu-app-icon" v-html="app.icon"></span>
|
||||||
<span class="side-menu-app-text" v-html="app.name"></span>
|
<span class="side-menu-app-text" v-html="app.name"></span>
|
||||||
</a>
|
</a>
|
||||||
@@ -36,41 +36,63 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import trim from 'trim'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'SideMenu',
|
name: 'SideMenu',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
apps: [],
|
apps: [],
|
||||||
logo: null
|
logo: null,
|
||||||
|
forceLightIcon: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
retrieveApps() {
|
retrieveApps() {
|
||||||
this.apps = []
|
this.apps = []
|
||||||
const links = document.querySelectorAll('#appmenu a')
|
const links = document.querySelectorAll('#appmenu a')
|
||||||
|
|
||||||
for (let element of links) {
|
for (let element of links) {
|
||||||
let href = element.getAttribute('href')
|
let href = element.getAttribute('href')
|
||||||
|
var parent = element.parentNode
|
||||||
|
|
||||||
|
if (!parent) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
var dataId = parent.getAttribute('data-id')
|
||||||
|
dataId = dataId !== null ? dataId : ''
|
||||||
|
|
||||||
|
if (this.ignoreExternalSites && dataId.indexOf('external_index') !== -1) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
if (href !== '#') {
|
if (href !== '#') {
|
||||||
let svg = element.querySelector('svg').outerHTML
|
let svg = element.querySelector('svg').outerHTML
|
||||||
|
|
||||||
svg = svg.replace(/(height|width)="20"/, '')
|
svg = svg
|
||||||
|
.replace(/(height|width)="20"/, '')
|
||||||
|
.replace('id="invertMenuMain', 'id="invertSideMenu')
|
||||||
|
.replace('url(#invertMenuMain', 'url(#invertSideMenu')
|
||||||
|
|
||||||
|
if (this.forceLightIcon) {
|
||||||
|
svg = svg.replace(/filter="url[^"]+"/, '')
|
||||||
|
}
|
||||||
|
|
||||||
this.apps.push({
|
this.apps.push({
|
||||||
href: href,
|
href: href,
|
||||||
name: element.querySelector('span').innerHTML,
|
name: trim(element.querySelector('span').innerHTML),
|
||||||
icon: svg,
|
icon: svg,
|
||||||
active: element.classList.contains('active')
|
active: element.classList.contains('active')
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
(function(apps) {
|
(function(apps) {
|
||||||
window.setTimeout(function() {
|
window.setTimeout(function() {
|
||||||
jQuery('body').trigger('side-menu.apps', [apps])
|
jQuery('body').trigger('side-menu.apps', [apps])
|
||||||
}, 1000)
|
}, 1000)
|
||||||
})(this.apps)
|
})(this.apps)
|
||||||
},
|
},
|
||||||
retrieveLogo() {
|
retrieveLogo() {
|
||||||
const ncLogo = document.querySelector('#nextcloud .logo')
|
const ncLogo = document.querySelector('#nextcloud .logo')
|
||||||
@@ -87,16 +109,18 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
created() {
|
mounted() {
|
||||||
this.retrieveApps();
|
this.retrieveApps()
|
||||||
this.retrieveLogo();
|
this.retrieveLogo()
|
||||||
|
this.forceLightIcon = document.querySelector('#side-menu-container').getAttribute('data-forcelighticon') == 1;
|
||||||
|
this.ignoreExternalSites = document.querySelector('#side-menu-container').getAttribute('data-externalsitesintopmenu') == 1;
|
||||||
|
|
||||||
const menu = document.querySelector('#appmenu')
|
const menu = document.querySelector('#appmenu')
|
||||||
|
|
||||||
if (menu) {
|
if (menu) {
|
||||||
const config = {attributes: true, childList: true, subtree: true};
|
const config = {attributes: true, childList: true, subtree: true}
|
||||||
const observer = new MutationObserver(this.retrieveApps);
|
const observer = new MutationObserver(this.retrieveApps)
|
||||||
observer.observe(menu, config);
|
observer.observe(menu, config)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,35 +15,32 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const elements = [
|
let elements = []
|
||||||
'side-menu-background-color',
|
|
||||||
'side-menu-background-color-to',
|
|
||||||
'side-menu-current-app-background-color',
|
|
||||||
'side-menu-text-color',
|
|
||||||
'side-menu-opener',
|
|
||||||
'side-menu-opener-position',
|
|
||||||
'side-menu-opener-hover',
|
|
||||||
'side-menu-opener-only',
|
|
||||||
'side-menu-display-logo',
|
|
||||||
'side-menu-hide-when-no-apps',
|
|
||||||
'side-menu-size-icon',
|
|
||||||
'side-menu-size-text',
|
|
||||||
'side-menu-cache',
|
|
||||||
];
|
|
||||||
|
|
||||||
const selector = '#side-menu-message';
|
const selector = '#side-menu-message';
|
||||||
|
|
||||||
|
const userConfig = (name, value, callbacks) => {
|
||||||
|
const url = OC.generateUrl('/apps/side_menu/personalSetting/valueSet')
|
||||||
|
|
||||||
|
$.post(url, {name: name, value: value}, callbacks.success)
|
||||||
|
.fail(callbacks.error)
|
||||||
|
}
|
||||||
|
|
||||||
|
const appConfig = (name, value, callbacks) => {
|
||||||
|
OCP.AppConfig.setValue('side_menu', name, value, callbacks)
|
||||||
|
}
|
||||||
|
|
||||||
const saveSettings = (key) => {
|
const saveSettings = (key) => {
|
||||||
const element = elements[key]
|
const element = elements.get(key)
|
||||||
const name = $('#' + element).attr('name')
|
const name = $(element).attr('name')
|
||||||
let value = $('#' + element).val()
|
let value = $(element).val()
|
||||||
const size = elements.length
|
const size = elements.length
|
||||||
|
|
||||||
if (element === 'side-menu-cache') {
|
if (element === 'side-menu-cache') {
|
||||||
value++
|
value++
|
||||||
}
|
}
|
||||||
|
|
||||||
OCP.AppConfig.setValue('side_menu', name, value, {
|
const callbacks = {
|
||||||
success: () => {
|
success: () => {
|
||||||
OC.msg.finishedSuccess(
|
OC.msg.finishedSuccess(
|
||||||
selector,
|
selector,
|
||||||
@@ -59,10 +56,18 @@ const saveSettings = (key) => {
|
|||||||
error: () => {
|
error: () => {
|
||||||
OC.msg.finishedError(selector, t('side_menu', 'Error while saving "' + element + '"'))
|
OC.msg.finishedError(selector, t('side_menu', 'Error while saving "' + element + '"'))
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
|
|
||||||
|
if ($(element).is('[data-personal]')) {
|
||||||
|
userConfig(name, value, callbacks)
|
||||||
|
} else {
|
||||||
|
appConfig(name, value, callbacks)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready(() => {
|
$(document).ready(() => {
|
||||||
|
elements = $('.side-menu-setting')
|
||||||
|
|
||||||
$('#side-menu-save').on('click', (event) => {
|
$('#side-menu-save').on('click', (event) => {
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
OC.msg.startSaving(selector)
|
OC.msg.startSaving(selector)
|
||||||
|
|||||||
@@ -8,6 +8,20 @@
|
|||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
<?php if ($_['external-sites-in-top-menu'] === false): ?>
|
||||||
|
#appmenu {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#appmenu + nav {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
<?php else: ?>
|
||||||
|
.app-hidden {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php if ($_['opener-only'] === true): ?>
|
<?php if ($_['opener-only'] === true): ?>
|
||||||
#nextcloud {
|
#nextcloud {
|
||||||
display: none;
|
display: none;
|
||||||
@@ -32,11 +46,6 @@
|
|||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
#side-menu.hide-opener .side-menu-apps-list {
|
|
||||||
/* height: calc(100vh);
|
|
||||||
top: 0; */
|
|
||||||
}
|
|
||||||
|
|
||||||
<?php if ($_['size-text'] === 'hidden'): ?>
|
<?php if ($_['size-text'] === 'hidden'): ?>
|
||||||
#side-menu, .side-menu-apps-list {
|
#side-menu, .side-menu-apps-list {
|
||||||
<?php if ($_['size-icon'] === 'big'): ?>
|
<?php if ($_['size-icon'] === 'big'): ?>
|
||||||
|
|||||||
@@ -5,6 +5,10 @@
|
|||||||
var body = $('body')
|
var body = $('body')
|
||||||
var isTouchDevice = window.matchMedia("(pointer: coarse)").matches
|
var isTouchDevice = window.matchMedia("(pointer: coarse)").matches
|
||||||
|
|
||||||
|
<?php if ($_['force-light-icon']): ?>
|
||||||
|
sideMenuContainer.attr('data-forcelighticon', '1')
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
body.on('side-menu.apps', function(e, apps) {
|
body.on('side-menu.apps', function(e, apps) {
|
||||||
<?php if ($_['hide-when-no-apps']): ?>
|
<?php if ($_['hide-when-no-apps']): ?>
|
||||||
sideMenu = $('#side-menu')
|
sideMenu = $('#side-menu')
|
||||||
@@ -24,6 +28,18 @@
|
|||||||
var headerMenuOpener = $('#header .side-menu-opener')
|
var headerMenuOpener = $('#header .side-menu-opener')
|
||||||
var sideMenuOpener = $('#side-menu .side-menu-opener')
|
var sideMenuOpener = $('#side-menu .side-menu-opener')
|
||||||
|
|
||||||
|
sideMenuFocus = function() {
|
||||||
|
var a = sideMenu.find('.side-menu-app.active a')
|
||||||
|
|
||||||
|
if (a.length === 0) {
|
||||||
|
a = sideMenu.find('.side-menu-app:first-child a')
|
||||||
|
}
|
||||||
|
|
||||||
|
if (a.length > 0) {
|
||||||
|
a.focus()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
<?php if ($_['opener-hover']): ?>
|
<?php if ($_['opener-hover']): ?>
|
||||||
var sideMenuMouseLeave = function() {
|
var sideMenuMouseLeave = function() {
|
||||||
sideMenu
|
sideMenu
|
||||||
@@ -39,6 +55,8 @@
|
|||||||
sideMenu
|
sideMenu
|
||||||
.addClass('open')
|
.addClass('open')
|
||||||
.on('mouseenter', sideMenuMouseEnter)
|
.on('mouseenter', sideMenuMouseEnter)
|
||||||
|
|
||||||
|
sideMenuFocus()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isTouchDevice) {
|
if (!isTouchDevice) {
|
||||||
@@ -49,11 +67,23 @@
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
headerMenuOpener.on('click', function() {
|
headerMenuOpener.on('click', function() {
|
||||||
sideMenu.addClass('open');
|
sideMenu.addClass('open')
|
||||||
|
sideMenu.find('.side-menu-app.active a').focus()
|
||||||
})
|
})
|
||||||
|
|
||||||
sideMenuOpener.on('click', function() {
|
sideMenuOpener.on('click', function() {
|
||||||
sideMenu.removeClass('open');
|
sideMenu.removeClass('open')
|
||||||
|
})
|
||||||
|
|
||||||
|
$(document).keydown(function(e) {
|
||||||
|
var key = e.key || e.keyCode
|
||||||
|
|
||||||
|
if ((key === 'o' || key === 79) && e.ctrlKey === true) {
|
||||||
|
e.preventDefault()
|
||||||
|
|
||||||
|
sideMenu.toggleClass('open')
|
||||||
|
sideMenuFocus()
|
||||||
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -65,4 +95,124 @@
|
|||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
sideMenuOpener.insertAfter('#nextcloud')
|
sideMenuOpener.insertAfter('#nextcloud')
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<?php if ($_['external-sites-in-top-menu']): ?>
|
||||||
|
sideMenuContainer.attr('data-externalsitesintopmenu', '1')
|
||||||
|
|
||||||
|
var menuCache = null
|
||||||
|
|
||||||
|
var updateTopMenu = function() {
|
||||||
|
var breakpointMobileWidth = 1024
|
||||||
|
var menu = $('#appmenu')
|
||||||
|
var apps = menu.find('li')
|
||||||
|
var minAppsDesktop = 8
|
||||||
|
var usePercentualAppMenuLimit = 0.9
|
||||||
|
var isMobile = $(window).width() < breakpointMobileWidth
|
||||||
|
var lastShownApp = null
|
||||||
|
var appShown = []
|
||||||
|
var moreApps = $('#more-apps')
|
||||||
|
var navigation = $('#navigation')
|
||||||
|
var navigationApps = $('#apps ul')
|
||||||
|
var appCount = null
|
||||||
|
|
||||||
|
var currentMenuCache = menu.html() + menu.next().html()
|
||||||
|
|
||||||
|
if (currentMenuCache === menuCache) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
navigationApps.html('')
|
||||||
|
|
||||||
|
apps.each(function(i, app) {
|
||||||
|
var dataId = app.getAttribute('data-id')
|
||||||
|
|
||||||
|
if (dataId === null) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
if (dataId.indexOf('external_index') === -1) {
|
||||||
|
app.classList.add('hidden')
|
||||||
|
app.classList.add('app-hidden')
|
||||||
|
} else {
|
||||||
|
app.classList.remove('hidden')
|
||||||
|
app.classList.add('app-external-site')
|
||||||
|
appShown.push(app)
|
||||||
|
navigationApps.append(app.outerHTML)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
var rightHeaderWidth = $('.header-right').outerWidth()
|
||||||
|
var headerWidth = $('header').outerWidth()
|
||||||
|
var availableWidth = headerWidth - $('#nextcloud').outerWidth() - $('#header .side-menu-opener').outerWidth() - (rightHeaderWidth > 210 ? rightHeaderWidth : 210)
|
||||||
|
|
||||||
|
if (!isMobile) {
|
||||||
|
availableWidth = availableWidth * usePercentualAppMenuLimit
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isMobile && appCount > minAppsDesktop) {
|
||||||
|
appCount = minAppsDesktop
|
||||||
|
} else if (!isMobile && appCount < minAppsDesktop) {
|
||||||
|
appCount = minAppsDesktop
|
||||||
|
} else {
|
||||||
|
appCount = Math.floor(availableWidth / $('#appmenu li').width())
|
||||||
|
}
|
||||||
|
|
||||||
|
if (appCount === 0) {
|
||||||
|
menu.addClass('hidden')
|
||||||
|
}
|
||||||
|
|
||||||
|
menu.removeClass('hidden')
|
||||||
|
menu.css('opacity', 1)
|
||||||
|
|
||||||
|
if (appShown.length - 1 - appCount >= 1) {
|
||||||
|
appCount--
|
||||||
|
}
|
||||||
|
|
||||||
|
moreApps.find('a').removeClass('active')
|
||||||
|
|
||||||
|
var k = 0
|
||||||
|
var notInHeader = 0
|
||||||
|
var name
|
||||||
|
|
||||||
|
$(appShown).each(function(i, app) {
|
||||||
|
app = $(app)
|
||||||
|
name = app.data('id')
|
||||||
|
|
||||||
|
if (k < appCount && appCount > 0) {
|
||||||
|
app.removeClass('hidden')
|
||||||
|
lastShownApp = app
|
||||||
|
|
||||||
|
$('#apps li[data-id=' + name + '].app-external-site').addClass('in-header')
|
||||||
|
} else {
|
||||||
|
app.addClass('hidden')
|
||||||
|
notInHeader++
|
||||||
|
|
||||||
|
$('#apps li[data-id=' + name + '].app-external-site').removeClass('in-header')
|
||||||
|
|
||||||
|
if (appCount > 0 && app.children('a').hasClass('active')) {
|
||||||
|
lastShownApp.addClass('hidden')
|
||||||
|
app.removeClass('hidden')
|
||||||
|
notInHeader++
|
||||||
|
|
||||||
|
$('#apps li[data-id=' + name + '].app-external-site')
|
||||||
|
.removeClass('in-header')
|
||||||
|
.addClass('in-header')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
k++
|
||||||
|
})
|
||||||
|
|
||||||
|
if (notInHeader === 0) {
|
||||||
|
moreApps.hide()
|
||||||
|
navigation.hide()
|
||||||
|
} else {
|
||||||
|
moreApps.show()
|
||||||
|
}
|
||||||
|
|
||||||
|
menuCache = menu.html() + menu.next().html()
|
||||||
|
}
|
||||||
|
|
||||||
|
setInterval(updateTopMenu, 50)
|
||||||
|
<?php endif; ?>
|
||||||
})();
|
})();
|
||||||
|
|||||||
@@ -49,11 +49,13 @@ $choicesSizes = [
|
|||||||
id="side-menu-background-color"
|
id="side-menu-background-color"
|
||||||
name="background-color"
|
name="background-color"
|
||||||
type="color"
|
type="color"
|
||||||
|
class="side-menu-setting"
|
||||||
value="<?php print_unescaped($_['background-color']); ?>">
|
value="<?php print_unescaped($_['background-color']); ?>">
|
||||||
<input
|
<input
|
||||||
id="side-menu-background-color-to"
|
id="side-menu-background-color-to"
|
||||||
name="background-color-to"
|
name="background-color-to"
|
||||||
type="color"
|
type="color"
|
||||||
|
class="side-menu-setting"
|
||||||
value="<?php print_unescaped($_['background-color-to']); ?>">
|
value="<?php print_unescaped($_['background-color-to']); ?>">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -67,6 +69,7 @@ $choicesSizes = [
|
|||||||
id="side-menu-current-app-background-color"
|
id="side-menu-current-app-background-color"
|
||||||
name="current-app-background-color"
|
name="current-app-background-color"
|
||||||
type="color"
|
type="color"
|
||||||
|
class="side-menu-setting"
|
||||||
value="<?php print_unescaped($_['current-app-background-color']); ?>">
|
value="<?php print_unescaped($_['current-app-background-color']); ?>">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -80,8 +83,25 @@ $choicesSizes = [
|
|||||||
id="side-menu-text-color"
|
id="side-menu-text-color"
|
||||||
name="text-color"
|
name="text-color"
|
||||||
type="color"
|
type="color"
|
||||||
|
class="side-menu-setting"
|
||||||
value="<?php print_unescaped($_['text-color']); ?>">
|
value="<?php print_unescaped($_['text-color']); ?>">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<label for="side-menu-opener-only" class="settings-hint">
|
||||||
|
<?php p($l->t('Force light icons')); ?>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<select id="side-menu-force-light-icon" name="force-light-icon" class="side-menu-setting">
|
||||||
|
<?php foreach ($choicesYesNo as $label => $value): ?>
|
||||||
|
<option value="<?php echo $value ?>" <?php if ($value === $_['force-light-icon']): ?>selected<?php endif; ?>>
|
||||||
|
<?php echo $l->t($label); ?>
|
||||||
|
</option>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="section">
|
<div class="section">
|
||||||
@@ -92,8 +112,11 @@ $choicesSizes = [
|
|||||||
<?php
|
<?php
|
||||||
$choices = [
|
$choices = [
|
||||||
'Default' => 'side-menu-opener',
|
'Default' => 'side-menu-opener',
|
||||||
|
'Default (dark)' => 'side-menu-opener-dark',
|
||||||
'Hamburger' => 'side-menu-opener-hamburger',
|
'Hamburger' => 'side-menu-opener-hamburger',
|
||||||
|
'Hamburger (dark)' => 'side-menu-opener-hamburger-dark',
|
||||||
'Hamburger 2' => 'side-menu-opener-hamburger-2',
|
'Hamburger 2' => 'side-menu-opener-hamburger-2',
|
||||||
|
'Hamburger 2 (dark)' => 'side-menu-opener-hamburger-2-dark',
|
||||||
];
|
];
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@@ -104,7 +127,7 @@ $choicesSizes = [
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<select id="side-menu-opener" name="opener">
|
<select id="side-menu-opener" name="opener" class="side-menu-setting">
|
||||||
<?php foreach ($choices as $label => $value): ?>
|
<?php foreach ($choices as $label => $value): ?>
|
||||||
<option value="<?php echo $value ?>" <?php if ($value === $_['opener']): ?>selected<?php endif; ?>>
|
<option value="<?php echo $value ?>" <?php if ($value === $_['opener']): ?>selected<?php endif; ?>>
|
||||||
<?php echo $l->t($label); ?>
|
<?php echo $l->t($label); ?>
|
||||||
@@ -127,7 +150,7 @@ $choicesSizes = [
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<select id="side-menu-opener-position" name="opener-position">
|
<select id="side-menu-opener-position" name="opener-position" class="side-menu-setting">
|
||||||
<?php foreach ($choices as $label => $value): ?>
|
<?php foreach ($choices as $label => $value): ?>
|
||||||
<option value="<?php echo $value ?>" <?php if ($value === $_['opener-position']): ?>selected<?php endif; ?>>
|
<option value="<?php echo $value ?>" <?php if ($value === $_['opener-position']): ?>selected<?php endif; ?>>
|
||||||
<?php echo $l->t($label); ?>
|
<?php echo $l->t($label); ?>
|
||||||
@@ -143,7 +166,7 @@ $choicesSizes = [
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<select id="side-menu-opener-only" name="opener-only">
|
<select id="side-menu-opener-only" name="opener-only" class="side-menu-setting">
|
||||||
<?php foreach ($choicesYesNo as $label => $value): ?>
|
<?php foreach ($choicesYesNo as $label => $value): ?>
|
||||||
<option value="<?php echo $value ?>" <?php if ($value === $_['opener-only']): ?>selected<?php endif; ?>>
|
<option value="<?php echo $value ?>" <?php if ($value === $_['opener-only']): ?>selected<?php endif; ?>>
|
||||||
<?php echo $l->t($label); ?>
|
<?php echo $l->t($label); ?>
|
||||||
@@ -159,7 +182,7 @@ $choicesSizes = [
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<select id="side-menu-hide-when-no-apps" name="hide-when-no-apps">
|
<select id="side-menu-hide-when-no-apps" name="hide-when-no-apps" class="side-menu-setting">
|
||||||
<?php foreach ($choicesYesNo as $label => $value): ?>
|
<?php foreach ($choicesYesNo as $label => $value): ?>
|
||||||
<option value="<?php echo $value ?>" <?php if ($value === $_['hide-when-no-apps']): ?>selected<?php endif; ?>>
|
<option value="<?php echo $value ?>" <?php if ($value === $_['hide-when-no-apps']): ?>selected<?php endif; ?>>
|
||||||
<?php echo $l->t($label); ?>
|
<?php echo $l->t($label); ?>
|
||||||
@@ -181,7 +204,7 @@ $choicesSizes = [
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<select id="side-menu-opener-hover" name="opener-hover">
|
<select id="side-menu-opener-hover" name="opener-hover" class="side-menu-setting">
|
||||||
<?php foreach ($choicesYesNo as $label => $value): ?>
|
<?php foreach ($choicesYesNo as $label => $value): ?>
|
||||||
<option value="<?php echo $value ?>" <?php if ($value === $_['opener-hover']): ?>selected<?php endif; ?>>
|
<option value="<?php echo $value ?>" <?php if ($value === $_['opener-hover']): ?>selected<?php endif; ?>>
|
||||||
<?php echo $l->t($label); ?>
|
<?php echo $l->t($label); ?>
|
||||||
@@ -190,6 +213,9 @@ $choicesSizes = [
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<p>Use the shortcut <span class="keyboard-key">Ctrl</span>+<span class="keyboard-key">o</span>
|
||||||
|
to open and to hide the side menu. Use <span class="keyboard-key">tab</span> to navigate.</p>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label for="side-menu-opener" class="settings-hint">
|
<label for="side-menu-opener" class="settings-hint">
|
||||||
<?php p($l->t('Display the logo')); ?>
|
<?php p($l->t('Display the logo')); ?>
|
||||||
@@ -197,7 +223,7 @@ $choicesSizes = [
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<select id="side-menu-display-logo" name="display-logo">
|
<select id="side-menu-display-logo" name="display-logo" class="side-menu-setting">
|
||||||
<?php foreach ($choicesYesNo as $label => $value): ?>
|
<?php foreach ($choicesYesNo as $label => $value): ?>
|
||||||
<option value="<?php echo $value ?>" <?php if ($value === $_['display-logo']): ?>selected<?php endif; ?>>
|
<option value="<?php echo $value ?>" <?php if ($value === $_['display-logo']): ?>selected<?php endif; ?>>
|
||||||
<?php echo $l->t($label); ?>
|
<?php echo $l->t($label); ?>
|
||||||
@@ -213,7 +239,7 @@ $choicesSizes = [
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<select id="side-menu-size-icon" name="size-icon">
|
<select id="side-menu-size-icon" name="size-icon" class="side-menu-setting">
|
||||||
<?php foreach ($choicesSizes as $label => $value): ?>
|
<?php foreach ($choicesSizes as $label => $value): ?>
|
||||||
<option value="<?php echo $value ?>" <?php if ($value === $_['size-icon']): ?>selected<?php endif; ?>>
|
<option value="<?php echo $value ?>" <?php if ($value === $_['size-icon']): ?>selected<?php endif; ?>>
|
||||||
<?php echo $l->t($label); ?> icon
|
<?php echo $l->t($label); ?> icon
|
||||||
@@ -221,7 +247,7 @@ $choicesSizes = [
|
|||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="side-menu-size-text" name="size-text">
|
<select id="side-menu-size-text" name="size-text" class="side-menu-setting">
|
||||||
<?php foreach ($choicesSizes as $label => $value): ?>
|
<?php foreach ($choicesSizes as $label => $value): ?>
|
||||||
<option value="<?php echo $value ?>" <?php if ($value === $_['size-text']): ?>selected<?php endif; ?>>
|
<option value="<?php echo $value ?>" <?php if ($value === $_['size-text']): ?>selected<?php endif; ?>>
|
||||||
<?php echo $l->t($label); ?> text
|
<?php echo $l->t($label); ?> text
|
||||||
@@ -229,10 +255,36 @@ $choicesSizes = [
|
|||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<label for="side-menu-external-sites-in-top-menu" class="settings-hint">
|
||||||
|
<?php p($l->t('Do not move external sites in the side menu')); ?>
|
||||||
|
<small><span class="warning">Experimental</span></small>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<select id="side-menu-external-sites-in-top-menu" name="external-sites-in-top-menu" class="side-menu-setting">
|
||||||
|
<?php foreach ($choicesYesNo as $label => $value): ?>
|
||||||
|
<option value="<?php echo $value ?>" <?php if ($value === $_['external-sites-in-top-menu']): ?>selected<?php endif; ?>>
|
||||||
|
<?php echo $l->t($label); ?>
|
||||||
|
</option>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="section">
|
<div class="section">
|
||||||
<input type="hidden" id="side-menu-cache" name="cache" value="<?php print_unescaped($_['cache']); ?>">
|
<h2>
|
||||||
|
<?php p($l->t('Tips')); ?>
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<p class="settings-hint">Use the shortcut <span class="keyboard-key">Ctrl</span>+<span class="keyboard-key">o</span>
|
||||||
|
to open and to hide the side menu. Use <span class="keyboard-key">tab</span> to navigate.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section">
|
||||||
|
<input type="hidden" id="side-menu-cache" name="cache" value="<?php print_unescaped($_['cache']); ?>" class="side-menu-setting">
|
||||||
|
|
||||||
<button id="side-menu-save" class="btn btn-primary"><?php p($l->t('Save')); ?></button>
|
<button id="side-menu-save" class="btn btn-primary"><?php p($l->t('Save')); ?></button>
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,75 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @license GNU AGPL version 3 or any later version
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Affero General Public License as
|
||||||
|
* published by the Free Software Foundation, either version 3 of the
|
||||||
|
* License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Affero General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
script('side_menu', 'admin');
|
||||||
|
style('side_menu', 'admin');
|
||||||
|
style('side_menu', 'support');
|
||||||
|
|
||||||
|
$choicesYesNo = [
|
||||||
|
'No' => '0',
|
||||||
|
'Yes' => '1',
|
||||||
|
];
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
<div id="side-menu-section">
|
||||||
|
<div class="section">
|
||||||
|
<h2>
|
||||||
|
<?php p($l->t('Menu')); ?>
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<label for="side-menu-enabled" class="settings-hint">
|
||||||
|
<?php p($l->t('Enable the side menu')); ?>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<select id="side-menu-enabled" name="enabled" class="side-menu-setting" data-personal>
|
||||||
|
<?php foreach ($choicesYesNo as $label => $value): ?>
|
||||||
|
<option value="<?php echo $value ?>" <?php if ($value === $_['enabled']): ?>selected<?php endif; ?>>
|
||||||
|
<?php echo $l->t($label); ?>
|
||||||
|
</option>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p>Use the shortcut <span class="keyboard-key">Ctrl</span>+<span class="keyboard-key">o</span>
|
||||||
|
to open and to hide the side menu. Use <span class="keyboard-key">tab</span> to navigate.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section">
|
||||||
|
<button id="side-menu-save" class="btn btn-primary"><?php p($l->t('Save')); ?></button>
|
||||||
|
|
||||||
|
<span id="side-menu-message" class="msg"></span>
|
||||||
|
|
||||||
|
<div style="height: 30px"></div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<span for="side-menu-opener" class="settings-hint">
|
||||||
|
<?php p($l->t('You like this app and you want to support me?')); ?>
|
||||||
|
|
||||||
|
<a style="margin-left: 10px" target="_blank" href="https://www.buymeacoffee.com/deblan">
|
||||||
|
<button>
|
||||||
|
<?php p($l->t('Buy me a coffe ☕')); ?>
|
||||||
|
</button>
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||