immich/web
eleith a70cd368af
fix(server): use fqdn for og:image meta tag value (#11082)
* attempt to use fqdn for og:image

opengraph image specifies that the url contains http or https, thus
implying a fqdn.

this change uses the external domain from the server config to attempt
to make the og:image have both the existing path to the thumbnail along
with the desired domain

if the server setting is empty, the old behavior will persist

please note, some og implementations do work with relative paths, so not
all og image checkers may still pass, but not all implementations have
this fallback and thus will not find the image otherwise

* tests and ssr for og:image value as fqdn

* formatting

* fix test

* formatting

* formatting

* fix tests

getConfig was requiring authentication. using already initiated global stores instead

* load config in shared link service itself

* join host and pathname/params safely

* use origin instead of host for full domain string

also fixes lint and address the imageURL type which is optional

* chore: clean up

---------

Co-authored-by: eleith <eleith@lemon.localdomain>
Co-authored-by: eleith <online-github@eleith.com>
Co-authored-by: Jason Rasmussen <jason@rasm.me>
2024-07-29 21:38:47 +00:00
..
bin chore: web shutdown signal (#7114) 2024-02-14 08:57:02 -06:00
src fix(server): use fqdn for og:image meta tag value (#11082) 2024-07-29 21:38:47 +00:00
static chore(web): enable prettier json key sorting recursively (#10120) 2024-06-11 12:52:20 +01:00
.dockerignore feat(web)!: SPA (#5069) 2023-11-17 22:13:36 -06:00
.eslintignore chore(deps): update web (#8066) 2024-03-20 14:08:01 -05:00
.eslintrc.cjs fix(web): require button type (#9786) 2024-05-27 14:06:15 +07:00
.gitignore Add ablum feature to web (#352) 2022-07-15 23:18:17 -05:00
.npmrc Add web interface with admin functionality (#167) 2022-05-21 02:23:55 -05:00
.nvmrc chore(deps): update dependency node to v20.16.0 (#11421) 2024-07-29 10:33:01 -04:00
.prettierignore chore(web): fix weblate conflicts (#10071) 2024-06-10 13:59:54 +01:00
.prettierrc chore(web): enable prettier json key sorting recursively (#10120) 2024-06-11 12:52:20 +01:00
Dockerfile chore(deps): update node (#11322) 2024-07-24 16:13:24 -04:00
package-lock.json chore: bump vitest to 1.6.0 (#11386) 2024-07-26 16:26:17 -05:00
package.json chore(deps): update dependency node to v20.16.0 (#11421) 2024-07-29 10:33:01 -04:00
postcss.config.cjs chore(web): prettier (#2821) 2023-06-30 23:50:47 -05:00
README.md docs: add some details for getting started as a developer (#8468) 2024-04-02 11:56:33 -05:00
svelte.config.js feat(web): license UI (#11182) 2024-07-18 10:56:27 -05:00
tailwind.config.cjs chore: remove unused snowburst one font (#10863) 2024-07-04 17:15:54 -04:00
tsconfig.json chore(web): enable prettier json key sorting recursively (#10120) 2024-06-11 12:52:20 +01:00
vite.config.js feat(web): separate command to build with rollup plugin visualizer (#9097) 2024-04-26 15:36:30 -04:00

Immich web project

This project uses the SvelteKit web framework. Please refer to the SvelteKit docs for information on getting started as a contributor to this project. In particular, it will help you navigate the project's code if you understand the basics of SvelteKit routing.

When developing locally, you will run a SvelteKit Node.js server. When this project is deployed to production, it is built as a SPA and deployed as part of [../server](the server project).