Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Nos Hs2023
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Språksamlingane
stadnamn
Nos Hs2023
Commits
66a456f9
Commit
66a456f9
authored
3 years ago
by
esikkala
Browse files
Options
Downloads
Patches
Plain Diff
Test route based code splitting
parent
ddb7a086
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/client/containers/SemanticPortal.js
+37
-24
37 additions, 24 deletions
src/client/containers/SemanticPortal.js
src/client/index.js
+4
-2
4 additions, 2 deletions
src/client/index.js
with
41 additions
and
26 deletions
src/client/containers/SemanticPortal.js
+
37
−
24
View file @
66a456f9
import
React
,
{
useEffect
}
from
'
react
'
import
React
,
{
useEffect
,
lazy
}
from
'
react
'
import
PropTypes
from
'
prop-types
'
import
PropTypes
from
'
prop-types
'
import
intl
from
'
react-intl-universal
'
import
intl
from
'
react-intl-universal
'
import
{
has
}
from
'
lodash
'
import
{
has
}
from
'
lodash
'
...
@@ -13,29 +13,6 @@ import moment from 'moment'
...
@@ -13,29 +13,6 @@ import moment from 'moment'
import
MomentUtils
from
'
@date-io/moment
'
import
MomentUtils
from
'
@date-io/moment
'
import
'
moment/locale/fi
'
import
'
moment/locale/fi
'
import
Grid
from
'
@material-ui/core/Grid
'
import
Grid
from
'
@material-ui/core/Grid
'
// ** General components **
import
InfoHeader
from
'
../components/main_layout/InfoHeader
'
import
TextPage
from
'
../components/main_layout/TextPage
'
import
Message
from
'
../components/main_layout/Message
'
import
FacetBar
from
'
../components/facet_bar/FacetBar
'
// ** General components end **
// ** Portal specific components and configs **
import
TopBar
from
'
../components/perspectives/sampo/TopBar
'
import
Main
from
'
../components/perspectives/sampo/Main
'
import
FacetedSearchPerspective
from
'
../components/perspectives/sampo/FacetedSearchPerspective
'
import
FullTextSearch
from
'
../components/perspectives/sampo/FullTextSearch
'
import
ClientFSPerspective
from
'
../components/perspectives/sampo/client_fs/ClientFSPerspective
'
import
ClientFSMain
from
'
../components/perspectives/sampo/client_fs/ClientFSMain
'
import
InstanceHomePage
from
'
../components/perspectives/sampo/InstanceHomePage
'
import
Footer
from
'
../components/perspectives/sampo/Footer
'
import
KnowledgeGraphMetadataTable
from
'
../components/perspectives/sampo/KnowledgeGraphMetadataTable
'
import
{
perspectiveConfig
}
from
'
../configs/sampo/PerspectiveConfig
'
import
{
perspectiveConfigOnlyInfoPages
}
from
'
../configs/sampo/PerspectiveConfigOnlyInfoPages
'
import
{
rootUrl
,
layoutConfig
}
from
'
../configs/sampo/GeneralConfig
'
// ** Portal specific components and configs end **
import
{
import
{
fetchResultCount
,
fetchResultCount
,
fetchPaginatedResults
,
fetchPaginatedResults
,
...
@@ -70,6 +47,42 @@ import {
...
@@ -70,6 +47,42 @@ import {
fetchKnowledgeGraphMetadata
fetchKnowledgeGraphMetadata
}
from
'
../actions
'
}
from
'
../actions
'
import
{
filterResults
}
from
'
../selectors
'
import
{
filterResults
}
from
'
../selectors
'
import
{
perspectiveConfig
}
from
'
../configs/sampo/PerspectiveConfig
'
import
{
perspectiveConfigOnlyInfoPages
}
from
'
../configs/sampo/PerspectiveConfigOnlyInfoPages
'
import
{
rootUrl
,
layoutConfig
}
from
'
../configs/sampo/GeneralConfig
'
// ** General components **
// import InfoHeader from '../components/main_layout/InfoHeader'
// import TextPage from '../components/main_layout/TextPage'
// import Message from '../components/main_layout/Message'
// import FacetBar from '../components/facet_bar/FacetBar'
const
InfoHeader
=
lazy
(()
=>
import
(
'
../components/main_layout/InfoHeader
'
))
const
TextPage
=
lazy
(()
=>
import
(
'
../components/main_layout/TextPage
'
))
const
Message
=
lazy
(()
=>
import
(
'
../components/main_layout/Message
'
))
const
FacetBar
=
lazy
(()
=>
import
(
'
../components/facet_bar/FacetBar
'
))
// ** General components end **
// ** Portal specific components and configs **
// import TopBar from '../components/perspectives/sampo/TopBar'
// import FacetedSearchPerspective from '../components/perspectives/sampo/FacetedSearchPerspective'
// import Main from '../components/perspectives/sampo/Main'
// import FullTextSearch from '../components/perspectives/sampo/FullTextSearch'
// import ClientFSPerspective from '../components/perspectives/sampo/client_fs/ClientFSPerspective'
// import ClientFSMain from '../components/perspectives/sampo/client_fs/ClientFSMain'
// import InstanceHomePage from '../components/perspectives/sampo/InstanceHomePage'
// import Footer from '../components/perspectives/sampo/Footer'
// import KnowledgeGraphMetadataTable from '../components/perspectives/sampo/KnowledgeGraphMetadataTable'
const
portalID
=
'
sampo
'
const
TopBar
=
lazy
(()
=>
import
(
'
../components/perspectives/
'
+
portalID
+
'
/TopBar
'
))
const
Main
=
lazy
(()
=>
import
(
'
../components/perspectives/
'
+
portalID
+
'
/Main
'
))
const
FacetedSearchPerspective
=
lazy
(()
=>
import
(
'
../components/perspectives/
'
+
portalID
+
'
/FacetedSearchPerspective
'
))
const
FullTextSearch
=
lazy
(()
=>
import
(
'
../components/perspectives/
'
+
portalID
+
'
/FullTextSearch
'
))
const
ClientFSPerspective
=
lazy
(()
=>
import
(
'
../components/perspectives/
'
+
portalID
+
'
/client_fs/ClientFSPerspective
'
))
const
ClientFSMain
=
lazy
(()
=>
import
(
'
../components/perspectives/
'
+
portalID
+
'
/client_fs/ClientFSMain
'
))
const
InstanceHomePage
=
lazy
(()
=>
import
(
'
../components/perspectives/
'
+
portalID
+
'
/InstanceHomePage
'
))
const
Footer
=
lazy
(()
=>
import
(
'
../components/perspectives/
'
+
portalID
+
'
/Footer
'
))
const
KnowledgeGraphMetadataTable
=
lazy
(()
=>
import
(
'
../components/perspectives/
'
+
portalID
+
'
/KnowledgeGraphMetadataTable
'
))
// ** Portal specific components and configs end **
const
useStyles
=
makeStyles
(
theme
=>
({
const
useStyles
=
makeStyles
(
theme
=>
({
root
:
{
root
:
{
...
...
This diff is collapsed.
Click to expand it.
src/client/index.js
+
4
−
2
View file @
66a456f9
import
React
from
'
react
'
import
React
,
{
Suspense
}
from
'
react
'
import
{
render
}
from
'
react-dom
'
import
{
render
}
from
'
react-dom
'
import
{
Provider
}
from
'
react-redux
'
import
{
Provider
}
from
'
react-redux
'
import
ReduxToastr
from
'
react-redux-toastr
'
import
ReduxToastr
from
'
react-redux-toastr
'
...
@@ -44,7 +44,9 @@ render(
...
@@ -44,7 +44,9 @@ render(
<
Provider
store
=
{
store
}
>
<
Provider
store
=
{
store
}
>
<
div
id
=
'
app
'
>
<
div
id
=
'
app
'
>
<
Router
history
=
{
history
}
>
<
Router
history
=
{
history
}
>
<
App
/>
<
Suspense
fallback
=
{
<
div
>
Loading
...
<
/div>}
>
<
App
/>
<
/Suspense
>
<
/Router
>
<
/Router
>
<
ReduxToastr
<
ReduxToastr
timeOut
=
{
0
}
timeOut
=
{
0
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment