Skip to content

Commit 9105509

Browse files
committed
refactor: update documentation links for agent installation and management
- Changed links in multiple components to direct users to the correct installation and management documentation based on domestic or international context. - Updated URLs in App.vue, Deploy.vue, FastDownload.vue, Install.vue, and MaterializedView.vue for consistency and accuracy.
1 parent 968f51a commit 9105509

6 files changed

Lines changed: 29 additions & 20 deletions

File tree

apps/dfs/src/App.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,19 @@ export default {
7070
},
7171
7272
initMenuTour() {
73-
const domain =
74-
!this.$store.getters.isDomesticStation || this.$i18n.locale === 'en'
75-
? 'https://docs.tapdata.io/'
76-
: 'https://docs.tapdata.net/'
73+
let url
74+
if (!this.$store.getters.isDomesticStation || this.$i18n.locale === 'en') {
75+
url = 'https://docs.tapdata.io/getting-started/install-and-setup/install-tapdata-agent'
76+
} else {
77+
url = 'https://docs.tapdata.net/installation/install-tapdata-agent/agent-on-selfhosted'
78+
}
7779
7880
const steps = [
7981
{
8082
element: '#menu-Instance',
8183
popover: {
8284
showButtons: ['next', 'previous'],
83-
description: `${this.$t(
84-
'menu_tour_instance'
85-
)},<a href="${domain}quick-start/install/install-tapdata-agent/" target="_blank">${this.$t(
85+
description: `${this.$t('menu_tour_instance')},<a href="${url}" target="_blank">${this.$t(
8686
'menu_tour_instance_link'
8787
)}</a>`
8888
}

apps/dfs/src/components/guide/Deploy.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,12 @@ export default {
7878
this.buried('openDeploymentTutorial', {
7979
downLoadType: this.downLoadType
8080
})
81-
let href = `https://docs.tapdata.${
82-
!this.$store.getters.isDomesticStation || this.$i18n.locale === 'en' ? 'io' : 'net'
83-
}/quick-start/install/install-tapdata-agent/`
81+
let href
82+
if (!this.$store.getters.isDomesticStation || this.$i18n.locale === 'en') {
83+
href = 'https://docs.tapdata.io/getting-started/install-and-setup/install-tapdata-agent'
84+
} else {
85+
href = 'https://docs.tapdata.net/installation/install-tapdata-agent/agent-on-selfhosted'
86+
}
8487
window.open(href, '_blank')
8588
},
8689
handleComplete() {

apps/dfs/src/views/agent-download/FastDownload.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,13 +499,13 @@ export default {
499499
)
500500
},
501501
linuxToAgent() {
502-
window.open('https://docs.tapdata.io/user-guide/manage-agent/', '_blank')
502+
window.open('https://docs.tapdata.io/other/manage-agent/', '_blank')
503503
},
504504
dockerToInstall() {
505505
window.open('https://docs.docker.com/get-docker/', '_blank')
506506
},
507507
dockerToAgent() {
508-
window.open('https://docs.tapdata.io/user-guide/manage-agent/', '_blank')
508+
window.open('https://docs.tapdata.io/other/manage-agent/', '_blank')
509509
},
510510
//在线小助手
511511
hideCustomTip() {

apps/dfs/src/views/instance/Install.vue

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -251,13 +251,13 @@ export default {
251251
)
252252
},
253253
linuxToAgent() {
254-
window.open('https://docs.tapdata.io/user-guide/manage-agent/', '_blank')
254+
window.open('https://docs.tapdata.io/other/manage-agent/', '_blank')
255255
},
256256
dockerToInstall() {
257257
window.open('https://docs.docker.com/get-docker/', '_blank')
258258
},
259259
dockerToAgent() {
260-
window.open('https://docs.tapdata.io/user-guide/manage-agent/', '_blank')
260+
window.open('https://docs.tapdata.io/other/manage-agent/', '_blank')
261261
},
262262
//在线小助手
263263
hideCustomTip() {
@@ -285,9 +285,12 @@ export default {
285285
notGuide: true,
286286
downLoadType: this.downLoadType
287287
})
288-
let href = `https://docs.tapdata.${
289-
!this.$store.getters.isDomesticStation || this.$i18n.locale === 'en' ? 'io' : 'net'
290-
}/installation/install-tapdata-agent/`
288+
let href
289+
if (!this.$store.getters.isDomesticStation || this.$i18n.locale === 'en') {
290+
href = 'https://docs.tapdata.io/getting-started/install-and-setup/install-tapdata-agent'
291+
} else {
292+
href = 'https://docs.tapdata.net/installation/install-tapdata-agent/agent-on-selfhosted'
293+
}
291294
window.open(href, '_blank')
292295
},
293296
handleComplete() {

packages/business/src/components/ConnectorDoc.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,10 @@ export default {
155155
computed: {
156156
docUrl() {
157157
const map = pdkDocMap // config.json 维护目前意义不大,每次还是得重新打包
158-
return map[pdkNameDictionary[this.pdkId] || this.pdkId]
158+
const url = map[pdkNameDictionary[this.pdkId] || this.pdkId]
159+
return !this.isDaas && (!this.$store.getters.isDomesticStation || this.$i18n.locale === 'en')
160+
? url.replace('prerequisites/', 'connectors/')
161+
: url
159162
},
160163
src() {
161164
let domain

packages/dag/src/components/materialized-view/MaterializedView.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ export default {
295295
})
296296
297297
if (!this.isDomesticStation) {
298-
this.docUrl = 'https://docs.tapdata.io/user-guide/data-pipeline/data-development/create-materialized-view/'
298+
this.docUrl = 'https://docs.tapdata.io/data-transformation/create-views/using-imv-guide'
299299
this.iframeHtml = `<iframe
300300
class="block"
301301
width="100%"
@@ -307,7 +307,7 @@ export default {
307307
allowfullscreen
308308
></iframe>`
309309
} else {
310-
this.docUrl = 'https://docs.tapdata.net/user-guide/data-pipeline/data-development/create-materialized-view/'
310+
this.docUrl = 'https://docs.tapdata.net/user-guide/data-development/create-materialized-view/'
311311
this.iframeHtml = `<iframe class="block" width="100%" height="360" src="//player.bilibili.com/player.html?bvid=BV1eN411T7wG&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe>`
312312
}
313313
},

0 commit comments

Comments
 (0)