chore(ts): 🔥 Remove Typescript config

This commit is contained in:
Jorge Mario Arita Ramírez 2024-01-03 10:04:45 -06:00
parent 36757bd163
commit 956c5518f6
6 changed files with 39 additions and 43 deletions

34
.vscode/settings.json vendored
View File

@ -11,25 +11,25 @@
"source.fixAll.eslint": "explicit" "source.fixAll.eslint": "explicit"
}, },
"workbench.colorCustomizations": { "workbench.colorCustomizations": {
"activityBar.activeBackground": "#0894ba", "activityBar.activeBackground": "#eefe86",
"activityBar.background": "#0894ba", "activityBar.background": "#eefe86",
"activityBar.foreground": "#e7e7e7", "activityBar.foreground": "#15202b",
"activityBar.inactiveForeground": "#e7e7e799", "activityBar.inactiveForeground": "#15202b99",
"activityBarBadge.background": "#99077a", "activityBarBadge.background": "#02a5be",
"activityBarBadge.foreground": "#e7e7e7", "activityBarBadge.foreground": "#e7e7e7",
"commandCenter.border": "#e7e7e799", "commandCenter.border": "#15202b99",
"sash.hoverBorder": "#0894ba", "sash.hoverBorder": "#eefe86",
"statusBar.background": "#066d89", "statusBar.background": "#e7fe53",
"statusBar.foreground": "#e7e7e7", "statusBar.foreground": "#15202b",
"statusBarItem.hoverBackground": "#0894ba", "statusBarItem.hoverBackground": "#e0fe20",
"statusBarItem.remoteBackground": "#066d89", "statusBarItem.remoteBackground": "#e7fe53",
"statusBarItem.remoteForeground": "#e7e7e7", "statusBarItem.remoteForeground": "#15202b",
"titleBar.activeBackground": "#066d89", "titleBar.activeBackground": "#e7fe53",
"titleBar.activeForeground": "#e7e7e7", "titleBar.activeForeground": "#15202b",
"titleBar.inactiveBackground": "#066d8999", "titleBar.inactiveBackground": "#e7fe5399",
"titleBar.inactiveForeground": "#e7e7e799" "titleBar.inactiveForeground": "#15202b99"
}, },
"peacock.color": "#066d89", "peacock.color": "#e7fe53",
"cSpell.words": [ "cSpell.words": [
"orbis", "orbis",
"Orbis" "Orbis"

10
jsconfig.json Normal file
View File

@ -0,0 +1,10 @@
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"],
"vComponents/*": ["./node_modules/vComponents/dist/components/*"],
"via-ui/*": ["./node_modules/via-ui/dist/components/*"]
}
}
}

View File

@ -108,6 +108,7 @@ const ResponsiveContainer = ({ children }) => {
setMenu([]) setMenu([])
if (token && token !== null) { if (token && token !== null) {
const options = await execute('SPR_MENU_S', [token, 'BO', null]) const options = await execute('SPR_MENU_S', [token, 'BO', null])
console.log('options', options)
setMenu(options) setMenu(options)
} }
loading.stop() loading.stop()
@ -243,7 +244,7 @@ const ResponsiveContainer = ({ children }) => {
} }
<main> <main>
<div className={userObj && userObj.nombre_usuario ? 'responsive-container' : 'hidden'}> <div className={userObj && userObj.nombre_usuario ? 'responsive-container' : ''}>
{children} {children}
</div> </div>
</main> </main>

View File

@ -3,14 +3,13 @@ import ResponsiveContainer from '@/layout/ResponsiveContainer'
import LoadingProvider from '@/plugins/LoadingContext' import LoadingProvider from '@/plugins/LoadingContext'
import I18nProvider from '@/plugins/i18nContext' import I18nProvider from '@/plugins/i18nContext'
import '@/styles/globals.css' import '@/styles/globals.css'
import type { AppProps } from 'next/app'
import Head from 'next/head' import Head from 'next/head'
import 'vComponents/styles/generated/output.css' import 'vComponents/styles/generated/output.css'
import 'vComponents/styles/generated/bgColors.min.css' import 'vComponents/styles/generated/bgColors.min.css'
import { ToastContainer } from 'react-toastify' import { ToastContainer } from 'react-toastify'
export default function App ({ Component, pageProps }: AppProps) { export default function App ({ Component, pageProps }) {
return ( return (
<> <>
<Head> <Head>

View File

@ -0,0 +1,9 @@
import React from 'react'
const DashboardPage = () => {
return (
<div>DashboardPage</div>
)
}
export default DashboardPage

View File

@ -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"]
}