refactor: clean unused files

This commit is contained in:
linonetwo
2023-01-11 12:09:50 +08:00
parent 005d3bbaa9
commit 6aa679365a
8 changed files with 0 additions and 182 deletions
-23
View File
@@ -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;
}
-11
View File
@@ -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 {};
-61
View File
@@ -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
}
}
}
}
}
-25
View File
@@ -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;
}
-19
View File
@@ -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
}
}
}
}
-12
View File
@@ -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;
}
-18
View File
@@ -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"
}
}
}
-13
View File
@@ -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;
}