Fixed all type issues that were flagged in the IDE

This commit is contained in:
Francisco Gaona
2025-11-25 22:11:59 +01:00
parent 150edfaf41
commit 98a7edc665
12 changed files with 13378 additions and 298 deletions

10105
backend/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -8,7 +8,7 @@ export const useApi = () => {
} }
// Add tenant ID from localStorage or state // Add tenant ID from localStorage or state
if (process.client) { if (import.meta.client) {
const tenantId = localStorage.getItem('tenantId') const tenantId = localStorage.getItem('tenantId')
if (tenantId) { if (tenantId) {
headers['x-tenant-id'] = tenantId headers['x-tenant-id'] = tenantId

File diff suppressed because it is too large Load Diff

View File

@@ -27,6 +27,7 @@
}, },
"devDependencies": { "devDependencies": {
"@nuxtjs/color-mode": "^3.3.2", "@nuxtjs/color-mode": "^3.3.2",
"@types/node": "^24.10.1",
"autoprefixer": "^10.4.17", "autoprefixer": "^10.4.17",
"postcss": "^8.4.33", "postcss": "^8.4.33",
"tailwindcss": "^3.4.1", "tailwindcss": "^3.4.1",

View File

@@ -54,12 +54,12 @@ const { api } = useApi()
const appSlug = computed(() => route.params.appSlug as string) const appSlug = computed(() => route.params.appSlug as string)
const pageSlug = computed(() => route.params.pageSlug as string) const pageSlug = computed(() => route.params.pageSlug as string)
const pages = ref([]) const pages = ref<any[]>([])
const page = ref(null) const page = ref<any>(null)
const records = ref([]) const records = ref<any[]>([])
const loading = ref(true) const loading = ref(true)
const loadingRecords = ref(false) const loadingRecords = ref(false)
const error = ref(null) const error = ref<string | null>(null)
const fetchPage = async () => { const fetchPage = async () => {
try { try {

View File

@@ -39,9 +39,9 @@ const appSlug = computed(() => route.params.appSlug as string)
const pageSlug = computed(() => route.params.pageSlug as string) const pageSlug = computed(() => route.params.pageSlug as string)
const recordId = computed(() => route.params.recordId as string) const recordId = computed(() => route.params.recordId as string)
const record = ref(null) const record = ref<any>(null)
const loading = ref(true) const loading = ref(true)
const error = ref(null) const error = ref<string | null>(null)
const objectApiName = ref('') const objectApiName = ref('')
const fetchRecord = async () => { const fetchRecord = async () => {

View File

@@ -45,9 +45,9 @@
const route = useRoute() const route = useRoute()
const { api } = useApi() const { api } = useApi()
const app = ref(null) const app = ref<any>(null)
const loading = ref(true) const loading = ref(true)
const error = ref(null) const error = ref<string | null>(null)
const fetchApp = async () => { const fetchApp = async () => {
try { try {

View File

@@ -106,9 +106,9 @@
<script setup lang="ts"> <script setup lang="ts">
const { api } = useApi() const { api } = useApi()
const apps = ref([]) const apps = ref<any[]>([])
const loading = ref(true) const loading = ref(true)
const error = ref(null) const error = ref<string | null>(null)
const showCreateForm = ref(false) const showCreateForm = ref(false)
const newApp = ref({ const newApp = ref({
slug: '', slug: '',

View File

@@ -53,9 +53,9 @@
const route = useRoute() const route = useRoute()
const { api } = useApi() const { api } = useApi()
const object = ref(null) const object = ref<any>(null)
const loading = ref(true) const loading = ref(true)
const error = ref(null) const error = ref<string | null>(null)
const fetchObject = async () => { const fetchObject = async () => {
try { try {

View File

@@ -123,9 +123,9 @@
<script setup lang="ts"> <script setup lang="ts">
const { api } = useApi() const { api } = useApi()
const objects = ref([]) const objects = ref<any[]>([])
const loading = ref(true) const loading = ref(true)
const error = ref(null) const error = ref<string | null>(null)
const showCreateForm = ref(false) const showCreateForm = ref(false)
const newObject = ref({ const newObject = ref({
apiName: '', apiName: '',

View File

@@ -1,15 +1,5 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "ES2020",
"module": "ESNext",
"moduleResolution": "bundler",
"strict": true,
"jsx": "preserve",
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"isolatedModules": true,
"types": ["node"] "types": ["node"]
}, },
"extends": "./.nuxt/tsconfig.json" "extends": "./.nuxt/tsconfig.json"

View File

@@ -13,7 +13,7 @@ services:
- "3000:3000" - "3000:3000"
volumes: volumes:
- ../backend:/usr/src/app - ../backend:/usr/src/app
- /usr/src/app/node_modules - ../backend/node_modules:/usr/src/app/node_modules
depends_on: depends_on:
- db - db
- redis - redis
@@ -32,7 +32,7 @@ services:
- "3001:3001" - "3001:3001"
volumes: volumes:
- ../frontend:/usr/src/app - ../frontend:/usr/src/app
- /usr/src/app/node_modules - ../frontend/node_modules:/usr/src/app/node_modules
depends_on: depends_on:
- api - api
networks: networks: