mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-09-10 14:11:17 +00:00
deprecate "headerColor" customisation
This commit is contained in:
@@ -39,7 +39,6 @@
|
||||
},
|
||||
"viewer.maxRetries": 1,
|
||||
"sharedLinkDateTimePickerType": "datetime",
|
||||
"headerColor": "#ffffff",
|
||||
"customCssPath": "",
|
||||
"webFontPath": "",
|
||||
"pagination": {
|
||||
|
@@ -89,16 +89,6 @@ Alfresco コンテンツアプリケーションの左上隅に表示される
|
||||
}
|
||||
```
|
||||
|
||||
### ヘッダーの背景色
|
||||
|
||||
"headerColor" キーの色コードを指定することにより、ヘッダーの背景色を変更できます:
|
||||
|
||||
```json
|
||||
{
|
||||
"headerColor": "#ffffff"
|
||||
}
|
||||
```
|
||||
|
||||
### 制限されたコンテンツ
|
||||
|
||||
"files.excluded" パスにあるルールのリストを設定または拡張することで、ユーザーが特定の種類のファイルやフォルダをアップロードできないように制限することができます。
|
||||
|
@@ -53,7 +53,6 @@ describe('AppHeaderComponent', () => {
|
||||
} as any;
|
||||
|
||||
const app = {
|
||||
headerColor: 'some-color',
|
||||
appName: 'name',
|
||||
logoPath: 'some/path'
|
||||
} as AppState;
|
||||
@@ -83,7 +82,6 @@ describe('AppHeaderComponent', () => {
|
||||
it('should set header color, header text color, name and logo', fakeAsync(() => {
|
||||
component.appName$.subscribe((val) => expect(val).toBe(app.appName));
|
||||
component.logo$.subscribe((val) => expect(val).toBe(app.logoPath));
|
||||
component.headerColor$.subscribe((val) => expect(val).toBe(app.headerColor));
|
||||
}));
|
||||
|
||||
it('should get header actions', fakeAsync(() => {
|
||||
|
@@ -27,7 +27,7 @@ import { Component, ViewEncapsulation, Output, EventEmitter, OnInit, Input, OnDe
|
||||
import { Store } from '@ngrx/store';
|
||||
import { Observable, Subject } from 'rxjs';
|
||||
import { ContentActionRef } from '@alfresco/adf-extensions';
|
||||
import { AppStore, getHeaderColor, getAppName, getLogoPath } from '@alfresco/aca-shared/store';
|
||||
import { AppStore, getAppName, getLogoPath } from '@alfresco/aca-shared/store';
|
||||
import { AppExtensionService } from '@alfresco/aca-shared';
|
||||
import { takeUntil } from 'rxjs/operators';
|
||||
import { AppConfigService, SidenavLayoutComponent } from '@alfresco/adf-core';
|
||||
@@ -55,14 +55,12 @@ export class AppHeaderComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
appName$: Observable<string>;
|
||||
headerColor$: Observable<any>;
|
||||
logo$: Observable<string>;
|
||||
landingPage: string;
|
||||
|
||||
actions: Array<ContentActionRef> = [];
|
||||
|
||||
constructor(public store: Store<AppStore>, private appExtensions: AppExtensionService, private appConfigService: AppConfigService) {
|
||||
this.headerColor$ = store.select(getHeaderColor);
|
||||
this.appName$ = store.select(getAppName);
|
||||
this.logo$ = store.select(getLogoPath);
|
||||
this.landingPage = this.appConfigService.get('landingPage', '/personal-files');
|
||||
|
@@ -27,7 +27,6 @@ import { AppState, AppStore } from '@alfresco/aca-shared/store';
|
||||
|
||||
export const INITIAL_APP_STATE: AppState = {
|
||||
appName: 'Alfresco Content Application',
|
||||
headerColor: '#ffffff',
|
||||
logoPath: 'assets/images/alfresco-logo-white.svg',
|
||||
customCssPath: '',
|
||||
webFontPath: '',
|
||||
|
@@ -35,7 +35,6 @@ import {
|
||||
SetRepositoryInfoAction,
|
||||
SetInfoDrawerStateAction,
|
||||
SetInfoDrawerMetadataAspectAction,
|
||||
SetHeaderColorAction,
|
||||
SetCurrentNodeVersionAction,
|
||||
SetFileUploadingDialogAction,
|
||||
SetInfoDrawerPreviewStateAction,
|
||||
@@ -51,12 +50,6 @@ export function appReducer(state: AppState = INITIAL_APP_STATE, action: Action):
|
||||
case AppActionTypes.SetInitialState:
|
||||
newState = Object.assign({}, (action as SetInitialStateAction).payload);
|
||||
break;
|
||||
case AppActionTypes.SetHeaderColor:
|
||||
newState = {
|
||||
...state,
|
||||
headerColor: (action as SetHeaderColorAction).color
|
||||
};
|
||||
break;
|
||||
case NodeActionTypes.SetSelection:
|
||||
newState = updateSelectedNodes(state, action as SetSelectedNodesAction);
|
||||
break;
|
||||
|
@@ -61,7 +61,6 @@ class DocumentBasePageServiceMock extends DocumentBasePageService {
|
||||
|
||||
export const INITIAL_APP_STATE: AppState = {
|
||||
appName: 'Alfresco Content Application',
|
||||
headerColor: '#ffffff',
|
||||
logoPath: 'assets/images/alfresco-logo-white.svg',
|
||||
customCssPath: '',
|
||||
webFontPath: '',
|
||||
|
@@ -41,7 +41,6 @@ import { EffectsModule } from '@ngrx/effects';
|
||||
|
||||
export const INITIAL_APP_STATE: AppState = {
|
||||
appName: 'Alfresco Content Application',
|
||||
headerColor: '#ffffff',
|
||||
logoPath: 'assets/images/alfresco-logo-white.svg',
|
||||
customCssPath: '',
|
||||
webFontPath: '',
|
||||
|
@@ -224,7 +224,6 @@ export class AppService implements OnDestroy {
|
||||
const state: AppState = {
|
||||
...this.initialAppState,
|
||||
appName: this.config.get<string>('application.name'),
|
||||
headerColor: this.config.get<string>('headerColor'),
|
||||
logoPath: this.config.get<string>('application.logo'),
|
||||
customCssPath: this.config.get<string>('customCssPath'),
|
||||
webFontPath: this.config.get<string>('webFontPath'),
|
||||
|
@@ -43,7 +43,6 @@ import { CommonModule } from '@angular/common';
|
||||
export const initialState = {
|
||||
app: {
|
||||
appName: 'Alfresco Content Application',
|
||||
headerColor: '#ffffff',
|
||||
logoPath: 'assets/images/alfresco-logo-white.svg',
|
||||
sharedUrl: '',
|
||||
user: {
|
||||
|
@@ -26,7 +26,6 @@
|
||||
export enum AppActionTypes {
|
||||
SetSettingsParameter = 'SET_SETTINGS_PARAMETER',
|
||||
SetInitialState = 'SET_INITIAL_STATE',
|
||||
SetHeaderColor = 'SET_HEADER_COLOR',
|
||||
SetCurrentFolder = 'SET_CURRENT_FOLDER',
|
||||
SetCurrentVersion = 'SET_CURRENT_VERSION',
|
||||
SetCurrentUrl = 'SET_CURRENT_URL',
|
||||
|
@@ -40,12 +40,6 @@ export class SetInitialStateAction implements Action {
|
||||
constructor(public payload: AppState) {}
|
||||
}
|
||||
|
||||
export class SetHeaderColorAction implements Action {
|
||||
readonly type = AppActionTypes.SetHeaderColor;
|
||||
|
||||
constructor(public color: string) {}
|
||||
}
|
||||
|
||||
export class SetCurrentFolderAction implements Action {
|
||||
readonly type = AppActionTypes.SetCurrentFolder;
|
||||
|
||||
|
@@ -28,7 +28,6 @@ import { createSelector } from '@ngrx/store';
|
||||
|
||||
export const selectApp = (state: AppStore) => state.app;
|
||||
|
||||
export const getHeaderColor = createSelector(selectApp, (state) => state.headerColor);
|
||||
export const getAppName = createSelector(selectApp, (state) => state.appName);
|
||||
export const getLogoPath = createSelector(selectApp, (state) => state.logoPath);
|
||||
export const getCustomCssPath = createSelector(selectApp, (state) => state.customCssPath);
|
||||
|
@@ -31,7 +31,6 @@ export const STORE_INITIAL_APP_DATA = new InjectionToken<AppState>('STORE_INITIA
|
||||
|
||||
export interface AppState {
|
||||
appName: string;
|
||||
headerColor: string;
|
||||
logoPath: string;
|
||||
customCssPath: string;
|
||||
webFontPath: string;
|
||||
|
Reference in New Issue
Block a user