lucy-cli 2.0.0-beta.11 → 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/Default[B]/files/.cursorignore +0 -4
- package/files/templates/Default[B]/files/.stylelintrc.js +0 -8
- package/files/templates/Default[B]/lucy.json +0 -9
- package/files/templates/Default[C]/files/.cursorignore +0 -4
- package/files/templates/Default[C]/files/.env +0 -1
- package/files/templates/Default[C]/files/Cargo.toml +0 -238
- package/files/templates/Default[C]/files/Makefile.toml +0 -4
- package/files/templates/Default[C]/files/build/main.rs +0 -35
- package/files/templates/Default[C]/files/config/beta.json +0 -19
- package/files/templates/Default[C]/files/config/ci.json +0 -15
- package/files/templates/Default[C]/files/config/default.json +0 -71
- package/files/templates/Default[C]/files/config/development.json +0 -10
- package/files/templates/Default[C]/files/config/produktion.json +0 -5
- package/files/templates/Default[C]/files/config/stage.json +0 -4
- package/files/templates/Default[C]/files/locales/todo.yml +0 -3
- package/files/templates/Default[C]/files/public/index.html +0 -1
- package/files/templates/Default[C]/lucy.json +0 -15
- package/files/templates/Default[E]/files/.cursorignore +0 -4
- package/files/templates/Default[E]/files/.nvmrc +0 -1
- package/files/templates/Default[E]/files/.prettierignore +0 -23
- package/files/templates/Default[E]/files/.prettierrc.js +0 -16
- package/files/templates/Default[E]/files/.stylelintrc.js +0 -8
- package/files/templates/Default[E]/files/.yarnrc +0 -1
- package/files/templates/Default[E]/files/.yarnrc.yml +0 -3
- package/files/templates/Default[E]/files/README.md +0 -45
- package/files/templates/Default[E]/files/app.config.ts +0 -69
- package/files/templates/Default[E]/files/assets/fonts/SpaceMono-Regular.ttf +0 -0
- package/files/templates/Default[E]/files/assets/images/adaptive-icon.png +0 -0
- package/files/templates/Default[E]/files/assets/images/favicon.png +0 -0
- package/files/templates/Default[E]/files/assets/images/icon.png +0 -0
- package/files/templates/Default[E]/files/assets/images/splash-icon.png +0 -0
- package/files/templates/Default[E]/files/babel.config.js +0 -10
- package/files/templates/Default[E]/files/components/.gitkeep +0 -0
- package/files/templates/Default[E]/files/components/ui/.gitkeep +0 -0
- package/files/templates/Default[E]/files/constants/theme.ts +0 -18
- package/files/templates/Default[E]/files/eas.json +0 -32
- package/files/templates/Default[E]/files/eslint.config.mjs +0 -181
- package/files/templates/Default[E]/files/global.css +0 -47
- package/files/templates/Default[E]/files/hooks/useColorScheme.ts +0 -17
- package/files/templates/Default[E]/files/index.ts +0 -11
- package/files/templates/Default[E]/files/lib/data.ts +0 -197
- package/files/templates/Default[E]/files/lib/utils/index.ts +0 -11
- package/files/templates/Default[E]/files/lib/utils/polyfills.ts +0 -29
- package/files/templates/Default[E]/files/lib/wix/client.ts +0 -12
- package/files/templates/Default[E]/files/lib/wix/error.ts +0 -3
- package/files/templates/Default[E]/files/lib/wix/index.ts +0 -2
- package/files/templates/Default[E]/files/metro.config.js +0 -63
- package/files/templates/Default[E]/files/nativewind-env.d.ts +0 -1
- package/files/templates/Default[E]/files/pnpm-workspace.yaml +0 -3
- package/files/templates/Default[E]/files/scripts/reset-project.ts +0 -116
- package/files/templates/Default[E]/files/tailwind.config.js +0 -63
- package/files/templates/Default[E]/files/tsconfig.json +0 -46
- package/files/templates/Default[E]/files/types/reset.d.ts +0 -1
- package/files/templates/Default[E]/lucy.json +0 -86
- package/files/templates/Default[M]/files/.cursorignore +0 -4
- package/files/templates/Default[M]/files/.editorconfig +0 -10
- package/files/templates/Default[M]/files/.nvmrc +0 -1
- package/files/templates/Default[M]/files/.prettierignore +0 -23
- package/files/templates/Default[M]/files/.prettierrc.json +0 -15
- package/files/templates/Default[M]/files/.stylelintrc.js +0 -8
- package/files/templates/Default[M]/files/.yarnrc +0 -1
- package/files/templates/Default[M]/files/.yarnrc.yml +0 -3
- package/files/templates/Default[M]/files/README.md +0 -109
- package/files/templates/Default[M]/files/currents.config.ts +0 -5
- package/files/templates/Default[M]/files/nx.json +0 -25
- package/files/templates/Default[M]/files/pnpm-workspace.yaml +0 -11
- package/files/templates/Default[M]/files/tsconfig.json +0 -6
- package/files/templates/Default[M]/files/typedoc.json +0 -25
- package/files/templates/Default[M]/files/vitest.config.ts +0 -27
- package/files/templates/Default[M]/lucy.json +0 -69
- package/files/templates/Default[T]/files/.cursorignore +0 -4
- package/files/templates/Default[T]/lucy.json +0 -9
- package/files/templates/expo verse[E]/files/.nvmrc +0 -1
- package/files/templates/expo verse[E]/files/.prettierignore +0 -23
- package/files/templates/expo verse[E]/files/.prettierrc.js +0 -16
- package/files/templates/expo verse[E]/files/.stylelintrc.json +0 -8
- package/files/templates/expo verse[E]/files/.vscode/extensions.json +0 -10
- package/files/templates/expo verse[E]/files/.vscode/launch.json +0 -54
- package/files/templates/expo verse[E]/files/.vscode/settings.json +0 -30
- package/files/templates/expo verse[E]/files/.vscode/tasks.json +0 -0
- package/files/templates/expo verse[E]/files/.yarnrc +0 -1
- package/files/templates/expo verse[E]/files/.yarnrc.yml +0 -8
- package/files/templates/expo verse[E]/files/App.tsx +0 -63
- package/files/templates/expo verse[E]/files/DEBUGGING.md +0 -126
- package/files/templates/expo verse[E]/files/README.md +0 -45
- package/files/templates/expo verse[E]/files/android/app/build.gradle +0 -177
- package/files/templates/expo verse[E]/files/android/app/debug.keystore +0 -0
- package/files/templates/expo verse[E]/files/android/app/proguard-rules.pro +0 -14
- package/files/templates/expo verse[E]/files/android/app/src/debug/AndroidManifest.xml +0 -7
- package/files/templates/expo verse[E]/files/android/app/src/main/AndroidManifest.xml +0 -33
- package/files/templates/expo verse[E]/files/android/app/src/main/java/so/sunnysideup/daily_verse/MainActivity.kt +0 -65
- package/files/templates/expo verse[E]/files/android/app/src/main/java/so/sunnysideup/daily_verse/MainApplication.kt +0 -57
- package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable/ic_launcher_background.xml +0 -6
- package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -37
- package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-hdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-mdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-night-hdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-night-mdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-night-xhdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-night-xxhdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-night-xxxhdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-xhdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-xxhdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-xxxhdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +0 -6
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +0 -6
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/values/colors.xml +0 -6
- package/files/templates/expo verse[E]/files/android/app/src/main/res/values/strings.xml +0 -7
- package/files/templates/expo verse[E]/files/android/app/src/main/res/values/styles.xml +0 -12
- package/files/templates/expo verse[E]/files/android/app/src/main/res/values-night/colors.xml +0 -3
- package/files/templates/expo verse[E]/files/android/build.gradle +0 -37
- package/files/templates/expo verse[E]/files/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/files/templates/expo verse[E]/files/android/gradle/wrapper/gradle-wrapper.properties +0 -7
- package/files/templates/expo verse[E]/files/android/gradle.properties +0 -59
- package/files/templates/expo verse[E]/files/android/gradlew +0 -251
- package/files/templates/expo verse[E]/files/android/gradlew.bat +0 -94
- package/files/templates/expo verse[E]/files/android/settings.gradle +0 -39
- package/files/templates/expo verse[E]/files/app.config.ts +0 -77
- package/files/templates/expo verse[E]/files/assets/data/de.csv +0 -949
- package/files/templates/expo verse[E]/files/assets/data/en.csv +0 -949
- package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-Black.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-BlackItalic.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-Bold.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-BoldItalic.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-ExtraBold.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-ExtraBoldItalic.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-Italic.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-Medium.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-MediumItalic.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-Regular.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-SemiBold.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-SemiBoldItalic.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/fonts/SpaceMono-Regular.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/images/andorid/background.png +0 -0
- package/files/templates/expo verse[E]/files/assets/images/android-dark.png +0 -0
- package/files/templates/expo verse[E]/files/assets/images/android-light.png +0 -0
- package/files/templates/expo verse[E]/files/assets/images/background.png +0 -0
- package/files/templates/expo verse[E]/files/assets/images/ios-dark.png +0 -0
- package/files/templates/expo verse[E]/files/assets/images/ios-light.png +0 -0
- package/files/templates/expo verse[E]/files/assets/images/ios-tinted.png +0 -0
- package/files/templates/expo verse[E]/files/assets/images/splash-icon-dark.png +0 -0
- package/files/templates/expo verse[E]/files/assets/images/splash-icon-light.png +0 -0
- package/files/templates/expo verse[E]/files/babel.config.js +0 -10
- package/files/templates/expo verse[E]/files/components/.gitkeep +0 -0
- package/files/templates/expo verse[E]/files/components/MainScreen.tsx +0 -299
- package/files/templates/expo verse[E]/files/components/Share.tsx +0 -132
- package/files/templates/expo verse[E]/files/components/ui/.gitkeep +0 -0
- package/files/templates/expo verse[E]/files/components/ui/dev.tsx +0 -48
- package/files/templates/expo verse[E]/files/constants/config.ts +0 -30
- package/files/templates/expo verse[E]/files/constants/theme.ts +0 -18
- package/files/templates/expo verse[E]/files/data/de.csv +0 -219
- package/files/templates/expo verse[E]/files/data/en.csv +0 -219
- package/files/templates/expo verse[E]/files/data/version.json +0 -4
- package/files/templates/expo verse[E]/files/eas.json +0 -47
- package/files/templates/expo verse[E]/files/eslint.config.mjs +0 -185
- package/files/templates/expo verse[E]/files/global.css +0 -47
- package/files/templates/expo verse[E]/files/hooks/useColorScheme.ts +0 -17
- package/files/templates/expo verse[E]/files/index.ts +0 -28
- package/files/templates/expo verse[E]/files/lib/content.ts +0 -31
- package/files/templates/expo verse[E]/files/lib/data.ts +0 -180
- package/files/templates/expo verse[E]/files/lib/helper.ts +0 -54
- package/files/templates/expo verse[E]/files/lib/index.ts +0 -21
- package/files/templates/expo verse[E]/files/lib/state.ts +0 -128
- package/files/templates/expo verse[E]/files/lib/storage.ts +0 -17
- package/files/templates/expo verse[E]/files/lib/taskManager/index.ts +0 -38
- package/files/templates/expo verse[E]/files/lib/taskManager/loadData.ts +0 -14
- package/files/templates/expo verse[E]/files/lib/utils/index.ts +0 -11
- package/files/templates/expo verse[E]/files/lib/utils/polyfills.ts +0 -29
- package/files/templates/expo verse[E]/files/lib/utils/screenshot.ts +0 -77
- package/files/templates/expo verse[E]/files/lucy.json +0 -8
- package/files/templates/expo verse[E]/files/metro.config.js +0 -81
- package/files/templates/expo verse[E]/files/models/index.ts +0 -28
- package/files/templates/expo verse[E]/files/nativewind-env.d.ts +0 -1
- package/files/templates/expo verse[E]/files/package.json +0 -102
- package/files/templates/expo verse[E]/files/pnpm-workspace.yaml +0 -3
- package/files/templates/expo verse[E]/files/scripts/convert-verses.ts +0 -309
- package/files/templates/expo verse[E]/files/scripts/move-artifacts.ts +0 -83
- package/files/templates/expo verse[E]/files/scripts/reset-project.ts +0 -116
- package/files/templates/expo verse[E]/files/tailwind.config.js +0 -63
- package/files/templates/expo verse[E]/files/tsconfig.json +0 -45
- package/files/templates/expo verse[E]/files/types/index.ts +0 -4
- package/files/templates/expo verse[E]/files/types/reset.d.ts +0 -1
- package/files/templates/expo verse[E]/lucy.json +0 -86
- 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 -147
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"modules": {},
|
|
3
|
-
"devDependencies": {
|
|
4
|
-
"tailwindcss": "^3.4.17",
|
|
5
|
-
"prettier-plugin-tailwindcss": "^0.5.11",
|
|
6
|
-
"@styled/typescript-styled-plugin": "",
|
|
7
|
-
"typescript-eslint-language-service": "",
|
|
8
|
-
"eslint-config-prettier": "",
|
|
9
|
-
"eslint-plugin-jsdoc": "",
|
|
10
|
-
"eslint-plugin-named-import-spacing": "",
|
|
11
|
-
"eslint-plugin-only-warn": "",
|
|
12
|
-
"eslint-plugin-react": "",
|
|
13
|
-
"eslint-plugin-react-hooks": "",
|
|
14
|
-
"eslint-plugin-simple-import-sort": "",
|
|
15
|
-
"@next/eslint-plugin-next": "",
|
|
16
|
-
"@stylelint/postcss-css-in-js": "",
|
|
17
|
-
"@typescript-eslint/parser": "",
|
|
18
|
-
"typescript-eslint": "",
|
|
19
|
-
"@total-typescript/ts-reset": "",
|
|
20
|
-
"expo-doctor": "",
|
|
21
|
-
"tsx": ""
|
|
22
|
-
},
|
|
23
|
-
"dependencies": {
|
|
24
|
-
"nativewind": "",
|
|
25
|
-
"react-native-reanimated": "~3.17.4",
|
|
26
|
-
"react-native-safe-area-context": "5.4.0",
|
|
27
|
-
"@wix/sdk": "1.15.24",
|
|
28
|
-
"@wix/data": "",
|
|
29
|
-
"expo-standard-web-crypto": "",
|
|
30
|
-
"effect": "",
|
|
31
|
-
"node-libs-react-native": "",
|
|
32
|
-
"util": "",
|
|
33
|
-
"events": "",
|
|
34
|
-
"tailwindcss-animate": "",
|
|
35
|
-
"papaparse": ""
|
|
36
|
-
},
|
|
37
|
-
"additionalCommands": [
|
|
38
|
-
[
|
|
39
|
-
"npx",
|
|
40
|
-
"expo",
|
|
41
|
-
"install",
|
|
42
|
-
"tailwindcss-animate",
|
|
43
|
-
"class-variance-authority",
|
|
44
|
-
"clsx",
|
|
45
|
-
"tailwind-merge",
|
|
46
|
-
"expo-crypto",
|
|
47
|
-
"react-dom",
|
|
48
|
-
"react-native-web",
|
|
49
|
-
"@expo/metro-runtime",
|
|
50
|
-
"expo-system-ui",
|
|
51
|
-
"expo-localization",
|
|
52
|
-
"expo-file-system",
|
|
53
|
-
"expo-asset"
|
|
54
|
-
]
|
|
55
|
-
],
|
|
56
|
-
"scripts": {
|
|
57
|
-
"dev": "expo start",
|
|
58
|
-
"start": "expo start",
|
|
59
|
-
"android": "expo start --android",
|
|
60
|
-
"ios": "expo start --ios",
|
|
61
|
-
"web": "expo start --web",
|
|
62
|
-
"reset": "tsx ./scripts/reset-project.ts",
|
|
63
|
-
"format": "prettier --write \"./*.json\" \"**/*.{ts,tsx,md,json,jsonc,json5}\"",
|
|
64
|
-
"prebuild": "expo prebuild",
|
|
65
|
-
"pods": "npx pod-install",
|
|
66
|
-
"build:dev": "eas build --local --profile development",
|
|
67
|
-
"build:sim": "eas build --local --profile ios-simulator",
|
|
68
|
-
"build:prev": "eas build --local --profile preview",
|
|
69
|
-
"build:prod": "eas build --local --profile production",
|
|
70
|
-
"build:web": "expo export --platform web",
|
|
71
|
-
"doctor": "expo-doctor",
|
|
72
|
-
"eas-build-pre-install": "corepack enable && yarn set version 4"
|
|
73
|
-
},
|
|
74
|
-
"initialized": false,
|
|
75
|
-
"type": "expo",
|
|
76
|
-
"packageManager": "pnpm",
|
|
77
|
-
"additionalPkgProps": {
|
|
78
|
-
"expo": {
|
|
79
|
-
"doctor": {
|
|
80
|
-
"reactNativeDirectoryCheck": {
|
|
81
|
-
"listUnknownPackages": false
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
File without changes
|
|
@@ -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,5 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
projectId: '__ProjectName__', // the projectId, can be any values for sorry-cypress users
|
|
3
|
-
recordKey: '__ProjectName__', // the record key, can be any value for sorry-cypress users
|
|
4
|
-
cloudServiceUrl: 'http://some-e2e.ch:1234', // Sorry Cypress users - set the director service URL
|
|
5
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
describe('Basic E2E Test', () => {
|
|
3
|
-
const currentDate = new Date();
|
|
4
|
-
const formattedDate = currentDate.toISOString().split('T')[0];
|
|
5
|
-
const formattedTime = currentDate.toTimeString().split(' ')[0].replace(/:/g, '-');
|
|
6
|
-
|
|
7
|
-
it('passes', () => {
|
|
8
|
-
cy.visit('/');
|
|
9
|
-
cy.get('#comp-m3blk8zj_r_comp-m3ta27x7').should('be.visible');
|
|
10
|
-
cy.screenshot(`loaded_${formattedDate}_${formattedTime}`);
|
|
11
|
-
});
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/// <reference types="cypress" />
|
|
2
|
-
// ***********************************************
|
|
3
|
-
// This example commands.ts shows you how to
|
|
4
|
-
// create various custom commands and overwrite
|
|
5
|
-
// existing commands.
|
|
6
|
-
//
|
|
7
|
-
// For more comprehensive examples of custom
|
|
8
|
-
// commands please read more here:
|
|
9
|
-
// https://on.cypress.io/custom-commands
|
|
10
|
-
// ***********************************************
|
|
11
|
-
//
|
|
12
|
-
//
|
|
13
|
-
// -- This is a parent command --
|
|
14
|
-
// Cypress.Commands.add('login', (email, password) => { ... })
|
|
15
|
-
//
|
|
16
|
-
//
|
|
17
|
-
// -- This is a child command --
|
|
18
|
-
// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
|
|
19
|
-
//
|
|
20
|
-
//
|
|
21
|
-
// -- This is a dual command --
|
|
22
|
-
// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
|
|
23
|
-
//
|
|
24
|
-
//
|
|
25
|
-
// -- This will overwrite an existing command --
|
|
26
|
-
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
|
|
27
|
-
//
|
|
28
|
-
// declare global {
|
|
29
|
-
// namespace Cypress {
|
|
30
|
-
// interface Chainable {
|
|
31
|
-
// login(email: string, password: string): Chainable<void>
|
|
32
|
-
// drag(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
|
|
33
|
-
// dismiss(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
|
|
34
|
-
// visit(originalFn: CommandOriginalFn, url: string, options: Partial<VisitOptions>): Chainable<Element>
|
|
35
|
-
// }
|
|
36
|
-
// }
|
|
37
|
-
// }
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
// ***********************************************************
|
|
2
|
-
// This example support/e2e.ts is processed and
|
|
3
|
-
// loaded automatically before your test files.
|
|
4
|
-
//
|
|
5
|
-
// This is a great place to put global configuration and
|
|
6
|
-
// behavior that modifies Cypress.
|
|
7
|
-
//
|
|
8
|
-
// You can change the location of this file or turn off
|
|
9
|
-
// automatically serving support files with the
|
|
10
|
-
// 'supportFile' configuration option.
|
|
11
|
-
//
|
|
12
|
-
// You can read more here:
|
|
13
|
-
// https://on.cypress.io/configuration
|
|
14
|
-
// ***********************************************************
|
|
15
|
-
|
|
16
|
-
// Import commands.js using ES2015 syntax:
|
|
17
|
-
import './commands';
|
|
18
|
-
|
|
19
|
-
// before(() => {
|
|
20
|
-
// // Set the base URL for your application
|
|
21
|
-
// cy.visit('https://www.zikade.ch');
|
|
22
|
-
// });
|
|
23
|
-
// Alternatively you can use CommonJS syntax:
|
|
24
|
-
// require('./commands')
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'cypress';
|
|
2
|
-
import { cloudPlugin } from 'cypress-cloud/plugin';
|
|
3
|
-
|
|
4
|
-
export default defineConfig({
|
|
5
|
-
videoCompression: 15,
|
|
6
|
-
chromeWebSecurity: true,
|
|
7
|
-
pageLoadTimeout: 120000,
|
|
8
|
-
defaultCommandTimeout: 10000,
|
|
9
|
-
retries: {
|
|
10
|
-
runMode: 0,
|
|
11
|
-
openMode: 0,
|
|
12
|
-
},
|
|
13
|
-
e2e: {
|
|
14
|
-
baseUrl: 'https://www.heise.de/',
|
|
15
|
-
setupNodeEvents(on, config) {
|
|
16
|
-
return cloudPlugin(on, config);
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
});
|
|
@@ -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
|