Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up visualization of team.json data with vis.js network #431

Merged
merged 3 commits into from
Dec 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ typings/
# gatsby files
.cache/
public
bin
target
tmp

# Mac files
.DS_Store
Expand Down
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: node_js
node_js:
- "lts/*"
before_script:
- npm install -g gatsby
script:
- cd gatsby/lobid/
- npm install
- gatsby build
5 changes: 5 additions & 0 deletions gatsby/lobid/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,9 @@ exports.createPages = ({ actions }) => {
path: "/team",
component: path.resolve(`./src/pages/team-de.js`)
});

createPage({
path: "/visual",
component: path.resolve(`./src/pages/visual.js`)
});
};
10 changes: 10 additions & 0 deletions gatsby/lobid/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion gatsby/lobid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
"react-dom": "^16.12.0",
"reactstrap": "^8.4.1",
"typescript": "^3.6.0-beta",
"utf-8-validate": "^5.0.2"
"utf-8-validate": "^5.0.2",
"vis-data": "^7.1.1",
"vis-network": "^8.5.4"
},
"devDependencies": {
"prettier": "^1.19.1"
Expand Down
46 changes: 46 additions & 0 deletions gatsby/lobid/src/components/footer.html.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import React from "react"

import wappenPng from "./images/wappen.png";

export default class Footer extends React.Component {
render() {
return (
<div className="panel panel-default footer">
<div className="panel-body">
<span className="pull-left">
<img src={wappenPng} alt="NRW-Wappen" /> &nbsp; lobid |
LOD-Dienste des{" "}
<a href="https://www.hbz-nrw.de/produkte/linked-open-data">
hbz — Hochschulbibliothekszentrum des Landes NRW
</a>
</span>
<span className="pull-right">
<a href="https://www.hbz-nrw.de/impressum">
{this.props.companyDetails}
</a>
{" | "}
<a href="https://github.com/hbz/lobid/blob/master/conf/Datenschutzerklaerung_lobid.textile">
{this.props.privacy}
</a>
{" | "}
<a
href="https://twitter.com/lobidorg"
style={{ marginRight: "12px" }}
>
<i className="fa fa-twitter" aria-hidden="true"></i> Twitter
</a>
<a
href="https://github.com/hbz/lobid"
style={{ marginRight: "12px" }}
>
<i className="fa fa-github" aria-hidden="true"></i> GitHub
</a>
<a href="http://blog.lobid.org" style={{ marginRight: "12px" }}>
<i className="fa fa-pencil" aria-hidden="true"></i> Blog
</a>
</span>
</div>
</div>
)
}
}
164 changes: 164 additions & 0 deletions gatsby/lobid/src/components/header.html.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
import React from "react"

import {
UncontrolledDropdown,
DropdownToggle,
DropdownMenu,
DropdownItem
} from "reactstrap";

import lobidLogoPng from "./images/lobid.png";

export default class Header extends React.Component {
render() {
return (
<div className="navbar navbar-default" role="navigation">
<div className="container-fluid" id="header">
<div className="navbar-header">
<button
type="button"
className="navbar-toggle collapsed"
data-toggle="collapse"
data-target="#lobid-nav"
>
<span className="sr-only">Navigation ein/ausblenden</span>
<span className="icon-bar"></span>
<span className="icon-bar"></span>
<span className="icon-bar"></span>
</button>
<a className="navbar-brand" href="/">
<span>
<img id="butterfly" src={lobidLogoPng} alt="lobid-logo" />
</span>
</a>
</div>
<div className="navbar-collapse " id="lobid-nav">
<ul className="nav navbar-nav">
<li>
<a href="/resources">resources</a>
</li>
<li>
<a href="/organisations">organisations</a>
</li>
<li>
<a href="/gnd">gnd</a>
</li>
</ul>
<div style={{ marginRight: "-6px" }}>
<ul className="nav navbar-nav navbar-right ">
<li>
<UncontrolledDropdown>
<DropdownToggle
style={{
padding: "9px",
background: "transparent",
marginTop: "0px",
lineHeight: "30px"
}}
>
{this.props.publications}
<b
className="caret"
style={{
marginLeft: "2px"
}}
></b>
</DropdownToggle>
<DropdownMenu right>
<DropdownItem
tag="a"
href="http://blog.lobid.org/"
style={{
paddingLeft: "6px",
color: "black",
textDecoration: "none",
lineHeight: "30px"
}}
>
Blog
</DropdownItem>
<DropdownItem divider />
<DropdownItem
as="a"
href="http://slides.lobid.org/"
style={{
paddingLeft: "6px",
color: "black",
textDecoration: "none"
}}
>
Slides
</DropdownItem>
</DropdownMenu>
</UncontrolledDropdown>
</li>

<li>
<a
href={this.props.languageLink}
title={this.props.languageTooltip}
>
<span className="glyphicon glyphicon-globe"></span>
&nbsp;
{this.props.language}
</a>
</li>

<li>
<UncontrolledDropdown>
<DropdownToggle
className="glyphicon glyphicon-info-sign"
style={{
padding: "11px",
background: "transparent",
marginTop: "-3px",
lineHeight: "27px"
}}
>
<b
className="caret"
style={{
marginTop: "-4px",
marginLeft: "2px"
}}
></b>
</DropdownToggle>
<DropdownMenu right>
<DropdownItem
tag="a"
href={this.props.teamLink}
style={{
paddingLeft: "6px",
color: "black",
textDecoration: "none",
lineHeight: "30px"
}}
>
Team
</DropdownItem>
<DropdownItem divider />
<DropdownItem
as="a"
href={
this.props.contactPointId +
"?subject=Feedback%20zu%20lobid.org"
}
style={{
paddingLeft: "6px",
color: "black",
textDecoration: "none"
}}
>
Feedback
</DropdownItem>
</DropdownMenu>
</UncontrolledDropdown>
</li>
</ul>
</div>
</div>
</div>
</div>)
}
}

Loading