VaKeR CYBER ARMY
Logo of a company Server : Apache/2.4.41 (Ubuntu)
System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Directory :  /var/www/html/libs/absol-full/dist/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/libs/absol-full/dist/js/mdls__absol-mobile__js__dom__MNavigatorMenu.js
/*** module: node_modules/absol-mobile/js/dom/MNavigatorMenu.js ***/
"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

require("../../css/mnavigatormenu.css");

var _Core = _interopRequireDefault(require("./Core"));


var _ = _Core.default._;
var $ = _Core.default.$;

function MNavigatorMenu() {
  this.$header = $('.am-navigator-menu-body', this);
  this.$body = $('.am-navigator-menu-body', this);
  var data = [{
    items: [{
      text: 'Trang chủ',
      icon: 'span.mdi.mdi-home'
    }]
  }, {
    gname: 'Danh mục',
    items: [{
      text: 'Kiểu dữ liệu',
      icon: 'span.mdi.mdi-alpha-t-box-outline'
    }, {
      text: 'Bảng',
      icon: 'span.mdi.mdi-file-table-outline'
    }, {
      text: 'Trạng thái',
      icon: 'span.mdi.mdi-check'
    }, {
      text: 'Nhóm đối tượng',
      icon: 'span.mdi.mdi-google-circles-communities'
    }, {
      text: 'Đối tượng',
      icon: 'span.mdi.mdi-cube-outline'
    }, {
      text: 'Chat',
      icon: 'span.mdi.mdi-chat-outline'
    }, {
      text: 'Quốc gia',
      icon: 'span.mdi.mdi-earth'
    }, {
      text: 'Công ty',
      icon: 'span.mdi.mdi-warehouse'
    }, {
      text: 'Liên hệ',
      icon: 'span.mdi.mdi-contact-mail'
    }, {
      text: 'Loại',
      icon: 'span.mdi.mdi-grain'
    }]
  }, {
    gname: 'Báo cáo',
    items: [{
      text: 'Báo cáo của tôi',
      icon: 'span.mdi.mdi-note-text'
    }, {
      text: 'Báo cáo công khai',
      icon: 'span.mdi.mdi-note-text-outline'
    }]
  }, {
    gname: 'Hệ thống',
    items: [{
      text: 'Người dùng',
      icon: 'span.mdi.mdi-account-outline'
    }, {
      text: 'Hồ sơ cá nhân',
      icon: 'span.mdi.mdi-file-account'
    }, {
      text: 'Đăng xuất',
      icon: 'span.mdi.mdi-logout'
    }]
  }];
  var thismn = this;
  data.forEach(function (gr) {
    thismn.$body.addChild(thismn._makeGroup(gr.gname, gr.items));
  });
}

MNavigatorMenu.tag = 'MNavigatorMenu'.toLowerCase();

MNavigatorMenu.render = function () {
  return _({
    tag: 'mleftnavigator',
    class: 'am-navigator-menu',
    child: [{
      class: 'am-navigator-menu-header',
      child: [{
        class: 'am-navigator-menu-avatar-ctn',
        child: '.am-navigator-menu-avatar'
      }, {
        class: 'am-navigator-menu-full-name',
        child: {
          text: 'Phạm Quốc Du Thiên'
        }
      }, {
        class: 'am-navigator-menu-email',
        child: {
          text: 'blueskythien2010@live.com'
        }
      }]
    }, {
      class: 'am-navigator-menu-body',
      child: []
    }]
  }, true);
};
/**
 *
                    {
                        class: 'am-navigator-menu-group',
                        child: [

                            {
                                class: 'am-navigator-menu-item',
                                child: [
                                    {
                                        class: 'am-navigator-menu-item-icon-ctn',
                                        child: 'span.mdi.mdi-home'
                                    },
                                    {
                                        tag: 'span',
                                        class: 'am-navigator-menu-item-text',
                                        child: { text: 'Trang chủ' }
                                    }
                                ]

                            }
                        ]
                    },
                    {
                        class: 'am-navigator-menu-group',
                        child: [
                            {
                                class: 'am-navigator-menu-group-name',
                                child: { text: 'Danh mục' }
                            },
                            {
                                class: 'am-navigator-menu-item',
                                child: [
                                    {
                                        class: 'am-navigator-menu-item-icon-ctn',
                                        child: 'span.mdi.mdi-alpha-t-box-outline'
                                    },
                                    {
                                        tag: 'span',
                                        class: 'am-navigator-menu-item-text',
                                        child: { text: 'Kiểu dữ liệu' }
                                    }
                                ]

                            }
                        ]
                    }
 */


MNavigatorMenu.prototype._makeItem = function (icon, text) {
  return _({
    class: 'am-navigator-menu-item',
    child: [{
      class: 'am-navigator-menu-item-icon-ctn',
      child: icon ? icon : []
    }, {
      tag: 'span',
      class: 'am-navigator-menu-item-text',
      child: {
        text: text
      }
    }]
  });
};

MNavigatorMenu.prototype._makeGroup = function (groupName, items) {
  var aobj = {
    class: 'am-navigator-menu-group',
    child: []
  }; //absol object

  if (groupName) {
    aobj.child.push({
      class: 'am-navigator-menu-group-name',
      child: {
        text: groupName + ''
      }
    });
  }

  ;
  var thismn = this;
  aobj.child = aobj.child.concat(items.map(function (item) {
    return thismn._makeItem(item.icon, item.text);
  }));
  return _(aobj);
};

MNavigatorMenu.property = {};
/**
 * @type {MNavigatorMenu}
 */

MNavigatorMenu.property.headerBackgroundSrc = {
  set: function () {},
  get: function () {}
};
/**
 * @type {MNavigatorMenu}
 */

MNavigatorMenu.property.avatarSrc = {
  set: function () {},
  get: function () {}
};

_Core.default.install(MNavigatorMenu);

var _default = MNavigatorMenu;
exports.default = _default;

VaKeR 2022