Compare commits
25 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3e3e6ae943 | |||
| 389da47cab | |||
| a6a84ee784 | |||
| 52bbd49d9a | |||
| 92e1857ae8 | |||
| c0b1701744 | |||
| ee98a49366 | |||
| b4951b6cf1 | |||
| a67688e779 | |||
| 9afde0dc9d | |||
| 0f73ad42c4 | |||
| 007ac2bb8e | |||
| 4e21020600 | |||
| 8c5b0e9834 | |||
| 59e3b6b85e | |||
| a913bd5ba2 | |||
| 2d32e542cb | |||
| 5d03fbaa49 | |||
| 22011cb681 | |||
| 015493fc08 | |||
| 992e54ac30 | |||
| 67dfb7e833 | |||
| 1e68d6877d | |||
| 2ae08f7b77 | |||
| 489321081a |
+12
@@ -15,8 +15,14 @@ steps:
|
|||||||
- make npm-build
|
- make npm-build
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
|
exclude:
|
||||||
|
- master
|
||||||
|
include:
|
||||||
- develop
|
- develop
|
||||||
- feature/*
|
- feature/*
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
- pull_request
|
||||||
|
|
||||||
- name: release
|
- name: release
|
||||||
image: deblan/devenv
|
image: deblan/devenv
|
||||||
@@ -34,7 +40,13 @@ steps:
|
|||||||
- make release
|
- make release
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
|
exclude:
|
||||||
|
- develop
|
||||||
|
- feature/*
|
||||||
|
include:
|
||||||
- master
|
- master
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: artifacts
|
- name: artifacts
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
version: '1'
|
|
||||||
image: deblan/devenv
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
script:
|
|
||||||
- npm install
|
|
||||||
- make npm-build
|
|
||||||
@@ -1,5 +1,23 @@
|
|||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## 2.3.5
|
||||||
|
### Fixed
|
||||||
|
* fix white square (#99)
|
||||||
|
|
||||||
|
## 2.3.4
|
||||||
|
### Fixed
|
||||||
|
* fix blank line when settings are open (#96)
|
||||||
|
|
||||||
|
## 2.3.3
|
||||||
|
### Added
|
||||||
|
* hide the scrollbar when mouse is out (menu always displayed)
|
||||||
|
### Fixed
|
||||||
|
* fix SQL Exception InvalidFieldNameException (#93)
|
||||||
|
|
||||||
|
## 2.3.2
|
||||||
|
### Fixed
|
||||||
|
- fix hidden menu
|
||||||
|
|
||||||
## 2.3.1
|
## 2.3.1
|
||||||
### Fixed
|
### Fixed
|
||||||
- fix #88: does not work with default menu
|
- fix #88: does not work with default menu
|
||||||
|
|||||||
@@ -15,6 +15,8 @@ You can customize colors depending of the theme (Dark theme and Breeze Dark). Co
|
|||||||
|
|
||||||
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)
|
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)
|
||||||
|
|
||||||
|
[](https://ci2.gitnet.fr/deblan/side_menu)
|
||||||
|
|
||||||
Requirements
|
Requirements
|
||||||
------------
|
------------
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -26,7 +26,7 @@ If you like this application and if you want to support the development:
|
|||||||
* [Donate with liberapay](https://liberapay.com/deblan)
|
* [Donate with liberapay](https://liberapay.com/deblan)
|
||||||
* [Leave a comment](https://apps.nextcloud.com/apps/side_menu#comments)
|
* [Leave a comment](https://apps.nextcloud.com/apps/side_menu#comments)
|
||||||
]]></description>
|
]]></description>
|
||||||
<version>2.3.1</version>
|
<version>2.3.5</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>
|
||||||
@@ -46,7 +46,7 @@ If you like this application and if you want to support the development:
|
|||||||
<screenshot>https://gitnet.fr/deblan/side_menu/raw/branch/master/screenshots/nc20_big_menu_responsive.png</screenshot>
|
<screenshot>https://gitnet.fr/deblan/side_menu/raw/branch/master/screenshots/nc20_big_menu_responsive.png</screenshot>
|
||||||
<screenshot>https://gitnet.fr/deblan/side_menu/raw/branch/master/screenshots/personal_settings.png</screenshot>
|
<screenshot>https://gitnet.fr/deblan/side_menu/raw/branch/master/screenshots/personal_settings.png</screenshot>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<nextcloud min-version="19" max-version="23"/>
|
<nextcloud min-version="19" max-version="24"/>
|
||||||
<php min-version="7.3"/>
|
<php min-version="7.3"/>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<settings>
|
<settings>
|
||||||
|
|||||||
+10
-1
@@ -79,7 +79,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.side-menu-opener:active {
|
.side-menu-opener:active {
|
||||||
background-color: var(--color-background-dark) !important;
|
background-color: var(--side-menu-current-app-background-color, #444) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.side-menu-closer {
|
.side-menu-closer {
|
||||||
@@ -247,6 +247,11 @@
|
|||||||
.side-menu-always-displayed .side-menu-apps-list {
|
.side-menu-always-displayed .side-menu-apps-list {
|
||||||
height: calc(100vh - 49px);
|
height: calc(100vh - 49px);
|
||||||
top: 49px;
|
top: 49px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.side-menu-always-displayed .side-menu-apps-list:hover {
|
||||||
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.side-menu-always-displayed #side-menu,
|
.side-menu-always-displayed #side-menu,
|
||||||
@@ -293,6 +298,10 @@
|
|||||||
padding: 10px 0;
|
padding: 10px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.side-menu-always-displayed #body-settings, #body-settings.body-settings-side-menu {
|
||||||
|
overflow-x: visible;
|
||||||
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 1024px) {
|
@media screen and (max-width: 1024px) {
|
||||||
#side-menu.side-menu-big {
|
#side-menu.side-menu-big {
|
||||||
max-width: 290px;
|
max-width: 290px;
|
||||||
|
|||||||
@@ -87,6 +87,7 @@ class CssController extends Controller
|
|||||||
{
|
{
|
||||||
$isForced = $this->config->getAppValueBool('force', '0');
|
$isForced = $this->config->getAppValueBool('force', '0');
|
||||||
$topMenuApps = $this->config->getAppValueArray('top-menu-apps', '[]');
|
$topMenuApps = $this->config->getAppValueArray('top-menu-apps', '[]');
|
||||||
|
$topSideMenuApps = $this->config->getAppValueArray('top-side-menu-apps', '[]');
|
||||||
|
|
||||||
$isAccessibilityAppEnabled = $this->config->getAppValueBool('enabled', '0', 'accessibility');
|
$isAccessibilityAppEnabled = $this->config->getAppValueBool('enabled', '0', 'accessibility');
|
||||||
$isBreezeDarkAppEnabled = $this->config->getAppValueBool('enabled', '0', 'breezedark');
|
$isBreezeDarkAppEnabled = $this->config->getAppValueBool('enabled', '0', 'breezedark');
|
||||||
@@ -94,11 +95,16 @@ class CssController extends Controller
|
|||||||
|
|
||||||
if ($this->user) {
|
if ($this->user) {
|
||||||
$userTopMenuApps = $this->config->getUserValueArray($this->user, 'top-menu-apps', '[]');
|
$userTopMenuApps = $this->config->getUserValueArray($this->user, 'top-menu-apps', '[]');
|
||||||
|
$userTopSideMenuApps = $this->config->getUserValueArray($this->user, 'top-side-menu-apps', '[]');
|
||||||
|
|
||||||
if (!empty($userTopMenuApps) && !$isForced) {
|
if (!empty($userTopMenuApps) && !$isForced) {
|
||||||
$topMenuApps = $userTopMenuApps;
|
$topMenuApps = $userTopMenuApps;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!empty($userTopSideMenuApps) && !$isForced) {
|
||||||
|
$topSideMenuApps = $userTopSideMenuApps;
|
||||||
|
}
|
||||||
|
|
||||||
$isDarkThemeUserEnabled = $this->config->getUserValue($this->user, 'theme', '', 'accessibility') === 'dark';
|
$isDarkThemeUserEnabled = $this->config->getUserValue($this->user, 'theme', '', 'accessibility') === 'dark';
|
||||||
$isBreezeDarkUserEnabled = $this->config->getUserValue($this->user, 'theme_enabled', '', 'breezedark');
|
$isBreezeDarkUserEnabled = $this->config->getUserValue($this->user, 'theme_enabled', '', 'breezedark');
|
||||||
|
|
||||||
@@ -162,6 +168,7 @@ class CssController extends Controller
|
|||||||
'always-displayed' => $this->config->getAppValueBool('always-displayed', '0'),
|
'always-displayed' => $this->config->getAppValueBool('always-displayed', '0'),
|
||||||
'big-menu' => $this->config->getAppValueBool('big-menu', '0'),
|
'big-menu' => $this->config->getAppValueBool('big-menu', '0'),
|
||||||
'top-menu-apps' => $topMenuApps,
|
'top-menu-apps' => $topMenuApps,
|
||||||
|
'top-side-menu-apps' => $topSideMenuApps,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,12 @@ class LangRepository
|
|||||||
$qb = $this->db->getQueryBuilder();
|
$qb = $this->db->getQueryBuilder();
|
||||||
|
|
||||||
$qb->select($qb->createFunction('DISTINCT configvalue'))
|
$qb->select($qb->createFunction('DISTINCT configvalue'))
|
||||||
->where('configkey="lang" and appid="core" and configvalue<>"en"')
|
->where('configkey=:configkey and appid=:appid and configvalue<>:configvalue')
|
||||||
|
->setParameters([
|
||||||
|
'configkey' => 'lang',
|
||||||
|
'appid' => 'core',
|
||||||
|
'configvalue' => 'en',
|
||||||
|
])
|
||||||
->from('preferences')
|
->from('preferences')
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -21,7 +21,7 @@
|
|||||||
"extends @nextcloud/browserslist-config"
|
"extends @nextcloud/browserslist-config"
|
||||||
],
|
],
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=10.0.0"
|
"node": ">=16.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.9.0",
|
"@babel/core": "^7.9.0",
|
||||||
@@ -43,9 +43,9 @@
|
|||||||
"eslint-plugin-standard": "^4.0.1",
|
"eslint-plugin-standard": "^4.0.1",
|
||||||
"eslint-plugin-vue": "^5.2.3",
|
"eslint-plugin-vue": "^5.2.3",
|
||||||
"file-loader": "^6.0.0",
|
"file-loader": "^6.0.0",
|
||||||
"node-sass": "^4.13.1",
|
|
||||||
"sass-loader": "^8.0.2",
|
"sass-loader": "^8.0.2",
|
||||||
"stylelint": "^8.4.0",
|
"stylelint": "^8.4.0",
|
||||||
|
"sass": "^1.49.9",
|
||||||
"stylelint-config-recommended-scss": "^3.3.0",
|
"stylelint-config-recommended-scss": "^3.3.0",
|
||||||
"stylelint-scss": "^3.16.0",
|
"stylelint-scss": "^3.16.0",
|
||||||
"stylelint-webpack-plugin": "^0.10.5",
|
"stylelint-webpack-plugin": "^0.10.5",
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 195 KiB After Width: | Height: | Size: 254 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 57 KiB |
@@ -8,7 +8,7 @@
|
|||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
}
|
}
|
||||||
|
|
||||||
<?php if (empty($_['top-menu-apps'])): ?>
|
<?php if (empty($_['top-menu-apps']) && empty($_['top-side-menu-apps'])): ?>
|
||||||
#appmenu {
|
#appmenu {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -71,7 +71,6 @@ const updateTopMenu = function() {
|
|||||||
if (targetBlankApps.indexOf(dataId) !== -1) {
|
if (targetBlankApps.indexOf(dataId) !== -1) {
|
||||||
querySelector('a', app).setAttribute('target', '_blank')
|
querySelector('a', app).setAttribute('target', '_blank')
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
navigationApps.innerHTML = navigationAppsHtml
|
navigationApps.innerHTML = navigationAppsHtml
|
||||||
|
|||||||
@@ -171,6 +171,21 @@ if ($_['always-displayed']) {
|
|||||||
sideMenuFocus()
|
sideMenuFocus()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const sideMenuObserver = new MutationObserver((e) => {
|
||||||
|
if (body.getAttribute('id') !== 'body-settings') {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
body.classList.toggle('body-settings-side-menu', sideMenu.classList.contains('open'))
|
||||||
|
})
|
||||||
|
|
||||||
|
sideMenuObserver.observe(sideMenu, {
|
||||||
|
attributes: true,
|
||||||
|
attributeFilter: ['class'],
|
||||||
|
childList: false,
|
||||||
|
characterData: false
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
body.appendChild(sideMenuContainer)
|
body.appendChild(sideMenuContainer)
|
||||||
|
|||||||
Reference in New Issue
Block a user