diff --git a/CHANGES.txt b/CHANGES.txt index 39c3104e..79cf1734 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -5,6 +5,16 @@ Changes for Crate Admin Interface Unreleased ========== +2018/08/27 1.10.3 +================= + +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. + + 2018/06/29 1.10.3 ================= diff --git a/app/conf/plugins.json b/app/conf/plugins.json old mode 100644 new mode 100755 index f53e5a6a..279dcc64 --- a/app/conf/plugins.json +++ b/app/conf/plugins.json @@ -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" + } + } }] diff --git a/app/plugins/tutorial/calculator.css b/app/plugins/tutorial/calculator.css new file mode 100644 index 00000000..9a5b9f64 --- /dev/null +++ b/app/plugins/tutorial/calculator.css @@ -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%; +} \ No newline at end of file diff --git a/app/plugins/tutorial/calculator.html b/app/plugins/tutorial/calculator.html new file mode 100755 index 00000000..94df472e --- /dev/null +++ b/app/plugins/tutorial/calculator.html @@ -0,0 +1,319 @@ +
+ {{:: 'CALCULATOR.DESCRIPTION' | translate}} +
+ ++ {{:: 'CALCULATOR.CPUS_DESCRIPTION' | translate}} +
++ {{:: 'CALCULATOR.RAMSTORAGE_DESCRIPTION' | translate}} +
+ ++ {{:: 'CALCULATOR.RAM_DESCRIPTION_1' | translate}} +
+ ++ {{:: 'CALCULATOR.DATA_DESCRIPTION_1' | translate}} +
+ + + ++ {{:: 'CALCULATOR.DATA_DESCRIPTION_5' | translate}} +
+ ++
+ {{:: 'CALCULATOR.PARTITION_DESCRIPTION_1' | translate}} +
+ ++ {{:: 'CALCULATOR.PARTITION_DESCRIPTION_2' | translate}}
+ + + + ++ {{:: 'CALCULATOR.PARTITION_DESCRIPTION_3' | translate}}
+ + partitions. + ++ {{:: 'CALCULATOR.REDUNDANCY_DESCRIPTION' | translate}} +
+ ++ {{:: 'CALCULATOR.CALCULATION_DESCRIPTION' | translate}} +
+ + +