Fixed all type issues that were flagged in the IDE
This commit is contained in:
10105
backend/package-lock.json
generated
Normal file
10105
backend/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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
|
||||||
|
|||||||
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": {
|
"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",
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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 () => {
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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: '',
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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: '',
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user