Skip to content

Commit

Permalink
集成 administrator
Browse files Browse the repository at this point in the history
  • Loading branch information
summerblue committed Sep 20, 2019
1 parent aedb319 commit 3faebdc
Show file tree
Hide file tree
Showing 3,164 changed files with 64,728 additions and 1 deletion.
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"overtrue/pinyin": "~4.0",
"predis/predis": "~1.1",
"spatie/laravel-permission": "~3.0",
"summerblue/administrator": "6.*",
"summerblue/laravel-active": "6.*",
"viacreative/sudo-su": "~1.1"
},
Expand Down
116 changes: 115 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

139 changes: 139 additions & 0 deletions config/administrator.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
<?php

return array(

/*
* Package URI
*
* @type string
*/
'uri' => 'admin',

/*
* Domain for routing.
*
* @type string
*/
'domain' => '',

/*
* Page title
*
* @type string
*/
'title' => config('app.name'),

/*
* The path to your model config directory
*
* @type string
*/
'model_config_path' => config_path('administrator'),

/*
* The path to your settings config directory
*
* @type string
*/
'settings_config_path' => config_path('administrator/settings'),

/*
* The menu structure of the site. For models, you should either supply the name of a model config file or an array of names of model config
* files. The same applies to settings config files, except you must prepend 'settings.' to the settings config file name. You can also add
* custom pages by prepending a view path with 'page.'. By providing an array of names, you can group certain models or settings pages
* together. Each name needs to either have a config file in your model config path, settings config path with the same name, or a path to a
* fully-qualified Laravel view. So 'users' would require a 'users.php' file in your model config path, 'settings.site' would require a
* 'site.php' file in your settings config path, and 'page.foo.test' would require a 'test.php' or 'test.blade.php' file in a 'foo' directory
* inside your view directory.
*
* @type array
*
* array(
* 'E-Commerce' => array('collections', 'products', 'product_images', 'orders'),
* 'homepage_sliders',
* 'users',
* 'roles',
* 'colors',
* 'Settings' => array('settings.site', 'settings.ecommerce', 'settings.social'),
* 'Analytics' => array('E-Commerce' => 'page.ecommerce.analytics'),
* )
*/
'menu' => [],

/*
* The permission option is the highest-level authentication check that lets you define a closure that should return true if the current user
* is allowed to view the admin section. Any "falsey" response will send the user back to the 'login_path' defined below.
*
* @type closure
*/
'permission' => function () {
return Auth::check();
},

/*
* This determines if you will have a dashboard (whose view you provide in the dashboard_view option) or a non-dashboard home
* page (whose menu item you provide in the home_page option)
*
* @type bool
*/
'use_dashboard' => false,

/*
* If you want to create a dashboard view, provide the view string here.
*
* @type string
*/
'dashboard_view' => '',

/*
* The menu item that should be used as the default landing page of the administrative section
*
* @type string
*/
'home_page' => '',

/*
* The route to which the user will be taken when they click the "back to site" button
*
* @type string
*/
'back_to_site_path' => '/',

/*
* The login path is the path where Administrator will send the user if they fail a permission check
*
* @type string
*/
'login_path' => 'login',

/*
* The logout path is the path where Administrator will send the user when they click the logout link
*
* @type string
*/
'logout_path' => false,

/*
* This is the key of the return path that is sent with the redirection to your login_action. Session::get('redirect') will hold the return URL.
*
* @type string
*/
'login_redirect_key' => 'redirect',

/*
* Global default rows per page
*
* @type int
*/
'global_rows_per_page' => 20,

/*
* An array of available locale strings. This determines which locales are available in the languages menu at the top right of the Administrator
* interface.
*
* @type array
*/
'locales' => [],

'custom_routes_file' => app_path('Http/routes/administrator.php'),
);
Empty file.
Binary file not shown.
6 changes: 6 additions & 0 deletions public/packages/summerblue/administrator/css/animate.min.css

Large diffs are not rendered by default.

3,091 changes: 3,091 additions & 0 deletions public/packages/summerblue/administrator/css/app.css

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#wrapper header {
filter: none;
}

#wrapper header ul#menu > li.menu, #wrapper header ul#menu > li.item {
filter: none;
}

Large diffs are not rendered by default.

Binary file not shown.
Loading

0 comments on commit 3faebdc

Please sign in to comment.