File tree Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
+ import { defaultRadicleExplorerBaseUrl } from ' ~/constants/config'
3
+
2
4
const auth = useAuthStore ()
3
5
const board = useBoardStore ()
4
6
const tasks = useTasksStore ()
@@ -37,6 +39,11 @@ async function handleImport() {
37
39
console .error (' Failed to import board data' )
38
40
}
39
41
}
42
+
43
+ const aboutLink = new URL (
44
+ ` /nodes/seed.radicle.gr/rad:z2BdUVZFvHdxRfdtGJQdSH2kyXNM6 ` ,
45
+ defaultRadicleExplorerBaseUrl ,
46
+ ).toString ()
40
47
</script >
41
48
42
49
<template >
@@ -49,7 +56,7 @@ async function handleImport() {
49
56
<div class =" flex gap-4" >
50
57
<a
51
58
class =" flex h-8 items-center justify-center gap-2 rounded-sm border border-rad-border-hint px-3 text-sm font-semibold"
52
- href =" https://app.radicle.at/nodes/seed.radicle.gr/rad:z2BdUVZFvHdxRfdtGJQdSH2kyXNM6 "
59
+ : href =" aboutLink "
53
60
target =" _blank"
54
61
>
55
62
<Icon name =" octicon:link-external-16" size =" 16" />
Original file line number Diff line number Diff line change 1
1
import { useStorage } from '@vueuse/core'
2
+ import { defaultRadicleExplorerBaseUrl } from '~/constants/config'
2
3
3
4
export function useRadicleInterfaceBaseUrl ( ) : string {
4
- const defaultRadicleInterfaceBaseUrl = 'https://app.radicle.xyz'
5
-
6
5
const { baseUrl } = useRoute ( ) . query
7
6
8
7
const configuredRadicleInterfaceBaseUrl = useStorage (
9
8
'RPB_config-radicle-interface-base-url' ,
10
- defaultRadicleInterfaceBaseUrl ,
9
+ defaultRadicleExplorerBaseUrl ,
11
10
)
12
11
13
12
try {
@@ -17,6 +16,6 @@ export function useRadicleInterfaceBaseUrl(): string {
17
16
18
17
return new URL ( configuredRadicleInterfaceBaseUrl . value ) . origin
19
18
} catch {
20
- return defaultRadicleInterfaceBaseUrl
19
+ return defaultRadicleExplorerBaseUrl
21
20
}
22
21
}
Original file line number Diff line number Diff line change
1
+ /**
2
+ * The default base URL for the Radicle Explorer
3
+ *
4
+ * Used for linking to public repositories
5
+ */
6
+ export const defaultRadicleExplorerBaseUrl = 'https://explorer.radicle.gr/'
You can’t perform that action at this time.
0 commit comments