Commit eca937e8 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

ts: revient au modèle avec un index principal.

parent 2abc412b
{% extends '@NgModelGenerator/_layout.ts.twig' %} {% extends '@NgModelGenerator/_layout.ts.twig' %}
{% block content %} {% block content %}
export * from 'irstea-ng-model/types'; export * from 'irstea-ng-model';
export * from './resources'; export * from './resources';
export * from './repositories'; export * from './repositories';
export * from './metadata'; export * from './metadata';
{% endblock content %} {% endblock content %}
...@@ -6,15 +6,16 @@ ...@@ -6,15 +6,16 @@
{% autoescape false %} {% autoescape false %}
import { Injectable, Provider } from '@angular/core'; import { Injectable, Provider } from '@angular/core';
import { HttpClient } from '@angular/common/http'; import { HttpClient } from '@angular/common/http';
import { UUID } from 'irstea-ng-model/types';
import { IRIMetadata, ResourceMetadata } from 'irstea-ng-model/metadata';
import { import {
AbstractAPIService,
AbstractResourceCache,
APIMeta, APIMeta,
APIRepositoryRegistry, APIRepositoryRegistry,
AbstractAPIService,
AbstractResourceCache,
IRIMetadata,
LazyMetadataRegistry, LazyMetadataRegistry,
} from 'irstea-ng-model/api'; ResourceMetadata,
UUID,
} from 'irstea-ng-model';
import { import {
{% for repo in repositories %} {% for repo in repositories %}
......
...@@ -7,9 +7,14 @@ ...@@ -7,9 +7,14 @@
import { Observable } from 'rxjs'; import { Observable } from 'rxjs';
import { HttpResponseBase } from '@angular/common/http'; import { HttpResponseBase } from '@angular/common/http';
import { Collection, IRI, RequestOptions, UUID } from 'irstea-ng-model/types'; import {
import { AbstractRepository } from 'irstea-ng-model/api'; AbstractRepository,
import { hasProperty } from 'irstea-ng-model/helpers'; Collection,
IRI,
RequestOptions,
UUID,
hasProperty
} from 'irstea-ng-model';
import { {% for name in repoImports %} import { {% for name in repoImports %}
{{ name }}{% if not loop.last %}, {% endif %} {{ name }}{% if not loop.last %}, {% endif %}
{%- endfor %} {%- endfor %}
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
{% block content %} {% block content %}
{% autoescape false %} {% autoescape false %}
import { DateTime, IRI, UUID } from 'irstea-ng-model/types'; import { DateTime, IRI, UUID } from 'irstea-ng-model';
/********************************************************************************* /*********************************************************************************
* Ressources * Ressources
......
export * from './api';
export * from './cache';
export * from './helpers';
export * from './metadata';
export * from './types'; export * from './types';
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment