Coder Social home page Coder Social logo

airdcpp-web / airdcpp-webui Goto Github PK

View Code? Open in Web Editor NEW
18.0 18.0 8.0 19.92 MB

Web User Interface for AirDC++ Web API

Home Page: https://airdcpp-web.github.io

License: MIT License

JavaScript 7.70% CSS 3.03% Shell 0.04% TypeScript 88.92% EJS 0.31%
airdcpp react webapi websocket webui

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

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.

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?

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.