Просмотр исходного кода

Merge remote-tracking branch 'origin/master' into dev/4.0.x

# Conflicts:
#	CHANGES.md
#	package.json
#	src/server/views/widget/page_list.html
Yuki Takei 5 лет назад
Родитель
Сommit
4f5f3d895c
4 измененных файлов с 146 добавлено и 136 удалено
  1. 13 4
      CHANGES.md
  2. 112 111
      resource/locales/en-US/sandbox.md
  3. 5 5
      src/server/views/modal/empty_trash.html
  4. 16 16
      src/server/views/widget/page_list.html

+ 13 - 4
CHANGES.md

@@ -18,11 +18,11 @@
 * Support: Upgrade libs
 * Support: Upgrade libs
     * bootstrap
     * bootstrap
 
 
-## v3.8.1-RC
+## v3.8.2-RC
 
 
-* Fix: Unset overflow-y style for Edit Tags Modal
+*
 
 
-## v3.8.0
+## v3.8.1
 
 
 ### BREAKING CHANGES
 ### BREAKING CHANGES
 
 
@@ -33,11 +33,20 @@ Upgrading Guide: <https://docs.growi.org/en/admin-guide/upgrading/38x.html>
 ### Updates
 ### Updates
 
 
 * Improvement: Change the health check method for Elasticsearch
 * Improvement: Change the health check method for Elasticsearch
+* Fix: Unset overflow-y style for Edit Tags Modal
+* Fix: Duplicate page source is overwrited
+    * Introduced by 3.7.6
 
 
-## v3.7.6
+## v3.8.0  (Missing number)
+
+## v3.7.7
 
 
 * Feature: Empty trash pages
 * Feature: Empty trash pages
 * Improvement: Behavior of Reconnect to Elasticsearch button
 * Improvement: Behavior of Reconnect to Elasticsearch button
+* Fix: Duplicate page source is overwrited
+    * Introduced by 3.7.6
+
+## v3.7.6  (Missing number)
 
 
 ## v3.7.5
 ## v3.7.5
 
 

+ 112 - 111
resource/locales/en-US/sandbox.md

@@ -1,7 +1,7 @@
 <div class="card">
 <div class="card">
   <div class="card-body">
   <div class="card-body">
 
 
-# 目次
+# Table of Contents
 
 
 ```
 ```
 @[toc]
 @[toc]
@@ -14,9 +14,9 @@
 
 
 # :pencil: Block Elements
 # :pencil: Block Elements
 
 
-## Headers 見出し
+## Headers
 
 
-先頭に`#`をレベルの数だけ記述します。
+Add one `#` per level at the start of the line
 
 
 ```
 ```
 # Header 1
 # Header 1
@@ -35,28 +35,29 @@
 
 
 ###### Header 6
 ###### Header 6
 
 
-## Block 段落
+## Block paragraph
 
 
-空白行を挟むことで段落となります。aaaa
+Pararaphs are created by inserting a newline character
+A paragraph can be created by pressing Enter at the end of the previous paragraph.
 
 
 ```
 ```
-段落1
-(空行)
-段落2
+paragraph1
+(Blank line)
+paragraph2
 ```
 ```
 
 
-段落1
+paragraph1
 
 
-段落2
+paragraph2
 
 
-## Br 改行
+## Br new line
 
 
-改行の前に半角スペース``を2つ記述します。
-***この挙動は、オプションで変更可能です***
+Add two spaces before break.
+***This behaviour can be modified in the options menu.***
 
 
 ```
 ```
 hoge
 hoge
-fuga(スペース2つ)
+fuga(two spaces)
 piyo
 piyo
 ```
 ```
 
 
@@ -64,31 +65,31 @@ hoge
 fuga
 fuga
 piyo
 piyo
 
 
-## Blockquotes 引用
+## Blockquotes
 
 
-先頭に`>`を記述します。ネストは`>`を多重に記述します。
+Add one `>` per level at the start of the line
 
 
 ```
 ```
-> 引用
-> 引用
->> 多重引用
+> quote
+> quote
+>> nested quotes
 ```
 ```
 
 
