Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Workshops
Developer workshop
Commits
331510e9
Commit
331510e9
authored
Feb 26, 2020
by
Jon Moore
Browse files
Added in working filter and record page examples
parent
1286f346
Pipeline
#23937
passed with stage
in 2 minutes and 30 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/app/core/routes/ContentTypeMappings.js
View file @
331510e9
...
@@ -13,10 +13,10 @@ export default [
...
@@ -13,10 +13,10 @@ export default [
}),
}),
},
},
{
{
contentTypeID
:
'
ctTest
'
,
contentTypeID
:
'
exampleCT
'
,
component
:
Loadable
({
component
:
Loadable
({
loader
:
()
=>
{
loader
:
()
=>
{
return
import
(
'
~/pages/
Home/Home
page
'
);
return
import
(
'
~/pages/
Records/ExampleRecord.
page
'
);
},
},
loading
:
Loading
,
loading
:
Loading
,
}),
}),
...
...
src/app/features/exampleListing/components/ExampleListing.js
View file @
331510e9
...
@@ -71,8 +71,6 @@ const ExampleListing = ({
...
@@ -71,8 +71,6 @@ const ExampleListing = ({
ExampleListing
.
propTypes
=
{
ExampleListing
.
propTypes
=
{
className
:
PropTypes
.
string
,
className
:
PropTypes
.
string
,
filters
:
PropTypes
.
arrayOf
(
PropTypes
.
object
),
filters
:
PropTypes
.
arrayOf
(
PropTypes
.
object
),
history
:
PropTypes
.
object
,
language
:
PropTypes
.
string
,
paging
:
PropTypes
.
object
,
paging
:
PropTypes
.
object
,
results
:
PropTypes
.
arrayOf
(
PropTypes
.
object
),
results
:
PropTypes
.
arrayOf
(
PropTypes
.
object
),
updateFilters
:
PropTypes
.
func
,
updateFilters
:
PropTypes
.
func
,
...
...
src/app/pages/Listings/ExampleListing.page.js
View file @
331510e9
...
@@ -23,7 +23,7 @@ const ExampleListingPage = () => {
...
@@ -23,7 +23,7 @@ const ExampleListingPage = () => {
type
:
'
entry
'
,
type
:
'
entry
'
,
fields
:
[
'
categories[]
'
],
fields
:
[
'
categories[]
'
],
params
:
{
params
:
{
contentTypeIds
:
[
'
e
vent
Categories
'
],
contentTypeIds
:
[
'
e
xample
Categories
'
],
},
},
},
},
],
],
...
...
src/app/pages/Records/ExampleRecord.page.js
View file @
331510e9
...
@@ -6,10 +6,7 @@ import ExampleRecord from '~/features/exampleRecord/components/ExampleRecord';
...
@@ -6,10 +6,7 @@ import ExampleRecord from '~/features/exampleRecord/components/ExampleRecord';
const
ExampleRecordPage
=
({
entry
})
=>
{
const
ExampleRecordPage
=
({
entry
})
=>
{
return
(
return
(
<
MainLayout
>
<
MainLayout
>
<
ExampleRecord
<
ExampleRecord
entry
=
{
entry
}
/
>
entry
=
{
entry
}
language
=
{
entry
?
entry
.
sys
.
language
:
'
en-GB
'
}
/
>
<
/MainLayout
>
<
/MainLayout
>
);
);
};
};
...
...
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