resources.js 8.0 KB

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