src/module-system/a-base-sync/front/src/config/config.js

  1. /** @module a-base/front/config */
  2. import avatarUser from '../assets/img/user.png';
  3. /** The front config of a-base
  4. * @property {object} stage - The stages of atom.
  5. * @property {number} stage.draft - 0
  6. * @property {number} stage.formal - 1
  7. * @property {number} stage.history - 2
  8. * @property {object} user
  9. * @property {object} user.avatar
  10. * @property {string} user.avatar.default - The default avatar
  11. */
  12. export default {
  13. stage: {
  14. draft: 0,
  15. formal: 1,
  16. history: 2,
  17. },
  18. user: {
  19. avatar: {
  20. default: avatarUser,
  21. },
  22. },
  23. layoutManager: {
  24. base: {
  25. info: {
  26. data: {
  27. adapter: {
  28. component: {
  29. module: 'a-basefront',
  30. name: 'listLayoutDataAdapter',
  31. },
  32. providers: {
  33. all: {
  34. component: {
  35. module: 'a-basefront',
  36. name: 'listLayoutDataProviderAll',
  37. },
  38. },
  39. continuous: {
  40. component: {
  41. module: 'a-basefront',
  42. name: 'listLayoutDataProviderContinuous',
  43. },
  44. },
  45. paged: {
  46. component: {
  47. module: 'a-basefront',
  48. name: 'listLayoutDataProviderPaged',
  49. },
  50. },
  51. tree: {
  52. component: {
  53. module: 'a-basefront',
  54. name: 'listLayoutDataProviderTree',
  55. },
  56. fields: {
  57. sorting: null,
  58. },
  59. dataSourceAdapter: {
  60. component: null,
  61. },
  62. treeviewRoot: {
  63. attrs: {
  64. itemToggle: false,
  65. selectable: true,
  66. },
  67. },
  68. },
  69. },
  70. },
  71. },
  72. },
  73. layouts: {
  74. base: {
  75. blocks: {
  76. caption: {
  77. component: {
  78. module: 'a-baselayout',
  79. name: 'baseLayoutBlockCaption',
  80. },
  81. renderImmediate: true,
  82. },
  83. title: {
  84. component: {
  85. module: 'a-baselayout',
  86. name: 'baseLayoutBlockTitle',
  87. },
  88. },
  89. subnavbar: {
  90. component: {
  91. module: 'a-baselayout',
  92. name: 'baseLayoutBlockSubnavbar',
  93. },
  94. },
  95. main: {
  96. component: {
  97. module: 'a-baselayout',
  98. name: 'baseLayoutBlockMain',
  99. },
  100. },
  101. },
  102. },
  103. default: {
  104. title: 'LayoutDefault',
  105. component: {
  106. module: 'a-baselayout',
  107. name: 'baseLayoutDefault',
  108. },
  109. subnavbar: false,
  110. },
  111. list: {
  112. title: 'LayoutList',
  113. component: {
  114. module: 'a-baselayout',
  115. name: 'baseLayoutList',
  116. },
  117. subnavbar: false,
  118. blocks: {
  119. item: {
  120. component: {
  121. module: 'a-baselayout',
  122. name: 'baseLayoutBlockListItem',
  123. },
  124. },
  125. items: {
  126. component: {
  127. module: 'a-baselayout',
  128. name: 'baseLayoutBlockListItems',
  129. },
  130. },
  131. },
  132. },
  133. },
  134. },
  135. },
  136. securityLevelProtection: {
  137. body: {
  138. crypto: false,
  139. cryptojs: '/a/base/js/bodyCrypto',
  140. },
  141. },
  142. };