mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Reduced the tree to app directory.
This commit is contained in:
100
README.md
100
README.md
@@ -241,102 +241,10 @@ dspace-angular
|
|||||||
│ │ ├── app.module.ts *
|
│ │ ├── app.module.ts *
|
||||||
│ │ ├── app.reducers.ts *
|
│ │ ├── app.reducers.ts *
|
||||||
│ │ ├── core *
|
│ │ ├── core *
|
||||||
│ │ │ ├── cache *
|
|
||||||
│ │ │ │ ├── cache-entry.ts *
|
|
||||||
│ │ │ │ ├── cache.reducers.ts *
|
|
||||||
│ │ │ │ ├── object-cache.actions.ts *
|
|
||||||
│ │ │ │ ├── object-cache.reducer.spec.ts *
|
|
||||||
│ │ │ │ ├── object-cache.reducer.ts *
|
|
||||||
│ │ │ │ ├── object-cache.service.spec.ts *
|
|
||||||
│ │ │ │ ├── object-cache.service.ts *
|
|
||||||
│ │ │ │ ├── request-cache.actions.ts *
|
|
||||||
│ │ │ │ ├── request-cache.reducer.spec.ts *
|
|
||||||
│ │ │ │ ├── request-cache.reducer.ts *
|
|
||||||
│ │ │ │ ├── request-cache.service.spec.ts *
|
|
||||||
│ │ │ │ └── request-cache.service.ts *
|
|
||||||
│ │ │ ├── core.effects.ts *
|
|
||||||
│ │ │ ├── core.module.ts *
|
|
||||||
│ │ │ ├── core.reducers.ts *
|
|
||||||
│ │ │ ├── data-services *
|
|
||||||
│ │ │ │ ├── collection-data.effects.ts *
|
|
||||||
│ │ │ │ ├── collection-data.service.ts *
|
|
||||||
│ │ │ │ ├── data.effects.ts *
|
|
||||||
│ │ │ │ ├── data.service.ts *
|
|
||||||
│ │ │ │ ├── item-data.effects.ts *
|
|
||||||
│ │ │ │ ├── item-data.service.ts *
|
|
||||||
│ │ │ │ ├── object-cache.effects.ts *
|
|
||||||
│ │ │ │ ├── remote-data.ts *
|
|
||||||
│ │ │ │ └── request-cache.effects.ts *
|
|
||||||
│ │ │ ├── dspace-rest-v2 *
|
|
||||||
│ │ │ │ ├── dspace-rest-v2-response.model.ts *
|
|
||||||
│ │ │ │ ├── dspace-rest-v2.schema.json *
|
|
||||||
│ │ │ │ ├── dspace-rest-v2.serializer.spec.ts *
|
|
||||||
│ │ │ │ ├── dspace-rest-v2.serializer.ts *
|
|
||||||
│ │ │ │ ├── dspace-rest-v2.service.ts *
|
|
||||||
│ │ │ │ └── dspace-rest-v2.validator.ts *
|
|
||||||
│ │ │ ├── footer *
|
|
||||||
│ │ │ │ ├── footer.component.css *
|
|
||||||
│ │ │ │ ├── footer.component.css.shim.ts *
|
|
||||||
│ │ │ │ ├── footer.component.html *
|
|
||||||
│ │ │ │ ├── footer.component.scss *
|
|
||||||
│ │ │ │ ├── footer.component.spec.ts *
|
|
||||||
│ │ │ │ └── footer.component.ts *
|
|
||||||
│ │ │ ├── serializer.ts *
|
|
||||||
│ │ │ ├── shared *
|
|
||||||
│ │ │ │ ├── bitstream.model.ts *
|
|
||||||
│ │ │ │ ├── bundle.model.ts *
|
|
||||||
│ │ │ │ ├── collection.model.ts *
|
|
||||||
│ │ │ │ ├── dspace-object.model.ts *
|
|
||||||
│ │ │ │ ├── generic-constructor.ts *
|
|
||||||
│ │ │ │ ├── item.model.ts *
|
|
||||||
│ │ │ │ ├── metadatum.model.ts *
|
|
||||||
│ │ │ │ ├── pagination-options.model.ts *
|
|
||||||
│ │ │ │ ├── param-hash.spec.ts *
|
|
||||||
│ │ │ │ ├── param-hash.ts *
|
|
||||||
│ │ │ │ └── sort-options.model.ts *
|
|
||||||
│ │ │ └── url-combiner *
|
|
||||||
│ │ │ ├── rest-url-combiner.ts *
|
|
||||||
│ │ │ ├── ui-url-combiner.ts *
|
|
||||||
│ │ │ ├── url-combiner.spec.ts *
|
|
||||||
│ │ │ └── url-combiner.ts *
|
|
||||||
│ │ ├── header *
|
│ │ ├── header *
|
||||||
│ │ │ ├── header.actions.ts *
|
|
||||||
│ │ │ ├── header.component.css *
|
|
||||||
│ │ │ ├── header.component.css.shim.ts *
|
|
||||||
│ │ │ ├── header.component.html *
|
|
||||||
│ │ │ ├── header.component.scss *
|
|
||||||
│ │ │ ├── header.component.spec.ts *
|
|
||||||
│ │ │ ├── header.component.ts *
|
|
||||||
│ │ │ ├── header.effects.spec.ts *
|
|
||||||
│ │ │ ├── header.effects.ts *
|
|
||||||
│ │ │ ├── header.reducer.spec.ts *
|
|
||||||
│ │ │ └── header.reducer.ts *
|
|
||||||
│ │ ├── home *
|
│ │ ├── home *
|
||||||
│ │ │ ├── home-routing.module.ts *
|
|
||||||
│ │ │ ├── home.component.css *
|
|
||||||
│ │ │ ├── home.component.css.shim.ts *
|
|
||||||
│ │ │ ├── home.component.html *
|
|
||||||
│ │ │ ├── home.component.scss *
|
|
||||||
│ │ │ ├── home.component.ts *
|
|
||||||
│ │ │ └── home.module.ts *
|
|
||||||
│ │ ├── pagenotfound *
|
│ │ ├── pagenotfound *
|
||||||
│ │ │ ├── pagenotfound.component.css *
|
|
||||||
│ │ │ ├── pagenotfound.component.css.shim.ts *
|
|
||||||
│ │ │ ├── pagenotfound.component.html *
|
|
||||||
│ │ │ ├── pagenotfound.component.scss *
|
|
||||||
│ │ │ └── pagenotfound.component.ts *
|
|
||||||
│ │ ├── shared *
|
│ │ ├── shared *
|
||||||
│ │ │ ├── api.service.ts *
|
|
||||||
│ │ │ ├── empty.util.spec.ts *
|
|
||||||
│ │ │ ├── empty.util.ts *
|
|
||||||
│ │ │ ├── host-window.actions.ts *
|
|
||||||
│ │ │ ├── host-window.reducer.spec.ts *
|
|
||||||
│ │ │ ├── host-window.reducer.ts *
|
|
||||||
│ │ │ ├── ngrx *
|
|
||||||
│ │ │ │ └── type.ts *
|
|
||||||
│ │ │ ├── shared.module.ts *
|
|
||||||
│ │ │ └── testing *
|
|
||||||
│ │ │ └── mock-translate-loader.ts *
|
|
||||||
│ │ └── store.actions.ts *
|
│ │ └── store.actions.ts *
|
||||||
│ ├── backend * Folder containing a mock of the REST API, hosted by the express server
|
│ ├── backend * Folder containing a mock of the REST API, hosted by the express server
|
||||||
│ │ ├── api.ts *
|
│ │ ├── api.ts *
|
||||||
@@ -392,16 +300,16 @@ If the library doesn't have typings available at `@types/`, you can still use it
|
|||||||
|
|
||||||
1. In `src/typings.d.ts`, add the following code:
|
1. In `src/typings.d.ts`, add the following code:
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
declare module 'typeless-package';
|
declare module 'typeless-package';
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Then, in the component or file that uses the library, add the following code:
|
2. Then, in the component or file that uses the library, add the following code:
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
import * as typelessPackage from 'typeless-package';
|
import * as typelessPackage from 'typeless-package';
|
||||||
typelessPackage.method();
|
typelessPackage.method();
|
||||||
```
|
```
|
||||||
|
|
||||||
Done. Note: you might need or find useful to define more typings for the library that you're trying to use.
|
Done. Note: you might need or find useful to define more typings for the library that you're trying to use.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user