Skip to content

Commit

Permalink
feat: Add a suffix of 'techName' to the mirror redirection
Browse files Browse the repository at this point in the history
  • Loading branch information
mingjourney committed Apr 2, 2024
1 parent e1bb7f4 commit c0dc17a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ class MyComponent extends QuarkElement {
this.#ecosystemLangs = this.#isZhLang ? langs["zh-CN"] : langs["en-US"]
this.#isDocNotReady = false
this.#techName = location.pathname.split('/')[2]

if(~['vanilla', 'angular', 'svelte'].indexOf(location.hostname.split('-')[0])) {
this.#isDocNotReady = true
}
Expand Down Expand Up @@ -453,7 +452,7 @@ class MyComponent extends QuarkElement {
<a
key={item}
class="link menu-link"
href={`https://quark-ecosystem.${item.toLocaleLowerCase()}.io/quarkd-docs/#/${
href={`https://quark-ecosystem.${item.toLocaleLowerCase()}.io/quarkd-docs/${this.#techName}/#/${
this.#isZhLang ? "zh-CN" : "en-US"
}`}
target="_blank"
Expand Down

0 comments on commit c0dc17a

Please sign in to comment.