Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
f03ed39
Add files via upload
Alex24h Feb 23, 2025
034abb2
Add files via upload
Alex24h Feb 23, 2025
c302954
Add files via upload
Alex24h Feb 23, 2025
6318e66
Add files via upload
Alex24h Feb 28, 2025
f912ed9
Add files via upload
Alex24h Feb 28, 2025
aa75e76
Add files via upload
Alex24h Feb 28, 2025
168b842
Add files via upload
Alex24h Feb 28, 2025
d0b4c97
Delete src/app/buyPRN.component.html
Alex24h Feb 28, 2025
e201546
Delete src/app/buyPRN.component.ts
Alex24h Feb 28, 2025
83eb74a
Delete src/app/chat.component.html
Alex24h Feb 28, 2025
e27425d
Delete src/app/chat.component.ts
Alex24h Feb 28, 2025
438d1b4
Delete src/app/directory.component.html
Alex24h Feb 28, 2025
0d41cec
Delete src/app/directory.component.ts
Alex24h Feb 28, 2025
c4668f5
Delete src/app/login.component.html
Alex24h Feb 28, 2025
1c4bdcf
Delete src/app/login.component.ts
Alex24h Feb 28, 2025
383072c
Delete src/app/profile.component.html
Alex24h Feb 28, 2025
edf3199
Delete src/app/profile.component.ts
Alex24h Feb 28, 2025
29510d6
Delete src/app/settings.component.ts
Alex24h Feb 28, 2025
a81acc8
Create buyPRN folder
Alex24h Feb 28, 2025
0b2800c
Delete src/app/buyPRN/buyPRN.txt
Alex24h Feb 28, 2025
95c2d11
Create buyPRN.txt
Alex24h Feb 28, 2025
544fc43
Create chat.txt
Alex24h Feb 28, 2025
34c55bd
Create directory.txt
Alex24h Feb 28, 2025
80f44ab
Create login.txt
Alex24h Feb 28, 2025
e308b15
Create profile.txt
Alex24h Feb 28, 2025
fa19c00
Create settings.txt
Alex24h Feb 28, 2025
16c8954
Add files via upload
Alex24h Feb 28, 2025
42df130
Delete src/app/buyPRN/buyPRN.txt
Alex24h Feb 28, 2025
a8f3dd5
Add files via upload
Alex24h Feb 28, 2025
895675f
Delete src/app/chat/chat.txt
Alex24h Feb 28, 2025
9e000cd
Add files via upload
Alex24h Feb 28, 2025
86933b2
Delete src/app/directory/directory.txt
Alex24h Feb 28, 2025
fe3e7a1
Add files via upload
Alex24h Feb 28, 2025
51427e7
Delete src/app/login/login.txt
Alex24h Feb 28, 2025
6f15dae
Add files via upload
Alex24h Feb 28, 2025
1cfe21b
Delete src/app/profile/profile.txt
Alex24h Feb 28, 2025
1a06e8d
Add files via upload
Alex24h Feb 28, 2025
42704b3
Delete src/app/settings/settings.txt
Alex24h Feb 28, 2025
74a6d62
Add files via upload
Alex24h Mar 2, 2025
a777c39
Add files via upload
Alex24h Mar 2, 2025
5bc020d
Add files via upload
Alex24h Mar 2, 2025
30bb4df
Add files via upload
Alex24h Mar 2, 2025
7a39648
Add files via upload
Alex24h Mar 2, 2025
107b334
Add files via upload
Alex24h Mar 2, 2025
158d147
Add files via upload
Alex24h Mar 2, 2025
01d1dcf
Add files via upload
Alex24h Mar 2, 2025
a27318f
Update directory.component.ts
Alex24h Mar 2, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions functions/scheduled/dailyMembership.f.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ exports=module.exports=functions.runWith(runtimeOpts).pubsub.schedule('every 24
})
const results=await Promise.all(verifyMessageBatch)
results.forEach((result)=>{
if (result.wallet.shareBalance>0)statistics.emailsContributorsAuth.push(result.emails.auth)
statistics.wallet.shareBalance=((statistics.wallet||{}).shareBalance||0)+result.wallet.shareBalance
if (result.wallet.balance>0)statistics.emailsContributorsAuth.push(result.emails.auth)
statistics.wallet.balance=((statistics.wallet||{}).balance||0)+result.wallet.balance
statistics.interest.amount=((statistics.interest||{}).amount||0)+result.interest.amount
statistics.interest.rateDay=statistics.wallet.shareBalance*(Math.exp(result.interest.rateYear/365)-1)
statistics.interest.rateDay=statistics.wallet.balance*(Math.exp(result.interest.rateYear/365)-1)
statistics.interest.amountCummulate=((statistics.interest||{}).amountCummulate||0)+result.interest.amountCummulate
statistics.contract.amount=((statistics.contract||{}).amount||0)+result.contract.amount
statistics.contract.amountCummulate=((statistics.contract||{}).amountCummulate||0)+result.contract.amountCummulate
Expand Down
1 change: 0 additions & 1 deletion functions/utils/verifyMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,6 @@ module.exports = {
interest.amount=Math.max(0,interest.amountBase*(Math.exp(interest.rateYear/365*interest.days)-1))
interest.amountCummulate=(((userPreviousMessageData.interest||{}).amountCummulate)||0)+interest.amount
wallet.balance=Math.round((Number(wallet.balance)+Number((interest.amount)||0))*100000)/100000
wallet.shareBalance=wallet.balance

//*******MESSAGE WRITES**********************
//message event
Expand Down
12 changes: 6 additions & 6 deletions src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { LoginComponent } from './login.component';
import { ChatComponent } from './chat.component';
import { ProfileComponent } from './profile.component';
import { SettingsComponent } from './settings.component';
import { DirectoryComponent } from './directory.component';
import { buyPRNComponent } from './buyPRN.component';
import { LoginComponent } from './login/login.component';
import { ChatComponent } from './chat/chat.component';
import { ProfileComponent } from './profile/profile.component';
import { SettingsComponent } from './settings/settings.component';
import { DirectoryComponent } from './directory/directory.component';
import { buyPRNComponent } from './buyPRN/buyPRN.component';

const appRoutes: Routes = [
{ path: 'chat/:id', component: ChatComponent },
Expand Down
24 changes: 24 additions & 0 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<img class="fullScreenImage" id="fullScreenImage" (click)="hideFullScreenImage()">
<progress value='0' max='100' id='uploader'>0%</progress>
<div class='menu'>
<div style="width:320px;display:block;margin: 0 auto">
<img src="./../assets/App icons/Perrinn_02.png" style="cursor:pointer;float:left;width:30px;margin:5px 45px 5px 5px" (click)="router.navigate(['profile','all'])">
<span class="material-icons" style="float:left;margin:5px 45px 5px 45px;font-size:30px;cursor:pointer" (click)="router.navigate(['directory'])">list</span>
<span class="material-icons-outlined" style="float:left;margin:5px 45px 5px 45px;font-size:30px;height:30px;cursor:pointer" onclick="window.open('https://discover.perrinn.com','_blank')">info</span>
</div>
<div class="seperator" style="width:100%;margin:0px"></div>
</div>
<div style="user-select:none">
<div style="max-width:800px;margin:0 auto">
<div *ngIf="!UI.currentUser" class="buttonWhite" style="float:left;line-height:20px;width:75px;margin:7px" (click)="router.navigate(['login'])">Login</div>
<div *ngIf="UI.currentUser" style="float:left;cursor:pointer" (click)="router.navigate(['profile',UI.currentUser])">
<img [src]="UI.currentUserLastMessageObj?.imageUrlThumbUser" style="display:inline;float:left;margin:5px;object-fit:cover;width:35px;height:35px">
<span style="margin:11px;font-size:14px;line-height:40px">{{UI.formatSharesToPRNCurrency(null,UI.currentUserLastMessageObj?.wallet?.balance||0)}}</span>
</div>
<div class="buttonBlack" style="float:right;line-height:20px;width:100px;margin:7px" (click)="router.navigate(['buyPRN'])">Buy PRN</div>
</div>
<div class="seperator" style="width:100%;margin:0px"></div>
</div>
<div id='main_container'>
<router-outlet></router-outlet>
</div>
28 changes: 2 additions & 26 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,9 @@ import { AngularFirestore, AngularFirestoreCollection } from '@angular/fire/comp

@Component({
selector: 'app-root',
template: `
<img class="fullScreenImage" id="fullScreenImage" (click)="hideFullScreenImage()">
<progress value='0' max='100' id='uploader'>0%</progress>
<div class='menu'>
<div style="width:320px;display:block;margin: 0 auto">
<img src="./../assets/App icons/Perrinn_02.png" style="cursor:pointer;float:left;width:30px;margin:5px 45px 5px 5px" (click)="router.navigate(['profile','all'])">
<span class="material-icons" style="float:left;margin:5px 45px 5px 45px;font-size:30px;cursor:pointer" (click)="router.navigate(['directory'])">list</span>
<span class="material-icons-outlined" style="float:left;margin:5px 45px 5px 45px;font-size:30px;height:30px;cursor:pointer" onclick="window.open('https://discover.perrinn.com','_blank')">info</span>
</div>
<div class="seperator" style="width:100%;margin:0px"></div>
</div>
<div style="user-select:none">
<div style="max-width:800px;margin:0 auto">
<div *ngIf="!UI.currentUser" class="buttonWhite" style="float:left;line-height:20px;width:75px;margin:7px" (click)="router.navigate(['login'])">Login</div>
<div *ngIf="UI.currentUser" style="float:left;cursor:pointer" (click)="router.navigate(['profile',UI.currentUser])">
<img [src]="UI.currentUserLastMessageObj?.imageUrlThumbUser" style="display:inline;float:left;margin:5px;object-fit:cover;width:35px;height:35px">
<span style="margin:11px;font-size:14px;line-height:40px">{{UI.formatSharesToPRNCurrency(null,UI.currentUserLastMessageObj?.wallet.shareBalance||0)}}</span>
</div>
<div class="buttonBlack" style="float:right;line-height:20px;width:100px;margin:7px" (click)="router.navigate(['buyPRN'])">Buy PRN</div>
</div>
<div class="seperator" style="width:100%;margin:0px"></div>
</div>
<div id='main_container'>
<router-outlet></router-outlet>
</div>
`,
templateUrl: './app.component.html',
})

export class AppComponent {

constructor(
Expand Down
12 changes: 6 additions & 6 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import { HttpClientModule } from '@angular/common/http';

import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';
import { ChatComponent } from './chat.component';
import { LoginComponent } from './login.component';
import { ProfileComponent } from './profile.component';
import { SettingsComponent } from './settings.component';
import { DirectoryComponent } from './directory.component';
import { buyPRNComponent } from './buyPRN.component';
import { ChatComponent } from './chat/chat.component';
import { LoginComponent } from './login/login.component';
import { ProfileComponent } from './profile/profile.component';
import { SettingsComponent } from './settings/settings.component';
import { DirectoryComponent } from './directory/directory.component';
import { buyPRNComponent } from './buyPRN/buyPRN.component';
import { LinkyModule } from 'angular-linky';

import { PipeModule } from './pipes.module';
Expand Down
Loading