提交 b02b8121 编写于 作者: T teebbstudios

sonata block bundle and dashboard blocks

上级 d4a506f0
此差异已折叠。
......@@ -23,4 +23,8 @@ return [
BabDev\PagerfantaBundle\BabDevPagerfantaBundle::class => ['all' => true],
Knp\Bundle\TimeBundle\KnpTimeBundle::class => ['all' => true],
Knp\Bundle\MenuBundle\KnpMenuBundle::class => ['all' => true],
Sonata\Doctrine\Bridge\Symfony\SonataDoctrineSymfonyBundle::class => ['all' => true],
Sonata\Twig\Bridge\Symfony\SonataTwigSymfonyBundle::class => ['all' => true],
Sonata\Form\Bridge\Symfony\SonataFormBundle::class => ['all' => true],
Sonata\BlockBundle\SonataBlockBundle::class => ['all' => true],
];
sonata_form:
form_type: standard
......@@ -79,6 +79,66 @@ teebb_core:
groups: []
groups: []
#dashboard index blocks
blocks:
- position: top
type: teebb.core.block.count #block service type
class: col-xl-3 col-md-6 mb-4 #block class
groups: [] #block show user groups
settings:
entity_class: Teebb\CoreBundle\Entity\Content #block admin. admin 对应的entity 应含有 createAt 和 updateAt 两个时间属性。
label: contents(last month) #block label
#translation_domain: #default: messages
icon: fas fa-file-alt #block icon
border: border-left-primary #block border
#property: createdAt #query object property. 要查询的Entity的属性以此属性统计数量
duration: -1 month #The count of content in a duration, must earlier than now. see php strtotime. default: -1 month
#template: #default template @TeebbCore/Block/count_block.html.twig
- position: top
type: teebb.core.block.count #block service type
class: col-xl-3 col-md-6 mb-4 #block class
groups: [] #block show user groups
settings:
entity_class: Teebb\CoreBundle\Entity\Types\Types #block admin. admin 对应的entity 应含有 createAt 和 updateAt 两个时间属性。
bundle: content
label: content_types #block label
#translation_domain: #default: messages
icon: fas fa-boxes #block icon
border: border-left-success #block border
#property: createdAt #query object property. 要查询的Entity的属性以此属性统计数量
duration: -1 month #The count of content in a duration, must earlier than now. see php strtotime. default: -1 month
#template: #default template @TeebbCore/Block/count_block.html.twig
- position: top
type: teebb.core.block.count #block service type
class: col-xl-3 col-md-6 mb-4 #block class
groups: [] #block show user groups
settings:
entity_class: Teebb\CoreBundle\Entity\User #block admin. admin 对应的entity 应含有 createAt 和 updateAt 两个时间属性。
label: users(last month) #block label
#translation_domain: #default: messages
icon: fas fa-user #block icon
border: border-left-info #block border
#property: createdAt #query object property. 要查询的Entity的属性以此属性统计数量
duration: -1 month #The count of content in a duration, must earlier than now. see php strtotime. default: -1 month
#template: #default template @TeebbCore/Block/count_block.html.twig
- position: top
type: teebb.core.block.count #block service type
class: col-xl-3 col-md-6 mb-4 #block class
groups: [] #block show user groups
settings:
entity_class: Teebb\CoreBundle\Entity\Comment #block admin. admin 对应的entity 应含有 createAt 和 updateAt 两个时间属性。
label: comments(last month) #block label
#translation_domain: #default: messages
icon: fas fa-comments #block icon
border: border-left-warning #block border
#property: createdAt #query object property. 要查询的Entity的属性以此属性统计数量
duration: -1 month #The count of content in a duration, must earlier than now. see php strtotime. default: -1 month
#template: #default template @TeebbCore/Block/count_block.html.twig
mapping:
directories: ['%kernel.project_dir%/src']
......
......@@ -137,6 +137,12 @@
"imagine/imagine": {
"version": "1.2.3"
},
"jms/metadata": {
"version": "2.3.0"
},
"jms/serializer": {
"version": "3.10.0"
},
"knplabs/knp-menu": {
"version": "v3.1.2"
},
......@@ -243,6 +249,30 @@
"config/packages/sensio_framework_extra.yaml"
]
},
"sonata-project/block-bundle": {
"version": "4.4.0"
},
"sonata-project/cache": {
"version": "2.0.1"
},
"sonata-project/doctrine-extensions": {
"version": "1.10.1"
},
"sonata-project/form-extensions": {
"version": "1.4",
"recipe": {
"repo": "github.com/symfony/recipes-contrib",
"branch": "master",
"version": "1.4",
"ref": "bfc222606aea5418345af70104d974a25dc7c441"
},
"files": [
"config/packages/sonata_form.yaml"
]
},
"sonata-project/twig-extensions": {
"version": "1.4.1"
},
"stof/doctrine-extensions-bundle": {
"version": "1.2",
"recipe": {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册