From a7d68c5640d2a39088ca7a145addbee4e6c70ba4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eetu=20M=C3=A4kel=C3=A4?= Date: Sat, 13 Sep 2014 15:20:03 +0300 Subject: [PATCH] clean source to actually match .editorconfig so such changes wouldn't clutter actual functional commits any more --- app/index.jade | 4 ++-- app/scripts/config.ls | 2 +- app/scripts/sparql/sparqlService.ls | 2 +- app/scripts/turtle/turtle.ls | 8 ++++---- app/styles/main.styl | 26 +++++++++++++------------- gulp/build.ls | 2 +- gulp/wiredep.ls | 2 +- 7 files changed, 23 insertions(+), 23 deletions(-) diff --git a/app/index.jade b/app/index.jade index 7b237b8..45e359b 100644 --- a/app/index.jade +++ b/app/index.jade @@ -22,7 +22,7 @@ html(lang="en") // endbuild title snapper - + body(ng-app="app") .ui.dimmer.page(ng-class="{active:authOpen}"): .ui.modal.transition.visible h3.header Authentication required @@ -35,7 +35,7 @@ html(lang="en") input(type='password', ng-model="password") .actions button.ui.green.button(ng-click="setAuth()") Ok - button.ui.red.button(ng-click="dismissAuth()") Cancel + button.ui.red.button(ng-click="dismissAuth()") Cancel main(ui-view="") // build:js(app) scripts/vendor.js // bower:js diff --git a/app/scripts/config.ls b/app/scripts/config.ls index f8c57bb..7b323d4 100644 --- a/app/scripts/config.ls +++ b/app/scripts/config.ls @@ -15,7 +15,7 @@ angular.module('app', ['http-auth-interceptor','toastr','ngAnimate','ngStorage', url: '/?data&restEndpoint&sparqlEndpoint&graphIRI&configuration', templateUrl: 'partials/main.html', controller: 'MainCtrl' - $urlRouterProvider.otherwise('/') + $urlRouterProvider.otherwise('/') .config (toastrConfig) -> angular.extend toastrConfig, allowHtml: false diff --git a/app/scripts/sparql/sparqlService.ls b/app/scripts/sparql/sparqlService.ls index 5aea7dd..4bef19b 100644 --- a/app/scripts/sparql/sparqlService.ls +++ b/app/scripts/sparql/sparqlService.ls @@ -123,4 +123,4 @@ angular.module('fi.seco.sparql',[]) else '"' + value + '"^^<'+binding.datatype+'>' else if (binding['xml:lang']) then '"' + value + '"@' + binding['xml:lang'] else '"' + value + '"' - ) \ No newline at end of file + ) diff --git a/app/scripts/turtle/turtle.ls b/app/scripts/turtle/turtle.ls index c80c8bc..f94056f 100644 --- a/app/scripts/turtle/turtle.ls +++ b/app/scripts/turtle/turtle.ls @@ -46,7 +46,7 @@ CodeMirror.defineMode "turtle", (config) -> state.curPos = "MLL" stream.eatWhile(/[^"]/) "string-2" - else + else state.tokenize = tokenLiteral(ch) (if error then state.tokenize(stream, state) + " error" else state.tokenize(stream, state)) else if /[{}\(\),\.;\[\]]/.test(ch) @@ -182,7 +182,7 @@ CodeMirror.defineMode "turtle", (config) -> else if curPunc is "{" pushContext state, "}", stream.column! else if /[\]\}\)]/.test(curPunc) - while state.context and state.context.type is "pattern" then popContext state + while state.context and state.context.type is "pattern" then popContext state popContext state if state.context and curPunc is state.context.type else if curPunc is "." and state.context and state.context.type is "pattern" popContext state @@ -197,7 +197,7 @@ CodeMirror.defineMode "turtle", (config) -> indent: (state, textAfter) -> firstChar = textAfter and textAfter.charAt(0) context = state.context - while context and context.type is "pattern" then if /[\]\}]/.test(firstChar) then context = context.prev + while context and context.type is "pattern" then if /[\]\}]/.test(firstChar) then context = context.prev closing = context and firstChar is context.type unless context return (if state.indent isnt 0 then state.indent else indentUnit) if curPunc is ";" @@ -209,4 +209,4 @@ CodeMirror.defineMode "turtle", (config) -> else context.indent + ((if closing then 0 else indentUnit)) -CodeMirror.defineMIME "text/turtle", "turtle" \ No newline at end of file +CodeMirror.defineMIME "text/turtle", "turtle" diff --git a/app/styles/main.styl b/app/styles/main.styl index d3c86e0..7f0412a 100644 --- a/app/styles/main.styl +++ b/app/styles/main.styl @@ -1,18 +1,18 @@ -.CodeMirror { - height: auto; - border-top: 1px solid black; - border-bottom: 1px solid black; -} +.CodeMirror { + height: auto; + border-top: 1px solid black; + border-bottom: 1px solid black; +} -.CodeMirror-scroll { - max-height: 90vh; -} +.CodeMirror-scroll { + max-height: 90vh; +} .CodeMirror-activeline [title] { position:relative } -.clearfix +.clearfix clear:both .CodeMirror-activeline [title].cm-matchhighlight:after { @@ -20,11 +20,11 @@ padding: 4px 8px; color: #333; position:absolute; - white-space: nowrap; - left: 30%; + white-space: nowrap; + left: 30%; top: -180%; - border-radius: 5px; - box-shadow: 0px 0px 4px #222; + border-radius: 5px; + box-shadow: 0px 0px 4px #222; color: #999; background-color : white; } diff --git a/gulp/build.ls b/gulp/build.ls index 2364fc6..b5bbf95 100644 --- a/gulp/build.ls +++ b/gulp/build.ls @@ -1,5 +1,5 @@ require!{ - gulp + gulp nib } $ = require("gulp-load-plugins")! diff --git a/gulp/wiredep.ls b/gulp/wiredep.ls index 146a2d3..2d5d42d 100644 --- a/gulp/wiredep.ls +++ b/gulp/wiredep.ls @@ -23,4 +23,4 @@ gulp.task \wiredep:scripts, -> .pipe(wiredep(directory: "app/bower_components")) .pipe(gulp.dest("app")) -gulp.task \wiredep, <[wiredep:styles wiredep:scripts]> \ No newline at end of file +gulp.task \wiredep, <[wiredep:styles wiredep:scripts]>