Skip to content

Commit 70b453e

Browse files
author
M. Rizky Hidayat
committed
Add some views and resolve something missing
1 parent dba0148 commit 70b453e

File tree

9 files changed

+99
-3
lines changed

9 files changed

+99
-3
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ trim_trailing_whitespace = false
1313

1414
[*.yml]
1515
indent_size = 2
16+
17+
[*.blade.php]
18+
indent_size = 2

assets/img/stisla-fill.svg

Lines changed: 1 addition & 0 deletions
Loading

assets/img/stisla-light.svg

Lines changed: 1 addition & 0 deletions
Loading

assets/img/stisla-transparent.svg

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
@extends('layouts.app')
2+
3+
@section('content')
4+
<section class="section">
5+
<div class="section-header">
6+
<h1>Package Management</h1>
7+
</div>
8+
<div class="section-body">
9+
<h2 class="section-title">List of Packages Question</h2>
10+
<p class="section-lead">This page is for managing packages including questions and answers.</p>
11+
<div class="card">
12+
<div class="card-body p-0">
13+
<div class="table-responsive">
14+
<table class="table table-striped table-md">
15+
<thead>
16+
<tr>
17+
<th>#</th>
18+
<th>Name</th>
19+
<th>Description</th>
20+
<th>Level</th>
21+
<th></th>
22+
</tr>
23+
</thead>
24+
<tbody>
25+
<tr>
26+
<td>1</td>
27+
<td>Lorem</td>
28+
<td>Lorem ipsum dolor sit amet, consectetur adipisicing.</td>
29+
<td>3</td>
30+
<td></td>
31+
</tr>
32+
</tbody>
33+
</table>
34+
</div>
35+
</div>
36+
</div>
37+
</div>
38+
</section>
39+
@endsection
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
<div class="footer-left">
2+
Copyright &copy; 2018 <div class="bullet"></div> Design By <a href="https://nauval.in/">Muhamad Nauval Azhar</a>
3+
</div>
14
<div class="footer-right">
2-
Made with <i class="fas fa-heart text-danger"></i> Copyright &copy; {{ Carbon\Carbon::now()->year }}
5+
2.3.0
36
</div>

resources/views/partials/sidebar.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
</div>
88
<ul class="sidebar-menu">
99
<li class="menu-header">Dashboard</li>
10-
<li class="active"><a class="nav-link" href="#"><i class="fa fa-columns"></i> <span>Dashboard</span></a></li>
11-
<li><a href="#"><i class="fa fa-book"></i> <span>Packages</span></a></li>
10+
<li class="{{ request()->is('/') ? 'active' : '' }}"><a class="nav-link" href="{{ url('/') }}"><i class="fa fa-columns"></i> <span>Dashboard</span></a></li>
11+
<li class="{{ request()->is('table') ? 'active' : '' }}"><a href="{{ url('table') }}"><i class="fa fa-table"></i> <span>Tables</span></a></li>
1212
<li class="menu-header">Users</li>
1313
<li><a class="nav-link" href=""><i class="fa fa-users"></i> <span>Users</span></a></li>
1414
</ul>

src/StislaPreset.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,17 @@ class StislaPreset extends Preset
1919
public static function install(UiCommand $command)
2020
{
2121
static::updatePackages();
22+
$command->info('Updating Assets');
23+
static::updateAssets();
2224

2325
$command->info('Updating Resource JS');
2426
static::updateScripts();
2527
$command->info('Updating Resource SASS');
2628
static::updateStyles();
2729
$command->info('Updating Resource Layouts');
2830
static::updateLayoutViews();
31+
$command->info('Updating Webpack Mix');
32+
static::updateMix();
2933

3034
static::removeNodeModules();
3135
}
@@ -47,6 +51,19 @@ protected static function updatePackageArray(array $packages)
4751
] + $packages;
4852
}
4953

54+
/**
55+
* Update the assets.
56+
*
57+
* @return void
58+
*/
59+
protected static function updateAssets()
60+
{
61+
static::copyDirectory(
62+
__DIR__.'/../assets',
63+
public_path('assets')
64+
);
65+
}
66+
5067
/**
5168
* Update the JS
5269
*
@@ -73,6 +90,8 @@ protected static function updateStyles()
7390

7491
/**
7592
* Update the default layout
93+
*
94+
* @return void
7695
*/
7796
protected static function updateLayoutViews()
7897
{
@@ -81,6 +100,19 @@ protected static function updateLayoutViews()
81100
static::copyDirectory(static::RESOURCE_PATH.'views/app', resource_path('views/app'));
82101
}
83102

103+
/**
104+
* Update the webpack.mix.js
105+
*
106+
* @return void
107+
*/
108+
protected static function updateMix()
109+
{
110+
copy(
111+
__DIR__.'/../stubs/webpack.mix.js',
112+
base_path('webpack.mix.js')
113+
);
114+
}
115+
84116
/**
85117
* Copy a directory
86118
*

stubs/webpack.mix.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const mix = require('laravel-mix');
2+
3+
/*
4+
|--------------------------------------------------------------------------
5+
| Mix Asset Management
6+
|--------------------------------------------------------------------------
7+
|
8+
| Mix provides a clean, fluent API for defining some Webpack build steps
9+
| for your Laravel application. By default, we are compiling the Sass
10+
| file for the application as well as bundling up all the JS files.
11+
|
12+
*/
13+
14+
mix.sass('resources/sass/app.scss', 'public/css')
15+
.js('resources/js/app.js', 'public/js').extract();
16+
mix.version();

0 commit comments

Comments
 (0)