Avatar

vez

elliot.website
Joined November 10, 2022
Public vals
17
vez avatar
test_val_multiple_exports
@vez
Script
An interactive, runnable TypeScript val by vez
vez avatar
example
@vez
Script
An interactive, runnable TypeScript val by vez
vez avatar
untitled_tanHare
@vez
HTTP
Blob Admin This is a lightweight Blob Admin interface to view and debug your Blob data. To use it on your own Val Town Blob Storage, fork it to your account. It uses basic authentication with your Val Town API Token as the password (leave the username field blank). TODO [ ] /new - render a page to write a new blob key and value [ ] or new blob by file upload [ ] /edit/:blob - render a page to edit a blob (prefilled with the existing content) [ ] json validation when the existing content is json [ ] checkbox to disable that [ ] /delete/:blob - delete a blob and render success
vez avatar
comments
@vez
HTTP
Comments (just add water) A self-contained comments system Val. Just fork this val and you have a complete (but extremely minimal) comment system! Call on the front-end using: const MY_FORKED_VAL_URL = "https://vez-comments.web.val.run"; const getComments = async () => { const response = await fetch(MY_FORKED_VAL_URL); const json = await response.json(); return json; }; const addComment = async (str) => { try { const response = await fetch(MY_FORKED_VAL_URL, { method: "POST", body: JSON.stringify(str), }); if (response.status >= 400 && response.status < 600) { /* error */ return false; } else { /* success */ return true; } } catch (e) { /* error */ return false; } }; Here's an example of a blog post where I used the val for the comment system: https://vezwork.github.io/polylab/dist/demo/bidirectionalParse/. Check out "view source"!
vez avatar
getComments2
@vez
RPC
An interactive, runnable TypeScript val by vez
vez avatar
addComment2
@vez
RPC
An interactive, runnable TypeScript val by vez
vez avatar
reportComments
@vez
Script
An interactive, runnable TypeScript val by vez
vez avatar
getComments
@vez
RPC
An interactive, runnable TypeScript val by vez
vez avatar
addComment
@vez
Script
An interactive, runnable TypeScript val by vez
vez avatar
FigmaFrameToHTML
@vez
Script
// Forked from @rodrigotello.FigmaFrameToHTML
vez avatar
editVal
@vez
Script
An interactive, runnable TypeScript val by vez
vez avatar
getAllVals
@vez
Script
An interactive, runnable TypeScript val by vez
vez avatar
dot
@vez
Script
An interactive, runnable TypeScript val by vez
vez avatar
getVal
@vez
Script
// Forked from @nate.getVal
vez avatar
shittyValTownUI
@vez
Script
An interactive, runnable TypeScript val by vez
vez avatar
postWebhook1
@vez
Script
An interactive, runnable TypeScript val by vez