Skip to content

Commit bf0ee24

Browse files
committed
config split and from_email
1 parent 2aa91c1 commit bf0ee24

4 files changed

Lines changed: 196 additions & 179 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,8 @@
33
0.1.1:
44
1. fosckeditorbundle 添加文件图片拖拽上传和图片上传功能
55
2. 用户组权限调整,不同用户组可设置不同的ckeditor工具栏配置
6-
3. 文本、长文本字段默认过滤所有HTML标签
6+
3. 文本、长文本字段默认过滤所有HTML标签
7+
8+
0.1.2:
9+
1. 邮件发送fromAddress去除硬编码,改为在teebb_core.yaml文件中手动配置且必须配置
10+
2. Dashboard控制台首页blocks、侧边栏菜单使用单独yaml文件配置

config/packages/teebb_core.yaml

Lines changed: 13 additions & 178 deletions
Original file line numberDiff line numberDiff line change
@@ -1,190 +1,20 @@
11
teebb_core:
2-
#Dashboard 侧边栏菜单
3-
side_menu:
4-
content:
5-
content:
6-
label: Content
7-
icon: fa-file-alt
8-
items:
9-
- label: Add Content
10-
route: teebb_content_create_index
11-
#route_params: {typeAlias: content}
12-
groups: []
13-
- label: Manage Content
14-
route: teebb_content_index
15-
groups: []
16-
groups: []
17-
type:
18-
label: Type
19-
icon: fa-boxes
20-
items:
21-
- label: Add Type
22-
route: content_create
23-
groups: []
24-
- label: Manage Type
25-
route: content_index
26-
groups: []
27-
groups: []
28-
taxonomy:
29-
label: Taxonomy
30-
icon: fa-tags
31-
items:
32-
- label: Add Taxonomy
33-
route: taxonomy_create
34-
groups: []
35-
- label: Manage Taxonomy
36-
route: taxonomy_index
37-
groups: []
38-
groups: []
39-
other:
40-
menu:
41-
label: Menu
42-
icon: fa-list
43-
items:
44-
- label: Add Menu
45-
route: teebb_menu_create
46-
groups: []
47-
- label: Manage Menu
48-
route: teebb_menu_index
49-
groups: []
50-
groups: []
51-
comment:
52-
label: Comment
53-
icon: fa-comment
54-
items:
55-
- label: Manage Comment
56-
route: comment_index
57-
groups: []
58-
groups: []
59-
user:
60-
label: User
61-
icon: fa-user
62-
items:
63-
- label: Manage User
64-
route: user_people_index
65-
groups: []
66-
- label: User Group
67-
route: user_group_index
68-
groups: []
69-
settings:
70-
system:
71-
label: System
72-
icon: fa-tools
73-
items:
74-
- label: Settings
75-
route: teebb_system_option
76-
groups: []
77-
- label: Text Formatter
78-
route: teebb_formatter_index
79-
groups: []
80-
groups: []
81-
82-
#dashboard index blocks
83-
blocks:
84-
- position: top
85-
type: teebb.core.block.count #block service type
86-
class: col-xl-3 col-md-6 mb-4 #block class
87-
groups: [] #block show user groups
88-
settings:
89-
entity_class: Teebb\CoreBundle\Entity\Content #block admin. admin 对应的entity 应含有 createAt 和 updateAt 两个时间属性。
90-
label: contents(last month) #block label
91-
#translation_domain: #default: messages
92-
icon: fas fa-file-alt #block icon
93-
border: border-left-primary #block border
94-
#property: createdAt #query object property. 要查询的Entity的属性以此属性统计数量
95-
duration: -1 month #The count of content in a duration, must earlier than now. see php strtotime. default: -1 month
96-
#template: #default template @TeebbCore/Block/count_block.html.twig
97-
98-
- position: top
99-
type: teebb.core.block.count #block service type
100-
class: col-xl-3 col-md-6 mb-4 #block class
101-
groups: [] #block show user groups
102-
settings:
103-
entity_class: Teebb\CoreBundle\Entity\Types\Types #block admin. admin 对应的entity 应含有 createAt 和 updateAt 两个时间属性。
104-
bundle: content
105-
label: content_types #block label
106-
#translation_domain: #default: messages
107-
icon: fas fa-boxes #block icon
108-
border: border-left-success #block border
109-
#property: createdAt #query object property. 要查询的Entity的属性以此属性统计数量
110-
duration: -1 month #The count of content in a duration, must earlier than now. see php strtotime. default: -1 month
111-
#template: #default template @TeebbCore/Block/count_block.html.twig
112-
113-
- position: top
114-
type: teebb.core.block.count #block service type
115-
class: col-xl-3 col-md-6 mb-4 #block class
116-
groups: [] #block show user groups
117-
settings:
118-
entity_class: Teebb\CoreBundle\Entity\User #block admin. admin 对应的entity 应含有 createAt 和 updateAt 两个时间属性。
119-
label: users(last month) #block label
120-
#translation_domain: #default: messages
121-
icon: fas fa-user #block icon
122-
border: border-left-info #block border
123-
#property: createdAt #query object property. 要查询的Entity的属性以此属性统计数量
124-
duration: -1 month #The count of content in a duration, must earlier than now. see php strtotime. default: -1 month
125-
#template: #default template @TeebbCore/Block/count_block.html.twig
126-
127-
- position: top
128-
type: teebb.core.block.count #block service type
129-
class: col-xl-3 col-md-6 mb-4 #block class
130-
groups: [] #block show user groups
131-
settings:
132-
entity_class: Teebb\CoreBundle\Entity\Comment #block admin. admin 对应的entity 应含有 createAt 和 updateAt 两个时间属性。
133-
label: comments(last month) #block label
134-
#translation_domain: #default: messages
135-
icon: fas fa-comments #block icon
136-
border: border-left-warning #block border
137-
#property: createdAt #query object property. 要查询的Entity的属性以此属性统计数量
138-
duration: -1 month #The count of content in a duration, must earlier than now. see php strtotime. default: -1 month
139-
#template: #default template @TeebbCore/Block/count_block.html.twig
140-
141-
- position: left
142-
type: teebb.core.block.text
143-
settings:
144-
label: Welcome to Teebb
145-
content: Teebb Information
146-
template: '@TeebbCore\blocks\dashboard_base_block.html.twig'
147-
148-
- position: left
149-
type: teebb.core.block.types
150-
settings:
151-
label: Content Types
152-
bundle: content
153-
154-
- position: left
155-
type: teebb.core.block.contents
156-
settings:
157-
label: New users
158-
entity_class: Teebb\CoreBundle\Entity\User
159-
property: createdAt
160-
order: DESC
161-
template: '@TeebbCore\blocks\new_users.html.twig'
162-
163-
- position: right
164-
type: teebb.core.block.contents
165-
settings:
166-
label: Last contents
167-
entity_class: Teebb\CoreBundle\Entity\Content
168-
property: createdAt
169-
order: DESC
170-
171-
- position: right
172-
type: teebb.core.block.contents
173-
settings:
174-
label: Last comments
175-
entity_class: Teebb\CoreBundle\Entity\Comment
176-
property: createdAt
177-
order: DESC
178-
template: '@TeebbCore\blocks\last_comments.html.twig'
179-
2+
#用于自动检测并获取teebb中的注解配置
1803
mapping:
1814
directories: ['%kernel.project_dir%/src']
1825

