Skip to content

Commit

Permalink
remove css var
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaoboy committed Sep 16, 2024
1 parent 160b4d5 commit 6774bf0
Show file tree
Hide file tree
Showing 11 changed files with 147 additions and 179 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ jobs:
bin: ansi2
target: ${{ matrix.target }}
token: ${{ secrets.GITHUB_TOKEN }}
features: build-binary
features: cli
env:
RUSTFLAGS: ${{ matrix.RUSTFLAGS }}
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Run
run: |
cargo install neofetch
neofetch | cargo run --features="build-binary" > ./neofetch.svg
neofetch | cargo run --features="cli" > ./neofetch.svg
- name: Upload
uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion 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 ansi2-wasm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ansi2",
"version": "0.1.12",
"version": "0.1.13",
"description": "ansi2",
"main": "dist/index.js",
"bin": "./bin/cli.js",
Expand Down
12 changes: 6 additions & 6 deletions ansi2-wasm/src-ts/wasm/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ export function to_html(s: string, theme: Theme, width?: number, font?: string,
export function to_text(s: string, width?: number): string;
/**
*/
export enum Mode {
Dark = 0,
Light = 1,
}
/**
*/
export enum Theme {
Vscode = 0,
Ubuntu = 1,
Vga = 2,
}
/**
*/
export enum Mode {
Dark = 0,
Light = 1,
}

6 changes: 3 additions & 3 deletions ansi2-wasm/src-ts/wasm/index.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions ansi2/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ansi2"
version = "0.2.8"
version = "0.2.9"
edition = "2021"
license = "MIT"
description = "ansi2"
Expand All @@ -20,9 +20,9 @@ wasm-bindgen = { version = "0.2.93", optional = true }
opt-level = 3

[features]
build-binary = ["clap"]
cli = ["clap"]
wasm = ["wasm-bindgen"]

[[bin]]
required-features = ["build-binary"]
required-features = ["cli"]
name = "ansi2"
Loading

0 comments on commit 6774bf0

Please sign in to comment.