npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@bluepjs/vue3-ide

v0.3.11

Published

IDE for @bluepjs blueprints

Downloads

5

Readme

@bluepjs/vue3-ide

Vue3 IDE component for developing blueprints library, executed by @bluepjs/vm

Installation

npm install -s @bluepjs/vue3-ide

Ussage

Add IDE module to your Vue app

// main.js
// ...
import bluep from '@bluepjs/vue3-ide'
// ...
createApp(app)
  .use(bluep)
  // to redefine default components names
  // .use(bluep, { component: 'BluepJsEditor', valueWidget: 'BluepJsValueWidget' })
// ...

Your application should manage "communication" with Virtual Machine to get VM possibilities (libraries, actors, types, nodes and modules). Check (@bluepjs/example)[https://github.com/bluep-js/example] for integration example.

Integrate Editor into page:

    <BluepJsEditor
      :height="'100%'"
      :types="vm.types"
      :nodes="vm.nodes"
      :modules="vm.modules"
      :actors="vm.actors"
      :libraries="vm.libraries"
      :options="editorOptions"
      @save="onSave"
      @run="onRun"
      @select="onSelect"
    />

vm object provided by Vm::ideData() method

Options

Options object used to configure editor icons and starting page, for example:

  computed: {
    editorOptions () {
      const last = localStorage.getItem('bluep/select')
      let select = null
      if (last) {
        try {
          select = JSON.parse(last)
        } catch (err) {
          localStorage.removeItem('bluep/select')
          select = null
        }
      }
      return {
        icons: {
          enum: 'bi-file-text',
          struct: 'bi-file-medical',
          function: 'bi-file-code',
          class: '',
          library: 'bi-book',
          event: 'bi-bell',
          view: 'bi-eye',
          add: 'bi-plus',
          remove: 'bi-trash',
          save: 'bi-save',
          run: 'bi-play',
          close: 'bi-x',
          fw: ''
        },
        select
      }
    }
  }
  • icons - used "i class" style. Without icons some buttons right now are not visible (has no text, will be fixed in future)
  • select - object recieved on @select event to start editor with required element open
  • check other options at https://bluepjs.takatan.dev/dev/ide.html#options

Events

  • save - "SAVE" button clicked. $event is updated library
  • run - "RUN" buttn clicked. $event contains information about library and function codes to run
  • select - fires when some element is selected to edit

Documentation (under development)

https://bluepjs.takatan.dev/

Links

https://github.com/bluep-js/vm https://github.com/bluep-js/vue3-ide

Roadmap

Libraries support (use/import/export)

Local Development

Project doesn't have any VM to get types/nodes/libraries/etc - you should care about it for local development.

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

PR

Please, into dev branch

Changelog

0.3.7

  • actors classes optimization
  • ValueWidget supports: bluep/struct/.., basic/color, addclasses and overclasses for html classes control
  • ValueWidget component now also registered on module install with default name BluepJsValueWidget
  • ValueWidget is not documented

0.3.6

  • Actor module now provides all actors metadata as module's classes;
  • Context menu z-index fix;
  • small bugfixes for correct actors classes inheritance;

0.3.5

  • fixed context menu scroll/zoom
  • drag field on Alt key + left mouse
  • small ui improvements
  • simple functions configurations from modules 'functionConfigs' metadata object