Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maintenence countdown timer #16

Merged
merged 9 commits into from
Apr 8, 2017
Merged

Maintenence countdown timer #16

merged 9 commits into from
Apr 8, 2017

Conversation

makemek
Copy link
Owner

@makemek makemek commented Apr 6, 2017

Once Kancolle is in maintenance which is indicated by Maintenance.IsDoing = 1 in http://203.104.209.7/gadget/js/kcs_const.js, Dev team will set MaintenanceInfo.StartDateTime and MaintenanceInfo.EndDateTime.

Modcolle use value of MaintenanceInfo.EndDateTime to read date and time and compare with client's time to calculate time remaining.
Executing in client-side javascript, the timer will appear at the top of the homepage.

During maintenance the launcher button will be locked, gray-out, and can't access login modal page #login to prevent accessing the login page.
Although there is no harm in leaving it as it is, user should be notified that there is a maintenance going on.
As countdown is over, the launcher will be enabled back and #login is accessible.

makemek added 9 commits April 6, 2017 03:20
Timer will appear during maintenance calculated by the current client time
- Maintenance.EndDateTime from kc server
…rules

* use babel to deal with browser js compatibility when build js
* lint kc-maintainance to comply with linting rules
* ignore file type *.min.js from linting
message shown on the right
before maintenance: begins in
during maintenance: ends in
- grayscale button
- remove #login link
- shake effect when hover or click
Once maintenance is over, launcher button will return to normal
@coveralls
Copy link

Coverage Status

Coverage remained the same at 99.119% when pulling 2aa9df4 on maintenence-countdown-timer into 648aba2 on dev.

@makemek makemek merged commit 32dcd62 into dev Apr 8, 2017
@makemek makemek deleted the maintenence-countdown-timer branch April 8, 2017 15:43
makemek added a commit that referenced this pull request Apr 25, 2017
* load kcs_const.js from kc server

* basic timer layout

* uglify js and reload browser on change

* countdown timer during maintenance
Timer will appear during maintenance calculated by the current client time
  - Maintenance.EndDateTime from kc server

* setup browser-side javascript to be compatible with modcolle linting rules
  - use babel to deal with browser js compatibility when build js
  - lint kc-maintainance to comply with linting rules
  - ignore file type *.min.js from linting

* support countdown before maintenance starts

* message notification before and during maintenance
message shown on the right
before maintenance: begins in
during maintenance: ends in

* disable launcher button during Kancolle maintenance
- grayscale button
- remove #login link
- shake effect when hover or click
Once maintenance is over, launcher button will return to normal

* delete unused kc-maintenace.js left over from rebasing
@makemek makemek mentioned this pull request Apr 25, 2017
makemek added a commit that referenced this pull request Apr 26, 2017
* load kcs_const.js from kc server

* basic timer layout

* uglify js and reload browser on change

* countdown timer during maintenance
Timer will appear during maintenance calculated by the current client time
  - Maintenance.EndDateTime from kc server

* setup browser-side javascript to be compatible with modcolle linting rules
  - use babel to deal with browser js compatibility when build js
  - lint kc-maintainance to comply with linting rules
  - ignore file type *.min.js from linting

* support countdown before maintenance starts

* message notification before and during maintenance
message shown on the right
before maintenance: begins in
during maintenance: ends in

* disable launcher button during Kancolle maintenance
- grayscale button
- remove #login link
- shake effect when hover or click
Once maintenance is over, launcher button will return to normal

