toggle(!collapsed)}>
8 |
9 | {collapsed && }
10 | {collapsed || }
11 |
12 |
13 | )
14 | }
15 |
16 | export default CollapseTrigger
17 |
--------------------------------------------------------------------------------
/admin-views/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # next.js
12 | /.next/
13 | /out/
14 |
15 | # production
16 | /build
17 |
18 | # misc
19 | .DS_Store
20 | *.pem
21 |
22 | # debug
23 | npm-debug.log*
24 | yarn-debug.log*
25 | yarn-error.log*
26 |
27 | # local env files
28 | .env.local
29 | .env.development.local
30 | .env.test.local
31 | .env.production.local
32 |
33 | # vercel
34 | .vercel
35 |
36 | # typescript
37 | *.tsbuildinfo
38 |
39 |
40 | # eslint
41 | .eslintcache
42 |
43 | # stylelint
44 | .stylelintcache
--------------------------------------------------------------------------------
/admin-views/dist/assets/Alert--owwxmdX.js:
--------------------------------------------------------------------------------
1 | import{t as v,v as _,w as i,x as l,l as c,y as f,z as y,D as m,E as b}from"./index-CEmnTf-r.js";var A=function(s){v(r,s);function r(){return s!==null&&s.apply(this,arguments)||this}return r.prototype.render=function(){var e=this.props,d=e.render,p=e.body,t=e.level,n=e.icon,a=e.showIcon,o=e.actions,h=_(e,["render","body","level","icon","showIcon","actions"]);i(t)&&(t=l(t,this.props.data)),i(n)&&(n=l(n,this.props.data)),i(a)&&(a=l(a,this.props.data));var u=o?c.isValidElement(o)?o:d("alert-actions",o):null;return c.createElement(f,y({},h,{level:t,icon:n,showIcon:a,actions:u}),d("body",p))},r=m([b({type:"alert"})],r),r}(c.Component);export{A as AlertRenderer};
2 |
--------------------------------------------------------------------------------
/src/Middleware/Authenticate.php:
--------------------------------------------------------------------------------
1 | authIntercept($request)) {
14 | return Admin::response()
15 | ->additional(['code' => Response::HTTP_UNAUTHORIZED])
16 | ->doNotDisplayToast()
17 | ->fail(admin_trans('admin.please_login'));
18 | }
19 |
20 | Admin::permission()->checkUserStatus();
21 |
22 | return $next($request);
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/src/Console/Module/stubs/routes.stub:
--------------------------------------------------------------------------------
1 | \Slowlyo\OwlAdmin\Admin::view(config('{{module}}.admin.route.prefix')));
7 |
8 | Route::group([
9 | 'as' => '{{module}}',
10 | 'domain' => config('{{module}}.admin.route.domain'),
11 | 'prefix' => config('{{module}}.admin.route.prefix'),
12 | 'middleware' => config('{{module}}.admin.route.middleware'),
13 | ], function (Router $router) {
14 | $router->resource('dashboard', \{{Namespace}}\HomeController::class);
15 | $router->resource('system/settings', \{{Namespace}}\SettingController::class);
16 | });
17 |
--------------------------------------------------------------------------------
/admin-views/dist/assets/WebComponent-_WejfBU5.js:
--------------------------------------------------------------------------------
1 | import{t as s,dk as y,x as m,l as p,z as f,D as c,E as b}from"./index-CEmnTf-r.js";var v=function(t){s(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.renderBody=function(){var n=this.props,r=n.body,a=n.render;return r?a("body",r):null},e.prototype.render=function(){var n=this.props,r=n.tag,a=n.props,d=n.data,i=n.style,l=y(a,function(o){return typeof o=="string"&&m(o,d,"| raw")||o}),u=r||"div";return p.createElement(u,f({},l,{style:i}),this.renderBody())},e}(p.Component),g=function(t){s(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e=c([b({type:"web-component"})],e),e}(v);export{g as WebComponentRenderer,v as default};
2 |
--------------------------------------------------------------------------------
/admin-views/dist/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |