Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
embeddable-monaco
Advanced tools
Embeddable online playground using Monaco editor. Works great with Vue and Slidev!
Embeddable online playground using Monaco editor. Also made to be a Vue component, perfect to be embedded in Slidev slides.
$ npm install --save embeddable-monaco
or
$ yarn install embeddable-monaco
Edit file setup/main.ts
:
import {defineAppSetup} from '@slidev/types';
import {Embeddable} from 'embeddable-monaco';
import 'embeddable-monaco/dist/embeddable.css';
export default defineAppSetup(({app}) => {
Embeddable.install(app);
});
Use component Embeddable
in your slides:
<Embeddable
height="300"
sourceURL="https://embeddable.vercel.app/?lang=typescript&code=aW50ZXJmYWNlIFVzZXIgewogIGlkOiBudW1iZXI7CiAgbmFtZTogc3RyaW5nOwogIGFnZTogbnVtYmVyOwp9CgpmdW5jdGlvbiBnZXRWYWx1ZShvYmosIGtleSkgewogIHJldHVybiBvYmooa2V5KTsKfQoKbGV0IHVzZXIxOiBVc2VyID0ge2lkOiAxLCBuYW1lOiAnYWRtaW4nLCBhZ2U6IDE4fTsKbGV0IHZhbHVlID0gZ2V0VmFsdWUodXNlcjEsICduYW1lJyk7CmNvbnNvbGUubG9nKHZhbHVlKTsK"
lineNumbers="off"
/>
Embeddable
"100%"
"100%"
"typescript"
"// Start here..."
language
and code
. This will override language
and code
props.https://embeddable.vercel.app/?lang=<YOUR_LANGUAGE>
and type in the code, then press cmd/ctrl + S
. The address bar will give you this sourceURL
.https://embeddable.vercel.app/?lang=typescript&code=Ly8gU3RhcnQgaGVyZS4uLgo%3D
"on"
| "off"
"on"
"on"
| "off"
"on"
"auto"
| "visible"
| "hidden"
"auto"
shows the scrollbar when mouse hover; "visible"
makes the scrollbar always visible; "hidden"
always hides it."auto"
MIT, see the LICENSE file for more details.
FAQs
Embeddable online playground using Monaco editor. Works great with Vue and Slidev!
We found that embeddable-monaco demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.