Skip to content

Commit

Permalink
Merge pull request #8096 from weseek/master
Browse files Browse the repository at this point in the history
Release v6.2.1
  • Loading branch information
yuki-takei authored Sep 22, 2023
2 parents a097ff7 + 342d324 commit a433659
Show file tree
Hide file tree
Showing 37 changed files with 249 additions and 424 deletions.
2 changes: 1 addition & 1 deletion .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ filter-by-commitish: true
categories:
- title: 'BREAKING CHANGES'
labels:
- 'type/reaking'
- 'type/breaking'
- title: '💎 Features'
labels:
- 'type/feature'
Expand Down
102 changes: 51 additions & 51 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,56 +75,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


create-pr-for-next-rc:
needs: create-github-release

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
ref: v${{ needs.create-github-release.outputs.RELEASED_VERSION }}

- uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'
cache-dependency-path: '**/yarn.lock'

- name: Install dependencies
run: |
yarn global add turbo
yarn --frozen-lockfile
- name: Bump versions for next RC
run: |
turbo run version --filter=@growi/app -- --prepatch
turbo run version --filter=@growi/slackbot-proxy -- --prepatch
yarn upgrade --scope=@growi
- name: Retrieve information from package.json
uses: myrotvorets/info-from-package-json-action@1.2.0
id: package-json

- name: Commit
uses: github-actions-x/commit@v2.9
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
push-branch: support/prepare-v${{ steps.package-json.outputs.packageVersion }}
commit-message: 'Bump version'
name: GitHub Action

- name: Create PR
uses: repo-sync/pull-request@v2
with:
source_branch: support/prepare-v${{ steps.package-json.outputs.packageVersion }}
destination_branch: ${{ github.head_ref }}
pr_title: Prepare v${{ steps.package-json.outputs.packageVersion }}
pr_label: flag/exclude-from-changelog,type/prepare-next-version
pr_body: "[skip ci] An automated PR generated by create-pr-for-next-rc"
github_token: ${{ secrets.GITHUB_TOKEN }}


determine-tags:
needs: create-github-release
runs-on: ubuntu-latest
Expand Down Expand Up @@ -203,7 +153,7 @@ jobs:


post-publish:
needs: [create-github-release, publish-image, publish-image-ghcr]
needs: [publish-image, publish-image-ghcr]
runs-on: ubuntu-latest

steps:
Expand All @@ -230,3 +180,53 @@ jobs:
run: |
STATUS=`git status --porcelain`
if [ -z "$STATUS" ]; then exit 0; else exit 1; fi
create-pr-for-next-rc:
needs: [publish-image, publish-image-ghcr]
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
ref: v${{ needs.create-github-release.outputs.RELEASED_VERSION }}

- uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'
cache-dependency-path: '**/yarn.lock'

- name: Install dependencies
run: |
yarn global add turbo
yarn --frozen-lockfile
- name: Bump versions for next RC
run: |
turbo run version --filter=@growi/app -- --prepatch
turbo run version --filter=@growi/slackbot-proxy -- --prepatch
yarn upgrade --scope=@growi
- name: Retrieve information from package.json
uses: myrotvorets/info-from-package-json-action@1.2.0
id: package-json

- name: Commit
uses: github-actions-x/commit@v2.9
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
push-branch: support/prepare-v${{ steps.package-json.outputs.packageVersion }}
commit-message: 'Bump version'
name: GitHub Action

- name: Create PR
uses: repo-sync/pull-request@v2
with:
source_branch: support/prepare-v${{ steps.package-json.outputs.packageVersion }}
destination_branch: ${{ github.head_ref }}
pr_title: Prepare v${{ steps.package-json.outputs.packageVersion }}
pr_label: flag/exclude-from-changelog,type/prepare-next-version
pr_body: "[skip ci] An automated PR generated by create-pr-for-next-rc"
github_token: ${{ secrets.GITHUB_TOKEN }}
38 changes: 19 additions & 19 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,6 @@

*Please do not manually update this file. We've automated the process.*

## [v6.1.15](https://github.com/weseek/growi/compare/v6.1.14...v6.1.15) - 2023-09-11

### 🚀 Improvement

