Skip to content

Commit

Permalink
Update dependencies, upload v2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
l00pinfinity committed Nov 4, 2023
1 parent 53173d1 commit 733ba00
Show file tree
Hide file tree
Showing 10 changed files with 6,377 additions and 5,618 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cd devvscape
2. Install the dependencies:

```yaml
npm install
npm install --force
```

3. Configure Firebase:
Expand Down
11,943 changes: 6,336 additions & 5,607 deletions package-lock.json

Large diffs are not rendered by default.

13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@angular/localize": "^14.3.0",
"@angular/platform-browser": "^14.0.0",
"@angular/platform-browser-dynamic": "^14.0.0",
"@angular/pwa": "^0.5.3",
"@angular/pwa": "^16.2.9",
"@angular/router": "^14.0.0",
"@awesome-cordova-plugins/admob": "^6.4.0",
"@awesome-cordova-plugins/android-permissions": "^6.4.0",
Expand All @@ -29,7 +29,7 @@
"@capacitor-community/http": "^1.4.1",
"@capacitor/android": "^4.3.0",
"@capacitor/app": "4.0.1",
"@capacitor/core": "4.3.0",
"@capacitor/core": "^4.8.1",
"@capacitor/haptics": "4.0.1",
"@capacitor/keyboard": "4.0.1",
"@capacitor/push-notifications": "^4.1.2",
Expand All @@ -43,9 +43,10 @@
"cordova-play-services-version-adapter": "^1.1.0",
"cordova-plugin-android-permissions": "^1.1.5",
"cordova-plugin-inappbrowser": "^5.0.0",
"firebase": "^9.8.3",
"firebase": "^9.23.0",
"ionicons": "^6.0.3",
"ngx-online-status": "^2.0.0",
"rxfire": "^6.0.3",
"rxjs": "~6.6.0",
"tslib": "^2.2.0",
"uuid": "^9.0.1",
Expand All @@ -55,17 +56,17 @@
"@angular-devkit/build-angular": "^14.0.0",
"@angular-devkit/core": "^14.0.0",
"@angular-devkit/schematics": "^14.0.0",
"@angular-eslint/builder": "~13.0.1",
"@angular-eslint/builder": "^16.2.0",
"@angular-eslint/eslint-plugin": "~13.0.1",
"@angular-eslint/eslint-plugin-template": "~13.0.1",
"@angular-eslint/template-parser": "~13.0.1",
"@angular/cli": "^14.0.0",
"@angular/compiler": "^14.0.0",
"@angular/compiler-cli": "^14.0.0",
"@angular/language-service": "^14.0.0",
"@capacitor/cli": "4.3.0",
"@capacitor/cli": "^4.8.1",
"@ionic/angular-toolkit": "^6.0.0",
"@nrwl/angular": "15.9.3",
"@nrwl/angular": "^15.9.7",
"@nrwl/nx-cloud": "latest",
"@nrwl/workspace": "15.9.3",
"@schematics/angular": "^14.0.0",
Expand Down
4 changes: 4 additions & 0 deletions src/app/components/home/home.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ <h2 class="section-header">{{welcomeMessage}}</h2>
<app-image *ngFor="let image of images; trackBy: trackImage" [image]="image"></app-image>
</ion-list>

<ion-infinite-scroll>
<ion-infinite-scroll-content></ion-infinite-scroll-content>
</ion-infinite-scroll>

<ion-modal
#modal
trigger="open-modal"
Expand Down
5 changes: 5 additions & 0 deletions src/app/components/home/home.page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ ion-button.close-button {
font-size: 16px;
}

cdk-virtual-scroll-viewport {
height: 100%;
width: 100%;
}

.error {
display: flex;
flex-direction: column;
Expand Down
13 changes: 13 additions & 0 deletions src/app/components/home/home.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,19 @@ export class HomePage implements OnInit, OnDestroy {
return image.id;
}

// async onIonInfinite(event: CustomEvent) {
// this.currentPage++;

// await this.fetchImagesPage(this.currentPage);

// event.target.complete();

// if (!this.hasMoreData) {
// event.target.disabled = true;
// }
// }


openImage(selectedImage: any): void {
//console.log(selectedImage);
// Open the selected image in the ImageDetailComponent or navigate to a new route
Expand Down
6 changes: 5 additions & 1 deletion src/app/components/settings/settings.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ export class SettingsPage implements OnInit {
await this.authService.closeAccount();
this.router.navigateByUrl('signup')
} catch (error) {
console.error('Error deleting account:', error);
if(error.code = 'auth/requires-recent-login'){
this.handleError('Deleting your account requires you to have logged in recently. Please log in and try again.');
}else{
this.handleError('Error deleting account:', error);
}
}
} else {
await this.handleError(
Expand Down
1 change: 1 addition & 0 deletions src/app/core/services/image.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ export class ImageService {
throw new Error('Unable to fetch image posts');
}
}


async getImagePostById(id: string): Promise<Image | null> {
try {
Expand Down
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<title>CodeHumor</title>
<title>Devvscape | CodeHumor</title>

<base href="/" />

Expand Down
6 changes: 4 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
"experimentalDecorators": true,
"moduleResolution": "node",
"importHelpers": true,
"target": "es2020",
"target": "es2015",
"module": "es2020",
"lib": ["es2018", "dom"]
"strict": false,
"esModuleInterop": true,
"lib": ["es2018", "dom"],
},
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
Expand Down

0 comments on commit 733ba00

Please sign in to comment.