Skip to content

Commit

Permalink
Merge branch 'main' into chore/data-update
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm authored Jul 3, 2024
2 parents 3cf0675 + fa2919e commit d627385
Show file tree
Hide file tree
Showing 8 changed files with 1,645 additions and 2,241 deletions.
1 change: 1 addition & 0 deletions server/main-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ path = "src/main.rs"
actix-web-prom = { version = "0.8.0", default-features = false, features = [] }
tracing-subscriber = { version = "0.3.18",features = ["env-filter", "json", "fmt"]}
tracing = "0.1.40"
tracing-actix-web = "0.7.11"
sentry = { version = "0.34.0", features = ["tracing","metrics","backtrace","contexts","debug-images","panic","reqwest","rustls"] }
sentry-actix = "0.34.0"

Expand Down
3 changes: 2 additions & 1 deletion server/main-api/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use sqlx::postgres::PgPoolOptions;
use sqlx::prelude::*;
use sqlx::PgPool;
use tracing::{debug, error, info};
use tracing_actix_web::TracingLogger;

mod calendar;
mod details;
Expand Down Expand Up @@ -153,7 +154,7 @@ async fn run() -> Result<(), BoxedError> {
App::new()
.wrap(prometheus.clone())
.wrap(cors)
.wrap(middleware::Logger::default().exclude("/api/status"))
.wrap(TracingLogger::default())
.wrap(middleware::Compress::default())
.wrap(sentry_actix::Sentry::new())
.app_data(web::JsonConfig::default().limit(MAX_JSON_PAYLOAD))
Expand Down
2 changes: 1 addition & 1 deletion webclient/components/AppSearchBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const url = computed(() => {
});
const { data, error } = await useFetch<SearchResponse>(url, {
key: "search",
dedupe: "defer",
dedupe: "cancel",
deep: false,
retry: 120,
retryDelay: 5000,
Expand Down
2 changes: 1 addition & 1 deletion webclient/components/Btn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const sizeClasses = computed(() => {
<template>
<NuxtLink
v-if="props.to.length && !disabled && (props.to.startsWith('http') || props.to.startsWith('geo:'))"
:href="props.to"
:to="props.to"
:aria-label="ariaLabel"
:type="props.type"
v-bind="{ disabled: disabled }"
Expand Down
2 changes: 1 addition & 1 deletion webclient/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@vueuse/nuxt": "10.11.0",
"maplibre-gl": "4.5.0",
"nightwind": "1.1.13",
"nuxt": "3.12.2",
"nuxt": "3.12.3",
"sharp": "0.33.4",
"swagger-ui": "5.17.14",
"swaggerdark": "github:octycs/SwaggerDark#f02d394c8ff698cdd93e09c2188b058d2d686ca3",
Expand Down
2 changes: 1 addition & 1 deletion webclient/pages/[view]/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const runtimeConfig = useRuntimeConfig();
const url = computed(() => `${runtimeConfig.public.apiURL}/api/get/${route.params.id}?lang=${locale.value}`);
const { data, error } = useFetch<DetailsResponse, string>(url, {
key: "details",
dedupe: "defer",
dedupe: "cancel",
deep: false,
retry: 120,
retryDelay: 5000,
Expand Down
2 changes: 1 addition & 1 deletion webclient/pages/search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const apiUrl = computed(() => {
});
const { data } = useFetch<SearchResponse>(apiUrl, {
key: "search",
dedupe: "defer",
dedupe: "cancel",
deep: false,
retry: 120,
retryDelay: 5000,
Expand Down
3,872 changes: 1,637 additions & 2,235 deletions webclient/pnpm-lock.yaml

Large diffs are not rendered by default.

0 comments on commit d627385

Please sign in to comment.