Skip to content

Commit fe488df

Browse files
authored
Merge branch 'main' into OF-496-App-Map-Locator-button-doesn-t-center-user-location
2 parents b7cc42e + e972ae0 commit fe488df

File tree

111 files changed

+9188
-2599
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+9188
-2599
lines changed

.DS_Store

10 KB
Binary file not shown.

backend/.env-template

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ INFLUXDB_ORG=offlinery
2121
INFLUXDB_BUCKET=logs
2222
INFLUXDB_ADMIN_TOKEN=your-super-secret-admin-token
2323
GRAFANA_USER=admin
24-
GRAFANA_PASSWORD=admin
24+
GRAFANA_PASSWORD=admin
25+
DOCKER_DEFAULT_PLATFORM=linux/amd64
Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 1 addition & 1 deletion
Loading

backend/coverage/badge-lines.svg

Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 1 addition & 1 deletion
Loading

backend/custom-templates/runtime.mustache

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
{{>licenseInfo}}
44

55
import Constants from 'expo-constants';
6-
import { isExpoGoEnvironment } from "../../../utils/expo.utils";
6+
import { IS_DEVELOPMENT_BUILD } from "../../../utils/env.utils";
77

8-
/*export const BASE_PATH = "{{{basePath}}}".replace(/\/+$/, "");*/
9-
10-
export const BASE_PATH = ((isExpoGoEnvironment ?
8+
export const BASE_PATH = ((IS_DEVELOPMENT_BUILD ?
119
`http://${Constants.expoConfig?.hostUri?.split(':').shift()?.concat(':3000')}`
1210
: "https://api.offlinery.io")+ "/v1").replace(
1311
/\/+$/,

backend/docker-compose.prod.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ services:
8484

8585
backend:
8686
image: europe-west6-docker.pkg.dev/offlinery-439317/offlinery-backend/nestjs:${BACKEND_DOCKER_TAG:-latest}
87+
platform: linux/amd64
8788
build:
8889
context: .
8990
dockerfile: Dockerfile

backend/src/DTOs/encounter-public.dto.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ export class EncounterPublicDTO {
3333
reported: boolean;
3434

3535
@ApiProperty({
36-
type: [UserPublicDTO],
37-
description: "Users that were nearby",
36+
type: UserPublicDTO,
37+
description: "Other Users that was nearby",
3838
})
39-
users: UserPublicDTO[];
39+
otherUser: UserPublicDTO;
4040

4141
@ApiProperty({
4242
type: [MessagePublicDTO],
@@ -47,4 +47,7 @@ export class EncounterPublicDTO {
4747

4848
@ApiProperty({ default: null })
4949
isNearbyRightNow: boolean | null;
50+
51+
@ApiProperty({ default: 1 })
52+
amountStreaks: number;
5053
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { ApiProperty } from "@nestjs/swagger";
2+
import { IsBoolean, IsNotEmpty } from "class-validator";
3+
4+
export class GenericStatusDTO {
5+
@ApiProperty({ description: "User facing status." })
6+
@IsBoolean()
7+
@IsNotEmpty()
8+
success: boolean;
9+
10+
@ApiProperty({ description: "Additional information about the response." })
11+
info: string;
12+
}

0 commit comments

Comments
 (0)