From 6dc691d10dd8ed89ac138dd9f2d37b828bc77671 Mon Sep 17 00:00:00 2001 From: Manfred Touron Date: Thu, 5 Sep 2019 15:15:03 +0200 Subject: [PATCH] feat: setup eclint while generating + eclint fix all --- .dockerignore | 2 +- .editorconfig | 23 +- .prod/keycloak/.gitignore | 2 +- .prod/keycloak/docker-compose.yml | 2 +- .prod/keycloak/themes/pathwar/README.md | 2 +- .../pathwar/account/resources/css/account.css | 6 +- .../pathwar/admin/resources/css/styles.css | 2 +- .../themes/pathwar/admin/theme.properties | 2 +- .../common/resources/lib/angular/errors.json | 2 +- .../resources/lib/angular/treeview/README.md | 36 +- .../lib/angular/treeview/angular.treeview.js | 148 +- .../angular/treeview/angular.treeview.min.js | 10 +- .../angular/treeview/css/angular.treeview.css | 4 +- .../lib/angular/ui-bootstrap-tpls-0.11.0.js | 38 +- .../common/resources/lib/angular/version.json | 2 +- .../resources/lib/filesaver/FileSaver.js | 306 +- .../resources/lib/fileupload/FileAPI.min.js | 4 +- .../angular-file-upload-html5-shim.min.js | 2 +- .../fileupload/angular-file-upload-shim.js | 404 +- .../angular-file-upload-shim.min.js | 2 +- .../lib/fileupload/angular-file-upload.js | 266 +- .../lib/fileupload/angular-file-upload.min.js | 2 +- .../lib/patternfly/css/patternfly.css | 22 +- .../common/resources/lib/ui-ace/ace.js | 1009 +++-- .../common/resources/lib/ui-ace/min/ace.js | 1 - .../lib/ui-ace/min/mode-javascript.js | 2 +- .../resources/lib/ui-ace/min/theme-github.js | 2 +- .../lib/ui-ace/min/worker-javascript.js | 2 +- .../resources/lib/ui-ace/mode-javascript.js | 58 +- .../common/resources/lib/ui-ace/ui-ace.min.js | 2 +- .../resources/lib/ui-ace/worker-javascript.js | 144 +- .../common/resources/lib/zocial/zocial.css | 234 +- .../themes/pathwar/email/theme.properties | 2 +- .../pathwar/login/resources/css/login.css | 30 +- .../keycloak/themes/pathwar/welcome/index.ftl | 40 +- .../pathwar/welcome/resources/css/welcome.css | 154 +- .../themes/pathwar/welcome/theme.properties | 2 +- LICENSE | 398 +- Makefile | 3 +- README.md | 43 +- build/docker/protoc/Dockerfile | 15 +- build/docker/protoc/Makefile | 2 +- docs/fr/lightpaper.md | 6 +- entity/entity.pb.go | 3692 +++++++++-------- entity/entity.proto | 4 +- go.mod | 8 +- go.sum | 16 +- level/skeleton/.gitkeep | 1 + level/stack/.gitkeep | 1 + server/server.pb.go | 122 +- server/server.pb.gw.go | 357 +- swagger.yaml | 735 ++-- web/README.md | 14 +- web/gatsby-browser.js | 2 +- web/gatsby-node.js | 6 +- web/gatsby-ssr.js | 2 +- web/src/actions/teams.js | 102 +- web/src/actions/tournaments.js | 148 +- web/src/actions/userSession.js | 108 +- web/src/api/index.js | 12 +- web/src/components/ProtectedRoute.js | 8 +- .../coupon/ValidateCouponStampCard.js | 2 +- web/src/components/levels/LevelCardPreview.js | 6 +- web/src/components/teams/AllTeamsList.js | 26 +- .../components/teams/TeamsStatsStampCard.js | 2 +- web/src/components/teams/UserTeamsList.js | 10 +- .../tournament/AllTeamTournamentsList.js | 14 +- .../tournament/AllTournamentsList.js | 2 +- web/src/constants/actionTypes.js | 2 +- web/src/pages/AllTournamentsPage.js | 14 +- web/src/pages/DashboardPage.js | 2 +- web/src/pages/LogoutPage.js | 8 +- web/src/pages/TournamentPage.js | 7 +- web/src/pages/app.js | 2 +- web/src/state/ReduxWrapper.js | 2 +- web/src/state/teamsReducer.js | 6 +- web/src/state/tournamentReducer.js | 12 +- web/src/state/userSessionReducer.js | 2 +- 78 files changed, 4857 insertions(+), 4038 deletions(-) diff --git a/.dockerignore b/.dockerignore index cb016173b..6824de690 100644 --- a/.dockerignore +++ b/.dockerignore @@ -10,4 +10,4 @@ Dockerfile vendor/ .gitignore .dockerignore -docker-compose.yml \ No newline at end of file +docker-compose.yml diff --git a/.editorconfig b/.editorconfig index 730513cb9..d17f97d61 100644 --- a/.editorconfig +++ b/.editorconfig @@ -10,15 +10,27 @@ trim_trailing_whitespace = true indent_style = space indent_size = 4 -[Makefile] +[*.mod] +indent_style = tab + +[{Makefile,**.mk}] indent_style = tab [*.go] indent_style = tab +[*.css] +indent_size = 2 + [*.proto] indent_size = 2 +[*.ftl] +indent_size = 2 + +[*.toml] +indent_size = 2 + [*.swift] indent_size = 4 @@ -30,16 +42,19 @@ indent_size = 2 block_comment_start = /* block_comment_end = */ -[*.html] +[*.{html,htm}] indent_size = 2 [*.bat] end_of_line = crlf -[*.{json,yml}] +[*.{yml,yaml}] +indent_size = 2 + +[*.json] indent_size = 2 -[.{babelrc,eslintrc}] +[.{babelrc,eslintrc,prettierrc}] indent_size = 2 [{Fastfile,.buckconfig,BUCK}] diff --git a/.prod/keycloak/.gitignore b/.prod/keycloak/.gitignore index 0737481e8..3de092b6e 100644 --- a/.prod/keycloak/.gitignore +++ b/.prod/keycloak/.gitignore @@ -1,2 +1,2 @@ .env -/data/ \ No newline at end of file +/data/ diff --git a/.prod/keycloak/docker-compose.yml b/.prod/keycloak/docker-compose.yml index 9602a783b..30b6e4cc3 100644 --- a/.prod/keycloak/docker-compose.yml +++ b/.prod/keycloak/docker-compose.yml @@ -43,4 +43,4 @@ services: networks: keycloak-internal: service-proxy: - external: true \ No newline at end of file + external: true diff --git a/.prod/keycloak/themes/pathwar/README.md b/.prod/keycloak/themes/pathwar/README.md index ab617de12..f33de921f 100644 --- a/.prod/keycloak/themes/pathwar/README.md +++ b/.prod/keycloak/themes/pathwar/README.md @@ -1 +1 @@ -Pathwar Theme \ No newline at end of file +Pathwar Theme diff --git a/.prod/keycloak/themes/pathwar/account/resources/css/account.css b/.prod/keycloak/themes/pathwar/account/resources/css/account.css index 3878e43ac..ddcd7be2f 100644 --- a/.prod/keycloak/themes/pathwar/account/resources/css/account.css +++ b/.prod/keycloak/themes/pathwar/account/resources/css/account.css @@ -28,7 +28,7 @@ header .navbar { } .navbar-pf .navbar-utility { - right: 20px; + right: 20px; top: -34px; font-size: 12px; } @@ -101,7 +101,7 @@ header .navbar { } .bs-sidebar ul li.active a:hover { - border-right: none; + border-right: none; } @@ -274,4 +274,4 @@ hr + .form-horizontal { font-size: 16px; padding: 10px; margin: 50px 0; -} \ No newline at end of file +} diff --git a/.prod/keycloak/themes/pathwar/admin/resources/css/styles.css b/.prod/keycloak/themes/pathwar/admin/resources/css/styles.css index c846ed73a..0e1a7aeed 100644 --- a/.prod/keycloak/themes/pathwar/admin/resources/css/styles.css +++ b/.prod/keycloak/themes/pathwar/admin/resources/css/styles.css @@ -220,7 +220,7 @@ th.w-40 { .sidebar-pf .nav-pills > li > a:hover{ background: #393f44; - border-color:#292e34; + border-color:#292e34; border-left-color: #393f44; color: #fff; } diff --git a/.prod/keycloak/themes/pathwar/admin/theme.properties b/.prod/keycloak/themes/pathwar/admin/theme.properties index 83e4e92d6..65a180529 100644 --- a/.prod/keycloak/themes/pathwar/admin/theme.properties +++ b/.prod/keycloak/themes/pathwar/admin/theme.properties @@ -1,3 +1,3 @@ parent=base import=common/keycloak -styles=lib/patternfly/css/patternfly.css node_modules/select2/select2.css css/styles.css lib/angular/treeview/css/angular.treeview.css node_modules/text-security/dist/text-security.css \ No newline at end of file +styles=lib/patternfly/css/patternfly.css node_modules/select2/select2.css css/styles.css lib/angular/treeview/css/angular.treeview.css node_modules/text-security/dist/text-security.css diff --git a/.prod/keycloak/themes/pathwar/common/resources/lib/angular/errors.json b/.prod/keycloak/themes/pathwar/common/resources/lib/angular/errors.json index 0fe728641..6e86e7f37 100644 --- a/.prod/keycloak/themes/pathwar/common/resources/lib/angular/errors.json +++ b/.prod/keycloak/themes/pathwar/common/resources/lib/angular/errors.json @@ -1 +1 @@ -{"id":"ng","generated":"Thu Aug 13 2015 11:47:38 GMT-0700 (PDT)","errors":{"ng":{"areq":"Argument '{0}' is {1}","cpta":"Can't copy! TypedArray destination cannot be mutated.","test":"no injector found for element argument to getTestability","cpws":"Can't copy! Making copies of Window or Scope instances is not supported.","btstrpd":"App Already Bootstrapped with this Element '{0}'","cpi":"Can't copy! Source and destination are identical.","badname":"hasOwnProperty is not a valid {0} name"},"$http":{"legacy":"The method `{0}` on the promise returned from `$http` has been disabled.","badreq":"Http request configuration must be an object. Received: {0}"},"ngRepeat":{"badident":"alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.","iexp":"Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.","dupes":"Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}","iidexp":"'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'."},"$sce":{"imatcher":"Matchers may only be \"self\", string patterns or RegExp objects","icontext":"Attempted to trust a value in invalid context. Context: {0}; Value: {1}","iwcard":"Illegal sequence *** in string matcher. String: {0}","insecurl":"Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}","iequirks":"Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode. You can fix this by adding the text to the top of your HTML document. See http://docs.angularjs.org/api/ng.$sce for more information.","unsafe":"Attempting to use an unsafe value in a safe context.","itype":"Attempted to trust a non-string value in a content requiring a string: Context: {0}"},"ngPattern":{"noregexp":"Expected {0} to be a RegExp but was {1}. Element: {2}"},"$controller":{"ctrlfmt":"Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.","noscp":"Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`."},"$parse":{"isecfn":"Referencing Function in Angular expressions is disallowed! Expression: {0}","isecwindow":"Referencing the Window in Angular expressions is disallowed! Expression: {0}","ueoe":"Unexpected end of expression: {0}","isecdom":"Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}","lexerr":"Lexer Error: {0} at column{1} in expression [{2}].","esc":"IMPOSSIBLE","isecobj":"Referencing Object in Angular expressions is disallowed! Expression: {0}","lval":"Trying to assing a value to a non l-value","isecff":"Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}","syntax":"Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].","isecfld":"Attempting to access a disallowed field in Angular expressions! Expression: {0}"},"jqLite":{"offargs":"jqLite#off() does not support the `selector` argument","onargs":"jqLite#on() does not support the `selector` or `eventData` parameters","nosel":"Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element"},"$animate":{"notcsel":"Expecting class selector starting with '.' got '{0}'.","nongcls":"$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the \"{0}\" CSS class."},"$q":{"norslvr":"Expected resolverFn, got '{0}'","qcycle":"Expected promise to be resolved with value other than itself '{0}'"},"$injector":{"pget":"Provider '{0}' must define $get factory method.","cdep":"Circular dependency found: {0}","nomod":"Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.","strictdi":"{0} is not using explicit annotation and cannot be invoked in strict mode","modulerr":"Failed to instantiate module {0} due to:\n{1}","undef":"Provider '{0}' must return a value from $get factory method.","unpr":"Unknown provider: {0}","itkn":"Incorrect injection token! Expected service name as string, got {0}"},"filter":{"notarray":"Expected array but received: {0}"},"ngTransclude":{"orphan":"Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}"},"ngModel":{"nonassign":"Expression '{0}' is non-assignable. Element: {1}","datefmt":"Expected `{0}` to be a date","$asyncValidators":"Expected asynchronous validator to return a promise but got '{0}' instead.","constexpr":"Expected constant expression for `{0}`, but saw `{1}`.","numfmt":"Expected `{0}` to be a number"},"$location":{"nostate":"History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API","ipthprfx":"Invalid url \"{0}\", missing path prefix \"{1}\".","isrcharg":"The first argument of the `$location#search()` call must be a string or an object.","nobase":"$location in HTML5 mode requires a tag to be present!"},"$cacheFactory":{"iid":"CacheId '{0}' is already taken!"},"$interpolate":{"noconcat":"Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required. See http://docs.angularjs.org/api/ng.$sce","interr":"Can't interpolate: {0}\n{1}","nochgmustache":"angular-message-format.js currently does not allow you to use custom start and end symbols for interpolation.","reqcomma":"Expected a comma after the keyword “{0}” at line {1}, column {2} of text “{3}”","untermstr":"The string beginning at line {0}, column {1} is unterminated in text “{2}”","badexpr":"Unexpected operator “{0}” at line {1}, column {2} in text. Was expecting “{3}”. Text: “{4}”","dupvalue":"The choice “{0}” is specified more than once. Duplicate key is at line {1}, column {2} in text “{3}”","unsafe":"Use of select/plural MessageFormat syntax is currently disallowed in a secure context ({0}). At line {1}, column {2} of text “{3}”","reqother":"“other” is a required option.","reqendinterp":"Expecting end of interpolation symbol, “{0}”, at line {1}, column {2} in text “{3}”","reqarg":"Expected one of “plural” or “select” at line {0}, column {1} of text “{2}”","wantstring":"Expected the beginning of a string at line {0}, column {1} in text “{2}”","logicbug":"The messageformat parser has encountered an internal error. Please file a github issue against the AngularJS project and provide this message text that triggers the bug. Text: “{0}”","reqopenbrace":"The plural choice “{0}” must be followed by a message in braces at line {1}, column {2} in text “{3}”","unknarg":"Unsupported keyword “{0}” at line {0}, column {1}. Only “plural” and “select” are currently supported. Text: “{3}”","reqendbrace":"The plural/select choice “{0}” message starting at line {1}, column {2} does not have an ending closing brace. Text “{3}”"},"ngOptions":{"iexp":"Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}"},"$rootScope":{"inprog":"{0} already in progress","infdig":"{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}"},"$compile":{"noident":"Cannot bind to controller without identifier for directive '{0}'.","selmulti":"Binding to the 'multiple' attribute is not supported. Element: {0}","nodomevents":"Interpolations for HTML DOM event attributes are disallowed. Please use the ng- versions (such as ng-click instead of onclick) instead.","ctreq":"Controller '{0}', required by directive '{1}', can't be found!","nonassign":"Expression '{0}' used with directive '{1}' is non-assignable!","tplrt":"Template for directive '{0}' must have exactly one root element. {1}","iscp":"Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}","baddir":"Directive name '{0}' is invalid. The name should not contain leading or trailing whitespaces","noctrl":"Cannot bind to controller without directive '{0}'s controller.","multidir":"Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}","tpload":"Failed to load template: {0} (HTTP status: {1} {2})","uterdir":"Unterminated attribute, found '{0}' but no matching '{1}' found."},"$resource":{"badargs":"Expected up to 4 arguments [params, data, success, error], got {0} arguments","badmember":"Dotted member path \"@{0}\" is invalid.","badname":"hasOwnProperty is not a valid parameter name.","badcfg":"Error in resource configuration for action `{0}`. Expected response to contain an {1} but got an {2} (Request: {3} {4})"},"$route":{"norout":"Tried updating route when with no current route"},"$sanitize":{"badparse":"The sanitizer was unable to parse the following block of html: {0}"}}} \ No newline at end of file +{"id":"ng","generated":"Thu Aug 13 2015 11:47:38 GMT-0700 (PDT)","errors":{"ng":{"areq":"Argument '{0}' is {1}","cpta":"Can't copy! TypedArray destination cannot be mutated.","test":"no injector found for element argument to getTestability","cpws":"Can't copy! Making copies of Window or Scope instances is not supported.","btstrpd":"App Already Bootstrapped with this Element '{0}'","cpi":"Can't copy! Source and destination are identical.","badname":"hasOwnProperty is not a valid {0} name"},"$http":{"legacy":"The method `{0}` on the promise returned from `$http` has been disabled.","badreq":"Http request configuration must be an object. Received: {0}"},"ngRepeat":{"badident":"alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.","iexp":"Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.","dupes":"Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}","iidexp":"'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'."},"$sce":{"imatcher":"Matchers may only be \"self\", string patterns or RegExp objects","icontext":"Attempted to trust a value in invalid context. Context: {0}; Value: {1}","iwcard":"Illegal sequence *** in string matcher. String: {0}","insecurl":"Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}","iequirks":"Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode. You can fix this by adding the text to the top of your HTML document. See http://docs.angularjs.org/api/ng.$sce for more information.","unsafe":"Attempting to use an unsafe value in a safe context.","itype":"Attempted to trust a non-string value in a content requiring a string: Context: {0}"},"ngPattern":{"noregexp":"Expected {0} to be a RegExp but was {1}. Element: {2}"},"$controller":{"ctrlfmt":"Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.","noscp":"Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`."},"$parse":{"isecfn":"Referencing Function in Angular expressions is disallowed! Expression: {0}","isecwindow":"Referencing the Window in Angular expressions is disallowed! Expression: {0}","ueoe":"Unexpected end of expression: {0}","isecdom":"Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}","lexerr":"Lexer Error: {0} at column{1} in expression [{2}].","esc":"IMPOSSIBLE","isecobj":"Referencing Object in Angular expressions is disallowed! Expression: {0}","lval":"Trying to assing a value to a non l-value","isecff":"Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}","syntax":"Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].","isecfld":"Attempting to access a disallowed field in Angular expressions! Expression: {0}"},"jqLite":{"offargs":"jqLite#off() does not support the `selector` argument","onargs":"jqLite#on() does not support the `selector` or `eventData` parameters","nosel":"Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element"},"$animate":{"notcsel":"Expecting class selector starting with '.' got '{0}'.","nongcls":"$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the \"{0}\" CSS class."},"$q":{"norslvr":"Expected resolverFn, got '{0}'","qcycle":"Expected promise to be resolved with value other than itself '{0}'"},"$injector":{"pget":"Provider '{0}' must define $get factory method.","cdep":"Circular dependency found: {0}","nomod":"Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.","strictdi":"{0} is not using explicit annotation and cannot be invoked in strict mode","modulerr":"Failed to instantiate module {0} due to:\n{1}","undef":"Provider '{0}' must return a value from $get factory method.","unpr":"Unknown provider: {0}","itkn":"Incorrect injection token! Expected service name as string, got {0}"},"filter":{"notarray":"Expected array but received: {0}"},"ngTransclude":{"orphan":"Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}"},"ngModel":{"nonassign":"Expression '{0}' is non-assignable. Element: {1}","datefmt":"Expected `{0}` to be a date","$asyncValidators":"Expected asynchronous validator to return a promise but got '{0}' instead.","constexpr":"Expected constant expression for `{0}`, but saw `{1}`.","numfmt":"Expected `{0}` to be a number"},"$location":{"nostate":"History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API","ipthprfx":"Invalid url \"{0}\", missing path prefix \"{1}\".","isrcharg":"The first argument of the `$location#search()` call must be a string or an object.","nobase":"$location in HTML5 mode requires a tag to be present!"},"$cacheFactory":{"iid":"CacheId '{0}' is already taken!"},"$interpolate":{"noconcat":"Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required. See http://docs.angularjs.org/api/ng.$sce","interr":"Can't interpolate: {0}\n{1}","nochgmustache":"angular-message-format.js currently does not allow you to use custom start and end symbols for interpolation.","reqcomma":"Expected a comma after the keyword “{0}” at line {1}, column {2} of text “{3}”","untermstr":"The string beginning at line {0}, column {1} is unterminated in text “{2}”","badexpr":"Unexpected operator “{0}” at line {1}, column {2} in text. Was expecting “{3}”. Text: “{4}”","dupvalue":"The choice “{0}” is specified more than once. Duplicate key is at line {1}, column {2} in text “{3}”","unsafe":"Use of select/plural MessageFormat syntax is currently disallowed in a secure context ({0}). At line {1}, column {2} of text “{3}”","reqother":"“other” is a required option.","reqendinterp":"Expecting end of interpolation symbol, “{0}”, at line {1}, column {2} in text “{3}”","reqarg":"Expected one of “plural” or “select” at line {0}, column {1} of text “{2}”","wantstring":"Expected the beginning of a string at line {0}, column {1} in text “{2}”","logicbug":"The messageformat parser has encountered an internal error. Please file a github issue against the AngularJS project and provide this message text that triggers the bug. Text: “{0}”","reqopenbrace":"The plural choice “{0}” must be followed by a message in braces at line {1}, column {2} in text “{3}”","unknarg":"Unsupported keyword “{0}” at line {0}, column {1}. Only “plural” and “select” are currently supported. Text: “{3}”","reqendbrace":"The plural/select choice “{0}” message starting at line {1}, column {2} does not have an ending closing brace. Text “{3}”"},"ngOptions":{"iexp":"Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}"},"$rootScope":{"inprog":"{0} already in progress","infdig":"{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}"},"$compile":{"noident":"Cannot bind to controller without identifier for directive '{0}'.","selmulti":"Binding to the 'multiple' attribute is not supported. Element: {0}","nodomevents":"Interpolations for HTML DOM event attributes are disallowed. Please use the ng- versions (such as ng-click instead of onclick) instead.","ctreq":"Controller '{0}', required by directive '{1}', can't be found!","nonassign":"Expression '{0}' used with directive '{1}' is non-assignable!","tplrt":"Template for directive '{0}' must have exactly one root element. {1}","iscp":"Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}","baddir":"Directive name '{0}' is invalid. The name should not contain leading or trailing whitespaces","noctrl":"Cannot bind to controller without directive '{0}'s controller.","multidir":"Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}","tpload":"Failed to load template: {0} (HTTP status: {1} {2})","uterdir":"Unterminated attribute, found '{0}' but no matching '{1}' found."},"$resource":{"badargs":"Expected up to 4 arguments [params, data, success, error], got {0} arguments","badmember":"Dotted member path \"@{0}\" is invalid.","badname":"hasOwnProperty is not a valid parameter name.","badcfg":"Error in resource configuration for action `{0}`. Expected response to contain an {1} but got an {2} (Request: {3} {4})"},"$route":{"norout":"Tried updating route when with no current route"},"$sanitize":{"badparse":"The sanitizer was unable to parse the following block of html: {0}"}}} diff --git a/.prod/keycloak/themes/pathwar/common/resources/lib/angular/treeview/README.md b/.prod/keycloak/themes/pathwar/common/resources/lib/angular/treeview/README.md index 31c824fa8..58c429e8e 100644 --- a/.prod/keycloak/themes/pathwar/common/resources/lib/angular/treeview/README.md +++ b/.prod/keycloak/themes/pathwar/common/resources/lib/angular/treeview/README.md @@ -39,31 +39,31 @@ Here is a simple example. ```html
+ data-tree-id="abc" + data-tree-model="treedata" + data-node-id="id" + data-node-label="label" + data-node-children="children" >
``` Example model: ```javascript -$scope.treedata = +$scope.treedata = [ - { "label" : "User", "id" : "role1", "children" : [ - { "label" : "subUser1", "id" : "role11", "children" : [] }, - { "label" : "subUser2", "id" : "role12", "children" : [ - { "label" : "subUser2-1", "id" : "role121", "children" : [ - { "label" : "subUser2-1-1", "id" : "role1211", "children" : [] }, - { "label" : "subUser2-1-2", "id" : "role1212", "children" : [] } - ]} - ]} - ]}, - { "label" : "Admin", "id" : "role2", "children" : [] }, - { "label" : "Guest", "id" : "role3", "children" : [] } -]; + { "label" : "User", "id" : "role1", "children" : [ + { "label" : "subUser1", "id" : "role11", "children" : [] }, + { "label" : "subUser2", "id" : "role12", "children" : [ + { "label" : "subUser2-1", "id" : "role121", "children" : [ + { "label" : "subUser2-1-1", "id" : "role1211", "children" : [] }, + { "label" : "subUser2-1-2", "id" : "role1212", "children" : [] } + ]} + ]} + ]}, + { "label" : "Admin", "id" : "role2", "children" : [] }, + { "label" : "Guest", "id" : "role3", "children" : [] } +]; ``` ## Selection diff --git a/.prod/keycloak/themes/pathwar/common/resources/lib/angular/treeview/angular.treeview.js b/.prod/keycloak/themes/pathwar/common/resources/lib/angular/treeview/angular.treeview.js index 0e6512a1b..a2301bba7 100644 --- a/.prod/keycloak/themes/pathwar/common/resources/lib/angular/treeview/angular.treeview.js +++ b/.prod/keycloak/themes/pathwar/common/resources/lib/angular/treeview/angular.treeview.js @@ -1,50 +1,50 @@ /* - @license Angular Treeview version 0.1.6 - ⓒ 2013 AHN JAE-HA http://github.com/eu81273/angular.treeview - License: MIT - - - [TREE attribute] - angular-treeview: the treeview directive - tree-id : each tree's unique id. - tree-model : the tree model on $scope. - node-id : each node's id - node-label : each node's label - node-children: each node's children - -
-
-*/ + @license Angular Treeview version 0.1.6 + ⓒ 2013 AHN JAE-HA http://github.com/eu81273/angular.treeview + License: MIT + + + [TREE attribute] + angular-treeview: the treeview directive + tree-id : each tree's unique id. + tree-model : the tree model on $scope. + node-id : each node's id + node-label : each node's label + node-children: each node's children + +
+
+ */ (function ( angular ) { - 'use strict'; + 'use strict'; - angular.module( 'angularTreeview', [] ).directive( 'treeModel', ['$compile', function( $compile ) { - return { - restrict: 'A', - link: function ( scope, element, attrs ) { - //tree id - var treeId = attrs.treeId; + angular.module( 'angularTreeview', [] ).directive( 'treeModel', ['$compile', function( $compile ) { + return { + restrict: 'A', + link: function ( scope, element, attrs ) { + //tree id + var treeId = attrs.treeId; - //tree model - var treeModel = attrs.treeModel; + //tree model + var treeModel = attrs.treeModel; - //node id - var nodeId = attrs.nodeId || 'id'; + //node id + var nodeId = attrs.nodeId || 'id'; - //node label - var nodeLabel = attrs.nodeLabel || 'label'; + //node label + var nodeLabel = attrs.nodeLabel || 'label'; - //children - var nodeChildren = attrs.nodeChildren || 'children'; + //children + var nodeChildren = attrs.nodeChildren || 'children'; - //tree template + //tree template var template = '