diff --git a/ijl.config.js b/ijl.config.js index 4579778..b769662 100644 --- a/ijl.config.js +++ b/ijl.config.js @@ -8,8 +8,9 @@ module.exports = { } }, navigations: { - 'undefined.main': '/undefined', - 'link.undefined.auth': '/auth' + 'enter.main': '/enter', + 'link.enter.auth': '/auth', + 'link.enter.account': '/account', }, features: { 'undefined': { diff --git a/package.json b/package.json index 6c7db62..43fd9ba 100644 --- a/package.json +++ b/package.json @@ -15,5 +15,6 @@ "build": "npm run clean && ijl-cli build --dev", "build:prod": "npm run clean && ijl-cli build", "clean": "rimraf dist" - } + }, + "name": "enter" } diff --git a/src/__data__/urls.ts b/src/__data__/urls.ts index 7c65b3a..8f419f3 100644 --- a/src/__data__/urls.ts +++ b/src/__data__/urls.ts @@ -1,13 +1,16 @@ import { getNavigations, getNavigationsValue } from '@ijl/cli'; import pkg from '../../package.json'; -const baseUrl = getNavigationsValue(`${pkg.name}.main`); +const baseUrl = getNavigationsValue(`${(pkg as any).name}.main`); const navs = getNavigations(); const makeUrl = url => baseUrl + url; export const URLs = { baseUrl, auth: { - url: makeUrl(navs[`link.${pkg.name}.auth`]), + url: makeUrl(navs[`link.${(pkg as any).name}.auth`]), }, + account: { + url: makeUrl(navs[`link.${(pkg as any).name}.account`]), + } }; diff --git a/src/dashboard.tsx b/src/dashboard.tsx index 073773f..f52fb3f 100644 --- a/src/dashboard.tsx +++ b/src/dashboard.tsx @@ -3,16 +3,16 @@ import { Routes, Route, Navigate } from 'react-router-dom'; import { URLs } from './__data__/urls'; -const Hello = () =>