Skip to content

Commit

Permalink
fix broken navigation when opening settings or hotkeys (#655)
Browse files Browse the repository at this point in the history
  • Loading branch information
JannikStreek authored Jan 6, 2025
1 parent 7458c3a commit 173a407
Show file tree
Hide file tree
Showing 12 changed files with 10,305 additions and 10,296 deletions.
20,470 changes: 10,235 additions & 10,235 deletions teammapper-backend/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion teammapper-backend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "teammapper-backend",
"version": "0.0.4",
"version": "0.1.9",
"description": "teammapper backend to work online as a team on mindmaps",
"author": "b310 digital gmbh",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion teammapper-backend/src/filters/global-exception.filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
Catch,
ArgumentsHost,
Logger,
NotFoundException
NotFoundException,
} from '@nestjs/common'

// This is for any unhandled gateway and "internal" NestJS related errors - like if the gateway can't reach clients or things like that.
Expand Down
2 changes: 1 addition & 1 deletion teammapper-backend/src/jobs/seedMapData.job.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const createMap = (nodes: IMmpClientNode[]): IMmpClientMap => {
deleteAfterDays: 30,
data: nodes,
deletedAt: new Date(),
options: { fontMaxSize: 10, fontIncrement: 5, fontMinSize: 10 }
options: { fontMaxSize: 10, fontIncrement: 5, fontMinSize: 10 },
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
import { MigrationInterface, QueryRunner } from "typeorm";
import { MigrationInterface, QueryRunner } from 'typeorm'

export class AddLastAccessedFieldToMap1718959806227 implements MigrationInterface {
name = 'AddLastAccessedFieldToMap1718959806227'
export class AddLastAccessedFieldToMap1718959806227
implements MigrationInterface
{
name = 'AddLastAccessedFieldToMap1718959806227'

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "mmp_map" ADD "lastAccessed" TIMESTAMP WITH TIME ZONE`);
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "mmp_map" DROP COLUMN "lastAccessed"`);
}
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "mmp_map" ADD "lastAccessed" TIMESTAMP WITH TIME ZONE`
)
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "mmp_map" DROP COLUMN "lastAccessed"`)
}
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import { MigrationInterface, QueryRunner } from "typeorm"
import { MigrationInterface, QueryRunner } from 'typeorm'

export class AddCreatedAtToMap1724314314717 implements MigrationInterface {

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "mmp_map" ADD "createdAt" TIMESTAMP WITH TIME ZONE`
)
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "mmp_map" DROP COLUMN "createdAt"`)
}

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "mmp_map" ADD "createdAt" TIMESTAMP WITH TIME ZONE`
)
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "mmp_map" DROP COLUMN "createdAt"`)
}
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import { MigrationInterface, QueryRunner } from "typeorm"
import { MigrationInterface, QueryRunner } from 'typeorm'

export class AddCreatedAtToNode1724314435583 implements MigrationInterface {

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "mmp_node" ADD "createdAt" TIMESTAMP WITH TIME ZONE`
)
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "mmp_node" DROP COLUMN "createdAt"`)
}

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "mmp_node" ADD "createdAt" TIMESTAMP WITH TIME ZONE`
)
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "mmp_node" DROP COLUMN "createdAt"`)
}
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
import { MigrationInterface, QueryRunner } from "typeorm";
import { MigrationInterface, QueryRunner } from 'typeorm'

export class AddDefaultToCreatedAtMmpMap1724325535133 implements MigrationInterface {
name = 'AddDefaultToCreatedAtMmpMap1724325535133'
export class AddDefaultToCreatedAtMmpMap1724325535133
implements MigrationInterface
{
name = 'AddDefaultToCreatedAtMmpMap1724325535133'

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "mmp_map" ALTER COLUMN "createdAt" SET DEFAULT now()`);
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "mmp_map" ALTER COLUMN "createdAt" DROP DEFAULT`);
}
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "mmp_map" ALTER COLUMN "createdAt" SET DEFAULT now()`
)
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "mmp_map" ALTER COLUMN "createdAt" DROP DEFAULT`
)
}
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
import { MigrationInterface, QueryRunner } from "typeorm";
import { MigrationInterface, QueryRunner } from 'typeorm'

export class AddDefaultToCreatedAtMmpNode1724325567562 implements MigrationInterface {
name = 'AddDefaultToCreatedAtMmpNode1724325567562'
export class AddDefaultToCreatedAtMmpNode1724325567562
implements MigrationInterface
{
name = 'AddDefaultToCreatedAtMmpNode1724325567562'

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "mmp_node" ALTER COLUMN "createdAt" SET DEFAULT now()`);
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "mmp_node" ALTER COLUMN "createdAt" DROP DEFAULT`);
}
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "mmp_node" ALTER COLUMN "createdAt" SET DEFAULT now()`
)
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "mmp_node" ALTER COLUMN "createdAt" DROP DEFAULT`
)
}
}
4 changes: 2 additions & 2 deletions teammapper-frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion teammapper-frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "teammapper-frontend",
"version": "0.0.4",
"version": "0.1.9",
"description": "Web application to draw mind maps, based on mindmapp.",
"homepage": "",
"repository": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export class MmpService implements OnDestroy {
* Return the array of snapshots of the mind map.
*/
public history(): ExportHistory {
return this.currentMap.instance.history();
return this.currentMap?.instance?.history();
}

/**
Expand Down

0 comments on commit 173a407

Please sign in to comment.