-
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
8186891
commit 908f0b2
Showing
14 changed files
with
819 additions
and
561 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: ['*'] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
|
||
- name: Create package | ||
run: | | ||
rm -rf *.tar.gz | ||
npx --yes wspackager | ||
- name: Check file existence | ||
id: check_files | ||
uses: andstor/file-existence-action@v1 | ||
with: | ||
#files: "${{ github.event.repository.name }}_*.tar.gz" | ||
files: "de.softcreatr*.tar.gz" | ||
|
||
- name: On Build Failure | ||
if: steps.check_files.outputs.files_exists == 'false' | ||
run: | | ||
echo "Packaging FAILED" && exit 1 | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') && steps.check_files.outputs.files_exists == 'true' | ||
with: | ||
#files: "${{ github.event.repository.name }}_*.tar.gz" | ||
files: "de.softcreatr*.tar.gz" |
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,132 @@ | ||
<?php | ||
$finder = PhpCsFixer\Finder::create() | ||
->exclude('*/vendor/*') | ||
->in(__DIR__) | ||
->notPath('lib/system/api'); | ||
|
||
return (new PhpCsFixer\Config()) | ||
->setRiskyAllowed(true) | ||
->setRules([ | ||
'@PSR1' => true, | ||
'@PSR2' => true, | ||
|
||
'array_push' => true, | ||
'backtick_to_shell_exec' => true, | ||
'no_alias_language_construct_call' => true, | ||
'no_mixed_echo_print' => true, | ||
'pow_to_exponentiation' => true, | ||
'random_api_migration' => true, | ||
|
||
'array_syntax' => ['syntax' => 'short'], | ||
'no_multiline_whitespace_around_double_arrow' => true, | ||
'no_trailing_comma_in_singleline_array' => true, | ||
'no_whitespace_before_comma_in_array' => true, | ||
'normalize_index_brace' => true, | ||
'whitespace_after_comma_in_array' => true, | ||
|
||
'non_printable_character' => ['use_escape_sequences_in_strings' => true], | ||
|
||
'lowercase_static_reference' => true, | ||
'magic_constant_casing' => true, | ||
'magic_method_casing' => true, | ||
'native_function_casing' => true, | ||
'native_function_type_declaration_casing' => true, | ||
|
||
'cast_spaces' => ['space' => 'none'], | ||
'lowercase_cast' => true, | ||
'no_unset_cast' => true, | ||
'short_scalar_cast' => true, | ||
|
||
'class_attributes_separation' => true, | ||
'no_blank_lines_after_class_opening' => true, | ||
'no_null_property_initialization' => true, | ||
'self_accessor' => true, | ||
'single_class_element_per_statement' => true, | ||
'single_trait_insert_per_statement' => true, | ||
|
||
'no_empty_comment' => true, | ||
'single_line_comment_style' => ['comment_types' => ['hash']], | ||
|
||
'native_constant_invocation' => ['strict' => false], | ||
|
||
'no_alternative_syntax' => true, | ||
'no_trailing_comma_in_list_call' => true, | ||
'no_unneeded_control_parentheses' => ['statements' => ['break', 'clone', 'continue', 'echo_print', 'return', 'switch_case', 'yield', 'yield_from']], | ||
'no_unneeded_curly_braces' => ['namespaces' => true], | ||
'switch_continue_to_break' => true, | ||
'trailing_comma_in_multiline' => ['elements' => ['arrays']], | ||
|
||
'function_typehint_space' => true, | ||
'lambda_not_used_import' => true, | ||
'native_function_invocation' => ['include' => ['@all']], | ||
'no_unreachable_default_argument_value' => true, | ||
'nullable_type_declaration_for_default_null_value' => true, | ||
'return_type_declaration' => true, | ||
'static_lambda' => true, | ||
|
||
'fully_qualified_strict_types' => true, | ||
'no_leading_import_slash' => true, | ||
'no_unused_imports' => true, | ||
//'ordered_imports' => true, | ||
|
||
'declare_equal_normalize' => true, | ||
'dir_constant' => true, | ||
'explicit_indirect_variable' => true, | ||
'function_to_constant' => true, | ||
'is_null' => true, | ||
'no_unset_on_property' => true, | ||
|
||
'list_syntax' => ['syntax' => 'short'], | ||
|
||
'clean_namespace' => true, | ||
'no_leading_namespace_whitespace' => true, | ||
'single_blank_line_before_namespace' => true, | ||
|
||
'no_homoglyph_names' => true, | ||
|
||
'binary_operator_spaces' => true, | ||
'concat_space' => ['spacing' => 'one'], | ||
'increment_style' => ['style' => 'post'], | ||
'logical_operators' => true, | ||
'object_operator_without_whitespace' => true, | ||
'operator_linebreak' => true, | ||
'standardize_increment' => true, | ||
'standardize_not_equals' => true, | ||
'ternary_operator_spaces' => true, | ||
'ternary_to_elvis_operator' => true, | ||
'ternary_to_null_coalescing' => true, | ||
'unary_operator_spaces' => true, | ||
|
||
'no_useless_return' => true, | ||
'return_assignment' => true, | ||
|
||
'multiline_whitespace_before_semicolons' => true, | ||
'no_empty_statement' => true, | ||
'no_singleline_whitespace_before_semicolons' => true, | ||
'space_after_semicolon' => ['remove_in_empty_for_expressions' => true], | ||
|
||
'escape_implicit_backslashes' => true, | ||
'explicit_string_variable' => true, | ||
'heredoc_to_nowdoc' => true, | ||
'no_binary_string' => true, | ||
'simple_to_complex_string_variable' => true, | ||
|
||
'array_indentation' => true, | ||
'blank_line_before_statement' => ['statements' => ['return', 'exit']], | ||
'compact_nullable_typehint' => true, | ||
'method_chaining_indentation' => true, | ||
'no_extra_blank_lines' => ['tokens' => ['case', 'continue', 'curly_brace_block', 'default', 'extra', 'parenthesis_brace_block', 'square_brace_block', 'switch', 'throw', 'use']], | ||
'no_spaces_around_offset' => true, | ||
|
||
// SoftCreatR style | ||
'blank_line_between_import_groups' => true, | ||
'global_namespace_import' => [ | ||
'import_classes' => true, | ||
'import_constants' => true, | ||
'import_functions' => false, | ||
], | ||
'ordered_imports' => [ | ||
'imports_order' => ['class', 'function', 'const'], | ||
], | ||
]) | ||
->setFinder($finder); |
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,18 +1,18 @@ | ||
<dl> | ||
<dt><label for="leaderGroupIDs">{lang}wcf.acp.leaderGroup.groups{/lang}</label></dt> | ||
<dd> | ||
<input type="text" id="leaderGroupIDs" name="leaderGroupIDs" value="{$leaderGroupIDs}" hidden class="tiny" /> <span class="button small jsGroupSelectButton" style="margin-bottom:5px;">{lang}wcf.acp.leaderGroup.button{/lang}</span> | ||
<textarea id="leaderGroupNames" name="leaderGroupNames" rows="2" cols="40" disabled="disabled">{$leaderGroupNames}</textarea> | ||
<small>{lang}wcf.acp.leaderGroup.groups.description{/lang}</small> | ||
</dd> | ||
<dt><label for="leaderGroupIDs">{lang}wcf.acp.leaderGroup.groups{/lang}</label></dt> | ||
<dd> | ||
<input type="text" id="leaderGroupIDs" name="leaderGroupIDs" value="{$leaderGroupIDs}" hidden class="tiny" /> <span class="button small jsGroupSelectButton" style="margin-bottom:5px;">{lang}wcf.acp.leaderGroup.button{/lang}</span> | ||
<textarea id="leaderGroupNames" name="leaderGroupNames" rows="2" cols="40" disabled="disabled">{$leaderGroupNames}</textarea> | ||
<small>{lang}wcf.acp.leaderGroup.groups.description{/lang}</small> | ||
</dd> | ||
</dl> | ||
|
||
<script data-relocate="true"> | ||
require(['Language', 'UZ/Leadergroup/Acp/SelectGroups'], function (Language, UZLeadergroupAcpSelectGroups) { | ||
Language.addObject({ | ||
'wcf.acp.leaderGroup.title': '{jslang}wcf.acp.leaderGroup.title{/jslang}', | ||
'wcf.acp.leaderGroup.multiSelect': '{jslang}wcf.acp.leaderGroup.multiSelect{/jslang}' | ||
}); | ||
new UZLeadergroupAcpSelectGroups('{$leaderGroupIDs}'); | ||
}); | ||
require(['Language', 'UZ/Leadergroup/Acp/SelectGroups'], function (Language, UZLeadergroupAcpSelectGroups) { | ||
Language.addObject({ | ||
'wcf.acp.leaderGroup.title': '{jslang}wcf.acp.leaderGroup.title{/jslang}', | ||
'wcf.acp.leaderGroup.multiSelect': '{jslang}wcf.acp.leaderGroup.multiSelect{/jslang}' | ||
}); | ||
new UZLeadergroupAcpSelectGroups('{$leaderGroupIDs}'); | ||
}); | ||
</script> |
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,27 +1,27 @@ | ||
<section class="section"> | ||
<h2 class="sectionTitle">{lang}wcf.acp.leaderGroup.groups.selection{/lang}</h2> | ||
<h2 class="sectionTitle">{lang}wcf.acp.leaderGroup.groups.selection{/lang}</h2> | ||
|
||
{if $groups|count} | ||
<p class="sectionDescription">{lang}wcf.acp.leaderGroup.multiSelect{/lang}</p> | ||
<dl> | ||
<dt><label for="groupIDs">{lang}wcf.acp.leaderGroup.groups{/lang}</label></dt> | ||
<dd> | ||
<select id="groupIDs" name="groupIDs[]" multiple="multiple" size="10"> | ||
{foreach from=$groups item=group} | ||
<option value="{$group->groupID}"{if $group->groupID|in_array:$groupIDs} selected="selected"{/if}>{$group->groupName|language}</option> | ||
{/foreach} | ||
</select> | ||
<small>{lang}wcf.acp.leaderGroup.multiSelect.strg{/lang}</small> | ||
</dd> | ||
</dl> | ||
<p class="sectionDescription">{lang}wcf.acp.leaderGroup.multiSelect{/lang}</p> | ||
|
||
<dl> | ||
<dt><label for="groupIDs">{lang}wcf.acp.leaderGroup.groups{/lang}</label></dt> | ||
<dd> | ||
<select id="groupIDs" name="groupIDs[]" multiple="multiple" size="10"> | ||
{foreach from=$groups item=group} | ||
<option value="{$group->groupID}"{if $group->groupID|in_array:$groupIDs} selected="selected"{/if}>{$group->groupName|language}</option> | ||
{/foreach} | ||
</select> | ||
<small>{lang}wcf.acp.leaderGroup.multiSelect.strg{/lang}</small> | ||
</dd> | ||
</dl> | ||
</section> | ||
|
||
<div class="formSubmit"> | ||
<button class="jsSubmitLeaderGroup buttonPrimary" accesskey="s">{lang}wcf.global.button.submit{/lang}</button> | ||
<input type="hidden" name="groupIDs" value="{$groupIDs}" /> | ||
<button class="jsSubmitLeaderGroup buttonPrimary" accesskey="s">{lang}wcf.global.button.submit{/lang}</button> | ||
<input type="hidden" name="groupIDs" value="{$groupIDs}" /> | ||
</div> | ||
{else} | ||
<p>{lang}wcf.acp.leaderGroup.groups.none{/lang}</p> | ||
<p>{lang}wcf.acp.leaderGroup.groups.none{/lang}</p> | ||
</section> | ||
{/if} |
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,18 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<data xmlns="http://www.woltlab.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.woltlab.com http://www.woltlab.com/XSD/2019/cronjob.xsd"> | ||
<import> | ||
<cronjob name="uzLeaderGroupCronjob"> | ||
<classname><![CDATA[wcf\system\cronjob\LeaderGroupCronjob]]></classname> | ||
<description><![CDATA[Organizes group leader groups]]></description> | ||
<description language="de"><![CDATA[Ordnet Gruppenleiter-Gruppen]]></description> | ||
<startminute>*/15</startminute> | ||
<starthour>*</starthour> | ||
<startdom>*</startdom> | ||
<startmonth>*</startmonth> | ||
<startdow>*</startdow> | ||
<active>1</active> | ||
<canbeedited>1</canbeedited> | ||
<canbedisabled>1</canbedisabled> | ||
</cronjob> | ||
</import> | ||
<import> | ||
<cronjob name="uzLeaderGroupCronjob"> | ||
<classname><![CDATA[wcf\system\cronjob\LeaderGroupCronjob]]></classname> | ||
<description><![CDATA[Organizes group leader groups]]></description> | ||
<description language="de"><![CDATA[Ordnet Gruppenleiter-Gruppen]]></description> | ||
<startminute>*/15</startminute> | ||
<starthour>*</starthour> | ||
<startdom>*</startdom> | ||
<startmonth>*</startmonth> | ||
<startdow>*</startdow> | ||
<active>1</active> | ||
<canbeedited>1</canbeedited> | ||
<canbedisabled>1</canbedisabled> | ||
</cronjob> | ||
</import> | ||
</data> |
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,19 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<data xmlns="http://www.woltlab.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.woltlab.com http://www.woltlab.com/XSD/2019/eventListener.xsd"> | ||
<import> | ||
<eventlistener name="userGroupAddLeaderGroup"> | ||
<eventclassname>wcf\acp\form\UserGroupAddForm</eventclassname> | ||
<eventname>assignVariables,readFormParameters,save</eventname> | ||
<listenerclassname>wcf\system\event\listener\LeaderGroupListener</listenerclassname> | ||
<inherit>1</inherit> | ||
<environment>admin</environment> | ||
</eventlistener> | ||
<eventlistener name="userGroupEditLeaderGroup"> | ||
<eventclassname>wcf\acp\form\UserGroupEditForm</eventclassname> | ||
<eventname>readData</eventname> | ||
<listenerclassname>wcf\system\event\listener\LeaderGroupListener</listenerclassname> | ||
<environment>admin</environment> | ||
</eventlistener> | ||
</import> | ||
<import> | ||
<eventlistener name="userGroupAddLeaderGroup"> | ||
<eventclassname>wcf\acp\form\UserGroupAddForm</eventclassname> | ||
<eventname>assignVariables,readFormParameters,save</eventname> | ||
<listenerclassname>wcf\system\event\listener\LeaderGroupListener</listenerclassname> | ||
<inherit>1</inherit> | ||
<environment>admin</environment> | ||
</eventlistener> | ||
|
||
<eventlistener name="userGroupEditLeaderGroup"> | ||
<eventclassname>wcf\acp\form\UserGroupEditForm</eventclassname> | ||
<eventname>readData</eventname> | ||
<listenerclassname>wcf\system\event\listener\LeaderGroupListener</listenerclassname> | ||
<environment>admin</environment> | ||
</eventlistener> | ||
</import> | ||
</data> |
Oops, something went wrong.