diff options
author | ferhat elmas <elmas.ferhat@gmail.com> | 2017-03-16 10:50:22 +0100 |
---|---|---|
committer | ferhat elmas <elmas.ferhat@gmail.com> | 2017-03-16 10:50:22 +0100 |
commit | d94cd94c0d0cefbb176460bb675f81034333eb26 (patch) | |
tree | cd8839e7b1dbeb17ccfff5834085440082a55bdf | |
parent | 709fdc6ce0184034dfe2df7c413772c19a4455f0 (diff) |
Typo fixes
-rw-r--r-- | system/admin/config/config.go | 4 | ||||
-rw-r--r-- | system/admin/static/editor/js/materialNote.js | 14 | ||||
-rw-r--r-- | system/api/analytics/init.go | 2 | ||||
-rw-r--r-- | system/api/push.go | 2 | ||||
-rw-r--r-- | system/tls/enable.go | 2 |
5 files changed, 12 insertions, 12 deletions
diff --git a/system/admin/config/config.go b/system/admin/config/config.go index 3a21e16..d623592 100644 --- a/system/admin/config/config.go +++ b/system/admin/config/config.go @@ -60,7 +60,7 @@ func (c *Config) MarshalEditor() ([]byte, error) { }, editor.Field{ View: editor.Input("AdminEmail", c, map[string]string{ - "label": "Adminstrator Email (notified of internal system information)", + "label": "Administrator Email (notified of internal system information)", }), }, editor.Field{ @@ -139,7 +139,7 @@ func (c *Config) MarshalEditor() ([]byte, error) { script := []byte(` <script> $(function() { - // hide default fields & labels unecessary for the config + // hide default fields & labels unnecessary for the config var fields = $('.default-fields'); fields.css('position', 'relative'); fields.find('input:not([type=submit])').remove(); diff --git a/system/admin/static/editor/js/materialNote.js b/system/admin/static/editor/js/materialNote.js index a43fc05..fbb01cf 100644 --- a/system/admin/static/editor/js/materialNote.js +++ b/system/admin/static/editor/js/materialNote.js @@ -192,7 +192,7 @@ var func = (function() { /** * returns bnd (bounds) from rect - * - IE Compatability Issue: http://goo.gl/sRLOAo + * - IE Compatibility Issue: http://goo.gl/sRLOAo * - Scroll Issue: http://goo.gl/sNjUc * @param {Rect} rect * @return {Object} bounds @@ -2248,8 +2248,8 @@ var dom = (function() { * @property {Array} [options.toolbar] * @property {Boolean} [options.airMode=false] * @property {Array} [options.airPopover] - * @property {Fucntion} [options.onInit] initialize - * @property {Fucntion} [options.onsubmit] + * @property {Function} [options.onInit] initialize + * @property {Function} [options.onsubmit] */ options: { // >>>>>>> CK extra options @@ -2414,7 +2414,7 @@ var dom = (function() { fontSizes: ['12', '13', '14', '15', '16', '17', '18', '25', '37'], - // pallete colors(n x n) + // palette colors(n x n) colors: [//grey brown dpurple purple indigo blue cyan green lgreen yellow amber orange dorange red pink ['#fafafa', '#efebe9', '#7e57c2', '#ab47bc', '#5c6bc0', '#42a5f5', '#26c6da', '#66bb6a', '#9ccc65', '#ffee58', '#ffca28', '#ffa726', '#ff7043', '#ef5350', '#ec407a'], ['#f5f5f5', '#d7ccc8', '#673ab7', '#9c27b0', '#3f51b5', '#2196f3', '#00bcd4', '#4caf50', '#8bc34a', '#ffeb3b', '#ffc107', '#ff9800', '#ff5722', '#f44336', '#e91e63'], @@ -2427,7 +2427,7 @@ var dom = (function() { ['#424242', '#4e342e', '#651fff', '#d500f9', '#3d5afe', '#2979ff', '#00e5ff', '#00e676', '#76ff03', '#ffea00', '#ffc400', '#ff9100', '#ff3d00', '#ff1744', '#f50057'], ['#212121', '#3e2723', '#6200ea', '#aa00ff', '#304ffe', '#2962ff', '#00b8d4', '#00c853', '#64dd17', '#ffd600', '#ffab00', '#ff6d00', '#dd2c00', '#d50000', '#c51162'], ], - // pallete colors(n x n) + // palette colors(n x n) colorTitles: [ //grey brown dpurple purple indigo blue cyan green lgreen yellow amber orange dorange red pink ['grey lighten5', 'brown lighten5', 'deep-purple lighten1', 'purple lighten1', 'indigo lighten1', 'blue lighten1', 'cyan lighten1', 'green lighten1', 'light-green lighten1', 'yellow lighten1', 'amber lighten1', 'orange lighten1', 'deep-orange lighten1', 'red lighten1', 'pink lighten1'], @@ -2875,7 +2875,7 @@ var dom = (function() { * [workaround] for old jQuery * passing an array of style properties to .css() * will result in an object of property-value pairs. - * (compability with version < 1.9) + * (compatibility with version < 1.9) * * @private * @param {jQuery} $obj @@ -6865,7 +6865,7 @@ var dom = (function() { if (!$.isFunction(buttonInfo)) { continue; } var $button = $(buttonInfo(langInfo, options)); - $button.attr('data-name', groupButtons[i]); // set button's alias, becuase to get button element from $toolbar + $button.attr('data-name', groupButtons[i]); // set button's alias, because to get button element from $toolbar $group.append($button); } $toolbar.append($group); diff --git a/system/api/analytics/init.go b/system/api/analytics/init.go index f24425b..caa187a 100644 --- a/system/api/analytics/init.go +++ b/system/api/analytics/init.go @@ -137,7 +137,7 @@ func serve() { // ChartData returns the map containing decoded javascript needed to chart RANGE // days of data by day func ChartData() (map[string]interface{}, error) { - // set thresholds for today and the RANGE-1 days preceeding + // set thresholds for today and the RANGE-1 days preceding times := [RANGE]time.Time{} dates := [RANGE]string{} now := time.Now() diff --git a/system/api/push.go b/system/api/push.go index e936ef7..2b68d5b 100644 --- a/system/api/push.go +++ b/system/api/push.go @@ -35,7 +35,7 @@ func push(res http.ResponseWriter, req *http.Request, pt func() interface{}, dat err := pusher.Push(v.String(), nil) // check for error, "http2: recursive push not allowed" - // and return, supressing a log message + // and return, suppressing a log message if err != nil && err.Error() == http2.ErrRecursivePush.Error() { return true } diff --git a/system/tls/enable.go b/system/tls/enable.go index 4279b55..f2c65d5 100644 --- a/system/tls/enable.go +++ b/system/tls/enable.go @@ -32,7 +32,7 @@ func setup() { // get host/domain and email from Config to use for TLS request to Let's encryption. // we will fail fatally if either are not found since Let's Encrypt will rate-limit - // and sending incomplete requests is wasteful and guarenteed to fail its check + // and sending incomplete requests is wasteful and guaranteed to fail its check host, err := db.Config("domain") if err != nil { log.Fatalln("Error identifying host/domain during TLS set-up.", err) |