* delete unused kc-maintenace.js left over from rebasing
makemek added a commit that referenced this pull request Apr 26, 2017
Notable Changes:
* Maintenance Countdown Timer #16
appear when `Maintenance.IsDoing` in [Kancolle's config](http://203.104.209.7/gadget/js/kcs_const.js) set to `1` and `Maintenance.EndDateTime` is greater than client's machine time.

* `kancolle` folder removed #24
Modding content by redirecting url has been suspended. If implement, they will be moved to a dedicated microservice.

* Use Node Alpine docker image #25
Smaller image size
makemek added a commit that referenced this pull request Apr 26, 2017
Notable Changes:
* Maintenance Countdown Timer #16
appear when `Maintenance.IsDoing` in [Kancolle's config](http://203.104.209.7/gadget/js/kcs_const.js) set to `1` and `Maintenance.EndDateTime` is greater than client's machine time.

* `kancolle` folder removed #24
Modding content by redirecting url has been suspended. If implement, they will be moved to a dedicated microservice.

* Use Node Alpine docker image #25
Smaller image size

PR-URL: #34
makemek added a commit that referenced this pull request Apr 26, 2017
* load kcs_const.js from kc server

* basic timer layout

* uglify js and reload browser on change

* countdown timer during maintenance
Timer will appear during maintenance calculated by the current client time
  - Maintenance.EndDateTime from kc server

* setup browser-side javascript to be compatible with modcolle linting rules
  - use babel to deal with browser js compatibility when build js
  - lint kc-maintainance to comply with linting rules
  - ignore file type *.min.js from linting

* support countdown before maintenance starts

* message notification before and during maintenance
message shown on the right
before maintenance: begins in
during maintenance: ends in

* disable launcher button during Kancolle maintenance
- grayscale button
- remove #login link
- shake effect when hover or click
Once maintenance is over, launcher button will return to normal

* delete unused kc-maintenace.js left over from rebasing
makemek added a commit that referenced this pull request Apr 26, 2017
Notable Changes:
* Maintenance Countdown Timer #16
appear when `Maintenance.IsDoing` in [Kancolle's config](http://203.104.209.7/gadget/js/kcs_const.js) set to `1` and `Maintenance.EndDateTime` is greater than client's machine time.

* `kancolle` folder removed #24
Modding content by redirecting url has been suspended. If implement, they will be moved to a dedicated microservice.

* Use Node Alpine docker image #25
Smaller image size

PR-URL: #34
makemek added a commit that referenced this pull request Apr 26, 2017
* load kcs_const.js from kc server

* basic timer layout

* uglify js and reload browser on change

* countdown timer during maintenance
Timer will appear during maintenance calculated by the current client time
  - Maintenance.EndDateTime from kc server

* setup browser-side javascript to be compatible with modcolle linting rules
  - use babel to deal with browser js compatibility when build js
  - lint kc-maintainance to comply with linting rules
  - ignore file type *.min.js from linting

* support countdown before maintenance starts

* message notification before and during maintenance
message shown on the right
before maintenance: begins in
during maintenance: ends in

* disable launcher button during Kancolle maintenance
- grayscale button
- remove #login link
- shake effect when hover or click
Once maintenance is over, launcher button will return to normal

* delete unused kc-maintenace.js left over from rebasing
makemek added a commit that referenced this pull request Apr 26, 2017
Notable Changes:
* Maintenance Countdown Timer #16
appear when `Maintenance.IsDoing` in [Kancolle's config](http://203.104.209.7/gadget/js/kcs_const.js) set to `1` and `Maintenance.EndDateTime` is greater than client's machine time.

* `kancolle` folder removed #24
Modding content by redirecting url has been suspended. If implement, they will be moved to a dedicated microservice.

* Use Node Alpine docker image #25
Smaller image size

PR-URL: #34
makemek added a commit that referenced this pull request Apr 26, 2017
Notable Changes:
* Maintenance Countdown Timer #16
appear when `Maintenance.IsDoing` in [Kancolle's config](http://203.104.209.7/gadget/js/kcs_const.js) set to `1` and `Maintenance.EndDateTime` is greater than client's machine time.

* `kancolle` folder removed #24
Modding content by redirecting url has been suspended. If implement, they will be moved to a dedicated microservice.

* Use Node Alpine docker image #25
Smaller image size

PR-URL: #34
makemek added a commit that referenced this pull request Apr 26, 2017
* load kcs_const.js from kc server

* basic timer layout

* uglify js and reload browser on change

* countdown timer during maintenance
Timer will appear during maintenance calculated by the current client time
  - Maintenance.EndDateTime from kc server

* setup browser-side javascript to be compatible with modcolle linting rules
  - use babel to deal with browser js compatibility when build js
  - lint kc-maintainance to comply with linting rules
  - ignore file type *.min.js from linting

* support countdown before maintenance starts

* message notification before and during maintenance
message shown on the right
before maintenance: begins in
during maintenance: ends in

* disable launcher button during Kancolle maintenance
- grayscale button
- remove #login link
- shake effect when hover or click
Once maintenance is over, launcher button will return to normal

* delete unused kc-maintenace.js left over from rebasing
makemek added a commit that referenced this pull request Apr 26, 2017
Notable Changes:
* Maintenance Countdown Timer #16
appear when `Maintenance.IsDoing` in [Kancolle's config](http://203.104.209.7/gadget/js/kcs_const.js) set to `1` and `Maintenance.EndDateTime` is greater than client's machine time.

* `kancolle` folder removed #24
Modding content by redirecting url has been suspended. If implement, they will be moved to a dedicated microservice.

* Use Node Alpine docker image #25
Smaller image size

PR-URL: #34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants