Skip to content

Commit

Permalink
Remove package-lock, backport js/xhi enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
aisera-mikowski committed Sep 23, 2017
1 parent 6c953fb commit 5cedb8e
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 26 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -15,4 +15,5 @@ js/vendor
node_modules
npm-debug.log
lib/xhi_state.json
package-lock.json

18 changes: 9 additions & 9 deletions js/xhi/00.js
Expand Up @@ -28,14 +28,14 @@ xhi._makeRoot_ = function ( aKey ) {
_Object_ : __Object,
_JSON_ : JSON,

_fnTypeof_ : function ( a ) { return typeof a; },
_fnClearTimeout_ : clearTimeout,
_fnGetKeyList_ : __Object.keys,
_fnGetAbs_ : __Math.abs,
_fnGetFloor_ : __Math.floor,
_fnGetRandom_ : __Math.random,
_fnGetRound_ : __Math.round,
_fnSetTimeout_ : setTimeout,
_typeofFn_ : function ( a ) { return typeof a; },
_clearTimeoutFn_ : clearTimeout,
_makeKeyListFn_ : __Object.keys,
_makeAbsNumFn_ : __Math.abs,
_makeFloorNumFn_ : __Math.floor,
_makeRandomNumFn_ : __Math.random,
_makeRoundNumFn_ : __Math.round,
_setTimeoutFn_ : setTimeout,

_activeElement_ : 'activeElement',
_addClass_ : 'addClass',
Expand Down Expand Up @@ -208,7 +208,7 @@ xhi._makeRoot_ = function ( aKey ) {
return {
_aKey_ : aKey,
_nMap_ : nMap,
_vMap_ : vMap,
_vMap_ : vMap
};
// == . END PUBLIC METHODS ===========================================
};
Expand Down
18 changes: 9 additions & 9 deletions js/xhi/01.util.js
Expand Up @@ -43,11 +43,11 @@ xhi._makeUtil_ = function ( aMap ) {
__100 = nMap._100_,
__n1 = nMap._n1_,

__floor = vMap._fnGetFloor_,
__random = vMap._fnGetRandom_,
__setTo = vMap._fnSetTimeout_,
__typeof = vMap._fnTypeof_,
__keys = vMap._fnGetKeyList_,
__floor = vMap._makeFloorNumFn_,
__random = vMap._makeRandomNumFn_,
__setTo = vMap._setTimeoutFn_,
__typeof = vMap._typeofFn_,
__keys = vMap._makeKeyListFn_,

typeofMap = {
'boolean' : '_Boolean_',
Expand Down Expand Up @@ -414,7 +414,7 @@ xhi._makeUtil_ = function ( aMap ) {
}

sign_int = getNumSign( num );
num_str = __Str( vMap._fnGetAbs_( num ) );
num_str = __Str( vMap._makeAbsNumFn_( num ) );
zero_count = count - num_str[ __length ]
- ( sign_int === __n1 ? __1 : __0 );

Expand Down Expand Up @@ -685,7 +685,7 @@ xhi._makeUtil_ = function ( aMap ) {
function makeMetricStr( arg_num ) {
var
num = castNum( arg_num, __0 ),
abs_num = vMap._fnGetAbs_( num ),
abs_num = vMap._makeAbsNumFn_( num ),
root_num, suffix
;

Expand Down Expand Up @@ -994,7 +994,7 @@ xhi._makeUtil_ = function ( aMap ) {
var
time_ms = castInt( arg_time_ms, __0 ),
time_idx = castInt( arg_time_idx, __3 ),
abs_idx = vMap._fnGetAbs_( time_idx ),
abs_idx = vMap._makeAbsNumFn_( time_idx ),

sec_ms = configMap._sec_ms_,
min_sec = configMap._min_sec_,
Expand Down Expand Up @@ -1080,7 +1080,7 @@ xhi._makeUtil_ = function ( aMap ) {
solve_num, solve_str, solve_list, list_count, idx
;

if ( vMap._fnGetAbs_( input_num ) >= round_limit_num ) {
if ( vMap._makeAbsNumFn_( input_num ) >= round_limit_num ) {
solve_num = input_num / round_unit_num;
solve_suffix = round_unit_str;
solve_str = solve_num[ vMap._toFixed_]( round_dec_count );
Expand Down
5 changes: 4 additions & 1 deletion js/xhi/02.data.js
Expand Up @@ -35,7 +35,10 @@ xhi._makeData_ = function ( aMap ) {
__logMsg = __logObj._logMsg_,

configMap = {},
stateMap = {}
stateMap = {
_active_jqxhr_list_ : [],
_auth_key_ : __undef
}
;
// == . END MODULE SCOPE VARIABLES ===================================

Expand Down
2 changes: 1 addition & 1 deletion js/xhi/05.css_base.js
Expand Up @@ -121,7 +121,7 @@ xhi._makeCssBase_ = function ( aMap ) {
_rgba_shdw_08_ : 'rgba(192,222,255,.215)',
_rgba_shdw_09_ : 'rgba(192,222,255,.194)',
_txt_shdw_01_ : '0 1px 1px #000000',
_txt_shdw_01_inv_ : '0 1px 1px #7fb5ed',
_txt_shdw_01_inv_ : '0 1px 1px #7fb5ed'
}
],
_selector_list_ : [
Expand Down
2 changes: 1 addition & 1 deletion js/xhi/05.css_lb.js
Expand Up @@ -74,7 +74,7 @@ xhi._makeCssLb_ = function ( aMap ) {
{ _selector_str_ : __p('.{_p_}-_lb_content_'),
_rule_map_ : {
_position_ : '_relative_',
_padding_ : '_1rem_',
_padding_ : '_1rem_'
}
},
{ _selector_str_ : __p('.{_p_}-_lb_content_ p'),
Expand Down
10 changes: 5 additions & 5 deletions js/xhi/06.lb.js
Expand Up @@ -31,8 +31,8 @@ xhi._makeLb_ = function ( aMap ) {
__true = vMap._true_,
__undef = vMap._undef_,

__setTo = vMap._fnSetTimeout_,
__clearTo = vMap._fnClearTimeout_,
__setTo = vMap._setTimeoutFn_,
__clearTo = vMap._clearTimeoutFn_,

__castBool = __util._castBool_,
__castFn = __util._castFn_,
Expand Down Expand Up @@ -564,10 +564,10 @@ xhi._makeLb_ = function ( aMap ) {
h_px = $litebox[ cssKmap._height_ ]();

$litebox[ vMap._css_ ]({
top : vMap._fnGetFloor_(
top : vMap._makeFloorNumFn_(
( body_h_px - h_px ) / nMap._2_ + nMap._d5_
),
left : vMap._fnGetFloor_(
left : vMap._makeFloorNumFn_(
( body_w_px - w_px ) / nMap._2_ + nMap._d5_
)
});
Expand Down Expand Up @@ -607,7 +607,7 @@ xhi._makeLb_ = function ( aMap ) {
content_html = __tmplt({
_input_str_ : configMap._success_tmplt_,
_lookup_map_ : {
_msg_str_ : msg_str,
_msg_str_ : msg_str
}
});

Expand Down
5 changes: 5 additions & 0 deletions js/xhi/xhi-ws-context.js
Expand Up @@ -38,13 +38,18 @@
_target_map_ : map,
_tgt_count_ : num,

// __NS._data_
_full_url_ : str,
_content_type_ : str,

// __NS._utilb_
_select_str_ : str,
_title_map_ : map,
name : str,

// __NS._lb_
_do_block_click_ : bool,
_do_dflt_class_ : bool,
_do_draggable_ : bool,
_do_title_close_ : bool,
_layout_key_ : str,
Expand Down

0 comments on commit 5cedb8e

Please sign in to comment.