diff --git a/interactive-mining-angular-frontend/.editorconfig b/interactive-mining-angular-frontend/.editorconfig deleted file mode 100755 index 6e87a00..0000000 --- a/interactive-mining-angular-frontend/.editorconfig +++ /dev/null @@ -1,13 +0,0 @@ -# Editor configuration, see http://editorconfig.org -root = true - -[*] -charset = utf-8 -indent_style = space -indent_size = 2 -insert_final_newline = true -trim_trailing_whitespace = true - -[*.md] -max_line_length = off -trim_trailing_whitespace = false diff --git a/interactive-mining-angular-frontend/README.md b/interactive-mining-angular-frontend/README.md index 9e909b5..2eaed53 100755 --- a/interactive-mining-angular-frontend/README.md +++ b/interactive-mining-angular-frontend/README.md @@ -1,6 +1,6 @@ -# Interactiveminingv3 +# Interactivemining v3 -This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.3.0. +This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.3.0 and updated to version 11.2.14 # Import @@ -8,12 +8,8 @@ Import Module import {InteractiveMiningModule} from 'interactiveminingv3'; -Place these files in your .angular-cli.json +Place these files in your angular.json - "styles": [ - "../node_modules/interactiveminingv3/assets/css/interactive-mining.css", - "../node_modules/interactiveminingv3/assets/css/animations.css" - ], "scripts": [ "../node_modules/jquery/dist/jquery.min.js", "../node_modules/uikit/dist/js/uikit.min.js", @@ -22,6 +18,13 @@ Place these files in your .angular-cli.json "../node_modules/interactiveminingv3/assets/js/jquery.sticky-sidebar.js" ] +Import this css files on your global styles.css or on another more specific scss. E.g + + .mining { + @import "~interactiveminingv3/assets/css/interactive-mining.css"; + @import "~interactiveminingv3/assets/css/animations.css"; + } + Store to LocalStorage the Username and the Backend localStorage.setItem('user_id', this._userid); @@ -35,10 +38,6 @@ Navigate to `http://.../mining` with your project's router Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files. -## Code scaffolding - -Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`. - ## Build Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build. diff --git a/interactive-mining-angular-frontend/angular.json b/interactive-mining-angular-frontend/angular.json index 3c8fc4f..65f467a 100644 --- a/interactive-mining-angular-frontend/angular.json +++ b/interactive-mining-angular-frontend/angular.json @@ -17,8 +17,7 @@ "tsConfig": "src/tsconfig.app.json", "polyfills": "src/polyfills.ts", "assets": [ - "src/assets", - "src/favicon.ico" + "src/assets" ], "styles": [ "src/styles.css", @@ -90,8 +89,7 @@ "src/assets/css/animations.css" ], "assets": [ - "src/assets", - "src/favicon.ico" + "src/assets" ] } }, @@ -145,4 +143,4 @@ "prefix": "app" } } -} \ No newline at end of file +} diff --git a/interactive-mining-angular-frontend/src/assets/.gitkeep b/interactive-mining-angular-frontend/src/assets/.gitkeep deleted file mode 100755 index e69de29..0000000 diff --git a/interactive-mining-angular-frontend/src/assets/README b/interactive-mining-angular-frontend/src/assets/README deleted file mode 100755 index 532a1ac..0000000 --- a/interactive-mining-angular-frontend/src/assets/README +++ /dev/null @@ -1,15 +0,0 @@ -HOW TO INSTALL - -Put these in .angular-cli.json - - "styles": [ - "../node_modules/interactiveminingv3/assets/css/interactive-mining.css", - "../node_modules/interactiveminingv3/assets/css/animations.css" - ] - "scripts": [ - "../node_modules/jquery/dist/jquery.min.js", - "../node_modules/uikit/dist/js/uikit.min.js", - "../node_modules/uikit/dist/js/uikit-icons.min.js", - "../node_modules/interactiveminingv3/assets/js/ResizeSensor.js", - "../node_modules/interactiveminingv3/assets/js/jquery.sticky-sidebar.js" - ] \ No newline at end of file diff --git a/interactive-mining-angular-frontend/src/favicon.ico b/interactive-mining-angular-frontend/src/favicon.ico deleted file mode 100755 index 8081c7c..0000000 Binary files a/interactive-mining-angular-frontend/src/favicon.ico and /dev/null differ diff --git a/interactive-mining-angular-frontend/tslint.json b/interactive-mining-angular-frontend/tslint.json deleted file mode 100755 index f22f9e8..0000000 --- a/interactive-mining-angular-frontend/tslint.json +++ /dev/null @@ -1,141 +0,0 @@ -{ - "rulesDirectory": [ - "node_modules/codelyzer" - ], - "rules": { - "arrow-return-shorthand": true, - "callable-types": true, - "class-name": true, - "comment-format": [ - true, - "check-space" - ], - "curly": true, - "eofline": true, - "forin": true, - "import-blacklist": [ - true - ], - "import-spacing": true, - "indent": [ - true, - "spaces" - ], - "interface-over-type-literal": true, - "label-position": true, - "max-line-length": [ - true, - 140 - ], - "member-access": false, - "member-ordering": [ - true, - { - "order": [ - "static-field", - "instance-field", - "static-method", - "instance-method" - ] - } - ], - "no-arg": true, - "no-bitwise": true, - "no-console": [ - true, - "debug", - "info", - "time", - "timeEnd", - "trace" - ], - "no-construct": true, - "no-debugger": true, - "no-duplicate-super": true, - "no-empty": false, - "no-empty-interface": true, - "no-eval": true, - "no-inferrable-types": [ - true, - "ignore-params" - ], - "no-misused-new": true, - "no-non-null-assertion": true, - "no-shadowed-variable": true, - "no-string-literal": false, - "no-string-throw": true, - "no-switch-case-fall-through": true, - "no-trailing-whitespace": true, - "no-unnecessary-initializer": true, - "no-unused-expression": true, - "no-use-before-declare": true, - "no-var-keyword": true, - "object-literal-sort-keys": false, - "one-line": [ - true, - "check-open-brace", - "check-catch", - "check-else", - "check-whitespace" - ], - "prefer-const": true, - "quotemark": [ - true, - "single" - ], - "radix": true, - "semicolon": [ - true, - "always" - ], - "triple-equals": [ - true, - "allow-null-check" - ], - "typedef-whitespace": [ - true, - { - "call-signature": "nospace", - "index-signature": "nospace", - "parameter": "nospace", - "property-declaration": "nospace", - "variable-declaration": "nospace" - } - ], - "typeof-compare": true, - "unified-signatures": true, - "variable-name": false, - "whitespace": [ - true, - "check-branch", - "check-decl", - "check-operator", - "check-separator", - "check-type" - ], - "directive-selector": [ - true, - "attribute", - "app", - "camelCase" - ], - "component-selector": [ - true, - "element", - "app", - "kebab-case" - ], - "no-inputs-metadata-property": true, - "no-outputs-metadata-property": true, - "no-host-metadata-property": true, - "no-input-rename": true, - "no-output-rename": true, - "use-lifecycle-interface": true, - "use-pipe-transform-interface": true, - "component-class-suffix": true, - "directive-class-suffix": true, - "no-access-missing-member": true, - "templates-use-public": true, - "invoke-injectable": true - } -}