Skip to content

Repository files navigation

LuCI PortWeaver UI - TypeScript Source

This directory contains the TypeScript source code for the LuCI PortWeaver UI.

Structure

components/     # UI component modules
modules/        # Business logic modules
types/          # TypeScript type definitions
utils/          # Utility functions
main.tsx        # Main entry point

Development

This package is managed from the project root directory. Run dependency installation in the project root:

pnpm install

Local Development

pnpm dev

Remote Development (Auto-upload to OpenWrt)

  1. Copy .env.example to .env and configure SSH settings:
cp .env.example .env
  1. Edit .env:
SSH_HOST=192.168.1.1
SSH_PORT=22
SSH_USERNAME=root
SSH_PASSWORD=your_password
# Or use SSH key: SSH_PRIVATE_KEY_PATH=~/.ssh/id_rsa
SSH_REMOTE_PATH=/www/luci-static/resources/view/portweaver
  1. Start remote development:
pnpm dev:remote

This will auto-compile and upload changes to your OpenWrt device.

Build

pnpm build

Build Output

The TypeScript code will be compiled and bundled into: ./package/luci-app-portweaver/htdocs/luci-static/resources/view/portweaver/config.js

This file is what gets packaged into the final IPK.

Notes

  • The source files (such as main.tsx, components/, modules/) are NOT included in the IPK package
  • Only the compiled output in package/luci-app-portweaver/htdocs/ is packaged
  • Keep LuCI API compatibility when refactoring

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages