deprecate "headerColor" customisation

This commit is contained in:
Denys Vuika
2023-02-11 11:05:35 -05:00
parent ea2278264a
commit ac58730c11
14 changed files with 1 additions and 37 deletions

View File

@@ -39,7 +39,6 @@
}, },
"viewer.maxRetries": 1, "viewer.maxRetries": 1,
"sharedLinkDateTimePickerType": "datetime", "sharedLinkDateTimePickerType": "datetime",
"headerColor": "#ffffff",
"customCssPath": "", "customCssPath": "",
"webFontPath": "", "webFontPath": "",
"pagination": { "pagination": {

View File

@@ -89,16 +89,6 @@ Alfresco コンテンツアプリケーションの左上隅に表示される
} }
``` ```
### ヘッダーの背景色
"headerColor" キーの色コードを指定することにより、ヘッダーの背景色を変更できます:
```json
{
"headerColor": "#ffffff"
}
```
### 制限されたコンテンツ ### 制限されたコンテンツ
"files.excluded" パスにあるルールのリストを設定または拡張することで、ユーザーが特定の種類のファイルやフォルダをアップロードできないように制限することができます。 "files.excluded" パスにあるルールのリストを設定または拡張することで、ユーザーが特定の種類のファイルやフォルダをアップロードできないように制限することができます。

View File

