resources.js 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. var R = {
  2. id: {
  3. chanList: "chanList",
  4. context: "chatCtx",
  5. chatList: "chatList",
  6. roomInfoPopin: "ctxRoomInfo",
  7. mainSection: "chatSystemContainer",
  8. currentRoom: {
  9. title: "currentRoomTitle",
  10. starButton: "currentRoomStar",
  11. content: "chatWindow"
  12. },
  13. typing: "whoistyping",
  14. chanFilter: "chanSearch",
  15. message: {
  16. form: "msgForm",
  17. submitButton: "msgFormSubmit",
  18. slashComplete: "slashList",
  19. input: "msgInput",
  20. replyTo: "replyToContainer",
  21. file: {
  22. bt: "attachFile",
  23. formContainer: "fileUploadContainer",
  24. fileInput: "fileUploadInput",
  25. form: "fileUploadForm",
  26. error: "fileUploadError",
  27. cancel: "fileUploadCancel"
  28. },
  29. emoji: "emojiButton"
  30. },
  31. settings: {
  32. logout: "ctxMenuLogout",
  33. menuButton: "ctxMenuSettings",
  34. closeButton: "settingDiscardClose",
  35. wrapper: "settings",
  36. commitBt: "settingCommit",
  37. menu: {
  38. list: "settingMenuItems"
  39. },
  40. services: {
  41. addButton: "settings-serviceAddButton",
  42. addSection: "settings-serviceAddSection",
  43. serviceProviderList: "settings-serviceAddServiceList",
  44. serviceAddConfirm: "settings-serviceAddConfirm"
  45. },
  46. display: {
  47. emojiProvider: "settings-displayEmojiProvider"
  48. }
  49. },
  50. favicon: "linkFavicon"
  51. },
  52. klass: {
  53. selected: "selected",
  54. hidden: "hidden",
  55. button: "button",
  56. buttonContainer: "button-container",
  57. noRoomSelected: "no-room-selected",
  58. noNetwork: "no-network",
  59. presenceIndicator: "presence-indicator",
  60. starred: "starred",
  61. unread: "unread",
  62. unreadHi: "unreadHi",
  63. replyingTo: "replyingTo",
  64. presenceAway: "presence-away",
  65. typing: {
  66. container: "typing-container",
  67. dot1: "typing-dot1",
  68. dot2: "typing-dot2",
  69. dot3: "typing-dot3"
  70. },
  71. emoji: {
  72. emoji: "emoji",
  73. small: "emoji-small",
  74. medium: "emoji-medium",
  75. custom: "emoji-custom"
  76. },
  77. commands: {
  78. item: "chat-command-item",
  79. header: "chat-command-header",
  80. name: "chat-command-name",
  81. usage: "chat-command-usage",
  82. desc: "chat-command-desc",
  83. userIcon: "chat-command-userIcon"
  84. },
  85. emojibar: {
  86. container: "emojibar",
  87. emojis: "emojibar-emojis",
  88. close: "emojibar-close",
  89. header: "emojibar-header",
  90. list: "emojibar-list",
  91. item: "emojibar-list-item",
  92. search: "emojibar-search",
  93. overlay: "emojibar-overlay",
  94. detail: {
  95. container: "emojibar-detail",
  96. img: "emojibar-detail-img",
  97. name: "emojibar-detail-name"
  98. }
  99. },
  100. chatList: {
  101. entry: "chat-context-room",
  102. typeChannel: "chat-channel",
  103. typePrivate: "chat-group",
  104. typeDirect: "chat-ims",
  105. typing: "chat-context-typing",
  106. roomInfo: {
  107. container: "chat-context-roominfo",
  108. title: "roominfo-title",
  109. presence: "roominfo-presence",
  110. topic: "roominfo-topic",
  111. topicCreator: "roominfo-topic-creator",
  112. purpose: "roominfo-purpose",
  113. purposeCreator: "roominfo-purpose-creator",
  114. userCount: "roominfo-usercount",
  115. userList: "roominfo-userlist",
  116. pinCount: "roominfo-pincount",
  117. pinList: "roominfo-pinlist",
  118. pinItem: "roominfo-pinlist-item",
  119. unpin: "roominfo-unpin",
  120. author: "roominfo-author",
  121. phone: "roominfo-phone",
  122. type: {
  123. channel: "roominfo-channel",
  124. user: "roominfo-user"
  125. }
  126. }
  127. },
  128. msg: {
  129. item: "chatmsg-item",
  130. notice: "chatmsg-notice",
  131. firstUnread: "chatmsg-first-unread",
  132. content: "chatmsg-content",
  133. meMessage: "chatmsg-me_message",
  134. ts: "chatmsg-ts",
  135. author: "chatmsg-author",
  136. authorname: "chatmsg-author-name",
  137. authorAvatar: "chatmsg-author-img",
  138. authorAvatarWrapper: "chatmsg-author-img-wrapper",
  139. authorMessages: "chatmsg-author-messages",
  140. msg: "chatmsg-msg",
  141. editedStatus: "edited",
  142. edited: "chatmsg-edited",
  143. authorGroup: "chatmsg-authorGroup",
  144. sameTs: "chatmsg-same-ts",
  145. hover: {
  146. container: "chatmsg-hover",
  147. reply: "chatmsg-hover-reply",
  148. reaction: "chatmsg-hover-reaction",
  149. edit: "chatmsg-hover-edit",
  150. star: "chatmsg-hover-star",
  151. pin: "chatmsg-hover-pin",
  152. remove: "chatmsg-hover-remove"
  153. },
  154. replyTo: {
  155. close: "replyto-close"
  156. },
  157. link: "chatmsg-link",
  158. linkuser: "chatmsg-link-user",
  159. linkchan: "chatmsg-link-chan",
  160. attachment: {
  161. container: "chatmsg-attachment",
  162. list: "chatmsg-attachments",
  163. hasThumb: "has-thumb",
  164. pretext: "chatmsg-attachment-pretext",
  165. block: "chatmsg-attachment-block",
  166. title: "chatmsg-attachment-title",
  167. content: "chatmsg-attachment-content",
  168. text: "chatmsg-attachment-text",
  169. thumbImg: "chatmsg-attachment-thumb",
  170. img: "chatmsg-attachment-img",
  171. actions: "chatmsg-attachment-actions",
  172. actionItem: "chatmsg-attachment-actions-item",
  173. field: {
  174. container: "chatmsg-attachment-fields",
  175. item: "field",
  176. title: "field-title",
  177. text: "field-text",
  178. longField: "field-long"
  179. },
  180. footer: "chatmsg-attachment-footer",
  181. footerText: "chatmsg-attachment-footer-text",
  182. footerIcon: "chatmsg-attachment-footer-icon"
  183. },
  184. reactions: {
  185. container: "chatmsg-reactions",
  186. item: "chatmsg-reaction-item"
  187. },
  188. style: {
  189. bold: "chatmsg-style-bold",
  190. code: "chatmsg-style-code",
  191. longCode: "chatmsg-style-longcode",
  192. italic: "chatmsg-style-italic",
  193. strike: "chatmsg-style-strike",
  194. quote: "chatmsg-style-quote"
  195. }
  196. },
  197. dialog: {
  198. container: "dialog",
  199. overlay: "dialog-overlay",
  200. title: "dialog-title",
  201. titleLabel: "dialog-title-label",
  202. closeButton: "dialog-title-close",
  203. body: "dialog-body",
  204. buttonBar: "dialog-footer"
  205. },
  206. map: {
  207. container: "OSM-wrapper",
  208. canvas: "OSM-canvas",
  209. buttonContainer: "OSM-controls",
  210. buttonM: "OSM-controls-zoomMin",
  211. buttonP: "OSM-controls-zoomPlus"
  212. }
  213. }
  214. };