Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
alekskivuls committed Oct 20, 2015
0 parents commit d5819ef
Show file tree
Hide file tree
Showing 16 changed files with 346 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
mvnw.bat
mvnw.cmd
mvnw
.mvn
.gradle
*.sw?
.#*
*#
*~
/build
/code
.classpath
.project
.settings
.metadata
.factorypath
.recommenders
bin
build
lib/
target
.factorypath
.springBeans
interpolated*.xml
dependency-reduced-pom.xml
build.log
_site/
.*.md.html
manifest.yml
MANIFEST.MF
settings.xml
activemq-data
overridedb.*
*.iml
*.ipr
*.iws
.idea
*.jar
.DS_Store
.factorypath
68 changes: 68 additions & 0 deletions CloudLion/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>cloudlion</groupId>
<artifactId>CloudLion</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>

<name>CloudLion</name>
<description>Cloud IDE</description>

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.2.7.RELEASE</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.8</java.version>
</properties>

<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>

<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derby</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>ace</artifactId>
<version>1.2.0</version>
</dependency>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>jquery</artifactId>
<version>2.1.4</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>


</project>
12 changes: 12 additions & 0 deletions CloudLion/src/main/java/cloudlion/CloudLionApplication.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package cloudlion;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class CloudLionApplication {

public static void main(String[] args) {
SpringApplication.run(CloudLionApplication.class, args);
}
}
22 changes: 22 additions & 0 deletions CloudLion/src/main/java/cloudlion/controllers/WebController.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package cloudlion.controllers;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class WebController {
@RequestMapping(value={"/", "index"})
String index(){
return "index";
}

@RequestMapping("editor")
String editor(){
return "editor";
}

@RequestMapping("signup")
String signUp(){
return "signup";
}
}
Empty file.
93 changes: 93 additions & 0 deletions CloudLion/src/main/resources/static/css/cloudlion.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
* {
margin: 0;
color: black;
}
body {
background-image: url(../img/ptrbackground.jpg);
margin-top: 0;
background-position: cover;

}
header{
background-color: #f5f5f5;
font-size: 35px;
width: 90%;
padding-left: 10%;
box-shadow: 5px 5px 5px #000033;
font-family: Verdana;
}

header span {
margin-top: 15px;
font-size: 20px;
}
header a {
text-decoration: none;
}
.lion {
background-image: url(../img/lion.png);
background-repeat: no-repeat;
background-position: left;
}

.lion:visited {
color: black;
}

.right {
float: right;
text-decoration: none;
}

#login{
background-color: #f5f5f5;
float:right;
margin-top: 10%;
margin-right:75px;
padding: 10px;
box-shadow: 5px 5px 5px #000033;

}

#signup{
float: left;
margin: 15px;
padding: 15px 1000px 100px 15px;
background-color: #f5f5f5;
box-shadow: 5px 5px 5px #000033;
}

#editor {
margin-top: 45px;
margin-left: 10%;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}

#option {
background-color:black;
margin-right: 60%;
padding-bottom:100%;
padding-right: 30px;
margin-left: -90px;
float: left;
}
label {
display:block;
float: left;
text-align: right;
padding-right: 20px;
font-weight: bold;

}
input {
display:block;
margin-top: 5px;
}

a:hover{
font-weight: bold;
}
6 changes: 6 additions & 0 deletions CloudLion/src/main/resources/static/html/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<a href = "index" class="lion">CloudLion</a>
<span class="right">
<a href = "index">Home</a>&nbsp;
<a href = "editor">Editor</a>&nbsp;
<a href = "signup">Sign Up</a>&nbsp;
</span>
Binary file added CloudLion/src/main/resources/static/img/lion.ico
Binary file not shown.
Binary file added CloudLion/src/main/resources/static/img/lion.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions CloudLion/src/main/resources/static/js/header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$('#header').load('html/header.html');
32 changes: 32 additions & 0 deletions CloudLion/src/main/resources/templates/editor.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head lang="en">
<title>Editor</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="css/cloudlion.css" />
<link rel="icon" href="lion.png" type="image/x-icon" />
<script src="webjars/jquery/2.1.4/jquery.min.js"></script>
</head>
<body>
<header id = "header"></header>
<div id="option">
Pick a Theme
<select>
<option value="Chaos" onclick="setTheme()">Chaos</option>
<option value="katzenmilch">Katzenmilch</option>
</select>
</div>
<div id="editor">function foo(items) {
var x = "All this is syntax highlighted";
return x;
}
</div>
<script src="webjars/ace/1.2.0/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script>
<script>
var editor = ace.edit("editor");
editor.setTheme("ace/theme/katzenmilch");
editor.session.setMode("ace/mode/javascript");
</script>
<script src="js/header.js"></script>
</body>
</html>
22 changes: 22 additions & 0 deletions CloudLion/src/main/resources/templates/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head lang="en">
<title>Cloud Lion</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" type="text/css" href="css/cloudlion.css"/>
<link rel="icon" href="lion.png" type="image/x-icon"/>
<script src="webjars/jquery/2.1.4/jquery.min.js"></script>
</head>
<body>
<header id = "header"></header>
<div id="login">
<h3>Please Login</h3>
<label for="userName"></label>
<input type="text" name="userName" id="userName" required="required" placeholder="Pick a username"/><br/>
<label for="myPassword"></label>
<input type="password" name="myPassword" id="myPassword" placeholder="Create a password"/><br/>
<input type="Submit" value="Login"/>
</div>
<script src="js/header.js"></script>
</body>
</html>
27 changes: 27 additions & 0 deletions CloudLion/src/main/resources/templates/signup.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head lang="en">
<title>Sign Up</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="css/cloudlion.css" />
<link rel="icon" href="lion.png" type="image/x-icon" />
<script src="webjars/jquery/2.1.4/jquery.min.js"></script>
</head>
<body>
<header id = "header"></header>
<div id="signup">
<h3>Create your personal account</h3>
<br/>
<form>
<label for="userName">Username </label><br/>
<input type="text" name="userName" id="userName" required="required" placeholder="Pick a username"/><br/>
<label for="myEmail">Email </label><br/>
<input type="email" name="myEmail" id="myEmail" required="required" placeholder="Your email"/><br/>
<label for="myPassword">Password </label><br/>
<input type="password" name="myPassword" id="myPassword" placeholder="Create a password"/><br/>
<input type="Submit" value="Sign Up"/>
</form>
</div>
<script src="js/header.js"></script>
</body>
</html>
21 changes: 21 additions & 0 deletions CloudLion/src/test/java/cloudlion/CloudLionApplicationTests.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package cloudlion;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.web.WebAppConfiguration;

import cloudlion.CloudLionApplication;

import org.springframework.boot.test.SpringApplicationConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes = CloudLionApplication.class)
@WebAppConfiguration
public class CloudLionApplicationTests {

@Test
public void contextLoads() {
}

}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Cloud Lion IDE
==============

0 comments on commit d5819ef

Please sign in to comment.