Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Codecrew
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
30
Merge Requests
2
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a66914d8
authored
Aug 07, 2018
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed testing changes and fixed linting
1 parent
a4fefec4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
21 deletions
code/moya-angular/src/app/modules/viplist/models/vip-product.model.ts
code/moya-angular/src/app/modules/viplist/viplist.service.ts
code/moya-angular/src/app/shared/models/user.model.ts
code/moya-angular/tslint.json
code/moya-angular/src/app/modules/viplist/models/vip-product.model.ts
View file @
a66914d
...
...
@@ -12,18 +12,10 @@ export class VipProduct {
fragment vipProductPrimitives on VipProduct {
id
name
quantity
}
`
;
/*
static fragmentsZ = gql`
fragment vipProductPrimitives on VipProduct {
id
name
notes
quantity
}
`;
*/
`
;
id
:
number
;
name
:
string
;
...
...
code/moya-angular/src/app/modules/viplist/viplist.service.ts
View file @
a66914d
...
...
@@ -69,7 +69,7 @@ export class ViplistService {
* get vips
*/
public
get
():
Observable
<
Array
<
Vip
>>
{
return
this
.
apollo
.
watchQuery
<
VipsQueryRoot
>
({
query
:
Q_VIPS_N_DATA
}).
valueChanges
.
pipe
(
map
(
x
=>
{
console
.
log
(
x
.
data
.
vips
);
return
x
.
data
.
vips
}));
return
this
.
apollo
.
watchQuery
<
VipsQueryRoot
>
({
query
:
Q_VIPS_N_DATA
}).
valueChanges
.
pipe
(
map
(
x
=>
{
console
.
log
(
x
.
data
.
vips
);
return
x
.
data
.
vips
;
}));
// return this.apollo.query<vipsQueryRoot>({query: Q_VIPS_N_DATA}).pipe(map(x => x.data.vips));
}
...
...
code/moya-angular/src/app/shared/models/user.model.ts
View file @
a66914d
...
...
@@ -15,16 +15,8 @@ export enum UserGender {
export
class
User
{
static
fragments
=
gql
`
fragment userPrimitives on User {
address
birthday
email
}
`
;
/*
static fragmentsZZ = gql`
static
fragments
=
gql
`
fragment userPrimitives on User {
address
allergiesFreetext
...
...
@@ -45,7 +37,6 @@ export class User {
`
;
*/
nick
:
string
;
login
:
string
;
...
...
code/moya-angular/tslint.json
View file @
a66914d
...
...
@@ -29,7 +29,7 @@
"label-position"
:
true
,
"max-line-length"
:
[
true
,
14
0
20
0
],
"member-access"
:
false
,
"member-ordering"
:
[
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment