Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
thierryc committed Jul 5, 2024
1 parent f8d57ad commit e1d12f7
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 23 deletions.
2 changes: 1 addition & 1 deletion assets/index-DS1TjvAw.css → assets/index-B72vUZpj.css

Large diffs are not rendered by default.

Binary file added icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 36 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,38 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Penpot plugin example</title>
<script type="module" crossorigin src="/index.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DS1TjvAw.css">
</head>
<body>
<div id="app"></div>
</body>
</html>

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Penpot plugin example</title>
<script type="module" crossorigin src="/index.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-B72vUZpj.css">
</head>

<body>
<form class="sections-wrapper">
<section class="regular-generate">
<label for="qrContent" class="body-s">Enter QR Code Content:</label>
<input type="text" id="qrContent" name="qrContent" placeholder="Enter content for QR code"
aria-label="QR code content" value="https://ap.cx/" class="input qrcode-input">
<div class="preview-container">
<div id="app" class="svg-preview"></div>
</div>
<button type="button" id="generateBtn" aria-label="Generate QR code" data-appearance="primary">Generate QR
Code</button>
</section>
<section class="extra-options">
<div class="select-container">
<label for="correctionLevel" class="body-s">Select QR Code Correction Level</label>
<select id="correctionLevel" name="correctionLevel" class="select">
<option value="L">Low (7%)</option>
<option value="M" selected>Medium (15%)</option>
<option value="Q">Quartile (25%)</option>
<option value="H">High (30%)</option>
</select>
</div>
</section>
</form>
</body>

</html>
9 changes: 2 additions & 7 deletions index.js

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"name": "Penpot starter plugin",
"name": "QRcode",
"host": "http://localhost:4400",
"code": "plugin.js",
"description": "This is a starter plugin for Penpot",
"permissions": ["page:read", "file:read", "selection:read"]
"description": "QR code generator plugin for Penpot by thierryc on github.com",
"icon": "/icon.png",
"permissions": [
"content:read",
"content:write"
]
}
11 changes: 11 additions & 0 deletions manifest.local.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "QRcode",
"host": "http://localhost:4400",
"code": "plugin.js",
"description": "QR code generator plugin for Penpot by thierryc on github.com",
"icon": "/icon.png",
"permissions": [
"content:read",
"content:write"
]
}
2 changes: 1 addition & 1 deletion plugin.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e1d12f7

Please sign in to comment.