Skip to content

Commit

Permalink
chore: update app store backend server address (#30)
Browse files Browse the repository at this point in the history
目前 Halo 官网已经主要使用 www.halo.run ,虽然原有的 halo.run 会重定向到新域名,但为了减少不必要的请求,所以直接切换到 www.halo.run

/kind improvement

```release-note
None
```
  • Loading branch information
ruibaby authored Sep 21, 2023
1 parent d45f6a7 commit cf52f9d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion console/.env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VITE_APP_STORE_BACKEND=https://halo.run
VITE_APP_STORE_BACKEND=https://www.halo.run
2 changes: 1 addition & 1 deletion console/src/components/AgreementsModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const { isLoading, mutate } = useMutation({
<FormKit v-model="formState.termsOfService" type="checkbox">
<template #label>
<span class="formkit-label formkit-invalid:text-red-500 as-block as-text-sm as-font-medium as-text-gray-700">
我已阅读并同意:<a href="https://halo.run/terms-of-service" target="_blank">《Halo 应用市场服务条款》</a>
我已阅读并同意:<a href="https://www.halo.run/terms-of-service" target="_blank">《Halo 应用市场服务条款》</a>
</span>
</template>
</FormKit>
Expand Down
2 changes: 1 addition & 1 deletion console/src/components/AppActionButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const actions = computed(() => {
// TODO: 需要判断是否已经购买
available: app.value?.application.spec.priceConfig?.mode === "ONE_TIME" && !hasInstalled.value,
onClick: () => {
window.open(`https://halo.run/store/apps/${app.value?.application.metadata.name}/buy`);
window.open(`https://www.halo.run/store/apps/${app.value?.application.metadata.name}/buy`);
},
loading: false,
disabled: false,
Expand Down
4 changes: 2 additions & 2 deletions console/src/components/AppDetailModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ watch(
storeApiClient.post(`/apis/api.store.halo.run/tracker`, {
type: "pageView",
payload: {
hostname: "halo.run",
hostname: "www.halo.run",
screen: `${width}x${height}`,
language: language,
title: `应用:${value.application.spec.displayName} - Halo 建站 - 强大易用的开源建站工具`,
Expand Down Expand Up @@ -115,7 +115,7 @@ watch(
delay: 300,
}"
>
<a :href="`https://halo.run/store/apps/${app?.application.metadata.name}`" target="_blank">
<a :href="`https://www.halo.run/store/apps/${app?.application.metadata.name}`" target="_blank">
<IconLink />
</a>
</span>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/extensions/settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
children:
- $el: a
attrs:
href: https://halo.run/terms-of-service
href: https://www.halo.run/terms-of-service
target: _blank
class: "as-text-indigo-600"
children: "《Halo 应用市场服务条款》"
Expand Down

0 comments on commit cf52f9d

Please sign in to comment.