This repository was archived by the owner on Feb 5, 2024. It is now read-only.
File tree 12 files changed +40
-9
lines changed
12 files changed +40
-9
lines changed Original file line number Diff line number Diff line change 1
1
CHANGES
2
2
========
3
3
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
+
4
20
## 1.3.1
5
21
6
22
* Fix: Logic of checking uploadable was broken.
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ Crowi - The Simple & Powerful Communication Tool Based on Wiki
4
4
================================================================
5
5
6
6
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 )
8
8
9
9
[ ![ Circle CI] ( https://circleci.com/gh/crowi/crowi.svg?style=svg )] ( https://circleci.com/gh/crowi/crowi )
10
10
[ ![ 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
42
42
* Amazon S3 (optional)
43
43
* Facebook Application (optional)
44
44
* Google Project (optional)
45
+ * Slack App (optional)
45
46
46
47
47
48
Start Up on Local
Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ var form = require('express-form')
5
5
6
6
module . exports = form (
7
7
field ( 'settingForm[google:clientId]' ) . trim ( ) . is ( / ^ [ \d \. a - z \- \. ] + $ / ) ,
8
- field ( 'settingForm[google:clientSecret]' ) . trim ( ) . is ( / ^ [ \d a - z A - Z \- ] + $ / )
8
+ field ( 'settingForm[google:clientSecret]' ) . trim ( ) . is ( / ^ [ \d a - z A - Z \- _ ] + $ / )
9
9
) ;
10
10
Original file line number Diff line number Diff line change @@ -147,11 +147,11 @@ <h3>How to configure Slack app for Crowi</h3>
147
147
</ p >
148
148
< h4 > 1. Register Slack App</ h4 >
149
149
< 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:
151
151
</ p >
152
152
< dl class ="dl-horizontal ">
153
153
< 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) => < img src ="" > </ dd >
154
+ < dt > Icon</ dt > < dd > Upload this image as the icon (Free to download and use it) => < a href =" https://github.com/crowi/crowi/tree/master/resource/logo " > Crowi Logo </ a > </ dd >
155
155
< dt > Short description</ dt > < dd > < code > Crowi's Slack Notification Integration</ code > </ dd >
156
156
< dt > Long description</ dt > < dd > < code > Crowi's Slack Notification Integration</ code > </ dd >
157
157
</ dl >
@@ -160,7 +160,8 @@ <h4>1. Register Slack App</h4>
160
160
</ p >
161
161
162
162
< 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 >
164
165
{% endif %}
165
166
166
167
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -122,11 +122,16 @@ <h1 class="title" id="">ユーザー設定</h1>
122
122
新しい画像をアップロード
123
123
</ label >
124
124
< div class ="col-sm-9 ">
125
+ {% if isUploadable() %}
125
126
< form action ="/_api/me/picture/upload " id ="pictureUploadForm " method ="post " class ="form-horizontal " role ="form " enctype ="multipart/form-data ">
126
127
< input name ="userPicture " type ="file " accept ="image/* ">
127
128
< div id ="pictureUploadFormProgress ">
128
129
</ div >
129
130
</ form >
131
+ {% else %}
132
+ * 画像をアップロードをするための設定がされていません。< br >
133
+ * アップロードできるようにするには、AWS またはローカルアップロードの設定をしてください。< br >
134
+ {% endif %}
130
135
</ div >
131
136
</ div >
132
137
</ fieldset >
Original file line number Diff line number Diff line change 5
5
{% block content_head %}
6
6
< div class ="header-wrap ">
7
7
< header id ="page-header ">
8
- < h1 class ="title " id =""> ユーザー設定</ h1 >
8
+ < h1 class ="title " id =""> ユーザー設定</ h1 >
9
9
</ header >
10
10
</ div >
11
11
{% endblock %}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " crowi" ,
3
- "version" : " 1.3.1 " ,
3
+ "version" : " 1.4.0 " ,
4
4
"description" : " The simple & powerful Wiki" ,
5
5
"tags" : [
6
6
" wiki" ,
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ div.body {
42
42
.revision-head-link {
43
43
display : none ;
44
44
font-size : 0.6em ;
45
- padding-top : 8 px ;
45
+ padding-top : 4 px ;
46
46
padding-left : 10px ;
47
47
}
48
48
& :hover .revision-head-link {
Original file line number Diff line number Diff line change @@ -141,6 +141,7 @@ Crowi.rendererType = {};
141
141
Crowi . rendererType . markdown = function ( ) { } ;
142
142
Crowi . rendererType . markdown . prototype = {
143
143
render : function ( contentText ) {
144
+
144
145
marked . setOptions ( {
145
146
gfm : true ,
146
147
highlight : function ( code , lang , callback ) {
@@ -169,6 +170,8 @@ Crowi.rendererType.markdown.prototype = {
169
170
} ) ;
170
171
171
172
var contentHtml = Crowi . unescape ( contentText ) ;
173
+ // TODO 前処理系のプラグイン化
174
+ contentHtml = this . preFormatMarkdown ( contentHtml ) ;
172
175
contentHtml = this . expandImage ( contentHtml ) ;
173
176
contentHtml = this . link ( contentHtml ) ;
174
177
@@ -181,6 +184,12 @@ Crowi.rendererType.markdown.prototype = {
181
184
$body . html ( content ) ;
182
185
} ) ;
183
186
} ,
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
+ } ,
184
193
link : function ( content ) {
185
194
return content
186
195
//.replace(/\s(https?:\/\/[\S]+)/g, ' <a href="$1">$1</a>') // リンク
You can’t perform that action at this time.
0 commit comments