From da1bcc2ffa4aee97724101bc45110251712e0be7 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Tue, 14 Nov 2023 15:29:02 +0800 Subject: [PATCH] * Remove `,` at the end of row in the lastest children in store. --- module/store/ui/appview.html.php | 14 +++++++------- module/store/ui/browse.html.php | 20 ++++++++++---------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/module/store/ui/appview.html.php b/module/store/ui/appview.html.php index 0f224e739b..a083b9dc20 100644 --- a/module/store/ui/appview.html.php +++ b/module/store/ui/appview.html.php @@ -26,7 +26,7 @@ foreach($screenshots as $screenshot) set::src($screenshot), setClass('state'), on::click('window.open("' . $screenshot . '")') - ) : null, + ) : null ); } @@ -67,7 +67,7 @@ detailHeader( set::icon('info-sign'), $lang->store->support, ), - set::items($dropMenus), + set::items($dropMenus) ), backBtn ( @@ -75,7 +75,7 @@ detailHeader( setClass('primary btn install-btn w-20'), set::type('primary'), set::url($this->createLink('space', 'createApplication', "id={$cloudApp->id}")), - setData('toggle', 'modal'), + setData('toggle', 'modal') ) ) ) @@ -91,7 +91,7 @@ detailBody setClass('flex'), img(set::src($cloudApp->logo), setStyle(array('width' => '50px', 'height' => '50px'))), div(setClass('app-name-container'),div($cloudApp->alias, setClass('app-name'))) - ), + ) ), section ( @@ -107,14 +107,14 @@ detailBody h::th($lang->store->appVersion), h::th($lang->store->appType), h::th($lang->store->author), - h::th($lang->store->releaseDate), + h::th($lang->store->releaseDate) ), h::tr ( h::td($cloudApp->app_version), h::td(trim(implode('/', helper::arrayColumn($cloudApp->categories, 'alias')), '/')), h::td($cloudApp->author), - h::td((new \DateTime($cloudApp->publish_time))->format('Y-m-d')), + h::td((new \DateTime($cloudApp->publish_time))->format('Y-m-d')) ) ) ), @@ -141,7 +141,7 @@ detailBody setClass('table borderless table-hover mb-3'), ...$dynamicArticlesWd, ), - pager(set::props(array('id' => 'dynamicPager'))), + pager(set::props(array('id' => 'dynamicPager'))) ) ) ) diff --git a/module/store/ui/browse.html.php b/module/store/ui/browse.html.php index 438c5a3324..17619268d2 100644 --- a/module/store/ui/browse.html.php +++ b/module/store/ui/browse.html.php @@ -19,7 +19,7 @@ foreach($categories as $id => $category) 'id' => $id, 'parent' => 0, 'name' => $category, - 'key' => 'storeTree-' . $id, + 'key' => 'storeTree-' . $id ); } jsVar('tree', $tree); @@ -75,7 +75,7 @@ foreach ($cloudApps as $group) setData('size', 'sm'), in_array($cloudApp->id, $installedApps) ? setData('confirm', $lang->store->alreadyInstalled) : null, setData('url', $this->createLink('space', 'createApplication', "id={$cloudApp->id}")), - on::click('installApp', array('stop' => true)), + on::click('installApp', array('stop' => true)) ) ) ); @@ -99,7 +99,7 @@ div featureBar ( set::current($sortType), - set::linkParams("sortType={key}"), + set::linkParams("sortType={key}") ), toolbar @@ -112,10 +112,10 @@ div 'type' => 'inputControl', 'prefixWidth' => 'icon', 'placeholder' => $lang->store->searchApp, - 'value' => $keyword, - )), - ), - ), + 'value' => $keyword + )) + ) + ) ), div(...$groups), @@ -126,8 +126,8 @@ div set::recPerPage($setting['recPerPage']), set::linkCreator($setting['linkCreator']), set::items($setting['items']), - set::gap($setting['gap']), - ) : null, + set::gap($setting['gap']) + ) : null ); count($cloudApps) ? sidebar @@ -137,6 +137,6 @@ count($cloudApps) ? sidebar setID('storeTree'), set::items($tree), set::canSplit(false), - set::onClickItem(jsRaw('window.treeClick')), + set::onClickItem(jsRaw('window.treeClick')) ) ) : null;