Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sheillendra committed Jun 1, 2024
1 parent fae36db commit 1a83bfb
Show file tree
Hide file tree
Showing 12 changed files with 170 additions and 28 deletions.
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ to the require section of your composer.json file.

USAGE
---
In this case used advanced template and backend

in config.php change view components like this :
Change ```backend/config/main.php``` like this :

```
'bootstrap' => ['log', 'devicedetect'],
Expand Down Expand Up @@ -56,16 +57,11 @@ in config.php change view components like this :
],
],
'devicedetect' => [
'class' => 'alexandernst\devicedetect\DeviceDetect'
'class' => 'sheillendra\jeasyui\components\devicedetect\DeviceDetect'
],
]
```

In here you can see the default simulation. Recommended for ```backend``` in ```advanced```,
but if you want implement it in ```basic``` make sure your controller have implement ```AccessControl``` behavior
for logged user only can access the controller.


## GII

```
Expand Down
130 changes: 130 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content=
"width=device-width, initial-scale=1.0" />
<title>
How to create a custom scrollbar
using HTML and CSS?
</title>

<style>
.scroll-container {
height: 300px;
overflow-y: scroll;
}

.scroll-container::-webkit-scrollbar {
width: 12px;
}

.scroll-container::-webkit-scrollbar-track {
background: #f1f1f1;
}

.scroll-container::-webkit-scrollbar-thumb {
background: #888;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
background: #555;
}

.scroll-container::-webkit-scrollbar-button {
display: none;
}
</style>
</head>

<body>
<div class="scroll-container">
<!-- Content goes here -->
<strong>What is Data Structure?</strong>
<p>
A data structure is defined as a particular
way of storing and organizing data in our
devices to use the data efficiently and
effectively. The main idea behind using
data structures is to minimize the time
and space complexities. An efficient data
structure takes minimum memory space and
requires minimum time to execute the data.
</p>

<strong>What is Algorithm?</strong>
<p>
Algorithm is defined as a process or set
of well-defined instructions that are
typically used to solve a particular group
of problems or perform a specific type of
calculation. To explain in simpler terms,
it is a set of operations performed in a
step-by-step manner to execute a task.
</p>

<strong>How to start learning DSA?</strong>
<p>
The first and foremost thing is dividing
the total procedure into little pieces
which need to be done sequentially. The
complete process to learn DSA from
scratch can be broken into 4 parts:
</p>

<li>Learn about Time and Space complexities</li>
<li>
Learn the basics of individual
Data Structures
</li>
<li>Learn the basics of Algorithms</li>
<li>Practice Problems on DSA</li>

<strong> 1. Learn about Complexities</strong>
<p>
Here comes one of the interesting and
important topics. The primary motive to
use DSA is to solve a problem effectively
and efficiently. How can you decide if a
program written by you is efficient or
not? This is measured by complexities.
Complexity is of two types:
</p>

<li>
<strong>Time Complexity:</strong> Time
complexity is used to measure the amount
of time required to execute the code.
</li>
<li>
<strong>Space Complexity:</strong>
Space complexity means the amount of
space required to execute successfully
the functionalities of the code. You
will also come across the term Auxiliary
Space very commonly in DSA, which refers
to the extra space used in the program
other than the input data structure.
</li>
<p>
Both of the above complexities are
measured with respect to the input
parameters. But here arises a problem.
The time required for executing a code
depends on several factors, such as:
</p>
<li>
The number of operations performed
in the program
</li>
<li>The speed of the device, and also</li>
<li>
The speed of data transfer if being
executed on an online platform.
</li>
</div>
</body>

</html>
10 changes: 7 additions & 3 deletions src/assets/C3Asset.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
<?php

/**
* @link http://www.sheillendra.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
* Implement jQuery EasyUI v.1.4 GPL Edition on Yii2
* since : v.0.0.1
* author : sheillendra
* email : suryana869@gmail.com
* contact : +6281242126699 (whatsapp, viber)
* date : 2014-10-04
* website : https://esppd.fly.dev/
*/

namespace sheillendra\jeasyui\assets;
Expand Down
10 changes: 7 additions & 3 deletions src/assets/D3Asset.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
<?php

/**
* @link http://www.sheillendra.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
* Implement jQuery EasyUI v.1.4 GPL Edition on Yii2
* since : v.0.0.1
* author : sheillendra
* email : suryana869@gmail.com
* contact : +6281242126699 (whatsapp, viber)
* date : 2014-10-04
* website : https://esppd.fly.dev/
*/

namespace sheillendra\jeasyui\assets;
Expand Down
4 changes: 3 additions & 1 deletion src/assets/ExtDgFilterRowAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
* Implement jQuery EasyUI v.1.4 GPL Edition on Yii2
* since : v.0.0.1
* author : sheillendra
* email : suryana869@gmail.com
* contact : +6281242126699 (whatsapp, viber)
* date : 2014-10-04
* website : sheillendra.com
* website : https://esppd.fly.dev/
*/

namespace sheillendra\jeasyui\assets;
Expand Down
4 changes: 3 additions & 1 deletion src/assets/ExtDgPivotAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
* Implement jQuery EasyUI v.1.4 GPL Edition on Yii2
* since : v.0.0.1
* author : sheillendra
* email : suryana869@gmail.com
* contact : +6281242126699 (whatsapp, viber)
* date : 2014-10-04
* website : sheillendra.com
* website : https://esppd.fly.dev/
*/

namespace sheillendra\jeasyui\assets;
Expand Down
4 changes: 3 additions & 1 deletion src/assets/ExtDgViewAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
* Implement jQuery EasyUI v.1.4 GPL Edition on Yii2
* since : v.0.0.1
* author : sheillendra
* email : suryana869@gmail.com
* contact : +6281242126699 (whatsapp, viber)
* date : 2014-10-04
* website : sheillendra.com
* website : https://esppd.fly.dev/
*/

namespace sheillendra\jeasyui\assets;
Expand Down
10 changes: 6 additions & 4 deletions src/assets/ExtDgViewDetailAsset.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<?php

/**
* Implement jQuery EasyUI v.1.5.4 GPL Edition on Yii2
* since : v.2.0.0-alpha4
* Implement jQuery EasyUI v.1.4 GPL Edition on Yii2
* since : v.0.0.1
* author : sheillendra
* date : 2018-02-25
* website : sheillendra.com
* email : suryana869@gmail.com
* contact : +6281242126699 (whatsapp, viber)
* date : 2014-10-04
* website : https://esppd.fly.dev/
*/

namespace sheillendra\jeasyui\assets;
Expand Down
2 changes: 1 addition & 1 deletion src/components/devicedetect/DeviceDetect.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace common\components\devicedetect;
namespace sheillendra\jeasyui\components\devicedetect;

use Yii;
use Detection\MobileDetect;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* Site controller
*/
class JeasyuiController extends Controller
class SiteController extends Controller
{

/**
Expand Down Expand Up @@ -100,7 +100,7 @@ public function actionLogin()
if ($model->hasErrors()) {
echo Json::encode(['loginerror' => $model->getFirstErrors()]);
} else {
return $this->render('login/login', ['model' => $model]);
return $this->render('login', ['model' => $model]);
}
}
return Yii::$app->end();
Expand Down
4 changes: 2 additions & 2 deletions src/views/layouts/_init_logged.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
$this->params['favico'] = Yii::getAlias('@web') . '/favicon.png';
$this->params['userName'] = Yii::$app->user->identity->username;
$this->params['homeUrl'] = Url::to(['/']);
$this->params['logoutUrl'] = Url::to(['/jeasyui/logout']);
$this->params['getReferenceUrl'] = Url::to(['/jeasyui/reference']);
$this->params['logoutUrl'] = Url::to(['/site/logout']);
$this->params['getReferenceUrl'] = Url::to(['/site/reference']);
$this->params['westTitle'] = 'Menu Utama';
$this->params['westIcon'] = 'icon-compass';
$this->params['sidebarPlugin'] = 'tree'; //tree or accordion
Expand Down
6 changes: 3 additions & 3 deletions src/views/layouts/_init_login.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
//accomodate login with email
$this->params['usernameSelector'] = '#loginform-username';

$this->params['loginUrl'] = Url::to(['/jeasyui/login']);
$this->params['signupUrl'] = Url::to(['/jeasyui/signup']);
$this->params['forgotUrl'] = Url::to(['/jeasyui/reset-password']);
$this->params['loginUrl'] = Url::to(['/site/login']);
$this->params['signupUrl'] = Url::to(['/site/signup']);
$this->params['forgotUrl'] = Url::to(['/site/reset-password']);

0 comments on commit 1a83bfb

Please sign in to comment.