|
@@ -204,7 +204,7 @@ class LinkEditModal extends React.PureComponent {
|
|
|
const linkText = linker.generateMarkdownText();
|
|
const linkText = linker.generateMarkdownText();
|
|
|
return (
|
|
return (
|
|
|
<div className="d-flex justify-content-between mb-3">
|
|
<div className="d-flex justify-content-between mb-3">
|
|
|
- <div className="card bg-light w-100 mb-0 p-1">
|
|
|
|
|
|
|
+ <div className="card w-100 mb-0 p-1">
|
|
|
<p className="text-left text-muted mb-0">Markdown</p>
|
|
<p className="text-left text-muted mb-0">Markdown</p>
|
|
|
<p className="text-center text-truncate">{linkText}</p>
|
|
<p className="text-center text-truncate">{linkText}</p>
|
|
|
</div>
|
|
</div>
|
|
@@ -302,7 +302,7 @@ class LinkEditModal extends React.PureComponent {
|
|
|
<form className="form-group">
|
|
<form className="form-group">
|
|
|
<div className="form-gorup my-3">
|
|
<div className="form-gorup my-3">
|
|
|
<div className="input-group flex-nowrap">
|
|
<div className="input-group flex-nowrap">
|
|
|
- <div className="input-group-prepend">
|
|
|
|
|
|
|
+ <div className="input-group-prepend bg-light">
|
|
|
<span className="input-group-text">link</span>
|
|
<span className="input-group-text">link</span>
|
|
|
</div>
|
|
</div>
|
|
|
<SearchTypeahead
|
|
<SearchTypeahead
|
|
@@ -312,7 +312,7 @@ class LinkEditModal extends React.PureComponent {
|
|
|
placeholder="Input page path or URL"
|
|
placeholder="Input page path or URL"
|
|
|
keywordOnInit={this.state.linkInputValue}
|
|
keywordOnInit={this.state.linkInputValue}
|
|
|
/>
|
|
/>
|
|
|
- <div className="input-group-append" onClick="">
|
|
|
|
|
|
|
+ <div className="input-group-append">
|
|
|
<button type="button" id="preview-btn" className="btn btn-info btn-page-preview">
|
|
<button type="button" id="preview-btn" className="btn btn-info btn-page-preview">
|
|
|
<PagePreviewIcon />
|
|
<PagePreviewIcon />
|
|
|
</button>
|
|
</button>
|
|
@@ -326,7 +326,7 @@ class LinkEditModal extends React.PureComponent {
|
|
|
</div>
|
|
</div>
|
|
|
<div className="form-gorup my-3">
|
|
<div className="form-gorup my-3">
|
|
|
<div className="input-group flex-nowrap">
|
|
<div className="input-group flex-nowrap">
|
|
|
- <div className="input-group-prepend">
|
|
|
|
|
|
|
+ <div className="input-group-prepend bg-light">
|
|
|
<span className="input-group-text">label</span>
|
|
<span className="input-group-text">label</span>
|
|
|
</div>
|
|
</div>
|
|
|
<input
|
|
<input
|
|
@@ -340,7 +340,7 @@ class LinkEditModal extends React.PureComponent {
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</form>
|
|
</form>
|
|
|
- <div className="card bg-light">
|
|
|
|
|
|
|
+ <div className="card">
|
|
|
<div className="card-body">
|
|
<div className="card-body">
|
|
|
<form className="form-group mb-0">
|
|
<form className="form-group mb-0">
|
|
|
<div className="form-group row">
|
|
<div className="form-group row">
|
|
@@ -351,9 +351,10 @@ class LinkEditModal extends React.PureComponent {
|
|
|
id="relativePath"
|
|
id="relativePath"
|
|
|
type="checkbox"
|
|
type="checkbox"
|
|
|
checked={this.state.isUseRelativePath}
|
|
checked={this.state.isUseRelativePath}
|
|
|
|
|
+ onChange={this.toggleIsUseRelativePath}
|
|
|
disabled={!this.state.linkInputValue.startsWith('/') || this.state.linkerType === Linker.types.growiLink}
|
|
disabled={!this.state.linkInputValue.startsWith('/') || this.state.linkerType === Linker.types.growiLink}
|
|
|
/>
|
|
/>
|
|
|
- <label className="custom-control-label" htmlFor="relativePath" onClick={this.toggleIsUseRelativePath}>
|
|
|
|
|
|
|
+ <label className="custom-control-label" htmlFor="relativePath">
|
|
|
Use relative path
|
|
Use relative path
|
|
|
</label>
|
|
</label>
|
|
|
</div>
|
|
</div>
|
|
@@ -363,9 +364,10 @@ class LinkEditModal extends React.PureComponent {
|
|
|
id="permanentLink"
|
|
id="permanentLink"
|
|
|
type="checkbox"
|
|
type="checkbox"
|
|
|
checked={this.state.isUsePermanentLink}
|
|
checked={this.state.isUsePermanentLink}
|
|
|
|
|
+ onChange={this.toggleIsUsePamanentLink}
|
|
|
disabled={this.state.permalink === '' || this.state.linkerType === Linker.types.growiLink}
|
|
disabled={this.state.permalink === '' || this.state.linkerType === Linker.types.growiLink}
|
|
|
/>
|
|
/>
|
|
|
- <label className="custom-control-label" htmlFor="permanentLink" onClick={this.toggleIsUsePamanentLink}>
|
|
|
|
|
|
|
+ <label className="custom-control-label" htmlFor="permanentLink">
|
|
|
Use permanent link
|
|
Use permanent link
|
|
|
</label>
|
|
</label>
|
|
|
</div>
|
|
</div>
|
|
@@ -377,8 +379,9 @@ class LinkEditModal extends React.PureComponent {
|
|
|
type="radio"
|
|
type="radio"
|
|
|
className="custom-control-input"
|
|
className="custom-control-input"
|
|
|
id="markdownType"
|
|
id="markdownType"
|
|
|
|
|
+ value={Linker.types.markdownLink}
|
|
|
checked={this.state.linkerType === Linker.types.markdownLink}
|
|
checked={this.state.linkerType === Linker.types.markdownLink}
|
|
|
- onClick={() => this.handleSelecteLinkerType(Linker.types.markdownLink)}
|
|
|
|
|
|
|
+ onChange={e => this.handleSelecteLinkerType(e.target.value)}
|
|
|
/>
|
|
/>
|
|
|
<label className="custom-control-label" htmlFor="markdownType">
|
|
<label className="custom-control-label" htmlFor="markdownType">
|
|
|
Markdown
|
|
Markdown
|
|
@@ -389,8 +392,9 @@ class LinkEditModal extends React.PureComponent {
|
|
|
type="radio"
|
|
type="radio"
|
|
|
className="custom-control-input"
|
|
className="custom-control-input"
|
|
|
id="growiType"
|
|
id="growiType"
|
|
|
|
|
+ value={Linker.types.growiLink}
|
|
|
checked={this.state.linkerType === Linker.types.growiLink}
|
|
checked={this.state.linkerType === Linker.types.growiLink}
|
|
|
- onClick={() => this.handleSelecteLinkerType(Linker.types.growiLink)}
|
|
|
|
|
|
|
+ onChange={e => this.handleSelecteLinkerType(e.target.value)}
|
|
|
/>
|
|
/>
|
|
|
<label className="custom-control-label" htmlFor="growiType">
|
|
<label className="custom-control-label" htmlFor="growiType">
|
|
|
Growi original
|
|
Growi original
|
|
@@ -401,8 +405,9 @@ class LinkEditModal extends React.PureComponent {
|
|
|
type="radio"
|
|
type="radio"
|
|
|
className="custom-control-input"
|
|
className="custom-control-input"
|
|
|
id="pukiwikiType"
|
|
id="pukiwikiType"
|
|
|
|
|
+ value={Linker.types.pukiwikiLink}
|
|
|
checked={this.state.linkerType === Linker.types.pukiwikiLink}
|
|
checked={this.state.linkerType === Linker.types.pukiwikiLink}
|
|
|
- onClick={() => this.handleSelecteLinkerType(Linker.types.pukiwikiLink)}
|
|
|
|
|
|
|
+ onChange={e => this.handleSelecteLinkerType(e.target.value)}
|
|
|
/>
|
|
/>
|
|
|
<label className="custom-control-label" htmlFor="pukiwikiType">
|
|
<label className="custom-control-label" htmlFor="pukiwikiType">
|
|
|
Pukiwiki
|
|
Pukiwiki
|