Skip to content

Commit

Permalink
initial steps #1127
Browse files Browse the repository at this point in the history
  • Loading branch information
syjer committed Dec 9, 2022
1 parent 79a27ce commit 0ab2b33
Show file tree
Hide file tree
Showing 31 changed files with 3,624 additions and 55 deletions.
50 changes: 50 additions & 0 deletions frontend-admin/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"root": true,
"ignorePatterns": [
"projects/**/*"
],
"overrides": [
{
"files": [
"*.ts"
],
"parserOptions": {
"project": [
"tsconfig.json"
],
"createDefaultProgram": true
},
"extends": [
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "app",
"style": "camelCase"
}
],
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "app",
"style": "kebab-case"
}
]
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
],
"rules": {}
}
]
}
1 change: 1 addition & 0 deletions frontend-admin/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
/tmp
/out-tsc
/bazel-out
src/app/svg

# Node
/node_modules
Expand Down
11 changes: 11 additions & 0 deletions frontend-admin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 14.2.10.

## Icons

1. Fetch svg icon here: https://fonts.google.com/icons?icon.style=Outlined
2. Put them in `src/assets/svg`
3. Run `npm run svg` to generate icon code
4. Import them in `shared/icons.ts`
5. Reference them with `<svg-icon key="key"></svg-icon>`

Note you may need to import the icon component + the list of icons if you are in a new module, see `app.module.ts` or
`dashboard.module.ts`.

## Development server

Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.
Expand Down
14 changes: 14 additions & 0 deletions frontend-admin/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,22 @@
],
"scripts": []
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"src/**/*.ts",
"src/**/*.html"
]
}
}
}
}
},
"cli": {
"schematicCollections": [
"@angular-eslint/schematics"
]
}
}
Loading

0 comments on commit 0ab2b33

Please sign in to comment.