Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
837
Issues
837
List
Boards
Labels
Service Desk
Milestones
Merge Requests
45
Merge Requests
45
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
5436fa75
Commit
5436fa75
authored
45 minutes ago
by
Mark Harding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(feat): add a new transactions screen
parent
cf10374c
master
wire-transactions
No related merge requests found
Pipeline
#81806231
running with stages
Changes
5
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
84 additions
and
2 deletions
+84
-2
console.component.html
src/app/modules/monetization/revenue/console.component.html
+4
-2
transactions.component.html
src/app/modules/wallet/usd/transactions.component.html
+25
-0
transactions.component.scss
src/app/modules/wallet/usd/transactions.component.scss
+20
-0
transactions.component.ts
src/app/modules/wallet/usd/transactions.component.ts
+32
-0
wallet.module.ts
src/app/modules/wallet/wallet.module.ts
+3
-0
No files found.
src/app/modules/monetization/revenue/console.component.html
View file @
5436fa75
...
...
@@ -16,11 +16,13 @@
<a
class=
"m-page--sidebar--navigation--item"
routerLink=
"/wallet/usd/
earning
s"
routerLink=
"/wallet/usd/
transaction
s"
routerLinkActive=
"m-page--sidebar--navigation--item-active"
>
<i
class=
"material-icons"
>
history
</i>
<span
i18n=
"@@MONETIZATION__REVENUE__CONSOLE__EARNINGS"
>
Earnings
</span>
<span
i18n=
"@@MONETIZATION__REVENUE__CONSOLE__EARNINGS"
>
Transactions
</span
>
</a>
<a
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/wallet/usd/transactions.component.html
0 → 100644
View file @
5436fa75
<table
class=
"m-walletUsdTransactions__table m-border"
>
<tr>
<td>
Date
</td>
<td>
User
</td>
<td>
Gross
</td>
<td>
Net
</td>
</tr>
<tr
*ngFor=
"let transaction of transactions"
>
<td>
{{ transaction.timestamp * 1000 | date: 'medium' }}
</td>
<td>
<a
*ngIf=
"transaction.customer_user"
[routerLink]=
"['/', transaction.customer_user.username]"
>
<span>
@
</span>
{{ transaction.customer_user.username }}
</a>
</td>
<td>
{{ transaction.gross / 100 | number: '1.2-2' }} USD
</td>
<td>
{{ transaction.net / 100 | number: '1.2-2' }}
{{ transaction.currency | uppercase }}
</td>
</tr>
</table>
This diff is collapsed.
Click to expand it.
src/app/modules/wallet/usd/transactions.component.scss
0 → 100644
View file @
5436fa75
.m-walletUsdTransactions__table
{
width
:
100%
;
@include
m-theme
()
{
background-color
:
themed
(
$m-white
);
}
>
tr
:first-of-type
()
{
font-weight
:
bold
;
}
td
{
padding
:
$minds-padding
*
2
;
font-size
:
13px
;
@include
m-theme
()
{
border-bottom
:
1px
solid
themed
(
$m-grey-50
);
}
}
}
This diff is collapsed.
Click to expand it.
src/app/modules/wallet/usd/transactions.component.ts
0 → 100644
View file @
5436fa75
import
{
Component
,
ViewChild
,
ComponentFactoryResolver
}
from
'
@angular/core
'
;
import
{
Router
}
from
'
@angular/router
'
;
import
{
DynamicHostDirective
}
from
'
../../../common/directives/dynamic-host.directive
'
;
import
{
RevenueLedgerComponent
}
from
'
../../monetization/revenue/ledger.component
'
;
import
{
Session
}
from
'
../../../services/session
'
;
import
{
Client
}
from
'
../../../services/api/client
'
;
@
Component
({
selector
:
'
m-walletUsd__transactions
'
,
templateUrl
:
'
./transactions.component.html
'
,
})
export
class
WalletUSDTransactionsComponent
{
transactions
=
[];
constructor
(
private
router
:
Router
,
private
session
:
Session
,
private
client
:
Client
)
{}
ngOnInit
()
{
this
.
load
();
}
async
load
()
{
const
{
transactions
}
=
<
any
>
(
await
this
.
client
.
get
(
'
api/v2/payments/stripe/transactions
'
)
);
this
.
transactions
=
transactions
;
}
}
This diff is collapsed.
Click to expand it.
src/app/modules/wallet/wallet.module.ts
View file @
5436fa75
...
...
@@ -33,6 +33,7 @@ import { WalletBalanceTokensComponent } from './balances/tokens/balance.componen
import
{
WalletBalanceRewardsComponent
}
from
'
./balances/rewards/balance.component
'
;
import
{
WalletUSDComponent
}
from
'
./usd/usd.component
'
;
import
{
WalletUSDEarningsComponent
}
from
'
./usd/earnings.component
'
;
import
{
WalletUSDTransactionsComponent
}
from
'
./usd/transactions.component
'
;
import
{
WalletUSDPayoutsComponent
}
from
'
./usd/payouts.component
'
;
import
{
WalletUSDSettingsComponent
}
from
'
./usd/settings.component
'
;
import
{
WalletUSDOnboardingComponent
}
from
'
./usd/onboarding/onboarding.component
'
;
...
...
@@ -87,6 +88,7 @@ const walletRoutes: Routes = [
component
:
WalletUSDComponent
,
children
:
[
{
path
:
''
,
redirectTo
:
'
earnings
'
,
pathMatch
:
'
full
'
},
{
path
:
'
transactions
'
,
component
:
WalletUSDTransactionsComponent
},
{
path
:
'
earnings
'
,
component
:
WalletUSDEarningsComponent
},
{
path
:
'
payouts
'
,
component
:
WalletUSDPayoutsComponent
},
{
path
:
'
settings
'
,
component
:
WalletUSDSettingsComponent
},
...
...
@@ -140,6 +142,7 @@ const walletRoutes: Routes = [
WalletBalanceRewardsComponent
,
WalletUSDComponent
,
WalletUSDEarningsComponent
,
WalletUSDTransactionsComponent
,
WalletUSDPayoutsComponent
,
WalletUSDSettingsComponent
,
WalletUSDOnboardingComponent
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment