Skip to content

swishs-client-mod-plugins/code-snippets

Repository files navigation

Code Snippets

A Kernel package (specifically for Discord) that adds a tab in settings where you can add and manage code snippets.

Requires: https://github.com/strencher-kernel/settings

Note:

This is an ALPHA package, expect bugs; but also please mention me when you find them :)

Installation:

# I would advise against doing the regular "npm i" as that will install way more stuff than you need.
npm i --production
pnpm i --production

Swish's epic super happy fun todo list:

General Functionality:

  • Custom CSS and SCSS snippets
  • Custom JS, TS, and JSX snippets
  • Help Modal (with backup snippets button)

Bug Fixes:

  • Whitelist domains (if needed) as I've only tested this with CSP forcebly removed.

QOL Features:

  • Pack package into asar (next priority)
  • Use Strencher's webpack package directly, ATM I'm using a slightly modified version and shipping it with this package. This shouldn't be too hard to do. (Update: waiting until Strencher updates his package but this is planned)
  • Popout support (this is a fucking nightmare because monaco)
  • Add a linking mechanism where you can link snippets to Github gist

Maybe?:

  • TSX support (because of the way the typescript compiler settings work in monaco it's really finicky to get this working)

About

A Kernel Package that adds a tab to Discord settings where you can add and arrange custom code snippets.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5