Skip to content

Commit

Permalink
Fix iconify icons (#1863)
Browse files Browse the repository at this point in the history
* embed iconify icons into bundle

* reset Dockerfile

* update index.html

* read port from env

* bring changes from the snag lists to the UI

* add saved-graphs route to python server

* deactivate storage

* add non minify version

* remove graphql playground from index.html

* bring back playgrund

* update Dockerfile
  • Loading branch information
ricopinazo authored Nov 25, 2024
1 parent 2951a0c commit 3fc1777
Show file tree
Hide file tree
Showing 7 changed files with 235 additions and 233 deletions.
8 changes: 4 additions & 4 deletions 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ walkdir = "2"
uuid = { version = "1.0", features = ["v4"] }
config = "0.14.0"
either = "=1.11.0"
clap = { version = "4.3.11", features = ["derive"] }
clap = { version = "4.5.21", features = ["derive", "env"] }
wasm-bindgen = "0.2.91"
serde-wasm-bindgen = "0.6.4"
js-sys = "0.3.68"
Expand Down
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ COPY . .
RUN cargo build --release -p raphtory-graphql

FROM debian:bookworm-slim
ENV PORT=1736
COPY --from=builder /app/target/release/raphtory-graphql /raphtory-graphql
WORKDIR /graphs
WORKDIR /app

ENTRYPOINT ["/raphtory-graphql"]
4 changes: 2 additions & 2 deletions raphtory-graphql/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ futures-util = { workspace = true }
jsonwebtoken = { workspace = true }
opentelemetry = { workspace = true }
opentelemetry_sdk = { workspace = true }
opentelemetry-otlp = { workspace = true }
opentelemetry-otlp = { workspace = true }
tracing = { workspace = true }
tracing-opentelemetry = { workspace = true }
tracing-subscriber = { workspace = true }
Expand All @@ -54,7 +54,7 @@ pyo3 = { workspace = true, optional = true }
crossbeam-channel = { workspace = true }
minijinja = { workspace = true }
zip = { workspace = true }
clap = { version = "4.0", features = ["derive"] }
clap = { workspace = true }

[dev-dependencies]
tempfile = { workspace = true }
Expand Down
447 changes: 224 additions & 223 deletions raphtory-graphql/resources/index.html

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion raphtory-graphql/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ struct Args {
#[arg(long, default_value = "graphs")]
working_dir: PathBuf,

#[arg(long, default_value_t = DEFAULT_PORT)]
// #[arg(long, env, default_value_t = DEFAULT_PORT)]
#[clap(long, env = "RAPHTORY_PORT", default_value_t = DEFAULT_PORT)]
port: u16,

#[arg(long, default_value_t = DEFAULT_CAPACITY)]
Expand Down
1 change: 1 addition & 0 deletions raphtory-graphql/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ impl GraphServer {
.at("/", get(ui).post(GraphQL::new(schema)))
.at("/graph", get(ui))
.at("/search", get(ui))
.at("/saved-graphs", get(ui))
.at("/playground", get(ui))
.at("/health", get(health))
.with(CookieJarManager::new())
Expand Down

0 comments on commit 3fc1777

Please sign in to comment.