Main.js 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. Ext.define('saas.view.main.Main', {
  2. extend: 'Ext.container.Container',
  3. xtype: 'main',
  4. requires: [
  5. 'Ext.list.Tree'
  6. ],
  7. controller: 'main',
  8. viewModel: 'main',
  9. cls: 'main-ct',
  10. id: 'mainView',
  11. itemId: 'mainView',
  12. layout: {
  13. type: 'vbox',
  14. align: 'stretch'
  15. },
  16. items: [
  17. {
  18. xtype: 'toolbar',
  19. cls: 'main-headerbar shadow',
  20. height: 64,
  21. itemId: 'headerBar',
  22. items: [
  23. {
  24. xtype: 'component',
  25. reference: 'mainLogo',
  26. cls: 'main-logo-wrap',
  27. html: '<div class="main-logo"><img src="resources/images/default/logo-default.png">优企云服</div>',
  28. width: 160
  29. },
  30. {
  31. margin: '0 0 0 8',
  32. ui: 'header',
  33. iconCls:'x-fa fa-navicon',
  34. id: 'main-navigation-btn',
  35. handler: 'onToggleNavigationSize'
  36. },
  37. '->',
  38. {
  39. iconCls:'x-fa fa-search',
  40. ui: 'header',
  41. tooltip: 'See latest search'
  42. },
  43. {
  44. iconCls:'x-fa fa-bell',
  45. ui: 'header',
  46. tooltip: 'Check your messages'
  47. },
  48. {
  49. iconCls:'x-fa fa-question',
  50. ui: 'header',
  51. tooltip: 'Help / FAQ\'s'
  52. },
  53. {
  54. iconCls:'x-fa fa-th-large',
  55. ui: 'header',
  56. tooltip: 'See your profile'
  57. },
  58. {
  59. xtype: 'tbtext',
  60. text: 'administrator',
  61. cls: 'top-user-name'
  62. },
  63. {
  64. xtype: 'image',
  65. cls: 'header-right-profile-image',
  66. height: 35,
  67. width: 35,
  68. alt:'current user image',
  69. src: 'resources/images/default/user-profile-default.png'
  70. }
  71. ]
  72. },
  73. {
  74. xtype: 'maincontainerwrap'
  75. }
  76. ]
  77. });