Merge branch 'develop'

pull/133/head
13621160019@163.com 2022-03-05 10:52:13 +08:00
commit 443ea177cb
10 changed files with 757 additions and 751 deletions

View File

@ -16,6 +16,22 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Removed ### Removed
- None. - None.
## [v1.8.1] - 2022-03-05
### Added
- added integration testing plan to README
- added StreamHandler to send logging output to sys.stderr
### Changed
- replaced DateTime with DateRangePicker for Advanced reports in Web UI
- replaced DateTime with DateRangePicker for EnergyFlowDiagram in Web UI
- updated Tariff Editor in Admin UI
### Fixed
- None.
### Removed
- None.
## [v1.8.0] - 2022-02-28 ## [v1.8.0] - 2022-02-28
### Added ### Added
- added Meter Carbon Dioxide Emissions Report to Web UI - added Meter Carbon Dioxide Emissions Report to Web UI

View File

@ -1,5 +1,5 @@
<div class="footer-login"> <div class="footer-login">
<div> <div>
<strong>{{'MY_EMS_NAME' | translate}} v1.8.0 <a href="https://myems.io">https://myems.io</a> </strong> <strong>{{'MY_EMS_NAME' | translate}} v1.8.1 <a href="https://myems.io">https://myems.io</a> </strong>
</div> </div>
</div> </div>

View File

@ -3,6 +3,6 @@
<strong><a href="https://myems.io">https://myems.io</a></strong> <strong><a href="https://myems.io">https://myems.io</a></strong>
</div> </div>
<div> <div>
<strong>{{'MY_EMS_NAME' | translate}} v1.8.0</strong> <strong>{{'MY_EMS_NAME' | translate}} v1.8.1</strong>
</div> </div>
</div> </div>

View File

@ -1248,6 +1248,6 @@ USE `myems_system_db`;
INSERT INTO `myems_system_db`.`tbl_versions` INSERT INTO `myems_system_db`.`tbl_versions`
(`id`, `version`, `release_date`) (`id`, `version`, `release_date`)
VALUES VALUES
(1, '1.8.0', '2022-02-28'); (1, '1.8.1', '2022-03-05');
COMMIT; COMMIT;

View File

@ -1,6 +1,6 @@
-- --------------------------------------------------------------------------------------------------------------------- -- ---------------------------------------------------------------------------------------------------------------------
-- WARNING: BACKUP YOUR DATABASE BEFORE UPGRADING -- WARNING: BACKUP YOUR DATABASE BEFORE UPGRADING
-- THIS SCRIPT IS ONLY FOR UPGRADING 1.7.1 TO 1.7.2 -- THIS SCRIPT IS ONLY FOR UPGRADING 1.7.2 TO 1.8.0
-- THE CURRENT VERSION CAN BE FOUND AT `myems_system_db`.`tbl_versions` -- THE CURRENT VERSION CAN BE FOUND AT `myems_system_db`.`tbl_versions`
-- --------------------------------------------------------------------------------------------------------------------- -- ---------------------------------------------------------------------------------------------------------------------

View File

@ -0,0 +1,12 @@
-- ---------------------------------------------------------------------------------------------------------------------
-- WARNING: BACKUP YOUR DATABASE BEFORE UPGRADING
-- THIS SCRIPT IS ONLY FOR UPGRADING 1.8.0 TO 1.8.1
-- THE CURRENT VERSION CAN BE FOUND AT `myems_system_db`.`tbl_versions`
-- ---------------------------------------------------------------------------------------------------------------------
START TRANSACTION;
-- UPDATE VERSION NUMBER
UPDATE `myems_system_db`.`tbl_versions` SET version='1.8.1', release_date='2022-03-05' WHERE id=1;
COMMIT;

View File

@ -15,8 +15,8 @@ class VersionItem:
@staticmethod @staticmethod
def on_get(req, resp): def on_get(req, resp):
result = {"version": 'MyEMS v1.8.0', result = {"version": 'MyEMS v1.8.1',
"release-date": '2022-02-28', "release-date": '2022-03-05',
"website": "https://myems.io"} "website": "https://myems.io"}
resp.text = json.dumps(result) resp.text = json.dumps(result)

1464
web/package-lock.json generated vendored

File diff suppressed because it is too large Load Diff

2
web/package.json vendored
View File

@ -1,6 +1,6 @@
{ {
"name": "myems", "name": "myems",
"version": "1.8.0", "version": "1.8.1",
"private": true, "private": true,
"dependencies": { "dependencies": {
"@fortawesome/fontawesome-free": "^5.15.1", "@fortawesome/fontawesome-free": "^5.15.1",

View File

@ -1,4 +1,4 @@
export const version = '1.8.0'; export const version = '1.8.1';
export const navbarBreakPoint = 'xl'; // Vertical navbar breakpoint export const navbarBreakPoint = 'xl'; // Vertical navbar breakpoint
export const topNavbarBreakpoint = 'lg'; export const topNavbarBreakpoint = 'lg';
//export const APIBaseURL = 'http://127.0.0.1:8000'; //export const APIBaseURL = 'http://127.0.0.1:8000';