import { strToParams } from '@/shared'

export type Params = {
  token?: string
}

export const params = strToParams(location.search) as Params
export const baseURL = import.meta.env.DEV ? '/api' : '/'

export const registerLink = '/#/login/register?from=%2F'
export const forgetLink = '/#/login/forget?from=%2F'
export const userInfoLink = '/#/information'

export const projectManage = '/smarts/smart-viewer.html'
