lucy-cli 2.0.0-beta.10 → 2.0.0-beta.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/copy.js.map +1 -1
- package/dist/commands/git.d.ts +3 -2
- package/dist/commands/git.js +34 -0
- package/dist/commands/git.js.map +1 -1
- package/dist/commands/home.d.ts +1 -1
- package/dist/commands/home.js +2 -25
- package/dist/commands/home.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/init/cargo.d.ts +1 -1
- package/dist/init/git.d.ts +2 -0
- package/dist/init/git.js +13 -0
- package/dist/init/git.js.map +1 -0
- package/dist/init/gitModules.d.ts +1 -1
- package/dist/init/index.d.ts +2 -1
- package/dist/init/index.js +0 -1
- package/dist/init/index.js.map +1 -1
- package/dist/init/monorepo.d.ts +1 -1
- package/dist/init/prepareVelo.d.ts +1 -1
- package/dist/init/tauri.d.ts +1 -1
- package/dist/init/templates.d.ts +1 -1
- package/dist/init/templates.js +1 -1
- package/dist/init/templates.js.map +1 -1
- package/dist/init/velo.d.ts +1 -1
- package/package.json +1 -1
- package/src/commands/copy.ts +1 -0
- package/src/commands/git.ts +39 -0
- package/src/commands/home.ts +2 -38
- package/src/index.ts +1 -1
- package/src/init/index.ts +0 -1
- package/src/init/templates.ts +1 -1
- package/files/templates/block[D]/files/.cursorignore +0 -4
- package/files/templates/block[D]/files/.stylelintrc.js +0 -8
- package/files/templates/block[D]/lucy.json +0 -9
- package/files/templates/cargo[D]/files/.cursorignore +0 -4
- package/files/templates/cargo[D]/files/.env +0 -1
- package/files/templates/cargo[D]/files/Cargo.toml +0 -238
- package/files/templates/cargo[D]/files/Makefile.toml +0 -4
- package/files/templates/cargo[D]/files/build/main.rs +0 -35
- package/files/templates/cargo[D]/files/config/beta.json +0 -19
- package/files/templates/cargo[D]/files/config/ci.json +0 -15
- package/files/templates/cargo[D]/files/config/default.json +0 -71
- package/files/templates/cargo[D]/files/config/development.json +0 -10
- package/files/templates/cargo[D]/files/config/produktion.json +0 -5
- package/files/templates/cargo[D]/files/config/stage.json +0 -4
- package/files/templates/cargo[D]/files/locales/todo.yml +0 -3
- package/files/templates/cargo[D]/files/public/index.html +0 -1
- package/files/templates/cargo[D]/lucy.json +0 -15
- package/files/templates/expo verse[D]/files/.nvmrc +0 -1
- package/files/templates/expo verse[D]/files/.prettierignore +0 -23
- package/files/templates/expo verse[D]/files/.prettierrc.js +0 -16
- package/files/templates/expo verse[D]/files/.stylelintrc.json +0 -8
- package/files/templates/expo verse[D]/files/.vscode/extensions.json +0 -10
- package/files/templates/expo verse[D]/files/.vscode/launch.json +0 -54
- package/files/templates/expo verse[D]/files/.vscode/settings.json +0 -30
- package/files/templates/expo verse[D]/files/.vscode/tasks.json +0 -0
- package/files/templates/expo verse[D]/files/.yarnrc +0 -1
- package/files/templates/expo verse[D]/files/.yarnrc.yml +0 -8
- package/files/templates/expo verse[D]/files/App.tsx +0 -63
- package/files/templates/expo verse[D]/files/DEBUGGING.md +0 -126
- package/files/templates/expo verse[D]/files/README.md +0 -45
- package/files/templates/expo verse[D]/files/android/app/build.gradle +0 -177
- package/files/templates/expo verse[D]/files/android/app/debug.keystore +0 -0
- package/files/templates/expo verse[D]/files/android/app/proguard-rules.pro +0 -14
- package/files/templates/expo verse[D]/files/android/app/src/debug/AndroidManifest.xml +0 -7
- package/files/templates/expo verse[D]/files/android/app/src/main/AndroidManifest.xml +0 -33
- package/files/templates/expo verse[D]/files/android/app/src/main/java/so/sunnysideup/daily_verse/MainActivity.kt +0 -65
- package/files/templates/expo verse[D]/files/android/app/src/main/java/so/sunnysideup/daily_verse/MainApplication.kt +0 -57
- package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable/ic_launcher_background.xml +0 -6
- package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -37
- package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-hdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-mdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-night-hdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-night-mdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-night-xhdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-night-xxhdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-night-xxxhdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-xhdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-xxhdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-xxxhdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +0 -6
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +0 -6
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/values/colors.xml +0 -6
- package/files/templates/expo verse[D]/files/android/app/src/main/res/values/strings.xml +0 -7
- package/files/templates/expo verse[D]/files/android/app/src/main/res/values/styles.xml +0 -12
- package/files/templates/expo verse[D]/files/android/app/src/main/res/values-night/colors.xml +0 -3
- package/files/templates/expo verse[D]/files/android/build.gradle +0 -37
- package/files/templates/expo verse[D]/files/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/files/templates/expo verse[D]/files/android/gradle/wrapper/gradle-wrapper.properties +0 -7
- package/files/templates/expo verse[D]/files/android/gradle.properties +0 -59
- package/files/templates/expo verse[D]/files/android/gradlew +0 -251
- package/files/templates/expo verse[D]/files/android/gradlew.bat +0 -94
- package/files/templates/expo verse[D]/files/android/settings.gradle +0 -39
- package/files/templates/expo verse[D]/files/app.config.ts +0 -77
- package/files/templates/expo verse[D]/files/assets/data/de.csv +0 -949
- package/files/templates/expo verse[D]/files/assets/data/en.csv +0 -949
- package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-Black.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-BlackItalic.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-Bold.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-BoldItalic.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-ExtraBold.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-ExtraBoldItalic.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-Italic.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-Medium.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-MediumItalic.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-Regular.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-SemiBold.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-SemiBoldItalic.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/fonts/SpaceMono-Regular.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/images/andorid/background.png +0 -0
- package/files/templates/expo verse[D]/files/assets/images/android-dark.png +0 -0
- package/files/templates/expo verse[D]/files/assets/images/android-light.png +0 -0
- package/files/templates/expo verse[D]/files/assets/images/background.png +0 -0
- package/files/templates/expo verse[D]/files/assets/images/ios-dark.png +0 -0
- package/files/templates/expo verse[D]/files/assets/images/ios-light.png +0 -0
- package/files/templates/expo verse[D]/files/assets/images/ios-tinted.png +0 -0
- package/files/templates/expo verse[D]/files/assets/images/splash-icon-dark.png +0 -0
- package/files/templates/expo verse[D]/files/assets/images/splash-icon-light.png +0 -0
- package/files/templates/expo verse[D]/files/babel.config.js +0 -10
- package/files/templates/expo verse[D]/files/components/.gitkeep +0 -0
- package/files/templates/expo verse[D]/files/components/MainScreen.tsx +0 -299
- package/files/templates/expo verse[D]/files/components/Share.tsx +0 -132
- package/files/templates/expo verse[D]/files/components/ui/.gitkeep +0 -0
- package/files/templates/expo verse[D]/files/components/ui/dev.tsx +0 -48
- package/files/templates/expo verse[D]/files/constants/config.ts +0 -30
- package/files/templates/expo verse[D]/files/constants/theme.ts +0 -18
- package/files/templates/expo verse[D]/files/data/de.csv +0 -219
- package/files/templates/expo verse[D]/files/data/en.csv +0 -219
- package/files/templates/expo verse[D]/files/data/version.json +0 -4
- package/files/templates/expo verse[D]/files/eas.json +0 -47
- package/files/templates/expo verse[D]/files/eslint.config.mjs +0 -185
- package/files/templates/expo verse[D]/files/global.css +0 -47
- package/files/templates/expo verse[D]/files/hooks/useColorScheme.ts +0 -17
- package/files/templates/expo verse[D]/files/index.ts +0 -28
- package/files/templates/expo verse[D]/files/lib/content.ts +0 -31
- package/files/templates/expo verse[D]/files/lib/data.ts +0 -180
- package/files/templates/expo verse[D]/files/lib/helper.ts +0 -54
- package/files/templates/expo verse[D]/files/lib/index.ts +0 -21
- package/files/templates/expo verse[D]/files/lib/state.ts +0 -128
- package/files/templates/expo verse[D]/files/lib/storage.ts +0 -17
- package/files/templates/expo verse[D]/files/lib/taskManager/index.ts +0 -38
- package/files/templates/expo verse[D]/files/lib/taskManager/loadData.ts +0 -14
- package/files/templates/expo verse[D]/files/lib/utils/index.ts +0 -11
- package/files/templates/expo verse[D]/files/lib/utils/polyfills.ts +0 -29
- package/files/templates/expo verse[D]/files/lib/utils/screenshot.ts +0 -77
- package/files/templates/expo verse[D]/files/lucy.json +0 -8
- package/files/templates/expo verse[D]/files/metro.config.js +0 -81
- package/files/templates/expo verse[D]/files/models/index.ts +0 -28
- package/files/templates/expo verse[D]/files/nativewind-env.d.ts +0 -1
- package/files/templates/expo verse[D]/files/package.json +0 -102
- package/files/templates/expo verse[D]/files/pnpm-workspace.yaml +0 -3
- package/files/templates/expo verse[D]/files/scripts/convert-verses.ts +0 -309
- package/files/templates/expo verse[D]/files/scripts/move-artifacts.ts +0 -83
- package/files/templates/expo verse[D]/files/scripts/reset-project.ts +0 -116
- package/files/templates/expo verse[D]/files/tailwind.config.js +0 -63
- package/files/templates/expo verse[D]/files/tsconfig.json +0 -45
- package/files/templates/expo verse[D]/files/types/index.ts +0 -4
- package/files/templates/expo verse[D]/files/types/reset.d.ts +0 -1
- package/files/templates/expo verse[D]/lucy.json +0 -86
- package/files/templates/expo[D]/files/.cursorignore +0 -4
- package/files/templates/expo[D]/files/.nvmrc +0 -1
- package/files/templates/expo[D]/files/.prettierignore +0 -23
- package/files/templates/expo[D]/files/.prettierrc.js +0 -16
- package/files/templates/expo[D]/files/.stylelintrc.js +0 -8
- package/files/templates/expo[D]/files/.yarnrc +0 -1
- package/files/templates/expo[D]/files/.yarnrc.yml +0 -3
- package/files/templates/expo[D]/files/README.md +0 -45
- package/files/templates/expo[D]/files/app.config.ts +0 -69
- package/files/templates/expo[D]/files/assets/fonts/SpaceMono-Regular.ttf +0 -0
- package/files/templates/expo[D]/files/assets/images/adaptive-icon.png +0 -0
- package/files/templates/expo[D]/files/assets/images/favicon.png +0 -0
- package/files/templates/expo[D]/files/assets/images/icon.png +0 -0
- package/files/templates/expo[D]/files/assets/images/splash-icon.png +0 -0
- package/files/templates/expo[D]/files/babel.config.js +0 -10
- package/files/templates/expo[D]/files/components/.gitkeep +0 -0
- package/files/templates/expo[D]/files/components/ui/.gitkeep +0 -0
- package/files/templates/expo[D]/files/constants/theme.ts +0 -18
- package/files/templates/expo[D]/files/eas.json +0 -32
- package/files/templates/expo[D]/files/eslint.config.mjs +0 -181
- package/files/templates/expo[D]/files/global.css +0 -47
- package/files/templates/expo[D]/files/hooks/useColorScheme.ts +0 -17
- package/files/templates/expo[D]/files/index.ts +0 -11
- package/files/templates/expo[D]/files/lib/data.ts +0 -197
- package/files/templates/expo[D]/files/lib/utils/index.ts +0 -11
- package/files/templates/expo[D]/files/lib/utils/polyfills.ts +0 -29
- package/files/templates/expo[D]/files/lib/wix/client.ts +0 -12
- package/files/templates/expo[D]/files/lib/wix/error.ts +0 -3
- package/files/templates/expo[D]/files/lib/wix/index.ts +0 -2
- package/files/templates/expo[D]/files/metro.config.js +0 -63
- package/files/templates/expo[D]/files/nativewind-env.d.ts +0 -1
- package/files/templates/expo[D]/files/pnpm-workspace.yaml +0 -3
- package/files/templates/expo[D]/files/scripts/reset-project.ts +0 -116
- package/files/templates/expo[D]/files/tailwind.config.js +0 -63
- package/files/templates/expo[D]/files/tsconfig.json +0 -46
- package/files/templates/expo[D]/files/types/reset.d.ts +0 -1
- package/files/templates/expo[D]/lucy.json +0 -86
- package/files/templates/monorepo[D]/files/.cursorignore +0 -4
- package/files/templates/monorepo[D]/files/.editorconfig +0 -10
- package/files/templates/monorepo[D]/files/.nvmrc +0 -1
- package/files/templates/monorepo[D]/files/.prettierignore +0 -23
- package/files/templates/monorepo[D]/files/.prettierrc.json +0 -15
- package/files/templates/monorepo[D]/files/.stylelintrc.js +0 -8
- package/files/templates/monorepo[D]/files/.yarnrc +0 -1
- package/files/templates/monorepo[D]/files/.yarnrc.yml +0 -3
- package/files/templates/monorepo[D]/files/README.md +0 -109
- package/files/templates/monorepo[D]/files/currents.config.ts +0 -5
- package/files/templates/monorepo[D]/files/nx.json +0 -25
- package/files/templates/monorepo[D]/files/pnpm-workspace.yaml +0 -11
- package/files/templates/monorepo[D]/files/tsconfig.json +0 -6
- package/files/templates/monorepo[D]/files/typedoc.json +0 -25
- package/files/templates/monorepo[D]/files/vitest.config.ts +0 -27
- package/files/templates/monorepo[D]/lucy.json +0 -69
- package/files/templates/tauri[D]/files/.cursorignore +0 -4
- package/files/templates/tauri[D]/lucy.json +0 -9
- package/files/templates/velo[D]/files/.cursorignore +0 -4
- package/files/templates/velo[D]/files/.gitmodules +0 -0
- package/files/templates/velo[D]/files/.madgerc +0 -8
- package/files/templates/velo[D]/files/.nvmrc +0 -1
- package/files/templates/velo[D]/files/.prettierignore +0 -23
- package/files/templates/velo[D]/files/.prettierrc.js +0 -16
- package/files/templates/velo[D]/files/.stylelintrc.js +0 -9
- package/files/templates/velo[D]/files/.yarnrc.yml +0 -2
- package/files/templates/velo[D]/files/currents.config.js +0 -5
- package/files/templates/velo[D]/files/cypress/e2e/base/base.cy.ts +0 -14
- package/files/templates/velo[D]/files/cypress/fixtures/example.json +0 -5
- package/files/templates/velo[D]/files/cypress/support/commands.ts +0 -37
- package/files/templates/velo[D]/files/cypress/support/e2e.ts +0 -24
- package/files/templates/velo[D]/files/cypress/tsconfig.json +0 -9
- package/files/templates/velo[D]/files/cypress.config.mjs +0 -19
- package/files/templates/velo[D]/files/eslint.config.mjs +0 -186
- package/files/templates/velo[D]/files/local.tsconfig.json +0 -61
- package/files/templates/velo[D]/files/typedoc.json +0 -25
- package/files/templates/velo[D]/files/typescript/__mocks__/.gitkeep +0 -0
- package/files/templates/velo[D]/files/typescript/backend/config/authz.ts +0 -47
- package/files/templates/velo[D]/files/typescript/backend/config/env.ts +0 -8
- package/files/templates/velo[D]/files/typescript/backend/config/index.ts +0 -26
- package/files/templates/velo[D]/files/typescript/backend/config/mail.ts +0 -10
- package/files/templates/velo[D]/files/typescript/backend/config/nats.ts +0 -6
- package/files/templates/velo[D]/files/typescript/backend/data.ts +0 -0
- package/files/templates/velo[D]/files/typescript/backend/events.ts +0 -0
- package/files/templates/velo[D]/files/typescript/backend/http-functions.ts +0 -81
- package/files/templates/velo[D]/files/typescript/backend/lib/http-functions/sync.ts +0 -270
- package/files/templates/velo[D]/files/typescript/backend/permissions.json +0 -17
- package/files/templates/velo[D]/files/typescript/pages/.gitkeep +0 -0
- package/files/templates/velo[D]/files/typescript/public/.gitkeep +0 -0
- package/files/templates/velo[D]/files/typescript/public/config/env.ts +0 -9
- package/files/templates/velo[D]/files/typescript/public/config/index.ts +0 -76
- package/files/templates/velo[D]/files/typescript/public/config/locales.ts +0 -30
- package/files/templates/velo[D]/files/typescript/public/config/theme.ts +0 -110
- package/files/templates/velo[D]/files/typescript/public/i18n/default.ts +0 -123
- package/files/templates/velo[D]/files/typescript/public/i18n/en.ts +0 -117
- package/files/templates/velo[D]/files/typescript/public/models/collections/member_roles.mode.ts +0 -21
- package/files/templates/velo[D]/files/typescript/public/models/collections/organization.model.ts +0 -38
- package/files/templates/velo[D]/files/typescript/public/models/collections/plan.model.ts +0 -94
- package/files/templates/velo[D]/files/typescript/public/models/collections/stage.model.ts +0 -14
- package/files/templates/velo[D]/files/typescript/public/models/collections/subscriptions.model.ts +0 -80
- package/files/templates/velo[D]/files/typescript/public/models/collections/tag.model.ts +0 -15
- package/files/templates/velo[D]/files/typescript/public/models/collections/translations.model.ts +0 -16
- package/files/templates/velo[D]/files/typescript/public/models/modules/authz.model.ts +0 -31
- package/files/templates/velo[D]/files/typescript/public/models/modules/organization.ts +0 -20
- package/files/templates/velo[D]/files/typescript/public/models/splitwise.model.ts +0 -18
- package/files/templates/velo[D]/files/typescript/public/models/store/local.model.ts +0 -10
- package/files/templates/velo[D]/files/typescript/public/models/store/memory.model.ts +0 -10
- package/files/templates/velo[D]/files/typescript/public/models/store/session.model.ts +0 -10
- package/files/templates/velo[D]/files/typescript/public/models/wix/ecom/payment.ts +0 -236
- package/files/templates/velo[D]/files/typescript/public/scss/app.scss +0 -0
- package/files/templates/velo[D]/files/typescript/styles/.gitkeep +0 -0
- package/files/templates/velo[D]/files/typescript/styles/global.scss +0 -0
- package/files/templates/velo[D]/files/typescript/tsconfig.json +0 -72
- package/files/templates/velo[D]/files/vitest.config.ts +0 -45
- package/files/templates/velo[D]/lucy.json +0 -137
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
[package]
|
|
2
|
-
name = "wiicle_backend"
|
|
3
|
-
version.workspace = true
|
|
4
|
-
authors.workspace = true
|
|
5
|
-
description.workspace = true
|
|
6
|
-
edition.workspace = true
|
|
7
|
-
license.workspace = true
|
|
8
|
-
repository.workspace = true
|
|
9
|
-
homepage.workspace = true
|
|
10
|
-
publish = false
|
|
11
|
-
build = "build/main.rs"
|
|
12
|
-
|
|
13
|
-
[workspace]
|
|
14
|
-
members = [
|
|
15
|
-
".",
|
|
16
|
-
"./lib/core",
|
|
17
|
-
"./services/grpc",
|
|
18
|
-
"./services/http",
|
|
19
|
-
"./lib/common",
|
|
20
|
-
"./services/database",
|
|
21
|
-
"./lib/cli",
|
|
22
|
-
"./services/database/migrations",
|
|
23
|
-
"./lib/context",
|
|
24
|
-
"./features/auth",
|
|
25
|
-
"./features/authz",
|
|
26
|
-
"./lib/i18n",
|
|
27
|
-
"./lib/settings"
|
|
28
|
-
]
|
|
29
|
-
resolver = "2"
|
|
30
|
-
exclude = ["target/*"]
|
|
31
|
-
|
|
32
|
-
[workspace.metadata]
|
|
33
|
-
|
|
34
|
-
[package.metadata.docs.rs]
|
|
35
|
-
# Set dependencies to false if you don't want docs from external crates
|
|
36
|
-
dependencies = false
|
|
37
|
-
|
|
38
|
-
[workspace.package]
|
|
39
|
-
authors = ["Gradlon von Känel"]
|
|
40
|
-
description = "Wiicle Backend"
|
|
41
|
-
edition = "2021"
|
|
42
|
-
license = "MIT"
|
|
43
|
-
repository = ""
|
|
44
|
-
version = "0.1.0"
|
|
45
|
-
homepage = "https://www.integral-systems.ch"
|
|
46
|
-
|
|
47
|
-
[workspace.lints.rust]
|
|
48
|
-
unsafe-code = "forbid"
|
|
49
|
-
# unused = "allow"
|
|
50
|
-
unused = "warn"
|
|
51
|
-
missing_docs = "warn"
|
|
52
|
-
|
|
53
|
-
[workspace.lints.rustdoc]
|
|
54
|
-
missing_crate_level_docs = "allow"
|
|
55
|
-
|
|
56
|
-
[workspace.lints.clippy]
|
|
57
|
-
unwrap_used = "warn"
|
|
58
|
-
cargo = "allow"
|
|
59
|
-
pedantic = "allow"
|
|
60
|
-
expect_used = "warn"
|
|
61
|
-
multiple_crate_versions = "allow"
|
|
62
|
-
|
|
63
|
-
[lints]
|
|
64
|
-
workspace = true
|
|
65
|
-
|
|
66
|
-
[build-dependencies]
|
|
67
|
-
serde.workspace = true
|
|
68
|
-
serde_json.workspace = true
|
|
69
|
-
config.workspace = true
|
|
70
|
-
once_cell.workspace = true
|
|
71
|
-
serde_derive.workspace = true
|
|
72
|
-
schemars.workspace = true
|
|
73
|
-
strum_macros.workspace = true
|
|
74
|
-
language-tags.workspace = true
|
|
75
|
-
thiserror.workspace = true
|
|
76
|
-
anyhow.workspace = true
|
|
77
|
-
color-eyre.workspace = true
|
|
78
|
-
settings.workspace = true
|
|
79
|
-
|
|
80
|
-
[dependencies]
|
|
81
|
-
# Crates
|
|
82
|
-
cli = { path = "./lib/cli" }
|
|
83
|
-
lucy_core.workspace = true
|
|
84
|
-
settings.workspace = true
|
|
85
|
-
i18n_lib.workspace = true
|
|
86
|
-
autometrics.workspace = true
|
|
87
|
-
http_service.workspace = true
|
|
88
|
-
grpc_service.workspace = true
|
|
89
|
-
tracing.workspace = true
|
|
90
|
-
anyhow_trace.workspace = true
|
|
91
|
-
tokio.workspace = true
|
|
92
|
-
tracing-subscriber.workspace = true
|
|
93
|
-
color-eyre.workspace = true
|
|
94
|
-
anyhow.workspace = true
|
|
95
|
-
http.workspace = true
|
|
96
|
-
database.workspace = true
|
|
97
|
-
common.workspace = true
|
|
98
|
-
rust-i18n.workspace = true
|
|
99
|
-
async-trait.workspace = true
|
|
100
|
-
|
|
101
|
-
[workspace.dependencies]
|
|
102
|
-
# Crates
|
|
103
|
-
lucy_core = { path = "./lib/core" } # depends on your needs
|
|
104
|
-
database = { path = "./services/database" } # depends on your needs
|
|
105
|
-
common = { path = "./lib/common" }
|
|
106
|
-
context = { path = "./lib/context" }
|
|
107
|
-
auth = { path = "./features/auth" }
|
|
108
|
-
authz = { path = "./features/authz" }
|
|
109
|
-
http_service = { path = "./services/http"}
|
|
110
|
-
grpc_service = { path = "./services/grpc"}
|
|
111
|
-
i18n_lib = { path = "./lib/i18n" }
|
|
112
|
-
settings = { path = "./lib/settings" }
|
|
113
|
-
|
|
114
|
-
# Base
|
|
115
|
-
tokio = { version = "1.36.0", features = ["full", "rt-multi-thread"] }
|
|
116
|
-
async-std = { version = "1", features = ["attributes", "tokio1"] }
|
|
117
|
-
async-trait = "0.1.57"
|
|
118
|
-
futures = "0.3"
|
|
119
|
-
|
|
120
|
-
# http
|
|
121
|
-
http = "1.1"
|
|
122
|
-
http-body = "1.0"
|
|
123
|
-
|
|
124
|
-
# hyper
|
|
125
|
-
hyper = { version = "1.0.0", features = ["full"] }
|
|
126
|
-
hyper-util = "0.1"
|
|
127
|
-
|
|
128
|
-
tower = { version = "0.5.1", features = ["steer", "util"] }
|
|
129
|
-
tower-http = { version = "0.5.2", features = ["cors", "trace", "fs"] }
|
|
130
|
-
tower-cookies = { version = "0.10.0" }
|
|
131
|
-
tower-service = "0.3.3"
|
|
132
|
-
|
|
133
|
-
# Axum
|
|
134
|
-
axum = { version = "0.7.5", features = ["ws", "macros", "multipart", "tracing"] }
|
|
135
|
-
axum-macros = "0.4.1"
|
|
136
|
-
axum-messages = "0.7.0"
|
|
137
|
-
axum-extra = "0.9.3"
|
|
138
|
-
axum-helmet = "0.1"
|
|
139
|
-
|
|
140
|
-
# Datatypes
|
|
141
|
-
axum-jsonschema = { version = "0.8.0", features = ["aide"] }
|
|
142
|
-
serde = { version = "1.0.144", features = ["derive", "rc"] }
|
|
143
|
-
serde_json = "1.0.113"
|
|
144
|
-
serde_yaml = "0.9"
|
|
145
|
-
serde_derive = "1.0.196"
|
|
146
|
-
schemars = { version = "0.8.16", features = ["uuid1"] }
|
|
147
|
-
schemars-zod = "0.1.5"
|
|
148
|
-
|
|
149
|
-
# Swagger
|
|
150
|
-
utoipa = {git = "https://github.com/juhaku/utoipa", branch = "master", features = ["axum_extras"]}
|
|
151
|
-
utoipa-scalar = {git = "https://github.com/juhaku/utoipa", branch = "master", features = ["axum"]}
|
|
152
|
-
|
|
153
|
-
# Tonic
|
|
154
|
-
tonic = "0.12.0"
|
|
155
|
-
tonic-middleware = "0.2.1"
|
|
156
|
-
tonic-web = "0.12.0"
|
|
157
|
-
tonic-reflection = "0.12.0"
|
|
158
|
-
tonic-async-interceptor = "0.12.0"
|
|
159
|
-
prost = "0.13.1"
|
|
160
|
-
|
|
161
|
-
# DB's
|
|
162
|
-
fred = { version = "9.1.2", features = ["mocks"] }
|
|
163
|
-
sea-orm = { version = "1.0.1", features = [ "sqlx-postgres", "runtime-tokio-rustls", "macros", "debug-print", "mock"] }
|
|
164
|
-
sea-orm-migration = { version = "1.0.1", features = ["sqlx-postgres", "runtime-tokio-rustls"]}
|
|
165
|
-
sqlx = { version = "0.7.4", features = ["sqlite", "time", "runtime-tokio"] }
|
|
166
|
-
surrealdb = "1.5.4"
|
|
167
|
-
|
|
168
|
-
# Tracing and Logging
|
|
169
|
-
autometrics = { version = "2.0.0", features = ["prometheus-exporter"] }
|
|
170
|
-
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt", "chrono"] }
|
|
171
|
-
anyhow = { version = "1.0.82", features = ["backtrace"] }
|
|
172
|
-
thiserror = "1.0.50"
|
|
173
|
-
anyhow_trace = "0.1.3"
|
|
174
|
-
tracing = "0.1"
|
|
175
|
-
tower-otel = "0.2.0"
|
|
176
|
-
color-eyre = "0.6.3"
|
|
177
|
-
|
|
178
|
-
# I18N
|
|
179
|
-
language-tags = { version = "0.3.2", features = ["serde"] }
|
|
180
|
-
rust-i18n = "3.1.2"
|
|
181
|
-
|
|
182
|
-
# Auth/Authz
|
|
183
|
-
casdoor-rust-sdk = "1.3.0"
|
|
184
|
-
casbin = { version = "2.2.0", default-features = false, features = ["runtime-async-std", "logging", "incremental"] }
|
|
185
|
-
|
|
186
|
-
# Utils
|
|
187
|
-
uuid = { version = "1.8.0", features = ["v4", "v7","serde", "fast-rng"] }
|
|
188
|
-
lazy-regex = "3.1.0"
|
|
189
|
-
strum_macros = "0.26.2"
|
|
190
|
-
derive_more = { version = "1.0.0-beta", features = ["from"]}
|
|
191
|
-
serde_with = "3.8.1"
|
|
192
|
-
time = "0.3.30"
|
|
193
|
-
config = "0.14.0"
|
|
194
|
-
clap = { version = "4.5.3", features = ["derive"]}
|
|
195
|
-
reqwest = { version = "0.12.2", features = ["json"] }
|
|
196
|
-
structstruck ={ version = "0.4.1"}
|
|
197
|
-
rayon = "1.10.0"
|
|
198
|
-
figlet-rs = "0.1.5"
|
|
199
|
-
ansi_term = "0.12.1"
|
|
200
|
-
argon2 = "0.5.3"
|
|
201
|
-
lazy_static = "1.4.0"
|
|
202
|
-
|
|
203
|
-
# Time
|
|
204
|
-
chrono = "0.4.19"
|
|
205
|
-
chrono-tz = "0.10.0"
|
|
206
|
-
|
|
207
|
-
# Datatypes
|
|
208
|
-
once_cell = "1.19.0"
|
|
209
|
-
|
|
210
|
-
#testing
|
|
211
|
-
mockall ="0.13.0"
|
|
212
|
-
serial_test = "3.1.1"
|
|
213
|
-
tokio-test = "0.4.4"
|
|
214
|
-
pretty_assertions = "1.4.0"
|
|
215
|
-
tonic-mock = "0.3.0"
|
|
216
|
-
|
|
217
|
-
[workspace.dev-dependencies]
|
|
218
|
-
tokio = { version = "1", features = ["full"] }
|
|
219
|
-
testresult = "0.4.0"
|
|
220
|
-
pretty_assertions.workspace = true
|
|
221
|
-
|
|
222
|
-
[dev-dependencies]
|
|
223
|
-
anyhow.workspace = true
|
|
224
|
-
reqwest.workspace = true
|
|
225
|
-
tokio.workspace = true
|
|
226
|
-
serde_json.workspace = true
|
|
227
|
-
tokio-test.workspace = true
|
|
228
|
-
lucy_core.workspace = true
|
|
229
|
-
pretty_assertions.workspace = true
|
|
230
|
-
|
|
231
|
-
[profile.dev]
|
|
232
|
-
debug = true
|
|
233
|
-
|
|
234
|
-
[profile.release]
|
|
235
|
-
debug = false
|
|
236
|
-
lto = true
|
|
237
|
-
codegen-units = 1
|
|
238
|
-
panic = "abort"
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
//! This build script generates a JSON schema for the `Settings` struct.
|
|
2
|
-
//! The schema is used by the `config` crate to validate the configuration file.
|
|
3
|
-
//! The schema is written to `config/schema.json`.
|
|
4
|
-
macro_rules! p {
|
|
5
|
-
($($tokens: tt)*) => {
|
|
6
|
-
println!("cargo:warning={}", format!($($tokens)*))
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
/// This build script generates a JSON schema for the `Settings` struct.
|
|
11
|
-
/// The schema is used by the `config` crate to validate the configuration file.
|
|
12
|
-
/// The schema is written to `../../config/schema.json`.
|
|
13
|
-
/// The build script is re-run if `src/lib.rs` changes.
|
|
14
|
-
fn main() {
|
|
15
|
-
p!("cargo:rerun-if-changed=src/lib.rs");
|
|
16
|
-
let schema = schemars::schema_for!(Settings);
|
|
17
|
-
let schema_file = Path::new("config/schema.json");
|
|
18
|
-
fs::write(
|
|
19
|
-
schema_file,
|
|
20
|
-
serde_json::to_string_pretty(&schema).unwrap_or_else(|error| {
|
|
21
|
-
p!("Error: {}", error);
|
|
22
|
-
String::new()
|
|
23
|
-
}),
|
|
24
|
-
)
|
|
25
|
-
.unwrap_or_else(|error| {
|
|
26
|
-
p!("Error: {}", error);
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
p!("Writing JSON schema to {:?}", schema_file);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
// include!("src/lib.rs");
|
|
33
|
-
use std::fs;
|
|
34
|
-
use std::path::Path;
|
|
35
|
-
use settings::Settings;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "schema.json",
|
|
3
|
-
"environment": "Beta",
|
|
4
|
-
"databases": {
|
|
5
|
-
"redis": {
|
|
6
|
-
"key_prefix": "wiicle_beta"
|
|
7
|
-
}
|
|
8
|
-
},
|
|
9
|
-
"security": {
|
|
10
|
-
"alias_session_expiry": 7200,
|
|
11
|
-
"session_expiry": 7200
|
|
12
|
-
},
|
|
13
|
-
"product": {
|
|
14
|
-
"name": "Wiicle(BETA)"
|
|
15
|
-
},
|
|
16
|
-
"app": {
|
|
17
|
-
"log_level": "Info"
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "schema.json",
|
|
3
|
-
"message": "Wellcome to The Wiicle Backend",
|
|
4
|
-
"databases": {
|
|
5
|
-
"postgres": {
|
|
6
|
-
"url": "postgres://dev:dev@postgres/wiicle"
|
|
7
|
-
},
|
|
8
|
-
"redis": {
|
|
9
|
-
"url": "redis://default@redis:6379/0"
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
"product": {
|
|
13
|
-
"name": "Wiicle(CI)"
|
|
14
|
-
}
|
|
15
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "schema.json",
|
|
3
|
-
"message": "Wellcome to The Wiicle Backend",
|
|
4
|
-
"databases": {
|
|
5
|
-
"postgres": {
|
|
6
|
-
"url": "postgres://root:root@localhost:26257/wiicle_beta"
|
|
7
|
-
},
|
|
8
|
-
"mongo": {
|
|
9
|
-
"url": "mongodb://mongo:27017/api"
|
|
10
|
-
},
|
|
11
|
-
"redis": {
|
|
12
|
-
"url": "redis://default@127.0.0.1:6379/0",
|
|
13
|
-
"key_prefix": "wiicle",
|
|
14
|
-
"pool_size": 5
|
|
15
|
-
},
|
|
16
|
-
"meilisearch": {
|
|
17
|
-
"url": "http://localhost:7700",
|
|
18
|
-
"api_key": "dev"
|
|
19
|
-
},
|
|
20
|
-
"elasticsearch": {
|
|
21
|
-
"url": "http://127.0.0.1:9271"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"i18n": {
|
|
25
|
-
"default_locale": "en",
|
|
26
|
-
"supported_locales": ["en", "de", "fr"]
|
|
27
|
-
},
|
|
28
|
-
"security": {
|
|
29
|
-
"jwt_secret": "SuperSecretToken",
|
|
30
|
-
"jwt_expiry": 7200,
|
|
31
|
-
"session_expiry": 300,
|
|
32
|
-
"alias_session_expiry": 300,
|
|
33
|
-
"api_keys": ["ca03na188ame03u1d78620de67282882a84"],
|
|
34
|
-
"api_key_field": "api-key",
|
|
35
|
-
"cookie_name": "session",
|
|
36
|
-
"cookie_lifetime": 90,
|
|
37
|
-
"cors": {
|
|
38
|
-
"allowed_origins": ["http://localhost:8085", "http://192.168.1.87:8085"]
|
|
39
|
-
},
|
|
40
|
-
"admin": {
|
|
41
|
-
"username": "admin",
|
|
42
|
-
"password": "admin",
|
|
43
|
-
"password_hashed": "$2b$10$o4OYI2SOrkBZl17X1d2hg.gip6M5xNZPmpF0IsrpS62eXP4B/WoRy"
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
"app": {
|
|
47
|
-
"http_port": 3000,
|
|
48
|
-
"grpc_port": 3100,
|
|
49
|
-
"proto_out_dir": "../grpc",
|
|
50
|
-
"log_level": "Debug",
|
|
51
|
-
"lang_field": "lang",
|
|
52
|
-
"default_lang": "de-CH",
|
|
53
|
-
"context_field": "x-context",
|
|
54
|
-
"frontend_dir": "public"
|
|
55
|
-
},
|
|
56
|
-
"mail": {
|
|
57
|
-
"host": "smtp.gmail.com",
|
|
58
|
-
"port": 465,
|
|
59
|
-
"secure": true,
|
|
60
|
-
"auth": {
|
|
61
|
-
"user": "",
|
|
62
|
-
"pass": ""
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
"product": {
|
|
66
|
-
"name": "Wiicle",
|
|
67
|
-
"telegram_bot_token": "5386225720:AAEKgiysSjy-p6Z0yNgDcCl_QmqNjSSPPw4",
|
|
68
|
-
"telegram_chat_id": "-933647200",
|
|
69
|
-
"default_avatar": "https://cdn.vectorstock.com/i/1000v/45/94/default-avatar-profile-icon-grey-photo-vector-31934594.jpg"
|
|
70
|
-
}
|
|
71
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
OK
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"modules": {
|
|
3
|
-
"lucy-rust-lib": {
|
|
4
|
-
"source": "git@github.com:Sunnyside-UP-GmbH/lucy-rust-lib.git",
|
|
5
|
-
"branch": "1.0.0",
|
|
6
|
-
"path": "lib"
|
|
7
|
-
}
|
|
8
|
-
},
|
|
9
|
-
"devDependencies": {},
|
|
10
|
-
"dependencies": {},
|
|
11
|
-
"scripts": {},
|
|
12
|
-
"initialized": false,
|
|
13
|
-
"type": "cargo",
|
|
14
|
-
"packageManager": "pnpm"
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
22
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# Dependencies
|
|
2
|
-
node_modules/
|
|
3
|
-
|
|
4
|
-
# Build output
|
|
5
|
-
dist
|
|
6
|
-
.next/
|
|
7
|
-
.wix/
|
|
8
|
-
build
|
|
9
|
-
out
|
|
10
|
-
|
|
11
|
-
# Turbo cache
|
|
12
|
-
.turbo
|
|
13
|
-
|
|
14
|
-
# Logs
|
|
15
|
-
*.log
|
|
16
|
-
npm-debug.log*
|
|
17
|
-
yarn-debug.log*
|
|
18
|
-
yarn-error.log*
|
|
19
|
-
pnpm-debug.log*
|
|
20
|
-
|
|
21
|
-
# As per your ESLint config, JS files are not formatted.
|
|
22
|
-
**/*.js
|
|
23
|
-
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
printWidth: 80,
|
|
3
|
-
tabWidth: 4,
|
|
4
|
-
useTabs: true,
|
|
5
|
-
singleQuote: true,
|
|
6
|
-
trailingComma: 'all',
|
|
7
|
-
plugins: ['prettier-plugin-tailwindcss'],
|
|
8
|
-
overrides: [
|
|
9
|
-
{
|
|
10
|
-
files: ['**/*.{json,jsonc,json5}', '*.{json,jsonc,json5}'],
|
|
11
|
-
options: {
|
|
12
|
-
useTabs: true
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
]
|
|
16
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "0.2.0",
|
|
3
|
-
"configurations": [
|
|
4
|
-
{
|
|
5
|
-
"name": "Debug Expo (Development Build)",
|
|
6
|
-
"type": "expo",
|
|
7
|
-
"request": "attach",
|
|
8
|
-
"projectRoot": "${workspaceFolder}",
|
|
9
|
-
"bundlerPort": "8081",
|
|
10
|
-
"bundlerHost": "127.0.0.1",
|
|
11
|
-
"sourceMaps": true,
|
|
12
|
-
"sourceMapPathOverrides": {
|
|
13
|
-
"webpack:///./*": "${workspaceFolder}/*",
|
|
14
|
-
"webpack:///src/*": "${workspaceFolder}/*",
|
|
15
|
-
"webpack:///*": "*"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"name": "Debug Expo Web",
|
|
20
|
-
"type": "node",
|
|
21
|
-
"request": "launch",
|
|
22
|
-
"program": "${workspaceFolder}/node_modules/.bin/expo",
|
|
23
|
-
"args": ["start", "--web"],
|
|
24
|
-
"cwd": "${workspaceFolder}",
|
|
25
|
-
"console": "integratedTerminal",
|
|
26
|
-
"sourceMaps": true,
|
|
27
|
-
"skipFiles": ["<node_internals>/**"]
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"name": "Attach to Hermes (React Native Direct)",
|
|
31
|
-
"request": "attach",
|
|
32
|
-
"type": "reactnativedirect",
|
|
33
|
-
"cwd": "${workspaceFolder}",
|
|
34
|
-
"address": "localhost",
|
|
35
|
-
"port": 8082,
|
|
36
|
-
"sourceMaps": true,
|
|
37
|
-
"sourceMapPathOverrides": {
|
|
38
|
-
"webpack:///./*": "${workspaceFolder}/*",
|
|
39
|
-
"webpack:///src/*": "${workspaceFolder}/*"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "Debug TypeScript Scripts",
|
|
44
|
-
"type": "node",
|
|
45
|
-
"request": "launch",
|
|
46
|
-
"program": "${workspaceFolder}/node_modules/.bin/tsx",
|
|
47
|
-
"args": ["${file}"],
|
|
48
|
-
"cwd": "${workspaceFolder}",
|
|
49
|
-
"console": "integratedTerminal",
|
|
50
|
-
"sourceMaps": true,
|
|
51
|
-
"skipFiles": ["<node_internals>/**"]
|
|
52
|
-
}
|
|
53
|
-
]
|
|
54
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"typescript.preferences.includePackageJsonAutoImports": "on",
|
|
3
|
-
"typescript.suggest.autoImports": true,
|
|
4
|
-
"typescript.updateImportsOnFileMove.enabled": "always",
|
|
5
|
-
"editor.codeActionsOnSave": {
|
|
6
|
-
"source.fixAll.eslint": "explicit"
|
|
7
|
-
},
|
|
8
|
-
"eslint.validate": [
|
|
9
|
-
"javascript",
|
|
10
|
-
"javascriptreact",
|
|
11
|
-
"typescript",
|
|
12
|
-
"typescriptreact"
|
|
13
|
-
],
|
|
14
|
-
"debug.javascript.usePreview": true,
|
|
15
|
-
"debug.javascript.breakOnConditionalError": true,
|
|
16
|
-
"debug.node.autoAttach": "disabled",
|
|
17
|
-
"debug.terminal.clearBeforeReusing": true,
|
|
18
|
-
"files.exclude": {
|
|
19
|
-
"**/.expo": true,
|
|
20
|
-
"**/.expo-shared": true,
|
|
21
|
-
"**/node_modules": true
|
|
22
|
-
},
|
|
23
|
-
"search.exclude": {
|
|
24
|
-
"**/.expo": true,
|
|
25
|
-
"**/.expo-shared": true,
|
|
26
|
-
"**/node_modules": true,
|
|
27
|
-
"**/build": true,
|
|
28
|
-
"**/dist": true
|
|
29
|
-
}
|
|
30
|
-
}
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
node-options=--max-old-space-size=16384
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { useFonts } from 'expo-font';
|
|
2
|
-
import * as SplashScreen from 'expo-splash-screen';
|
|
3
|
-
import { StatusBar } from 'expo-status-bar';
|
|
4
|
-
import { useEffect, useRef } from 'react';
|
|
5
|
-
import { StyleSheet, View } from 'react-native';
|
|
6
|
-
import { SafeAreaProvider } from 'react-native-safe-area-context';
|
|
7
|
-
|
|
8
|
-
import MainScreen from './components/MainScreen';
|
|
9
|
-
import Dev from './components/ui/dev';
|
|
10
|
-
import { appLoadedResolver } from './lib/taskManager';
|
|
11
|
-
|
|
12
|
-
void SplashScreen.preventAutoHideAsync();
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* This is the main entry point for the app.
|
|
16
|
-
* It is used to initialize the app and to hide the splash screen.
|
|
17
|
-
* It also calls the resolver function to indicate that the app has mounted.
|
|
18
|
-
* @returns The main app component.
|
|
19
|
-
*/
|
|
20
|
-
export default function App() {
|
|
21
|
-
const [loaded, error] = useFonts({
|
|
22
|
-
'Playfair-Bold': require('@/assets/fonts/PlayfairDisplay-Bold.ttf'),
|
|
23
|
-
'Playfair-Regular': require('@/assets/fonts/PlayfairDisplay-Regular.ttf'),
|
|
24
|
-
'Playfair-Italic': require('@/assets/fonts/PlayfairDisplay-Italic.ttf'),
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
const hasResolvedOnceRef = useRef(false);
|
|
28
|
-
|
|
29
|
-
useEffect(() => {
|
|
30
|
-
if (__DEV__ && appLoadedResolver && !hasResolvedOnceRef.current) {
|
|
31
|
-
hasResolvedOnceRef.current = true;
|
|
32
|
-
appLoadedResolver();
|
|
33
|
-
// eslint-disable-next-line no-console
|
|
34
|
-
console.log('Resolver called');
|
|
35
|
-
}
|
|
36
|
-
if (loaded || error) {
|
|
37
|
-
void SplashScreen.hideAsync();
|
|
38
|
-
}
|
|
39
|
-
}, [loaded, error]);
|
|
40
|
-
|
|
41
|
-
if (!loaded && !error) {
|
|
42
|
-
return null;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
return (
|
|
46
|
-
<SafeAreaProvider>
|
|
47
|
-
<View style={styles.container}>
|
|
48
|
-
<MainScreen />
|
|
49
|
-
<StatusBar style="auto" />
|
|
50
|
-
<Dev />
|
|
51
|
-
</View>
|
|
52
|
-
</SafeAreaProvider>
|
|
53
|
-
);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
const styles = StyleSheet.create({
|
|
57
|
-
container: {
|
|
58
|
-
flex: 1,
|
|
59
|
-
backgroundColor: '#fff',
|
|
60
|
-
alignItems: 'center',
|
|
61
|
-
justifyContent: 'center',
|
|
62
|
-
},
|
|
63
|
-
});
|