Giter VIP home page Giter VIP logo

airdcpp-webui's Introduction

airdcpp-webui Node.js CI npm package

This package should be used directly only for development purposes; end users will get it through other projects, such as AirDC++ Web Client. Normal feature request and bug reports should also be posted on AirDC++ Web Client's issue tracker.

AirDC++ Web UI written in Javascript. Communicates with AirDC++ Core via AirDC++ Web API.

Installing dependencies

You must have Node installed before continuing. It's also recommended to ensure that your version of Node comes with npm 3 or newer (check with npm -v) as older versions may cause errors during the build process. See this guide for upgrading instructions.

The following commands should be run in the main directory of the cloned repository.

Install dependencies:

$ npm install

Production build

Run the command

$ npm run build

Running the integrated development server

The integrated server connects to AirDC++ Web API through the default port 5600. When the server is running, open your browser and navigate to http://localhost:3000

You may start the server by running

$ npm start

Changes made to the source will be updated instantly to the browser while the server is running (there is no need to run the build command).

airdcpp-webui's People

Contributors

dependabot[bot] avatar maksis avatar txc avatar venompie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

airdcpp-webui's Issues

Security: Fix package version

$ npm audit
                                                                                
                       === npm audit security report ===                        
                                                                                
# Run  npm update handlebars --depth 5  to resolve 2 vulnerabilities
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ High          │ Arbitrary Code Execution                                     │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ handlebars                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ jest-cli [dev]                                               │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ jest-cli > @jest/core > @jest/reporters > istanbul-reports > │
│               │ handlebars                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://npmjs.com/advisories/1324                            │
└───────────────┴──────────────────────────────────────────────────────────────┘


┌───────────────┬──────────────────────────────────────────────────────────────┐
│ High          │ Prototype Pollution                                          │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ handlebars                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ jest-cli [dev]                                               │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ jest-cli > @jest/core > @jest/reporters > istanbul-reports > │
│               │ handlebars                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://npmjs.com/advisories/1325                            │
└───────────────┴──────────────────────────────────────────────────────────────┘


found 2 high severity vulnerabilities in 896148 scanned packages

If client has unsupported language then webUI hangs on loading spinner

Open the webUI with an invalid language. Either use an unsupported language or change i18nextLng in local storage to ie nb-NO (norwegian)

This throws a js error in the console and the webUI never loads.

Error: Cannot find module './nb/webui.main.json' .*$:32
    r .*$:32
    o .*$:27
    ajax LocalizationService.ts:22
    value index.js:82
    value index.js:75
    value BackendConnector.js:160
    value BackendConnector.js:226
    value BackendConnector.js:199
    forEach (index):262
    value BackendConnector.js:198
    value BackendConnector.js:205
    value i18next.js:210
    o i18next.js:290
    value i18next.js:296
    s i18next.js:149
i18next::backendConnector: loaded namespace main for language en

Since this blocks the webUI completely I think it should be changed so the fallback language is used both when the service can not detect the language but also if it is an unsupported language.

Also since you are familiar with the translation here. Norwegian identifies with no and nb, or even nn for another variant of the language which one may want to use at least until both translation variants exist. Should this be reported here, in i18next-browser-languagedetector or somewhere else?

missing build script and package.json

The package didnt ship with a build script and a package.json. I created the package.json with npm init, but theres still a build script needed that i dont have. I installed airdcpp from the AUR.

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.