Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New .Dump() features #144

Merged
merged 6 commits into from
Jan 1, 2024
Merged

New .Dump() features #144

merged 6 commits into from
Jan 1, 2024

Conversation

tareqimbasher
Copy link
Owner

Introduces a number of new .Dump() capabilities, namely:

  1. Dump HTML controls
  2. Dump media files (images, audio, video)
  3. Define css classes on output items
  4. Clear an output item after a set amount of time
  5. Dump code with syntax highlighting

Introduces the following types that are accessible from in Scripts:
- Image
- Audio
- Video
- MediaFile (the base class of the previous 3)

All 3 types can loaded from a local file, a URI, or a HTML-compliant Base64-encoded string.
Options are optional
- css: (string) css classes that will be added to output. Users have all the classes in Bootstrap v5 available to them
- clear: (int) will clear dumped result after specified milliseconds
- Ability to serialize JsonDocument, JsonElement, JsonNode
- Serializes Json and XML types to code string
- Unified and simplified API
@tareqimbasher tareqimbasher changed the title Feat/dump features New Dump features Jan 1, 2024
@tareqimbasher tareqimbasher changed the title New Dump features New .Dump() features Jan 1, 2024
@tareqimbasher tareqimbasher merged commit 3b0b10e into main Jan 1, 2024
6 of 13 checks passed
@tareqimbasher tareqimbasher deleted the feat/dump-features branch January 1, 2024 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant