Skip to content

Commit 0a25c21

Browse files
authored
Merge pull request #18 from delphi-hub/develop
Update for the project baseline (configuration etc.)
2 parents 3585ef4 + 846c6a5 commit 0a25c21

38 files changed

+22474
-0
lines changed

.github/ISSUE_TEMPLATE/Bug_report.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
5+
---
6+
7+
**Describe the bug**
8+
A clear and concise description of what the bug is.
9+
10+
**To Reproduce**
11+
Steps to reproduce the behavior:
12+
1. Go to '...'
13+
2. Click on '....'
14+
3. Scroll down to '....'
15+
4. See error
16+
17+
**Expected behavior**
18+
A clear and concise description of what you expected to happen.
19+
20+
**Screenshots**
21+
If applicable, add screenshots to help explain your problem.
22+
23+
**Affected components (if known)**
24+
Choose those applicable here: crawler, cli, webapi, webapp, management
25+
26+
**Desktop (please complete the following information, if relevant):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information, if relevant):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
5+
---
6+
7+
**Is your feature request related to a problem? Please describe.**
8+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
9+
10+
**Describe the solution you'd like**
11+
A clear and concise description of what you want to happen.
12+
13+
**Describe alternatives you've considered**
14+
A clear and concise description of any alternative solutions or features you've considered.
15+
Just using "none" is okay here.
16+
17+
**Additional context**
18+
Add any other context or screenshots about the feature request here.

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
*.class
22
*.log
3+
4+
/.idea/
5+
/target/
6+
/project/project/
7+
/project/target/

CODE_OF_CONDUCT.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
## Our Standards
8+
9+
Examples of behavior that contributes to creating a positive environment include:
10+
11+
* Using welcoming and inclusive language
12+
* Being respectful of differing viewpoints and experiences
13+
* Gracefully accepting constructive criticism
14+
* Focusing on what is best for the community
15+
* Showing empathy towards other community members
16+
17+
Examples of unacceptable behavior by participants include:
18+
19+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
* Trolling, insulting/derogatory comments, and personal or political attacks
21+
* Public or private harassment
22+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
* Other conduct which could reasonably be considered inappropriate in a professional setting
24+
25+
## Our Responsibilities
26+
27+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28+
29+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30+
31+
## Scope
32+
33+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34+
35+
## Enforcement
36+
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38+
39+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40+
41+
## Attribution
42+
43+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44+
45+
[homepage]: http://contributor-covenant.org
46+
[version]: http://contributor-covenant.org/version/1/4/

app/controllers/HomeController.scala

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package controllers
2+
3+
import javax.inject._
4+
import play.api.mvc._
5+
6+
/**
7+
* Created by benhermann on 02.01.18.
8+
*/
9+
@Singleton
10+
class HomeController @Inject()(cc: ControllerComponents) extends AbstractController(cc) {
11+
12+
/**
13+
* Create an Action to render an HTML page with a welcome message.
14+
* The configuration in the `routes` file means that this method
15+
* will be called when the application receives a `GET` request with
16+
* a path of `/`.
17+
*/
18+
def index = Action {
19+
Ok(views.html.index("Delphi - Management Interface"))
20+
}
21+
22+
}

app/views/index.scala.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
@*
2+
* This template takes a single argument, a String containing a
3+
* message to display.
4+
*@
5+
@(message: String)
6+
7+
@*
8+
* Call the `main` template with two arguments. The first
9+
* argument is a `String` with the title of the page, the second
10+
* argument is an `Html` object containing the body of the page.
11+
*@
12+
@main("Delphi - Management Interface") {
13+
14+
@*
15+
* Get an `Html` object by calling the built-in Play welcome
16+
* template and passing a `String` message.
17+
*@
18+
@welcome(message, style = "scala")
19+
20+
}

