Commit graph

256 commits

Author SHA1 Message Date
Omar Rizwan e056ff9073
Merge pull request #85 from jdietrich-tc/master
add Arc browser support for mac
2023-03-02 15:45:33 -05:00
Jonathan C. Dietrich 4f08bb7d99 add Arc browser support for mac 2023-03-02 15:43:06 -05:00
Omar Rizwan a1921878c1
Merge pull request #84 from rumpeltux/master
Fix body.html for larger files and UTF-8 contents.
2023-02-28 02:40:32 -05:00
Hagen Fritsch 5c519a15c2 Fix body.html for larger files and UTF-8 contents. 2023-02-26 19:50:19 +01:00
Omar Rizwan 09d57f94b5
Merge pull request #74 from rrcobb/by-window
Tabs by window
2022-02-02 00:56:15 -05:00
rob cobb bf7edaec22 add tabs directory to window 2022-01-07 16:22:16 -05:00
rob cobb 6cf4c2630d add by-window symlinks 2022-01-07 15:47:37 -05:00
Omar Rizwan e0ec254872 extension: support allFrames in evals/
tweak routes.html language slightly
2021-09-15 23:36:45 -07:00
Omar Rizwan b7bcef30e7 web: link routes.html from page. 2021-09-15 21:39:18 -07:00
Omar Rizwan 8bd49fa4b1 md,web: make web/ subfolder; add all resources to it; move md to it 2021-09-15 21:03:14 -07:00
Omar Rizwan f03fc517c8
Merge pull request #70 from fivitti/master
extension: add support for Opera browser on Linux
2021-09-15 20:15:28 -07:00
Slawomir Figiel b1df488012 extension: add support for Opera browser on Linux 2021-09-15 22:28:19 +02:00
Omar Rizwan ff53ae7d01 extension: more routes.html descriptions and improvements. 2021-09-13 07:12:51 -07:00
Omar Rizwan c5228d4ac0 extension: Improve routes.html w icons, top text. 2021-09-13 06:17:46 -07:00
Omar Rizwan b8258aaa01 extension: Load bg.js upfront; fix bracket matching in routes.html. 2021-09-12 21:29:11 -07:00
Omar Rizwan d07c99e701 extension: Finish source code view on routes.html.
Remove vestiges of backgroundJS hot swap.
2021-08-19 19:10:13 -07:00
Omar Rizwan 37cdd270bd extension: Clean up routes.html formatting a bit. 2021-08-16 16:51:39 -07:00
Omar Rizwan a6d2df4193 extension: Add source code view to routes.html. Del unused stuff --
background.js and background.js.html -- for now.
2021-08-16 16:43:34 -07:00
Omar Rizwan 8aaf038727 extension: Add some descriptions. 2021-08-16 15:47:26 -07:00
Omar Rizwan 8fcfe3d134 extension: more doc improvements 2021-07-26 15:15:21 -07:00
Omar Rizwan 972b51886e extension: routeWithContents -> makeRouteWithContents 2021-07-26 15:03:34 -07:00
Omar Rizwan 59bdf63ff0 extension: improve naming/docs for utility fns 2021-07-26 14:56:48 -07:00
Omar Rizwan 9992d13680 extension: factor out routeDirectoryForChildren and createWritableDirectory
sort routes by specificity (__matchVarCount)

makes evals & watches much simpler; is prep work for writable tab
directory stuff
2021-07-22 17:53:17 -07:00
Omar Rizwan 38a5677dec extension: reorder by-title routes to top, add more usage docs 2021-04-22 18:53:30 -07:00
Omar Rizwan dfc73e55d3 test: fix JS test so window works 2021-04-22 18:32:40 -07:00
Omar Rizwan 1cd220febb extension: fix Chrome 2021-04-22 18:31:43 -07:00
Omar Rizwan 4ed3736a61 extension: add runtime/routes.html 2021-04-22 17:24:45 -07:00
Omar Rizwan e404d44985 extension: allow hot patching of Routes; keep backgroundJS alive
(across hot reloads)
2021-04-22 16:48:01 -07:00
Omar Rizwan 158ad14f97 extension: fix hot patching of backgroundJS
(to the point where you can log and it shows up; it doesn't seem able
to replace routes yet)
2021-04-22 16:39:15 -07:00
Omar Rizwan 4c30d9f989 extension: share cached backgroundJS between .js and .js.html file
delete anim stuff for now
2021-04-22 16:17:42 -07:00
Omar Rizwan 837c0ea3ad extension: defineFile -> routeWithContents. hot reload stuff.
add runtime/background.js route.
2021-04-20 05:07:22 -07:00
Omar Rizwan b8d0f3dab2 extension: start adding some usages; rename withTab and fromScript
to routeForTab and routeFromScript
2021-04-19 22:05:05 -07:00
Omar Rizwan b948c235b8 fs,extension: Make truncate work on cached file content.
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-04-06 13:48:48 -07:00
Omar Rizwan 8fbfa9a7c9 extension: fix truncate in defineFile; refactor/encap defineFile
truncate was still assuming fixed path instead of passing whole req
object on to setData/getData.
2021-03-26 02:21:14 -07:00
Omar Rizwan 383096da00 extension,test: Move Router down, Router -> Routes. 2021-03-22 23:25:38 -07:00
Omar Rizwan 826246bf29 md: Clean up a bit, update file figure. 2021-03-22 23:06:44 -07:00
Omar Rizwan e1f9c5986a fix resources/ suffix misuse bug, tweak README 2021-03-22 22:49:07 -07:00
Omar Rizwan d539660c93 extension: Remove html for now. 2021-03-22 22:33:06 -07:00
Omar Rizwan 2819f3325b extension: Compress/expand lines in html view. 2021-03-22 21:56:19 -07:00
Omar Rizwan 345c7a4af5 extension: red highlights for routes. 2021-03-22 08:56:48 -07:00
Omar Rizwan 73f4672a8c extension,test: router -> Router. 2021-03-21 20:29:30 -07:00
Omar Rizwan 5ef6929ae7 extension: Eliminate pathComponent entirely. 2021-03-21 19:51:31 -07:00
Omar Rizwan b6f44d95f4 extension: Big refactor to use named variables in routes.
Also move debugger-specific stuff into the debugger block.
2021-03-21 19:42:44 -07:00
Omar Rizwan be519afe5f extension,test: Start on simplifying routing.
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-21 15:35:01 -07:00
Omar Rizwan 57726b4354 extension: first cut at background.js.html 2021-03-21 11:55:52 -07:00
Omar Rizwan 11cf48259a test: separate tests from background.js, clean up and document a bit
also makes the test more lenient (subset instead of equality for tab
entries)
2021-03-14 21:33:23 -07:00
Omar Rizwan 00caad5228 extension: some cleanup, get rid of ToSafari thing we weren't using 2021-03-14 17:24:04 -07:00
Omar Rizwan 8f33a2feab extension: source.html -> body.html 2021-03-14 16:12:55 -07:00
Omar Rizwan 922e2bb6a3 extension: also remove spaces; spaces in filenames are annoying, imo 2021-03-14 15:53:04 -07:00
Omar Rizwan 636a975818 extension: use node-sanitize-filename sanitize 2021-03-14 15:50:49 -07:00