New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

logicline-view

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

logicline-view

A library used to display [logic line](https://github.com/roboplc/logicline) state snapshots.

latest
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

logicline-view

A library used to display logic line state snapshots.

import { useState, useEffect } from "react";
import { RackView, type Snapshot } from "logicline-view";
import "../node_modules/logicline-view/dist/style.css";

const App = () => {
  const [data, setData] = useState<Snapshot>({ lines: [] as any });

  useEffect(() => {
    let t: number;
    const fetchData = () => {
      fetch(`http://${window.location.hostname}:9001/state`)
        .then((res) => res.json())
        .then(setData);
      t = setTimeout(fetchData, 500);
    };
    fetchData();

    return () => clearTimeout(t);
  }, []);
  return (
    <RackView
      data={data}
      onBlockClick={(v) => {
        console.log(v);
      }}
    />
  );
};

Quick example

Style customization

The following variables can be used to customize basic colors.

--logicline-secondary-text-color: #0a1a2c;
--logicline-decorator-color: #ccc;
--logicline-accent-color: #009e23;
--logicline-disabled-color: #555;

To perform more customization, override the provided CSS classes.

FAQs

Package last updated on 12 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts