Skip to content
This repository was archived by the owner on Feb 5, 2024. It is now read-only.

Commit 7cc4984

Browse files
committed
Merge branch 'master' into feature-search-r
2 parents bfe5301 + a3a0285 commit 7cc4984

12 files changed

+40
-9
lines changed

CHANGES.md

+16
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
11
CHANGES
22
========
33

4+
## 1.4.0
5+
6+
* Feature: Slack integration.
7+
* Feature: Page comment.
8+
* Feature: User page.
9+
* Feature: User bookmark page and created pages list.
10+
* Feature: Portal for list.
11+
* Feature: History diff (Thank you: @suzuki #65).
12+
* Feature: Image uploader for local server (Thank you: @riaf ).
13+
* Improve: List view styles.
14+
* Improve: Paste handler with `> ` line (Thank you: @suzuki #57).
15+
* Fix: Google Apps cliendId validation (Thank you: @suzutan #72).
16+
* Fix: Bug of detecting prefix of the path on list view.
17+
* And some fixes. (Thank you: @yuya-takeyama @takahashim)
18+
* Library Update: now Crowi doesn't depends on bower.
19+
420
## 1.3.1
521

622
* Fix: Logic of checking uploadable was broken.

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Crowi - The Simple & Powerful Communication Tool Based on Wiki
44
================================================================
55

66

7-
[![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy)
7+
[![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy?template=https://github.com/crowi/crowi/tree/v1.4.0)
88

99
[![Circle CI](https://circleci.com/gh/crowi/crowi.svg?style=svg)](https://circleci.com/gh/crowi/crowi)
1010
[![Join the chat at https://gitter.im/crowi/general](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/crowi/general)
@@ -42,6 +42,7 @@ Dependencies
4242
* Amazon S3 (optional)
4343
* Facebook Application (optional)
4444
* Google Project (optional)
45+
* Slack App (optional)
4546

4647

4748
Start Up on Local

lib/form/admin/google.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ var form = require('express-form')
55

66
module.exports = form(
77
field('settingForm[google:clientId]').trim().is(/^[\d\.a-z\-\.]+$/),
8-
field('settingForm[google:clientSecret]').trim().is(/^[\da-zA-Z\-]+$/)
8+
field('settingForm[google:clientSecret]').trim().is(/^[\da-zA-Z\-_]+$/)
99
);
1010

lib/views/admin/notification.html

+4-3
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,11 @@ <h3>How to configure Slack app for Crowi</h3>
147147
</p>
148148
<h4>1. Register Slack App</h4>
149149
<p>
150-
Create App from this link, and fill the form out as below:
150+
Create App from <a href="https://api.slack.com/applications/new">this link</a>, and fill the form out as below:
151151
</p>
152152
<dl class="dl-horizontal">
153153
<dt>App Name</dt> <dd><code>Crowi</code> </dd>
154-
<dt>Icon</dt> <dd>Upload this image as the icon (Free to download and use it) =&gt; <img src=""></dd>
154+
<dt>Icon</dt> <dd>Upload this image as the icon (Free to download and use it) =&gt; <a href="https://github.com/crowi/crowi/tree/master/resource/logo">Crowi Logo</a></dd>
155155
<dt>Short description</dt> <dd><code>Crowi's Slack Notification Integration</code> </dd>
156156
<dt>Long description</dt> <dd><code>Crowi's Slack Notification Integration</code> </dd>
157157
</dl>
@@ -160,7 +160,8 @@ <h4>1. Register Slack App</h4>
160160
</p>
161161

162162
<h4>2. Get <code>clientId</code> and <code>clientSecret</code></h4>
163-
<h4>3. Configure Slack on this notification setting screen</h4>
163+
<h4>3. After clientId nad clientSecret set, click "Connect to Slack" button to start OAuth process.</h4>
164+
<h4>4. Configure Slack on this notification setting screen</h4>
164165
{% endif %}
165166

166167

lib/views/admin/slackauth.html

Whitespace-only changes.

lib/views/admin/slackauthstart.html

-1
This file was deleted.

lib/views/me/index.html

+5
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,16 @@ <h1 class="title" id="">ユーザー設定</h1>
122122
新しい画像をアップロード
123123
</label>
124124
<div class="col-sm-9">
125+
{% if isUploadable() %}
125126
<form action="/_api/me/picture/upload" id="pictureUploadForm" method="post" class="form-horizontal" role="form" enctype="multipart/form-data">
126127
<input name="userPicture" type="file" accept="image/*">
127128
<div id="pictureUploadFormProgress">
128129
</div>
129130
</form>
131+
{% else %}
132+
* 画像をアップロードをするための設定がされていません。<br>
133+
* アップロードできるようにするには、AWS またはローカルアップロードの設定をしてください。<br>
134+
{% endif %}
130135
</div>
131136
</div>
132137
</fieldset>

lib/views/me/password.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{% block content_head %}
66
<div class="header-wrap">
77
<header id="page-header">
8-
<h1 class="title" id="">ユーザー設定</h1>
8+
<h1 class="title" id="">ユーザー設定</h1>
99
</header>
1010
</div>
1111
{% endblock %}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "crowi",
3-
"version": "1.3.1",
3+
"version": "1.4.0",
44
"description": "The simple & powerful Wiki",
55
"tags": [
66
"wiki",

resource/css/_wiki.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ div.body {
4242
.revision-head-link {
4343
display: none;
4444
font-size: 0.6em;
45-
padding-top: 8px;
45+
padding-top: 4px;
4646
padding-left: 10px;
4747
}
4848
&:hover .revision-head-link {

resource/js/crowi.js

+9
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ Crowi.rendererType = {};
141141
Crowi.rendererType.markdown = function(){};
142142
Crowi.rendererType.markdown.prototype = {
143143
render: function(contentText) {
144+
144145
marked.setOptions({
145146
gfm: true,
146147
highlight: function (code, lang, callback) {
@@ -169,6 +170,8 @@ Crowi.rendererType.markdown.prototype = {
169170
});
170171

171172
var contentHtml = Crowi.unescape(contentText);
173+
// TODO 前処理系のプラグイン化
174+
contentHtml = this.preFormatMarkdown(contentHtml);
172175
contentHtml = this.expandImage(contentHtml);
173176
contentHtml = this.link(contentHtml);
174177

@@ -181,6 +184,12 @@ Crowi.rendererType.markdown.prototype = {
181184
$body.html(content);
182185
});
183186
},
187+
preFormatMarkdown: function(content){
188+
var x = content
189+
.replace(/^(#{1,})([^\s]+)?(.*)$/gm, '$1 $2$3') // spacer for section
190+
.replace(/>[\s]*\n>[\s]*\n/g, '> <br>\n> \n');
191+
return x;
192+
},
184193
link: function (content) {
185194
return content
186195
//.replace(/\s(https?:\/\/[\S]+)/g, ' <a href="$1">$1</a>') // リンク

resource/logo/crowi-logo-840.png

41.5 KB
Loading

0 commit comments

Comments
 (0)