Admin Template for Angular - Demo Site
An angular starter project with material design.
Located at src/environments/ folder. Currently, support below methods:
- OAuth
- Keycloak: An open source Identity and Access Management project provided by Redhat.
- Local Authentication
This feature provide a way to guide user to use your application by highlighting elements step by step. You can find definitions in src/config/guides.ts file.
Use @ngx-translate
library to translate your language that defined in src/assets/i18n/json folder.
To get help on Angular CLI use ng help
or click here to official site.
npm start
and open local site
ng generate module admin/logs --routing
to create a new module in admin folder, do not forget to import it in admin.module.ts and add routing in admin-routing.module.ts file.
ng generate component admin/logs/my-log --skip-tests --module=logs
to add new component in logs module
@import '../../../styles/theme';
@include each-themes using ($name, $theme) {
:host {
a.active {
border-left-color: get($name, 'primary');
}
footer {
background-color: get($name, 'background');
}
}
}
ThemeService
this.theme.themeChanged.subscribe((t) => {
if (this.theme.isDark()) {
// TODO:
} else {
// TODO:
}
});
About how to install ELK, please refer
You can open local ELK Kibana UI, then see the index starts with http.
input {
http {
host => "0.0.0.0"
port => 5044
type => http
response_headers => {
"Access-Control-Allow-Origin" => "*"
"Content-Type" => "text/plain"
"Access-Control-Allow-Headers" => "Origin, X-Requested-With, Content-Type,
Accept"
}
}
}
filter {
if [headers][request_method] == "OPTIONS" {
drop {}
}
}
output {
if [type]=="http" {
elasticsearch {
hosts => ["127.0.0.1:9200"]
manage_template => false
index => "http-%{+YYYY.MM.dd}"
}
}
}