forked from HyperIoT-Labs/HyperIoT-UI
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved store and dependencies to core library, replaced alarm wrapper service with store, fixed imports
- Loading branch information
1 parent
3114051
commit 769a46a
Showing
94 changed files
with
1,553 additions
and
1,745 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* | ||
* * Copyright 2019-2023 HyperIoT | ||
* * | ||
* * Licensed under the Apache License, Version 2.0 (the "License") | ||
* * you may not use this file except in compliance with the License. | ||
* * You may obtain a copy of the License at | ||
* * | ||
* * http://www.apache.org/licenses/LICENSE-2.0 | ||
* * | ||
* * Unless required by applicable law or agreed to in writing, software | ||
* * distributed under the License is distributed on an "AS IS" BASIS, | ||
* * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* * See the License for the specific language governing permissions and | ||
* * limitations under the License. | ||
* * | ||
* | ||
*/ | ||
|
||
export const ErrorMessageDefault = { | ||
title: $localize`:@@HYT_error:Error`, | ||
body: $localize`:@@HYT_something_wrong:Something's wrong` | ||
} | ||
|
||
export const HttpErrorsDictionary: { | ||
[index: number]: { | ||
title: string, | ||
body: string | ||
} | ||
} = { | ||
401: { | ||
title: $localize`:@@HYT_authorization_error:Athorization error`, | ||
body: $localize`:@@HYT_you_do_not_have_sufficient_permissions_to_perform_this_operation:You do not have sufficient permissions to perform this operation` | ||
}, | ||
403: { | ||
title: $localize`:@@HYT_authentication_error:Authentication error`, | ||
body: $localize`:@@HYT_you_do_not_have_sufficient_permissions_to_perform_this_operation:You do not have sufficient permissions to perform this operation` | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export * from './http-context-tokens'; | ||
export * from './http-errors-dictionary'; | ||
|
||
export const HyperiotLogoPath = 'assets/images/logo/Hyperiot-Ex_S.png'; | ||
export const HyperiotLogoMobilePath = 'assets/images/hyperiot_logo_single_char_animated.svg'; |
108 changes: 0 additions & 108 deletions
108
...ts/core/src/lib/hyperiot-service/hyperiot-alarm-wrapper/hyperiot-alarm-wrapper.service.ts
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './branding'; | ||
export * from './hyperiot-alarm.model'; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { createAction, props } from "@ngrx/store"; | ||
import { BrandingTheme } from "../../models/branding"; | ||
import { BrandingStore } from "./branding.reducer"; | ||
|
||
export namespace BrandingActions { | ||
export const load = createAction('[Branding] Load'); | ||
export const updateAll = createAction( | ||
'[Branding] Update', | ||
props<{ brandingTheme: BrandingTheme }>() | ||
); | ||
export const updateLogo = createAction( | ||
'[Branding] Update Logo', | ||
props<{ brandingTheme: BrandingTheme }>() | ||
); | ||
export const updateColorSchema = createAction( | ||
'[Branding] Update ColorScheme', | ||
props<{ brandingTheme: BrandingTheme }>() | ||
); | ||
export const reset = createAction('[Branding] Reset'); | ||
export const unset = createAction('[Branding] Unset after logout'); | ||
|
||
export const loadSuccess = createAction('[Branding API] Branding Load Success', props<{ payload: BrandingStore.State }>()); | ||
export const loadFailure = createAction('[Branding API] Branding Load Error', props<{ payload: any }>()); | ||
export const updateSuccess = createAction('[Branding API] Branding Update Success', props<{ payload: BrandingStore.State }>()); | ||
export const updateFailure = createAction('[Branding API] Branding Update Error', props<{ payload: any }>()); | ||
export const resetSuccess = createAction('[Branding API] Branding Reset Success', props<{ payload: any }>()); | ||
export const resetFailure = createAction('[Branding API] Branding Reset Error', props<{ payload: any }>()); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.