-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat (web/server) 360 degrees Web panoramas #3098
Changes from 6 commits
7ca9470
e69b633
5d31716
e12e000
4690160
1b56a38
e13a3cc
73b6d8a
f1bd1d6
f638fce
ebacdd2
4398ec0
dea4f38
a100f40
c6d23e8
2fd30d8
fb5e1b9
f56273a
1f8e156
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please remove this file from your PR There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why remove it? I fixed the path? btw, I reverted it, but I can create a separate PR and merge it there |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,7 @@ export class AssetResponseDto { | |
people?: PersonResponseDto[]; | ||
/**base64 encoded sha1 hash */ | ||
checksum!: string; | ||
isPanorama!: boolean; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd prefer |
||
} | ||
|
||
export function mapAsset(entity: AssetEntity): AssetResponseDto { | ||
|
@@ -58,6 +59,7 @@ export function mapAsset(entity: AssetEntity): AssetResponseDto { | |
tags: entity.tags?.map(mapTag), | ||
people: entity.faces?.map(mapFace), | ||
checksum: entity.checksum.toString('base64'), | ||
isPanorama: entity.isPanorama, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd prefer |
||
}; | ||
} | ||
|
||
|
@@ -85,5 +87,6 @@ export function mapAssetWithoutExif(entity: AssetEntity): AssetResponseDto { | |
tags: entity.tags?.map(mapTag), | ||
people: entity.faces?.map(mapFace), | ||
checksum: entity.checksum.toString('base64'), | ||
isPanorama: entity.isPanorama, | ||
}; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { MigrationInterface, QueryRunner } from 'typeorm'; | ||
|
||
export class PanoramaViewer1688380066207 implements MigrationInterface { | ||
name = '1688379818PanoramaViewer1688380066207'; | ||
|
||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`ALTER TABLE "assets" ADD "isPanorama" boolean NOT NULL DEFAULT false`); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`ALTER TABLE "assets" DROP COLUMN "isPanorama"`); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this file from your PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not to keep it?
Once I started running Immich, it was failing as containers just stopped. Adding this restart;always helped me to get started.
btw, I removed it for now, but I can create a separate PR and merge it there