Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

Commit

Permalink
Napture: version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
face-hh committed Jun 1, 2024
1 parent 58c8d62 commit ea99e0b
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 10 deletions.
2 changes: 1 addition & 1 deletion napture/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion napture/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "webx"
version = "1.2.1"
version = "1.2.2"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
15 changes: 15 additions & 0 deletions napture/io.github.face_hh.Napture.metainfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,21 @@
<url type="vcs-browser">https://github.com/face-hh/webx</url>
<content_rating type="oars-1.1" />
<releases>
<release version="1.2.2" date="2024-06-01">
<url type="details">https://github.com/face-hh/webx/releases/tag/v1.2.2</url>
<description>
<ul>
<li>You now have to solve a CAPTCHA to register a domain.</li>
<li>Added <code>set_source()</code> and <code>get_source(link)</code> on <code><img></code></li>
<li>HTTP requests that aren't JSON now return both <code>status</code> and <code>content</code>.</li>
<li>The current tab URL is available via <code>window.location</code></li>
<li>The query args are available via </code>window.query</code>. Syntax: <code>buss://dingle.it?q=hello</code></li>
<li>Removed <code>alt</code> from <code><img></code></li>
<li>Fixed <code>file://</code>, you can now open local projects with <code>file://C:\path\to\folder</code></li>
<li>Fixed memory leak when you enter a non-existent HTTPS website</li>
</ul>
</description>
</release>
<release version="1.2.1" date="2024-05-31">
<url type="details">https://github.com/face-hh/webx/releases/tag/v1.2.1</url>
<description>
Expand Down
4 changes: 1 addition & 3 deletions napture/src/b9/html.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ pub async fn build_ui(
.build();

let mut css: String = css::reset_css();

println!("{}", tab.url);

let (head, body) = match parse_html(furl.to_string()).await {
Ok(ok) => ok,
Expand Down Expand Up @@ -799,7 +797,7 @@ async fn fetch_from_github(url: String) -> String {
url.split('/').nth(4).unwrap_or(""),
url.split('/').last().unwrap_or(""),
);
println!("{}", url);

let client = match client.build() {
Ok(client) => client,
Err(e) => {
Expand Down
4 changes: 1 addition & 3 deletions napture/src/b9/lua.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ pub(crate) async fn run(luacode: String, tags: Rc<RefCell<Vec<Tag>>>, taburl: St
let query_table = lua.create_table()?;

let parts: Vec<&str> = taburl.splitn(2, '?').collect();
println!("{taburl}");

if parts.len() == 2 {
let query_params = parts[1];

Expand Down Expand Up @@ -262,8 +262,6 @@ pub(crate) async fn run(luacode: String, tags: Rc<RefCell<Vec<Tag>>>, taburl: St

let errcode = Rc::new(RefCell::new(res.status().as_u16()));

println!("{:?}", res.headers().get("Content-Type").unwrap());

let text = res.text().unwrap_or_default();
let body = serde_json::from_str(&text);

Expand Down
4 changes: 2 additions & 2 deletions napture/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// #![windows_subsystem = "windows"]
#![windows_subsystem = "windows"]
mod b9;
mod globals;
mod imp;
Expand Down Expand Up @@ -311,7 +311,7 @@ fn make_tab(
let dialog = gtk::AboutDialog::builder()
.modal(true)
.program_name("Bussin Napture")
.version("v1.2.1")
.version("v1.2.2")
.website("https://github.com/face-hh/webx")
.website_label("GitHub")
.license_type(gtk::License::Apache20)
Expand Down

0 comments on commit ea99e0b

Please sign in to comment.