import { strToParams } from '@/shared'

export type Params = {
  token?: string
}

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

export const registerLink =
  import.meta.env.VITE_SERVER + '/#/login/register?from=%2F'
export const forgetLink =
  import.meta.env.VITE_SERVER + '/#/login/forget?from=%2F'
export const userInfoLink = import.meta.env.VITE_SERVER + '/#/information'

export const projectManage =
  import.meta.env.VITE_SERVER + '/smarts/smart-viewer.html'
