reduce duplication and code improvements (#1707)

* reduce code duplication

* reduce duplication, fix license headers

* simplify code

* typings fixes

* update tests

* minor fixes

* markdown fixes

* revert changes
This commit is contained in:
Denys Vuika
2020-12-11 15:47:17 +00:00
committed by GitHub
parent b71e1530d1
commit 7a5350a06d
64 changed files with 482 additions and 744 deletions

View File

@@ -21,8 +21,7 @@ Content Application が起動したら、Alfresco Content Services サーバの
```json
{
"ecmHost": "http://{hostname}{:port}",
...
"ecmHost": "http://{hostname}{:port}"
}
```
@@ -41,8 +40,7 @@ ACS リポジトリの `localhost:4200/alfresco` のプロキシサーバです
```json
{
"ecmHost": "http://localhost:4200",
...
"ecmHost": "http://localhost:4200"
}
```
@@ -66,7 +64,6 @@ ACS リポジトリの `localhost:4200/alfresco` のプロキシサーバです
```json
{
...,
"application": {
"name": "Alfresco Example Content Application"
}
@@ -86,7 +83,6 @@ Alfresco コンテンツアプリケーションの左上隅に表示される
```json
{
...,
"application": {
"logo": "/assets/images/alfresco-logo-white.svg"
}
@@ -99,7 +95,6 @@ Alfresco コンテンツアプリケーションの左上隅に表示される
```json
{
...,
"headerColor": "#ffffff"
}
```
@@ -112,7 +107,6 @@ Alfresco コンテンツアプリケーションの左上隅に表示される
```json
{
...,
"files": {
"excluded": [
".DS_Store",
@@ -120,8 +114,7 @@ Alfresco コンテンツアプリケーションの左上隅に表示される
"thumbs.db",
".git"
]
},
...
}
}
```
@@ -133,15 +126,13 @@ Alfresco コンテンツアプリケーションの左上隅に表示される
```json
{
...,
"pagination": {
"supportedPageSizes": [
25,
50,
100
]
},
...
}
}
```

View File

@@ -36,7 +36,6 @@ nav: ja
```json
{
...,
"languages": [
{
"key": "de",
@@ -49,8 +48,7 @@ nav: ja
{
"key": "es",
"label": "スペイン語"
},
...
}
]
}
```
@@ -76,11 +74,9 @@ nav: ja
"CREATE_FOLDER": "Ordner erstellen",
"UPLOAD_FILE": "Datei hochladen",
"UPLOAD_FOLDER": "Ordner hochladen"
},
...
}
}
},
...
}
}
```
@@ -110,7 +106,6 @@ ADF リソースの翻訳を提供することもできます。
```json
{
"APP": {
...
},
"CORE": {
"FOLDER_DIALOG": {

View File

@@ -38,9 +38,8 @@ nav: ja
```json
{
"navigation": [
{ ... },
{ ... },
...
{},
{}
]
}
```
@@ -62,17 +61,17 @@ nav: ja
ナビゲーションリンクの `title``label` を変更するには、`/src/assets/i18n/en.json` にある `BROWSE` エントリの下の値を編集します
```json
"APP" : {
...
"BROWSE": {
"PERSONAL": {
"TITLE": "Personal Files",
"SIDENAV_LINK": {
"LABEL": "Personal Files",
"TOOLTIP": "View your Personal Files"
{
"APP": {
"BROWSE": {
"PERSONAL": {
"TITLE": "Personal Files",
"SIDENAV_LINK": {
"LABEL": "Personal Files",
"TOOLTIP": "View your Personal Files"
}
}
},
...
}
}
}
```
@@ -101,29 +100,22 @@ export class CustomPage {
コンポーネントを ```app.module.ts``` に登録します
```javascript
import { CustomPage } from './components/custom-page/custom-page.component';
...
import { CustomPage } from './components/custom-page/custom-page.component';
@NgModule({
...
declarations: [
...,
CustomPage
],
...
@NgModule({
declarations: [
CustomPage
]
})
```
`app.config.json` で、カスタムページを指すリンクエントリを定義します
```json
{
...,
"navigation": [
"main": [ ... ],
"secondary": [ ... ],
"main": [ ],
"secondary": [ ],
"custom": [
{
"icon": "work",
@@ -167,21 +159,20 @@ export class CustomPage {
```js
import { CustomPage } from './components/custom-page/custom-page.component.ts';
import { CustomPage } from './components/custom-page/custom-page.component.ts';
...
export const APP_ROUTES: Routes = [
{
path: '',
component: LayoutComponent,
children: [
...,
{
path: 'custom-route',
component: CustomPage
}
]
}
...,
]
```
@@ -192,21 +183,19 @@ export class CustomPage {
ナビゲーション定義は、動的にレンダリングされるカスタムコンポーネントもサポートします。このスキーマは次のとおりです:
```json
"navbar": [
{
{
"navbar": [
{
"id": "app.navbar.primary",
"items": [
...
{
"id": "custom-component",
"component": "custom-menu-item"
}
...
{
"id": "custom-component",
"component": "custom-menu-item"
}
]
}
]
}
]
}
```
カスタムページのコンテンツの詳細については、[ドキュメントリストのレイアウト](/ja/features/document-list-layout) セクションを参照してください。