Commit Graph

175 Commits

Author SHA1 Message Date
Wu Zhenyu 200aec095d feat: Add json schema (#505) 2024-01-21 14:27:20 -03:00
dependabot[bot] 1d4211ceb0 Bump http-cache-semantics from 4.1.0 to 4.1.1 in /webext
Bumps [http-cache-semantics](https://github.com/kornelski/http-cache-semantics) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/kornelski/http-cache-semantics/releases)
- [Commits](https://github.com/kornelski/http-cache-semantics/compare/v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: http-cache-semantics
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-02 18:38:13 -05:00
dependabot[bot] acaa7d6459 Bump loader-utils from 2.0.2 to 2.0.4 in /webext
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 2.0.2 to 2.0.4.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v2.0.4/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v2.0.2...v2.0.4)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-02 18:36:52 -05:00
dependabot[bot] 51eaefba13 Bump fast-json-patch and web-ext in /webext
Bumps [fast-json-patch](https://github.com/Starcounter-Jack/JSON-Patch) to 3.1.1 and updates ancestor dependency [web-ext](https://github.com/mozilla/web-ext). These dependencies need to be updated together.


Updates `fast-json-patch` from 2.2.1 to 3.1.1
- [Release notes](https://github.com/Starcounter-Jack/JSON-Patch/releases)
- [Commits](https://github.com/Starcounter-Jack/JSON-Patch/compare/v2.2.1...3.1.1)

Updates `web-ext` from 7.1.1 to 7.5.0
- [Release notes](https://github.com/mozilla/web-ext/releases)
- [Commits](https://github.com/mozilla/web-ext/compare/7.1.1...7.5.0)

---
updated-dependencies:
- dependency-name: fast-json-patch
  dependency-type: indirect
- dependency-name: web-ext
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-02 18:36:19 -05:00
Thomas Buckley-Houston 3bc427f416 devops: Update release process for Github 2022-07-20 15:22:12 -04:00
Thomas Buckley-Houston 07ccc9d9d7
chore: Upgrade all node deps 2022-07-16 18:52:07 -04:00
Thomas Buckley-Houston 6ccf2afd07 devops: Refactor CI to use ctl.sh
Also updates our goreleaser setup to work again
2022-07-16 17:18:39 -04:00
Thomas Buckley-Houston aaea254f0d fix: Don't load startup URL in HTTP Server mode
I think this is the source of a long-standing issue in the HTTP Server
where it would just freeze after a certain period of time. Every
successful page load, wether it was explicitly requested as a raw-text
request or not, attempts to send a raw text payload on page load. So I
think the automatic default home page startup loading was confusing
things.

Fixes #207
2022-07-16 17:18:39 -04:00
Thomas Buckley-Houston f34ccc7344 devops: Move random scripts into central ctl.sh 2022-07-16 17:18:39 -04:00
Thomas Buckley-Houston 8810e481db tests: Migrate to Github Actions 2022-07-16 17:18:39 -04:00
Tormod Alf Try Tufteland 4955e243d8 feat: github action for tests 2022-07-15 13:41:50 -04:00
dependabot[bot] 92825166e0
Bump lodash from 4.17.13 to 4.17.19 in /webext (#333)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.13 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.13...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-27 09:07:51 +02:00
dependabot[bot] 7e945d3356
Bump https-proxy-agent from 2.2.1 to 2.2.4 in /webext (#316)
Bumps [https-proxy-agent](https://github.com/TooTallNate/node-https-proxy-agent) from 2.2.1 to 2.2.4.
- [Release notes](https://github.com/TooTallNate/node-https-proxy-agent/releases)
- [Commits](https://github.com/TooTallNate/node-https-proxy-agent/compare/2.2.1...2.2.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-27 09:06:49 +02:00
Andres Lowrie 98b59929d9
default to https for donate (#325) 2020-06-18 09:39:18 +02:00
dependabot[bot] d9311bd3aa Bump lodash from 4.17.11 to 4.17.13 in /webext (#290)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.11 to 4.17.13.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.11...4.17.13)

Signed-off-by: dependabot[bot] <support@github.com>
2019-11-12 12:32:20 +07:00
dependabot[bot] 8880ac9a21 Bump eslint-utils from 1.3.1 to 1.4.3 in /webext (#289)
Bumps [eslint-utils](https://github.com/mysticatea/eslint-utils) from 1.3.1 to 1.4.3.
- [Release notes](https://github.com/mysticatea/eslint-utils/releases)
- [Commits](https://github.com/mysticatea/eslint-utils/compare/v1.3.1...v1.4.3)

Signed-off-by: dependabot[bot] <support@github.com>
2019-11-12 12:32:07 +07:00
dependabot[bot] 5e8605aa9a Bump mixin-deep from 1.3.1 to 1.3.2 in /webext (#286)
Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/jonschlinkert/mixin-deep/releases)
- [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-10-24 23:38:29 +02:00
niu tech f62d7dcb18 Change font family, fix invalid CSS (fixes #70) (#253)
* Increase font size, fix invalid CSS (fixes #70)

* Revert to 15px, use Courier New font if available
2019-10-01 10:53:44 +02:00
Thomas Buckley-Houston 1d4723f3b0 injectCustomCSS() fix, don't error of no body 2019-06-19 13:29:09 +03:00
Thomas Buckley-Houston 759e8a125a HTTP server return <html> instead of just <body> 2019-06-19 13:22:38 +03:00
Thomas Buckley-Houston 95562aa129 HTTP server: fixes that were causing page hangs 2019-06-19 13:21:41 +03:00
Thomas Buckley-Houston d6b5951059 HTTP server: add experimental DOM-dump mode
Simply dumps the contents of the DOM
2019-06-19 09:03:20 +03:00
Thomas Buckley-Houston 931cc1ca38 Allow Firefox prefs to be set in config.toml 2019-06-18 17:17:01 +03:00
Thomas Buckley-Houston 2b97b29d91 HTTP server: fix for stale DOM dimensions 2019-06-18 13:41:23 +03:00
Thomas Buckley-Houston 554f7f393a Fix JS tests 2019-06-18 13:30:38 +03:00
Thomas Buckley-Houston 31def7cc30 Config to set custom global CSS 2019-06-18 12:54:29 +03:00
Thomas Buckley-Houston d079f9a353 JS prettier fixes 2019-06-18 12:51:06 +03:00
Thomas Buckley-Houston f8b0e5592b Text rendering: fixes and improvements
Introduces a new option to disable the pixel comparison text visibility
detecting code. There are some situations in which it helps and some in
which it hinders. So for now it is disable by default and can be
enabled through the config file or my pressing F6 in the TTY client.

Also includes a couple of fixes to the HTTP server's text rendering.
2019-06-18 12:31:45 +03:00
Thomas Buckley-Houston d93c084dcd Update dependencies. Bump to v1.5.2 2019-06-11 13:21:56 +03:00
Thomas Buckley-Houston 27826b34e2 Various improvements to integration tests
This has been a long time coming, but it's still not perfect. Basically
I'm trying to reset the entire environment as much as possible so that
each spec runs in a clean room. Mostly in this commit Firefox is being
killed and restarted for every spec, which has made a lot of
improvements.
2019-06-11 12:21:39 +03:00
Thomas Buckley-Houston 883cd9cef9 Update JS and Go deps. Bump Browsh to v1.5.0 2018-11-06 21:14:49 +09:00
Thomas Buckley-Houston 2afe57b02f Newer NVM formats package.lock differently 2018-11-06 21:14:37 +09:00
Jared Rewerts 99d8468920 Used a cross-platform Bash shebang. 2018-09-22 21:31:04 +08:00
BO41 582ac7224b optimise js 2018-09-22 21:30:26 +08:00
BO41 99a4000dc1 Refactors lots of JS `if`s (#169) 2018-08-04 20:51:09 +08:00
BO41 ad235b6c51 Use less verbose `if` statements (#166) 2018-08-04 19:55:37 +08:00
Thomas Buckley-Houston db272b582a Remove pty.js dependency 2018-07-27 15:17:14 +08:00
Thomas Buckley-Houston a9c3e7ce22 Fixes incorrect `.xpi` path during release
Hat tip to @MikuroK. Fixes #155
2018-07-27 12:58:04 +08:00
Thomas Buckley-Houston 9abc3aaa3f Refactor build process to not use pre-built bins
This means that there's now a canonical script that allows other
distributers to build Browsh. The only caveat being that the web
extension cannot be built (Mozilla only allows one signed `.xpi` per
version), so it is downloaded.
2018-07-26 18:44:01 +08:00
Thomas Buckley-Houston aefff58b43 Adds page-load timing end to `window.onload` event
I'd added this before, but for some reason it went missing.
2018-07-25 10:36:31 +08:00
Thomas Buckley-Houston 4ae545d514 JS formatting 2018-07-24 22:38:45 +08:00
Thomas Buckley-Houston 02c97743a7 Fix for occasionally fragmented HTTP responses 2018-07-24 22:28:46 +08:00
Thomas Buckley-Houston 4fa867cafd Attempted fix for HTTP server's stuck requests
My hunch is that, since the switch to using brow.sh as the default
homepage, the extra page load time has an undesirable effect on
subsequent requests for new tabs. For example, say that a new tab
is requested but the original brow.sh tab hasn't completed, but
it does complete halfway through another tab loading. Might it retake
focus and prevent DOM load events triggering in the user-requested
tab?

So for now, the quickest fix is just to increase the wait time in the
tests. The better fix, if my hunch is right, would be to detect and
wait for the original launch-time tab to finish.
2018-07-24 21:28:14 +08:00
Thomas Buckley-Houston 514260205c Page load and parsing durations in HTTP header 2018-07-24 15:54:45 +08:00
Thomas Buckley-Houston 2f713f40fc Ran linters to fix formatting 2018-07-24 13:30:51 +08:00
Thomas Buckley-Houston a8cff1bf1d Fixes 'no-text' bug in HTTP server's raw text
Such a big commit to provide a fix which really only involves a few
lines in the graphics builder. It would seem that the very first time
the BlockCharMono font is rendered it needs a little delay. So there's a
refactor here to use a callback when requesting a screenshot with text.

All the other code in this commit is just the scaffolding to try to fix
this issue. It's all good stuff in itself. Basically stricter code
triggers for the different stages of page load: tab load, DOM ready,
page ready. I actually wonder if the TTY page loads feel snappier now?

closes #46
2018-07-21 23:04:09 +08:00
Thomas Buckley-Houston 7c10bd230e Replace google.com with brow.sh as startup URL
closes #132
2018-07-21 13:56:15 +08:00
Thomas Buckley-Houston 26416e267c Release: only delete `core` file if it exists 2018-07-19 14:49:27 +08:00
Thomas Buckley-Houston 949273a553 Remove "core" file in webpack dist/ during release
What is that file!!? It's only on Travis and its 201Mb!
2018-07-19 14:42:41 +08:00
Thomas Buckley-Houston 18099c0c86 List contents of webext/ during release script
Includes version bump to v1.4.3
2018-07-19 14:30:39 +08:00