Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Frontend
Project
Project
Details
Activity
Releases
Dependency List
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
842
Issues
842
List
Boards
Labels
Service Desk
Milestones
Merge Requests
41
Merge Requests
41
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
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
d1a0aad3
Commit
d1a0aad3
authored
29 minutes ago
by
Marcelo Rivera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(feat): donate screen
parent
4dc1b9ee
epic/minds-pro
1 merge request
!459
WIP: (feat): Minds Pro
Pipeline
#74206734
passed with stages
in 27 minutes and 1 second
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
47 additions
and
11 deletions
+47
-11
donate.component.html
src/app/modules/pro/channel/donate/donate.component.html
+9
-0
donate.component.scss
src/app/modules/pro/channel/donate/donate.component.scss
+8
-4
donate.component.ts
src/app/modules/pro/channel/donate/donate.component.ts
+13
-0
pro.module.ts
src/app/modules/pro/pro.module.ts
+2
-0
creator.component.ts
src/app/modules/wire/creator/creator.component.ts
+14
-7
wire.module.ts
src/app/modules/wire/wire.module.ts
+1
-0
No files found.
src/app/modules/pro/channel/donate/donate.component.html
View file @
d1a0aad3
<div
class=
"m-pro--channel-donate"
>
<m-wire--creator
[
object
]="
currentChannel
"
[
opts
]="{
onComplete:
onWireCompleted
}"
[
inModal
]="
false
"
>
</m-wire--creator>
</div>
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/donate/donate.component.scss
View file @
d1a0aad3
m-pro--channel-donate
{
h1
{
font-size
:
72px
;
font-weight
:
600
;
margin
:
0
0
0
.4em
;
.m-pro--channel-donate
{
font-weight
:
400
;
max-width
:
900px
;
margin
:
auto
;
position
:
relative
;
padding
:
32px
;
border-radius
:
6px
;
background-color
:
var
(
--
plain-background-color
);
}
}
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/donate/donate.component.ts
View file @
d1a0aad3
import
{
ChangeDetectionStrategy
,
Component
}
from
'
@angular/core
'
;
import
{
ProChannelService
}
from
"
../channel.service
"
;
@
Component
({
selector
:
'
m-pro--channel-donate
'
,
...
...
@@ -7,4 +8,16 @@ import { ChangeDetectionStrategy, Component } from '@angular/core';
})
export
class
ProChannelDonateComponent
{
get
currentChannel
()
{
return
this
.
channelService
.
currentChannel
;
}
constructor
(
public
channelService
:
ProChannelService
)
{
}
onWireCompleted
()
{
throw
new
Error
(
'
Not implemented
'
);
}
}
This diff is collapsed.
Click to expand it.
src/app/modules/pro/pro.module.ts
View file @
d1a0aad3
...
...
@@ -17,6 +17,7 @@ import { ProSettingsComponent } from './settings/settings.component';
import
{
ProUserMenuComponent
}
from
"
./channel/pro-user-menu/pro-user-menu.component
"
;
import
{
ProChannelFooterComponent
}
from
'
./channel/footer/footer.component
'
;
import
{
LegacyModule
}
from
"
../legacy/legacy.module
"
;
import
{
WireModule
}
from
"
../wire/wire.module
"
;
const
routes
:
Routes
=
[
{
...
...
@@ -67,6 +68,7 @@ const routes: Routes = [
MindsFormsModule
,
NewsfeedModule
,
LegacyModule
,
WireModule
,
],
providers
:
[
ProService
,
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/wire/creator/creator.component.ts
View file @
d1a0aad3
import
{
Component
,
Input
,
ViewChild
,
ElementRef
,
ChangeDetectorRef
}
from
'
@angular/core
'
;
import
{
Component
,
Input
,
ViewChild
,
ElementRef
,
ChangeDetectorRef
,
Output
,
EventEmitter
}
from
'
@angular/core
'
;
import
{
CurrencyPipe
}
from
'
@angular/common
'
;
import
{
OverlayModalService
}
from
'
../../../services/ux/overlay-modal
'
;
...
...
@@ -76,6 +76,8 @@ export class WireCreatorComponent {
protected
submitted
:
boolean
;
@
Input
()
inModal
:
boolean
=
true
;
@
Input
(
'
object
'
)
set
data
(
object
)
{
this
.
wire
.
guid
=
object
?
object
.
guid
:
null
;
...
...
@@ -99,6 +101,8 @@ export class WireCreatorComponent {
}
_opts
:
any
;
@
Input
(
'
opts
'
)
set
opts
(
opts
:
any
)
{
this
.
_opts
=
opts
;
this
.
setDefaults
();
...
...
@@ -124,7 +128,8 @@ export class WireCreatorComponent {
private
web3Wallet
:
Web3WalletService
,
private
tokenContract
:
TokenContractService
,
private
router
:
Router
,
)
{
}
)
{
}
ngOnInit
()
{
this
.
load
()
...
...
@@ -332,8 +337,8 @@ export class WireCreatorComponent {
}
/**
* Round by 4
*/
* Round by 4
*/
roundAmount
()
{
this
.
wire
.
amount
=
Math
.
round
(
parseFloat
(
`
${
this
.
wire
.
amount
}
`
)
*
10000
)
/
10000
;
}
...
...
@@ -504,9 +509,11 @@ export class WireCreatorComponent {
this
.
_opts
.
onComplete
(
this
.
wire
);
}
setTimeout
(()
=>
{
this
.
overlayModal
.
dismiss
();
},
2500
);
if
(
this
.
inModal
)
{
setTimeout
(()
=>
{
this
.
overlayModal
.
dismiss
();
},
2500
);
}
}
}
catch
(
e
)
{
this
.
error
=
(
e
&&
e
.
message
)
||
'
Sorry, something went wrong
'
;
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/wire/wire.module.ts
View file @
d1a0aad3
...
...
@@ -74,6 +74,7 @@ const wireRoutes : Routes = [
WireConsoleRewardsComponent
,
WireConsoleSettingsComponent
,
WireConsoleOverviewComponent
,
WireCreatorComponent
,
],
entryComponents
:
[
WireCreatorComponent
,
...
...
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