Skip to content

Commit

Permalink
added copy button to code panesl
Browse files Browse the repository at this point in the history
  • Loading branch information
stealthcopter committed Oct 26, 2024
1 parent 4e8b949 commit 136b3f1
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 6 deletions.
6 changes: 0 additions & 6 deletions inc/pages/resty.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@
die('not like this...');
}

// TODO: Show permissions callback
// TODO: Highlight permissions __return_true
// TODO: Annotate for nonce check, current_user_can
// TODO: C&P http request
// TODO: Toggle cookie for http request
// TODO: Show link for get requests
function get_namespaces()
{
global $wp_rest_server;
Expand Down
3 changes: 3 additions & 0 deletions inc/templates/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-markdown.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-python.min.js"></script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/toolbar/prism-toolbar.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/copy-to-clipboard/prism-copy-to-clipboard.min.js"></script>

</body>
</html>
2 changes: 2 additions & 0 deletions inc/templates/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@

<!-- Prism.js CSS for code highlighting -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-tomorrow.min.css" rel="stylesheet"/>
<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/toolbar/prism-toolbar.min.css" rel="stylesheet"/>


<style>
/* Toast container in bottom-right corner */
Expand Down
26 changes: 26 additions & 0 deletions todo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

# General
- Code highlight
- Sources (user input)
- Sinks (dangerous functions)

# Info
- Add WP info

# Gadgets
- Auto generate serialized php obj
- Allow updating?

# PoC
- Write PoC Generator
- Use templates
- Markdown
- Python

# Funcy
- Add filters to funcy

# Resty
- Annotate for nonce check, current_user_can
- Toggle cookie for http request
- Show link for get requests

0 comments on commit 136b3f1

Please sign in to comment.