app/views/main.scala.html

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
@*
2+
* This template is called from the `index` template. This template
3+
* handles the rendering of the page header and body tags. It takes
4+
* two arguments, a `String` for the title of the page and an `Html`
5+
* object to insert into the body of the page.
6+
*@
7+
@(title: String)(content: Html)
8+
9+
<!DOCTYPE html>
10+
<html lang="en-US">
11+
<head>
12+
<meta charset="utf-8">
13+
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
14+
<link rel="stylesheet" media="screen" href="@routes.Assets.versioned("stylesheets/bootstrap.min.css")" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
15+
<link rel="stylesheet" href="@routes.Assets.versioned("stylesheets/default.css")">
16+
<link rel="icon" type="image/png" href="@routes.Assets.versioned("images/favicon.png")">
17+
<link href="https://fonts.googleapis.com/css?family=Source+Serif+Pro" rel="stylesheet">
18+
<title>@title</title>
19+
</head>
20+
<body>
21+
<nav class="navbar fixed-top navbar-collapse navbar-toggleable-md navbar-expand-lg navbar-light">
22+
<a class="navbar-brand py-0" href="#">
23+
<img src="assets/images/logo.svg" height=30 class="d-inline-block align-top" alt="">
24+
</a>
25+
<!--<a href="/" class="nav-link active py-0">Home</a>
26+
<a href="team.html" class="nav-link py-0">Team</a>
27+
<!--| <a href="documentation.html">Documentation</a>
28+
| <a href="delphi/">Try it!</a>-->
29+
<!--<a href="https://github.com/delphi-hub" class="nav-link py-0">Participate!</a>-->
30+
</nav>
31+
32+
<header>
33+
</header>
34+
<main>
35+
@* And here's where we render the `Html` object containing
36+
* the page content. *@
37+
@content
38+
</main>
39+
<footer class="fixed-bottom">
40+
<p class="text-center">Delphi ([email protected]) is maintained by the <a href="https://www.hni.uni-paderborn.de/en/software-engineering/">Secure Software Engineering group</a> at <a href="https://www.uni-paderborn.de/">Paderborn University</a></p>
41+
</footer>
42+
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
43+
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
44+
<script src="@routes.Assets.versioned("scripts/bootstrap.min.js")" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
45+
</body>
46+
</html>

app/views/welcome.scala.html

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
@(message: String, style: String = "scala")
2+
3+
<section id="top">
4+
<div class="jumbotron">
5+
<h1>Welcome to the Delphi-Management-Interface!</h1>
6+
</div>
7+
</section>
8+
9+
<div id="content" class="container">
10+
<article>
11+
12+
<h1>What is Delphi?</h1>
13+
14+
<p>
15+
Delphi is a platform to retrieve meta-information on JVM-bytecode based projects.
16+
</p>
17+
18+
19+
<h2>What can Delphi do for you?</h2>
20+
21+
<p>
22+
You can either query a complete set of information for a specific project or you can retrieve a list of
23+
matching projects based on specific metrics.
24+
</p>
25+
26+
<h2>What is this page used for?</h2>
27+
28+
<p>
29+
Once implemented, this page will give you access to the management interface of Delphi. You will be able
30+
to control the Delphi-Crawlers, configure the Elasticsearch database and administrate your instances of
31+
Delphi. For now, this page is a placeholder for the future implementation.
32+
</p>
33+
34+
35+
36+
37+
</article>
38+
39+
40+
41+
</div>
42+

build.sbt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name := """delphi-management"""
2+
3+
organization := "de.upb"
4+
5+
version := "1.0.0-SNAPSHOT"
6+
7+
scalaVersion := "2.12.4"
8+
9+
lazy val root = (project in file(".")).enablePlugins(PlayScala)
10+
.enablePlugins(BuildInfoPlugin).
11+
settings(
12+
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion),
13+
buildInfoPackage := "de.upb.cs.swt.delphi.management"
14+
)
15+
16+
resolvers += Resolver.sonatypeRepo("snapshots")
17+
18+
libraryDependencies += guice
19+
libraryDependencies += "org.scalatestplus.play" %% "scalatestplus-play" % "3.1.2" % Test
20+
libraryDependencies += "com.h2database" % "h2" % "1.4.196"

0 commit comments

Comments
 (0)