Yasa-Nataliya 6fac964d94
[ACS-3742] Layout changes for workspace (#2980)
* Layout changes for workspace sidemenu

* added header and search layout changes

* implemented review comments and removed process related code

* Added expand and collapse functionality

* Modified the paths

* linting fixes

* use standard material settings icon

* use only specific modules needed for page layout

* use standard "menu" icon for now

* use standard avatar icon for now

* cleanup user profile menu item

* cleanup About component layout

* remove hardcoded settings route

* deprecate "headerImagePath"

* deprecate "headerTextColor" customisation

* deprecate "headerColor" customisation

* proper toggle of the side menu

* proper sidebar header implementation

* user profile basic cleanup

* minor fixes

* cleanup buttons

* remove old app layout and use ADF one

* remove old header component

* cleanup old layout module

* fix unit tests

* cleanup unit tests

* cleanup header actions module

* deprecate unused main-action component

* cleanup styles

* restore removed method

* cleanup search results toolbar

* restore expand menu functionality

* cleanup code, back buttons for about and profile

* restore original code

* proper collapse button

* remove unused i18n key

* styles cleanup

* cleanup sidebar

* cleanup user profile

* add safety checks for focus after close

* layout fixes

* update view profile unit tests

* code cleanup after reviews

* cleanup header actions

* fix menu population, user info

* improved upload and create actions

* remove useless tests

* fix folder rules tests

* search button workaround

* e2e: remove wait

* add create/upload tooltips

* e2e fix

* e2e fix

* e2e fix

* e2e fix

* e2e fix

* e2e fix

* e2e fix

* e2e fix

* e2e fix

* e2e fix

* e2e fix

* e2e fix

* try fix e2e

* update e2e extension configs

* try fix e2e

* try fix e2e

* fix eslint config

* try fix e2e

* move search button to extensions

* move upload and create to extensions

* remove header actions as no longer needed

* cleanup

* e2e fixes and cleanup for unwanted files

* linting fixes

* linting fixes

* added button type to support text buttons

* linting fixes

* added more unit tests to achieve code coverage requirement

* fixing code covergae for aca-content

* fixed code coverage for aca-shared

* linting fixes

* linting fixes

* cleanup

* version fix

---------

Co-authored-by: SheenaMalhotra182 <sheena.malhotra@globallogic.com>
Co-authored-by: Denys Vuika <denys.vuika@gmail.com>
Co-authored-by: SheenaMalhotra182 <sheena.malhotra@contractors.onbase.com>
2023-04-20 07:18:24 -04:00

135 lines
5.0 KiB
Markdown

---
Title: 設定
nav: ja
---
# 設定
Alfresco Content Application では、グローバル設定ファイル `app.config.json` がサポートされており、これを使用して Content Application と ADF コンポーネントの動作をカスタマイズすることができます。
## サーバの設定
Content Application が起動すると、Alfresco Content Services サーバーの場所と、ファイル共有用の URL を知る必要があります。
### Content Services アドレス
"ecmHost" プロパティでは、サーバーのアドレスを動的または静的な形式で設定できます。
#### 動的アドレス
以下の例は、開発環境で最も一般的な動的形式を示しています:
```json
{
"ecmHost": "http://{hostname}{:port}"
}
```
上記の構成は、ACS と Alfresco Content Application が同じサーバーとポートで動作していることを前提としており、
同じ統一された設定ファイルを持つ異なるサーバーへのデプロイを可能にしています。
たとえば、ルートアプリケーションとして Alfresco Content Application をホストする `localhost:4200` のプロキシサーバーと、
ACS リポジトリをホストする`localhost:4200/alfresco` のプロキシサーバーです。
実行時には、アプリケーションが自動的に "{hostname}" の値を元のホスト名で置き換えます。
オプションとして、元のポートの値があればそれを使用することもできます。例えば、ローカルマシンでは "4200" のように、80 番ポートの値をスキップすることもできます。
#### 静的アドレス
または、必要に応じて、ACS サーバーの静的アドレスを提供できます:
```json
{
"ecmHost": "http://localhost:4200"
}
```
### 共有ファイルのアドレス
"baseShareUrl" プロパティは、ユーザーが共有ファイルにアクセスする際のアドレスをどのように構築するかをアプリケーションに伝えるものです。
```json
{
"baseShareUrl": "{protocol}//{hostname}{:port}/#/preview/s"
}
```
## アプリケーションの設定
アプリケーションのデフォルトの動作を置き換えるために変更できる多くの設定があります。
### アプリケーション名
次のブロックでは、アプリケーションの名前を変更できます。
```json
{
"application": {
"name": "Alfresco サンプルコンテンツアプリケーション"
}
}
```
`application.name` のキーの値は、実行時に `[ページタイトル] - [アプリケーション名]` の形式ですべてのブラウザタブタイトルに追加されます。
例: "個人ファイル - Alfresco サンプルコンテンツアプリケーション"
### アプリケーションロゴ
Alfresco コンテンツアプリケーションの左上隅に表示されるデフォルトのロゴは変更できます:
1. カスタムロゴ画像ファイルを [アプリ名]/src/assets/images フォルダに配置します。表示された画像は自動的にサイズ変更され、極端な幅/高さの画像は寸法を保持できない場合があります。
2. app.config.json ファイルで、application.logo の値にカスタムロゴ画像の名前を含むように設定します: "logo": "/assets/images/[カスタムロゴ画像ファイル名].[拡張子]"
```json
{
"application": {
"logo": "/assets/images/alfresco-logo-white.svg"
}
}
```
### 制限されたコンテンツ
"files.excluded" パスにあるルールのリストを設定または拡張することで、ユーザーが特定の種類のファイルやフォルダをアップロードできないように制限することができます。
デフォルトでは、以下のルールがあらかじめ定義された状態で提供されています:
```json
{
"files": {
"excluded": [
".DS_Store",
"desktop.ini",
"thumbs.db",
".git"
]
}
}
```
**Tip:** サポートされているルールの詳細については、ADF [Upload Service](https://www.alfresco.com/abn/adf/docs/core/services/upload.service/) のドキュメントをご覧ください。
### ページネーション設定
アプリケーション内のすべてのドキュメントリストに適用されるページネーションのデフォルト設定を変更できます。
```json
{
"pagination": {
"supportedPageSizes": [
25,
50,
100
]
}
}
```
## カスタム設定
アプリケーション構成ファイルに任意の情報を定義し、ADF が提供する `AppConfigService` サービスを使って実行時にアクセスすることができます。
**Tip:** アプリケーション設定の機能や利用可能な API の詳細については、
ADF の [App Config Service](https://www.alfresco.com/abn/adf/docs/core/services/app-config.service/) のドキュメントを参照してください。