Browse Source

Merge tag '2.3.0'

[maven-release-plugin] copy for tag 2.3.0
pull/60/head
Adrian Gonzalez 7 years ago
parent
commit
f3c8ef43b9
  1. 6
      pom.xml
  2. 2
      src/main/resources/static/mirror-repository-hook.js
  3. 46
      src/main/resources/static/mirror-repository-hook.soy

6
pom.xml

@ -5,7 +5,7 @@
<groupId>com.englishtown</groupId> <groupId>com.englishtown</groupId>
<artifactId>stash-hook-mirror</artifactId> <artifactId>stash-hook-mirror</artifactId>
<version>2.2.0</version> <version>2.3.0</version>
<organization> <organization>
<name>Englishtown</name> <name>Englishtown</name>
@ -30,7 +30,7 @@
<maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target> <maven.compiler.target>1.8</maven.compiler.target>
<bitbucket.version>5.0.2</bitbucket.version> <bitbucket.version>5.5.0</bitbucket.version>
<bitbucket.data.version>${bitbucket.version}</bitbucket.data.version> <bitbucket.data.version>${bitbucket.version}</bitbucket.data.version>
<atlassian-sal-api.version>3.1.0</atlassian-sal-api.version> <atlassian-sal-api.version>3.1.0</atlassian-sal-api.version>
<amps.version>6.3.7</amps.version> <amps.version>6.3.7</amps.version>
@ -131,7 +131,7 @@
<connection>scm:git:git@github.com:ef-labs/stash-hook-mirror.git</connection> <connection>scm:git:git@github.com:ef-labs/stash-hook-mirror.git</connection>
<developerConnection>scm:git:git@github.com:ef-labs/stash-hook-mirror.git</developerConnection> <developerConnection>scm:git:git@github.com:ef-labs/stash-hook-mirror.git</developerConnection>
<url>https://github.com/ef-labs/stash-hook-mirror</url> <url>https://github.com/ef-labs/stash-hook-mirror</url>
<tag>2.2.0</tag> <tag>2.3.0</tag>
</scm> </scm>
<distributionManagement> <distributionManagement>

2
src/main/resources/static/mirror-repository-hook.js

@ -6,7 +6,7 @@ define('et/hook/mirror', ['jquery', 'exports'], function ($, exports) {
var currIndex, index = 0, name, html; var currIndex, index = 0, name, html;
// Determine the current index from the last password input // Determine the current index from the last password input
name = $('div.hook-config-contents input:password').last().attr("name"); name = $('div.et-mirror-contents input:password').last().attr("name");
if (name && name.length >= 8) { if (name && name.length >= 8) {
currIndex = parseInt(name.substring(8)); currIndex = parseInt(name.substring(8));

46
src/main/resources/static/mirror-repository-hook.soy

@ -6,31 +6,33 @@
*/ */
{template .view} {template .view}
// Always add one subview <div class="et-mirror-contents">
{call .subview data="all"} // Always add one subview
{param index: 0 /} {call .subview data="all"}
{/call} {param index: 0 /}
{/call}
// Add additional mirrors, up to 10 total // Add additional mirrors, up to 10 total
{foreach $index in [1, 2, 3, 4, 5, 6, 7, 8, 9]} {foreach $index in [1, 2, 3, 4, 5, 6, 7, 8, 9]}
{if $config['mirrorRepoUrl' + $index] or $config['username' + $index]} {if $config['mirrorRepoUrl' + $index] or $config['username' + $index]}
{call .subview data="all"} {call .subview data="all"}
{param index: $index /} {param index: $index /}
{/call} {/call}
{/if} {/if}
{/foreach} {/foreach}
// Button to add additional mirrors // Button to add additional mirrors
{call aui.buttons.button} {call aui.buttons.button}
{param id: 'et-add-button' /} {param id: 'et-add-button' /}
{param text: 'Add Mirror' /} {param text: 'Add Mirror' /}
{param extraAttributes: 'type=button' /} {param extraAttributes: 'type=button' /}
{/call} {/call}
// Call init method with subview callback // Call init method with subview callback
<script> <script>
require("et/hook/mirror").init(com.englishtown.bitbucket.hook.subview, aui.buttons.button); require("et/hook/mirror").init(com.englishtown.bitbucket.hook.subview, aui.buttons.button);
</script> </script>
</div>
{/template} {/template}
/** /**

Loading…
Cancel
Save