Git Product home page Git Product logo

typescript-assignment's Introduction

Group-IB logo

Test assignment (Typescript)

Your goal is to implement a frontend of a notification system based on Server-Sent Events (SSE) technology, following the restrictions and design layout described below.

You may use this project template with prepared webpack config, eslint config and tsconfig.

You also need to use a backend server that implements sending messages using SSE technology. Documentation on how to start the server and how to work with it is described here.

Messages like this one come from the backend:

{
  "msg_id": "1231-123123-123213-1232",
  "time": 1678454378,
  "msg": "This is notification message"
}

Application layout design is described here. Please try making it as close to the layout as possible, but you don't have to follow the prototype exactly.

Restrictions

  • Use Typescript (no JS)
  • Use dependesies listed in package.json, don't install something else
  • Write code according to the eslint config
  • Build via webpack with ts-loader (just use predefined configs)

Main tasks (implement first)

All of the following main tasks must be completed for the test assignment to be considered completed:

  • Implement 2 pages according to layout
  • The maximum number of messages simultaneously displayed on the page is regulated by the "notifications count" parameter
  • Messages can be placed at the top left (Position 1) or right (Position 2) (messages grow downwards). And at the bottom left (Position 3) or right (Position 4) edge (messages grow upwards). The position of messages on the page is regulated by the "notifications position" parameter
  • The message should disappear from the screen after the timeout specified by the parameter "notifications disappear time"

Additional tasks (implement at will)

All of the following additional tasks are optional, but give additional points. Each additional task will be evaluated separately, but they must be done in the order described below, as some tasks are interdependent. The more additional tasks will be done the higher the final score. Additional tasks:

  • The message can be closed by clicking X in the upper right corner of the message
  • If you hover over a message, its timeout is reset, and while the focus is on the message, it does not disappear. As soon as the focus goes away, the timeout countdown starts again
  • If the messages do not fit on the screen, then show the maximum number of messages that can be FULLY rendered on the page, the oldest messages are truncated
  • If multiple browser tabs are open, closing a message propagates to all currently open tabs (when closing a message, it disappears on all tabs)
  • Changing the settings is applied immediately on all tabs (without reloading)

If any part of the task is not clear - please do not hesitate to contact us with your questions, we are always happy to help and explain.

typescript-assignment's People

Contributors

zhyuhan avatar mironovgib avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.