From 956c5518f601228c1a660ec8cf65813a996c0ce6 Mon Sep 17 00:00:00 2001 From: Mario Arita Date: Wed, 3 Jan 2024 10:04:45 -0600 Subject: [PATCH] chore(ts): :fire: Remove Typescript config --- .vscode/settings.json | 34 +++++++++++++++--------------- jsconfig.json | 10 +++++++++ src/layout/ResponsiveContainer.jsx | 3 ++- src/pages/_app.tsx | 3 +-- src/pages/dashboard/index.jsx | 9 ++++++++ tsconfig.json | 23 -------------------- 6 files changed, 39 insertions(+), 43 deletions(-) create mode 100644 jsconfig.json create mode 100644 src/pages/dashboard/index.jsx delete mode 100644 tsconfig.json diff --git a/.vscode/settings.json b/.vscode/settings.json index e4a1751..db7f5ef 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -11,25 +11,25 @@ "source.fixAll.eslint": "explicit" }, "workbench.colorCustomizations": { - "activityBar.activeBackground": "#0894ba", - "activityBar.background": "#0894ba", - "activityBar.foreground": "#e7e7e7", - "activityBar.inactiveForeground": "#e7e7e799", - "activityBarBadge.background": "#99077a", + "activityBar.activeBackground": "#eefe86", + "activityBar.background": "#eefe86", + "activityBar.foreground": "#15202b", + "activityBar.inactiveForeground": "#15202b99", + "activityBarBadge.background": "#02a5be", "activityBarBadge.foreground": "#e7e7e7", - "commandCenter.border": "#e7e7e799", - "sash.hoverBorder": "#0894ba", - "statusBar.background": "#066d89", - "statusBar.foreground": "#e7e7e7", - "statusBarItem.hoverBackground": "#0894ba", - "statusBarItem.remoteBackground": "#066d89", - "statusBarItem.remoteForeground": "#e7e7e7", - "titleBar.activeBackground": "#066d89", - "titleBar.activeForeground": "#e7e7e7", - "titleBar.inactiveBackground": "#066d8999", - "titleBar.inactiveForeground": "#e7e7e799" + "commandCenter.border": "#15202b99", + "sash.hoverBorder": "#eefe86", + "statusBar.background": "#e7fe53", + "statusBar.foreground": "#15202b", + "statusBarItem.hoverBackground": "#e0fe20", + "statusBarItem.remoteBackground": "#e7fe53", + "statusBarItem.remoteForeground": "#15202b", + "titleBar.activeBackground": "#e7fe53", + "titleBar.activeForeground": "#15202b", + "titleBar.inactiveBackground": "#e7fe5399", + "titleBar.inactiveForeground": "#15202b99" }, - "peacock.color": "#066d89", + "peacock.color": "#e7fe53", "cSpell.words": [ "orbis", "Orbis" diff --git a/jsconfig.json b/jsconfig.json new file mode 100644 index 0000000..0405287 --- /dev/null +++ b/jsconfig.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "baseUrl": ".", + "paths": { + "@/*": ["./src/*"], + "vComponents/*": ["./node_modules/vComponents/dist/components/*"], + "via-ui/*": ["./node_modules/via-ui/dist/components/*"] + } + } +} diff --git a/src/layout/ResponsiveContainer.jsx b/src/layout/ResponsiveContainer.jsx index a847843..5bf17ad 100644 --- a/src/layout/ResponsiveContainer.jsx +++ b/src/layout/ResponsiveContainer.jsx @@ -108,6 +108,7 @@ const ResponsiveContainer = ({ children }) => { setMenu([]) if (token && token !== null) { const options = await execute('SPR_MENU_S', [token, 'BO', null]) + console.log('options', options) setMenu(options) } loading.stop() @@ -243,7 +244,7 @@ const ResponsiveContainer = ({ children }) => { }
-
+
{children}
diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 7213261..76f4404 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -3,14 +3,13 @@ import ResponsiveContainer from '@/layout/ResponsiveContainer' import LoadingProvider from '@/plugins/LoadingContext' import I18nProvider from '@/plugins/i18nContext' import '@/styles/globals.css' -import type { AppProps } from 'next/app' import Head from 'next/head' import 'vComponents/styles/generated/output.css' import 'vComponents/styles/generated/bgColors.min.css' import { ToastContainer } from 'react-toastify' -export default function App ({ Component, pageProps }: AppProps) { +export default function App ({ Component, pageProps }) { return ( <> diff --git a/src/pages/dashboard/index.jsx b/src/pages/dashboard/index.jsx new file mode 100644 index 0000000..fe5c2ca --- /dev/null +++ b/src/pages/dashboard/index.jsx @@ -0,0 +1,9 @@ +import React from 'react' + +const DashboardPage = () => { + return ( +
DashboardPage
+ ) +} + +export default DashboardPage diff --git a/tsconfig.json b/tsconfig.json deleted file mode 100644 index 867d2a2..0000000 --- a/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "target": "es5", - "lib": ["dom", "dom.iterable", "esnext"], - "allowJs": true, - "skipLibCheck": true, - "strict": true, - "noEmit": true, - "esModuleInterop": true, - "module": "esnext", - "moduleResolution": "bundler", - "resolveJsonModule": true, - "isolatedModules": true, - "jsx": "preserve", - "incremental": true, - "paths": { - "@/*": ["./src/*"], - "vComponents/*": ["./node_modules/vComponents/dist/*"] - } - }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"], - "exclude": ["node_modules"] -}