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,186 +0,0 @@
|
|
|
1
|
-
import eslint from '@eslint/js';
|
|
2
|
-
// @ts-ignore
|
|
3
|
-
import importPlugin from 'eslint-plugin-import';
|
|
4
|
-
import jsdoc from 'eslint-plugin-jsdoc';
|
|
5
|
-
import namedImportSpacing from 'eslint-plugin-named-import-spacing';
|
|
6
|
-
import simpleImportSort from 'eslint-plugin-simple-import-sort';
|
|
7
|
-
import globals from 'globals';
|
|
8
|
-
import tseslint from 'typescript-eslint';
|
|
9
|
-
|
|
10
|
-
export default tseslint.config(
|
|
11
|
-
eslint.configs.recommended,
|
|
12
|
-
tseslint.configs.recommendedTypeChecked,
|
|
13
|
-
jsdoc.configs['flat/recommended-typescript'],
|
|
14
|
-
{
|
|
15
|
-
ignores: [
|
|
16
|
-
'./.wix',
|
|
17
|
-
'./src',
|
|
18
|
-
"eslint.config.mjs",
|
|
19
|
-
"cypress.config.mjs",
|
|
20
|
-
"**/*.js"
|
|
21
|
-
],
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
plugins: {
|
|
25
|
-
'@typescript-eslint': tseslint.plugin,
|
|
26
|
-
'simple-import-sort': simpleImportSort,
|
|
27
|
-
import: importPlugin,
|
|
28
|
-
'named-import-spacing': namedImportSpacing,
|
|
29
|
-
jsdoc,
|
|
30
|
-
},
|
|
31
|
-
settings: {
|
|
32
|
-
'import/resolver': {
|
|
33
|
-
typescript: {
|
|
34
|
-
project: [
|
|
35
|
-
'typescript/tsconfig.json',
|
|
36
|
-
'lib/tsconfig.json'
|
|
37
|
-
],
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
languageOptions: {
|
|
42
|
-
parser: tseslint.parser,
|
|
43
|
-
parserOptions: {
|
|
44
|
-
projectService: true,
|
|
45
|
-
},
|
|
46
|
-
ecmaVersion: 2020,
|
|
47
|
-
sourceType: 'module',
|
|
48
|
-
globals: {
|
|
49
|
-
$w: 'readonly',
|
|
50
|
-
...globals.browser,
|
|
51
|
-
...globals.node,
|
|
52
|
-
// ...globals.es6,
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
rules: {
|
|
56
|
-
'no-console': ['error'],
|
|
57
|
-
'no-restricted-imports': [
|
|
58
|
-
'error',
|
|
59
|
-
{
|
|
60
|
-
'patterns': ['*/**/backend/*', '*/**/public/*']
|
|
61
|
-
}
|
|
62
|
-
],
|
|
63
|
-
'no-restricted-syntax': [
|
|
64
|
-
'warn',
|
|
65
|
-
{
|
|
66
|
-
selector: 'StaticBlock',
|
|
67
|
-
message: 'Static blocks are not allowed in classes.',
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
selector: "MemberExpression[object.name='globalThis'][property.name='console']",
|
|
71
|
-
message: 'Using globalThis.console is not allowed.'
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
selector: "CallExpression[callee.property.name='runPromise'][callee.object.name='runtime']",
|
|
75
|
-
message: 'Usage of runtime.runPromise() is discouraged.',
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
selector: "CallExpression[callee.property.name='runFork'][callee.object.name='runtime']",
|
|
79
|
-
message: 'Usage of runtime.runFork() is discouraged.',
|
|
80
|
-
}
|
|
81
|
-
],
|
|
82
|
-
'@typescript-eslint/no-unsafe-argument': 'error',
|
|
83
|
-
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
84
|
-
'@typescript-eslint/no-unsafe-call': 'error',
|
|
85
|
-
'@typescript-eslint/no-unsafe-member-access': 'off',
|
|
86
|
-
'@typescript-eslint/no-unsafe-return': 'error',
|
|
87
|
-
quotes: [2, 'single', { avoidEscape: true, allowTemplateLiterals: true }],
|
|
88
|
-
curly: ['error', 'multi-line'],
|
|
89
|
-
'simple-import-sort/imports': 'error',
|
|
90
|
-
'simple-import-sort/exports': 'error',
|
|
91
|
-
indent: ['error', 'tab'],
|
|
92
|
-
'no-tabs': 0,
|
|
93
|
-
'semi-style': ['error', 'last'],
|
|
94
|
-
semi: [2, 'always'],
|
|
95
|
-
'object-curly-spacing': ['error', 'always'],
|
|
96
|
-
'space-in-parens': ['error', 'never'],
|
|
97
|
-
'newline-before-return': 'error',
|
|
98
|
-
'space-before-blocks': ['error', { functions: 'always', keywords: 'always', classes: 'always' }],
|
|
99
|
-
'comma-spacing': ['error', { before: false, after: true }],
|
|
100
|
-
'no-multi-spaces': 'error',
|
|
101
|
-
'import/newline-after-import': ['error', { count: 1 }],
|
|
102
|
-
'named-import-spacing/named-import-spacing': 2,
|
|
103
|
-
'no-unused-vars': 'warn',
|
|
104
|
-
'import/no-unresolved': [0],
|
|
105
|
-
'no-forbidden-relative-imports': [0],
|
|
106
|
-
'@typescript-eslint/triple-slash-reference': 'off',
|
|
107
|
-
'@typescript-eslint/member-ordering': [
|
|
108
|
-
'error',
|
|
109
|
-
{
|
|
110
|
-
classes: [
|
|
111
|
-
'constructor',
|
|
112
|
-
'private-instance-field',
|
|
113
|
-
'protected-instance-field',
|
|
114
|
-
'public-instance-field',
|
|
115
|
-
'public-instance-method',
|
|
116
|
-
'private-instance-method',
|
|
117
|
-
],
|
|
118
|
-
},
|
|
119
|
-
],
|
|
120
|
-
'@typescript-eslint/naming-convention': [
|
|
121
|
-
'error',
|
|
122
|
-
{
|
|
123
|
-
selector: ['variable', 'function'],
|
|
124
|
-
format: ['camelCase'],
|
|
125
|
-
leadingUnderscore: 'allow',
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
selector: ['objectLiteralMethod',],
|
|
129
|
-
format: ['camelCase', 'PascalCase'],
|
|
130
|
-
leadingUnderscore: 'allow',
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
selector: ['import',],
|
|
134
|
-
format: ['camelCase', 'PascalCase'],
|
|
135
|
-
leadingUnderscore: 'allow',
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
selector: ['objectLiteralProperty'],
|
|
139
|
-
format: null,
|
|
140
|
-
leadingUnderscore: 'allow',
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
selector: 'memberLike',
|
|
144
|
-
modifiers: ['private'],
|
|
145
|
-
format: ['camelCase'],
|
|
146
|
-
leadingUnderscore: 'require',
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
selector: 'memberLike',
|
|
150
|
-
modifiers: ['protected'],
|
|
151
|
-
format: ['camelCase'],
|
|
152
|
-
leadingUnderscore: 'require',
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
selector: 'memberLike',
|
|
156
|
-
modifiers: ['public'],
|
|
157
|
-
format: ['camelCase'],
|
|
158
|
-
leadingUnderscore: 'forbid',
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
selector: ['parameterProperty', 'parameter'],
|
|
162
|
-
format: ['camelCase'],
|
|
163
|
-
leadingUnderscore: 'forbid',
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
selector: 'default',
|
|
167
|
-
format: ['UPPER_CASE'],
|
|
168
|
-
leadingUnderscore: 'forbid',
|
|
169
|
-
trailingUnderscore: 'forbid',
|
|
170
|
-
custom: {
|
|
171
|
-
regex: '^[A-Z_]+$',
|
|
172
|
-
match: true,
|
|
173
|
-
},
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
selector: 'typeLike',
|
|
177
|
-
format: ['PascalCase'],
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
selector: 'function',
|
|
181
|
-
format: ['UPPER_CASE'],
|
|
182
|
-
},
|
|
183
|
-
],
|
|
184
|
-
},
|
|
185
|
-
},
|
|
186
|
-
);
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"typeAcquisition": {
|
|
3
|
-
"enable": true
|
|
4
|
-
},
|
|
5
|
-
"compilerOptions": {
|
|
6
|
-
"outDir": "../src",
|
|
7
|
-
"rootDir": ".",
|
|
8
|
-
"target": "ES2020",
|
|
9
|
-
"module": "ES2020",
|
|
10
|
-
"moduleResolution": "Node",
|
|
11
|
-
"preserveConstEnums": true,
|
|
12
|
-
"allowSyntheticDefaultImports": true,
|
|
13
|
-
"skipLibCheck": true,
|
|
14
|
-
"allowJs": true,
|
|
15
|
-
"declaration": false,
|
|
16
|
-
"noEmit": true,
|
|
17
|
-
"jsx": "react",
|
|
18
|
-
"strict": true,
|
|
19
|
-
"alwaysStrict": false,
|
|
20
|
-
"noImplicitAny": true,
|
|
21
|
-
"noImplicitReturns": true,
|
|
22
|
-
"noImplicitThis": true,
|
|
23
|
-
"strictNullChecks": true,
|
|
24
|
-
"exactOptionalPropertyTypes": false,
|
|
25
|
-
"strictBindCallApply": true,
|
|
26
|
-
"strictFunctionTypes": true,
|
|
27
|
-
"strictPropertyInitialization": true,
|
|
28
|
-
"resolveJsonModule": true,
|
|
29
|
-
"plugins": [
|
|
30
|
-
{
|
|
31
|
-
"name": "@styled/typescript-styled-plugin"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"name": "typescript-eslint-language-service"
|
|
35
|
-
}
|
|
36
|
-
],
|
|
37
|
-
"paths": {
|
|
38
|
-
"public/*": ["./typescript/public/*", "./lib/public/*"],
|
|
39
|
-
"backend/*": ["./typescript/backend/*", "./lib/backend/*"],
|
|
40
|
-
"pages/*": ["./typescript/pages/*"],
|
|
41
|
-
"types/*": ["./typescript/types/*", "./lib/types/*"]
|
|
42
|
-
},
|
|
43
|
-
"typeRoots": [
|
|
44
|
-
"./types",
|
|
45
|
-
".wix/types/wix-code-types/dist/types/backend",
|
|
46
|
-
".wix/types/wix-code-types/dist/types/common",
|
|
47
|
-
".wix/types/wix-code-types/dist/types/public",
|
|
48
|
-
".wix/types/wix-code-types/dist/types/page",
|
|
49
|
-
".wix/types/masterPage",
|
|
50
|
-
"node_modules/@types"
|
|
51
|
-
]
|
|
52
|
-
},
|
|
53
|
-
"exclude": [
|
|
54
|
-
"../node_modules",
|
|
55
|
-
"node_modules",
|
|
56
|
-
"./**/*.test.ts",
|
|
57
|
-
"../src/**/*",
|
|
58
|
-
"./cypress.config.mjs"
|
|
59
|
-
],
|
|
60
|
-
"include": ["!*.d.ts", "**/public/**/*.tsx", "**/*.ts"]
|
|
61
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"entryPoints": [
|
|
3
|
-
"*/**/*.ts",
|
|
4
|
-
"*/**/*.tsx"
|
|
5
|
-
],
|
|
6
|
-
"entryPointStrategy": "expand",
|
|
7
|
-
"out": "docs",
|
|
8
|
-
"plugin": [
|
|
9
|
-
"typedoc-github-theme"
|
|
10
|
-
],
|
|
11
|
-
"tsconfig": "local.tsconfig.json",
|
|
12
|
-
"excludeExternals": true,
|
|
13
|
-
"externalPattern": [
|
|
14
|
-
"**/node_modules/**",
|
|
15
|
-
"**/.wix/**",
|
|
16
|
-
".wix/**"
|
|
17
|
-
],
|
|
18
|
-
"exclude": [
|
|
19
|
-
"./.wix/**/*",
|
|
20
|
-
".wix/**/*",
|
|
21
|
-
"cypress/**",
|
|
22
|
-
"**/__mocks__/**"
|
|
23
|
-
],
|
|
24
|
-
"name": "Wix-lucy"
|
|
25
|
-
}
|
|
File without changes
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { AuthzConfig } from 'backend/lib/config/model';
|
|
2
|
-
import { Roles } from 'public/config';
|
|
3
|
-
import { Subscription } from 'public/models/modules/authz.model';
|
|
4
|
-
|
|
5
|
-
export enum Actions {
|
|
6
|
-
VIEW = 'view',
|
|
7
|
-
CREATE = 'create',
|
|
8
|
-
EDIT = 'edit',
|
|
9
|
-
DELETE = 'delete',
|
|
10
|
-
LIST = 'list',
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export enum Resources {
|
|
14
|
-
ORGANIZATION = 'organization',
|
|
15
|
-
EVENT = 'event',
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export const rolesPermissions: { name: string, resource: Resources, permissions: Actions[] }[] = [
|
|
19
|
-
{ name: Roles.MEMBER, resource: Resources.ORGANIZATION, permissions: [Actions.CREATE] },
|
|
20
|
-
{ name: Roles.OWNER, resource: Resources.ORGANIZATION, permissions: [Actions.EDIT, Actions.DELETE] },
|
|
21
|
-
{ name: Roles.OWNER, resource: Resources.EVENT, permissions: [Actions.VIEW, Actions.CREATE, Actions.EDIT, Actions.DELETE] },
|
|
22
|
-
{ name: Roles.VISITOR, resource: Resources.ORGANIZATION, permissions: [Actions.VIEW] },
|
|
23
|
-
{ name: Roles.VISITOR, resource: Resources.EVENT, permissions: [Actions.VIEW] },
|
|
24
|
-
] as const;
|
|
25
|
-
|
|
26
|
-
export const authzConfig: AuthzConfig<typeof Actions, typeof Resources> = {
|
|
27
|
-
modelPath: '/user-code/backend/authz/model.conf',
|
|
28
|
-
policyPath: '/user-code/backend/authz/policy.csv',
|
|
29
|
-
policies: rolesPermissions.map(role => {
|
|
30
|
-
const roles: string[][]=[];
|
|
31
|
-
for (const permission of role.permissions) {
|
|
32
|
-
roles.push([ role.name, role.resource, permission ]);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
return roles;
|
|
36
|
-
}).flat(),
|
|
37
|
-
matchFunctions: {
|
|
38
|
-
getSubscriptionLevelValue: (subscription: Subscription, orgCount: number, action: Actions, resource: Resources) => {
|
|
39
|
-
if(subscription.limits.organizations <= orgCount && action === Actions.CREATE && resource === Resources.ORGANIZATION) return false;
|
|
40
|
-
|
|
41
|
-
return true;
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
actions: Actions,
|
|
45
|
-
resources: Resources,
|
|
46
|
-
} as const;
|
|
47
|
-
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BackendEnvironment } from 'backend/lib/config/model';
|
|
2
|
-
import { satisfies } from 'effect/Function';
|
|
3
|
-
|
|
4
|
-
export const environment = satisfies<BackendEnvironment>()({
|
|
5
|
-
development: process.env.SEGMENT === 'dev' ? true : false,
|
|
6
|
-
} as const);
|
|
7
|
-
|
|
8
|
-
export type Environment = typeof environment;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { BackendConfig } from 'backend/lib/config/model';
|
|
2
|
-
import { satisfies } from 'effect/Function';
|
|
3
|
-
import { config as publicConfig } from 'public/config';
|
|
4
|
-
import { LooseAutocomplete } from 'public/lib/models/helpers';
|
|
5
|
-
|
|
6
|
-
import { authzConfig } from './authz';
|
|
7
|
-
import { environment } from './env';
|
|
8
|
-
import { mailConfig } from './mail';
|
|
9
|
-
import { natsConfig } from './nats';
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export const config = satisfies<BackendConfig>()({
|
|
13
|
-
...publicConfig,
|
|
14
|
-
...environment,
|
|
15
|
-
authz: authzConfig,
|
|
16
|
-
mail: mailConfig,
|
|
17
|
-
nats: natsConfig,
|
|
18
|
-
development: process.env.SEGMENT === 'dev',
|
|
19
|
-
collections: ['organizations'],
|
|
20
|
-
secrets: [ 'jwtSecret', 'velo-sync', 'nats-creds', 'license-service-key', 'smtp-user', 'smtp-password' ],
|
|
21
|
-
|
|
22
|
-
} as const);
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
export type ConfigSchema = typeof config;
|
|
26
|
-
export type SecretNames = LooseAutocomplete<typeof config.secrets[number]>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { MailConfig } from 'backend/lib/config/model';
|
|
2
|
-
import { satisfies } from 'effect/Function';
|
|
3
|
-
|
|
4
|
-
export const mailConfig = satisfies<MailConfig>()({
|
|
5
|
-
dispatchMail: process.env.SEGMENT === 'dev'? 'gradlon@integral-systems.ch' : 'info@integrale-akademie.ch',
|
|
6
|
-
smtpServer: 'smtp.gmail.com',
|
|
7
|
-
smtpPort: 587,
|
|
8
|
-
smtpSecure: false,
|
|
9
|
-
smtpReplyTo: 'info@integrale-akademie.ch',
|
|
10
|
-
} as const);
|
|
File without changes
|
|
File without changes
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/naming-convention */
|
|
2
|
-
import { batchCheckUpdateState, clearStale, getImageUploadUrl, insertItemBatch, isAlive, saveItemBatch } from 'backend/lib/http-functions/sync';
|
|
3
|
-
import { WixHttpFunctionRequest } from 'wix-http-functions';
|
|
4
|
-
|
|
5
|
-
/**------------------------------------------------------------------------
|
|
6
|
-
** Health-Check endpoint
|
|
7
|
-
* This function are for Health-Check
|
|
8
|
-
* https://sunnyside-up.wixstudio.com/yeva/_functions/healthCheck
|
|
9
|
-
*------------------------------------------------------------------------**/
|
|
10
|
-
/**
|
|
11
|
-
* Handle the HealthCheck request
|
|
12
|
-
* @param request The request object
|
|
13
|
-
* @returns The response object
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
export function get_healthCheck(request: WixHttpFunctionRequest) {
|
|
17
|
-
return ok({ body: "I am alive 🦄!" });
|
|
18
|
-
}
|
|
19
|
-
/*--------------- END OF SECTION --------------*/
|
|
20
|
-
|
|
21
|
-
/**------------------------------------------------------------------------
|
|
22
|
-
** Velo-Sync endpoints
|
|
23
|
-
* This function are for the velo-sync functionality
|
|
24
|
-
* https://www.npmjs.com/package/velo-sync
|
|
25
|
-
*------------------------------------------------------------------------**/
|
|
26
|
-
/**
|
|
27
|
-
* Handle the isAlive request
|
|
28
|
-
* @param request The request object
|
|
29
|
-
* @returns The response object
|
|
30
|
-
*/
|
|
31
|
-
export async function post_isAlive(request: WixHttpFunctionRequest) {
|
|
32
|
-
return await isAlive(request);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Handle the insertItemBatch request
|
|
37
|
-
* @param request The request object
|
|
38
|
-
* @returns The response object
|
|
39
|
-
*/
|
|
40
|
-
export async function post_insertItemBatch(request: WixHttpFunctionRequest) {
|
|
41
|
-
|
|
42
|
-
return await insertItemBatch(request);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Handle the saveItemBatch request
|
|
47
|
-
* @param request The request object
|
|
48
|
-
* @returns The response object
|
|
49
|
-
*/
|
|
50
|
-
export async function post_saveItemBatch(request: WixHttpFunctionRequest) {
|
|
51
|
-
return await saveItemBatch(request);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Handle the clearStale request
|
|
56
|
-
* @param request The request object
|
|
57
|
-
* @returns The response object
|
|
58
|
-
*/
|
|
59
|
-
export async function post_clearStale(request: WixHttpFunctionRequest) {
|
|
60
|
-
return await clearStale(request);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Handle the batchCheckUpdateState request
|
|
65
|
-
* @param request The request object
|
|
66
|
-
* @returns The response object
|
|
67
|
-
*/
|
|
68
|
-
export async function post_batchCheckUpdateState(request: WixHttpFunctionRequest) {
|
|
69
|
-
return await batchCheckUpdateState(request);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Handle the getImageUploadUrl request
|
|
74
|
-
* @param request The request object
|
|
75
|
-
* @returns The response object
|
|
76
|
-
*/
|
|
77
|
-
export async function post_getImageUploadUrl(request: WixHttpFunctionRequest) {
|
|
78
|
-
return await getImageUploadUrl(request);
|
|
79
|
-
}
|
|
80
|
-
/*--------------- END OF SECTION --------------*/
|
|
81
|
-
|