1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00

Adding more ACL-options and userGroupOptions, add language item

This commit is contained in:
Tim Düsterhus 2012-10-20 16:15:32 +02:00
parent 6de9a985bc
commit c78bb37f92
5 changed files with 39 additions and 4 deletions

View File

@ -29,6 +29,14 @@
<objecttype>be.bastelstu.wcf.chat.room</objecttype> <objecttype>be.bastelstu.wcf.chat.room</objecttype>
<categoryname>mod</categoryname> <categoryname>mod</categoryname>
</option> </option>
<option name="mod.canMute">
<objecttype>be.bastelstu.wcf.chat.room</objecttype>
<categoryname>mod</categoryname>
</option>
<option name="mod.canBan">
<objecttype>be.bastelstu.wcf.chat.room</objecttype>
<categoryname>mod</categoryname>
</option>
</options> </options>
</import> </import>
</data> </data>

View File

@ -480,14 +480,16 @@ window.console ?=
# Desktop Notifications # Desktop Notifications
if typeof window.webkitNotifications isnt 'undefined' if typeof window.webkitNotifications isnt 'undefined'
if window.webkitNotifications.checkPermission() is 0 if window.webkitNotifications.checkPermission() is 0
title = WCF.Language.get 'wcf.chat.newMessages' title = WCF.Language.get 'wcf.chat.notify.title'
icon = WCF.Icon.get 'be.bastelstu.wcf.chat.chat' icon = WCF.Icon.get 'be.bastelstu.wcf.chat.chat'
content = message.username + message.separator + (if message.separator is ' ' then '' else ' ') + message.message content = message.username + message.separator + (if message.separator is ' ' then '' else ' ') + message.message
notification = window.webkitNotifications.createNotification icon, title, content notification = window.webkitNotifications.createNotification icon, title, content
notification.show() notification.show()
setTimeout(() ->
# Hide notification after 10 seconds
setTimeout () ->
notification.cancel() notification.cancel()
, 5e3) , 10e3
### ###
# Refreshes the room-list. # Refreshes the room-list.
### ###

View File

@ -76,6 +76,7 @@ Hinweis: Setzen Sie diese Einstellung nur, wenn Sie wissen, was sie bewirkt. Die
<item name="wcf.chat.submit.default"><![CDATA[Zum Senden Enter drücken]]></item> <item name="wcf.chat.submit.default"><![CDATA[Zum Senden Enter drücken]]></item>
<item name="wcf.chat.scroll"><![CDATA[Scrollen]]></item> <item name="wcf.chat.scroll"><![CDATA[Scrollen]]></item>
<item name="wcf.chat.notify"><![CDATA[Benachrichtigen]]></item> <item name="wcf.chat.notify"><![CDATA[Benachrichtigen]]></item>
<item name="wcf.chat.notify.title"><![CDATA[Neue Nachrichten]]></item>
<item name="wcf.chat.smilies"><![CDATA[Smilies]]></item> <item name="wcf.chat.smilies"><![CDATA[Smilies]]></item>
<item name="wcf.chat.clear"><![CDATA[Chat leeren]]></item> <item name="wcf.chat.clear"><![CDATA[Chat leeren]]></item>
<item name="wcf.chat.mark"><![CDATA[Markieren]]></item> <item name="wcf.chat.mark"><![CDATA[Markieren]]></item>

View File

@ -144,7 +144,7 @@
'wcf.chat.kick': '{lang}wcf.chat.kick{/lang}', 'wcf.chat.kick': '{lang}wcf.chat.kick{/lang}',
'wcf.chat.ban': '{lang}wcf.chat.ban{/lang}', 'wcf.chat.ban': '{lang}wcf.chat.ban{/lang}',
'wcf.chat.profile': '{lang}wcf.chat.profile{/lang}', 'wcf.chat.profile': '{lang}wcf.chat.profile{/lang}',
'wcf.chat.newMessages': '{lang}wcf.chat.newMessages{/lang}' 'wcf.chat.notify.title': '{lang}wcf.chat.notify.title{/lang}'
}); });
WCF.Icon.addObject({ WCF.Icon.addObject({
'be.bastelstu.wcf.chat.chat': '{icon size='L'}chat{/icon}' 'be.bastelstu.wcf.chat.chat': '{icon size='L'}chat{/icon}'

View File

@ -50,6 +50,30 @@
<defaultvalue>0</defaultvalue> <defaultvalue>0</defaultvalue>
<admindefaultvalue>1</admindefaultvalue> <admindefaultvalue>1</admindefaultvalue>
</option> </option>
<option name="mod.chat.canMute">
<categoryname>mod.chat</categoryname>
<optiontype>boolean</optiontype>
<defaultvalue>0</defaultvalue>
<admindefaultvalue>1</admindefaultvalue>
</option>
<option name="mod.chat.canMuteGlobally">
<categoryname>mod.chat</categoryname>
<optiontype>boolean</optiontype>
<defaultvalue>0</defaultvalue>
<admindefaultvalue>1</admindefaultvalue>
</option>
<option name="mod.chat.canBan">
<categoryname>mod.chat</categoryname>
<optiontype>boolean</optiontype>
<defaultvalue>0</defaultvalue>
<admindefaultvalue>1</admindefaultvalue>
</option>
<option name="mod.chat.canBanGlobally">
<categoryname>mod.chat</categoryname>
<optiontype>boolean</optiontype>
<defaultvalue>0</defaultvalue>
<admindefaultvalue>1</admindefaultvalue>
</option>
<option name="admin.content.chat.canAddRoom"> <option name="admin.content.chat.canAddRoom">
<categoryname>admin.content.chat</categoryname> <categoryname>admin.content.chat</categoryname>
<optiontype>boolean</optiontype> <optiontype>boolean</optiontype>