Skip to content

Commit

Permalink
upgrade version
Browse files Browse the repository at this point in the history
  • Loading branch information
sheillendra committed Dec 20, 2023
1 parent 5c96763 commit eaa4db9
Show file tree
Hide file tree
Showing 1,068 changed files with 8,011 additions and 8,408 deletions.
10 changes: 6 additions & 4 deletions src/assets/ExtDgViewGroupAsset.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 : [email protected]
* 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/ExtPortalAsset.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 : [email protected]
* contact : +6281242126699 (whatsapp, viber)
* date : 2014-10-04
* website : sheillendra.com
* website : https://esppd.fly.dev/
*/

namespace sheillendra\jeasyui\assets;
Expand Down
10 changes: 7 additions & 3 deletions src/assets/FontAwesomeAsset.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 : [email protected]
* contact : +6281242126699 (whatsapp, viber)
* date : 2014-10-04
* website : https://esppd.fly.dev/
*/

namespace sheillendra\jeasyui\assets;
Expand Down
26 changes: 17 additions & 9 deletions src/assets/JEasyUIAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,20 @@
* Implement jQuery EasyUI v.1.4 GPL Edition on Yii2
* since : v.0.0.1
* author : sheillendra
* email : [email protected]
* contact : +6281242126699 (whatsapp, viber)
* date : 2014-10-04
* website : www.anjani.co.id
* website : https://esppd.fly.dev/
*/

namespace sheillendra\jeasyui\assets;

use Yii;
use yii\web\AssetBundle;

