1
0

resources.js 8.0 KB

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