Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

refactor: clean unused files

linonetwo6aa679365afd
diff --git a/client-app/src/types/affine.ts b/client-app/src/types/affine.ts
deleted file mode 100644
index 5cd3358c07..0000000000
--- a/client-app/src/types/affine.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- * Copied from packages/data-services/src/sdks/workspace.ts
- * // TODO: after it published, use that package
- */
-export enum WorkspaceType {
- Private = 0,
- Normal = 1,
-}
-export enum PermissionType {
- Read = 0,
- Write = 1,
- Admin = 2,
- Owner = 3,
-}
-export interface Workspace {
- avatar: string;
- id: number;
- create_at: number;
- name: string;
- permission_type: PermissionType;
- public: boolean;
- type: WorkspaceType;
-}
diff --git a/client-app/src/types/index.ts b/client-app/src/types/index.ts
deleted file mode 100644
index 044a3400fb..0000000000
--- a/client-app/src/types/index.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-// TODO: find official typings if available
-type IsolationPayload = unknown;
-
-declare global {
- interface Window {
- CLIENT_APP?: boolean;
- __TAURI_ISOLATION_HOOK__: (payload: IsolationPayload) => IsolationPayload;
- }
-}
-
-export {};
diff --git a/client-app/src/types/ipc/blob.json b/client-app/src/types/ipc/blob.json
deleted file mode 100644
index f136a8b4d7..0000000000
--- a/client-app/src/types/ipc/blob.json
+++ /dev/null
@@ -1,61 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-07/schema#",
- "title": "IBlobParameters",
- "oneOf": [
- {
- "type": "object",
- "required": ["Put"],
- "properties": {
- "Put": {
- "$ref": "#/definitions/PutBlob"
- }
- },
- "additionalProperties": false
- },
- {
- "type": "object",
- "required": ["Get"],
- "properties": {
- "Get": {
- "$ref": "#/definitions/GetBlob"
- }
- },
- "additionalProperties": false
- }
- ],
- "definitions": {
- "GetBlob": {
- "type": "object",
- "required": ["id", "workspace_id"],
- "properties": {
- "id": {
- "type": "string"
- },
- "workspace_id": {
- "type": "integer",
- "format": "uint64",
- "minimum": 0.0
- }
- }
- },
- "PutBlob": {
- "type": "object",
- "required": ["blob", "workspace_id"],
- "properties": {
- "blob": {
- "type": "array",
- "items": {
- "type": "integer",
- "format": "uint8",
- "minimum": 0.0
- }
- },
- "workspace_id": {
- "type": "integer",
- "format": "uint64",
- "minimum": 0.0
- }
- }
- }
- }
-}
diff --git a/client-app/src/types/ipc/blob.ts b/client-app/src/types/ipc/blob.ts
deleted file mode 100644
index 388d1611dd..0000000000
--- a/client-app/src/types/ipc/blob.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-/* tslint:disable */
-/**
- * This file was automatically generated by json-schema-to-typescript.
- * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
- * and run json-schema-to-typescript to regenerate this file.
- */
-
-export type IBlobParameters =
- | {
- Put: PutBlob;
- }
- | {
- Get: GetBlob;
- };
-
-export interface PutBlob {
- blob: number[];
- workspace_id: number;
- [k: string]: unknown;
-}
-export interface GetBlob {
- id: string;
- workspace_id: number;
- [k: string]: unknown;
-}
diff --git a/client-app/src/types/ipc/document.json b/client-app/src/types/ipc/document.json
deleted file mode 100644
index a5c2f8f122..0000000000
--- a/client-app/src/types/ipc/document.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-07/schema#",
- "title": "YDocumentUpdate",
- "type": "object",
- "required": ["room", "update"],
- "properties": {
- "room": {
- "type": "string"
- },
- "update": {
- "type": "array",
- "items": {
- "type": "integer",
- "format": "uint8",
- "minimum": 0.0
- }
- }
- }
-}
diff --git a/client-app/src/types/ipc/document.ts b/client-app/src/types/ipc/document.ts
deleted file mode 100644
index fd6dd91608..0000000000
--- a/client-app/src/types/ipc/document.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/* tslint:disable */
-/**
- * This file was automatically generated by json-schema-to-typescript.
- * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
- * and run json-schema-to-typescript to regenerate this file.
- */
-
-export interface YDocumentUpdate {
- room: string;
- update: number[];
- [k: string]: unknown;
-}
diff --git a/client-app/src/types/ipc/workspace.json b/client-app/src/types/ipc/workspace.json
deleted file mode 100644
index e73b360e07..0000000000
--- a/client-app/src/types/ipc/workspace.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-07/schema#",
- "title": "CreateWorkspace",
- "type": "object",
- "required": ["avatar", "id", "name"],
- "properties": {
- "avatar": {
- "type": "string"
- },
- "id": {
- "type": "integer",
- "format": "int64"
- },
- "name": {
- "type": "string"
- }
- }
-}
diff --git a/client-app/src/types/ipc/workspace.ts b/client-app/src/types/ipc/workspace.ts
deleted file mode 100644
index cf60dcbd54..0000000000
--- a/client-app/src/types/ipc/workspace.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-/* tslint:disable */
-/**
- * This file was automatically generated by json-schema-to-typescript.
- * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
- * and run json-schema-to-typescript to regenerate this file.
- */
-
-export interface CreateWorkspace {
- avatar: string;
- id: number;
- name: string;
- [k: string]: unknown;
-}