-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1477 from serlo/staging
Deployment
- Loading branch information
Showing
51 changed files
with
1,545 additions
and
1,782 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
export * from './license-id' | ||
export * from './notification' | ||
export * from './uuid' | ||
export * from './subjects' | ||
export * from './metadata' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export const emptySubjects = [ | ||
{ unrevisedEntities: { nodes: [] } }, | ||
{ unrevisedEntities: { nodes: [] } }, | ||
{ unrevisedEntities: { nodes: [] } }, | ||
{ unrevisedEntities: { nodes: [] } }, | ||
{ unrevisedEntities: { nodes: [] } }, | ||
{ unrevisedEntities: { nodes: [] } }, | ||
{ unrevisedEntities: { nodes: [] } }, | ||
{ unrevisedEntities: { nodes: [] } }, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import gql from 'graphql-tag' | ||
|
||
import { Client } from './assertions' | ||
|
||
export const taxonomyTermQuery = new Client().prepareQuery({ | ||
query: gql` | ||
query ($id: Int!) { | ||
uuid(id: $id) { | ||
__typename | ||
... on TaxonomyTerm { | ||
id | ||
trashed | ||
type | ||
instance | ||
alias | ||
title | ||
name | ||
description | ||
weight | ||
taxonomyId | ||
path { | ||
id | ||
} | ||
parent { | ||
id | ||
} | ||
children { | ||
nodes { | ||
id | ||
} | ||
} | ||
} | ||
} | ||
} | ||
`, | ||
}) | ||
|
||
export const subjectQuery = new Client().prepareQuery({ | ||
query: gql` | ||
query ($instance: Instance!) { | ||
subject { | ||
subjects(instance: $instance) { | ||
id | ||
taxonomyTerm { | ||
name | ||
} | ||
} | ||
} | ||
} | ||
`, | ||
variables: { instance: 'de' }, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.