@@ -53,7 +53,6 @@ describe('AppHeaderComponent', () => {
} as any; } as any;
const app = { const app = {
headerColor: 'some-color',
appName: 'name', appName: 'name',
logoPath: 'some/path' logoPath: 'some/path'
} as AppState; } as AppState;
@@ -83,7 +82,6 @@ describe('AppHeaderComponent', () => {
it('should set header color, header text color, name and logo', fakeAsync(() => { it('should set header color, header text color, name and logo', fakeAsync(() => {
component.appName$.subscribe((val) => expect(val).toBe(app.appName)); component.appName$.subscribe((val) => expect(val).toBe(app.appName));
component.logo$.subscribe((val) => expect(val).toBe(app.logoPath)); component.logo$.subscribe((val) => expect(val).toBe(app.logoPath));
component.headerColor$.subscribe((val) => expect(val).toBe(app.headerColor));
})); }));
it('should get header actions', fakeAsync(() => { it('should get header actions', fakeAsync(() => {

View File

@@ -27,7 +27,7 @@ import { Component, ViewEncapsulation, Output, EventEmitter, OnInit, Input, OnDe
import { Store } from '@ngrx/store'; import { Store } from '@ngrx/store';
import { Observable, Subject } from 'rxjs'; import { Observable, Subject } from 'rxjs';
import { ContentActionRef } from '@alfresco/adf-extensions'; 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 { AppExtensionService } from '@alfresco/aca-shared';
import { takeUntil } from 'rxjs/operators'; import { takeUntil } from 'rxjs/operators';
import { AppConfigService, SidenavLayoutComponent } from '@alfresco/adf-core'; import { AppConfigService, SidenavLayoutComponent } from '@alfresco/adf-core';
@@ -55,14 +55,12 @@ export class AppHeaderComponent implements OnInit, OnDestroy {
} }
appName$: Observable<string>; appName$: Observable<string>;
headerColor$: Observable<any>;
logo$: Observable<string>; logo$: Observable<string>;
landingPage: string; landingPage: string;
actions: Array<ContentActionRef> = []; actions: Array<ContentActionRef> = [];
constructor(public store: Store<AppStore>, private appExtensions: AppExtensionService, private appConfigService: AppConfigService) { constructor(public store: Store<AppStore>, private appExtensions: AppExtensionService, private appConfigService: AppConfigService) {
this.headerColor$ = store.select(getHeaderColor);
this.appName$ = store.select(getAppName); this.appName$ = store.select(getAppName);
this.logo$ = store.select(getLogoPath); this.logo$ = store.select(getLogoPath);
this.landingPage = this.appConfigService.get('landingPage', '/personal-files'); this.landingPage = this.appConfigService.get('landingPage', '/personal-files');

View File

@@ -27,7 +27,6 @@ import { AppState, AppStore } from '@alfresco/aca-shared/store';
export const INITIAL_APP_STATE: AppState = { export const INITIAL_APP_STATE: AppState = {
appName: 'Alfresco Content Application', appName: 'Alfresco Content Application',
headerColor: '#ffffff',
logoPath: 'assets/images/alfresco-logo-white.svg', logoPath: 'assets/images/alfresco-logo-white.svg',
customCssPath: '', customCssPath: '',
webFontPath: '', webFontPath: '',

View File

@@ -35,7 +35,6 @@ import {
SetRepositoryInfoAction, SetRepositoryInfoAction,
SetInfoDrawerStateAction, SetInfoDrawerStateAction,
SetInfoDrawerMetadataAspectAction, SetInfoDrawerMetadataAspectAction,
SetHeaderColorAction,
SetCurrentNodeVersionAction, SetCurrentNodeVersionAction,
SetFileUploadingDialogAction, SetFileUploadingDialogAction,
SetInfoDrawerPreviewStateAction, SetInfoDrawerPreviewStateAction,
@@ -51,12 +50,6 @@ export function appReducer(state: AppState = INITIAL_APP_STATE, action: Action):
case AppActionTypes.SetInitialState: case AppActionTypes.SetInitialState:
newState = Object.assign({}, (action as SetInitialStateAction).payload); newState = Object.assign({}, (action as SetInitialStateAction).payload);
break; break;
case AppActionTypes.SetHeaderColor:
newState = {
...state,
headerColor: (action as SetHeaderColorAction).color
};
break;
case NodeActionTypes.SetSelection: case NodeActionTypes.SetSelection:
newState = updateSelectedNodes(state, action as SetSelectedNodesAction); newState = updateSelectedNodes(state, action as SetSelectedNodesAction);
break; break;

View File

@@ -61,7 +61,6 @@ class DocumentBasePageServiceMock extends DocumentBasePageService {
export const INITIAL_APP_STATE: AppState = { export const INITIAL_APP_STATE: AppState = {
appName: 'Alfresco Content Application', appName: 'Alfresco Content Application',
headerColor: '#ffffff',
logoPath: 'assets/images/alfresco-logo-white.svg', logoPath: 'assets/images/alfresco-logo-white.svg',
customCssPath: '', customCssPath: '',
webFontPath: '', webFontPath: '',

View File

@@ -41,7 +41,6 @@ import { EffectsModule } from '@ngrx/effects';
export const INITIAL_APP_STATE: AppState = { export const INITIAL_APP_STATE: AppState = {
appName: 'Alfresco Content Application', appName: 'Alfresco Content Application',
headerColor: '#ffffff',
logoPath: 'assets/images/alfresco-logo-white.svg', logoPath: 'assets/images/alfresco-logo-white.svg',
customCssPath: '', customCssPath: '',
webFontPath: '', webFontPath: '',

View File

@@ -224,7 +224,6 @@ export class AppService implements OnDestroy {
const state: AppState = { const state: AppState = {
...this.initialAppState, ...this.initialAppState,
appName: this.config.get<string>('application.name'), appName: this.config.get<string>('application.name'),
headerColor: this.config.get<string>('headerColor'),
logoPath: this.config.get<string>('application.logo'), logoPath: this.config.get<string>('application.logo'),
customCssPath: this.config.get<string>('customCssPath'), customCssPath: this.config.get<string>('customCssPath'),
webFontPath: this.config.get<string>('webFontPath'), webFontPath: this.config.get<string>('webFontPath'),

View File

@@ -43,7 +43,6 @@ import { CommonModule } from '@angular/common';
export const initialState = { export const initialState = {
app: { app: {
appName: 'Alfresco Content Application', appName: 'Alfresco Content Application',
headerColor: '#ffffff',
logoPath: 'assets/images/alfresco-logo-white.svg', logoPath: 'assets/images/alfresco-logo-white.svg',
sharedUrl: '', sharedUrl: '',
user: { user: {

View File

@@ -26,7 +26,6 @@
export enum AppActionTypes { export enum AppActionTypes {
SetSettingsParameter = 'SET_SETTINGS_PARAMETER', SetSettingsParameter = 'SET_SETTINGS_PARAMETER',
SetInitialState = 'SET_INITIAL_STATE', SetInitialState = 'SET_INITIAL_STATE',
SetHeaderColor = 'SET_HEADER_COLOR',
SetCurrentFolder = 'SET_CURRENT_FOLDER', SetCurrentFolder = 'SET_CURRENT_FOLDER',
SetCurrentVersion = 'SET_CURRENT_VERSION', SetCurrentVersion = 'SET_CURRENT_VERSION',
SetCurrentUrl = 'SET_CURRENT_URL', SetCurrentUrl = 'SET_CURRENT_URL',

View File

@@ -40,12 +40,6 @@ export class SetInitialStateAction implements Action {
constructor(public payload: AppState) {} constructor(public payload: AppState) {}
} }
export class SetHeaderColorAction implements Action {
readonly type = AppActionTypes.SetHeaderColor;
constructor(public color: string) {}
}
export class SetCurrentFolderAction implements Action { export class SetCurrentFolderAction implements Action {
readonly type = AppActionTypes.SetCurrentFolder; readonly type = AppActionTypes.SetCurrentFolder;

View File

@@ -28,7 +28,6 @@ import { createSelector } from '@ngrx/store';
export const selectApp = (state: AppStore) => state.app; 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 getAppName = createSelector(selectApp, (state) => state.appName);
export const getLogoPath = createSelector(selectApp, (state) => state.logoPath); export const getLogoPath = createSelector(selectApp, (state) => state.logoPath);
export const getCustomCssPath = createSelector(selectApp, (state) => state.customCssPath); export const getCustomCssPath = createSelector(selectApp, (state) => state.customCssPath);

View File

@@ -31,7 +31,6 @@ export const STORE_INITIAL_APP_DATA = new InjectionToken<AppState>('STORE_INITIA
export interface AppState { export interface AppState {
appName: string; appName: string;
headerColor: string;
logoPath: string; logoPath: string;
customCssPath: string; customCssPath: string;
webFontPath: string; webFontPath: string;