teebb_core.yaml 13.4 KB
Newer Older
Q
Quan Weiwei 已提交
1
teebb_core:
T
teebbstudios 已提交
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
    #Dashboard 侧边栏菜单
    side_menu:
        content:
            content:
                label: Content
                icon: fa-file-alt
                items:
                    -   label: Add Content
                        route: teebb_content_create_index
                        #route_params: {typeAlias: content}
                        groups: []
                    -   label: Manage Content
                        route: teebb_content_index
                        groups: []
                groups: []
            type:
                label: Type
                icon: fa-boxes
                items:
                    -   label: Add Type
                        route: content_create
                        groups: []
                    -   label: Manage Type
                        route: content_index
                        groups: []
                groups: []
            taxonomy:
                label: Taxonomy
                icon: fa-tags
                items:
                    -   label: Add Taxonomy
                        route: taxonomy_create
                        groups: []
                    -   label: Manage Taxonomy
                        route: taxonomy_index
                        groups: []
                groups: []
        other:
            menu:
                label: Menu
                icon: fa-list
                items:
                    -   label: Add Menu
T
teebbstudios 已提交
45
                        route: teebb_menu_create
T
teebbstudios 已提交
46 47
                        groups: []
                    -   label: Manage Menu
T
teebbstudios 已提交
48
                        route: teebb_menu_index
T
teebbstudios 已提交
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
                        groups: []
                groups: []
            comment:
                label: Comment
                icon: fa-comment
                items:
                    -   label: Manage Comment
                        route: comment_index
                        groups: []
                groups: []
            user:
                label: User
                icon: fa-user
                items:
                    -   label: Manage User
                        route: user_people_index
                        groups: []
                    -   label: User Group
                        route: user_group_index
                        groups: []
        settings:
            system:
                label: System
                icon: fa-tools
                items:
T
teebbstudios 已提交
74 75
                    -   label: Settings
                        route: teebb_system_option
T
teebbstudios 已提交
76 77 78 79 80 81
                        groups: []
                    -   label: Text Formatter
                        route: teebb_formatter_index
                        groups: []
                groups: []

82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
    #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

141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178
        -   position: left
            type: teebb.core.block.text
            settings:
                label: Welcome to Teebb
                content: Teebb Information
                template: '@TeebbCore\blocks\dashboard_base_block.html.twig'

        -   position: left
            type: teebb.core.block.types
            settings:
                label: Content Types
                bundle: content

        -   position: left
            type: teebb.core.block.contents
            settings:
                label: New users
                entity_class: Teebb\CoreBundle\Entity\User
                property: createdAt
                order: DESC
                template: '@TeebbCore\blocks\new_users.html.twig'

        -   position: right
            type: teebb.core.block.contents
            settings:
                label: Last contents
                entity_class: Teebb\CoreBundle\Entity\Content
                property: createdAt
                order: DESC

        -   position: right
            type: teebb.core.block.contents
            settings:
                label: Last comments
                entity_class: Teebb\CoreBundle\Entity\Comment
                property: createdAt
                order: DESC
                template: '@TeebbCore\blocks\last_comments.html.twig'
179

T
teebbstudios 已提交
180
    mapping:
T
fix  
teebbstudios 已提交
181 182
        directories: ['%kernel.project_dir%/src']

T
config  
teebbstudios 已提交
183 184
    fly_system:
        service: '%fly_system_service%'
T
teebbstudios 已提交
185
        #此变量用于生成上传文件的链接
T
config  
teebbstudios 已提交
186 187
        root_host_url: '%fly_system_host%/uploads'

T
teebbstudios 已提交
188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203
    filter_settings:
        strip_tags:
            filter_class: Teebb\CoreBundle\TextFilter\StripTagsFilter
            filter_label: teebb.core.form.strip_tags_filter
            extra_form_type: Symfony\Component\Form\Extension\Core\Type\TextareaType
            extra_label: teebb.core.form.strip_tags_filter_extra
            extra_help: teebb.core.form.strip_tags_filter_extra_help

        nl2br:
            filter_class: Teebb\CoreBundle\TextFilter\Nl2brFilter
            filter_label: teebb.core.form.nl2br_filter

        escape_html:
            filter_class: Teebb\CoreBundle\TextFilter\EscapeHtmlFilter
            filter_label: teebb.core.form.escape_html_filter

T
fix  
teebbstudios 已提交
204 205 206 207 208 209 210 211 212
    assets:
        extra:
            transliteration:
                js_path: vendor/transliteration/bundle.umd.min.js

            videojs:
                js_path: vendor/video.js/video.min.js
                css_path: vendor/video.js/video-js.min.css

T
config  
teebbstudios 已提交
213 214 215
            sortablejs:
                js_path: vendor/sortablejs/Sortable.min.js

T
teebbstudios 已提交
216
            autocompletejs:
T
teebbstudios 已提交
217
                js_path: vendor/autocomplete.js/js/autocomplete.jquery.min.js
T
teebbstudios 已提交
218

T
teebbstudios 已提交
219 220 221
            nestable:
                js_path: vendor/nestable/jquery.nestable.js

