Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Plugin System #124

Open
wants to merge 51 commits into
base: master
Choose a base branch
from
Open

Plugin System #124

wants to merge 51 commits into from

Conversation

mrxiaozhuox
Copy link
Member

@mrxiaozhuox mrxiaozhuox commented Mar 26, 2023

  • Plugin storage & work in user project folder
  • deleted tools code
  • auto-check plugin version conflict
  • plugin install command (install from git repo)
  • log info include plugin name (easier to track plugin log)
  • add more useful plugin API
  • pass Dioxus.toml config to plugin manager
  • add dioxus plugin init command, cancel auto-init plugin system
  • add upgrade command for core
  • lua script fully supported async function & runtime

New plugin API

  • fs::move_file - move a file from one path to another path
  • fs::remove_file - remove a file
  • path::file_name - get path top-level directory & file name
  • dirs::crate_dir - get crate root dir
  • fs::read_dir - get dir content list
  • json::encode - encode json
  • json::decode - decode json

Plugin event

deleted serve.interval event
deleted serve.on_rebuild event
add serve.on_rebuild_start event
add serve.on_rebuild_end event

@mrxiaozhuox mrxiaozhuox marked this pull request as ready for review April 18, 2023 20:06
@mrxiaozhuox mrxiaozhuox added the enhancement New feature or request label May 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants