Fixed all type issues that were flagged in the IDE
This commit is contained in:
@@ -8,7 +8,7 @@ export const useApi = () => {
|
||||
}
|
||||
|
||||
// Add tenant ID from localStorage or state
|
||||
if (process.client) {
|
||||
if (import.meta.client) {
|
||||
const tenantId = localStorage.getItem('tenantId')
|
||||
if (tenantId) {
|
||||
headers['x-tenant-id'] = tenantId
|
||||
|
||||
3526
frontend/package-lock.json
generated
3526
frontend/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -27,6 +27,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nuxtjs/color-mode": "^3.3.2",
|
||||
"@types/node": "^24.10.1",
|
||||
"autoprefixer": "^10.4.17",
|
||||
"postcss": "^8.4.33",
|
||||
"tailwindcss": "^3.4.1",
|
||||
|
||||
@@ -54,12 +54,12 @@ const { api } = useApi()
|
||||
const appSlug = computed(() => route.params.appSlug as string)
|
||||
const pageSlug = computed(() => route.params.pageSlug as string)
|
||||
|
||||
const pages = ref([])
|
||||
const page = ref(null)
|
||||
const records = ref([])
|
||||
const pages = ref<any[]>([])
|
||||
const page = ref<any>(null)
|
||||
const records = ref<any[]>([])
|
||||
const loading = ref(true)
|
||||
const loadingRecords = ref(false)
|
||||
const error = ref(null)
|
||||
const error = ref<string | null>(null)
|
||||
|
||||
const fetchPage = async () => {
|
||||
try {
|
||||
|
||||
@@ -39,9 +39,9 @@ const appSlug = computed(() => route.params.appSlug as string)
|
||||
const pageSlug = computed(() => route.params.pageSlug as string)
|
||||
const recordId = computed(() => route.params.recordId as string)
|
||||
|
||||
const record = ref(null)
|
||||
const record = ref<any>(null)
|
||||
const loading = ref(true)
|
||||
const error = ref(null)
|
||||
const error = ref<string | null>(null)
|
||||
const objectApiName = ref('')
|
||||
|
||||
const fetchRecord = async () => {
|
||||
|
||||
@@ -45,9 +45,9 @@
|
||||
const route = useRoute()
|
||||
const { api } = useApi()
|
||||
|
||||
const app = ref(null)
|
||||
const app = ref<any>(null)
|
||||
const loading = ref(true)
|
||||
const error = ref(null)
|
||||
const error = ref<string | null>(null)
|
||||
|
||||
const fetchApp = async () => {
|
||||
try {
|
||||
|
||||
@@ -106,9 +106,9 @@
|
||||
<script setup lang="ts">
|
||||
const { api } = useApi()
|
||||
|
||||
const apps = ref([])
|
||||
const apps = ref<any[]>([])
|
||||
const loading = ref(true)
|
||||
const error = ref(null)
|
||||
const error = ref<string | null>(null)
|
||||
const showCreateForm = ref(false)
|
||||
const newApp = ref({
|
||||
slug: '',
|
||||
|
||||
@@ -53,9 +53,9 @@
|
||||
const route = useRoute()
|
||||
const { api } = useApi()
|
||||
|
||||
const object = ref(null)
|
||||
const object = ref<any>(null)
|
||||
const loading = ref(true)
|
||||
const error = ref(null)
|
||||
const error = ref<string | null>(null)
|
||||
|
||||
const fetchObject = async () => {
|
||||
try {
|
||||
|
||||
@@ -123,9 +123,9 @@
|
||||
<script setup lang="ts">
|
||||
const { api } = useApi()
|
||||
|
||||
const objects = ref([])
|
||||
const objects = ref<any[]>([])
|
||||
const loading = ref(true)
|
||||
const error = ref(null)
|
||||
const error = ref<string | null>(null)
|
||||
const showCreateForm = ref(false)
|
||||
const newObject = ref({
|
||||
apiName: '',
|
||||
|
||||
@@ -1,15 +1,5 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2020",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "bundler",
|
||||
"strict": true,
|
||||
"jsx": "preserve",
|
||||
"esModuleInterop": true,
|
||||
"skipLibCheck": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"types": ["node"]
|
||||
},
|
||||
"extends": "./.nuxt/tsconfig.json"
|
||||
|
||||
Reference in New Issue
Block a user