Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
ed99a543
Commit
ed99a543
authored
Oct 24, 2018
by
Peter Holmberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moving things
parent
3e0a34ce
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
10 deletions
+10
-10
public/app/core/actions/appNotification.ts
+1
-1
public/app/core/angular_wrappers.ts
+1
-1
public/app/core/components/AppNotifications/AppNotificationList.tsx
+1
-1
public/app/core/reducers/appNotification.test.ts
+3
-3
public/app/core/reducers/appNotification.ts
+2
-2
public/app/store/configureStore.ts
+1
-1
public/views/index.template.html
+1
-1
No files found.
public/app/core/
components/AppNotifications/state/actions
.ts
→
public/app/core/
actions/appNotification
.ts
View file @
ed99a543
import
{
AppNotification
}
from
'app/types'
;
import
{
AppNotification
}
from
'app/types
/
'
;
export
enum
ActionTypes
{
export
enum
ActionTypes
{
AddAppNotification
=
'ADD_APP_NOTIFICATION'
,
AddAppNotification
=
'ADD_APP_NOTIFICATION'
,
...
...
public/app/core/angular_wrappers.ts
View file @
ed99a543
...
@@ -10,7 +10,7 @@ import AppNotificationList from './components/AppNotifications/AppNotificationLi
...
@@ -10,7 +10,7 @@ import AppNotificationList from './components/AppNotifications/AppNotificationLi
export
function
registerAngularDirectives
()
{
export
function
registerAngularDirectives
()
{
react2AngularDirective
(
'passwordStrength'
,
PasswordStrength
,
[
'password'
]);
react2AngularDirective
(
'passwordStrength'
,
PasswordStrength
,
[
'password'
]);
react2AngularDirective
(
'sidemenu'
,
SideMenu
,
[]);
react2AngularDirective
(
'sidemenu'
,
SideMenu
,
[]);
react2AngularDirective
(
'
pageAlert
List'
,
AppNotificationList
,
[]);
react2AngularDirective
(
'
appNotifications
List'
,
AppNotificationList
,
[]);
react2AngularDirective
(
'pageHeader'
,
PageHeader
,
[
'model'
,
'noTabs'
]);
react2AngularDirective
(
'pageHeader'
,
PageHeader
,
[
'model'
,
'noTabs'
]);
react2AngularDirective
(
'emptyListCta'
,
EmptyListCTA
,
[
'model'
]);
react2AngularDirective
(
'emptyListCta'
,
EmptyListCTA
,
[
'model'
]);
react2AngularDirective
(
'searchResult'
,
SearchResult
,
[]);
react2AngularDirective
(
'searchResult'
,
SearchResult
,
[]);
...
...
public/app/core/components/AppNotifications/AppNotificationList.tsx
View file @
ed99a543
import
React
,
{
PureComponent
}
from
'react'
;
import
React
,
{
PureComponent
}
from
'react'
;
import
appEvents
from
'app/core/app_events'
;
import
appEvents
from
'app/core/app_events'
;
import
{
addAppNotification
,
clearAppNotification
}
from
'.
/state/actions
'
;
import
{
addAppNotification
,
clearAppNotification
}
from
'.
./../actions/appNotification
'
;
import
{
connectWithStore
}
from
'app/core/utils/connectWithReduxStore'
;
import
{
connectWithStore
}
from
'app/core/utils/connectWithReduxStore'
;
import
{
AppNotification
,
AppNotificationSeverity
,
StoreState
}
from
'app/types'
;
import
{
AppNotification
,
AppNotificationSeverity
,
StoreState
}
from
'app/types'
;
...
...
public/app/core/
components/AppNotifications/state/reducers
.test.ts
→
public/app/core/
reducers/appNotification
.test.ts
View file @
ed99a543
import
{
appNotificationsReducer
}
from
'./
reducers
'
;
import
{
appNotificationsReducer
}
from
'./
appNotification
'
;
import
{
ActionTypes
}
from
'.
/actions
'
;
import
{
ActionTypes
}
from
'.
./actions/appNotification
'
;
import
{
AppNotificationSeverity
}
from
'app/types'
;
import
{
AppNotificationSeverity
}
from
'app/types
/index
'
;
describe
(
'clear alert'
,
()
=>
{
describe
(
'clear alert'
,
()
=>
{
it
(
'should filter alert'
,
()
=>
{
it
(
'should filter alert'
,
()
=>
{
...
...
public/app/core/
components/AppNotifications/state/reducers
.ts
→
public/app/core/
reducers/appNotification
.ts
View file @
ed99a543
import
{
AppNotification
,
AppNotificationsState
}
from
'app/types'
;
import
{
AppNotification
,
AppNotificationsState
}
from
'app/types
/index
'
;
import
{
Action
,
ActionTypes
}
from
'.
/actions
'
;
import
{
Action
,
ActionTypes
}
from
'.
./actions/appNotification
'
;
export
const
initialState
:
AppNotificationsState
=
{
export
const
initialState
:
AppNotificationsState
=
{
appNotifications
:
[]
as
AppNotification
[],
appNotifications
:
[]
as
AppNotification
[],
...
...
public/app/store/configureStore.ts
View file @
ed99a543
...
@@ -10,7 +10,7 @@ import dashboardReducers from 'app/features/dashboard/state/reducers';
...
@@ -10,7 +10,7 @@ import dashboardReducers from 'app/features/dashboard/state/reducers';
import
pluginReducers
from
'app/features/plugins/state/reducers'
;
import
pluginReducers
from
'app/features/plugins/state/reducers'
;
import
dataSourcesReducers
from
'app/features/datasources/state/reducers'
;
import
dataSourcesReducers
from
'app/features/datasources/state/reducers'
;
import
usersReducers
from
'app/features/users/state/reducers'
;
import
usersReducers
from
'app/features/users/state/reducers'
;
import
appNotificationReducers
from
'app/core/
components/AppNotifications/state/reducers
'
;
import
appNotificationReducers
from
'app/core/
reducers/appNotification
'
;
const
rootReducers
=
{
const
rootReducers
=
{
...
sharedReducers
,
...
sharedReducers
,
...
...
public/views/index.template.html
View file @
ed99a543
...
@@ -200,7 +200,7 @@
...
@@ -200,7 +200,7 @@
<grafana-app
class=
"grafana-app"
ng-cloak
>
<grafana-app
class=
"grafana-app"
ng-cloak
>
<sidemenu
class=
"sidemenu"
></sidemenu>
<sidemenu
class=
"sidemenu"
></sidemenu>
<
page-alert-list
class=
"page-alert-list"
></page-alert
-list>
<
app-notifications-list
class=
"page-alert-list"
></app-notifications
-list>
<div
class=
"main-view"
>
<div
class=
"main-view"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment