TrestleAdmin
2019-03-20 17:57:18 0 举报
AI智能生成
Trestle Admin 代码架构
作者其他创作
大纲/内容
engine code
Trestle
config
admins
Admin
作为Admin资源,负责存储
resource子类
Builder
从dsl角度进行admin资源构建
Trestle.resource do; xxx的block语法解释者
UsersAdmin
Controller
请求handler
Trestle::ApplicationController < ActionController::Base
include helpers
app/controllers/concerns/trestle/*
Trestle::Admin::Controller.helpers_path
Trestle::Admin::Controller
Trestle::Resource::Controller
WebAppsAdmin::AdminController
views
layout
trestle/resource/*
admin.form.render(self, instance)
assets
bootstrap 3.x included
bower pipeline
jquery
customize js & style
navigation
sidebar
左侧导航条
Navigation.build(config.menus + admins.values.map(&:menu).compact)
Testle.navigation
features
demo
cool admin
similar but better than ActiveAdmin
rails engine
user space
usage
usage
config/initializers/trestle.rb
UsersAdmin
table do; xxx end
form do; xx end
0 条评论
下一页
为你推荐
查看更多
抱歉,暂无相关内容