;
+ }
+
+}
+
+export default GitAvatar;
diff --git a/scm-plugins/scm-git-plugin/src/main/js/ProtocolInformation.js b/scm-plugins/scm-git-plugin/src/main/js/ProtocolInformation.js
new file mode 100644
index 0000000000..3d11b11c91
--- /dev/null
+++ b/scm-plugins/scm-git-plugin/src/main/js/ProtocolInformation.js
@@ -0,0 +1,54 @@
+//@flow
+import React from 'react';
+
+// TODO flow types ???
+type Props = {
+ repository: Object
+}
+
+class ProtocolInformation extends React.Component
+ git clone {repository._links.httpProtocol.href}
+
+
+
+ git init {repository.name}
+
+ echo "# {repository.name}" > README.md
+
+ git add README.md
+
+ git commit -m "added readme"
+
+ git remote add origin {repository._links.httpProtocol.href}
+
+ git push -u origin master
+
+
+
+
+
+ git remote add origin {repository._links.httpProtocol.href}
+
+ git push -u origin master
+
+
+
+ Use Quartz Cron Expressions (SECOND MINUTE HOUR DAYOFMONTH MONTH DAYOFWEEK) to run git gc in intervals.
\n\ -| SECOND | Seconds within the minute (0–59) |
|---|---|
| MINUTE | Minutes within the hour (0–59) |
| HOUR | The hour of the day (0–23) |
| DAYOFMONTH | The day of the month (1–31) |
| MONTH | The month (1–12) |
| DAYOFWEEK | The day of the week (MON, TUE, WED, THU, FRI, SAT, SUN) |
E.g.: To run the task on every sunday at two o\'clock in the morning: 0 0 2 ? * SUN
\n\ -For more informations please have a look at Quartz CronTrigger
', - disabledHelpText: 'Enable or disable the Git plugin.\n\ - Note you have to reload the page, after changing this value.', - - initComponent: function(){ - - var config = { - title : this.titleText, - configUrl: restUrl + 'config/repositories/git', - items : [{ - xtype: 'textfield', - name: 'repositoryDirectory', - fieldLabel: this.repositoryDirectoryText, - helpText: this.repositoryDirectoryHelpText, - allowBlank : false - },{ - xtype: 'textfield', - name: 'gc-expression', - fieldLabel: this.gcExpressionText, - helpText: this.gcExpressionHelpText, - allowBlank : true - },{ - xtype: 'checkbox', - name: 'disabled', - fieldLabel: this.disabledText, - inputValue: 'true', - helpText: this.disabledHelpText - }] - }; - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.git.ConfigPanel.superclass.initComponent.apply(this, arguments); - } - -}); - -Ext.reg("gitConfigPanel", Sonia.git.ConfigPanel); - -// add default branch chooser to settings panel -Sonia.git.GitSettingsFormPanel = Ext.extend(Sonia.repository.SettingsFormPanel, { - - defaultBranchText: 'Default Branch', - defaultBranchHelpText: 'The default branch which is show first on source or commit view.', - - modifyDefaultConfig: function(config){ - if (this.item) { - var position = -1; - for ( var i=0; i
;
+ }
+
+}
+
+export default HgAvatar;
diff --git a/scm-plugins/scm-hg-plugin/src/main/js/ProtocolInformation.js b/scm-plugins/scm-hg-plugin/src/main/js/ProtocolInformation.js
new file mode 100644
index 0000000000..e8ec86c3c3
--- /dev/null
+++ b/scm-plugins/scm-hg-plugin/src/main/js/ProtocolInformation.js
@@ -0,0 +1,60 @@
+//@flow
+import React from 'react';
+
+// TODO flow types ???
+type Props = {
+ repository: Object
+}
+
+class ProtocolInformation extends React.Component
+ hg clone {repository._links.httpProtocol.href}
+
+
+
+ hg init {repository.name}
+
+ echo "[paths]" > .hg/hgrc
+
+ echo "default = {repository._links.httpProtocol.href}" > .hg/hgrc
+
+ echo "# {repository.name}" > README.md
+
+ hg add README.md
+
+ hg commit -m "added readme"
+
+
+ hg push
+
+
+
+
+
+ # add the repository url as default to your .hg/hgrc e.g:
+
+ default = {repository._links.httpProtocol.href}
+
+ # push to remote repository
+
+ hg push
+
+
+
+ svn checkout {repository._links.httpProtocol.href}
+
+
;
+ }
+
+}
+
+export default SvnAvatar;
diff --git a/scm-plugins/scm-svn-plugin/src/main/js/index.js b/scm-plugins/scm-svn-plugin/src/main/js/index.js
new file mode 100644
index 0000000000..83e7bc6bde
--- /dev/null
+++ b/scm-plugins/scm-svn-plugin/src/main/js/index.js
@@ -0,0 +1,10 @@
+import { binder } from "@scm-manager/ui-extensions";
+import ProtocolInformation from './ProtocolInformation';
+import SvnAvatar from './SvnAvatar';
+
+const svnPredicate = (props: Object) => {
+ return props.repository && props.repository.type === "svn";
+};
+
+binder.bind("repos.repository-details.information", ProtocolInformation, svnPredicate);
+binder.bind("repos.repository-avatar", SvnAvatar, svnPredicate);
diff --git a/scm-plugins/scm-svn-plugin/src/main/resources/META-INF/scm/plugin.xml b/scm-plugins/scm-svn-plugin/src/main/resources/META-INF/scm/plugin.xml
index 86b4f4f843..302abd2b10 100644
--- a/scm-plugins/scm-svn-plugin/src/main/resources/META-INF/scm/plugin.xml
+++ b/scm-plugins/scm-svn-plugin/src/main/resources/META-INF/scm/plugin.xml
@@ -59,9 +59,5 @@