ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject [1/9] incubator-ignite git commit: # ignite-843 Cleanup module.
Date Thu, 02 Jul 2015 08:26:56 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-843 4a0fd0331 -> 8e7926053


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/8e792605/modules/webconfig/src/main/webapp/css/login.css
----------------------------------------------------------------------
diff --git a/modules/webconfig/src/main/webapp/css/login.css b/modules/webconfig/src/main/webapp/css/login.css
deleted file mode 100644
index be024ca..0000000
--- a/modules/webconfig/src/main/webapp/css/login.css
+++ /dev/null
@@ -1,217 +0,0 @@
-/*!
- * Sign Up/Login Box v0.0.1 (http://codepen.io/koheishingai/FLvgs)
- * Copyright 2014 Kohei Shingai.
- * Licensed under MIT
- */
-
-#sumsk {
-    position: absolute;
-    width: 100%;
-    height: 282px;
-    z-index: 9999;
-    display: none;
-    color: rgba(0, 0, 0, 0.66);
-    text-align: center;
-    line-height: 279px;
-    box-shadow: inset 0px 0px 50px rgba(0, 0, 0, 0.5);
-    text-shadow: 0px 0px rgba(255, 255, 255, 0.57);
-}
-
-#err {
-    margin: 0 37px;
-    color: rgba(68, 68, 68, 0.78);
-    display: none;
-}
-
-#err {
-    margin-top: 13px;
-    margin-bottom: 1px;
-}
-
-#signup,#welcome,#name,#pass,#signupb,#logoutb {
-    transition: all 0.3s ease 0s;
-    -webkit-transition: all 0.3s ease 0s;
-    -moz-transition: all 0.3s ease 0s;
-    -o-transition: all 0.3s ease 0s;
-}
-
-#logint:hover {
-    text-decoration: underline;
-}
-
-#logint {
-    color: rgba(66, 134, 237, 0.78);
-    cursor: pointer;
-    text-decoration: none;
-    width: 100%;
-    margin: -4px 37px;
-    font-size: 14px;
-    position: absolute;
-    left: 0px;
-    bottom: 15px;
-}
-
-#name {
-    -moz-appearance: none;
-    -webkit-appearance: none;
-    padding: 0 8px;
-    margin: 44px auto;
-    background: #fff;
-    border: 1px solid #d9d9d9;
-    border-top: 1px solid silver;
-    -moz-border-radius: 1px;
-    -webkit-border-radius: 1px;
-    border-radius: 1px;
-    color: #838383;
-    width: 409px;
-    display: block;
-    margin-bottom: 10px;
-    z-index: 1;
-    position: relative;
-    -moz-box-sizing: border-box;
-    -webkit-box-sizing: border-box;
-    box-sizing: border-box;
-    direction: ltr;
-    height: 44px;
-    font-size: 16px;
-    text-align: left;
-}
-
-#password,#confirmpassword {
-    -moz-appearance: none;
-    -webkit-appearance: none;
-    padding: 0 8px;
-    margin: 16px auto;
-    background: #fff;
-    border: 1px solid #d9d9d9;
-    border-top: 1px solid silver;
-    -moz-border-radius: 1px;
-    -webkit-border-radius: 1px;
-    border-radius: 1px;
-    color: #838383;
-    width: 409px;
-    display: block;
-    margin-bottom: 10px;
-    z-index: 1;
-    position: relative;
-    -moz-box-sizing: border-box;
-    -webkit-box-sizing: border-box;
-    box-sizing: border-box;
-    direction: ltr;
-    height: 44px;
-    font-size: 16px;
-    text-align: left;
-}
-
-#name:hover,#pass:hover {
-    border: 1px solid #b9b9b9;
-    -moz-box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
-    -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
-    box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
-}
-
-#signup,#welcome {
-    margin: 0px;
-    padding: 3px 0px 9px;
-    color: rgb(255, 255, 255);
-    width: 100%;
-    text-align: center;
-    font-weight: normal;
-    background: rgb(248, 0, 0);
-    font-size: 22px;
-}
-
-#signupb,#logoutb {
-    border: 2px solid #E78282;
-    display: inline-block;
-    line-height: 23px;
-    padding: 5px 18px;
-    -webkit-border-radius: 2px;
-    background: #f37676;
-    font-weight: normal;
-    margin: 10px 0 0 0;
-    color: #fff;
-    position: absolute;
-    right: 9px;
-    bottom: 9px;
-    font-size: 17px;
-    width: 103px;
-    height: 35px;
-    outline: none;
-    cursor: pointer;
-}
-
-#userbox {
-    position: absolute;
-    width: 480px;
-    height: 324px;
-    background: white;
-    top: 50%;
-    margin-top: -174px;
-    left: 50%;
-    margin-left: -240px;
-}
-
-#logmsk {
-    position: absolute;
-    width: 100%;
-    height: 100%;
-    z-index: 9999;
-    background: rgb(40, 40, 40);
-    display: none;
-}
-
-body {
-    width: 100%;
-    height: 100%;
-    min-width: 300px;
-    min-height: 500px;
-    overflow: hidden;
-    margin: 0;
-    padding: 0;
-    position: absolute;
-    background: #fff;
-    color: #333;
-}
-
-body,input,select,td,textarea {
-    font-family: "Open Sans",sans-serif;
-}
-
-#header {
-    font: 13px/27px;
-    position: relative;
-    height: 60px;
-    width: 100%;
-    background: #f1f1f1;
-    white-space: nowrap;
-    display: -webkit-flex;
-    display: flex;
-    margin-left: 0!important;
-    margin-right: 0!important;
-}
-
-#login {
-    color: #fff;
-    margin-top: 9px;
-    display: block;
-    height: 40px;
-    width: 40px;
-    -webkit-border-radius: 40px;
-    -moz-border-radius: 40px;
-    -ms-border-radius: 40px;
-    -o-border-radius: 40px;
-    border-radius: 40px;
-    -webkit-transition: all .05s;
-    -moz-transition: all .05s;
-    -o-transition: all .05s;
-    transition: all .05s;
-    background-color: #FFF;
-    position: absolute;
-    right: 12px;
-    cursor: pointer;
-}
-
-#login:hover {
-    background: 0 0;
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/8e792605/modules/webconfig/src/main/webapp/home.html
----------------------------------------------------------------------
diff --git a/modules/webconfig/src/main/webapp/home.html b/modules/webconfig/src/main/webapp/home.html
deleted file mode 100644
index 02bb593..0000000
--- a/modules/webconfig/src/main/webapp/home.html
+++ /dev/null
@@ -1,26 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-    <meta charset="UTF-8">
-    <title>Ignite Configuration Tools</title>
-    <link rel="stylesheet" href="css/home.css">
-</head>
-
-<body>
-<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
-
-<div id="menu">
-    <ul>
-        <li><a href="#">Clusters</a></li>
-        <li><a href="#">Caches</a></li>
-        <li><a href="#">Persistance</a></li>
-        <li><a href="#">Clients</a></li>
-    </ul>
-</div>
-<div id="container">
-    <input type="button" onclick="saveConfiguration(null, 'myCfg', 10)" value="Save"/>
-</div>
-
-<script src="js/home.js"></script>
-</body>
-</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/8e792605/modules/webconfig/src/main/webapp/js/home.js
----------------------------------------------------------------------
diff --git a/modules/webconfig/src/main/webapp/js/home.js b/modules/webconfig/src/main/webapp/js/home.js
deleted file mode 100644
index b217303..0000000
--- a/modules/webconfig/src/main/webapp/js/home.js
+++ /dev/null
@@ -1,20 +0,0 @@
-$(function () {
-
-});
-
-function saveConfiguration(id, name, maxMemory) {
-    var cfg = {idStr:id, name: name, maxMemory: maxMemory};
-
-    $.ajax({
-        url : "configuration/save.do",
-        type: "POST",
-        data : JSON.stringify(cfg),
-        contentType: "application/json",
-        success: function(data, textStatus, jqXHR) {
-            alert("Success:" + data);
-        },
-        error: function (jqXHR, textStatus, errorThrown) {
-            alert("Error: " + errorThrown);
-        }
-    });
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/8e792605/modules/webconfig/src/main/webapp/js/login.js
----------------------------------------------------------------------
diff --git a/modules/webconfig/src/main/webapp/js/login.js b/modules/webconfig/src/main/webapp/js/login.js
deleted file mode 100644
index 2af8a08..0000000
--- a/modules/webconfig/src/main/webapp/js/login.js
+++ /dev/null
@@ -1,170 +0,0 @@
-$(function () {
-    var flg = {
-        loginFlag:true,
-        inProgress:false,
-        nameValid: -1,
-        passValid: -1
-    };
-
-    switchLoginSignup(flg.loginFlag);
-
-    $('#logint').click(function () {
-        if (flg.inProgress)
-            return;
-
-        resetFields();
-
-        flg.loginFlag = !flg.loginFlag;
-
-        switchLoginSignup(flg.loginFlag);
-    });
-
-    $("#name").keyup(validateForm());
-    $("#password").keyup(validateForm);
-    $("#confirmpassword").keyup(validateForm);
-
-    function validateForm() {
-        var valid = true;
-        var err = null;
-
-        var name = $('#name');
-
-        var len = name.val().length;
-
-        if (len > 13 || len == 0) {
-            if (len != 0) {
-                name.css('background', 'rgb(255, 214, 190)');
-                err = "ID: Too long"
-            }
-            else
-                name.css('background', 'rgb(255, 255, 255)');
-
-            valid = false;
-        }
-        else
-            name.css('background', 'rgb(255, 255, 255)');
-
-        var pass = $('#password');
-
-        len = pass.val().length;
-
-        if (len > 10 || len == 0) {
-            if (len > 10) {
-                pass.css('background', 'rgb(255, 214, 190)');
-                err = "Password: Too long";
-            }
-            else
-                pass.css('background', 'rgb(255, 255, 255)');
-
-            valid = false;
-        }
-        else
-            pass.css('background', 'rgb(255, 255, 255)');
-
-        if (!flg.loginFlag) {
-            var confPass = $('#confirmpassword');
-
-            len = confPass.val().length;
-
-            if (len > 10 || len == 0) {
-                if (len > 10) {
-                    confPass.css('background', 'rgb(255, 214, 190)');
-                    err = 'Confirm Password: Too long';
-                }
-                else
-                    confPass.css('background', 'rgb(255, 255, 255)');
-
-                valid = false;
-            }
-            else
-                confPass.css('background', 'rgb(255, 255, 255)');
-
-            if (valid) {
-                var passVal = pass.val();
-                var confPassVal = confPass.val();
-
-                if (passVal.length > 0 && confPassVal.length > 0 &&
!(passVal === confPassVal)) {
-                    err = "Passwords do not match";
-                    valid = false;
-                }
-            }
-        }
-
-        flg.valid = valid;
-
-        if (err != null)
-            $('#err').css('color', 'rgb(255, 57, 19)').text(err).fadeIn();
-        else
-            $("#err").fadeOut();
-
-        if (valid)
-            $('#signupb').css('opacity', '1').css('cursor', 'pointer');
-        else
-            $('#signupb').css('opacity', '0.2').css('cursor', 'default');
-    }
-
-    $('#signupb').click(function () {
-        if (flg.valid && !flg.inProgress) {
-            $('#name, #password, #logint, #err, #signupb').css('opacity', '0.2');
-
-            flg.inProgress = true;
-
-            loginOrSignup();
-        }
-    });
-
-    function resetFields() {
-        flg.valid = true;
-        $('#err').hide();
-        $('#name, #password, #logint, #err, #signupb').css('opacity', '1');
-        $('#name').css('background', 'rgb(255, 255, 255)');
-        $('#password').css('background', 'rgb(255, 255, 255)');
-        $('#signupb').css('opacity', '0.2').css('cursor', 'default');
-        $('#name, #password, #confirmpassword').val('')
-    }
-
-    function switchLoginSignup(login) {
-        if (!login) {
-            $('#signup').text('Sign up');
-            $('#signupb').text('Sign up');
-            $('#confirmpassword').fadeIn();
-            $('#logint').text('Login as an existing user')
-        } else {
-            $('#signup').text('Login');
-            $('#signupb').text('Login');
-            $('#confirmpassword').fadeOut();
-            $('#logint').text('Sign up as a new user')
-        }
-    }
-
-    function loginOrSignup() {
-        var formData = {login:$("#name").val(), password:$("#password").val(), confirmPassword:$("#confirmpassword").val()};
-        var url = flg.loginFlag == 1 ? "login.do" : "users/register.do";
-
-        $.ajax({
-            url : url,
-            type: "POST",
-            data : formData,
-            success: function(data, textStatus, jqXHR) {
-                flg.inProgress = false;
-
-                if (data.success) {
-                    // Logged in, redirect to home page.
-                    window.location.replace("home.html");
-                }
-                else {
-                    $('#name, #password, #err, #logint, #signupb').css('opacity', '1');
-
-                    $("#err").css('color', 'rgb(255, 57, 19)').text(data.err).fadeIn();
-                }
-            },
-            error: function (jqXHR, textStatus, errorThrown) {
-                $('#name, #password, #logint, #err, #signupb').css('opacity', '1');
-
-                $("#err").text("Unexpected error occurred: " + errorThrown).fadeIn();
-
-                flg.inProgress = false;
-            }
-        });
-    }
-});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/8e792605/modules/webconfig/src/main/webapp/login.html
----------------------------------------------------------------------
diff --git a/modules/webconfig/src/main/webapp/login.html b/modules/webconfig/src/main/webapp/login.html
deleted file mode 100644
index 732d642..0000000
--- a/modules/webconfig/src/main/webapp/login.html
+++ /dev/null
@@ -1,36 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-    <meta charset="UTF-8">
-    <title>Ignite Configuration Tools</title>
-    <link rel="stylesheet" href="css/login.css">
-</head>
-
-<body>
-<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
-<div id="logmsk" style="display: block;">
-    <div id="userbox">
-        <h1 id="signup" style="background-repeat: initial;">
-            Login
-        </h1>
-
-        <input id="name" placeholder="ID"
-               style="opacity: 1; background-color: rgb(255, 255, 255); background-repeat:
initial;">
-        <input id="password" type="password" placeholder="Password"
-               style="opacity: 1; background-color: rgb(255, 255, 255); background-repeat:
initial;">
-
-        <input id="confirmpassword" type="password" placeholder="Confirm Password"
-               style="opacity: 1; background-color: rgb(255, 255, 255); background-repeat:
initial; display: none">
-
-        <p id="err" style="display: none; opacity: 1;">ID:</p>
-
-        <span id="logint" style="opacity: 1;">Sign up as a new user</span>
-        <button id="signupb" style="opacity: 0.2; cursor: default;">Login</button>
-    </div>
-</div>
-
-<script src="js/login.js"></script>
-
-</body>
-
-</html>
\ No newline at end of file


Mime
View raw message