- imprv: Add CSP style-src for Safari and Content-Disposition of attachment (for v6.1.x) (#8057) @yuki-takei

## [v6.1.14](https://github.com/weseek/growi/compare/v6.1.13...v6.1.14) - 2023-08-22

### 🐛 Bug Fixes

- fix: Add option to lightbox (6.1.x) (#8003) @yuki-takei

## [v6.1.13](https://github.com/weseek/growi/compare/v6.1.12...v6.1.13) - 2023-08-17

### 🐛 Bug Fixes

- fix: Do not work img tag if use style property (#7988) @jam411
- fix: "Searching..." label appearing unnecessarily (#7990) @yuki-takei

## [v6.2.0](https://github.com/weseek/growi/compare/v6.1.12...v6.2.0) - 2023-09-14

### 💎 Features
Expand Down Expand Up @@ -58,6 +39,25 @@
- support: Improve build settings (#7919) @yuki-takei
- support: Url to join to the slack team (#8073) @WNomunomu

## [v6.1.15](https://github.com/weseek/growi/compare/v6.1.14...v6.1.15) - 2023-09-11

### 🚀 Improvement

- imprv: Add CSP style-src for Safari and Content-Disposition of attachment (for v6.1.x) (#8057) @yuki-takei

## [v6.1.14](https://github.com/weseek/growi/compare/v6.1.13...v6.1.14) - 2023-08-22

### 🐛 Bug Fixes

- fix: Add option to lightbox (6.1.x) (#8003) @yuki-takei

## [v6.1.13](https://github.com/weseek/growi/compare/v6.1.12...v6.1.13) - 2023-08-17

### 🐛 Bug Fixes

- fix: Do not work img tag if use style property (#7988) @jam411
- fix: "Searching..." label appearing unnecessarily (#7990) @yuki-takei

## [v6.1.12](https://github.com/weseek/growi/compare/v6.1.11...v6.1.12) - 2023-08-14

### 🐛 Bug Fixes
Expand Down
1 change: 0 additions & 1 deletion apps/app/.env.development
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ QUESTIONNAIRE_SERVER_ORIGIN="http://host.docker.internal:3003"
# USER_UPPER_LIMIT=0
# DEV_HTTPS=true
# FORCE_WIKI_MODE=private
# PROMSTER_ENABLED=true
# SLACKBOT_WITHOUT_PROXY_SIGNING_SECRET=''
# SLACKBOT_WITHOUT_PROXY_BOT_TOKEN=''
# GROWI_CLOUD_URI='http://growi.cloud'
Expand Down
6 changes: 1 addition & 5 deletions apps/app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@growi/app",
"version": "6.2.0",
"version": "6.2.1-RC.0",
"license": "MIT",
"scripts": {
"//// for production": "",
Expand Down Expand Up @@ -52,7 +52,6 @@
"// comments for dependencies": {
"escape-string-regexp": "5.0.0 or above exports only ESM",
"string-width": "5.0.0 or above exports only ESM.",
"prom-client": "!!DO NOT REMOVE!! A peer dependency of @promster.",
"remark-wiki-link": "!!DO NOT REMOVE!! including 'mdast-util-wiki-link' and 'micromark-extension-wiki-link' required by pukiwiki-like-linker"
},
"dependencies": {
Expand All @@ -74,8 +73,6 @@
"@growi/remark-growi-directive": "link:../../packages/remark-growi-directive",
"@growi/remark-lsx": "link:../../packages/remark-lsx",
"@growi/slack": "link:../../packages/slack",
"@promster/express": "^7.0.6",
"@promster/server": "^7.0.8",
"@slack/web-api": "^6.2.4",
"@slack/webhook": "^6.0.0",
"@types/jest": "^29.5.2",
Expand Down Expand Up @@ -154,7 +151,6 @@
"passport-ldapauth": "^3.0.1",
"passport-local": "^1.0.0",
"passport-saml": "^3.2.0",
"prom-client": "^14.1.1",
"qs": "^6.11.1",
"rate-limiter-flexible": "^2.3.7",
"react": "^18.2.0",
Expand Down
6 changes: 5 additions & 1 deletion apps/app/public/static/locales/en_US/admin.json
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,10 @@
"show_all_reply_comments": "Show all reply comments",
"show_all_reply_comments_desc": "When the setting value is off, comments other than the latest two are omitted.",
"select_search_scope_children_as_default": "Select 'Only children of this tree' as default value of search range",
"select_search_scope_children_as_default_desc": "When the setting value is off, 'All pages' is used as default value of search range.",
"select_search_scope_children_as_default_desc": "When the setting value is off, 'All pages' is used as default value of search range."
},
"presentation": "Presentation",
"presentation_options": {
"enable_marp": "Enable Marp ",
"enable_marp_desc": "Marp can be used in presentation preview. This option may make you vulnerable to XSS.",
"marp_official_site": "The Marp Official Site",
Expand All @@ -499,6 +502,7 @@
"write_css": "You can write CSS that is applied to whole system.",
"ctrl_space": "Ctrl+Space to autocomplete",
"custom_script": "Custom script",
"custom_presentation": "Custom presentation",
"write_java": "You can write Javascript that is applied to whole system.",
"reflect_change": "You need to reload the page to reflect the change.",
"custom_logo" : "Custom Logo",
Expand Down
1 change: 1 addition & 0 deletions apps/app/public/static/locales/en_US/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"No users have liked this yet.": "No users have liked this yet.",
"No users have bookmarked yet": "No users have bookmarked yet",
"Create Archive Page": "Create Archive Page",
"Create Sidebar Page": "Create <strong>/Sidebar</strong> Page",
"File type": "File type",
"Target page": "Target page",
"Include Attachment File": "Include Attachment File",
Expand Down
9 changes: 7 additions & 2 deletions apps/app/public/static/locales/ja_JP/admin.json
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,11 @@
"show_all_reply_comments": "返信コメントを全て表示する",
"show_all_reply_comments_desc": "OFFの場合、最新2件のコメント以外が省略されます。",
"select_search_scope_children_as_default": "検索範囲のデフォルト設定を「この階層下の子ページ」にする",
"select_search_scope_children_as_default_desc": "OFFの場合、検索範囲のデフォルト設定は「全てのページ」になります。",
"select_search_scope_children_as_default_desc": "OFFの場合、検索範囲のデフォルト設定は「全てのページ」になります。"

},
"presentation":"プレゼンテーション",
"presentation_options":{
"enable_marp": "Marp を有効化する",
"enable_marp_desc": "プレゼンテーション表示に Marp を利用できるようになります。ただし、XSS に対して脆弱になる恐れがあります。",
"marp_official_site": "参考:Marp 公式サイト",
Expand All @@ -507,6 +511,7 @@
"write_css": " システム全体に適用されるCSSを記述できます。",
"ctrl_space": "Ctrl+Space でコード補完",
"custom_script": "カスタムスクリプト",
"custom_presentation":"プレゼンテーション",
"write_java": "システム全体に適用されるJavaScriptを記述できます。",
"reflect_change": "変更の反映はページの更新が必要です。",
"custom_logo": "カスタムロゴ",
Expand All @@ -515,7 +520,7 @@
"current_logo": "現在のロゴ",
"upload_new_logo": "新しいロゴをアップロードする",
"delete_logo": "ロゴを削除"
},
},
"importer_management": {
"import_data": "データインポート",
"article": "記事",
Expand Down
1 change: 1 addition & 0 deletions apps/app/public/static/locales/ja_JP/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"No users have liked this yet": "いいねをしているユーザーはいません",
"No users have bookmarked yet": "ブックマークしているユーザーはいません",
"Create Archive Page": "アーカイブページの作成",
"Create Sidebar Page": "<strong>/Sidebar</strong> ページを作成する",
"Target page": "対象ページ",
"File type": "ファイル形式",
"Include Attachment File": "添付ファイルも含める",
Expand Down
6 changes: 5 additions & 1 deletion apps/app/public/static/locales/zh_CN/admin.json
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,10 @@
"show_all_reply_comments": "显示所有回复评论",
"show_all_reply_comments_desc": "当设置值为“关”时,将忽略最近两个之外的注释。",
"select_search_scope_children_as_default": "选择“当前分支以下内容”, 作为搜索范围的默认值",
"select_search_scope_children_as_default_desc": "当设置值为“关”时,“所有页面”被作为搜索范围的默认值。",
"select_search_scope_children_as_default_desc": "当设置值为“关”时,“所有页面”被作为搜索范围的默认值。"
},
"presentation": "表达",
"presentation_options": {
"enable_marp": "启用 Marp",
"enable_marp_desc": "Marp 可在演示视图中使用。该选项可能会使您受到 XSS 的攻击。",
"marp_official_site": "参考资料:Marp 官方网站",
Expand All @@ -507,6 +510,7 @@
"write_css": "您可以编写应用于整个系统的CSS。",
"ctrl_space": "Ctrl+Space 自动完成",
"custom_script": "定制纸条",
"custom_presentation":"表达",
"write_java": "您可以编写应用于整个系统的Javascript。",
"reflect_change": "您需要重新加载页面以反映更改。",
"custom_logo": "自定义徽标",
Expand Down
1 change: 1 addition & 0 deletions apps/app/public/static/locales/zh_CN/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"No users have liked this yet": "还没有用户喜欢这个",
"No users have bookmarked yet": "还没有用户加入书签",
"Create Archive Page": "创建归档页",
"Create Sidebar Page": "创建 <strong>/Sidebar</strong> 页面",
"File type": "文件类型",
"Target page": "目标页面",
"Include Attachment File": "包含附件",
Expand Down
23 changes: 21 additions & 2 deletions apps/app/src/client/services/AdminCustomizeContainer.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable lines-between-class-members */
import { isServer } from '@growi/core/dist/utils';
import { Container } from 'unstated';

Expand Down Expand Up @@ -154,7 +155,7 @@ export default class AdminCustomizeContainer extends Container {
/**
* Switch isEnabledMarp
*/
switchIsEnabledMarp() {
switchIsEnabledMarp(inputValue) {
this.setState({ isEnabledMarp: !this.state.isEnabledMarp });
}

Expand Down Expand Up @@ -203,7 +204,6 @@ export default class AdminCustomizeContainer extends Container {
isEnabledStaleNotification: this.state.isEnabledStaleNotification,
isAllReplyShown: this.state.isAllReplyShown,
isSearchScopeChildrenAsDefault: this.state.isSearchScopeChildrenAsDefault,
isEnabledMarp: this.state.isEnabledMarp,
});
const { customizedParams } = response.data;
this.setState({
Expand All @@ -216,6 +216,25 @@ export default class AdminCustomizeContainer extends Container {
isEnabledStaleNotification: customizedParams.isEnabledStaleNotification,
isAllReplyShown: customizedParams.isAllReplyShown,
isSearchScopeChildrenAsDefault: customizedParams.isSearchScopeChildrenAsDefault,
});
}
catch (err) {
logger.error(err);
throw new Error('Failed to update data');
}
}
/**
* Update presentation
* @memberOf AdminCustomizeContainer
*/
async updateCustomizePresentation() {
try {
const response = await apiv3Put('/customize-setting/presentation', {
isEnabledMarp: this.state.isEnabledMarp,
});

const { customizedParams } = response.data;
this.setState({
isEnabledMarp: customizedParams.isEnabledMarp,
});
}
Expand Down
4 changes: 4 additions & 0 deletions apps/app/src/components/Admin/Customize/Customize.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import CustomizeFunctionSetting from './CustomizeFunctionSetting';
import CustomizeLayoutSetting from './CustomizeLayoutSetting';
import CustomizeLogoSetting from './CustomizeLogoSetting';
import CustomizeNoscriptSetting from './CustomizeNoscriptSetting';
import CustomizePresentationSetting from './CustomizePresentationSetting';
import CustomizeScriptSetting from './CustomizeScriptSetting';
import CustomizeSidebarSetting from './CustomizeSidebarSetting';
import CustomizeThemeSetting from './CustomizeThemeSetting';
Expand Down Expand Up @@ -58,6 +59,9 @@ function Customize(props) {
<div className="mb-5">
<CustomizeFunctionSetting />
</div>
<div className="mb-5">
<CustomizePresentationSetting />
</div>
<div className="mb-5">
<CustomizeTitle />
</div>
Expand Down
Loading

0 comments on commit a433659

Please sign in to comment.