Skip to content

Commit 957a572

Browse files
committed
feat: add more redirects and add flag to telemetry
1 parent 23efcee commit 957a572

File tree

5 files changed

+30
-3
lines changed

5 files changed

+30
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/backend/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "web"
3-
version = "3.1.18"
3+
version = "3.1.19"
44
edition = "2024"
55

66
[dependencies]

apps/backend/redirects.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,5 +188,25 @@
188188
"from": "/guides/community/install-update-nodejs",
189189
"to": "/guides/extra/install-update-nodejs",
190190
"status": 301
191+
},
192+
{
193+
"from": "/donate",
194+
"to": "https://hcb.hackclub.com/donations/start/blueprint",
195+
"status": 302
196+
},
197+
{
198+
"from": "/donate/coffee",
199+
"to": "https://hcb.hackclub.com/donations/start/blueprint/tiers/411",
200+
"status": 302
201+
},
202+
{
203+
"from": "/donate/sponsorship",
204+
"to": "https://hcb.hackclub.com/donations/start/blueprint/tiers/392",
205+
"status": 302
206+
},
207+
{
208+
"from": "/donate/gold_sponsorship",
209+
"to": "https://hcb.hackclub.com/donations/start/blueprint/tiers/416",
210+
"status": 302
191211
}
192212
]

apps/backend/src/telemetry.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ nestify::nest! {
2626
flags: #[derive(Deserialize, Serialize)] struct Flags {
2727
disable_attribution: bool,
2828
is_developer: bool,
29-
show_in_sidebar: bool
29+
show_in_sidebar: bool,
30+
introduction_dismissed: bool
3031
},
3132

3233
extensions: Vec<#[derive(Deserialize, Serialize)] struct Extension {

apps/frontend/src/pages/browse/[id].vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@
9393
embed: 'ProseDisabled',
9494
pre: 'ProsePreSafe',
9595
ProseVideoPlayer: 'ProseDisabled',
96+
'prose-video-player': 'ProseDisabled',
97+
'prose-pre': 'ProsePreSafe',
98+
'prose-img': 'Externalimg',
9699
}"
97100
/>
98101
</template>
@@ -409,6 +412,8 @@ import type { MDCParserResult } from '@nuxtjs/mdc'
409412
const route = useRoute()
410413
const { user } = useAuth()
411414
415+
const isPaid = ref(false)
416+
412417
const platformConfig = {
413418
BUILTBYBIT: {
414419
name: 'BuiltByBit',
@@ -528,6 +533,7 @@ const formatPrice = (price: number, currency: string): string => {
528533
if (price === 0) {
529534
return 'Free'
530535
}
536+
isPaid.value = true
531537
return `${price.toFixed(2)} ${currency}`
532538
}
533539

0 commit comments

Comments
 (0)