Update extension.js
This commit is contained in:
parent
85bb8427e5
commit
3b90e5ff5a
|
@ -1,4 +1,5 @@
|
||||||
const vscode = require('vscode');
|
const vscode = require('vscode');
|
||||||
|
|
||||||
function activate(context) {
|
function activate(context) {
|
||||||
let disposable = vscode.commands.registerCommand('erikraftDrop.open', function () {
|
let disposable = vscode.commands.registerCommand('erikraftDrop.open', function () {
|
||||||
const panel = vscode.window.createWebviewPanel(
|
const panel = vscode.window.createWebviewPanel(
|
||||||
|
@ -15,9 +16,11 @@ function activate(context) {
|
||||||
|
|
||||||
context.subscriptions.push(disposable);
|
context.subscriptions.push(disposable);
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.activate = activate;
|
exports.activate = activate;
|
||||||
|
|
||||||
function deactivate() {}
|
function deactivate() {}
|
||||||
|
|
||||||
exports.deactivate = deactivate;
|
exports.deactivate = deactivate;
|
||||||
|
|
||||||
function getWebviewContent() {
|
function getWebviewContent() {
|
||||||
|
@ -25,23 +28,41 @@ function getWebviewContent() {
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="pt-br">
|
<html lang="pt-br">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8" />
|
||||||
<title>ErikrafT Drop</title>
|
<title>ErikrafT Drop</title>
|
||||||
<style>
|
<style>
|
||||||
body, html {
|
html, body {
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
iframe {
|
iframe {
|
||||||
border: none;
|
border: none;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
picture {
|
||||||
|
display: block;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<iframe src="https://drop.erikraft.com/" allow="clipboard-write camera; microphone; autoplay;"></iframe>
|
<!-- Ícone para temas claro e escuro -->
|
||||||
|
<picture>
|
||||||
|
<source srcset="images/ui-icon-dark.svg" media="(prefers-color-scheme: dark)" />
|
||||||
|
<img src="images/ui-icon-light.svg" alt="ErikrafT Drop Icon" width="120" />
|
||||||
|
</picture>
|
||||||
|
|
||||||
|
<!-- GIFs para o README.md -->
|
||||||
|
<div style="text-align: center; padding: 20px;">
|
||||||
|
<img src="images/screenshot1.gif" alt="Demo 1" width="300"/>
|
||||||
|
<img src="images/screenshot2.gif" alt="Demo 2" width="300"/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<iframe src="https://drop.erikraft.com/" allow="clipboard-write; camera; microphone; autoplay;"></iframe>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
`;
|
`;
|
||||||
|
|
Loading…
Reference in New Issue