-> 引用
-> 引用
->> 多重引用
+> quote
+> quote
+>> nested quotes
 
 
-## Code コード
+## Code
 
 
-`` `バッククオート` `` 3つ、あるいはチルダ`~`3つで囲みます。
+Wrap code with three back quotes or tildes.
 
 
 ```
 ```
 print 'hoge'
 print 'hoge'
 ```
 ```
 
 
-### シンタックスハイライトとファイル名
+### Syntax highlight and file name
 
 
-- [highlight.js Demo](https://highlightjs.org/static/demo/) の common カテゴリ内の言語に対応しています
+- corresponding [highlight.js Demo](https://highlightjs.org/static/demo/) of common category
 
 
 
 
 ~~~
 ~~~
@@ -115,19 +116,19 @@ function MersenneTwister(seed) {
 }
 }
 ```
 ```
 
 
-### インラインコード
+### Inline code
 
 
-`` `バッククオート` `` で単語を囲むとインラインコードになります。
+Words wrapped by `` `back quotes` `` will be formatted as inline code.
 
 
 ```
 ```
-これは `インラインコード`です。
+This is `Inline Code`.
 ```
 ```
 
 
-これは `インラインコード`です。
+This is  `Inline Code`.
 
 
-## pre 整形済みテキスト
+## Pre-arranged text
 
 
-半角スペース4個もしくはタブで、コードブロックをpre表示できます
+Code blocks should be preceded by four spaces or one tab.
 
 
 ```
 ```
     class Hoge
     class Hoge
@@ -143,9 +144,9 @@ function MersenneTwister(seed) {
         end
         end
     end
     end
 
 
-## Hr 水平線
+## Horizontal Line
 
 
-アンダースコア`_` 、アスタリスク`*`を3つ以上連続して記述します。
+Write three underscores `_`, or asterisks`*`.
 
 
 ```
 ```
 ***
 ***
@@ -161,47 +162,47 @@ ___
 
 
 # :pencil: Typography
 # :pencil: Typography
 
 
-## 強調
+## Strong Text
 
 
-### em
+### Italic
 
 
-アスタリスク`*`もしくはアンダースコア`_`1個で文字列を囲みます。
+To italicize text, add One asterisk or underscores before and after a word or phrase.
 
 
 ```
 ```
-これは *イタリック* です
-これは _イタリック_ です
+This is *Italic* .
+This is _Italic_ .
 ```
 ```
 
 
-これは *イタリック* です
-これは _イタリック_ です
+This is *Italic* .
+This is _Italic_ .
 
 
-### strong
+### Bold
 
 
-アスタリスク`*`もしくはアンダースコア`_`2個で文字列を囲みます。
+To bold text, add two asterisks or underscores before and after a word or phrase.
 
 
 ```
 ```
-これは **ボールド** です
-これは __ボールド__ です
+This is **bold**.
+This is __bold__.
 ```
 ```
 
 
-これは **ボールド** です
-これは __ボールド__ です
+This is **bold**.
+This is __bold__.
 
 
-### em + strong
+### Bold + Italic
 
 
-アスタリスク`*`もしくはアンダースコア`_`3個で文字列を囲みます。
+To bold and italicize text, add three asterisks or underscores before and after a word or phrase.
 
 
 ```
 ```
-これは ***イタリック&ボールド*** です
-これは ___イタリック&ボールド___ です
+This is ***Italic & Bold***.
+This is ___Italic & Bold___.
 ```
 ```
 
 
-これは ***イタリック&ボールド*** です
-これは ___イタリック&ボールド___ です
+This is ***Italic & Bold***.
+This is ___Italic & Bold___.
 
 
 # :pencil: Images
 # :pencil: Images
 
 
-`![Alt文字列](URL)` で`<img>`タグを挿入できます。
+You can insert `<img>` tag using `![description](URL)`.
 
 
 ```markdown
 ```markdown
 ![Minion](https://octodex.github.com/images/minion.png)
 ![Minion](https://octodex.github.com/images/minion.png)
@@ -211,7 +212,7 @@ ___
 ![Minion](https://octodex.github.com/images/minion.png)
 ![Minion](https://octodex.github.com/images/minion.png)
 ![Stormtroopocat](https://octodex.github.com/images/stormtroopocat.jpg "The Stormtroopocat")
 ![Stormtroopocat](https://octodex.github.com/images/stormtroopocat.jpg "The Stormtroopocat")
 
 
-画像の大きさなどの指定をする場合はimgタグを使用します。
+The size of the image can be set by using an HTML image tag
 
 
 ```html
 ```html
 <img src="https://octodex.github.com/images/dojocat.jpg" width="200px">
 <img src="https://octodex.github.com/images/dojocat.jpg" width="200px">
@@ -222,9 +223,9 @@ ___
 
 
 # :pencil: Link
 # :pencil: Link
 
 
-## Markdown 標準
+## Markdown standard
 
 
-`[表示テキスト](URL)`でリンクに変換されます。
+You can create links using `[Display text](URL)`.
 
 
 ```
 ```
 [Google](https://www.google.co.jp/)
 [Google](https://www.google.co.jp/)
@@ -232,7 +233,7 @@ ___
 
 
 [Google](https://www.google.co.jp/)
 [Google](https://www.google.co.jp/)
 
 
-## Crowi 互換
+## Crowi compatibility
 
 
 ```
 ```
 [/Sandbox]
 [/Sandbox]
@@ -247,80 +248,80 @@ ___
 (available by [weseek/growi-plugin-pukiwiki-like-linker
 (available by [weseek/growi-plugin-pukiwiki-like-linker
 ](https://github.com/weseek/growi-plugin-pukiwiki-like-linker) )
 ](https://github.com/weseek/growi-plugin-pukiwiki-like-linker) )
 
 
-最も柔軟な Linker です。
-記述中のページを基点とした相対リンクと、表示テキストに対するリンクを同時に実現できます。
+This is the most flexible linker.
+Both the page description and link address can be displayed on the page.
 
 
 ```
 ```
 [[./Bootstrap3]]
 [[./Bootstrap3]]
-Bootstrap3のExampleは[[こちら>./Bootstrap3]]
+Example of Bootstrap3 is[[here>./Bootstrap3]]
 ```
 ```
 
 
 [[../user]]
 [[../user]]
-Bootstrap3のExampleは[[こちら>./Bootstrap3]]
+Example of Bootstrap3 is[[here>./Bootstrap3]]
 
 
 # :pencil: Lists
 # :pencil: Lists
 
 
-## Ul 箇条書きリスト
+## Ul Bulleted list
 
 
-ハイフン`-`、プラス`+`、アスタリスク`*`のいずれかを先頭に記述します。
-ネストはタブで表現します。
+To create an unordered list, add dashes (-), asterisks (*), or plus signs (+) in front of line items. 
+Items can be nested using indentation.
 
 
 ```
 ```
-- リスト1
-    - リスト1_1
-        - リスト1_1_1
-        - リスト1_1_2
-    - リスト1_2
-- リスト2
-- リスト3
+- List1
+    - List1_1
+        - List1_1_1
+        - List1_1_2
+    - List1_2
+- List2
+- List3
 ```
 ```
 
 
-- リスト1
-    - リスト1_1
-        - リスト1_1_1
-        - リスト1_1_2
-    - リスト1_2
-- リスト2
-- リスト3
+- List1
+    - List1_1
+        - List1_1_1
+        - List1_1_2
+    - List1_2
+- List2
+- List3
 
 
-## Ol 番号付きリスト
+## Ol Numbered List
 
 
-`番号.`を先頭に記述します。ネストはタブで表現します。
-番号は自動的に採番されるため、すべての行を1.と記述するのがお勧めです。
+To create an ordered list, add line items with numbers followed by periods. 
+The numbers don’t have to be in numerical order, but the list should start with the number one.
 
 
 ```
 ```
-1. 番号付きリスト1
-    1. 番号付きリスト1-1
-    1. 番号付きリスト1-2
-1. 番号付きリスト2
-1. 番号付きリスト3
+1. Number list 1
+    1. Number list 1-1
+    1. Number list 1-2
+1. Number list 2
+1. Number list 3
 ```
 ```
 
 
-1. 番号付きリスト1
-    1. 番号付きリスト1-1
-    1. 番号付きリスト1-2
-1. 番号付きリスト2
-1. 番号付きリスト3
+1. Number list 1
+    1. Number list 1-1
+    1. Number list 1-2
+1. Number list 2
+1. Number list 3
 
 
 
 
-## タスクリスト
+## Check list
 
 
 ```
 ```
-- [ ] タスク 1
-    - [x] タスク 1.1
-    - [ ] タスク 1.2
-- [x] タスク2
+- [ ] Task 1
+    - [x] Task 1.1
+    - [ ] Task 1.2
+- [x] Task2
 ```
 ```
 
 
-- [ ] タスク 1
-    - [x] タスク 1.1
-    - [ ] タスク 1.2
-- [x] タスク2
+- [ ] Task 1
+    - [x] Task 1.1
+    - [ ] Task 1.2
+- [x] Task2
 
 
 
 
 # :pencil: Table
 # :pencil: Table
 
 
-## Markdown 標準
+## Markdown Standard
 
 
 ```markdown
 ```markdown
 | Left align | Right align | Center align |
 | Left align | Right align | Center align |
@@ -353,7 +354,7 @@ aligned    | aligned     | aligned
 | left       | right       | center       |
 | left       | right       | center       |
 | aligned    | aligned     | aligned      |
 | aligned    | aligned     | aligned      |
 
 
-## TSV (crowi-plus 独自記法)
+## TSV (crowi-plus notation)
 
 
 ```
 ```
 ::: tsv
 ::: tsv
@@ -367,7 +368,7 @@ Content Cell Content Cell
 Content Cell Content Cell
 Content Cell Content Cell
 :::
 :::
 
 
-## TSV ヘッダ付き (crowi-plus 独自記法)
+## TSV with header (crowi-plus notation)
 
 
 ```
 ```
 ::: tsv-h
 ::: tsv-h
@@ -383,7 +384,7 @@ Content Cell Content Cell
 Content Cell Content Cell
 Content Cell Content Cell
 :::
 :::
 
 
-## CSV (crowi-plus 独自記法)
+## CSV (crowi-plus original notation)
 
 
 ```
 ```
 ::: csv
 ::: csv
@@ -397,7 +398,7 @@ Content Cell,Content Cell
 Content Cell,Content Cell
 Content Cell,Content Cell
 :::
 :::
 
 
-## CSV ヘッダ付き (crowi-plus 独自記法)
+## CSV with header (crowi-plus original notation)
 
 
 ```
 ```
 ::: csv-h
 ::: csv-h
@@ -416,15 +417,15 @@ Content Cell,Content Cell
 
 
 # :pencil: Footnote
 # :pencil: Footnote
 
 
-脚注への参照[^1]を書くことができます。また、インラインの脚注^[インラインで記述できる脚注です]を入れる事も出来ます。
+You can write a reference [^1] to a footnote. You can also add an inline footnote^[Inline_footnote].
 
 
-長い脚注は[^longnote]のように書くことができます。
+Long footnotes can be written as [^longnote].
 
 
-[^1]: 1つめの脚注への参照です。
+[^1]: A_reference_to_the_first_footnote.
 
 
-[^longnote]: 脚注を複数ブロックで書く例です。
+[^longnote]: An_example_of_writing_a_footnote_in_multiple_blocks.
 
 
-    後続の段落はインデントされて、前の脚注に属します。
+    Subsequent paragraphs are indented and belong to the previous footnote.
 
 
 
 
 # :pencil: Emoji
 # :pencil: Emoji

+ 5 - 5
src/server/views/modal/empty_trash.html

@@ -14,15 +14,15 @@
         <ul>
         <ul>
           {% for data in pages %}
           {% for data in pages %}
             {% if pagePropertyName %}
             {% if pagePropertyName %}
-              {% set page = data[pagePropertyName] %}
+              {% set deletePage = data[pagePropertyName] %}
             {% else %}
             {% else %}
-              {% set page = data %}
+              {% set deletePage = data %}
             {% endif %}
             {% endif %}
             <li>
             <li>
-              <img src="{{ page.lastUpdateUser|picture }}" class="picture img-circle">
-              <a href="{{ page.path }}"
+              <img src="{{ deletePage.lastUpdateUser|picture }}" class="picture img-circle">
+              <a href="{{ deletePage.path }}"
                 class="page-list-link"
                 class="page-list-link"
-                data-path="{{ page.path }}">{{ decodeURIComponent(page.path) }}
+                data-path="{{ deletePage.path }}">{{ decodeURIComponent(deletePage.path) }}
               </a>
               </a>
             </li>
             </li>
           {% endfor %}
           {% endfor %}

+ 16 - 16
src/server/views/widget/page_list.html

@@ -2,44 +2,44 @@
 {% for data in pages %}
 {% for data in pages %}
 
 
 {% if pagePropertyName %}
 {% if pagePropertyName %}
-  {% set page = data[pagePropertyName] %}
+  {% set listPage = data[pagePropertyName] %}
 {% else %}
 {% else %}
-  {% set page = data %}
+  {% set listPage = data %}
 {% endif %}
 {% endif %}
 
 
 <li>
 <li>
-  <img src="{{ page.lastUpdateUser|picture }}" class="picture rounded-circle">
-  <a href="{{ encodeURI(page.path) }}" class="text-break ml-1">
-    {{ page.path | preventXss }}
+  <img src="{{ listPage.lastUpdateUser|picture }}" class="picture rounded-circle">
+  <a href="{{ encodeURI(listPage.path) }}" class="text-break ml-1">
+    {{ listPage.path | preventXss }}
   </a>
   </a>
   <span class="page-list-meta">
   <span class="page-list-meta">
-    {% if page.isTopPage() %}
+    {% if listPage.isTopPage() %}
       <span class="badge badge-info">TOP</span>
       <span class="badge badge-info">TOP</span>
     {% endif  %}
     {% endif  %}
 
 
-    {% if page.isTemplate() %}
+    {% if listPage.isTemplate() %}
       <span class="badge badge-info">TMPL</span>
       <span class="badge badge-info">TMPL</span>
     {% endif  %}
     {% endif  %}
 
 
-    {% if page.commentCount > 0 %}
+    {% if listPage.commentCount > 0 %}
     <span>
     <span>
-      <i class="icon-bubble"></i>{{ page.commentCount }}
+      <i class="icon-bubble"></i>{{ listPage.commentCount }}
     </span>
     </span>
     {% endif  %}
     {% endif  %}
 
 
-    {% if page.liker.length > 0 %}
-    <span class="page-list-liker" data-count="{{ page.liker.length }}">
-      <i class="icon-like"></i>{{ page.liker.length }}
+    {% if listPage.liker.length > 0 %}
+    <span class="page-list-liker" data-count="{{ listPage.liker.length }}">
+      <i class="icon-like"></i>{{ listPage.liker.length }}
     </span>
     </span>
     {% endif  %}
     {% endif  %}
 
 
-    {% if viewConfig.seener_threshold and page.seenUsers.length >= viewConfig.seener_threshold %}
-    <span class="page-list-seer" data-count="{{ page.seenUsers.length }}">
-      <i class="fa fa-paw"></i>{{ page.seenUsers.length }}
+    {% if viewConfig.seener_threshold and listPage.seenUsers.length >= viewConfig.seener_threshold %}
+    <span class="page-list-seer" data-count="{{ listPage.seenUsers.length }}">
+      <i class="fa fa-paw"></i>{{ listPage.seenUsers.length }}
     </span>
     </span>
     {% endif  %}
     {% endif  %}
 
 
-    {% if !page.isPublic() %}
+    {% if !listPage.isPublic() %}
     <span>
     <span>
       <i class="icon icon-lock"></i>
       <i class="icon icon-lock"></i>
     </span>
     </span>