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

implement sharding calculator #628

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
9 changes: 9 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ Changes for Crate Admin Interface
Unreleased
==========

2019/06/30 1.15.1
=================

Feature
-------

- sharding-calculator: a simple tool to walk a user through the process, how
to split their crate table into shards. Can also read stats from existing table.

2019/04/03 1.15.0
=================

Expand Down
13 changes: 13 additions & 0 deletions app/conf/plugins.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,17 @@
"controller": "ShardsController"
}
}
}, {
"name": "calculator",
"uri": "static/plugins/tutorial/calculator.js",
"stylesheet": "static/plugins/tutorial/calculator.css",
"enterprise": false,
"routing": {
"/calculator": {
"name": "calculator",
"url": "/calculator",
"templateUrl": "static/plugins/tutorial/calculator.html",
"controller": "CalculatorController"
}
}
}]
103 changes: 103 additions & 0 deletions app/plugins/tutorial/calculator.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@

.cr-panel-block--calculator{ /* refer to .cr-panel-block--info */
/* big box */
background-color: #353535;
margin-top: 10px;
margin-bottom: 10px;
padding-top: 0px;
padding-right: 10px;
padding-bottom: 10px;
padding-left: 10px;
border: 1px solid #545454;
}

.cr-panel-block__calculator{ /* refer to cr-panel-block__item */
margin: 5px;
}
.cr-panel-block__calculator__header{
padding-bottom: 3px;
letter-spacing: 0.6px;
font-weight: bold;
background-color: #353535;
font-size: 10px;
}

.cr-panel-block__calculator__content{
/* small box */
width:100%;
margin-left:10px;
margin-right:10px;
margin-top:0px;
margin-bottom:0px;
padding: 7px;
font-size: 13px;
overflow: hidden;
word-break: normal;
border: 1px solid #242424 !important;
border-radius: 3px;
background: #242424 !important;
}


.result {
font-size:14px;
font-weight: bold;
color: #55d4f5; /*crate blue*/
}


.last_row {
padding-bottom:0px !important;
margin-bottom:0px !important;
}

.column {
float: left;
width: 50%;
padding: 5px;
}

/* Clear floats after the columns */
.row:after {
content: "";
display: table;
clear: both;
}

input{
width:50px;
background-color:#545454;
border: 1px solid #545454;
border-radius: 4px;
}


input:disabled {
color: #606060;
}

select {
width:auto;
background-color:#545454;
border: 1px solid #545454;
border-radius: 4px;
}

select:disabled {
color: #606060;
}

.crb-conatiner { /*crb ... cool-radio-button*/
width: 100%;
overflow: hidden;
}

.crb-button { /*crb ... cool-radio-button*/
float: left;
padding-left: -25px;
margin-right: -15px;
}

.crb-description { /*crb ... cool-radio-button*/
padding-top: 0.3%;
}
Loading