1
0

resources.js 8.4 KB

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