Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LnWPhase2BackUp
Klubhaus Ui
Commits
64657a04
Commit
64657a04
authored
2 years ago
by
Silambu P
Browse files
Options
Download
Plain Diff
Mergerd Kishore branch
parents
114dee1d
ddd228ef
feature/SpinToWin
No related merge requests found
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
src/app/spin/dashboard/dashboard.component.css
+8
-0
src/app/spin/dashboard/dashboard.component.css
src/app/spin/dashboard/dashboard.component.html
+8
-0
src/app/spin/dashboard/dashboard.component.html
src/app/spin/dashboard/dashboard.component.ts
+316
-470
src/app/spin/dashboard/dashboard.component.ts
src/app/spin/service/spin2win.service.ts
+6
-3
src/app/spin/service/spin2win.service.ts
src/assets/clap.wav
+0
-0
src/assets/clap.wav
src/assets/music2.wav
+0
-0
src/assets/music2.wav
src/d3.d.ts
+8
-87
src/d3.d.ts
with
346 additions
and
560 deletions
+346
-560
src/app/spin/dashboard/dashboard.component.css
View file @
64657a04
...
...
@@ -143,6 +143,14 @@ body{
.sidebar
{
width
:
auto
;
}
}
audio
{
display
:
none
;
}
}
.light
{
animation
:
glowing
1s
infinite
;
...
...
This diff is collapsed.
Click to expand it.
src/app/spin/dashboard/dashboard.component.html
View file @
64657a04
...
...
@@ -31,6 +31,14 @@
<img
class=
"ima1"
src=
"../../assets/cards.JPG"
>
</div>
</div>
<!-- </div> -->
</div>
<audio
controls=
"controls"
id=
"sound"
src=
"../assets/music2.wav"
></audio>
<audio
controls=
"controls"
id=
"clap"
src=
"../assets/clap.wav"
></audio>
</body>
</html>
This diff is collapsed.
Click to expand it.
src/app/spin/dashboard/dashboard.component.ts
View file @
64657a04
This diff is collapsed.
Click to expand it.
src/app/spin/service/spin2win.service.ts
View file @
64657a04
...
...
@@ -8,8 +8,7 @@ import { WonOption } from '../dashboard/won-option';
providedIn
:
'
root
'
})
export
class
Spin2winService
{
url
=
'
http://15.207.110.133:8095/api/SpinToWin
'
;
// url='http://localhost:4200/api/SpinToWin';
url
=
'
http://ec2-15-207-110-133.ap-south-1.compute.amazonaws.com:8095/api/SpinToWin/GetNotifications
'
;
constructor
(
private
http
:
HttpClient
)
{
}
GetNotifications
():
Observable
<
string
[]
>
{
...
...
@@ -29,7 +28,7 @@ url='http://15.207.110.133:8095/api/SpinToWin';
isBirthdaySpinClaimed
():
boolean
{
return
this
.
isClaimed
;
}
url2
=
'
http://15
.
207
.
110
.
133:8095/api/SpinToWin
'
url2
=
'
http://
ec2-
15
-
207
-
110
-
133
.ap-south-1.compute.amazonaws.com
:8095/api/SpinToWin
'
GetEnabledRewards
():
Observable
<
SpinOption
[]
>
{
return
this
.
http
.
get
<
SpinOption
[]
>
(
`
${
this
.
url2
}
/GetEnabledRewards`
);
}
...
...
@@ -38,6 +37,10 @@ url2='http://15.207.110.133:8095/api/SpinToWin'
return
this
.
http
.
post
<
SpinOption
[]
>
(
`
${
this
.
url2
}
/PostSpinDetails`
,
winDetails
);
}
CanSpin
(
id
:
number
):
Observable
<
boolean
>
{
return
this
.
http
.
get
<
boolean
>
(
`
${
this
.
url2
}
/CanSpin?id=
${
id
}
`
);
}
GetEnabledNotification
():
Observable
<
string
[]
>
{
return
this
.
http
.
get
<
string
[]
>
(
`
${
this
.
url2
}
/GetEnabledNotifications`
);
}
...
...
This diff is collapsed.
Click to expand it.
src/assets/clap.wav
0 → 100644
View file @
64657a04
File added
This diff is collapsed.
Click to expand it.
src/assets/music2.wav
0 → 100644
View file @
64657a04
File added
This diff is collapsed.
Click to expand it.
src/d3.d.ts
View file @
64657a04
...
...
@@ -12,7 +12,9 @@ declare module 'd3' {
export
{
Transition
}
from
'
d3-transition
'
;
export
function
range
(
stop
:
number
):
number
[];
export
function
range
(
start
:
number
,
stop
:
number
,
step
?:
number
):
number
[];
export
function
animation
(
callback
:
()
=>
void
,
delay
?:
number
,
...
args
:
any
[]):
void
;
export
const
iterationCount
:
any
;
export
function
interpolateNumber
(
a
:
number
,
b
:
number
):
(
t
:
number
)
=>
number
;
//export function pie<T>(): Pie<T>;
import
{
Arc
}
from
'
d3-shape
'
;
...
...
@@ -56,11 +58,7 @@ declare module 'd3' {
):
Transition
<
GElement
,
Datum
,
PElement
,
PDatum
>
;
export
function
easeLinear
(
normalizedTime
:
number
):
number
;
// export interface Transition<GElement extends BaseType, Datum, PElement extends BaseType, PDatum> {
// transition: Transition<Selection<GElement, Datum, PElement, PDatum>, Datum, GElement, Datum>;
// }
}
declare
module
'
d3-axis
'
{}
...
...
@@ -69,44 +67,18 @@ declare module 'd3' {
import
{
Selection
as
D3Selection
}
from
'
d3-selection
'
;
export
function
selectAll
(
selector
:
string
):
any
;
export
function
select
(
selector
:
string
):
any
;
//import { Selection as D3Selection } from 'd3-selection';
export
interface
Selection
<
GElement
extends
BaseType
,
Datum
,
PElement
extends
BaseType
,
PDatum
>
extends
ArrayLike
<
GElement
>
{
}
export
interface
BaseType
{
}
export
interface
EnterElement
<
GElement
extends
BaseType
,
Datum
>
{
}
// export interface Selection<GElement, Datum, PElement = any, PDatum = any> extends ArrayLike<GElement> {
// }
// export interface Selection<GElement extends BaseType, Datum, PElement extends BaseType, PDatum> extends ArrayLike<GElement> {
// }
// export interface TransitionLike<GElement extends BaseType, Datum> extends Transition<GElement, Datum, null, undefined> {
// }
// export interface TransitionLike<GElement extends BaseType | null, Datum> extends Transition<GElement, Datum, GElement extends null ? null : BaseType, Datum> {
// }
// export type NullElement = null;
// interface ExtendedTransition<GElement extends BaseType | null, Datum, PElement extends BaseType, PDatum> extends Transition<GElement, Datum, PElement, PDatum> {}
// export interface TransitionLike<GElement extends BaseType | NullElement, Datum> extends ExtendedTransition<GElement, Datum, GElement extends NullElement ? NullElement : BaseType, Datum> {
// }
//import { Transition } from 'd3-transition';
export
interface
ValueFn
<
T
,
U
,
R
>
{
(
this
:
T
,
datum
:
U
,
index
:
number
,
groups
:
ArrayLike
<
T
>
):
R
;
}
...
...
@@ -116,13 +88,7 @@ declare module 'd3' {
readonly
[
index
:
number
]:
T
;
}
//export type ValueFn<T, U> = (datum: T, index: number, groups: T[]) => U;
// export interface TransitionLike<GElement extends Element, Datum> extends Transition<GElement, Datum, null, undefined> {}
// export type TransitionLike<GElement extends Element, Datum> = Transition<GElement, Datum, null, undefined>;
}
...
...
@@ -166,56 +132,11 @@ declare module 'd3' {
export
interface
ZoomView
{
}
//import { interpolate } from 'd3-interpolate';
export
const
ease
:
typeof
interpolate
;
//export { ease } from 'd3-interpolate';
// export const ease: typeof interpolate;
export
const
easeCubicInOut
:
(
t
:
number
)
=>
number
;
// Add this line
export
const
easeCubicInOut
:
(
t
:
number
)
=>
number
;
}
// declare module 'd3-shape' {
// export interface Arc<This, Datum> {
// (this: This, d: Datum, ...args: any[]): string | null;
// innerRadius(): (this: This, d: Datum, ...args: any[]) => number;
// innerRadius(radius: number | ((this: This, d: Datum, ...args: any[]) => number)): this;
// outerRadius(): (this: This, d: Datum, ...args: any[]) => number;
// outerRadius(radius: number | ((this: This, d: Datum, ...args: any[]) => number)): this;
// cornerRadius(): (this: This, d: Datum, ...args: any[]) => number;
// cornerRadius(radius: number | ((this: This, d: Datum, ...args: any[]) => number)): this;
// padRadius(): (this: This, d: Datum, ...args: any[]) => number | null;
// padRadius(radius: number | null | ((this: This, d: Datum, ...args: any[]) => number | null)): this;
// startAngle(): (this: This, d: Datum, ...args: any[]) => number;
// startAngle(angle: number | ((this: This, d: Datum, ...args: any[]) => number)): this;
// endAngle(): (this: This, d: Datum, ...args: any[]) => number;
// endAngle(angle: number | ((this: This, d: Datum, ...args: any[]) => number)): this;
// padAngle(): (this: This, d: Datum, ...args: any[]) => number;
// padAngle(angle: number | ((this: This, d: Datum, ...args: any[]) => number)): this;
// centroid(d: Datum, ...args: any[]): [number, number];
// }
// export function arc(): Arc<undefined, DefaultArcObject>;
// export function arc<This, Datum>(): Arc<This, Datum>;
// export interface DefaultArcObject {
// innerRadius: number | (() => number);
// outerRadius: number | (() => number);
// startAngle: number | (() => number);
// endAngle: number | (() => number);
// padAngle: number | (() => number);
// }
// export interface PieArcDatum<T> extends DefaultArcObject {
// data: T;
// index: number;
// value: number;
// }
// export function pie(): Pie<any>;
// export function pie<Datum>(): Pie<Datum>;
// }
declare
module
'
d3-shape
'
{
export
interface
Arc
<
This
,
Datum
>
{
...
...
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
Menu
Projects
Groups
Snippets
Help