resources.js 7.5 KB

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