add version

This commit is contained in:
john 2025-05-20 10:44:37 +02:00
parent ff44a2f69f
commit 248f382276
6 changed files with 37 additions and 9 deletions

16
src/initApp.ts Normal file
View file

@ -0,0 +1,16 @@
import { initUser } from './app/user/user.ts'
import { setGlobal } from './app/femtoApp.ts'
import { PostsService } from './app/feed/posts/postsService.ts'
import { MediaService } from './app/media/mediaService.ts'
import { AuthService } from './app/auth/authService.ts'
export function initApp() {
setGlobal('version', import.meta.env.VITE_FEMTO_VERSION)
initUser()
const postService = new PostsService()
const mediaService = new MediaService()
const authService = new AuthService()
return { postService, mediaService, authService }
}