Skip to content

Commit

Permalink
Minor Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
R1c4rdCo5t4 committed Jun 26, 2024
1 parent 8e7618e commit 84e3cf5
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 82 deletions.
6 changes: 0 additions & 6 deletions code/client/src/pwa/pwa-config.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
//import { injectConfig } from './inject-config';
import { manifestConfig } from '@pwa/manifest-config';
import { VitePWAOptions } from 'vite-plugin-pwa';
import { workboxConfig } from '@pwa/workbox-config';

export const pwaConfig: Partial<VitePWAOptions> = {
mode: 'development',
strategies: 'generateSW',
//injectRegister: false,
//injectManifest: injectConfig,
//registerType: 'prompt',
manifest: manifestConfig,
workbox: workboxConfig,
devOptions: {
enabled: true,
navigateFallback: 'index.html',
Expand Down
8 changes: 0 additions & 8 deletions code/client/src/pwa/service-worker.ts

This file was deleted.

52 changes: 0 additions & 52 deletions code/client/src/pwa/workbox-config.ts

This file was deleted.

File renamed without changes.
2 changes: 1 addition & 1 deletion code/server/test/resources/resources.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { TestDatabases } from '../../src/databases/TestDatabases';
import { Services } from '../../src/services/Services';
import { ResourceType } from '@notespace/shared/src/workspace/types/resource';
import { excludeRoot } from '../workspaces/utils';
import { excludeRoot } from '../utils';

let services: Services;

Expand Down
8 changes: 0 additions & 8 deletions code/server/test/users/authentication.test.ts

This file was deleted.

6 changes: 5 additions & 1 deletion code/server/test/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getRandomId } from '../src/services/utils';
import { Services } from '../src/services/Services';
import { ResourceType } from '@notespace/shared/src/workspace/types/resource';
import { Resource, ResourceType } from '@notespace/shared/src/workspace/types/resource';
import { InsertOperation } from '@notespace/shared/src/document/types/operations';
import { Author } from '@notespace/shared/src/document/types/commits';

Expand Down Expand Up @@ -36,3 +36,7 @@ export async function createTestCommit(services: Services) {

return { wid, id, author, commitId, operation };
}

export function excludeRoot(wid: string, resources: Resource[]): Resource[] {
return resources.filter(r => r.id != wid);
}
2 changes: 1 addition & 1 deletion code/server/test/workspaces/tree.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { TestDatabases } from '../../src/databases/TestDatabases';
import { Services } from '../../src/services/Services';
import { ResourceType } from '@notespace/shared/src/workspace/types/resource';
import { excludeRoot } from './utils';
import { excludeRoot } from '../utils';

let services: Services;

Expand Down
5 changes: 0 additions & 5 deletions code/server/test/workspaces/utils.ts

This file was deleted.

0 comments on commit 84e3cf5

Please sign in to comment.