-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cb09067
commit 9ea57ea
Showing
17 changed files
with
210 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<code_event_listeners> | ||
<listener event_id="entity_post_save" execute_order="10" callback_class="MinecraftServerChecker\Listener" callback_method="threadPostSave" active="1" hint="XF\Entity\Thread" description="The event code will run when the custom thread field is saved."/> | ||
<listener event_id="templater_macro_pre_render" execute_order="10" callback_class="MinecraftServerChecker\Listener" callback_method="templaterMacroPreRender" active="1" hint="public:msc_server_info:item" description="Macro variables"/> | ||
<listener event_id="templater_macro_pre_render" execute_order="10" callback_class="MinecraftServerChecker\Listener" callback_method="templaterMacroPreRender" active="1" hint="public:msc_server_info:thread_list" description="Thread list event listener"/> | ||
<listener event_id="templater_macro_pre_render" execute_order="10" callback_class="MinecraftServerChecker\Listener" callback_method="templaterMacroPreRender" active="1" hint="public:msc_server_info:thread_view" description="Thread view event listener"/> | ||
</code_event_listeners> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
...put/code_event_listeners/templater_macro_pre_render_83a31bba71a0824854aa9047105d2384.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"event_id": "templater_macro_pre_render", | ||
"execute_order": 10, | ||
"callback_class": "MinecraftServerChecker\\Listener", | ||
"callback_method": "templaterMacroPreRender", | ||
"active": true, | ||
"hint": "public:msc_server_info:thread_list", | ||
"description": "Thread list event listener" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
_output/template_modifications/public/msc_item_new_posts.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"template": "thread_list_macros", | ||
"description": "Adds server information to the thread list for widgets.", | ||
"execution_order": 10, | ||
"enabled": true, | ||
"action": "str_replace", | ||
"find": "\t\t\t<xf:if is=\"$thread.isUnread()\">\n\t\t\t\t<a href=\"{{ link('threads/unread', $thread) }}\">{{ prefix('thread', $thread) }}{$thread.title}</a>\n\t\t\t<xf:else />\n\t\t\t\t<a href=\"{{ link('threads/post', $thread, {'post_id': $thread.last_post_id}) }}\">{{ prefix('thread', $thread) }}{$thread.title}</a>\n\t\t\t</xf:if>", | ||
"replace": "$0\n<br>\n<xf:macro name=\"{{ $templateOverrides.msc_server_info ?: 'msc_server_info::thread_list' }}\" />" | ||
} |
9 changes: 9 additions & 0 deletions
9
_output/template_modifications/public/msc_item_new_threads.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"template": "thread_list_macros", | ||
"description": "Adds server information to the thread list for widgets.", | ||
"execution_order": 10, | ||
"enabled": true, | ||
"action": "str_replace", | ||
"find": "<a href=\"{{ link('threads', $thread) }}\">{{ prefix('thread', $thread) }}{$thread.title}</a>", | ||
"replace": "$0\n<br>\n<xf:macro name=\"{{ $templateOverrides.msc_server_info ?: 'msc_server_info::thread_list' }}\" />" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
_output/template_modifications/public/msc_structured_list.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"template": "structured_list.less", | ||
"template": "core.less", | ||
"description": "Adds style support for Minecraft Server information.", | ||
"execution_order": 10, | ||
"enabled": true, | ||
"action": "str_replace", | ||
"find": ".structItem-title\n{", | ||
"replace": "$0\n.msc-status {\n\tcolor: #efefef;\n border-color: transparent;\n border-radius: 5px;\n}\n\n.msc-online {\n background: #249a24;\n}\n\n.msc-offline {\n background: #9a2424;\n}\n\n.msc-copyip {\n\tcolor: #185886;\n\tborder-color: #e5e5e5;\n}\n\n.msc-copyip:hover {\n\tcursor: pointer;\n}\n\n.msc-ip {\n\tdisplay: none;\n}" | ||
"find": "{{ include('core_bbcode.less') }}", | ||
"replace": "$0\n{{ include('msc.less') }}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"template": "PAGE_CONTAINER", | ||
"description": "Adds server information to the thread title.", | ||
"execution_order": 10, | ||
"enabled": true, | ||
"action": "str_replace", | ||
"find": "<h1 class=\"p-title-value\">", | ||
"replace": "$0\n<xf:macro name=\"{{ $templateOverrides.msc_server_info ?: 'msc_server_info::thread_view' }}\" />" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
{ | ||
"public/msc.less": { | ||
"version_id": 1020, | ||
"version_string": "1.0.2", | ||
"hash": "262ee085fef232ed4078c159ced2cd1b" | ||
}, | ||
"public/msc_server_info.html": { | ||
"version_id": 1000, | ||
"version_string": "1.0.0", | ||
"hash": "00904930c5e8e35ecff2784a76282c9c" | ||
"version_id": 1020, | ||
"version_string": "1.0.2", | ||
"hash": "92dd856654890eb4756b6a1870e2a2aa" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
.msc-status { | ||
color: #efefef; | ||
border-color: transparent; | ||
border-radius: 5px; | ||
} | ||
|
||
.msc-online { | ||
background: #249a24; | ||
} | ||
|
||
.msc-offline { | ||
background: #9a2424; | ||
} | ||
|
||
.msc-copyip { | ||
color: #185886; | ||
border-color: #e5e5e5; | ||
} | ||
|
||
.msc-copyip:hover { | ||
cursor: pointer; | ||
} | ||
|
||
.msc-ip { | ||
display: none; | ||
} | ||
|
||
.p-title-value .msc-status { | ||
padding-right: 5px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters