summaryrefslogtreecommitdiff
path: root/extension
AgeCommit message (Collapse)Author
2021-04-22extension: allow hot patching of Routes; keep backgroundJS aliveOmar Rizwan
(across hot reloads)
2021-04-22extension: fix hot patching of backgroundJSOmar Rizwan
(to the point where you can log and it shows up; it doesn't seem able to replace routes yet)
2021-04-22extension: share cached backgroundJS between .js and .js.html fileOmar Rizwan
delete anim stuff for now
2021-04-20extension: defineFile -> routeWithContents. hot reload stuff.Omar Rizwan
add runtime/background.js route.
2021-04-19extension: start adding some `usage`s; rename withTab and fromScriptOmar Rizwan
to routeForTab and routeFromScript
2021-04-06fs,extension: Make truncate work on cached file content.Omar Rizwan
We now remember the path of each cached file, so when someone truncates that path, we can truncate all open instances of it in cache. Important when someone pipes to stomp a file / opens with O_TRUNC (which FUSE disaggregates into an open() and then a truncate() call). Gets rid of the need for FUSE_CAP_ATOMIC_O_TRUNC, which never worked on macOS anyway. Fixes #40.
2021-03-26extension: fix truncate in defineFile; refactor/encap defineFileOmar Rizwan
truncate was still assuming fixed path instead of passing whole req object on to setData/getData.
2021-03-22extension,test: Move Router down, Router -> Routes.Omar Rizwan
2021-03-22fix resources/ suffix misuse bug, tweak READMEOmar Rizwan
2021-03-22extension: Remove html for now.Omar Rizwan
2021-03-22extension: Compress/expand lines in html view.Omar Rizwan
2021-03-22extension: red highlights for routes.Omar Rizwan
2021-03-21extension,test: router -> Router.Omar Rizwan
2021-03-21extension: Eliminate pathComponent entirely.Omar Rizwan
2021-03-21extension: Big refactor to use named variables in routes.Omar Rizwan
Also move debugger-specific stuff into the debugger block.
2021-03-21extension,test: Start on simplifying routing.Omar Rizwan
Introduces a 'named variable' syntax so we can remove all the manual indexing into path components / converting to int in individual fs ops. Also rewrites the route finding to use regex: all routes are compiled to regexes, then the route finder just walks through them all until it hits a match. Doesn't fully work yet; JS test passes.
2021-03-21extension: first cut at background.js.htmlOmar Rizwan
2021-03-14test: separate tests from background.js, clean up and document a bitOmar Rizwan
also makes the test more lenient (subset instead of equality for tab entries)
2021-03-14extension: some cleanup, get rid of ToSafari thing we weren't usingOmar Rizwan
2021-03-14extension: source.html -> body.htmlOmar Rizwan
2021-03-14extension: also remove spaces; spaces in filenames are annoying, imoOmar Rizwan
2021-03-14extension: use node-sanitize-filename sanitizeOmar Rizwan
2021-03-14Merge commit 'refs/pullreqs/59'Omar Rizwan
2021-02-25rename old TAB/evals to TAB/watches; add new TAB/evalsOmar Rizwan
2021-02-22remove TAB/console and TAB/execute-script which are uglyOmar Rizwan
(and not really necessary now that we have evals, I think? like, as long as you have some way to run JS on the content script, you can build other functionality out of that)
2021-02-22extension: allow deletion of TAB/evals/*Omar Rizwan
2021-02-22extension: add TAB/evals!Omar Rizwan
2021-02-21hack to handle reading TAB/inputs/INVALIDID. also reorder some codeOmar Rizwan
2021-02-19change TAB/textareas to TAB/inputs, add support for text inputsOmar Rizwan
2021-02-19add WINDOW/focusedOmar Rizwan
2021-02-19active: refactor / simplify to use withTabOmar Rizwan
2021-02-19fix bug with write permission for files with autogen getattrOmar Rizwan
(fixes bug with writing to `TAB/active` from Emacs Lisp, which checks permission instead of just trying to write)
2021-02-08safari: fix some races when you reload Web inspector, make ws connection retryOmar Rizwan
2021-02-08safari: TabFSServer subprocess that can live long. fixes bug where fs would ↵Omar Rizwan
die after a minute or two
2021-02-08safari: more cleanup and commentingOmar Rizwan
2021-02-08safari: make tabfs URL path independentOmar Rizwan
2021-02-08safari: more cleanup, start on README.mdOmar Rizwan
2021-02-08safari: loopback restrictOmar Rizwan
2021-02-08safari: clean up code a bitOmar Rizwan
2021-02-08safari: it works over ws!Omar Rizwan
2021-02-08safari: successfully exchanges 1 req/resp over ws, then failsOmar Rizwan
2021-02-08safari: start migration to using out-of-band WebSocket to do extension<=>fs commOmar Rizwan
2021-02-07safari: works! (it lists tabs/by-title, at least)Omar Rizwan
Safari keeps stealing focus bc of how I do messaging to it now, need to fix all that next
2021-02-07safari: XPC service runs!Omar Rizwan
2021-02-07safari: merge XPC service to run tabfs process. it builds but haven't hooked ↵Omar Rizwan
it in yet
2021-02-07trying to just run straight from sandbox instead of xpc -- kinda works! ↵Omar Rizwan
blocked on libfuse
2021-02-02safari: checkpoint as I try to get the terrible wiring rightOmar Rizwan
2021-01-31safari: initial commit.Omar Rizwan
this is just the output of `xcrun safari-web-extension-converter .` in `extension/` it doesn't work yet (well, it runs without any errors, but it doesn't know to invoke the tabfs process; it just talks to the stub app from the generator)
2021-01-14Allow all characters (except /) when sanitazingK1-K1
2021-01-13Merge pull request #51 from joshuahhh/masterOmar Rizwan
read/write textareas