6+
#邮件发送人配置此项必须配置,请修改为您的配置
7+
from_email:
8+
address: sender@quanweiwei.cn
9+
address_name: TEEBB.COM管理员
10+
11+
18312
fly_system:
18413
service: '%fly_system_service%'
18514
#此变量用于生成上传文件的链接
18615
root_host_url: '%fly_system_host%/uploads'
18716

17+
#文本过滤器用于 文本已格式化字段,长文本已格式化字段,长文本已格式化字段带摘要
18818
filter_settings:
18919
strip_tags:
19020
filter_class: Teebb\CoreBundle\TextFilter\StripTagsFilter
@@ -201,6 +31,7 @@ teebb_core:
20131
filter_class: Teebb\CoreBundle\TextFilter\EscapeHtmlFilter
20232
filter_label: teebb.core.form.escape_html_filter
20333

34+
#配置页面中额外的assets库,使用TemplateRegister将对应库加入页面
20435
assets:
20536
extra:
20637
transliteration:
@@ -325,3 +156,7 @@ doctrine:
325156
dir: "%kernel.project_dir%/vendor/gedmo/doctrine-extensions/src/Tree/Entity"
326157
alias: GedmoTree # (optional) it will default to the name set for the mapping
327158
is_bundle: false
159+
160+
#加入额外配置:控制台首页blocks和边栏菜单
161+
imports:
162+
- { resource: teebb_core/ }
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
teebb_core:
2+
#dashboard index blocks
3+
blocks:
4+
- position: top
5+
type: teebb.core.block.count #block service type
6+
class: col-xl-3 col-md-6 mb-4 #block class
7+
groups: [] #block show user groups
8+
settings:
9+
entity_class: Teebb\CoreBundle\Entity\Content #block admin. admin 对应的entity 应含有 createAt 和 updateAt 两个时间属性。
10+
label: contents(last month) #block label
11+
#translation_domain: #default: messages
12+
icon: fas fa-file-alt #block icon
13+
border: border-left-primary #block border
14+
#property: createdAt #query object property. 要查询的Entity的属性以此属性统计数量
15+
duration: -1 month #The count of content in a duration, must earlier than now. see php strtotime. default: -1 month
16+
#template: #default template @TeebbCore/Block/count_block.html.twig
17+
18+
- position: top
19+
type: teebb.core.block.count #block service type
20+
class: col-xl-3 col-md-6 mb-4 #block class
21+
groups: [] #block show user groups
22+
settings:
23+
entity_class: Teebb\CoreBundle\Entity\Types\Types #block admin. admin 对应的entity 应含有 createAt 和 updateAt 两个时间属性。
24+
bundle: content
25+
label: content_types #block label
26+
#translation_domain: #default: messages
27+
icon: fas fa-boxes #block icon
28+
border: border-left-success #block border
29+
#property: createdAt #query object property. 要查询的Entity的属性以此属性统计数量
30+
duration: -1 month #The count of content in a duration, must earlier than now. see php strtotime. default: -1 month
31+
#template: #default template @TeebbCore/Block/count_block.html.twig
32+
33+
- position: top
34+
type: teebb.core.block.count #block service type
35+
class: col-xl-3 col-md-6 mb-4 #block class
36+
groups: [] #block show user groups
37+
settings:
38+
entity_class: Teebb\CoreBundle\Entity\User #block admin. admin 对应的entity 应含有 createAt 和 updateAt 两个时间属性。
39+
label: users(last month) #block label
40+
#translation_domain: #default: messages
41+
icon: fas fa-user #block icon
42+
border: border-left-info #block border
43+
#property: createdAt #query object property. 要查询的Entity的属性以此属性统计数量
44+
duration: -1 month #The count of content in a duration, must earlier than now. see php strtotime. default: -1 month
45+
#template: #default template @TeebbCore/Block/count_block.html.twig
46+
47+
- position: top
48+
type: teebb.core.block.count #block service type
49+
class: col-xl-3 col-md-6 mb-4 #block class
50+
groups: [] #block show user groups
51+
settings:
52+
entity_class: Teebb\CoreBundle\Entity\Comment #block admin. admin 对应的entity 应含有 createAt 和 updateAt 两个时间属性。
53+
label: comments(last month) #block label
54+
#translation_domain: #default: messages
55+
icon: fas fa-comments #block icon
56+
border: border-left-warning #block border
57+
#property: createdAt #query object property. 要查询的Entity的属性以此属性统计数量
58+
duration: -1 month #The count of content in a duration, must earlier than now. see php strtotime. default: -1 month
59+
#template: #default template @TeebbCore/Block/count_block.html.twig
60+
61+
- position: left
62+
type: teebb.core.block.text
63+
settings:
64+
label: Welcome to Teebb
65+
content: Teebb Information
66+
template: '@TeebbCore\blocks\dashboard_base_block.html.twig'
67+
68+
- position: left
69+
type: teebb.core.block.types
70+
settings:
71+
label: Content Types
72+
bundle: content
73+
74+
- position: left
75+
type: teebb.core.block.contents
76+
settings:
77+
label: New users
78+
entity_class: Teebb\CoreBundle\Entity\User
79+
property: createdAt
80+
order: DESC
81+
template: '@TeebbCore\blocks\new_users.html.twig'
82+
83+
- position: right
84+
type: teebb.core.block.contents
85+
settings:
86+
label: Last contents
87+
entity_class: Teebb\CoreBundle\Entity\Content
88+
property: createdAt
89+
order: DESC
90+
91+
- position: right
92+
type: teebb.core.block.contents
93+
settings:
94+
label: Last comments
95+
entity_class: Teebb\CoreBundle\Entity\Comment
96+
property: createdAt
97+
order: DESC
98+
template: '@TeebbCore\blocks\last_comments.html.twig'

0 commit comments

Comments
 (0)