frg-fossee / eSim-Cloud

A web-based system for designing and simulating electronic (eSim) and Arduino circuits.

Home Page:https://esim-cloud.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Load default and additional libraries of eSim on system installation

firuza opened this issue · comments

Based on the recent PR #247 an admin and a user have a facility to upload libraries. An admin, while uploading the libraries can choose whether the library being uploaded is default or additional. Libraries which are set as default will be visible in the left pane for all the users. However, the libraries which are set as additional will not appear in the left pane, but will be available for the all the users and it will be the user's decision to display the library in the left pane or not.

Currently, when the system is installed, no libraries are set as default. Hence, on a fresh system the admin needs to upload the libraries manually. To solve this we need to do the following:

  1. Identify the libraries whose components are used in the circuits present in the gallery
  2. Load those libraries as default when the system is installed afresh.