- create(message: Message): Observable<Messages>
+ create(message: Message): Observable<Message>
Create a new message on the server.
diff --git a/src/app/modules/admin/docs/other-components/common/messages/messages.component.ts b/src/app/modules/admin/docs/other-components/common/messages/messages.component.ts
index a013450d..e0397828 100644
--- a/src/app/modules/admin/docs/other-components/common/messages/messages.component.ts
+++ b/src/app/modules/admin/docs/other-components/common/messages/messages.component.ts
@@ -4,7 +4,6 @@ import { OtherComponentsComponent } from 'app/modules/admin/docs/other-component
@Component({
selector : 'messages',
templateUrl: './messages.component.html',
- styles : ['']
})
export class MessagesComponent
{
diff --git a/src/app/modules/admin/docs/other-components/common/notifications/notifications.component.html b/src/app/modules/admin/docs/other-components/common/notifications/notifications.component.html
index 6986ed7c..37f792c6 100644
--- a/src/app/modules/admin/docs/other-components/common/notifications/notifications.component.html
+++ b/src/app/modules/admin/docs/other-components/common/notifications/notifications.component.html
@@ -52,13 +52,10 @@
Usage
-
- The component only has one input to supply the notifications:
-
Notification
@@ -184,16 +181,15 @@
- create(notification: Notification): Observable<Notifications>
+ create(notification: Notification): Observable<Notification>
Create a new notification on the server.
diff --git a/src/app/modules/admin/docs/other-components/common/notifications/notifications.component.ts b/src/app/modules/admin/docs/other-components/common/notifications/notifications.component.ts
index 7c7d32f1..7aff0fff 100644
--- a/src/app/modules/admin/docs/other-components/common/notifications/notifications.component.ts
+++ b/src/app/modules/admin/docs/other-components/common/notifications/notifications.component.ts
@@ -4,7 +4,6 @@ import { OtherComponentsComponent } from 'app/modules/admin/docs/other-component
@Component({
selector : 'notifications',
templateUrl: './notifications.component.html',
- styles : ['']
})
export class NotificationsComponent
{
diff --git a/src/app/modules/admin/docs/other-components/common/overview/overview.component.html b/src/app/modules/admin/docs/other-components/common/overview/overview.component.html
index 8c6488e1..ca591b5e 100644
--- a/src/app/modules/admin/docs/other-components/common/overview/overview.component.html
+++ b/src/app/modules/admin/docs/other-components/common/overview/overview.component.html
@@ -76,7 +76,7 @@
A user customizable panel to show shortcuts to internal/external pages.
- User Menu
+ User
A user avatar and menu component to show user related information and actions.
diff --git a/src/app/modules/admin/docs/other-components/common/search/search.component.ts b/src/app/modules/admin/docs/other-components/common/search/search.component.ts
index 8fc1b0fe..eb9a0810 100644
--- a/src/app/modules/admin/docs/other-components/common/search/search.component.ts
+++ b/src/app/modules/admin/docs/other-components/common/search/search.component.ts
@@ -3,8 +3,7 @@ import { OtherComponentsComponent } from 'app/modules/admin/docs/other-component
@Component({
selector : 'search',
- templateUrl: './search.component.html',
- styles : ['']
+ templateUrl: './search.component.html'
})
export class SearchComponent
{
diff --git a/src/app/modules/admin/docs/other-components/common/shortcuts/shortcuts.component.html b/src/app/modules/admin/docs/other-components/common/shortcuts/shortcuts.component.html
index b07ae59d..2f227e64 100644
--- a/src/app/modules/admin/docs/other-components/common/shortcuts/shortcuts.component.html
+++ b/src/app/modules/admin/docs/other-components/common/shortcuts/shortcuts.component.html
@@ -44,13 +44,10 @@
Usage
-
- The component only has one input to supply the shortcuts:
-
Message
@@ -149,16 +146,15 @@
- store(shortcuts: Shortcut[])
+ getAll(): Observable<Shortcut[]>
- Store shortcuts on the service. This will replace the current shortcuts and can be used as an alternative to shortcuts input of the
- component.
+ Get all shortcuts from the server.
- create(shortcut: Shortcut): Observable<Shortcuts>
+ create(shortcut: Shortcut): Observable<Shortcut>
Create a new shortcut on the server.
diff --git a/src/app/modules/admin/docs/other-components/common/shortcuts/shortcuts.component.ts b/src/app/modules/admin/docs/other-components/common/shortcuts/shortcuts.component.ts
index 7303f7d6..3da703ef 100644
--- a/src/app/modules/admin/docs/other-components/common/shortcuts/shortcuts.component.ts
+++ b/src/app/modules/admin/docs/other-components/common/shortcuts/shortcuts.component.ts
@@ -4,7 +4,6 @@ import { OtherComponentsComponent } from 'app/modules/admin/docs/other-component
@Component({
selector : 'shortcuts',
templateUrl: './shortcuts.component.html',
- styles : ['']
})
export class ShortcutsComponent
{
diff --git a/src/app/modules/admin/docs/other-components/common/user-menu/user-menu.component.html b/src/app/modules/admin/docs/other-components/common/user/user.component.html
similarity index 85%
rename from src/app/modules/admin/docs/other-components/common/user-menu/user-menu.component.html
rename to src/app/modules/admin/docs/other-components/common/user/user.component.html
index 751a6046..fc2470bf 100644
--- a/src/app/modules/admin/docs/other-components/common/user-menu/user-menu.component.html
+++ b/src/app/modules/admin/docs/other-components/common/user/user.component.html
@@ -24,7 +24,7 @@
@@ -49,7 +49,7 @@
Properties
@@ -75,18 +75,6 @@
true
-
-
- @Input()
- user: User
- |
-
- The user data.
- |
-
- -
- |
-
diff --git a/src/app/modules/admin/docs/other-components/common/user/user.component.ts b/src/app/modules/admin/docs/other-components/common/user/user.component.ts
new file mode 100644
index 00000000..2b766fba
--- /dev/null
+++ b/src/app/modules/admin/docs/other-components/common/user/user.component.ts
@@ -0,0 +1,29 @@
+import { Component } from '@angular/core';
+import { OtherComponentsComponent } from 'app/modules/admin/docs/other-components/other-components.component';
+
+@Component({
+ selector : 'user',
+ templateUrl: './user.component.html'
+})
+export class UserComponent
+{
+ /**
+ * Constructor
+ */
+ constructor(private _otherComponentsComponent: OtherComponentsComponent)
+ {
+ }
+
+ // -----------------------------------------------------------------------------------------------------
+ // @ Public methods
+ // -----------------------------------------------------------------------------------------------------
+
+ /**
+ * Toggle the drawer
+ */
+ toggleDrawer(): void
+ {
+ // Toggle the drawer
+ this._otherComponentsComponent.matDrawer.toggle();
+ }
+}
diff --git a/src/app/modules/admin/docs/other-components/other-components.component.ts b/src/app/modules/admin/docs/other-components/other-components.component.ts
index 5347a3ee..b5cf254e 100644
--- a/src/app/modules/admin/docs/other-components/other-components.component.ts
+++ b/src/app/modules/admin/docs/other-components/other-components.component.ts
@@ -41,6 +41,12 @@ export class OtherComponentsComponent implements OnInit, OnDestroy
type : 'basic',
link : '/docs/other-components/common/overview'
},
+ {
+ id : 'common.languages',
+ title: 'Languages',
+ type : 'basic',
+ link : '/docs/other-components/common/languages'
+ },
{
id : 'common.messages',
title: 'Messages',
diff --git a/src/app/modules/admin/docs/other-components/other-components.module.ts b/src/app/modules/admin/docs/other-components/other-components.module.ts
index b6d4cca1..bb7d5bf7 100644
--- a/src/app/modules/admin/docs/other-components/other-components.module.ts
+++ b/src/app/modules/admin/docs/other-components/other-components.module.ts
@@ -10,11 +10,12 @@ import { FuseScrollResetModule } from '@fuse/directives/scroll-reset';
import { SharedModule } from 'app/shared/shared.module';
import { OtherComponentsComponent } from 'app/modules/admin/docs/other-components/other-components.component';
import { OverviewComponent } from 'app/modules/admin/docs/other-components/common/overview/overview.component';
+import { LanguagesComponent } from 'app/modules/admin/docs/other-components/common/languages/languages.component';
import { MessagesComponent } from 'app/modules/admin/docs/other-components/common/messages/messages.component';
import { NotificationsComponent } from 'app/modules/admin/docs/other-components/common/notifications/notifications.component';
import { SearchComponent } from 'app/modules/admin/docs/other-components/common/search/search.component';
import { ShortcutsComponent } from 'app/modules/admin/docs/other-components/common/shortcuts/shortcuts.component';
-import { UserMenuComponent } from 'app/modules/admin/docs/other-components/common/user-menu/user-menu.component';
+import { UserComponent } from 'app/modules/admin/docs/other-components/common/user/user.component';
import { ApexChartsComponent } from 'app/modules/admin/docs/other-components/third-party/apex-charts/apex-charts.component';
import { FullCalendarComponent } from 'app/modules/admin/docs/other-components/third-party/full-calendar/full-calendar.component';
import { NgxMarkdownComponent } from 'app/modules/admin/docs/other-components/third-party/ngx-markdown/ngx-markdown.component';
@@ -25,11 +26,12 @@ import { otherComponentsRoutes } from 'app/modules/admin/docs/other-components/o
declarations: [
OtherComponentsComponent,
OverviewComponent,
+ LanguagesComponent,
MessagesComponent,
NotificationsComponent,
SearchComponent,
ShortcutsComponent,
- UserMenuComponent,
+ UserComponent,
ApexChartsComponent,
FullCalendarComponent,
NgxMarkdownComponent,
diff --git a/src/app/modules/admin/docs/other-components/other-components.routing.ts b/src/app/modules/admin/docs/other-components/other-components.routing.ts
index 2a64c2ad..693cbf69 100644
--- a/src/app/modules/admin/docs/other-components/other-components.routing.ts
+++ b/src/app/modules/admin/docs/other-components/other-components.routing.ts
@@ -1,11 +1,12 @@
import { Route } from '@angular/router';
import { OtherComponentsComponent } from 'app/modules/admin/docs/other-components/other-components.component';
import { OverviewComponent } from 'app/modules/admin/docs/other-components/common/overview/overview.component';
+import { LanguagesComponent } from 'app/modules/admin/docs/other-components/common/languages/languages.component';
import { MessagesComponent } from 'app/modules/admin/docs/other-components/common/messages/messages.component';
import { NotificationsComponent } from 'app/modules/admin/docs/other-components/common/notifications/notifications.component';
import { SearchComponent } from 'app/modules/admin/docs/other-components/common/search/search.component';
import { ShortcutsComponent } from 'app/modules/admin/docs/other-components/common/shortcuts/shortcuts.component';
-import { UserMenuComponent } from 'app/modules/admin/docs/other-components/common/user-menu/user-menu.component';
+import { UserComponent } from 'app/modules/admin/docs/other-components/common/user/user.component';
import { ApexChartsComponent } from 'app/modules/admin/docs/other-components/third-party/apex-charts/apex-charts.component';
import { FullCalendarComponent } from 'app/modules/admin/docs/other-components/third-party/full-calendar/full-calendar.component';
import { NgxMarkdownComponent } from 'app/modules/admin/docs/other-components/third-party/ngx-markdown/ngx-markdown.component';
@@ -33,6 +34,10 @@ export const otherComponentsRoutes: Route[] = [
path : 'overview',
component: OverviewComponent
},
+ {
+ path : 'languages',
+ component: LanguagesComponent
+ },
{
path : 'messages',
component: MessagesComponent
@@ -51,7 +56,7 @@ export const otherComponentsRoutes: Route[] = [
},
{
path : 'user',
- component: UserMenuComponent
+ component: UserComponent
}
]
},