Commit 00861049 authored by LAVENIER's avatar LAVENIER
Browse files

[fix] Update to ngx components v0.13.15

parent 8d46fc48
Pipeline #12781 failed with stages
in 20 minutes and 7 seconds
import {FetchPolicy} from '@apollo/client/core';
import {StorageConfig} from '@ionic/storage';
export class Environment {
name: string;
version: string;
production: boolean;
baseUrl: string;
mock?: boolean;
listenRemoteChanges?: boolean;
// A peer to use at startup (useful on a web site deployment)
defaultPeer?: { host: string; port: number; useSsl?: boolean; path?: string } | undefined | null;
// A list of peers, to select as peer, in settings
defaultPeers?: { host: string; port: number; useSsl?: boolean; path?: string }[];
// Min compatible version for the peer
peerMinVersion?: string;
// Enable cache persistence ?
persistCache?: boolean;
// Force offline mode ? /!\ For DEV only
offline?: boolean;
// Apollo (graphQL) config
apolloFetchPolicy?: FetchPolicy;
// Default values
defaultLocale: string;
defaultLatLongFormat?: 'DD' | 'DDMM' | 'DDMMSS';
defaultDepartmentId?: number;
defaultAppName?: string;
defaultAndroidInstallUrl?: string;
// Storage
storage?: Partial<StorageConfig>;
}
import { Environment } from './environment.class';
import {Environment} from '@sumaris-net/ngx-components';
const pkg = require('../../package.json');
/* eslint-disable */
......@@ -27,13 +28,17 @@ export const environment: Environment = Object.freeze({
// Production and public peers
defaultPeers: [
{
host: 'quadrige3-admin.ifremer.fr',
host: 'visi-common-docker1.ifremer.fr',
port: 8888
},
{
host: 'id.milieumarinfrance.fr',
port: 443
}
],
defaultAppName: 'Quadmire',
defaultAndroidInstallUrl: 'https://play.google.com/store/apps/details?id=fr.ifremer.quadrige3.app',
defaultAppName: 'SAR',
defaultAndroidInstallUrl: 'https://play.google.com/store/apps/details?id=fr.milieumarinfrance.sar.app',
// Storage
storage: {
......
......@@ -3,8 +3,7 @@
// The list of file replacements can be found in `angular.json`.
// Environment to use only with unit tests
import {Environment} from './environment.class';
import {Environment} from '@sumaris-net/ngx-components';
const pkg = require('../../package.json');
......@@ -41,11 +40,19 @@ export const environment: Environment = Object.freeze({
{
host: 'localhost',
port: 8081
},
{
host: 'visi-common-docker1.ifremer.fr',
port: 8888
},
{
host: 'id.milieumarinfrance.fr',
port: 443
}
],
defaultAppName: 'Quadmire',
defaultAndroidInstallUrl: 'https://play.google.com/store/apps/details?id=fr.ifremer.quadrige3.app',
defaultAppName: 'SAR',
defaultAndroidInstallUrl: 'https://play.google.com/store/apps/details?id=fr.milieumarinfrance.sar.app',
// Storage
storage: {
......
......@@ -2,7 +2,8 @@
// `ng build ---prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
import {Environment} from './environment.class';
import {Environment} from '@sumaris-net/ngx-components';
/*
* In development mode, to ignore zone related error stack frames such as
* `zone.run`, `zoneDelegate.invokeTask` for easier debugging, you can
......@@ -47,14 +48,28 @@ export const environment: Environment = Object.freeze({
{
host: '192.168.0.29',
port: 8080
},
{
host: 'visi-common-docker1.ifremer.fr',
port: 8888
},
{
host: 'id.milieumarinfrance.fr',
port: 443
}
],
defaultAppName: 'SAR',
defaultAndroidInstallUrl: 'https://play.google.com/store/apps/details?id=fr.ifremer.quadrige3.app',
defaultAndroidInstallUrl: 'https://play.google.com/store/apps/details?id=fr.milieumarinfrance.sar.app',
// Storage
storage: {
driverOrder: ['sqlite', 'indexeddb', 'websql', 'localstorage']
},
// Default login user
development: {
username: 'admin@sar.milieumarinfrance.fr',
password: 'admin'
}
});
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