class JEasyUIAsset extends AssetBundle {
public $sourcePath = '@sheillendra/jeasyui/assets/jquery-easyui-1.10.15';
class JEasyUIAsset extends AssetBundle
{
public $sourcePath = '@sheillendra/jeasyui/assets/jquery-easyui-1.10.18';
public $css = [
'themes/default/easyui.css',
'themes/icon.css',
Expand All @@ -35,12 +38,18 @@ class JEasyUIAsset extends AssetBundle {
]
];

public function init() {
public function init()
{
$themeCookies = filter_input(INPUT_COOKIE, 'jeasyui-theme');
$themes = ['black', 'bootstrap', 'default', 'gray', 'material', 'metro',
//'metro-blue', 'metro-gray', 'metro-green', 'metro-orange', 'metro-red',
//'ui-cupertino', 'ui-dark-hive', 'ui-pepper-grinder','ui-sunny'
'material-blue', 'material-teal'
$themes = [
'black',
'bootstrap',
'default',
'gray',
'material',
'material-blue',
'material-teal',
'metro',
];
if ($themeCookies && in_array($themeCookies, $themes)) {
$this->css[0] = "themes/$themeCookies/easyui.css";
Expand All @@ -49,5 +58,4 @@ public function init() {
}
parent::init();
}

}
10 changes: 6 additions & 4 deletions src/assets/JEasyUIMobileAsset.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<?php

/**
* Implement jQuery EasyUI GPL Edition on Yii2
* since : v.0.0.2
* Implement jQuery EasyUI v.1.4 GPL Edition on Yii2
* since : v.0.0.1
* author : sheillendra
* date : 2017-05-28
* website : www.anjani.co.id
* email : [email protected]
* contact : +6281242126699 (whatsapp, viber)
* date : 2014-10-04
* website : https://esppd.fly.dev/
*/

namespace sheillendra\jeasyui\assets;
Expand Down
41 changes: 41 additions & 0 deletions src/assets/ProfileAsset.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php

/**
* Implement jQuery EasyUI v.1.4 GPL Edition on Yii2
* since : v.0.0.1
* author : sheillendra
* email : [email protected]
* contact : +6281242126699 (whatsapp, viber)
* date : 2014-10-04
* website : https://esppd.fly.dev/
*/

namespace sheillendra\jeasyui\assets;

use Yii;
use yii\web\AssetBundle;

/**
* @author Qiang Xue <[email protected]>
* @since 2.0
*/
class ProfileAsset extends AssetBundle {

public $sourcePath = '@sheillendra/jeasyui/assets/dist';
//public $basePath = '@webroot/dist/jeasyui';
//public $baseUrl = '@web/dist/jeasyui';
public $css = [
'css/profile.css',
];
public $js = [
'js/profile.js'
];
public $depends = [
'sheillendra\jeasyui\assets\YiiEasyUIAsset'
];

public function init() {
parent::init();
}

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

/**
* @link http://www.yiiframework.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 : [email protected]
* 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/YiiEasyUILoginAsset.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
<?php

/**
* @link http://www.yiiframework.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 : [email protected]
* 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/YiiEasyUIMobileAsset.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
<?php

/**
* @link http://www.yiiframework.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 : [email protected]
* 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/YiiEasyUIMobileLoginAsset.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
<?php

/**
* @link http://www.yiiframework.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 : [email protected]
* contact : +6281242126699 (whatsapp, viber)
* date : 2014-10-04
* website : https://esppd.fly.dev/
*/

namespace sheillendra\jeasyui\assets;
Expand Down
105 changes: 105 additions & 0 deletions src/assets/dist/js/profile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
window.yii.profile = (function ($) {
var profilePasswordForm;
var oldPasswordInput;
var newPasswordInput;
var repeatPasswordInput;

return {
isActive: false,
init: function () {
var profileEl = $('#profile-index');
profileEl.layout({
fit: true,
border: false
}).layout('add', {
region: 'center',
border: true,
content: '<div id="profile-center"></div>'
});

var profileTab = $('#profile-center').tabs({
tabPosition: 'left',
border: false,
fit: true
});

profilePasswordForm = $('<form id="eselon-form" method="post" style="padding: 10px"></form>');
profileTab.tabs('add', {
title: 'Ganti Password',
content: profilePasswordForm,
selected: true,
});

profileTab.tabs('add', {
title: 'Foto',
content: '<div style="padding: 10px">Fitur ini belum terbuka</div>',
});

oldPasswordInput = $('<input id="old-password" name="oldPassword"/>');
profilePasswordForm.append(oldPasswordInput);
oldPasswordInput.passwordbox({
label: 'Password Saat ini: ',
labelPosition: 'top',
width: 300,
required: true
});

newPasswordInput = $('<input id="new-password" name="newPassword"/>');
profilePasswordForm.append(newPasswordInput);
newPasswordInput.passwordbox({
label: 'Password baru: ',
labelPosition: 'top',
width: 300,
required: true,
validType: "diffTo['#old-password']"
});

repeatPasswordInput = $('<input name="repeatPassword"/>');
profilePasswordForm.append(repeatPasswordInput);
repeatPasswordInput.passwordbox({
label: 'Ulangi Password baru: ',
labelPosition: 'top',
width: 300,
required: true,
validType: "equalTo['#new-password']"
});

profilePasswordForm.append('<br><br>');
submitProfilePasswordForm = $('<div></div>');
profilePasswordForm.append(submitProfilePasswordForm);

submitProfilePasswordForm.linkbutton({
iconCls: 'icon-disk',
text: 'Simpan',
onClick: function () {
yii.easyui.showMainMask();
profilePasswordForm.form('submit');
}
});

profilePasswordForm.form({
url: yii.easyui.ajaxAuthToken({
r: 'jeasyui/change-password',
}, true),
iframe: false,
success: function (data) {
yii.easyui.hideMainMask();
data = JSON.parse(data);
if(data.success){
window.location.reload();
} else {
$.messager.alert('Ganti Password', data.message, 'error');
}
},
onSubmit: function (params) {
var isValid = $(this).form('validate');
if (!isValid) {
yii.easyui.hideMainMask(); // hide progress bar while the form is invalid
}
return isValid;
}
});

}
};
})(window.jQuery);
9 changes: 5 additions & 4 deletions src/assets/dist/js/yii.easyui-login.min.js

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

Loading

0 comments on commit eaa4db9

Please sign in to comment.