Skip to content

Commit

Permalink
Merge pull request #1087 from isi-vista/select-scene-num
Browse files Browse the repository at this point in the history
Add ability to select scene number and Update Angular Dependencies
  • Loading branch information
lichtefeld authored Dec 22, 2021
2 parents ad094f4 + 9d43554 commit 43542c4
Show file tree
Hide file tree
Showing 30 changed files with 20,195 additions and 16,823 deletions.
36 changes: 21 additions & 15 deletions adam/flask_backend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,35 +27,41 @@ def get_all_learners() -> Any:
"""Get all learner configurations which are prepared."""

return {
"learner_types": [
possible_dir.name
for possible_dir in LEARNERS_DIR.iterdir()
if possible_dir.is_dir()
]
"learner_types": sorted(
[
possible_dir.name
for possible_dir in LEARNERS_DIR.iterdir()
if possible_dir.is_dir()
]
)
}


@app.route("/api/training_curriculum", methods=["GET"])
def get_all_train_curriculum() -> Any:
"""Get all possible training curriculum."""
return {
"training_curriculum": [
possible_dir.name
for possible_dir in TRAINING_CURRICULUM_DIR.iterdir()
if possible_dir.is_dir()
]
"training_curriculum": sorted(
[
possible_dir.name
for possible_dir in TRAINING_CURRICULUM_DIR.iterdir()
if possible_dir.is_dir()
]
),
}


@app.route("/api/testing_curriculum", methods=["GET"])
def get_all_test_curriculum() -> Any:
"""Get all available test curriculum."""
return {
"testing_curriculum": [
possible_dir.name
for possible_dir in TESTING_CURRICULUM_DIR.iterdir()
if possible_dir.is_dir()
]
"testing_curriculum": sorted(
[
possible_dir.name
for possible_dir in TESTING_CURRICULUM_DIR.iterdir()
if possible_dir.is_dir()
]
)
}


Expand Down
1 change: 1 addition & 0 deletions adam/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@
PRE_LEARN_FILE_NAME = "pre_decode.yaml"
POST_LEARN_FILE_NAME = "post_decode.yaml"
GENERATION_YAML_DIR_NAME = "generation_yaml"
CURRICULUM_INFO = "info.yaml"
145 changes: 145 additions & 0 deletions angular-viewer/adam-angular-demo/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
{
"root": true,
"ignorePatterns": ["projects/**/*"],
"overrides": [
{
"files": ["*.ts"],
"parserOptions": {
"project": [
"tsconfig.app.json",
"tsconfig.spec.json",
"e2e/tsconfig.json"
],
"createDefaultProgram": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/recommended--extra",
"prettier"
],
"plugins": ["deprecation", "import", "jsdoc"],
"rules": {
"@angular-eslint/component-selector": [
"error",
{ "type": "element", "prefix": "app", "style": "kebab-case" }
],
"@angular-eslint/directive-selector": [
"error",
{ "type": "attribute", "prefix": "app", "style": "camelCase" }
],
"@angular-eslint/no-empty-lifecycle-method": "off",
"@angular-eslint/use-component-view-encapsulation": "error",
"@typescript-eslint/consistent-type-definitions": "error",
"@typescript-eslint/dot-notation": "off",
"@typescript-eslint/explicit-member-accessibility": [
"off",
{ "accessibility": "explicit" }
],
"@typescript-eslint/member-ordering": [
"error",
{
"default": {
"memberTypes": ["signature", "field", "constructor", "method"]
}
}
],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "variable",
"format": ["camelCase", "snake_case", "UPPER_CASE"]
}
],
"@typescript-eslint/no-empty-function": [
"error",
{ "allow": ["constructors"] }
],
"@typescript-eslint/no-inferrable-types": [
"error",
{ "ignoreParameters": true }
],
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/no-this-alias": "error",
"@typescript-eslint/quotes": [
"error",
"single",
{ "avoidEscape": true }
],
"capitalized-comments": [
"error",
"always",
{ "ignorePattern": "import", "ignoreConsecutiveComments": true }
],
"consistent-return": "error",
"curly": ["error", "all"],
"default-case": "error",
"default-case-last": "error",
"deprecation/deprecation": "warn",
"eqeqeq": ["error", "always", { "null": "ignore" }],
"import/no-extraneous-dependencies": "error",
"import/no-internal-modules": "off",
"import/order": [
"error",
{ "alphabetize": { "order": "asc", "caseInsensitive": true } }
],
"jsdoc/no-types": "error",
"new-parens": "off",
"no-alert": "error",
"no-bitwise": "error",
"no-console": ["error", { "allow": ["error", "warn"] }],
"no-duplicate-case": "error",
"no-duplicate-imports": "error",
"no-else-return": "error",
"no-empty-function": "off",
"no-eval": "error",
"no-extra-bind": "error",
"no-implicit-coercion": "error",
"no-implicit-globals": "error",
"no-implied-eval": "error",
"no-label-var": "error",
"no-lone-blocks": "error",
"no-lonely-if": "error",
"no-new-func": "error",
"no-param-reassign": "error",
"no-redeclare": "error",
"no-restricted-imports": ["error", "rxjs/Rx"],
"no-return-assign": "error",
"no-return-await": "error",
"no-script-url": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-shadow": "error",
"no-sparse-arrays": "error",
"no-template-curly-in-string": "error",
"no-throw-literal": "error",
"no-unreachable-loop": "error",
"no-unused-expressions": "error",
"no-unneeded-ternary": "error",
"no-use-before-define": "error",
"no-useless-backreference": "error",
"no-useless-concat": "error",
"no-useless-return": "error",
"no-var": "error",
"no-void": "error",
"prefer-object-spread": "error",
"quote-props": ["error", "as-needed"],
"sort-imports": [
"error",
{ "ignoreCase": true, "ignoreDeclarationSort": true }
],
"spaced-comment": ["error", "always", { "exceptions": ["*"] }],
"strict": "error"
}
},
{
"files": ["*.html"],
"extends": ["plugin:@angular-eslint/template/recommended"],
"rules": {}
}
]
}
16 changes: 16 additions & 0 deletions angular-viewer/adam-angular-demo/.stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"extends": ["stylelint-config-standard", "stylelint-config-idiomatic-order"],
"plugins": ["stylelint-order"],
"rules": {
"color-function-notation": "legacy",
"order/order": [
"dollar-variables",
"custom-properties",
"at-rules",
"declarations",
{ "type": "at-rule", "name": "supports" },
{ "type": "at-rule", "name": "media" },
"rules"
]
}
}
9 changes: 2 additions & 7 deletions angular-viewer/adam-angular-demo/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,9 @@
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"builder": "@angular-eslint/builder:lint",
"options": {
"tsConfig": [
"tsconfig.app.json",
"tsconfig.spec.json",
"e2e/tsconfig.json"
],
"exclude": ["**/node_modules/**"]
"lintFilePatterns": ["src/**/*.ts", "src/**/*.html"]
}
},
"e2e": {
Expand Down
Loading

0 comments on commit 43542c4

Please sign in to comment.