T
config  
teebbstudios 已提交
222 223 224 225 226 227 228 229 230 231 232 233 234
oneup_flysystem:
    adapters:
        public_dir_adapter:
            local:
                directory: '%kernel.project_dir%/public/uploads'

    filesystems:
        public_dir_filesystem:
            adapter: public_dir_adapter
            alias: League\Flysystem\Filesystem

liip_imagine:
    resolvers:
T
teebbstudios 已提交
235
        flysystem_images_resolver:
T
config  
teebbstudios 已提交
236 237
            flysystem:
                filesystem_service: '%fly_system_service%'
T
teebbstudios 已提交
238
                root_url:           '%fly_system_host%/uploads' #用于生成图像链接
T
config  
teebbstudios 已提交
239 240
                cache_prefix:       media/cache
                visibility:         public
T
teebbstudios 已提交
241 242
    # default cache resolver for saving thumbnails
    cache: flysystem_images_resolver
T
config  
teebbstudios 已提交
243 244 245 246 247

    loaders:
        flysystem_images:
            flysystem:
                filesystem_service: '%fly_system_service%'
T
teebbstudios 已提交
248
    # default loader to use for all filter sets
T
config  
teebbstudios 已提交
249
    data_loader: flysystem_images
T
fix  
teebbstudios 已提交
250

T
teebbstudios 已提交
251 252 253 254 255 256 257 258
    filter_sets:
        squared_thumbnail_small:
            filters:
                thumbnail:
                    size:          [100, 100]
                    mode:          outbound
                    allow_upscale: true

T
teebbstudios 已提交
259
fos_ck_editor:
T
teebbstudios 已提交
260
    default_config: full
T
teebbstudios 已提交
261 262 263
    configs:
        full:
            toolbar: full
T
teebbstudios 已提交
264 265 266 267 268 269 270
            extraPlugins: "uploadfile, uploadimage"
            uploadUrl: /file/upload
            imageUploadURL: /file/upload
            filebrowserUploadUrl: /file/upload
            filebrowserFlashUploadUrl: /file/upload
            filebrowserImageUploadUrl: /file/upload

T
teebbstudios 已提交
271 272
        standard:
            toolbar: standard
T
teebbstudios 已提交
273 274 275 276 277 278 279
            extraPlugins: "uploadfile, uploadimage"
            uploadUrl: /file/upload
            imageUploadURL: /file/upload
            filebrowserUploadUrl: /file/upload
            filebrowserFlashUploadUrl: /file/upload
            filebrowserImageUploadUrl: /file/upload

T
teebbstudios 已提交
280 281
        basic:
            toolbar: basic
T
teebbstudios 已提交
282

T
teebbstudios 已提交
283 284 285 286 287 288 289 290 291
    plugins:
        uploadfile:
            path: /bundles/teebbcore/ckeditor-plugins/uploadfile/
            filename: plugin.js
        uploadimage:
            path: /bundles/teebbcore/ckeditor-plugins/uploadimage/
            filename: plugin.js


T
fix  
teebbstudios 已提交
292 293 294 295 296 297 298 299 300 301 302 303 304 305 306
doctrine:
    orm:
        entity_managers:
            filters:
                filters:
                    soft-deleteable:
                        class: Gedmo\SoftDeleteable\Filter\SoftDeleteableFilter
                        enabled: true

            default:
                auto_mapping: true
                mappings:
                    gedmo_translatable:
                        type: annotation
                        prefix: Gedmo\Translatable\Entity
T
bug fix  
teebbstudios 已提交
307
                        dir: "%kernel.project_dir%/vendor/gedmo/doctrine-extensions/src/Translatable/Entity"
T
fix  
teebbstudios 已提交
308 309 310 311 312
                        alias: GedmoTranslatable # (optional) it will default to the name set for the mapping
                        is_bundle: false
                    gedmo_translator:
                        type: annotation
                        prefix: Gedmo\Translator\Entity
T
bug fix  
teebbstudios 已提交
313
                        dir: "%kernel.project_dir%/vendor/gedmo/doctrine-extensions/src/Translator/Entity"
T
fix  
teebbstudios 已提交
314 315 316 317 318
                        alias: GedmoTranslator # (optional) it will default to the name set for the mapping
                        is_bundle: false
                    gedmo_loggable:
                        type: annotation
                        prefix: Gedmo\Loggable\Entity
T
bug fix  
teebbstudios 已提交
319
                        dir: "%kernel.project_dir%/vendor/gedmo/doctrine-extensions/src/Loggable/Entity"
T
fix  
teebbstudios 已提交
320 321 322 323 324
                        alias: GedmoLoggable # (optional) it will default to the name set for the mapping
                        is_bundle: false
                    gedmo_tree:
                        type: annotation
                        prefix: Gedmo\Tree\Entity
T
bug fix  
teebbstudios 已提交
325
                        dir: "%kernel.project_dir%/vendor/gedmo/doctrine-extensions/src/Tree/Entity"
T
fix  
teebbstudios 已提交
326 327
                        alias: GedmoTree # (optional) it will default to the name set for the mapping
                        is_bundle: false