Skip to content

Commit

Permalink
FIX: Add missing files apps-list.reb, delete.reb
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliolunati committed Aug 27, 2019
1 parent 08f7565 commit 36ff439
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions assets-src/apps/apps-list.reb
@@ -0,0 +1,3 @@
<r3-console>
https://github.com/hostilefork/replpad-js
"Interactive Web Console for Rebol language (Ren-C branch)"
7 changes: 7 additions & 0 deletions assets-src/apps/delete.reb
@@ -0,0 +1,7 @@
function [request] [
query: parse-query request/query-string
?? name: clean-path join %apps/ select query "name"
delete-recur name
{<meta http-equiv="Refresh" content="0; url=/apps/" />}
]

2 changes: 1 addition & 1 deletion assets-src/apps/index.reb
Expand Up @@ -17,7 +17,7 @@ function [request] [
}
for-each x read cwd [
if dir? x [
emit ?? reword
emit reword
{<a href='delete.reb?name=$t'>[&ndash;]</a>
<a href='$x'>$t</a> <br>
}
Expand Down

0 comments on commit 36ff439

Please sign in to comment.