mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
feat: move api to follow second entry point structure
This commit is contained in:
committed by
Amedeo Lepore
parent
44bfef764c
commit
492f145665
3
lib/core/api/README.md
Normal file
3
lib/core/api/README.md
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# @alfresco/adf-core/api
|
||||||
|
|
||||||
|
Secondary entry point of `@alfresco/adf-core`. It can be used by importing from `@alfresco/adf-core/api`.
|
@@ -1,6 +1,5 @@
|
|||||||
{
|
{
|
||||||
"$schema": "../../../../../node_modules/ng-packagr/ng-package.schema.json",
|
|
||||||
"lib": {
|
"lib": {
|
||||||
"entryFile": "public-api.ts"
|
"entryFile": "src/index.ts"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,22 +0,0 @@
|
|||||||
/*!
|
|
||||||
* @license
|
|
||||||
* Copyright 2019 Alfresco Software, Ltd.
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
export * from './api-client.factory';
|
|
||||||
export * from './api-clients.service';
|
|
||||||
export * from './clients';
|
|
||||||
export * from './types';
|
|
||||||
export * from './alfresco-api/alfresco-api.http-client';
|
|
@@ -15,5 +15,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export * from './public-api';
|
export * from './lib/api-client.factory';
|
||||||
|
export * from './lib/api-clients.service';
|
||||||
|
export * from './lib/clients';
|
||||||
|
export * from './lib/types';
|
||||||
|
export * from './lib/alfresco-api/alfresco-api.http-client';
|
@@ -15,6 +15,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { HttpClientModule, HttpClientXsrfModule } from '@angular/common/http';
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { ApiClientsService } from '../api-clients.service';
|
import { ApiClientsService } from '../api-clients.service';
|
||||||
import { ActivitiClientModule } from './activiti/activiti-client.module';
|
import { ActivitiClientModule } from './activiti/activiti-client.module';
|
||||||
@@ -22,6 +23,11 @@ import { DiscoveryClientModule } from './discovery/discovery-client.module';
|
|||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
|
HttpClientModule,
|
||||||
|
HttpClientXsrfModule.withOptions({
|
||||||
|
cookieName: 'CSRF-TOKEN',
|
||||||
|
headerName: 'X-CSRF-TOKEN'
|
||||||
|
}),
|
||||||
ActivitiClientModule,
|
ActivitiClientModule,
|
||||||
DiscoveryClientModule
|
DiscoveryClientModule
|
||||||
],
|
],
|
@@ -18,4 +18,3 @@
|
|||||||
export * from './activiti/activiti-client.types';
|
export * from './activiti/activiti-client.types';
|
||||||
export * from './alfresco-js-clients.module';
|
export * from './alfresco-js-clients.module';
|
||||||
export * from './discovery/discovery-client.types';
|
export * from './discovery/discovery-client.types';
|
||||||
|
|
Reference in New Issue
Block a user