1
0

resources.js 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  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. groupPending: "pending",
  141. item: "chatmsg-item",
  142. pending: "chatmsg-pending",
  143. notice: "chatmsg-notice",
  144. firstUnread: "chatmsg-first-unread",
  145. firstOfDay: "chatmsg-first-daily",
  146. unread: "chatmsg-unread",
  147. content: "chatmsg-content",
  148. meMessage: "chatmsg-me_message",
  149. ts: "chatmsg-ts",
  150. author: "chatmsg-author",
  151. authorname: "chatmsg-author-name",
  152. authorAvatar: "chatmsg-author-img",
  153. authorAvatarWrapper: "chatmsg-author-img-wrapper",
  154. authorMessages: "chatmsg-author-messages",
  155. msg: "chatmsg-msg",
  156. editedStatus: "edited",
  157. edited: "chatmsg-edited",
  158. authorGroup: "chatmsg-authorGroup",
  159. sameTs: "chatmsg-same-ts",
  160. hover: {
  161. container: "chatmsg-hover",
  162. reply: "chatmsg-hover-reply",
  163. reaction: "chatmsg-hover-reaction",
  164. edit: "chatmsg-hover-edit",
  165. star: "chatmsg-hover-star",
  166. pin: "chatmsg-hover-pin",
  167. remove: "chatmsg-hover-remove"
  168. },
  169. replyTo: {
  170. close: "replyto-close"
  171. },
  172. link: "chatmsg-link",
  173. linkuser: "chatmsg-link-user",
  174. linkchan: "chatmsg-link-chan",
  175. attachment: {
  176. container: "chatmsg-attachment",
  177. list: "chatmsg-attachments",
  178. hasThumb: "has-thumb",
  179. pretext: "chatmsg-attachment-pretext",
  180. block: "chatmsg-attachment-block",
  181. title: "chatmsg-attachment-title",
  182. content: "chatmsg-attachment-content",
  183. text: "chatmsg-attachment-text",
  184. thumbImg: "chatmsg-attachment-thumb",
  185. img: "chatmsg-attachment-img",
  186. actions: "chatmsg-attachment-actions",
  187. actionItem: "chatmsg-attachment-actions-item",
  188. field: {
  189. container: "chatmsg-attachment-fields",
  190. item: "field",
  191. title: "field-title",
  192. text: "field-text",
  193. longField: "field-long"
  194. },
  195. footer: "chatmsg-attachment-footer",
  196. footerText: "chatmsg-attachment-footer-text",
  197. footerIcon: "chatmsg-attachment-footer-icon"
  198. },
  199. reactions: {
  200. container: "chatmsg-reactions",
  201. item: "chatmsg-reaction-item"
  202. },
  203. style: {
  204. bold: "chatmsg-style-bold",
  205. code: "chatmsg-style-code",
  206. longCode: "chatmsg-style-longcode",
  207. italic: "chatmsg-style-italic",
  208. strike: "chatmsg-style-strike",
  209. quote: "chatmsg-style-quote"
  210. }
  211. },
  212. settings: {
  213. services: {
  214. item: "settings-service-list-item",
  215. provider: "settings-service-list-item-provider",
  216. service: "settings-service-list-item-service"
  217. }
  218. },
  219. dialog: {
  220. container: "dialog",
  221. overlay: "dialog-overlay",
  222. title: "dialog-title",
  223. titleLabel: "dialog-title-label",
  224. closeButton: "dialog-title-close",
  225. body: "dialog-body",
  226. buttonBar: "dialog-footer"
  227. },
  228. map: {
  229. container: "OSM-wrapper",
  230. canvas: "OSM-canvas",
  231. buttonContainer: "OSM-controls",
  232. buttonM: "OSM-controls-zoomMin",
  233. buttonP: "OSM-controls-zoomPlus"
  234. }
  235. }
  236. };