Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
clean up domain
Browse files Browse the repository at this point in the history
  • Loading branch information
vabarbosa committed Nov 28, 2023
1 parent 605c54a commit 19bcdf2
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion frontend/vue/components/OneXP/OneXPBanner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/>
<a
class="one-xp-banner__cta"
href="https://learning.quantum-computing.ibm.com"
href="https://learning.quantum.ibm.com"
rel="noopener"
target="_blank"
@click="onClick"
Expand Down
4 changes: 2 additions & 2 deletions frontend/vue/components/UserAccount/AccountAdmin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
<ul class="account-admin__info__steps">
<li>
{{ $translate("Create an account in") }}
<BasicLink url="https://quantum-computing.ibm.com/">
<BasicLink url="https://quantum.ibm.com/">
IBM Quantum.
</BasicLink>
</li>
<li>
{{ $translate("Access your") }}
<BasicLink url="https://quantum-computing.ibm.com/account">
<BasicLink url="https://quantum.ibm.com/account">
{{ $translate("account page") }}
</BasicLink>
{{ $translate("and copy the value from the API token input.") }}
Expand Down
6 changes: 3 additions & 3 deletions server/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { LOCALES, translate } from '@mathigon/studio/server/utilities/i18n'
import { generateMockData } from './populate-database'

import {
CONFIG, NOTATIONS, TEXTBOOK_HOME, LATEST_TEXTBOOK_VERSION, TRANSLATIONS, UNIVERSAL_NOTATIONS, LEARNING_REDIRECTS,
CONFIG, NOTATIONS, TEXTBOOK_HOME, LEARNING_HOME, LATEST_TEXTBOOK_VERSION, TRANSLATIONS, UNIVERSAL_NOTATIONS, LEARNING_REDIRECTS,
findNextSection, findPrevSection, getSectionIndex, isLearningPath,
updateGlossary, loadLocaleRawFile, tocFilterByType, removeVersionPrefix
} from './utilities'
Expand Down Expand Up @@ -137,8 +137,8 @@ const start = () => {
// .redirects({'/login': '/signin'})
.accounts()
.redirects({
'/': TEXTBOOK_HOME,
'/textbook': TEXTBOOK_HOME,
'/': LEARNING_HOME,
'/textbook': LEARNING_HOME,
...LEARNING_REDIRECTS
})
.get('/locales/:locale', (req, res) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { IS_PRODUCTION } from '../../configuration'

import { QCHttpError } from './quantum-computing-domain'

export const QC_URL = IS_PRODUCTION ? 'https://auth.quantum-computing.ibm.com/api' : 'https://auth-dev.quantum-computing.ibm.com/api'
export const QC_URL = IS_PRODUCTION ? 'https://auth.quantum.ibm.com/api' : 'https://auth-dev.quantum.ibm.com/api'

export const isQCHttpError = (error: any): error is QCHttpError => {
return typeof error?.message === 'string'
Expand Down
3 changes: 2 additions & 1 deletion server/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
import { IS_PRODUCTION } from './configuration'

const TEXTBOOK_HOME = 'https://qiskit.org/learn'
const LEARNING_HOME = 'https://learning.quantum-computing.ibm.com'
const LEARNING_HOME = 'https://learning.quantum.ibm.com'

const LEARNING_REDIRECTS = {
'/course/algorithm-design': `${LEARNING_HOME}/course/variational-algorithm-design`,
Expand Down Expand Up @@ -188,6 +188,7 @@ export {
NOTATIONS,
GLOSSARY,
TEXTBOOK_HOME,
LEARNING_HOME,
LATEST_TEXTBOOK_VERSION,
TRANSLATIONS,
UNIVERSAL_NOTATIONS,
Expand Down

0 comments on commit 19bcdf2

Please sign in to comment.