bb-relay 0.0.17 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Checkpoint-BDzkE4x-.d.mts +11 -0
- package/dist/Checkpoint-BDzkE4x-.d.ts +11 -0
- package/dist/{Locale-COVVY7nx.d.mts → Locale-B_JQwPkq.d.mts} +10 -0
- package/dist/{Locale-COVVY7nx.d.ts → Locale-B_JQwPkq.d.ts} +10 -0
- package/dist/PROJECT_CATEGORY-BivLHtB6.d.mts +3 -0
- package/dist/PROJECT_CATEGORY-BivLHtB6.d.ts +3 -0
- package/dist/Project-CdTfU2Cl.d.ts +32 -0
- package/dist/Project-DlFFd80o.d.mts +32 -0
- package/dist/constant.d.mts +2 -0
- package/dist/constant.d.ts +2 -0
- package/dist/constant.js +33 -5
- package/dist/constant.mjs +28 -0
- package/dist/database.d.mts +4 -13
- package/dist/database.d.ts +4 -13
- package/dist/editor.d.mts +3 -13
- package/dist/editor.d.ts +3 -13
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/locale.d.mts +2 -2
- package/dist/locale.d.ts +2 -2
- package/dist/locale.js +22 -2
- package/dist/locale.mjs +22 -2
- package/package.json +1 -1
- package/src/constant.ts +2 -1
- package/src/constants/PROJECT_CATEGORY.ts +26 -0
- package/src/database.ts +2 -1
- package/src/editor.ts +0 -2
- package/src/locales/en-GB.ts +11 -0
- package/src/locales/fr-FR.ts +11 -0
- package/src/types/api/BBEvent.ts +1 -1
- package/src/types/database/Project.ts +23 -0
- package/dist/Project-By7ak4sM.d.mts +0 -14
- package/dist/Project-By7ak4sM.d.ts +0 -14
- package/src/types/editor/Project.ts +0 -35
|
@@ -110,6 +110,16 @@ declare const enGB: {
|
|
|
110
110
|
install: string;
|
|
111
111
|
uninstall: string;
|
|
112
112
|
repository: string;
|
|
113
|
+
login: string;
|
|
114
|
+
logout: string;
|
|
115
|
+
"projects.search": string;
|
|
116
|
+
download: string;
|
|
117
|
+
"project.delete.warning": string;
|
|
118
|
+
"project.message.upload": string;
|
|
119
|
+
"project.message.synced": string;
|
|
120
|
+
"project.message.update": string;
|
|
121
|
+
"project.message.download": string;
|
|
122
|
+
loading: string;
|
|
113
123
|
};
|
|
114
124
|
|
|
115
125
|
type Language = keyof typeof enGB;
|
|
@@ -110,6 +110,16 @@ declare const enGB: {
|
|
|
110
110
|
install: string;
|
|
111
111
|
uninstall: string;
|
|
112
112
|
repository: string;
|
|
113
|
+
login: string;
|
|
114
|
+
logout: string;
|
|
115
|
+
"projects.search": string;
|
|
116
|
+
download: string;
|
|
117
|
+
"project.delete.warning": string;
|
|
118
|
+
"project.message.upload": string;
|
|
119
|
+
"project.message.synced": string;
|
|
120
|
+
"project.message.update": string;
|
|
121
|
+
"project.message.download": string;
|
|
122
|
+
loading: string;
|
|
113
123
|
};
|
|
114
124
|
|
|
115
125
|
type Language = keyof typeof enGB;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const PROJECT_CATEGORY: readonly ["Action", "Adventure", "ChickLit", "Comedy", "Drama", "FanFiction", "Fantasy", "Horror", "Mystery / Thriller", "Parody", "Poetry", "Romance", "SciFi", "Thriller", "Western", "Historical Fiction", "No Fiction", "Paranormal", "Adult", "Short story", "Spiritual", "Other"];
|
|
2
|
+
|
|
3
|
+
export { PROJECT_CATEGORY as P };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const PROJECT_CATEGORY: readonly ["Action", "Adventure", "ChickLit", "Comedy", "Drama", "FanFiction", "Fantasy", "Horror", "Mystery / Thriller", "Parody", "Poetry", "Romance", "SciFi", "Thriller", "Western", "Historical Fiction", "No Fiction", "Paranormal", "Adult", "Short story", "Spiritual", "Other"];
|
|
2
|
+
|
|
3
|
+
export { PROJECT_CATEGORY as P };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { P as PROJECT_CATEGORY } from './PROJECT_CATEGORY-BivLHtB6.js';
|
|
2
|
+
import { C as Checkpoint } from './Checkpoint-BDzkE4x-.js';
|
|
3
|
+
|
|
4
|
+
type BaseWithId = {
|
|
5
|
+
id: string | number;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Generates Insert, Update, and Doc types from a base schema.
|
|
9
|
+
*/
|
|
10
|
+
type Wrapper<T extends BaseWithId> = {
|
|
11
|
+
insert: Omit<T, "id">;
|
|
12
|
+
update: Partial<Omit<T, "id">> & {
|
|
13
|
+
updatedAt: string;
|
|
14
|
+
};
|
|
15
|
+
doc: T;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
type Category = (typeof PROJECT_CATEGORY)[number];
|
|
19
|
+
interface BaseProject {
|
|
20
|
+
title: string;
|
|
21
|
+
createdAt: string;
|
|
22
|
+
updatedAt: string;
|
|
23
|
+
id: string;
|
|
24
|
+
tags?: string[];
|
|
25
|
+
description?: string;
|
|
26
|
+
genre?: Category;
|
|
27
|
+
history?: Checkpoint[];
|
|
28
|
+
userId: string;
|
|
29
|
+
}
|
|
30
|
+
type Project = Wrapper<BaseProject>;
|
|
31
|
+
|
|
32
|
+
export type { Project as P, Wrapper as W };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { P as PROJECT_CATEGORY } from './PROJECT_CATEGORY-BivLHtB6.mjs';
|
|
2
|
+
import { C as Checkpoint } from './Checkpoint-BDzkE4x-.mjs';
|
|
3
|
+
|
|
4
|
+
type BaseWithId = {
|
|
5
|
+
id: string | number;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Generates Insert, Update, and Doc types from a base schema.
|
|
9
|
+
*/
|
|
10
|
+
type Wrapper<T extends BaseWithId> = {
|
|
11
|
+
insert: Omit<T, "id">;
|
|
12
|
+
update: Partial<Omit<T, "id">> & {
|
|
13
|
+
updatedAt: string;
|
|
14
|
+
};
|
|
15
|
+
doc: T;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
type Category = (typeof PROJECT_CATEGORY)[number];
|
|
19
|
+
interface BaseProject {
|
|
20
|
+
title: string;
|
|
21
|
+
createdAt: string;
|
|
22
|
+
updatedAt: string;
|
|
23
|
+
id: string;
|
|
24
|
+
tags?: string[];
|
|
25
|
+
description?: string;
|
|
26
|
+
genre?: Category;
|
|
27
|
+
history?: Checkpoint[];
|
|
28
|
+
userId: string;
|
|
29
|
+
}
|
|
30
|
+
type Project = Wrapper<BaseProject>;
|
|
31
|
+
|
|
32
|
+
export type { Project as P, Wrapper as W };
|
package/dist/constant.d.mts
CHANGED
package/dist/constant.d.ts
CHANGED
package/dist/constant.js
CHANGED
|
@@ -20,8 +20,36 @@ var DATA_ALIAS = "${userData}";
|
|
|
20
20
|
var PLUGIN_URL = "https://downloadplugin-jaxucpei2q-uc.a.run.app";
|
|
21
21
|
var PLUGIN_URL_default = PLUGIN_URL;
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
// src/constants/PROJECT_CATEGORY.ts
|
|
24
|
+
var PROJECT_CATEGORY = [
|
|
25
|
+
"Action",
|
|
26
|
+
"Adventure",
|
|
27
|
+
"ChickLit",
|
|
28
|
+
"Comedy",
|
|
29
|
+
"Drama",
|
|
30
|
+
"FanFiction",
|
|
31
|
+
"Fantasy",
|
|
32
|
+
"Horror",
|
|
33
|
+
"Mystery / Thriller",
|
|
34
|
+
"Parody",
|
|
35
|
+
"Poetry",
|
|
36
|
+
"Romance",
|
|
37
|
+
"SciFi",
|
|
38
|
+
"Thriller",
|
|
39
|
+
"Western",
|
|
40
|
+
"Historical Fiction",
|
|
41
|
+
"No Fiction",
|
|
42
|
+
"Paranormal",
|
|
43
|
+
"Adult",
|
|
44
|
+
"Short story",
|
|
45
|
+
"Spiritual",
|
|
46
|
+
"Other"
|
|
47
|
+
];
|
|
48
|
+
var PROJECT_CATEGORY_default = PROJECT_CATEGORY;
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
exports.DATA_ALIAS = DATA_ALIAS; exports.PLUGIN_URL = PLUGIN_URL_default; exports.PROJECT_CATEGORY = PROJECT_CATEGORY_default; exports.SENTINEL_FILE = SENTINEL_FILE_default; exports.WEBSITE = WEBSITE_default;
|
package/dist/constant.mjs
CHANGED
|
@@ -19,9 +19,37 @@ var DATA_ALIAS = "${userData}";
|
|
|
19
19
|
// src/constants/PLUGIN_URL.ts
|
|
20
20
|
var PLUGIN_URL = "https://downloadplugin-jaxucpei2q-uc.a.run.app";
|
|
21
21
|
var PLUGIN_URL_default = PLUGIN_URL;
|
|
22
|
+
|
|
23
|
+
// src/constants/PROJECT_CATEGORY.ts
|
|
24
|
+
var PROJECT_CATEGORY = [
|
|
25
|
+
"Action",
|
|
26
|
+
"Adventure",
|
|
27
|
+
"ChickLit",
|
|
28
|
+
"Comedy",
|
|
29
|
+
"Drama",
|
|
30
|
+
"FanFiction",
|
|
31
|
+
"Fantasy",
|
|
32
|
+
"Horror",
|
|
33
|
+
"Mystery / Thriller",
|
|
34
|
+
"Parody",
|
|
35
|
+
"Poetry",
|
|
36
|
+
"Romance",
|
|
37
|
+
"SciFi",
|
|
38
|
+
"Thriller",
|
|
39
|
+
"Western",
|
|
40
|
+
"Historical Fiction",
|
|
41
|
+
"No Fiction",
|
|
42
|
+
"Paranormal",
|
|
43
|
+
"Adult",
|
|
44
|
+
"Short story",
|
|
45
|
+
"Spiritual",
|
|
46
|
+
"Other"
|
|
47
|
+
];
|
|
48
|
+
var PROJECT_CATEGORY_default = PROJECT_CATEGORY;
|
|
22
49
|
export {
|
|
23
50
|
DATA_ALIAS,
|
|
24
51
|
PLUGIN_URL_default as PLUGIN_URL,
|
|
52
|
+
PROJECT_CATEGORY_default as PROJECT_CATEGORY,
|
|
25
53
|
SENTINEL_FILE_default as SENTINEL_FILE,
|
|
26
54
|
WEBSITE_default as WEBSITE
|
|
27
55
|
};
|
package/dist/database.d.mts
CHANGED
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* Generates Insert, Update, and Doc types from a base schema.
|
|
6
|
-
*/
|
|
7
|
-
type Wrapper<T extends BaseWithId> = {
|
|
8
|
-
insert: Omit<T, "id">;
|
|
9
|
-
update: Partial<Omit<T, "id">> & {
|
|
10
|
-
updatedAt: string;
|
|
11
|
-
};
|
|
12
|
-
doc: T;
|
|
13
|
-
};
|
|
1
|
+
import { W as Wrapper } from './Project-DlFFd80o.mjs';
|
|
2
|
+
export { P as Project } from './Project-DlFFd80o.mjs';
|
|
3
|
+
import './PROJECT_CATEGORY-BivLHtB6.mjs';
|
|
4
|
+
import './Checkpoint-BDzkE4x-.mjs';
|
|
14
5
|
|
|
15
6
|
type BaseUser = {
|
|
16
7
|
id: string;
|
package/dist/database.d.ts
CHANGED
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* Generates Insert, Update, and Doc types from a base schema.
|
|
6
|
-
*/
|
|
7
|
-
type Wrapper<T extends BaseWithId> = {
|
|
8
|
-
insert: Omit<T, "id">;
|
|
9
|
-
update: Partial<Omit<T, "id">> & {
|
|
10
|
-
updatedAt: string;
|
|
11
|
-
};
|
|
12
|
-
doc: T;
|
|
13
|
-
};
|
|
1
|
+
import { W as Wrapper } from './Project-CdTfU2Cl.js';
|
|
2
|
+
export { P as Project } from './Project-CdTfU2Cl.js';
|
|
3
|
+
import './PROJECT_CATEGORY-BivLHtB6.js';
|
|
4
|
+
import './Checkpoint-BDzkE4x-.js';
|
|
14
5
|
|
|
15
6
|
type BaseUser = {
|
|
16
7
|
id: string;
|
package/dist/editor.d.mts
CHANGED
|
@@ -1,15 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
type Checkpoint = {
|
|
5
|
-
sha: string;
|
|
6
|
-
message: string;
|
|
7
|
-
timestamp: number;
|
|
8
|
-
author: {
|
|
9
|
-
name: string;
|
|
10
|
-
email: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
1
|
+
export { C as Checkpoint } from './Checkpoint-BDzkE4x-.mjs';
|
|
2
|
+
import { L as Language, a as Locale } from './Locale-B_JQwPkq.mjs';
|
|
13
3
|
|
|
14
4
|
type CopyArg = {
|
|
15
5
|
path: string;
|
|
@@ -86,4 +76,4 @@ interface TutorialHeader {
|
|
|
86
76
|
|
|
87
77
|
type WatchFSEvent = "updated" | "deleted";
|
|
88
78
|
|
|
89
|
-
export type {
|
|
79
|
+
export type { CopyArg, DirectoryContents, DirectoryStats, FileContent, GitFileStatus, IconArg, MenuContent, Nav, RenameType, Result, Route, Settings, TutorialHeader, WatchFSEvent };
|
package/dist/editor.d.ts
CHANGED
|
@@ -1,15 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
type Checkpoint = {
|
|
5
|
-
sha: string;
|
|
6
|
-
message: string;
|
|
7
|
-
timestamp: number;
|
|
8
|
-
author: {
|
|
9
|
-
name: string;
|
|
10
|
-
email: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
1
|
+
export { C as Checkpoint } from './Checkpoint-BDzkE4x-.js';
|
|
2
|
+
import { L as Language, a as Locale } from './Locale-B_JQwPkq.js';
|
|
13
3
|
|
|
14
4
|
type CopyArg = {
|
|
15
5
|
path: string;
|
|
@@ -86,4 +76,4 @@ interface TutorialHeader {
|
|
|
86
76
|
|
|
87
77
|
type WatchFSEvent = "updated" | "deleted";
|
|
88
78
|
|
|
89
|
-
export type {
|
|
79
|
+
export type { CopyArg, DirectoryContents, DirectoryStats, FileContent, GitFileStatus, IconArg, MenuContent, Nav, RenameType, Result, Route, Settings, TutorialHeader, WatchFSEvent };
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/locale.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as Language } from './Locale-
|
|
2
|
-
export { a as Locale, e as enGB } from './Locale-
|
|
1
|
+
import { L as Language } from './Locale-B_JQwPkq.mjs';
|
|
2
|
+
export { a as Locale, e as enGB } from './Locale-B_JQwPkq.mjs';
|
|
3
3
|
|
|
4
4
|
declare const frFR: {
|
|
5
5
|
[key in Language]: string;
|
package/dist/locale.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as Language } from './Locale-
|
|
2
|
-
export { a as Locale, e as enGB } from './Locale-
|
|
1
|
+
import { L as Language } from './Locale-B_JQwPkq.js';
|
|
2
|
+
export { a as Locale, e as enGB } from './Locale-B_JQwPkq.js';
|
|
3
3
|
|
|
4
4
|
declare const frFR: {
|
|
5
5
|
[key in Language]: string;
|
package/dist/locale.js
CHANGED
|
@@ -112,7 +112,17 @@ var enGB = {
|
|
|
112
112
|
"plugins.search": "Search Plugins in Marketplace",
|
|
113
113
|
install: "Install",
|
|
114
114
|
uninstall: "Uninstall",
|
|
115
|
-
repository: "Repository"
|
|
115
|
+
repository: "Repository",
|
|
116
|
+
login: "Login",
|
|
117
|
+
logout: "Logout",
|
|
118
|
+
"projects.search": "Search projects",
|
|
119
|
+
download: "Download",
|
|
120
|
+
"project.delete.warning": "Are you sure you want to delete this project? This cannot be undone",
|
|
121
|
+
"project.message.upload": "Upload project to the cloud",
|
|
122
|
+
"project.message.synced": "Project is up to date",
|
|
123
|
+
"project.message.update": "There are unsaved changes",
|
|
124
|
+
"project.message.download": "You are behind remote copy",
|
|
125
|
+
loading: "Loading..."
|
|
116
126
|
};
|
|
117
127
|
var en_GB_default = enGB;
|
|
118
128
|
|
|
@@ -228,7 +238,17 @@ var frFR = {
|
|
|
228
238
|
"plugins.search": "Rechercher des plugins dans le Marketplace",
|
|
229
239
|
install: "Installer",
|
|
230
240
|
uninstall: "D\xE9sinstaller",
|
|
231
|
-
repository: "D\xE9p\xF4t"
|
|
241
|
+
repository: "D\xE9p\xF4t",
|
|
242
|
+
login: "Se connecter",
|
|
243
|
+
logout: "Se d\xE9connecter",
|
|
244
|
+
"projects.search": "Rechercher des projets",
|
|
245
|
+
download: "T\xE9l\xE9charger",
|
|
246
|
+
"project.delete.warning": "\xCAtes-vous s\xFBr de vouloir supprimer ce projet\xA0? Cette action est irr\xE9versible.",
|
|
247
|
+
"project.message.download": "T\xE9l\xE9charger le projet sur le cloud",
|
|
248
|
+
"project.message.synced": "Le projet est \xE0 jour",
|
|
249
|
+
"project.message.update": "Il y a des modifications non enregistr\xE9es",
|
|
250
|
+
"project.message.upload": "T\xE9l\xE9verser le projet sur le cloud",
|
|
251
|
+
loading: "Chargement..."
|
|
232
252
|
};
|
|
233
253
|
var fr_FR_default = frFR;
|
|
234
254
|
|
package/dist/locale.mjs
CHANGED
|
@@ -112,7 +112,17 @@ var enGB = {
|
|
|
112
112
|
"plugins.search": "Search Plugins in Marketplace",
|
|
113
113
|
install: "Install",
|
|
114
114
|
uninstall: "Uninstall",
|
|
115
|
-
repository: "Repository"
|
|
115
|
+
repository: "Repository",
|
|
116
|
+
login: "Login",
|
|
117
|
+
logout: "Logout",
|
|
118
|
+
"projects.search": "Search projects",
|
|
119
|
+
download: "Download",
|
|
120
|
+
"project.delete.warning": "Are you sure you want to delete this project? This cannot be undone",
|
|
121
|
+
"project.message.upload": "Upload project to the cloud",
|
|
122
|
+
"project.message.synced": "Project is up to date",
|
|
123
|
+
"project.message.update": "There are unsaved changes",
|
|
124
|
+
"project.message.download": "You are behind remote copy",
|
|
125
|
+
loading: "Loading..."
|
|
116
126
|
};
|
|
117
127
|
var en_GB_default = enGB;
|
|
118
128
|
|
|
@@ -228,7 +238,17 @@ var frFR = {
|
|
|
228
238
|
"plugins.search": "Rechercher des plugins dans le Marketplace",
|
|
229
239
|
install: "Installer",
|
|
230
240
|
uninstall: "D\xE9sinstaller",
|
|
231
|
-
repository: "D\xE9p\xF4t"
|
|
241
|
+
repository: "D\xE9p\xF4t",
|
|
242
|
+
login: "Se connecter",
|
|
243
|
+
logout: "Se d\xE9connecter",
|
|
244
|
+
"projects.search": "Rechercher des projets",
|
|
245
|
+
download: "T\xE9l\xE9charger",
|
|
246
|
+
"project.delete.warning": "\xCAtes-vous s\xFBr de vouloir supprimer ce projet\xA0? Cette action est irr\xE9versible.",
|
|
247
|
+
"project.message.download": "T\xE9l\xE9charger le projet sur le cloud",
|
|
248
|
+
"project.message.synced": "Le projet est \xE0 jour",
|
|
249
|
+
"project.message.update": "Il y a des modifications non enregistr\xE9es",
|
|
250
|
+
"project.message.upload": "T\xE9l\xE9verser le projet sur le cloud",
|
|
251
|
+
loading: "Chargement..."
|
|
232
252
|
};
|
|
233
253
|
var fr_FR_default = frFR;
|
|
234
254
|
export {
|
package/package.json
CHANGED
package/src/constant.ts
CHANGED
|
@@ -2,5 +2,6 @@ import SENTINEL_FILE from "./constants/SENTINEL_FILE";
|
|
|
2
2
|
import WEBSITE from "./constants/WEBSITE";
|
|
3
3
|
import { DATA_ALIAS } from "./constants/DATA_ALIAS";
|
|
4
4
|
import PLUGIN_URL from "./constants/PLUGIN_URL";
|
|
5
|
+
import PROJECT_CATEGORY from "./constants/PROJECT_CATEGORY";
|
|
5
6
|
|
|
6
|
-
export { SENTINEL_FILE, WEBSITE, DATA_ALIAS, PLUGIN_URL };
|
|
7
|
+
export { SENTINEL_FILE, WEBSITE, DATA_ALIAS, PLUGIN_URL, PROJECT_CATEGORY };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const PROJECT_CATEGORY = [
|
|
2
|
+
"Action",
|
|
3
|
+
"Adventure",
|
|
4
|
+
"ChickLit",
|
|
5
|
+
"Comedy",
|
|
6
|
+
"Drama",
|
|
7
|
+
"FanFiction",
|
|
8
|
+
"Fantasy",
|
|
9
|
+
"Horror",
|
|
10
|
+
"Mystery / Thriller",
|
|
11
|
+
"Parody",
|
|
12
|
+
"Poetry",
|
|
13
|
+
"Romance",
|
|
14
|
+
"SciFi",
|
|
15
|
+
"Thriller",
|
|
16
|
+
"Western",
|
|
17
|
+
"Historical Fiction",
|
|
18
|
+
"No Fiction",
|
|
19
|
+
"Paranormal",
|
|
20
|
+
"Adult",
|
|
21
|
+
"Short story",
|
|
22
|
+
"Spiritual",
|
|
23
|
+
"Other",
|
|
24
|
+
] as const;
|
|
25
|
+
|
|
26
|
+
export default PROJECT_CATEGORY;
|
package/src/database.ts
CHANGED
|
@@ -2,5 +2,6 @@ import { User } from "./types/database/User";
|
|
|
2
2
|
import { Plugin } from "./types/database/Plugin";
|
|
3
3
|
import { Release } from "./types/database/Release";
|
|
4
4
|
import { Rating } from "./types/database/Rating";
|
|
5
|
+
import Project from "./types/database/Project";
|
|
5
6
|
|
|
6
|
-
export type { Plugin, Rating, Release, User };
|
|
7
|
+
export type { Plugin, Rating, Release, User, Project };
|
package/src/editor.ts
CHANGED
|
@@ -13,7 +13,6 @@ import { Route } from "./types/editor/Route";
|
|
|
13
13
|
import { Settings } from "./types/editor/Settings";
|
|
14
14
|
import { TutorialHeader } from "./types/editor/TutorialHeader";
|
|
15
15
|
import { WatchFSEvent } from "./types/editor/WatchFSEvent";
|
|
16
|
-
import Project from "./types/editor/Project";
|
|
17
16
|
|
|
18
17
|
export type {
|
|
19
18
|
Checkpoint,
|
|
@@ -25,7 +24,6 @@ export type {
|
|
|
25
24
|
IconArg,
|
|
26
25
|
MenuContent,
|
|
27
26
|
Nav,
|
|
28
|
-
Project,
|
|
29
27
|
RenameType,
|
|
30
28
|
Result,
|
|
31
29
|
Route,
|
package/src/locales/en-GB.ts
CHANGED
|
@@ -118,6 +118,17 @@ export const enGB = {
|
|
|
118
118
|
install: "Install",
|
|
119
119
|
uninstall: "Uninstall",
|
|
120
120
|
repository: "Repository",
|
|
121
|
+
login: "Login",
|
|
122
|
+
logout: "Logout",
|
|
123
|
+
"projects.search": "Search projects",
|
|
124
|
+
download: "Download",
|
|
125
|
+
"project.delete.warning":
|
|
126
|
+
"Are you sure you want to delete this project? This cannot be undone",
|
|
127
|
+
"project.message.upload": "Upload project to the cloud",
|
|
128
|
+
"project.message.synced": "Project is up to date",
|
|
129
|
+
"project.message.update": "There are unsaved changes",
|
|
130
|
+
"project.message.download": "You are behind remote copy",
|
|
131
|
+
loading: "Loading...",
|
|
121
132
|
};
|
|
122
133
|
|
|
123
134
|
export default enGB;
|
package/src/locales/fr-FR.ts
CHANGED
|
@@ -121,6 +121,17 @@ export const frFR: { [key in Language]: string } = {
|
|
|
121
121
|
install: "Installer",
|
|
122
122
|
uninstall: "Désinstaller",
|
|
123
123
|
repository: "Dépôt",
|
|
124
|
+
login: "Se connecter",
|
|
125
|
+
logout: "Se déconnecter",
|
|
126
|
+
"projects.search": "Rechercher des projets",
|
|
127
|
+
download: "Télécharger",
|
|
128
|
+
"project.delete.warning":
|
|
129
|
+
"Êtes-vous sûr de vouloir supprimer ce projet ? Cette action est irréversible.",
|
|
130
|
+
"project.message.download": "Télécharger le projet sur le cloud",
|
|
131
|
+
"project.message.synced": "Le projet est à jour",
|
|
132
|
+
"project.message.update": "Il y a des modifications non enregistrées",
|
|
133
|
+
"project.message.upload": "Téléverser le projet sur le cloud",
|
|
134
|
+
loading: "Chargement...",
|
|
124
135
|
};
|
|
125
136
|
|
|
126
137
|
export default frFR;
|
package/src/types/api/BBEvent.ts
CHANGED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import PROJECT_CATEGORY from "@/constants/PROJECT_CATEGORY";
|
|
2
|
+
import { Wrapper } from "./Wrapper";
|
|
3
|
+
import { Checkpoint } from "@/editor";
|
|
4
|
+
|
|
5
|
+
export type Category = (typeof PROJECT_CATEGORY)[number];
|
|
6
|
+
|
|
7
|
+
interface BaseProject {
|
|
8
|
+
title: string;
|
|
9
|
+
createdAt: string;
|
|
10
|
+
updatedAt: string;
|
|
11
|
+
id: string;
|
|
12
|
+
tags?: string[];
|
|
13
|
+
description?: string;
|
|
14
|
+
genre?: Category;
|
|
15
|
+
history?: Checkpoint[];
|
|
16
|
+
userId: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
type Project = Wrapper<BaseProject>;
|
|
20
|
+
|
|
21
|
+
export default Project;
|
|
22
|
+
|
|
23
|
+
export type { Project };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
type Category = "Action" | "Adventure" | "ChickLit" | "Comedy" | "Drama" | "FanFiction" | "Fantasy" | "Horror" | "Mystery / Thriller" | "Parody" | "Poetry" | "Romance" | "SciFi" | "Thriller" | "Western" | "Historical Fiction" | "No Fiction" | "Paranormal" | "Adult" | "Short story" | "Spiritual" | "Other";
|
|
2
|
-
interface Project {
|
|
3
|
-
title: string;
|
|
4
|
-
createdAt: string;
|
|
5
|
-
updatedAt: string;
|
|
6
|
-
lastAccessedAt: string;
|
|
7
|
-
remoteId?: string;
|
|
8
|
-
tags?: string[];
|
|
9
|
-
category?: Category;
|
|
10
|
-
description?: string;
|
|
11
|
-
genre?: string | null;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export type { Project as P };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
type Category = "Action" | "Adventure" | "ChickLit" | "Comedy" | "Drama" | "FanFiction" | "Fantasy" | "Horror" | "Mystery / Thriller" | "Parody" | "Poetry" | "Romance" | "SciFi" | "Thriller" | "Western" | "Historical Fiction" | "No Fiction" | "Paranormal" | "Adult" | "Short story" | "Spiritual" | "Other";
|
|
2
|
-
interface Project {
|
|
3
|
-
title: string;
|
|
4
|
-
createdAt: string;
|
|
5
|
-
updatedAt: string;
|
|
6
|
-
lastAccessedAt: string;
|
|
7
|
-
remoteId?: string;
|
|
8
|
-
tags?: string[];
|
|
9
|
-
category?: Category;
|
|
10
|
-
description?: string;
|
|
11
|
-
genre?: string | null;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export type { Project as P };
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export type Category =
|
|
2
|
-
| "Action"
|
|
3
|
-
| "Adventure"
|
|
4
|
-
| "ChickLit"
|
|
5
|
-
| "Comedy"
|
|
6
|
-
| "Drama"
|
|
7
|
-
| "FanFiction"
|
|
8
|
-
| "Fantasy"
|
|
9
|
-
| "Horror"
|
|
10
|
-
| "Mystery / Thriller"
|
|
11
|
-
| "Parody"
|
|
12
|
-
| "Poetry"
|
|
13
|
-
| "Romance"
|
|
14
|
-
| "SciFi"
|
|
15
|
-
| "Thriller"
|
|
16
|
-
| "Western"
|
|
17
|
-
| "Historical Fiction"
|
|
18
|
-
| "No Fiction"
|
|
19
|
-
| "Paranormal"
|
|
20
|
-
| "Adult"
|
|
21
|
-
| "Short story"
|
|
22
|
-
| "Spiritual"
|
|
23
|
-
| "Other";
|
|
24
|
-
|
|
25
|
-
export default interface Project {
|
|
26
|
-
title: string;
|
|
27
|
-
createdAt: string;
|
|
28
|
-
updatedAt: string;
|
|
29
|
-
lastAccessedAt: string;
|
|
30
|
-
remoteId?: string;
|
|
31
|
-
tags?: string[];
|
|
32
|
-
category?: Category;
|
|
33
|
-
description?: string;
|
|
34
|
-
genre?: string | null;
|
|
35
|
-
}
|