Merged 2.0.0-m3

This commit is contained in:
Philipp Czora
2019-01-29 13:05:23 +01:00
10 changed files with 73 additions and 19 deletions

3
Jenkinsfile vendored
View File

@@ -26,7 +26,7 @@ node('docker') {
}
stage('Build') {
mvn 'clean install -DskipTests'
mvn 'clean install -Pdoc -DskipTests'
}
stage('Unit Test') {
@@ -53,6 +53,7 @@ node('docker') {
stage('Archive') {
archiveArtifacts 'scm-webapp/target/scm-webapp.war'
archiveArtifacts 'scm-server/target/scm-server-app.*'
archiveArtifacts 'scm-webapp/target/scm-webapp-restdocs.zip'
}
stage('Docker') {

View File

@@ -777,7 +777,7 @@
<jaxrs.version>2.0.1</jaxrs.version>
<resteasy.version>3.1.3.Final</resteasy.version>
<jersey-client.version>1.19.4</jersey-client.version>
<enunciate.version>2.9.1</enunciate.version>
<enunciate.version>2.11.1</enunciate.version>
<jackson.version>2.8.6</jackson.version>
<guice.version>4.0</guice.version>

View File

@@ -137,7 +137,7 @@
<profiles>
<profile>
<id>doc</id>
<id>plugin-doc</id>
<build>
<plugins>

View File

@@ -1,7 +1,5 @@
//@flow
import React from "react";
import Button, { type ButtonProps } from "./Button";
import type {File} from "@scm-manager/ui-types";
type Props = {
displayName: string,
@@ -10,9 +8,9 @@ type Props = {
class DownloadButton extends React.Component<Props> {
render() {
const {displayName, url} = this.props;
const { displayName, url } = this.props;
return (
<a className="button is-large is-info" href={url}>
<a className="button is-large is-link" href={url}>
<span className="icon is-medium">
<i className="fas fa-arrow-circle-down" />
</span>

View File

@@ -0,0 +1,45 @@
//@flow
import React from "react";
import { Help } from "../index";
type Props = {
label?: string,
name?: string,
value?: string,
checked: boolean,
onChange?: (value: boolean, name?: string) => void,
disabled?: boolean,
helpText?: string
};
class Radio extends React.Component<Props> {
renderHelp = () => {
const helpText = this.props.helpText;
if (helpText) {
return <Help message={helpText} />;
}
};
render() {
return (
<div className="field is-grouped">
<div className="control">
<label className="radio" disabled={this.props.disabled}>
<input
type="radio"
name={this.props.name}
value={this.props.value}
checked={this.props.checked}
onChange={this.props.onChange}
disabled={this.props.disabled}
/>{" "}
{this.props.label}
{this.renderHelp()}
</label>
</div>
</div>
);
}
}
export default Radio;

View File

@@ -4,6 +4,7 @@ export { default as AddEntryToTableField } from "./AddEntryToTableField.js";
export { default as AutocompleteAddEntryToTableField } from "./AutocompleteAddEntryToTableField.js";
export { default as MemberNameTable } from "./MemberNameTable.js";
export { default as Checkbox } from "./Checkbox.js";
export { default as Radio } from "./Radio.js";
export { default as InputField } from "./InputField.js";
export { default as Select } from "./Select.js";
export { default as Textarea } from "./Textarea.js";

View File

@@ -25,9 +25,9 @@ class ButtonGroup extends React.Component<Props> {
let historyColor = "";
if (historyIsSelected) {
historyColor = "info is-selected";
historyColor = "link is-selected";
} else {
sourcesColor = "info is-selected";
sourcesColor = "link is-selected";
}
const sourcesLabel = (

View File

@@ -89,6 +89,7 @@ class UserForm extends React.Component<Props, State> {
let passwordChangeField = null;
if (!this.props.user) {
nameField = (
<div className="column is-half">
<InputField
label={t("user.name")}
onChange={this.handleUsernameChange}
@@ -97,6 +98,7 @@ class UserForm extends React.Component<Props, State> {
errorMessage={t("validation.name-invalid")}
helpText={t("help.usernameHelpText")}
/>
</div>
);
passwordChangeField = (
@@ -105,9 +107,9 @@ class UserForm extends React.Component<Props, State> {
}
return (
<form onSubmit={this.submit}>
<div className="columns">
<div className="column is-half">
<div className="columns is-multiline">
{nameField}
<div className="column is-half">
<InputField
label={t("user.displayName")}
onChange={this.handleDisplayNameChange}

View File

@@ -4,6 +4,8 @@
$blue: #33b2e8;
$mint: #11dfd0;
$info: $blue;
// $footer-background-color
.is-ellipsis-overflow {

View File

@@ -896,6 +896,11 @@
<artifactId>enunciate-lombok</artifactId>
<version>${enunciate.version}</version>
</dependency>
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-processor</artifactId>
<version>${org.mapstruct.version}</version>
</dependency>
</dependencies>
</plugin>