forked from Minds/mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(feat): implement newsfeed, tabview styling, notifications preview
- Loading branch information
1 parent
96eb16e
commit 92e6a20
Showing
155 changed files
with
550 additions
and
99 deletions.
There are no files selected for viewing
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
Binary file added
BIN
+150 Bytes
app/App_Resources/Android/drawable-hdpi/ic_chat_bubble_white_18dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+148 Bytes
app/App_Resources/Android/drawable-hdpi/ic_chat_bubble_white_24dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+205 Bytes
app/App_Resources/Android/drawable-hdpi/ic_chat_bubble_white_36dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+246 Bytes
app/App_Resources/Android/drawable-hdpi/ic_chat_bubble_white_48dp.png
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.
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.
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.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+212 Bytes
app/App_Resources/Android/drawable-hdpi/ic_notifications_white_18dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+234 Bytes
app/App_Resources/Android/drawable-hdpi/ic_notifications_white_24dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+328 Bytes
app/App_Resources/Android/drawable-hdpi/ic_notifications_white_36dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+378 Bytes
app/App_Resources/Android/drawable-hdpi/ic_notifications_white_48dp.png
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.
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.
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.
Binary file added
BIN
+123 Bytes
app/App_Resources/Android/drawable-mdpi/ic_chat_bubble_white_18dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+122 Bytes
app/App_Resources/Android/drawable-mdpi/ic_chat_bubble_white_24dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+148 Bytes
app/App_Resources/Android/drawable-mdpi/ic_chat_bubble_white_36dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+174 Bytes
app/App_Resources/Android/drawable-mdpi/ic_chat_bubble_white_48dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+170 Bytes
app/App_Resources/Android/drawable-mdpi/ic_notifications_white_18dp.png
Oops, something went wrong.
Binary file added
BIN
+177 Bytes
app/App_Resources/Android/drawable-mdpi/ic_notifications_white_24dp.png
Oops, something went wrong.
Binary file added
BIN
+234 Bytes
app/App_Resources/Android/drawable-mdpi/ic_notifications_white_36dp.png
Oops, something went wrong.
Binary file added
BIN
+265 Bytes
app/App_Resources/Android/drawable-mdpi/ic_notifications_white_48dp.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+148 Bytes
app/App_Resources/Android/drawable-xhdpi/ic_chat_bubble_white_18dp.png
Oops, something went wrong.
Binary file added
BIN
+174 Bytes
app/App_Resources/Android/drawable-xhdpi/ic_chat_bubble_white_24dp.png
Oops, something went wrong.
Binary file added
BIN
+246 Bytes
app/App_Resources/Android/drawable-xhdpi/ic_chat_bubble_white_36dp.png
Oops, something went wrong.
Binary file added
BIN
+309 Bytes
app/App_Resources/Android/drawable-xhdpi/ic_chat_bubble_white_48dp.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+234 Bytes
app/App_Resources/Android/drawable-xhdpi/ic_notifications_white_18dp.png
Oops, something went wrong.
Binary file added
BIN
+265 Bytes
app/App_Resources/Android/drawable-xhdpi/ic_notifications_white_24dp.png
Oops, something went wrong.
Binary file added
BIN
+378 Bytes
app/App_Resources/Android/drawable-xhdpi/ic_notifications_white_36dp.png
Oops, something went wrong.
Binary file added
BIN
+482 Bytes
app/App_Resources/Android/drawable-xhdpi/ic_notifications_white_48dp.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+205 Bytes
app/App_Resources/Android/drawable-xxhdpi/ic_chat_bubble_white_18dp.png
Oops, something went wrong.
Binary file added
BIN
+246 Bytes
app/App_Resources/Android/drawable-xxhdpi/ic_chat_bubble_white_24dp.png
Oops, something went wrong.
Binary file added
BIN
+347 Bytes
app/App_Resources/Android/drawable-xxhdpi/ic_chat_bubble_white_36dp.png
Oops, something went wrong.
Binary file added
BIN
+455 Bytes
app/App_Resources/Android/drawable-xxhdpi/ic_chat_bubble_white_48dp.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+328 Bytes
app/App_Resources/Android/drawable-xxhdpi/ic_notifications_white_18dp.png
Oops, something went wrong.
Binary file added
BIN
+378 Bytes
app/App_Resources/Android/drawable-xxhdpi/ic_notifications_white_24dp.png
Oops, something went wrong.
Binary file added
BIN
+539 Bytes
app/App_Resources/Android/drawable-xxhdpi/ic_notifications_white_36dp.png
Oops, something went wrong.
Binary file added
BIN
+713 Bytes
app/App_Resources/Android/drawable-xxhdpi/ic_notifications_white_48dp.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+246 Bytes
app/App_Resources/Android/drawable-xxxhdpi/ic_chat_bubble_white_18dp.png
Oops, something went wrong.
Binary file added
BIN
+309 Bytes
app/App_Resources/Android/drawable-xxxhdpi/ic_chat_bubble_white_24dp.png
Oops, something went wrong.
Binary file added
BIN
+455 Bytes
app/App_Resources/Android/drawable-xxxhdpi/ic_chat_bubble_white_36dp.png
Oops, something went wrong.
Binary file added
BIN
+624 Bytes
app/App_Resources/Android/drawable-xxxhdpi/ic_chat_bubble_white_48dp.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+378 Bytes
app/App_Resources/Android/drawable-xxxhdpi/ic_notifications_white_18dp.png
Oops, something went wrong.
Binary file added
BIN
+482 Bytes
app/App_Resources/Android/drawable-xxxhdpi/ic_notifications_white_24dp.png
Oops, something went wrong.
Binary file added
BIN
+713 Bytes
app/App_Resources/Android/drawable-xxxhdpi/ic_notifications_white_36dp.png
Oops, something went wrong.
Binary file added
BIN
+951 Bytes
app/App_Resources/Android/drawable-xxxhdpi/ic_notifications_white_48dp.png
Oops, something went wrong.
Binary file added
BIN
+728 Bytes
app/App_Resources/Android/drawable-xxxhdpi/ic_search_white_18dp.png
Oops, something went wrong.
Binary file added
BIN
+915 Bytes
app/App_Resources/Android/drawable-xxxhdpi/ic_search_white_24dp.png
Oops, something went wrong.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="ns_accent">#3d5afe</color> | ||
</resources> | ||
<color name="ns_accent">#FFF</color> | ||
</resources> |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">Hello!</string> | ||
<string name="title_activity_kimera">Edge16</string> | ||
</resources> |
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
|
||
Page { | ||
background-color: white; | ||
} | ||
TextField { | ||
padding: 10; | ||
font-size: 13; | ||
} | ||
TextField, TextView { | ||
background-color:transparent; | ||
border-color: transparent; | ||
TextView { | ||
background-color:#000; | ||
border-color: #FFF; | ||
border-width:0; | ||
min-height:0; | ||
padding:0; | ||
} | ||
|
||
|
||
.material-icon { | ||
font-family: 'MaterialIcons-Regular'; | ||
} |
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 |
---|---|---|
|
@@ -7,4 +7,5 @@ | |
</StackLayout> | ||
--> | ||
|
||
|
||
<page-router-outlet></page-router-outlet> |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
@import 'node_modules/nativescript-theme-core/css/core.light.css'; | ||
|
||
Page { | ||
background-color: white; | ||
} | ||
TextField { | ||
padding: 10; | ||
font-size: 13; | ||
} | ||
TextView { | ||
background-color:#000; | ||
border-color: #FFF; | ||
border-width:0; | ||
min-height:0; | ||
padding:0; | ||
} | ||
|
||
|
||
.material-icon { | ||
font-family: 'MaterialIcons-Regular'; | ||
} |
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
Binary file not shown.
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
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { CacheService } from './cache.service'; | ||
|
||
@NgModule({ | ||
providers: [{ | ||
provide: CacheService, | ||
useFactory: () => { | ||
return new CacheService | ||
}, | ||
deps: [] | ||
}] | ||
}) | ||
export class CacheModule { } |
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,21 @@ | ||
export class CacheService { | ||
|
||
data : any = {}; | ||
|
||
get(key : string){ | ||
return this.data[key]; | ||
} | ||
|
||
set(key, value, replace: boolean = true){ | ||
//if(key in this.data && !replace) | ||
// return; //already cached and can't update | ||
//alert('set'); | ||
this.data[key] = value; | ||
|
||
} | ||
|
||
destroy(key){ | ||
|
||
} | ||
|
||
} |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.m-channel--banner{ | ||
background:#EEE; | ||
} | ||
.m-channel--name{ | ||
color:#FFF; | ||
font-size:24; | ||
} | ||
|
||
.m-channel--stats-bar StackLayout{ | ||
padding:8; | ||
text-align:center; | ||
} | ||
.m-channel--stats-bar StackLayout label{ | ||
color:#FFF; | ||
} |
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,3 @@ | ||
<StackLayout> | ||
<activity [entity]="item" *ngFor="let item of feed"></activity> | ||
</StackLayout> |
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,42 @@ | ||
import { Component, OnInit, OnDestroy, Input } from '@angular/core'; | ||
import { ActivatedRoute } from '@angular/router'; | ||
import { Page } from "ui/page"; | ||
import { Client } from '../../common/services/api/client'; | ||
import { CacheService } from '../../common/services/cache/cache.service'; | ||
import * as applicationModule from "application"; | ||
|
||
@Component({ | ||
moduleId: module.id, | ||
selector: 'channel-feed', | ||
templateUrl: 'feed.component.html', | ||
styleUrls: [ 'feed.component.css' ] | ||
}) | ||
|
||
export class ChannelFeedComponent { | ||
|
||
feed : Array<any> = []; | ||
@Input() channel; | ||
|
||
constructor(private client : Client, private cache : CacheService){ } | ||
|
||
ngOnInit(){ | ||
this.loadFeed(); | ||
} | ||
|
||
|
||
loadFeed(){ | ||
this.client.get('api/v1/newsfeed/personal/' + this.channel.guid, { limit: 12, offset: ""}) | ||
.then((response : any) => { | ||
//console.log(response); | ||
for(let activity of response.activity){ | ||
this.feed.push(activity); | ||
} | ||
//this.offset = response['load-next']; | ||
}); | ||
} | ||
|
||
refresh(){ | ||
|
||
} | ||
|
||
} |
Oops, something went wrong.