From 971f2142d495b8baac1e5d5bf47b9379ff703e31 Mon Sep 17 00:00:00 2001 From: printempw Date: Mon, 13 Aug 2018 17:49:05 +0800 Subject: [PATCH] Display plugin name on market and manage page --- resources/assets/src/js/admin/market.js | 2 +- resources/assets/src/js/admin/plugins.js | 3 ++- resources/assets/src/stylus/admin.styl | 5 +++++ resources/lang/en/locale.js | 1 + resources/lang/zh_CN/locale.js | 1 + 5 files changed, 10 insertions(+), 2 deletions(-) diff --git a/resources/assets/src/js/admin/market.js b/resources/assets/src/js/admin/market.js index b408adac..88caeaa5 100644 --- a/resources/assets/src/js/admin/market.js +++ b/resources/assets/src/js/admin/market.js @@ -19,7 +19,7 @@ const marketTableColumnDefs = [ targets: 0, title: trans('admin.pluginTitle'), data: 'title', - render: title => `${ title }` + render: (title, type, row) => `${ title }
${ row.name }
` }, { targets: 1, diff --git a/resources/assets/src/js/admin/plugins.js b/resources/assets/src/js/admin/plugins.js index d0d85a4a..1119e8ea 100644 --- a/resources/assets/src/js/admin/plugins.js +++ b/resources/assets/src/js/admin/plugins.js @@ -51,7 +51,8 @@ const pluginsTableColumnDefs = [

${ description }

${ trans('admin.pluginVersion') } ${ row.version } | - ${ trans('admin.pluginAuthor') } ${ row.author } + ${ trans('admin.pluginAuthor') } ${ row.author } | + ${ trans('admin.pluginName') } ${ row.name }
`; } diff --git a/resources/assets/src/stylus/admin.styl b/resources/assets/src/stylus/admin.styl index ef269121..93dc0476 100644 --- a/resources/assets/src/stylus/admin.styl +++ b/resources/assets/src/stylus/admin.styl @@ -87,4 +87,9 @@ td { td:first-child { white-space: nowrap; } + + .plugin-name { + color: #777; + font-size: small; + } } diff --git a/resources/lang/en/locale.js b/resources/lang/en/locale.js index 53f0e30a..45a4cbfd 100644 --- a/resources/lang/en/locale.js +++ b/resources/lang/en/locale.js @@ -181,6 +181,7 @@ pluginTitle: 'Plugin', pluginAuthor: 'Author', pluginVersion: 'Version', + pluginName: 'Name', pluginOperations: 'Operations', pluginDescription: 'Description', pluginDependencies: 'Dependencies', diff --git a/resources/lang/zh_CN/locale.js b/resources/lang/zh_CN/locale.js index d21ebc33..e14a98d5 100644 --- a/resources/lang/zh_CN/locale.js +++ b/resources/lang/zh_CN/locale.js @@ -183,6 +183,7 @@ pluginTitle: '插件', pluginAuthor: '作者', pluginVersion: '版本', + pluginName: '插件标识', pluginOperations: '操作', pluginDescription: '描述', pluginDependencies: '依赖关系',