Git Product home page Git Product logo

Comments (2)

PidgeyL avatar PidgeyL commented on June 12, 2024

@adulau
I've been thinking on how to do this, and most parts are easy to figure out, but some are a bit more dificult. What I thought of so far is:

  • One file (lib.module) is a template for all modules, and will be extended by custom modules
  • A module loader will give the users the ability to load or disable modules, even while the server is running (I've written something like this in previous projects, so this will be easy to implement)
  • lib.module will contain several functions that can be overwritten by the module, like
    • loadCVEInfo - Gets triggered when you open a /cve/<cveid> page, and returns a subset of the page (for example the notes a user made), or takes other actions, (like marking CVEs as "seen")
    • update - Gets triggered by the updater script, and updates the database info

Things I'm still thinking about are:

  • If you want modules to affect the index page data, how can we do this (for example mark as seen)? There are a few things to keep in mind:
    • Colouring entries gray, like the "seen" module, is currently done in the template
    • Extra filters could probably be added dynamically, but layout and functionality of the filters will change
  • Modules like "bookmarked CVEs" need their own page. How do we accomplish this (in index.py)?

What's your opinion?

from cve-search.

PidgeyL avatar PidgeyL commented on June 12, 2024

Plug-in manager implemented in the latest release of CVE-Search (v2.0)

from cve-search.

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.