From 91a4676fc0034f63bacc36ea2591599b373e5447 Mon Sep 17 00:00:00 2001 From: "Felix A. Epp" Date: Sat, 21 Jan 2017 17:06:26 +0100 Subject: [PATCH 01/19] Make enabled and disabled apps a tabular list Signed-off-by: Felix A. Epp --- settings/css/settings.css | 38 +++++++++++++++++++++++++++++--- settings/js/apps.js | 16 ++++++++++---- settings/templates/apps.php | 44 +++++++++++++++++++++++++++++++++++++ 3 files changed, 91 insertions(+), 7 deletions(-) diff --git a/settings/css/settings.css b/settings/css/settings.css index 5ca62248c091d..b8bf2b26cbfd0 100644 --- a/settings/css/settings.css +++ b/settings/css/settings.css @@ -541,9 +541,7 @@ span.version { #app-navigation .app-external, .app-version { - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; - filter: alpha(opacity=50); - opacity: .5; + color: rgba(85,85,85,.5); } .app-level { @@ -725,6 +723,40 @@ form.section { margin-bottom: 1em; } +#apps-list.installed { + display: table; + width: 100%; + height: auto; +} + +#apps-list.installed .section { + display: table-row; + padding: 0; + margin: 0; +} + +#apps-list.installed .section > *{ + display: table-cell; + width: auto; + height: 3em; + vertical-align: middle; + float: none; + border-bottom: 1px solid #eee; + padding: .5em 1em; + box-sizing: border-box; +} + +#apps-list.installed .app-image { + text-align: center; +} + +.installed .actions { + text-align: right; +} + +#apps-list.installed .groups-enable { + margin-top: 0 +} /* LOG */ #log { diff --git a/settings/js/apps.js b/settings/js/apps.js index 9a3ff09337df3..3d94a128d3fe0 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -94,7 +94,14 @@ OC.Settings.Apps = OC.Settings.Apps || { // default values for missing fields return _.extend({level: 0}, app); }); - var source = $("#app-template").html(); + var source + if (categoryId === 'enabled' || categoryId === 'disabled') { + source = $("#app-template-installed").html(); + $('#apps-list').addClass('installed'); + } else { + source = $("#app-template").html(); + $('#apps-list').removeClass('installed'); + } var template = Handlebars.compile(source); if (appList.length) { @@ -257,12 +264,13 @@ OC.Settings.Apps = OC.Settings.Apps || { */ imageUrl : function (url, appfromstore) { - var img = ''; - + var img; if (appfromstore) { + img = ''; img += ''; } else { - img += ''; + img = ''; + img += ''; } return img; }, diff --git a/settings/templates/apps.php b/settings/templates/apps.php index 0adf5dfcc6f44..1b6e5e60327ea 100644 --- a/settings/templates/apps.php +++ b/settings/templates/apps.php @@ -29,6 +29,50 @@ + + + From d772e758ab6abe5836bb30f1a3e5d20ce1ac31ce Mon Sep 17 00:00:00 2001 From: "Felix A. Epp" Date: Mon, 23 Jan 2017 17:48:37 +0100 Subject: [PATCH 06/19] Fix spacing between enbale-groups label and select2 Signed-off-by: Felix A. Epp --- settings/css/settings.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/settings/css/settings.css b/settings/css/settings.css index 95dc2ed50328d..d24733f84b5b3 100644 --- a/settings/css/settings.css +++ b/settings/css/settings.css @@ -763,6 +763,10 @@ form.section { margin-top: 0; } +#apps-list.installed .groups-enable label { + margin-right: 3px; +} + /* LOG */ #log { white-space:normal; From c7d9e0ab22ab5a498246761184bb89966d5287b2 Mon Sep 17 00:00:00 2001 From: "Felix A. Epp" Date: Mon, 27 Mar 2017 16:55:12 +0200 Subject: [PATCH 07/19] Add Minor styling improvements with opacity instead of grey Signed-off-by: Felix A. Epp --- settings/css/settings.css | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/settings/css/settings.css b/settings/css/settings.css index d24733f84b5b3..f327a73385aeb 100644 --- a/settings/css/settings.css +++ b/settings/css/settings.css @@ -525,6 +525,10 @@ input.userFilter {width: 200px;} width: 0; } +#app-category-disabled { + margin-bottom: 20px; +} + .appinfo { margin: 1em 40px; } #app-navigation .appwarning { background: #fcc; @@ -548,17 +552,18 @@ span.version { margin-top: 8px; } .app-level span { - color: #555; - background-color: transparent; - border: 1px solid #555; - border-radius: 3px; + color: #000; + background-color: #ccc; + border: 1px solid #ccc; + border-radius: 30px; padding: 3px 6px; } + .app-level .official { - border-color: #37ce02; background-position: left center; background-position: 5px center; padding-left: 25px; + opacity: .5; } .app-score { From ec96faead84ca5edf37a2fd95dea51797cb3af8a Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Tue, 28 Mar 2017 22:17:31 +0200 Subject: [PATCH 08/19] improve wording of Apps mgmt navigation entries Signed-off-by: Jan-Christoph Borchardt --- settings/Controller/AppSettingsController.php | 6 +++--- settings/js/apps.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/settings/Controller/AppSettingsController.php b/settings/Controller/AppSettingsController.php index 89cf5b6b7daf6..7be6c2bf56217 100644 --- a/settings/Controller/AppSettingsController.php +++ b/settings/Controller/AppSettingsController.php @@ -129,9 +129,9 @@ public function listCategories() { $currentLanguage = substr($this->l10nFactory->findLanguage(), 0, 2); $formattedCategories = [ - ['id' => self::CAT_ALL_INSTALLED, 'ident' => 'installed', 'displayName' => (string)$this->l10n->t('All installed')], - ['id' => self::CAT_ENABLED, 'ident' => 'enabled', 'displayName' => (string)$this->l10n->t('Enabled')], - ['id' => self::CAT_DISABLED, 'ident' => 'disabled', 'displayName' => (string)$this->l10n->t('Not enabled')], + ['id' => self::CAT_ALL_INSTALLED, 'ident' => 'installed', 'displayName' => (string)$this->l10n->t('Your apps')], + ['id' => self::CAT_ENABLED, 'ident' => 'enabled', 'displayName' => (string)$this->l10n->t('Enabled apps')], + ['id' => self::CAT_DISABLED, 'ident' => 'disabled', 'displayName' => (string)$this->l10n->t('Disabled apps')], ]; $categories = $this->categoryFetcher->get(); foreach($categories as $category) { diff --git a/settings/js/apps.js b/settings/js/apps.js index 80ac732730f1f..90453b7afdfcd 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -40,9 +40,9 @@ OC.Settings.Apps = OC.Settings.Apps || { } var categories = [ - {displayName: t('settings', 'Enabled'), ident: 'enabled', id: '0'}, - {displayName: t('settings', 'Not enabled'), ident: 'disabled', id: '1'}, - {displayName: t('settings', 'All installed'), ident: 'installed', id: '2'} + {displayName: t('settings', 'Enabled apps'), ident: 'enabled', id: '0'}, + {displayName: t('settings', 'Disabled apps'), ident: 'disabled', id: '1'}, + {displayName: t('settings', 'Your apps'), ident: 'installed', id: '2'} ]; var source = $("#categories-template").html(); From 6e5f0e0d9db35fcda3333539bf0935381396d3d2 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Tue, 28 Mar 2017 23:55:11 +0200 Subject: [PATCH 09/19] hide app version and level on narrower screens Signed-off-by: Jan-Christoph Borchardt --- settings/css/settings.css | 13 +++++++++++++ settings/templates/apps.php | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/settings/css/settings.css b/settings/css/settings.css index f327a73385aeb..628759974670a 100644 --- a/settings/css/settings.css +++ b/settings/css/settings.css @@ -648,6 +648,19 @@ span.version { } } +/* hide app version and level on narrower screens */ +@media only screen and (max-width: 768px) { + #apps-list.installed .app-version, + #apps-list.installed .app-level { + display: none !important; + } +} +@media only screen and (max-width: 700px) { + #apps-list.installed .app-groups { + display: none !important; + } +} + .section h2.app-name { margin-bottom: 8px; display: inline; diff --git a/settings/templates/apps.php b/settings/templates/apps.php index e3e9ad97d6f0f..e102d87afaa89 100644 --- a/settings/templates/apps.php +++ b/settings/templates/apps.php @@ -40,12 +40,12 @@ {{name}} {{/if}} -
{{version}}
+
{{version}}
{{{level}}}{{#unless internal}}View in Store{{/unless}}
-
+
{{#if active}}
From b5a9c4e4554136c437a8d90a36e51e1fbc414eed Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Wed, 29 Mar 2017 01:12:46 +0200 Subject: [PATCH 10/19] fix sizing and alignment of your app list Signed-off-by: Jan-Christoph Borchardt --- settings/css/settings.css | 10 ++++++---- settings/templates/apps.php | 6 +++--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/settings/css/settings.css b/settings/css/settings.css index 628759974670a..fb39bc410f792 100644 --- a/settings/css/settings.css +++ b/settings/css/settings.css @@ -755,22 +755,24 @@ form.section { #apps-list.installed .section > *{ display: table-cell; - width: auto; - height: 3em; + height: initial; vertical-align: middle; float: none; border-bottom: 1px solid #eee; - padding: .5em 1em; + padding: 6px; box-sizing: border-box; } #apps-list.installed .app-image { - text-align: center; + width: 44px; + text-align: right; opacity: .5; } #apps-list.installed .app-image-icon svg { margin-top: 5px; + width: 20px; + height: 20px; } .installed .actions { diff --git a/settings/templates/apps.php b/settings/templates/apps.php index e102d87afaa89..224092d9ae58d 100644 --- a/settings/templates/apps.php +++ b/settings/templates/apps.php @@ -33,16 +33,16 @@