-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(album): melhora marcação de pessoas em fotos
- Loading branch information
Showing
74 changed files
with
1,236 additions
and
173 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
<html | ||
dir="ltr" | ||
lang="pt-br" | ||
xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:o="urn:schemas-microsoft-com:office:office" | ||
> | ||
<head> | ||
<link rel="preconnect" href="https://fonts.googleapis.com" /> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="" /> | ||
<link | ||
href="https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" | ||
rel="stylesheet" | ||
/> | ||
|
||
<style type="text/css"> | ||
body { | ||
font-family: 'Source Sans 3'; | ||
font-style: normal; | ||
font-weight: 500; | ||
font-size: 16px; | ||
line-height: 18px; | ||
color: #000000; | ||
} | ||
|
||
a:link, | ||
a:active, | ||
a:visited, | ||
a:hover { | ||
text-decoration-line: underline; | ||
color: #1A84FF; | ||
} | ||
|
||
blockquote { | ||
margin: 2em 0; | ||
} | ||
|
||
footer { | ||
font-family: 'Source Sans 3'; | ||
font-style: normal; | ||
line-height: 18px; | ||
font-size: 16px; | ||
|
||
order: 0; | ||
flex-grow: 0; | ||
gap: 3px; | ||
} | ||
|
||
footer strong { | ||
font-weight: 700; | ||
} | ||
|
||
footer p { | ||
margin: 0; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div> | ||
<h3>Faala {{name}}, belê?</h3> | ||
|
||
<p style="font-size: 120%"> | ||
Alguém marcou você no album de fotos "<a href="{{url}}">{{title}}</a>" | ||
da comunidade. | ||
</p> | ||
|
||
<blockquote> | ||
<strong> | ||
🛟 Você pode remover sua tag da foto se preferir, algumas orientações | ||
para isso: | ||
</strong> | ||
<ol> | ||
<li>Clique no botão ☰ no lado direito acima da foto</li> | ||
<li>Cliique em Remover minha tag</li> | ||
<li>Salvar alterações</li> | ||
</ol> | ||
</blockquote> | ||
</div> | ||
|
||
<hr /> | ||
|
||
<footer> | ||
<p> | ||
<strong>Não responda este e-mail</strong>, pois foi enviado de forma | ||
automatizada. | ||
</p> | ||
<p>Operações <a href="https://devparana.mx">devparana.mx</a>.</p> | ||
</footer> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
packages/account/ui-shared/src/lib/components/search-user/search-user-except.pipe.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { UserRef } from '@devmx/shared-api-interfaces'; | ||
import { Pipe, PipeTransform } from '@angular/core'; | ||
|
||
@Pipe({ | ||
name: 'searchUserExcept', | ||
}) | ||
export class SearchUserExceptPipe implements PipeTransform { | ||
transform<U extends UserRef>(value: U[], except: U[] = []) { | ||
if (except.length === 0) return value; | ||
|
||
return value.filter((user) => except.some((u) => u.id !== user.id)); | ||
} | ||
} |
5 changes: 4 additions & 1 deletion
5
packages/account/ui-shared/src/lib/components/search-user/search-user.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export * from './album-resolver-wrapped'; | ||
export * from './album-resolver-wrapped'; | ||
export * from './photo-resolver-wrapped'; |
11 changes: 11 additions & 0 deletions
11
packages/album/data-access/src/lib/resolvers/photo-resolver-wrapped.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Params } from '@devmx/shared-api-interfaces'; | ||
import { PhotoFacade } from '../application'; | ||
import { distinctUntilChanged, filter } from 'rxjs'; | ||
|
||
export const photoResolverWrapped = (facade: PhotoFacade, params: Params) => { | ||
facade.loadOne(params['id']); | ||
return facade.selected$.pipe( | ||
distinctUntilChanged(), | ||
filter((photo) => !!photo) | ||
); | ||
}; |
Oops, something went wrong.