1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-25 10:43:13 +02:00
immich/web
faupau 7595d01956
feat(web): set asset as profile picture (#3106)
* add profile-image-cropper component

* add dom-to-image library

* add store to update user profile picture when set

* dom-to-image

* remove console.logs, add svelte binding

* fix format, unused vars

* change caching of profile image

* set hash after profile image change

* remove unnecessary store

* remove unecesarry changes

* set types/dom-to-image as devDependency

* remove unecessary type declarations
use handleError

* remove error notification
which is already handled by handleError

* Revert "set types/dom-to-image as devDependency"

This reverts commit ca8b3ed1bb.

* add types do dev dependencies

* use on:close instead of on:close={()=>...}

* add newline

* sort imports

* bind photo-viewer imgElement directly, not working

* remove console.log, fix binding

* make imgElement optional

* fix element as optional prop

* fix type

* check for transparency

* small changes

* fix img.decode

* add bg, remove publicsharedkey

* fix omit publicSharedKey

---------

Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
2023-07-15 20:31:33 -05:00
..
__mocks__ chore(web): prettier (#2821) 2023-06-30 23:50:47 -05:00
src feat(web): set asset as profile picture (#3106) 2023-07-15 20:31:33 -05:00
static feat(web): immich as webapp, add apple icons and manifest file (#2310) 2023-04-23 20:30:38 -05:00
.dockerignore
.eslintignore Add ablum feature to web (#352) 2022-07-15 23:18:17 -05:00
.eslintrc.cjs chore(web): prettier (#2821) 2023-06-30 23:50:47 -05:00
.gitignore Add ablum feature to web (#352) 2022-07-15 23:18:17 -05:00
.npmrc
.prettierignore feat(web): More localisation (#1441) 2023-01-27 23:57:25 -06:00
.prettierrc chore(web): prettier (#2821) 2023-06-30 23:50:47 -05:00
babel.config.cjs chore(web): prettier (#2821) 2023-06-30 23:50:47 -05:00
Dockerfile chore(deps): update web (#2806) 2023-06-16 12:45:05 -05:00
entrypoint.sh fix(web): remove protocol header (#2068) 2023-03-24 07:20:06 -05:00
how-to-scroll-like-google.md Feature - Implemented virtual scroll on web (#573) 2022-09-04 08:34:39 -05:00
jest.config.mjs chore(web): prettier (#2821) 2023-06-30 23:50:47 -05:00
LICENSE feat(docker) revert ubuntu base image (#863) 2022-10-25 14:18:37 -05:00
package-lock.json feat(web): set asset as profile picture (#3106) 2023-07-15 20:31:33 -05:00
package.json feat(web): set asset as profile picture (#3106) 2023-07-15 20:31:33 -05:00
postcss.config.cjs chore(web): prettier (#2821) 2023-06-30 23:50:47 -05:00
README.md
svelte.config.js chore(web): Update to Svelte 4 (#3196) 2023-07-15 20:13:04 -05:00
tailwind.config.cjs chore(web): prettier (#2821) 2023-06-30 23:50:47 -05:00
tsconfig.json chore(web): improve type checking (#2644) 2023-06-02 08:55:08 -05:00
vite.config.js chore(web): prettier (#2821) 2023-06-30 23:50:47 -05:00

create-svelte

Everything you need to build a Svelte project, powered by create-svelte.

Creating a project

If you're seeing this, you've probably already done this step. Congrats!

# create a new project in the current directory
npm init svelte

# create a new project in my-app
npm init svelte my-app

Developing

Once you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:

npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open

Building

To create a production version of your app:

npm run build

You can preview the production build with npm run preview.

To deploy your app, you may need to install an adapter for your target environment.