Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
semour
/
semour_admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e04e7a3b
authored
Dec 05, 2022
by
孙龙
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' of
http://git.ichunt.net/semour/semour_admin
parents
0b709d4e
74275513
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
136 additions
and
12 deletions
app/Admin/Controllers/HomeController.php
resources/views/dashboard/dependencies.blade.php
resources/views/dashboard/environment.blade.php
resources/views/dashboard/extensions.blade.php
resources/views/dashboard/title.blade.php
app/Admin/Controllers/HomeController.php
View file @
e04e7a3b
...
@@ -18,20 +18,20 @@ class HomeController extends Controller
...
@@ -18,20 +18,20 @@ class HomeController extends Controller
->
header
(
'Dashboard'
)
->
header
(
'Dashboard'
)
->
description
(
'Description...'
)
->
description
(
'Description...'
)
->
body
(
function
(
Row
$row
)
{
->
body
(
function
(
Row
$row
)
{
$row
->
column
(
6
,
function
(
Column
$column
)
{
$row
->
column
(
12
,
function
(
Column
$column
)
{
$column
->
row
(
Dashboard
::
title
(
));
$column
->
row
(
view
(
'dashboard.title'
));
$column
->
row
(
new
Examples\Tickets
());
//
$column->row(new Examples\Tickets());
});
});
$row
->
column
(
6
,
function
(
Column
$column
)
{
//
$row->column(6, function (Column $column) {
$column
->
row
(
function
(
Row
$row
)
{
//
$column->row(function (Row $row) {
$row
->
column
(
6
,
new
Examples\NewUsers
());
//
$row->column(6, new Examples\NewUsers());
$row
->
column
(
6
,
new
Examples\NewDevices
());
//
$row->column(6, new Examples\NewDevices());
});
//
});
//
$column
->
row
(
new
Examples\Sessions
());
//
$column->row(new Examples\Sessions());
$column
->
row
(
new
Examples\ProductOrders
());
//
$column->row(new Examples\ProductOrders());
});
//
});
});
});
}
}
}
}
resources/views/dashboard/dependencies.blade.php
0 → 100644
View file @
e04e7a3b
<style>
.table
tr
:first-child
td
{
border-top
:
0
;
}
</style>
<div
class=
"table-responsive"
>
<table
class=
"table"
>
@foreach($dependencies as $dependency => $version)
<tr>
<td
width=
"240px"
class=
"bold text-80"
>
{{ $dependency }}
</td>
<td><span
class=
"label bg-primary"
>
{{ $version }}
</span></td>
</tr>
@endforeach
</table>
</div>
\ No newline at end of file
resources/views/dashboard/environment.blade.php
0 → 100644
View file @
e04e7a3b
<div
class=
"table-responsive"
>
<table
class=
"table"
>
@foreach($envs as $env)
<tr>
<td
width=
"120px"
class=
"bold text-80"
>
{{ $env['name'] }}
</td>
<td>
{{ $env['value'] }}
</td>
</tr>
@endforeach
</table>
</div>
\ No newline at end of file
resources/views/dashboard/extensions.blade.php
0 → 100644
View file @
e04e7a3b
<style>
.ext-icon
{
color
:
rgba
(
0
,
0
,
0
,
0.5
);
margin-left
:
10px
;
}
.installed
{
color
:
#00a65a
;
margin-right
:
15px
;
font-size
:
20px
;
}
</style>
<ul
class=
"products-list product-list-in-box"
id=
"extension-box"
style=
"margin-top:10px;min-height: 100px"
>
@foreach($extensions as $extension)
<li
class=
"item hidden"
>
<div
class=
"product-img"
>
<i
class=
"{{$extension['icon']}} fa-2x ext-icon"
></i>
</div>
<div
class=
"product-info"
data-key=
"{{$extension['key']}}"
>
<a
href=
"{{ $extension['link'] }}"
target=
"_blank"
class=
""
>
{{ $extension['name'] }}
</a>
@if($extension['installed'])
<span
class=
"pull-right installed"
><i
class=
"ti-check"
></i></span>
@endif
</div>
</li>
@endforeach
</ul>
<div
class=
"box-footer text-center"
>
<a
href=
"https://github.com/jqhph/dcat-admin#%E6%89%A9%E5%B1%95"
target=
"_blank"
class=
"uppercase"
>
View All Extensions
</a>
</div>
<script>
Dcat
.
ready
(
function
()
{
// var $box = $('#extension-box');
// $box.loading();
//
// $.ajax({
// url: 'https://jqhph.github.io/dcat-admin/extra/extensions.html',
// success: function (response) {
// $box.loading(false);
//
// $box.html(response);
// },
// error: function () {
// $box.loading(false);
//
// $box.find('.item').removeClass('hidden');
// }
// });
})
</script>
\ No newline at end of file
resources/views/dashboard/title.blade.php
0 → 100644
View file @
e04e7a3b
<style>
.dashboard-title
.links
{
text-align
:
center
;
margin-bottom
:
2.5rem
;
}
.dashboard-title
.links
>
a
{
padding
:
0
25px
;
font-size
:
12px
;
font-weight
:
600
;
letter-spacing
:
.1rem
;
text-decoration
:
none
;
text-transform
:
uppercase
;
color
:
#fff
;
}
.dashboard-title
h1
{
font-weight
:
200
;
font-size
:
2.5rem
;
}
.dashboard-title
.avatar
{
background
:
#fff
;
border
:
2px
solid
#fff
;
width
:
70px
;
height
:
70px
;
}
</style>
<div
class=
"dashboard-title card bg-primary"
>
<div
class=
"card-body"
style=
"min-height: 100%"
>
<div
class=
"text-center "
>
<img
class=
"avatar img-circle shadow mt-1"
style=
"width: 500px"
src=
"{{ admin_asset('@admin/images/logo.png') }}"
>
<div
class=
"text-center mb-1"
>
<h1
class=
"mb-3 mt-2 text-white"
>
Semour Admin
</h1>
<div
class=
"links"
>
{{--
<a
href=
"https://github.com/jqhph/dcat-admin"
target=
"_blank"
>
Github
</a>
--}}
{{--
<a
href=
"http://www.dcatadmin.com/"
id=
"doc-link"
target=
"_blank"
>
{{ __('admin.documentation') }}
</a>
--}}
{{--
<a
href=
"http://www.dcatadmin.com/"
id=
"demo-link"
target=
"_blank"
>
{{ __('admin.extensions') }}
</a>
--}}
{{--
<a
href=
"https://jqhph.github.io/dcat-admin/demo.html"
id=
"demo-link"
target=
"_blank"
>
{{ __('admin.demo') }}
</a>
--}}
</div>
</div>
</div>
</div>
</div>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment