Skip to content

Commit

Permalink
Admin initial setup (#1151)
Browse files Browse the repository at this point in the history
* initial steps #1127

* add ngx-translate #1127
  • Loading branch information
syjer committed Dec 9, 2022
1 parent e032fd5 commit fcb749c
Show file tree
Hide file tree
Showing 35 changed files with 3,861 additions and 194 deletions.
50 changes: 50 additions & 0 deletions frontend-admin/.eslintrc.json
@@ -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
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
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
Expand Up @@ -113,8 +113,22 @@
],
"scripts": []
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"src/**/*.ts",
"src/**/*.html"
]
}
}
}
}
},
"cli": {
"schematicCollections": [
"@angular-eslint/schematics"
]
}
}

0 comments on commit fcb749c

Please sign in to comment.