geonetwork-ui 2.7.0-dev.11d7e81c0 → 2.7.0-dev.1296cd46b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/libs/api/repository/src/lib/gn4/gn4.provider.mjs +7 -3
- package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +20 -6
- package/esm2022/libs/common/domain/src/lib/platform.service.interface.mjs +1 -1
- package/esm2022/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.mjs +24 -17
- package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +33 -8
- package/esm2022/translations/de.json +1 -0
- package/esm2022/translations/en.json +1 -0
- package/esm2022/translations/es.json +1 -0
- package/esm2022/translations/fr.json +1 -0
- package/esm2022/translations/it.json +1 -0
- package/esm2022/translations/nl.json +1 -0
- package/esm2022/translations/pt.json +1 -0
- package/esm2022/translations/sk.json +1 -0
- package/fesm2022/geonetwork-ui.mjs +88 -30
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/api/repository/src/lib/gn4/gn4.provider.d.ts +5 -1
- package/libs/api/repository/src/lib/gn4/gn4.provider.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +6 -2
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
- package/libs/common/domain/src/lib/platform.service.interface.d.ts +1 -0
- package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
- package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts +1 -0
- package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +1 -1
- package/libs/ui/elements/src/lib/external-link-card/external-link-card.component.d.ts +1 -1
- package/libs/util/shared/src/lib/links/link-utils.d.ts +25 -7
- package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/libs/api/repository/src/lib/gn4/gn4.provider.ts +13 -2
- package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +17 -6
- package/src/libs/common/domain/src/lib/platform.service.interface.ts +1 -0
- package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts +23 -16
- package/src/libs/util/shared/src/lib/links/link-utils.ts +32 -7
- package/translations/de.json +1 -0
- package/translations/en.json +1 -0
- package/translations/es.json +1 -0
- package/translations/fr.json +1 -0
- package/translations/it.json +1 -0
- package/translations/nl.json +1 -0
- package/translations/pt.json +1 -0
- package/translations/sk.json +1 -0
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import { Provider } from '@angular/core';
|
|
2
|
-
|
|
2
|
+
interface Gn4ProvideOptions {
|
|
3
|
+
disableAuth?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare function provideGn4(provideOptions?: Gn4ProvideOptions): Provider[];
|
|
6
|
+
export {};
|
|
3
7
|
//# sourceMappingURL=gn4.provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gn4.provider.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/api/repository/src/lib/gn4/gn4.provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"gn4.provider.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/api/repository/src/lib/gn4/gn4.provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAsBxC,UAAU,iBAAiB;IACzB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,wBAAgB,UAAU,CAAC,cAAc,CAAC,EAAE,iBAAiB,GAAG,QAAQ,EAAE,CA6BzE"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
1
2
|
import { MeApiService, RecordsApiService, RegistriesApiService, ToolsApiService, UserfeedbackApiService, UsersApiService } from '../../../../../../../libs/data-access/gn4/src';
|
|
2
3
|
import { PlatformServiceInterface, UploadEvent } from '../../../../../../../libs/common/domain/src/lib/platform.service.interface';
|
|
3
4
|
import { UserModel } from '../../../../../../../libs/common/domain/src/lib/model/user/user.model';
|
|
@@ -9,6 +10,7 @@ import { Observable } from 'rxjs';
|
|
|
9
10
|
import { TranslateService } from '@ngx-translate/core';
|
|
10
11
|
import { Gn4SettingsService } from '../settings/gn4-settings.service';
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
13
|
+
export declare const DISABLE_AUTH: InjectionToken<boolean>;
|
|
12
14
|
export declare class Gn4PlatformService implements PlatformServiceInterface {
|
|
13
15
|
private meApi;
|
|
14
16
|
private usersApi;
|
|
@@ -20,6 +22,7 @@ export declare class Gn4PlatformService implements PlatformServiceInterface {
|
|
|
20
22
|
private httpClient;
|
|
21
23
|
private recordsApiService;
|
|
22
24
|
private settingsService;
|
|
25
|
+
private disableAuth;
|
|
23
26
|
private readonly type;
|
|
24
27
|
private readonly me$;
|
|
25
28
|
private readonly users$;
|
|
@@ -32,7 +35,7 @@ export declare class Gn4PlatformService implements PlatformServiceInterface {
|
|
|
32
35
|
*/
|
|
33
36
|
private keywordsByThesauri;
|
|
34
37
|
private get lang3();
|
|
35
|
-
constructor(meApi: MeApiService, usersApi: UsersApiService, mapper: Gn4PlatformMapper, toolsApiService: ToolsApiService, registriesApiService: RegistriesApiService, translateService: TranslateService, userfeedbackApiService: UserfeedbackApiService, httpClient: HttpClient, recordsApiService: RecordsApiService, settingsService: Gn4SettingsService);
|
|
38
|
+
constructor(meApi: MeApiService, usersApi: UsersApiService, mapper: Gn4PlatformMapper, toolsApiService: ToolsApiService, registriesApiService: RegistriesApiService, translateService: TranslateService, userfeedbackApiService: UserfeedbackApiService, httpClient: HttpClient, recordsApiService: RecordsApiService, settingsService: Gn4SettingsService, disableAuth: boolean);
|
|
36
39
|
getFeedbacksAllowed(): Observable<boolean>;
|
|
37
40
|
getAllowEditHarvestedMd(): Observable<boolean>;
|
|
38
41
|
getType(): string;
|
|
@@ -58,7 +61,8 @@ export declare class Gn4PlatformService implements PlatformServiceInterface {
|
|
|
58
61
|
getFileContent(url: URL | string): Observable<any>;
|
|
59
62
|
decodeBase64(base64: any): string;
|
|
60
63
|
attachFileToRecord(recordUuid: string, file: File, removeDuplicate?: boolean): Observable<UploadEvent>;
|
|
61
|
-
|
|
64
|
+
supportsAuthentication(): boolean;
|
|
65
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Gn4PlatformService, [null, null, null, null, null, null, null, null, null, null, { optional: true; }]>;
|
|
62
66
|
static ɵprov: i0.ɵɵInjectableDeclaration<Gn4PlatformService>;
|
|
63
67
|
}
|
|
64
68
|
//# sourceMappingURL=gn4-platform.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gn4-platform.service.d.ts","sourceRoot":"","sources":["../../../../../../../src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"gn4-platform.service.d.ts","sourceRoot":"","sources":["../../../../../../../src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,cAAc,EAAY,MAAM,eAAe,CAAA;AAS5E,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,eAAe,EAChB,MAAM,+CAA+C,CAAA;AACtD,OAAO,EACL,wBAAwB,EACxB,WAAW,EACZ,MAAM,4EAA4E,CAAA;AACnF,OAAO,EAAE,SAAS,EAAE,MAAM,uEAAuE,CAAA;AACjG,OAAO,EACL,aAAa,EACb,OAAO,EACP,YAAY,EACZ,YAAY,EACb,MAAM,8DAA8D,CAAA;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAEzD,OAAO,EAAE,UAAU,EAAiB,MAAM,sBAAsB,CAAA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CAAC;IAsB1B,sBAAsB;yCAjYX,kBAAkB;6CAAlB,kBAAkB;CAoY9B"}
|
|
@@ -18,6 +18,7 @@ export type UploadEvent = {
|
|
|
18
18
|
export declare abstract class PlatformServiceInterface {
|
|
19
19
|
abstract getType(): string;
|
|
20
20
|
abstract getApiVersion(): Observable<string>;
|
|
21
|
+
abstract supportsAuthentication(): boolean;
|
|
21
22
|
abstract getMe(): Observable<UserModel>;
|
|
22
23
|
abstract isAnonymous(): Observable<boolean>;
|
|
23
24
|
abstract getUsers(): Observable<UserModel[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform.service.interface.d.ts","sourceRoot":"","sources":["../../../../../src/libs/common/domain/src/lib/platform.service.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAA;AACtC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAA;AACrE,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAG/C,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,GAAG,CAAA;IACR,QAAQ,EAAE,MAAM,CAAA;CACjB;AACD,MAAM,MAAM,WAAW,GACnB;IACE,IAAI,EAAE,UAAU,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;CACjB,GACD;IACE,IAAI,EAAE,SAAS,CAAA;IACf,UAAU,EAAE,gBAAgB,CAAA;IAC5B,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAEL,8BAAsB,wBAAwB;IAC5C,QAAQ,CAAC,OAAO,IAAI,MAAM;IAC1B,QAAQ,CAAC,aAAa,IAAI,UAAU,CAAC,MAAM,CAAC;IAE5C,QAAQ,CAAC,KAAK,IAAI,UAAU,CAAC,SAAS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,CAAC;IAClD,QAAQ,CAAC,mBAAmB,IAAI,UAAU,CAAC,OAAO,CAAC;CACpD"}
|
|
1
|
+
{"version":3,"file":"platform.service.interface.d.ts","sourceRoot":"","sources":["../../../../../src/libs/common/domain/src/lib/platform.service.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAA;AACtC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAA;AACrE,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAG/C,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,GAAG,CAAA;IACR,QAAQ,EAAE,MAAM,CAAA;CACjB;AACD,MAAM,MAAM,WAAW,GACnB;IACE,IAAI,EAAE,UAAU,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;CACjB,GACD;IACE,IAAI,EAAE,SAAS,CAAA;IACf,UAAU,EAAE,gBAAgB,CAAA;IAC5B,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAEL,8BAAsB,wBAAwB;IAC5C,QAAQ,CAAC,OAAO,IAAI,MAAM;IAC1B,QAAQ,CAAC,aAAa,IAAI,UAAU,CAAC,MAAM,CAAC;IAE5C,QAAQ,CAAC,sBAAsB,IAAI,OAAO;IAC1C,QAAQ,CAAC,KAAK,IAAI,UAAU,CAAC,SAAS,CAAC;IACvC,QAAQ,CAAC,WAAW,IAAI,UAAU,CAAC,OAAO,CAAC;IAC3C,QAAQ,CAAC,QAAQ,IAAI,UAAU,CAAC,SAAS,EAAE,CAAC;IAC5C,QAAQ,CAAC,sBAAsB,CAC7B,YAAY,EAAE,YAAY,GACzB,UAAU,CAAC,SAAS,EAAE,CAAC;IAC1B,QAAQ,CAAC,gBAAgB,IAAI,UAAU,CAAC,YAAY,EAAE,CAAC;IAEvD,QAAQ,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAEtD,QAAQ,CAAC,cAAc,CACrB,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,WAAW,EAAE,GAC1B,UAAU,CAAC,OAAO,EAAE,CAAC;IACxB,QAAQ,CAAC,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAC,OAAO,EAAE,CAAC;IAC7D,QAAQ,CAAC,yBAAyB,CAChC,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,MAAM,GAClB,UAAU,CAAC,OAAO,EAAE,CAAC;IAExB,QAAQ,CAAC,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU,CAAC,YAAY,EAAE,CAAC;IACzE,QAAQ,CAAC,iBAAiB,CAAC,UAAU,EAAE,YAAY,GAAG,UAAU,CAAC,IAAI,CAAC;IAEtE,QAAQ,CAAC,oBAAoB,CAC3B,UAAU,EAAE,MAAM,GACjB,UAAU,CAAC,gBAAgB,EAAE,CAAC;IACjC,QAAQ,CAAC,sBAAsB,CAAC,UAAU,EAAE,aAAa,GAAG,UAAU,CAAC,IAAI,CAAC;IAC5E,QAAQ,CAAC,kBAAkB,CACzB,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,IAAI,EACV,eAAe,CAAC,EAAE,OAAO,GACxB,UAAU,CAAC,WAAW,CAAC;IAC1B,QAAQ,CAAC,cAAc,CAAC,GAAG,EAAE,GAAG,GAAG,UAAU,CAAC,GAAG,CAAC;IAClD,QAAQ,CAAC,mBAAmB,IAAI,UAAU,CAAC,OAAO,CAAC;CACpD"}
|
|
@@ -16,6 +16,7 @@ export declare class FavoriteStarComponent implements AfterViewInit, OnDestroy {
|
|
|
16
16
|
set record(value: Partial<CatalogRecord>);
|
|
17
17
|
get record(): Partial<CatalogRecord>;
|
|
18
18
|
isFavorite$: Observable<boolean>;
|
|
19
|
+
supportsAuthentication: boolean;
|
|
19
20
|
isAnonymous$: Observable<boolean>;
|
|
20
21
|
record_: Partial<CatalogRecord>;
|
|
21
22
|
favoriteCount: number | null;
|
package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"favorite-star.component.d.ts","sourceRoot":"","sources":["../../../../../../../src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAEb,iBAAiB,EAEjB,UAAU,EAEV,SAAS,EAEV,MAAM,eAAe,CAAA;AAStB,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAEtD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,8DAA8D,CAAA;AAC5F,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAA;AAC5F,OAAO,EAAE,wBAAwB,EAAE,MAAM,4EAA4E,CAAA;;AAGrH,qBAQa,qBAAsB,YAAW,aAAa,EAAE,SAAS;
|
|
1
|
+
{"version":3,"file":"favorite-star.component.d.ts","sourceRoot":"","sources":["../../../../../../../src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAEb,iBAAiB,EAEjB,UAAU,EAEV,SAAS,EAEV,MAAM,eAAe,CAAA;AAStB,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAEtD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,8DAA8D,CAAA;AAC5F,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAA;AAC5F,OAAO,EAAE,wBAAwB,EAAE,MAAM,4EAA4E,CAAA;;AAGrH,qBAQa,qBAAsB,YAAW,aAAa,EAAE,SAAS;IAwClE,OAAO,CAAC,gBAAgB;IACxB,OAAO,CAAC,eAAe;IACvB,OAAO,CAAC,cAAc;IACtB,OAAO,CAAC,WAAW;IACnB,OAAO,CAAC,gBAAgB;IA3CjB,YAAY,CAAC,UAAQ;IACrB,YAAY,CAAC,UAAO;IAC7B,IAAa,MAAM,CAAC,KAAK,wBAAA,EAMxB;IACD,IAAI,MAAM,2BAET;IACD,WAAW,sBAEV;IACD,sBAAsB,UAAgD;IACtE,YAAY,sBAAqC;IACjD,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC,CAAA;IAC/B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,OAAO,UAAQ;IACf,QAAQ,SAA4B;IACpC,aAAa,EAAE,UAAU,CAAC,MAAM,CAAC,CAOhC;IAED,aAAa,EAAE,UAAU,CAAA;IACzB,YAAY,EAAE,YAAY,CAAA;IAC1B,iBAAiB,EAAE,YAAY,CAAA;IAE/B,IAAI,gBAAgB,YAEnB;gBAGS,gBAAgB,EAAE,gBAAgB,EAClC,eAAe,EAAE,wBAAwB,EACzC,cAAc,EAAE,iBAAiB,EACjC,WAAW,EAAE,WAAW,EACxB,gBAAgB,EAAE,gBAAgB;IAG5C,eAAe,IAAI,IAAI;IAsCvB,WAAW,IAAI,IAAI;IASnB,cAAc,CAAC,UAAU,KAAA;yCA9Fd,qBAAqB;2CAArB,qBAAqB;CAgHjC"}
|
|
@@ -22,7 +22,7 @@ export declare class DownloadsListComponent {
|
|
|
22
22
|
isFilterActive(filter: FilterFormat): boolean;
|
|
23
23
|
getFilterFormatTitle(format: FilterFormat): any;
|
|
24
24
|
isLinkOfFormat(link: DatasetDownloadDistribution, format: FilterFormat): boolean;
|
|
25
|
-
getLinkFormat(link: DatasetDownloadDistribution): "html" | "svg" | "gml" | "json" | "pdf" | "csv" | "excel" | "geojson" | "shp" | "kml" | "gpkg" | "zip" | "jpg" | "dxf" | "fgb" | "jsonfg";
|
|
25
|
+
getLinkFormat(link: DatasetDownloadDistribution): "html" | "svg" | "gml" | "json" | "pdf" | "csv" | "excel" | "geojson" | "shp" | "kml" | "gpkg" | "zip" | "jpg" | "png" | "tiff" | "dxf" | "fgb" | "jsonfg" | "webp";
|
|
26
26
|
getLinkColor(link: DatasetDownloadDistribution): string;
|
|
27
27
|
isFromApi(link: DatasetDownloadDistribution): boolean;
|
|
28
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<DownloadsListComponent, never>;
|
|
@@ -9,7 +9,7 @@ export declare class ExternalLinkCardComponent {
|
|
|
9
9
|
get size(): CardSize;
|
|
10
10
|
cardClass: string;
|
|
11
11
|
get title(): string;
|
|
12
|
-
getLinkFormat(link: any): "html" | "svg" | "gml" | "json" | "pdf" | "csv" | "excel" | "geojson" | "shp" | "kml" | "gpkg" | "zip" | "jpg" | "dxf" | "fgb" | "jsonfg";
|
|
12
|
+
getLinkFormat(link: any): "html" | "svg" | "gml" | "json" | "pdf" | "csv" | "excel" | "geojson" | "shp" | "kml" | "gpkg" | "zip" | "jpg" | "png" | "tiff" | "dxf" | "fgb" | "jsonfg" | "webp";
|
|
13
13
|
getLinkColor(link: any): string;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<ExternalLinkCardComponent, never>;
|
|
15
15
|
static ɵcmp: i0.ɵɵComponentDeclaration<ExternalLinkCardComponent, "gn-ui-external-link-card", never, { "link": { "alias": "link"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, true, never>;
|
|
@@ -49,10 +49,10 @@ export declare const FORMATS: {
|
|
|
49
49
|
readonly mimeTypes: readonly ["application/geopackage+sqlite3"];
|
|
50
50
|
};
|
|
51
51
|
readonly zip: {
|
|
52
|
-
readonly extensions: readonly ["zip", "tar.gz"];
|
|
52
|
+
readonly extensions: readonly ["zip", "tar.gz", "gz", "7z", "7zip"];
|
|
53
53
|
readonly priority: 8;
|
|
54
54
|
readonly color: "#B0CB52";
|
|
55
|
-
readonly mimeTypes: readonly ["application/zip", "application/x-zip"];
|
|
55
|
+
readonly mimeTypes: readonly ["application/zip", "application/x-zip", "application/x-compressed", "application/x-7z-compressed", "application/gzip", "application/x-gzip"];
|
|
56
56
|
};
|
|
57
57
|
readonly pdf: {
|
|
58
58
|
readonly extensions: readonly ["pdf"];
|
|
@@ -66,36 +66,54 @@ export declare const FORMATS: {
|
|
|
66
66
|
readonly color: "#C4A98F";
|
|
67
67
|
readonly mimeTypes: readonly ["image/jpg"];
|
|
68
68
|
};
|
|
69
|
+
readonly png: {
|
|
70
|
+
readonly extensions: readonly ["png"];
|
|
71
|
+
readonly priority: 10;
|
|
72
|
+
readonly color: "#8B5A3C";
|
|
73
|
+
readonly mimeTypes: readonly ["image/png"];
|
|
74
|
+
};
|
|
75
|
+
readonly tiff: {
|
|
76
|
+
readonly extensions: readonly ["tiff", "tif", "geotiff", "geotif"];
|
|
77
|
+
readonly priority: 11;
|
|
78
|
+
readonly color: "#6B4423";
|
|
79
|
+
readonly mimeTypes: readonly ["image/tiff"];
|
|
80
|
+
};
|
|
69
81
|
readonly svg: {
|
|
70
82
|
readonly extensions: readonly ["svg"];
|
|
71
|
-
readonly priority:
|
|
83
|
+
readonly priority: 12;
|
|
72
84
|
readonly color: "#EB6D82";
|
|
73
85
|
readonly mimeTypes: readonly ["image/svg+xml"];
|
|
74
86
|
};
|
|
75
87
|
readonly dxf: {
|
|
76
88
|
readonly extensions: readonly ["dxf"];
|
|
77
|
-
readonly priority:
|
|
89
|
+
readonly priority: 13;
|
|
78
90
|
readonly color: "#DCCD00";
|
|
79
91
|
readonly mimeTypes: readonly ["application/x-dxf", "image/x-dxf"];
|
|
80
92
|
};
|
|
81
93
|
readonly html: {
|
|
82
94
|
readonly extensions: readonly ["html", "htm"];
|
|
83
|
-
readonly priority:
|
|
95
|
+
readonly priority: 14;
|
|
84
96
|
readonly color: "#C0C9B6";
|
|
85
97
|
readonly mimeTypes: readonly ["text/html"];
|
|
86
98
|
};
|
|
87
99
|
readonly fgb: {
|
|
88
100
|
readonly extensions: readonly ["fgb", "flatgeobuf"];
|
|
89
|
-
readonly priority:
|
|
101
|
+
readonly priority: 15;
|
|
90
102
|
readonly color: "#A8111C";
|
|
91
103
|
readonly mimeTypes: readonly ["application/flatgeobuf"];
|
|
92
104
|
};
|
|
93
105
|
readonly jsonfg: {
|
|
94
106
|
readonly extensions: readonly ["jsonfg", "jsonfgc"];
|
|
95
|
-
readonly priority:
|
|
107
|
+
readonly priority: 16;
|
|
96
108
|
readonly color: "#009EE0";
|
|
97
109
|
readonly mimeTypes: readonly ["application/vnd.ogc.fg+json", "application/vnd.ogc.fg+json;compatibility=geojson"];
|
|
98
110
|
};
|
|
111
|
+
readonly webp: {
|
|
112
|
+
readonly extensions: readonly ["webp"];
|
|
113
|
+
readonly priority: 17;
|
|
114
|
+
readonly color: "#5A9E6F";
|
|
115
|
+
readonly mimeTypes: readonly ["image/webp"];
|
|
116
|
+
};
|
|
99
117
|
};
|
|
100
118
|
export type FileFormat = keyof typeof FORMATS;
|
|
101
119
|
export declare function getFormatPriority(linkFormat: FileFormat): number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link-utils.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/util/shared/src/lib/links/link-utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,eAAe,EAChB,MAAM,2DAA2D,CAAA;AAUlE,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"link-utils.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/util/shared/src/lib/links/link-utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,eAAe,EAChB,MAAM,2DAA2D,CAAA;AAUlE,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyIV,CAAA;AAEV,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,OAAO,CAAA;AAE7C,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAUhE;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,qBAAqB,GAAG,qBAAqB,GAClD,MAAM,CAER;AAED,wBAAgB,8BAA8B,CAC5C,aAAa,EAAE,MAAM,GACpB,UAAU,GAAG,IAAI,CAgBnB;AAED,wBAAgB,aAAa,CAC3B,IAAI,EAAE,qBAAqB,GAAG,qBAAqB,GAClD,UAAU,CAcZ;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,qBAAqB,GAAG,qBAAqB,EACnD,KAAK,EAAE,MAAM,GACZ,OAAO,CAST;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,CAO7D;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,qBAAqB,GAAG,qBAAqB,EACnD,MAAM,EAAE,UAAU,GACjB,OAAO,CAQT;AAED,wBAAgB,aAAa,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAQ5D;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,qBAAqB,GAAG,MAAM,CAO7D;AAED,wBAAgB,YAAY,CAC1B,IAAI,EAAE,qBAAqB,GAAG,qBAAqB,GAClD,MAAM,CA6BR;AAED,wBAAsB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,eAAe,EAAE,eAAe;;;;;;;8JAmC5E;AAED,wBAAgB,eAAe,CAAC,SAAS,KAAA,SAUxC;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI,CAEtE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { Provider } from '@angular/core'
|
|
2
2
|
import { PlatformServiceInterface } from '../../../../../../libs/common/domain/src/lib/platform.service.interface'
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
DISABLE_AUTH,
|
|
5
|
+
Gn4PlatformService,
|
|
6
|
+
} from './platform/gn4-platform.service'
|
|
4
7
|
import { Gn4PlatformMapper } from './platform/gn4-platform.mapper'
|
|
5
8
|
import { RecordsRepositoryInterface } from '../../../../../../libs/common/domain/src/lib/repository/records-repository.interface'
|
|
6
9
|
import { Gn4Repository } from './gn4-repository'
|
|
@@ -17,8 +20,16 @@ import {
|
|
|
17
20
|
} from '../../../../../../libs/data-access/gn4/src'
|
|
18
21
|
import { TranslateService } from '@ngx-translate/core'
|
|
19
22
|
|
|
20
|
-
|
|
23
|
+
interface Gn4ProvideOptions {
|
|
24
|
+
disableAuth?: boolean
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function provideGn4(provideOptions?: Gn4ProvideOptions): Provider[] {
|
|
21
28
|
return [
|
|
29
|
+
{
|
|
30
|
+
provide: DISABLE_AUTH,
|
|
31
|
+
useValue: provideOptions?.disableAuth,
|
|
32
|
+
},
|
|
22
33
|
{
|
|
23
34
|
provide: PlatformServiceInterface,
|
|
24
35
|
useClass: Gn4PlatformService,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core'
|
|
1
|
+
import { Inject, Injectable, InjectionToken, Optional } from '@angular/core'
|
|
2
2
|
import {
|
|
3
3
|
catchError,
|
|
4
4
|
filter,
|
|
@@ -49,6 +49,10 @@ import { Gn4SettingsService } from '../settings/gn4-settings.service'
|
|
|
49
49
|
|
|
50
50
|
const minApiVersion = '4.2.2'
|
|
51
51
|
|
|
52
|
+
export const DISABLE_AUTH = new InjectionToken<boolean>('gnDisableAuth', {
|
|
53
|
+
factory: () => false,
|
|
54
|
+
})
|
|
55
|
+
|
|
52
56
|
@Injectable()
|
|
53
57
|
export class Gn4PlatformService implements PlatformServiceInterface {
|
|
54
58
|
private readonly type = 'GeoNetwork'
|
|
@@ -86,12 +90,15 @@ export class Gn4PlatformService implements PlatformServiceInterface {
|
|
|
86
90
|
private userfeedbackApiService: UserfeedbackApiService,
|
|
87
91
|
private httpClient: HttpClient,
|
|
88
92
|
private recordsApiService: RecordsApiService,
|
|
89
|
-
private settingsService: Gn4SettingsService
|
|
93
|
+
private settingsService: Gn4SettingsService,
|
|
94
|
+
@Inject(DISABLE_AUTH) @Optional() private disableAuth: boolean
|
|
90
95
|
) {
|
|
91
|
-
this.me$ = this.
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
96
|
+
this.me$ = this.disableAuth
|
|
97
|
+
? of(null)
|
|
98
|
+
: this.meApi.getMe().pipe(
|
|
99
|
+
switchMap((apiUser) => this.mapper.userFromMeApi(apiUser)),
|
|
100
|
+
shareReplay({ bufferSize: 1, refCount: true })
|
|
101
|
+
)
|
|
95
102
|
|
|
96
103
|
this.isUserAnonymous$ = this.me$.pipe(
|
|
97
104
|
map((user) => !user || !('id' in user))
|
|
@@ -431,4 +438,8 @@ export class Gn4PlatformService implements PlatformServiceInterface {
|
|
|
431
438
|
})
|
|
432
439
|
)
|
|
433
440
|
}
|
|
441
|
+
|
|
442
|
+
supportsAuthentication() {
|
|
443
|
+
return !this.disableAuth
|
|
444
|
+
}
|
|
434
445
|
}
|
|
@@ -24,6 +24,7 @@ export abstract class PlatformServiceInterface {
|
|
|
24
24
|
abstract getType(): string
|
|
25
25
|
abstract getApiVersion(): Observable<string>
|
|
26
26
|
|
|
27
|
+
abstract supportsAuthentication(): boolean
|
|
27
28
|
abstract getMe(): Observable<UserModel>
|
|
28
29
|
abstract isAnonymous(): Observable<boolean>
|
|
29
30
|
abstract getUsers(): Observable<UserModel[]>
|
|
@@ -48,6 +48,7 @@ export class FavoriteStarComponent implements AfterViewInit, OnDestroy {
|
|
|
48
48
|
isFavorite$ = this.favoritesService.myFavoritesUuid$.pipe(
|
|
49
49
|
map((favorites) => favorites.indexOf(this.record.uniqueIdentifier) > -1)
|
|
50
50
|
)
|
|
51
|
+
supportsAuthentication = this.platformService.supportsAuthentication()
|
|
51
52
|
isAnonymous$ = this.platformService.isAnonymous()
|
|
52
53
|
record_: Partial<CatalogRecord>
|
|
53
54
|
favoriteCount: number | null
|
|
@@ -79,20 +80,22 @@ export class FavoriteStarComponent implements AfterViewInit, OnDestroy {
|
|
|
79
80
|
) {}
|
|
80
81
|
|
|
81
82
|
ngAfterViewInit(): void {
|
|
82
|
-
this.
|
|
83
|
-
.
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
83
|
+
if (this.supportsAuthentication) {
|
|
84
|
+
this.subscription = this.isAnonymous$
|
|
85
|
+
.pipe(withLatestFrom(this.loginMessage$))
|
|
86
|
+
.subscribe(([anonymous, loginMessage]) => {
|
|
87
|
+
if (anonymous) {
|
|
88
|
+
tippy(this.starToggleRef.nativeElement, {
|
|
89
|
+
appendTo: () => document.body,
|
|
90
|
+
content: loginMessage,
|
|
91
|
+
allowHTML: true,
|
|
92
|
+
interactive: true,
|
|
93
|
+
zIndex: 60,
|
|
94
|
+
maxWidth: 250,
|
|
95
|
+
})
|
|
96
|
+
}
|
|
97
|
+
})
|
|
98
|
+
}
|
|
96
99
|
this.countSubscription = this.favoritesService.myFavoritesUuid$
|
|
97
100
|
.pipe(pairwise())
|
|
98
101
|
.subscribe(([oldFavs, newFavs]) => {
|
|
@@ -115,8 +118,12 @@ export class FavoriteStarComponent implements AfterViewInit, OnDestroy {
|
|
|
115
118
|
}
|
|
116
119
|
|
|
117
120
|
ngOnDestroy(): void {
|
|
118
|
-
this.subscription
|
|
119
|
-
|
|
121
|
+
if (this.subscription) {
|
|
122
|
+
this.subscription.unsubscribe()
|
|
123
|
+
}
|
|
124
|
+
if (this.countSubscription) {
|
|
125
|
+
this.countSubscription.unsubscribe()
|
|
126
|
+
}
|
|
120
127
|
}
|
|
121
128
|
|
|
122
129
|
toggleFavorite(isFavorite) {
|
|
@@ -75,10 +75,17 @@ export const FORMATS = {
|
|
|
75
75
|
mimeTypes: ['application/geopackage+sqlite3'],
|
|
76
76
|
},
|
|
77
77
|
zip: {
|
|
78
|
-
extensions: ['zip', 'tar.gz'],
|
|
78
|
+
extensions: ['zip', 'tar.gz', 'gz', '7z', '7zip'],
|
|
79
79
|
priority: 8,
|
|
80
80
|
color: '#B0CB52',
|
|
81
|
-
mimeTypes: [
|
|
81
|
+
mimeTypes: [
|
|
82
|
+
'application/zip',
|
|
83
|
+
'application/x-zip',
|
|
84
|
+
'application/x-compressed',
|
|
85
|
+
'application/x-7z-compressed',
|
|
86
|
+
'application/gzip',
|
|
87
|
+
'application/x-gzip',
|
|
88
|
+
],
|
|
82
89
|
},
|
|
83
90
|
pdf: {
|
|
84
91
|
extensions: ['pdf'],
|
|
@@ -92,39 +99,57 @@ export const FORMATS = {
|
|
|
92
99
|
color: '#C4A98F',
|
|
93
100
|
mimeTypes: ['image/jpg'],
|
|
94
101
|
},
|
|
102
|
+
png: {
|
|
103
|
+
extensions: ['png'],
|
|
104
|
+
priority: 10,
|
|
105
|
+
color: '#8B5A3C',
|
|
106
|
+
mimeTypes: ['image/png'],
|
|
107
|
+
},
|
|
108
|
+
tiff: {
|
|
109
|
+
extensions: ['tiff', 'tif', 'geotiff', 'geotif'],
|
|
110
|
+
priority: 11,
|
|
111
|
+
color: '#6B4423',
|
|
112
|
+
mimeTypes: ['image/tiff'],
|
|
113
|
+
},
|
|
95
114
|
svg: {
|
|
96
115
|
extensions: ['svg'],
|
|
97
|
-
priority:
|
|
116
|
+
priority: 12,
|
|
98
117
|
color: '#EB6D82',
|
|
99
118
|
mimeTypes: ['image/svg+xml'],
|
|
100
119
|
},
|
|
101
120
|
dxf: {
|
|
102
121
|
extensions: ['dxf'],
|
|
103
|
-
priority:
|
|
122
|
+
priority: 13,
|
|
104
123
|
color: '#DCCD00',
|
|
105
124
|
mimeTypes: ['application/x-dxf', 'image/x-dxf'],
|
|
106
125
|
},
|
|
107
126
|
html: {
|
|
108
127
|
extensions: ['html', 'htm'],
|
|
109
|
-
priority:
|
|
128
|
+
priority: 14,
|
|
110
129
|
color: '#C0C9B6',
|
|
111
130
|
mimeTypes: ['text/html'],
|
|
112
131
|
},
|
|
113
132
|
fgb: {
|
|
114
133
|
extensions: ['fgb', 'flatgeobuf'],
|
|
115
|
-
priority:
|
|
134
|
+
priority: 15,
|
|
116
135
|
color: '#A8111C',
|
|
117
136
|
mimeTypes: ['application/flatgeobuf'],
|
|
118
137
|
},
|
|
119
138
|
jsonfg: {
|
|
120
139
|
extensions: ['jsonfg', 'jsonfgc'],
|
|
121
|
-
priority:
|
|
140
|
+
priority: 16,
|
|
122
141
|
color: '#009EE0',
|
|
123
142
|
mimeTypes: [
|
|
124
143
|
'application/vnd.ogc.fg+json',
|
|
125
144
|
'application/vnd.ogc.fg+json;compatibility=geojson',
|
|
126
145
|
],
|
|
127
146
|
},
|
|
147
|
+
webp: {
|
|
148
|
+
extensions: ['webp'],
|
|
149
|
+
priority: 17,
|
|
150
|
+
color: '#5A9E6F',
|
|
151
|
+
mimeTypes: ['image/webp'],
|
|
152
|
+
},
|
|
128
153
|
} as const
|
|
129
154
|
|
|
130
155
|
export type FileFormat = keyof typeof FORMATS
|
package/translations/de.json
CHANGED
|
@@ -522,6 +522,7 @@
|
|
|
522
522
|
"record.metadata.usage": "Nutzung und Einschränkungen",
|
|
523
523
|
"record.metadata.userFeedbacks": "",
|
|
524
524
|
"record.metadata.userFeedbacks.anonymousUser": "",
|
|
525
|
+
"record.metadata.userFeedbacks.authDisabled": "",
|
|
525
526
|
"record.metadata.userFeedbacks.newAnswer.buttonTitle": "",
|
|
526
527
|
"record.metadata.userFeedbacks.newAnswer.placeholder": "",
|
|
527
528
|
"record.metadata.userFeedbacks.newComment.placeholder": "",
|
package/translations/en.json
CHANGED
|
@@ -522,6 +522,7 @@
|
|
|
522
522
|
"record.metadata.usage": "License and Conditions",
|
|
523
523
|
"record.metadata.userFeedbacks": "Questions / Answers",
|
|
524
524
|
"record.metadata.userFeedbacks.anonymousUser": "In order to leave a comment, please log in.",
|
|
525
|
+
"record.metadata.userFeedbacks.authDisabled": "User comments are disabled.",
|
|
525
526
|
"record.metadata.userFeedbacks.newAnswer.buttonTitle": "Publish",
|
|
526
527
|
"record.metadata.userFeedbacks.newAnswer.placeholder": "Answer...",
|
|
527
528
|
"record.metadata.userFeedbacks.newComment.placeholder": "Write your comment here...",
|
package/translations/es.json
CHANGED
|
@@ -522,6 +522,7 @@
|
|
|
522
522
|
"record.metadata.usage": "",
|
|
523
523
|
"record.metadata.userFeedbacks": "",
|
|
524
524
|
"record.metadata.userFeedbacks.anonymousUser": "",
|
|
525
|
+
"record.metadata.userFeedbacks.authDisabled": "",
|
|
525
526
|
"record.metadata.userFeedbacks.newAnswer.buttonTitle": "",
|
|
526
527
|
"record.metadata.userFeedbacks.newAnswer.placeholder": "",
|
|
527
528
|
"record.metadata.userFeedbacks.newComment.placeholder": "",
|
package/translations/fr.json
CHANGED
|
@@ -522,6 +522,7 @@
|
|
|
522
522
|
"record.metadata.usage": "Licences et conditions d'utilisation",
|
|
523
523
|
"record.metadata.userFeedbacks": "Questions / Réponses",
|
|
524
524
|
"record.metadata.userFeedbacks.anonymousUser": "Pour rédiger un commentaire, veuillez vous identifier.",
|
|
525
|
+
"record.metadata.userFeedbacks.authDisabled": "Les commentaires sont désactivés.",
|
|
525
526
|
"record.metadata.userFeedbacks.newAnswer.buttonTitle": "Publier",
|
|
526
527
|
"record.metadata.userFeedbacks.newAnswer.placeholder": "Répondre...",
|
|
527
528
|
"record.metadata.userFeedbacks.newComment.placeholder": "Rédigez votre commentaire ici...",
|
package/translations/it.json
CHANGED
|
@@ -522,6 +522,7 @@
|
|
|
522
522
|
"record.metadata.usage": "Licenze e limiti di utilizzo",
|
|
523
523
|
"record.metadata.userFeedbacks": "Domande / Risposte",
|
|
524
524
|
"record.metadata.userFeedbacks.anonymousUser": "Per pubblicare un commento, effettua il login.",
|
|
525
|
+
"record.metadata.userFeedbacks.authDisabled": "",
|
|
525
526
|
"record.metadata.userFeedbacks.newAnswer.buttonTitle": "Pubblica",
|
|
526
527
|
"record.metadata.userFeedbacks.newAnswer.placeholder": "Risponde...",
|
|
527
528
|
"record.metadata.userFeedbacks.newComment.placeholder": "Scrive qui il suo commento...",
|
package/translations/nl.json
CHANGED
|
@@ -522,6 +522,7 @@
|
|
|
522
522
|
"record.metadata.usage": "",
|
|
523
523
|
"record.metadata.userFeedbacks": "",
|
|
524
524
|
"record.metadata.userFeedbacks.anonymousUser": "",
|
|
525
|
+
"record.metadata.userFeedbacks.authDisabled": "",
|
|
525
526
|
"record.metadata.userFeedbacks.newAnswer.buttonTitle": "",
|
|
526
527
|
"record.metadata.userFeedbacks.newAnswer.placeholder": "",
|
|
527
528
|
"record.metadata.userFeedbacks.newComment.placeholder": "",
|
package/translations/pt.json
CHANGED
|
@@ -522,6 +522,7 @@
|
|
|
522
522
|
"record.metadata.usage": "",
|
|
523
523
|
"record.metadata.userFeedbacks": "",
|
|
524
524
|
"record.metadata.userFeedbacks.anonymousUser": "",
|
|
525
|
+
"record.metadata.userFeedbacks.authDisabled": "",
|
|
525
526
|
"record.metadata.userFeedbacks.newAnswer.buttonTitle": "",
|
|
526
527
|
"record.metadata.userFeedbacks.newAnswer.placeholder": "",
|
|
527
528
|
"record.metadata.userFeedbacks.newComment.placeholder": "",
|
package/translations/sk.json
CHANGED
|
@@ -522,6 +522,7 @@
|
|
|
522
522
|
"record.metadata.usage": "Použitie a obmedzenia",
|
|
523
523
|
"record.metadata.userFeedbacks": "",
|
|
524
524
|
"record.metadata.userFeedbacks.anonymousUser": "",
|
|
525
|
+
"record.metadata.userFeedbacks.authDisabled": "",
|
|
525
526
|
"record.metadata.userFeedbacks.newAnswer.buttonTitle": "",
|
|
526
527
|
"record.metadata.userFeedbacks.newAnswer.placeholder": "",
|
|
527
528
|
"record.metadata.userFeedbacks.newComment.placeholder": "",
|