diff --git a/.eslintrc.json b/.eslintrc.json index e8fd995..62a2ad6 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -24,13 +24,19 @@ }, { "files": ["*.ts", "*.tsx"], - "extends": ["plugin:@nx/typescript"], - "rules": {} + "extends": ["plugin:@nx/typescript", "prettier"], + "rules": { + "@typescript-eslint/no-extra-semi": "error", + "no-extra-semi": "off" + } }, { "files": ["*.js", "*.jsx"], - "extends": ["plugin:@nx/javascript"], - "rules": {} + "extends": ["plugin:@nx/javascript", "prettier"], + "rules": { + "@typescript-eslint/no-extra-semi": "error", + "no-extra-semi": "off" + } } ] } diff --git a/.gitignore b/.gitignore index 5a0f8cd..6a212a8 100644 --- a/.gitignore +++ b/.gitignore @@ -52,4 +52,5 @@ firebase-debug.log !.yarn/sdks !.yarn/versions -.nx/cache \ No newline at end of file +.nx/cache +.nx/workspace-data \ No newline at end of file diff --git a/.prettierignore b/.prettierignore index adf7fc6..2516005 100644 --- a/.prettierignore +++ b/.prettierignore @@ -16,3 +16,5 @@ /.nx/cache .angular + +/.nx/workspace-data \ No newline at end of file diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index e97ea1b..0000000 --- a/.prettierrc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "tabWidth": 2, - "useTabs": false, - "singleQuote": true -} diff --git a/.vscode/settings.json b/.vscode/settings.json index 62c9a0b..2417382 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -25,5 +25,6 @@ }, "editor.formatOnSave": false }, - "editor.fontLigatures": true + "editor.fontLigatures": true, + "prettier.configPath": ".prettierrc.json" } diff --git a/.yarn/install-state.gz b/.yarn/install-state.gz index 87c0a25..af40310 100644 Binary files a/.yarn/install-state.gz and b/.yarn/install-state.gz differ diff --git a/apps/estrai.me/jest.config.ts b/apps/estrai.me/jest.config.ts index 4ba4985..b3c36f2 100644 --- a/apps/estrai.me/jest.config.ts +++ b/apps/estrai.me/jest.config.ts @@ -24,7 +24,5 @@ export default { 'jest-preset-angular/build/serializers/ng-snapshot', 'jest-preset-angular/build/serializers/html-comment', ], - transformIgnorePatterns: [ - `node_modules/(?!@angular|@ngneat/spectator|array-move|lodash-es)`, - ], + transformIgnorePatterns: [`node_modules/(?!@angular|@ngneat/spectator|array-move|lodash-es)`], }; diff --git a/apps/estrai.me/project.json b/apps/estrai.me/project.json index 768b396..592430e 100644 --- a/apps/estrai.me/project.json +++ b/apps/estrai.me/project.json @@ -19,10 +19,7 @@ "polyfills": ["zone.js"], "tsConfig": "apps/estrai.me/tsconfig.app.json", "inlineStyleLanguage": "scss", - "assets": [ - "apps/estrai.me/src/favicon.ico", - "apps/estrai.me/src/assets" - ], + "assets": ["apps/estrai.me/src/favicon.ico", "apps/estrai.me/src/assets"], "styles": ["apps/estrai.me/src/styles.scss"], "scripts": [] }, diff --git a/apps/estrai.me/src/app/app.config.ts b/apps/estrai.me/src/app/app.config.ts index 168f68f..c3b3e2d 100644 --- a/apps/estrai.me/src/app/app.config.ts +++ b/apps/estrai.me/src/app/app.config.ts @@ -1,10 +1,6 @@ -import { ApplicationConfig, importProvidersFrom } from '@angular/core'; +import { ApplicationConfig } from '@angular/core'; import { FIREBASE_OPTIONS } from '@angular/fire/compat'; -import { - PreloadAllModules, - provideRouter, - withPreloading, -} from '@angular/router'; +import { PreloadAllModules, provideRouter, withPreloading } from '@angular/router'; import { APP_ROUTES } from './app.routes'; import { AuthService, ProfileService, UserService } from '@data-access'; import { initializeApp, provideFirebaseApp } from '@angular/fire/app'; @@ -17,16 +13,16 @@ export const appConfig: ApplicationConfig = { providers: [ provideRouter( APP_ROUTES, - withPreloading(PreloadAllModules), + withPreloading(PreloadAllModules) // withDebugTracing(), ), - importProvidersFrom( - provideFirebaseApp(() => initializeApp(environment.firebase)), - ), + provideFirebaseApp(() => initializeApp(environment.firebase)), { provide: FIREBASE_OPTIONS, useValue: environment.firebase }, - importProvidersFrom(provideFirestore(() => getFirestore())), - importProvidersFrom(provideAuth(() => getAuth())), - importProvidersFrom(provideAnalytics(() => getAnalytics())), - importProvidersFrom(AuthService, ProfileService, UserService), + provideFirestore(() => getFirestore()), + provideAuth(() => getAuth()), + provideAnalytics(() => getAnalytics()), + AuthService, + ProfileService, + UserService, ], }; diff --git a/apps/estrai.me/src/app/app.routes.ts b/apps/estrai.me/src/app/app.routes.ts index f1639f7..b3448c8 100644 --- a/apps/estrai.me/src/app/app.routes.ts +++ b/apps/estrai.me/src/app/app.routes.ts @@ -14,34 +14,27 @@ export const APP_ROUTES: Routes = [ }, { path: 'about', - loadComponent: () => - import('./pages/about/about.component').then((m) => m.AboutComponent), + loadComponent: () => import('./pages/about/about.component').then(m => m.AboutComponent), }, { path: 'privacy', - loadComponent: () => - import('./pages/privacy/privacy.component').then( - (m) => m.PrivacyComponent, - ), + loadComponent: () => import('./pages/privacy/privacy.component').then(m => m.PrivacyComponent), }, { path: 'unauthorized', - loadComponent: () => - import('./pages/unauthorized/unauthorized.component').then( - (m) => m.UnauthorizedComponent, - ), + loadComponent: () => import('./pages/unauthorized/unauthorized.component').then(m => m.UnauthorizedComponent), }, { path: 'profile', - loadComponent: () => import('@profile').then((m) => m.ProfileComponent), + loadComponent: () => import('@profile').then(m => m.ProfileComponent), canActivate: [AngularFireAuthGuard], }, { path: 'auth', - loadChildren: () => import('@auth').then((m) => m.AUTH_ROUTES), + loadChildren: () => import('@auth').then(m => m.AUTH_ROUTES), }, { path: 'game', - loadChildren: () => import('@game').then((m) => m.GAME_ROUTES), + loadChildren: () => import('@game').then(m => m.GAME_ROUTES), }, ]; diff --git a/apps/estrai.me/src/app/pages/about/about.component.ts b/apps/estrai.me/src/app/pages/about/about.component.ts index 03a98c6..831b3a8 100644 --- a/apps/estrai.me/src/app/pages/about/about.component.ts +++ b/apps/estrai.me/src/app/pages/about/about.component.ts @@ -8,19 +8,16 @@ import { CommonModule } from '@angular/common'; template: `
- Raffle games are an exciting way to bring an extra element of fun - to your events. An online raffle game is a great tool for - increasing engagement and driving donations. With ESTRAI.me, you - can easily create a unique and memorable experience. + Raffle games are an exciting way to bring an extra element of fun to your events. An online raffle game is + a great tool for increasing engagement and driving donations. With ESTRAI.me, you can easily create a + unique and memorable experience.
- ESTRAI.me give to you the ability to host an in person raffle - game. What you need is to login and create your event. Once you’ve - registered your event, you’ll be able to create a custom raffle - where participants can join and take free tickets to enter. Once - the tickets are purchased, participants can then enter the raffle. - The winner will be chosen at random and will be announced directly - on the ESTRAI.me page. + ESTRAI.me give to you the ability to host an in person raffle game. What you need is to login and create + your event. Once you’ve registered your event, you’ll be able to create a custom raffle where participants + can join and take free tickets to enter. Once the tickets are purchased, participants can then enter the + raffle. The winner will be chosen at random and will be announced directly on the ESTRAI.me page.
- An online raffle game is a great way to engage your audience and - increase interaction and networking. It’s a fun and interactive - way to draw while. It’s also relatively easy to set up and manage, - allowing you to focus on other aspects of your event. Plus, since - tickets can be assigned electronically, it’s a great way improve - your event spend more time on engaging people for your event in - person. + An online raffle game is a great way to engage your audience and increase interaction and networking. It’s + a fun and interactive way to draw while. It’s also relatively easy to set up and manage, allowing you to + focus on other aspects of your event. Plus, since tickets can be assigned electronically, it’s a great way + improve your event spend more time on engaging people for your event in person.
- This online raffle game is provided as a free service and without - any warranty of any kind. The game is provided without any - guarantee of results or accuracy. We assume no responsibility or - liability for any loss or damage incurred as a result of - participating in this game. All participants must comply with all + This online raffle game is provided as a free service and without any warranty of any kind. The game is + provided without any guarantee of results or accuracy. We assume no responsibility or liability for any + loss or damage incurred as a result of participating in this game. All participants must comply with all applicable laws and regulations.
- ESTRAI.me is a great way to add an extra layer of fun and - excitement to your event. It’s an easy way to engage your - audience, and create a memorable experience. + ESTRAI.me is a great way to add an extra layer of fun and excitement to your event. It’s an easy way to + engage your audience, and create a memorable experience.
- Easy to create and manage your raffle in a second. -
+Easy to create and manage your raffle in a second.
-- Just log-in and create your game, it's totally free and really - fast! Less than a minute to create a new game and let people join - to the game! + Just log-in and create your game, it's totally free and really fast! Less than a minute to create a new + game and let people join to the game!
+ class="inline-flex p-2 text-red-500 capitalize transition-colors duration-200 transform bg-red-100 rounded-full dark:bg-red-500 dark:text-white hover:underline hover:text-red-600 dark:hover:text-red-500">- Even if you hosting your event or an online event.. if you want to - engage people with a give away... You can do it with estrai.me. + Even if you hosting your event or an online event.. if you want to engage people with a give away... You + can do it with estrai.me.
+ class="inline-flex p-2 text-red-500 capitalize transition-colors duration-200 transform bg-red-100 rounded-full dark:bg-red-500 dark:text-white hover:underline hover:text-red-600 dark:hover:text-red-500">- Using a realtime feature for the game, people will updated - realtime when they win! + Using a realtime feature for the game, people will updated realtime when they win!
+ class="inline-flex p-2 text-red-500 capitalize transition-colors duration-200 transform bg-red-100 rounded-full dark:bg-red-500 dark:text-white hover:underline hover:text-red-600 dark:hover:text-red-500">Estrai.me is simple to use and allows to assign price randomly.
-- Play for free! -
-Play for free!
+- Follow the project, share your feedback and if you are confident - with coding, contribute to add more features and cool things to the - application! + Follow the project, share your feedback and if you are confident with coding, contribute to add more + features and cool things to the application!