Coder Social home page Coder Social logo

Comments (1)

mesacarlos avatar mesacarlos commented on August 26, 2024

This review corresponds with v1.5-rev3

root directory
│   .gitignore
│   LICENSE
│   phrases.properties
│   phrases_cs.properties
│   phrases_en.properties
│   phrases_es.properties
│   phrases_fr.properties
│   phrases_it.properties
│   phrases_nl.properties
│   phrases_pt.properties
│   phrases_ru.properties
│   phrases_zh.properties
│   plugin.yml
│   pom.xml
│   README.md
│
├───client
│   │   favicon.png
│   │   index.html
│   │   README_AFTER_UPGRADE.txt
│   │
│   ├───scripts
│   │       WebConsole.js
│   │       WebConsoleConnector.js
│   │       WebConsoleJqueryHandler.js
│   │       WebConsoleLanguage.js
│   │       WebConsoleManager.js
│   │       WebConsolePersistenceManager.js
│   │
│   └───styles
│           WebConsole.css
│
└───src
    └───es
        └───mesacarlos
            └───webconsole
                │   WebConsole.java
                │
                ├───minecraft
                │       WebConsoleCommand.java
                │
                ├───util
                │       DateTimeUtils.java
                │       Internationalization.java
                │       LogFilter.java
                │       LoginManager.java
                │
                └───websocket
                    │   WSServer.java
                    │
                    ├───command
                    │       CpuUsageCommand.java
                    │       ExecCommand.java
                    │       LogInCommand.java
                    │       PlayersCommand.java
                    │       RamUsageCommand.java
                    │       ReadLogFileCommand.java
                    │       WSCommand.java
                    │       WSCommandFactory.java
                    │
                    └───response
                            ConsoleOutput.java
                            CpuUsage.java
                            JSONOutput.java
                            LoginRequired.java
                            Players.java
                            Processed.java
                            RamUsage.java
                            UnknownCommand.java

Root directory

Root directory contains server-side translations files (*.properties), Maven pom.xml and plugin.yml

Client directory

  • Root: Favicon and main html file.
  • Scripts: Javascript scripts.
    • WebConsole.js: Main JS file. It controls the main features of the client.
    • WebConsoleConnector.js Basically the WebSocket client. Every object of this class represents a connection to a WS Server. Part of the functions inside are WebSocket event listeners, refer to https://developer.mozilla.org/es/docs/Web/API/WebSocket. The rest of the functions are used to send the messages received over WS to all the 'subscribers' (Actually it's just an observer design pattern impl)
    • WebConsoleJqueryHandler.js JQuery Event handlers are here. Button click actions, key presses, etc...
    • WebConsoleLanguage.js Client translations are stored here. About lang objects: It's key is the HTML id where the phrase should be, and the value, the sentence itself.
    • WebConsoleManager.js Basically keeps all WebConsoleConnectors stored inside activeConnections array, and keeps them organized.
    • WebConsolePersistenceManager.js Stores settings and servers into your browser localStorage.
  • Styles: WebConsole main css file

src/es/mesacarlos/webconsole directory

  • minecraft: Minecraft commands like /WebConsole are done here.
  • util: General purpose Classes like i18n manager, LoginManager, etc... Read the javadocs for more info.
  • websocket: WebSocket files
    • command: WebConsole commands. They all implement WSCommand.java. For a detailed explanation, check out the repo wiki. WSCommandFactory.java creates a HashMap with all the valid WSCommands.
    • response: All clases inside this package implement JSONOutput. Basically they are all the different responses that plugin can send to client.
    • WSServer.java: WebSocketServer implementation.
  • WebConsole.java: Main plugin file. Reads config, creates the WS Server, creates thread....

from webconsole.

Related Issues (20)

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.