Update favicons
Signed-off-by: William Brawner <me@wbrawner.com>
|
@ -22,15 +22,10 @@
|
|||
"src/browserconfig.xml",
|
||||
"src/favicon-16x16.png",
|
||||
"src/favicon-32x32.png",
|
||||
"src/favicon-96x96.png",
|
||||
"src/favicon.ico",
|
||||
"src/assets",
|
||||
"src/manifest.json",
|
||||
"src/mstile-70x70.png",
|
||||
"src/mstile-144x144.png",
|
||||
"src/mstile-150x150.png",
|
||||
"src/mstile-310x150.png",
|
||||
"src/mstile-310x310.png",
|
||||
"src/safari-pinned-tab.svg"
|
||||
],
|
||||
"styles": [
|
||||
"src/styles.css",
|
||||
|
|
|
@ -18,7 +18,11 @@ export class AppComponent {
|
|||
constructor(
|
||||
@Inject(TWIGS_SERVICE) private twigsService: TwigsService,
|
||||
private location: Location,
|
||||
) { }
|
||||
) {
|
||||
this.twigsService.getProfile().subscribe(user => {
|
||||
this.user = user;
|
||||
});
|
||||
}
|
||||
|
||||
getUsername(): String {
|
||||
return this.user.username;
|
||||
|
|
|
@ -156,6 +156,10 @@ export class TwigsHttpService implements TwigsService {
|
|||
}
|
||||
|
||||
// Users
|
||||
getProfile(): Observable<User> {
|
||||
return this.http.get<User>(`${this.apiUrl}/users/me`, this.options);
|
||||
}
|
||||
|
||||
getUsersByUsername(username: string): Observable<User[]> {
|
||||
return Observable.create(subscriber => {
|
||||
subscriber.error("Not yet implemented")
|
||||
|
|
|
@ -301,6 +301,12 @@ export class TwigsLocalService implements TwigsService {
|
|||
}
|
||||
|
||||
// Users
|
||||
getProfile(): Observable<User> {
|
||||
return Observable.create(subscriber => {
|
||||
subscriber.error("Not yet implemented")
|
||||
});
|
||||
}
|
||||
|
||||
getUsersByUsername(username: string): Observable<User[]> {
|
||||
return Observable.create(subscriber => {
|
||||
subscriber.next(this.users.filter(user => user.username.indexOf(username) > -1 ));
|
||||
|
|
|
@ -44,6 +44,7 @@ export interface TwigsService {
|
|||
updateTransaction(budgetId: number, id: number, changes: object): Observable<Transaction>;
|
||||
deleteTransaction(budgetId: number, id: number): Observable<void>;
|
||||
|
||||
getProfile(): Observable<User>;
|
||||
getUsersByUsername(username: string): Observable<User[]>;
|
||||
}
|
||||
|
||||
|
|
BIN
src/assets/icons/icon-114x114.png
Normal file
After Width: | Height: | Size: 6 KiB |
BIN
src/assets/icons/icon-120x120.png
Normal file
After Width: | Height: | Size: 7.1 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 9.7 KiB |
BIN
src/assets/icons/icon-150x150.png
Normal file
After Width: | Height: | Size: 8.4 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 9 KiB |
BIN
src/assets/icons/icon-180x180.png
Normal file
After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 12 KiB |
BIN
src/assets/icons/icon-310x310.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
src/assets/icons/icon-36x36.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
src/assets/icons/icon-48x48.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
src/assets/icons/icon-57x57.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
src/assets/icons/icon-60x60.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
src/assets/icons/icon-70x70.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.4 KiB |
BIN
src/assets/icons/icon-76x76.png
Normal file
After Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 6.3 KiB |
BIN
src/assets/icons/icon-precomposed.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
src/assets/icons/icon.png
Normal file
After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 675 KiB After Width: | Height: | Size: 675 KiB |
|
@ -1,8 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<browserconfig>
|
||||
<msapplication>
|
||||
<tile>
|
||||
<TileColor>#81c784</TileColor>
|
||||
<square70x70logo src="/assets/icons/icon-70x70.png" />
|
||||
<square150x150logo src="/assets/icons/icon-150x150.png" />
|
||||
<square310x310logo src="/assets/icons/icon-310x310.png" />
|
||||
<TileColor>#ffffff</TileColor>
|
||||
</tile>
|
||||
</msapplication>
|
||||
</browserconfig>
|
||||
</browserconfig>
|
Before Width: | Height: | Size: 755 B After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.6 KiB |
BIN
src/favicon-96x96.png
Normal file
After Width: | Height: | Size: 6.3 KiB |
BIN
src/favicon.ico
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 1.1 KiB |
|
@ -6,10 +6,10 @@
|
|||
<title>Twigs</title>
|
||||
<base href="/">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="assets/icons/apple-touch-icon.png">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="assets/icons/touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="96x96" href="favicon-96x96.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
|
||||
<link rel="mask-icon" href="safari-pinned-tab.svg" color="#81c784">
|
||||
<meta name="apple-mobile-web-app-title" content="Twigs">
|
||||
<meta name="application-name" content="Twigs">
|
||||
<meta name="msapplication-TileColor" content="#81c784">
|
||||
|
|
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 1.5 KiB |
|
@ -1,29 +0,0 @@
|
|||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
|
||||
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
||||
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
|
||||
width="700.000000pt" height="700.000000pt" viewBox="0 0 700.000000 700.000000"
|
||||
preserveAspectRatio="xMidYMid meet">
|
||||
<metadata>
|
||||
Created by potrace 1.11, written by Peter Selinger 2001-2013
|
||||
</metadata>
|
||||
<g transform="translate(0.000000,700.000000) scale(0.100000,-0.100000)"
|
||||
fill="#000000" stroke="none">
|
||||
<path d="M3309 6968 c0 -18 -1 -255 -2 -527 -2 -483 -3 -494 -22 -497 -11 -2
|
||||
-49 -6 -85 -9 -90 -9 -144 -15 -171 -20 -13 -3 -41 -7 -64 -11 -72 -10 -246
|
||||
-54 -334 -83 -542 -183 -897 -534 -998 -986 -9 -38 -17 -124 -18 -191 -16
|
||||
-645 526 -1167 1358 -1309 129 -22 132 -23 227 -30 47 -4 88 -9 92 -11 3 -2 4
|
||||
-744 2 -1649 l-5 -1645 211 0 210 0 1 433 c0 237 1 476 1 530 l1 97 36 1 c20
|
||||
0 45 2 56 4 11 2 47 6 80 9 33 3 71 8 85 11 13 2 40 7 60 10 96 14 273 60 370
|
||||
96 47 17 99 36 115 41 49 18 234 117 299 161 297 199 493 477 557 787 17 82
|
||||
19 284 4 370 -68 382 -318 700 -715 907 -154 80 -327 144 -485 180 -66 14
|
||||
-235 43 -288 49 -34 4 -69 8 -77 10 -8 1 -32 3 -53 3 l-38 1 3 1648 3 1647
|
||||
-207 3 -208 2 -1 -32z m-6 -1773 c-1 -176 -2 -580 -2 -898 l-1 -579 -72 6
|
||||
c-480 41 -885 236 -1073 516 -91 137 -126 256 -121 404 5 110 38 223 93 314
|
||||
33 53 55 82 118 155 23 27 143 126 190 156 145 94 390 185 585 218 119 20 201
|
||||
30 240 29 l44 -1 -1 -320z m572 -1931 c22 -4 47 -8 55 -9 8 -1 35 -6 60 -10
|
||||
25 -4 77 -15 115 -25 542 -139 871 -468 860 -859 -9 -314 -236 -583 -628 -745
|
||||
-93 -39 -275 -91 -353 -102 -27 -3 -52 -8 -56 -10 -9 -6 -112 -17 -168 -18
|
||||
l-45 -1 0 865 c0 476 2 880 4 898 l3 34 57 -6 c31 -4 74 -9 96 -12z"/>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 1.7 KiB |