Merge branch 'develop'

pull/128/MERGE v1.7.2
13621160019@163.com 2022-02-19 08:49:52 +08:00
commit 9ae2142051
9 changed files with 618 additions and 486 deletions

View File

@ -16,6 +16,21 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Removed
- None.
## [v1.7.2] - 2022-02-19
### Added
- added default character set and collate to database
- added Mark All As Read action to notification
### Changed
- updated docker-compose guide
- added DateRangePicker to MeterEnergy report in Web UI
### Fixed
- updated Notification of Web UI
### Removed
- None.
## [v1.7.1] - 2022-02-11
### Added
- added myems_carbon_db to recalculating script
@ -690,7 +705,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Removed
- None.
[Unreleased]: https://github.com/MyEMS/myems/compare/v1.7.1...HEAD
[Unreleased]: https://github.com/MyEMS/myems/compare/v1.7.2...HEAD
[v1.7.2]: https://github.com/MyEMS/myems/compare/v1.7.1...v1.7.2
[v1.7.1]: https://github.com/MyEMS/myems/compare/v1.7.0...v1.7.1
[v1.7.0]: https://github.com/MyEMS/myems/compare/v1.6.1...v1.7.0
[v1.6.1]: https://github.com/MyEMS/myems/compare/v1.6.0...v1.6.1

View File

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

View File

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

View File

@ -1246,6 +1246,6 @@ USE `myems_system_db`;
INSERT INTO `myems_system_db`.`tbl_versions`
(`id`, `version`, `release_date`)
VALUES
(1, '1.7.1', '2022-02-11');
(1, '1.7.2', '2022-02-19');
COMMIT;

View File

@ -0,0 +1,12 @@
-- ---------------------------------------------------------------------------------------------------------------------
-- WARNING: BACKUP YOUR DATABASE BEFORE UPGRADING
-- THIS SCRIPT IS ONLY FOR UPGRADING 1.7.1 TO 1.7.2
-- 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.7.2', release_date='2022-02-19' WHERE id=1;
COMMIT;

View File

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

1060
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",
"version": "1.7.1",
"version": "1.7.2",
"private": true,
"dependencies": {
"@fortawesome/fontawesome-free": "^5.15.1",

View File

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