bb-relay 0.0.16 → 0.0.18
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/Locale-DJLJNvnU.d.mts +124 -0
- package/dist/Locale-DJLJNvnU.d.ts +124 -0
- package/dist/PROJECT_CATEGORY-BivLHtB6.d.mts +3 -0
- package/dist/PROJECT_CATEGORY-BivLHtB6.d.ts +3 -0
- package/dist/Project-BejSoNnE.d.ts +29 -0
- package/dist/Project-pc12hNVn.d.mts +29 -0
- package/dist/{chunk-UJCSKKID.mjs → chunk-NBMM2TZK.js} +8 -5
- package/dist/constant.d.mts +16 -0
- package/dist/constant.d.ts +16 -0
- package/dist/constant.js +55 -0
- package/dist/constant.mjs +55 -0
- package/dist/database.d.mts +73 -0
- package/dist/database.d.ts +73 -0
- package/dist/database.js +1 -0
- package/dist/database.mjs +0 -0
- package/dist/dev.js +185 -222
- package/dist/editor.d.mts +88 -0
- package/dist/editor.d.ts +88 -0
- package/dist/editor.js +1 -0
- package/dist/editor.mjs +0 -0
- package/dist/index.d.mts +7 -312
- package/dist/index.d.ts +7 -312
- package/dist/index.js +8 -292
- package/dist/index.mjs +2 -253
- package/dist/locale.d.mts +8 -0
- package/dist/locale.d.ts +8 -0
- package/dist/locale.js +247 -0
- package/dist/locale.mjs +247 -0
- package/package.json +8 -11
- package/src/constant.ts +7 -0
- package/src/constants/PLUGIN_URL.ts +3 -0
- package/src/constants/PROJECT_CATEGORY.ts +26 -0
- package/src/database.ts +7 -0
- package/src/editor.ts +33 -0
- package/src/index.ts +12 -62
- package/src/lib/validate-manifest.ts +2 -5
- package/src/load-virtual-editor/events/handle-dir-update.ts +1 -1
- package/src/load-virtual-editor/events/handle-file-update.ts +1 -1
- package/src/load-virtual-editor/events/handle-load.ts +1 -1
- package/src/load-virtual-editor/events/handle-selected.ts +1 -1
- package/src/load-virtual-editor/index.ts +2 -2
- package/src/load-virtual-editor/node/writeFile.ts +1 -1
- package/src/load-virtual-editor/postResponse.ts +4 -4
- package/src/load-virtual-editor/request/requestFS.ts +3 -3
- package/src/load-virtual-editor/request/requestSelected.ts +3 -3
- package/src/locale.ts +7 -0
- package/src/locales/en-GB.ts +20 -8
- package/src/locales/fr-FR.ts +7 -0
- package/src/relay/index.ts +4 -4
- package/src/relay/registerEvent.ts +1 -1
- package/src/relay/registerRequest.ts +1 -1
- package/src/relay/storage-bridge.ts +1 -1
- package/src/types/{BBEvent.ts → api/BBEvent.ts} +2 -2
- package/src/types/api/BBRequest.ts +8 -0
- package/src/types/{dir/index.ts → api/DirRequests.ts} +8 -1
- package/src/types/{editor → api}/EventParam.ts +1 -1
- package/src/types/{editor → api}/EventReturn.ts +1 -1
- package/src/types/{plugins → database}/Plugin.ts +2 -5
- package/src/types/database/Project.ts +20 -0
- package/src/types/{plugins → database}/Rating.ts +4 -5
- package/src/types/{plugins → database}/Release.ts +3 -5
- package/src/types/{editor → database}/User.ts +5 -1
- package/src/types/database/Wrapper.ts +15 -0
- package/src/types/editor/Manifest.ts +4 -0
- package/tsup.config.ts +4 -4
- package/src/types/BBRequest.ts +0 -8
- package/src/types/dir/DirInfo.ts +0 -10
- package/src/types/editor/database.types.ts +0 -266
- package/src/types/project/Project.ts +0 -35
- /package/src/types/{project/index.ts → api/ProjectRequest.ts} +0 -0
- /package/src/types/{RequestParam.ts → api/RequestParam.ts} +0 -0
- /package/src/types/{RequestReturn.ts → api/RequestReturn.ts} +0 -0
- /package/src/types/{Zip.ts → editor/Zip.ts} +0 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
declare const enGB: {
|
|
2
|
+
"language.british_english": string;
|
|
3
|
+
"language.french": string;
|
|
4
|
+
"file.new": string;
|
|
5
|
+
"file.new.placeholder": string;
|
|
6
|
+
"file.open": string;
|
|
7
|
+
"file.duplicate": string;
|
|
8
|
+
"file.delete": string;
|
|
9
|
+
"file.rename": string;
|
|
10
|
+
"file.close": string;
|
|
11
|
+
"file.cut": string;
|
|
12
|
+
"file.copy": string;
|
|
13
|
+
"file.export_html": string;
|
|
14
|
+
"file.export_pdf": string;
|
|
15
|
+
"file.print": string;
|
|
16
|
+
"file.location.open": string;
|
|
17
|
+
file: string;
|
|
18
|
+
edit: string;
|
|
19
|
+
view: string;
|
|
20
|
+
help: string;
|
|
21
|
+
welcome: string;
|
|
22
|
+
"welcome.message": string;
|
|
23
|
+
"version.current": string;
|
|
24
|
+
"version.latest": string;
|
|
25
|
+
"version.out_of_date": string;
|
|
26
|
+
"version.up_to_date": string;
|
|
27
|
+
"update.check": string;
|
|
28
|
+
"update.download": string;
|
|
29
|
+
"update.release_notes": string;
|
|
30
|
+
install_and_restart: string;
|
|
31
|
+
"install.version": string;
|
|
32
|
+
later: string;
|
|
33
|
+
close: string;
|
|
34
|
+
about: string;
|
|
35
|
+
change_log: string;
|
|
36
|
+
documentation: string;
|
|
37
|
+
"report.issue": string;
|
|
38
|
+
"folder.new": string;
|
|
39
|
+
"folder.new.placeholder": string;
|
|
40
|
+
"folder.open": string;
|
|
41
|
+
"folder.open.message": string;
|
|
42
|
+
"folder.open.description": string;
|
|
43
|
+
"project.download": string;
|
|
44
|
+
"project.download.title": string;
|
|
45
|
+
"project.download.description": string;
|
|
46
|
+
"project.select": string;
|
|
47
|
+
"project.select.title": string;
|
|
48
|
+
"project.select.description": string;
|
|
49
|
+
"project.new": string;
|
|
50
|
+
tags: string;
|
|
51
|
+
"tag.input.placeholder": string;
|
|
52
|
+
category: string;
|
|
53
|
+
"category.select": string;
|
|
54
|
+
"project.title": string;
|
|
55
|
+
"project.title.placeholder": string;
|
|
56
|
+
"project.description": string;
|
|
57
|
+
"project.description.placeholder": string;
|
|
58
|
+
email: string;
|
|
59
|
+
"email.placeholder": string;
|
|
60
|
+
password: string;
|
|
61
|
+
"password.placeholder": string;
|
|
62
|
+
username: string;
|
|
63
|
+
"username.placeholder": string;
|
|
64
|
+
"workspace.select": string;
|
|
65
|
+
"workspace.select.description": string;
|
|
66
|
+
"file.explorer": string;
|
|
67
|
+
"no_workspace.message": string;
|
|
68
|
+
"folder.select.placeholder": string;
|
|
69
|
+
"folder.select": string;
|
|
70
|
+
"folder.rename": string;
|
|
71
|
+
"folder.duplicate": string;
|
|
72
|
+
"folder.paste": string;
|
|
73
|
+
"folder.cut": string;
|
|
74
|
+
"folder.copy": string;
|
|
75
|
+
"folder.delete": string;
|
|
76
|
+
folder: string;
|
|
77
|
+
"folder.location.open": string;
|
|
78
|
+
"checkpoint.list.header": string;
|
|
79
|
+
"checkpoint.placeholder": string;
|
|
80
|
+
"checkpoint.button": string;
|
|
81
|
+
"git.stage.all": string;
|
|
82
|
+
"git.discard.all": string;
|
|
83
|
+
"git.stage": string;
|
|
84
|
+
"git.discard": string;
|
|
85
|
+
"git.discard.message": string;
|
|
86
|
+
"git.unstage.all": string;
|
|
87
|
+
"git.unstage": string;
|
|
88
|
+
changes: string;
|
|
89
|
+
history: string;
|
|
90
|
+
home: string;
|
|
91
|
+
cancel: string;
|
|
92
|
+
confirm: string;
|
|
93
|
+
"plugin.install": string;
|
|
94
|
+
"project.create": string;
|
|
95
|
+
"checkpoint.save": string;
|
|
96
|
+
"file.delete.warning": string;
|
|
97
|
+
"folder.delete.warning": string;
|
|
98
|
+
delete: string;
|
|
99
|
+
"placeholder.text": string;
|
|
100
|
+
"placeholder.click": string;
|
|
101
|
+
"placeholder.label": string;
|
|
102
|
+
find: string;
|
|
103
|
+
replace: string;
|
|
104
|
+
"replace.all": string;
|
|
105
|
+
previous: string;
|
|
106
|
+
next: string;
|
|
107
|
+
"search.use.regex": string;
|
|
108
|
+
"search.case.sensitive": string;
|
|
109
|
+
"plugins.search": string;
|
|
110
|
+
install: string;
|
|
111
|
+
uninstall: string;
|
|
112
|
+
repository: string;
|
|
113
|
+
login: string;
|
|
114
|
+
logout: string;
|
|
115
|
+
"projects.search": string;
|
|
116
|
+
download: string;
|
|
117
|
+
"project.delete.warning": string;
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
type Language = keyof typeof enGB;
|
|
121
|
+
|
|
122
|
+
type Locale = "en-GB" | "fr-FR";
|
|
123
|
+
|
|
124
|
+
export { type Language as L, type Locale as a, enGB as e };
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
declare const enGB: {
|
|
2
|
+
"language.british_english": string;
|
|
3
|
+
"language.french": string;
|
|
4
|
+
"file.new": string;
|
|
5
|
+
"file.new.placeholder": string;
|
|
6
|
+
"file.open": string;
|
|
7
|
+
"file.duplicate": string;
|
|
8
|
+
"file.delete": string;
|
|
9
|
+
"file.rename": string;
|
|
10
|
+
"file.close": string;
|
|
11
|
+
"file.cut": string;
|
|
12
|
+
"file.copy": string;
|
|
13
|
+
"file.export_html": string;
|
|
14
|
+
"file.export_pdf": string;
|
|
15
|
+
"file.print": string;
|
|
16
|
+
"file.location.open": string;
|
|
17
|
+
file: string;
|
|
18
|
+
edit: string;
|
|
19
|
+
view: string;
|
|
20
|
+
help: string;
|
|
21
|
+
welcome: string;
|
|
22
|
+
"welcome.message": string;
|
|
23
|
+
"version.current": string;
|
|
24
|
+
"version.latest": string;
|
|
25
|
+
"version.out_of_date": string;
|
|
26
|
+
"version.up_to_date": string;
|
|
27
|
+
"update.check": string;
|
|
28
|
+
"update.download": string;
|
|
29
|
+
"update.release_notes": string;
|
|
30
|
+
install_and_restart: string;
|
|
31
|
+
"install.version": string;
|
|
32
|
+
later: string;
|
|
33
|
+
close: string;
|
|
34
|
+
about: string;
|
|
35
|
+
change_log: string;
|
|
36
|
+
documentation: string;
|
|
37
|
+
"report.issue": string;
|
|
38
|
+
"folder.new": string;
|
|
39
|
+
"folder.new.placeholder": string;
|
|
40
|
+
"folder.open": string;
|
|
41
|
+
"folder.open.message": string;
|
|
42
|
+
"folder.open.description": string;
|
|
43
|
+
"project.download": string;
|
|
44
|
+
"project.download.title": string;
|
|
45
|
+
"project.download.description": string;
|
|
46
|
+
"project.select": string;
|
|
47
|
+
"project.select.title": string;
|
|
48
|
+
"project.select.description": string;
|
|
49
|
+
"project.new": string;
|
|
50
|
+
tags: string;
|
|
51
|
+
"tag.input.placeholder": string;
|
|
52
|
+
category: string;
|
|
53
|
+
"category.select": string;
|
|
54
|
+
"project.title": string;
|
|
55
|
+
"project.title.placeholder": string;
|
|
56
|
+
"project.description": string;
|
|
57
|
+
"project.description.placeholder": string;
|
|
58
|
+
email: string;
|
|
59
|
+
"email.placeholder": string;
|
|
60
|
+
password: string;
|
|
61
|
+
"password.placeholder": string;
|
|
62
|
+
username: string;
|
|
63
|
+
"username.placeholder": string;
|
|
64
|
+
"workspace.select": string;
|
|
65
|
+
"workspace.select.description": string;
|
|
66
|
+
"file.explorer": string;
|
|
67
|
+
"no_workspace.message": string;
|
|
68
|
+
"folder.select.placeholder": string;
|
|
69
|
+
"folder.select": string;
|
|
70
|
+
"folder.rename": string;
|
|
71
|
+
"folder.duplicate": string;
|
|
72
|
+
"folder.paste": string;
|
|
73
|
+
"folder.cut": string;
|
|
74
|
+
"folder.copy": string;
|
|
75
|
+
"folder.delete": string;
|
|
76
|
+
folder: string;
|
|
77
|
+
"folder.location.open": string;
|
|
78
|
+
"checkpoint.list.header": string;
|
|
79
|
+
"checkpoint.placeholder": string;
|
|
80
|
+
"checkpoint.button": string;
|
|
81
|
+
"git.stage.all": string;
|
|
82
|
+
"git.discard.all": string;
|
|
83
|
+
"git.stage": string;
|
|
84
|
+
"git.discard": string;
|
|
85
|
+
"git.discard.message": string;
|
|
86
|
+
"git.unstage.all": string;
|
|
87
|
+
"git.unstage": string;
|
|
88
|
+
changes: string;
|
|
89
|
+
history: string;
|
|
90
|
+
home: string;
|
|
91
|
+
cancel: string;
|
|
92
|
+
confirm: string;
|
|
93
|
+
"plugin.install": string;
|
|
94
|
+
"project.create": string;
|
|
95
|
+
"checkpoint.save": string;
|
|
96
|
+
"file.delete.warning": string;
|
|
97
|
+
"folder.delete.warning": string;
|
|
98
|
+
delete: string;
|
|
99
|
+
"placeholder.text": string;
|
|
100
|
+
"placeholder.click": string;
|
|
101
|
+
"placeholder.label": string;
|
|
102
|
+
find: string;
|
|
103
|
+
replace: string;
|
|
104
|
+
"replace.all": string;
|
|
105
|
+
previous: string;
|
|
106
|
+
next: string;
|
|
107
|
+
"search.use.regex": string;
|
|
108
|
+
"search.case.sensitive": string;
|
|
109
|
+
"plugins.search": string;
|
|
110
|
+
install: string;
|
|
111
|
+
uninstall: string;
|
|
112
|
+
repository: string;
|
|
113
|
+
login: string;
|
|
114
|
+
logout: string;
|
|
115
|
+
"projects.search": string;
|
|
116
|
+
download: string;
|
|
117
|
+
"project.delete.warning": string;
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
type Language = keyof typeof enGB;
|
|
121
|
+
|
|
122
|
+
type Locale = "en-GB" | "fr-FR";
|
|
123
|
+
|
|
124
|
+
export { type Language as L, type Locale as a, enGB as e };
|
|
@@ -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,29 @@
|
|
|
1
|
+
import { P as PROJECT_CATEGORY } from './PROJECT_CATEGORY-BivLHtB6.js';
|
|
2
|
+
|
|
3
|
+
type BaseWithId = {
|
|
4
|
+
id: string | number;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Generates Insert, Update, and Doc types from a base schema.
|
|
8
|
+
*/
|
|
9
|
+
type Wrapper<T extends BaseWithId> = {
|
|
10
|
+
insert: Omit<T, "id">;
|
|
11
|
+
update: Partial<Omit<T, "id">> & {
|
|
12
|
+
updatedAt: string;
|
|
13
|
+
};
|
|
14
|
+
doc: T;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
type Category = (typeof PROJECT_CATEGORY)[number];
|
|
18
|
+
interface BaseProject {
|
|
19
|
+
title: string;
|
|
20
|
+
createdAt: string;
|
|
21
|
+
updatedAt: string;
|
|
22
|
+
id: string;
|
|
23
|
+
tags?: string[];
|
|
24
|
+
description?: string;
|
|
25
|
+
genre?: Category;
|
|
26
|
+
}
|
|
27
|
+
type Project = Wrapper<BaseProject>;
|
|
28
|
+
|
|
29
|
+
export type { Project as P, Wrapper as W };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { P as PROJECT_CATEGORY } from './PROJECT_CATEGORY-BivLHtB6.mjs';
|
|
2
|
+
|
|
3
|
+
type BaseWithId = {
|
|
4
|
+
id: string | number;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Generates Insert, Update, and Doc types from a base schema.
|
|
8
|
+
*/
|
|
9
|
+
type Wrapper<T extends BaseWithId> = {
|
|
10
|
+
insert: Omit<T, "id">;
|
|
11
|
+
update: Partial<Omit<T, "id">> & {
|
|
12
|
+
updatedAt: string;
|
|
13
|
+
};
|
|
14
|
+
doc: T;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
type Category = (typeof PROJECT_CATEGORY)[number];
|
|
18
|
+
interface BaseProject {
|
|
19
|
+
title: string;
|
|
20
|
+
createdAt: string;
|
|
21
|
+
updatedAt: string;
|
|
22
|
+
id: string;
|
|
23
|
+
tags?: string[];
|
|
24
|
+
description?: string;
|
|
25
|
+
genre?: Category;
|
|
26
|
+
}
|
|
27
|
+
type Project = Wrapper<BaseProject>;
|
|
28
|
+
|
|
29
|
+
export type { Project as P, Wrapper as W };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var __create = Object.create;
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7
8
|
var __commonJS = (cb, mod) => function __require() {
|
|
8
9
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
9
10
|
};
|
|
@@ -23,8 +24,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
23
24
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
24
25
|
mod
|
|
25
26
|
));
|
|
27
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
26
28
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
exports.__commonJS = __commonJS; exports.__toESM = __toESM; exports.__publicField = __publicField;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { P as PROJECT_CATEGORY } from './PROJECT_CATEGORY-BivLHtB6.mjs';
|
|
2
|
+
|
|
3
|
+
declare const SENTINEL_FILE = ".release.commit";
|
|
4
|
+
|
|
5
|
+
declare const WEBSITE: {
|
|
6
|
+
main: string;
|
|
7
|
+
console: string;
|
|
8
|
+
marketplace: string;
|
|
9
|
+
docs: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
declare const DATA_ALIAS = "${userData}";
|
|
13
|
+
|
|
14
|
+
declare const PLUGIN_URL = "https://downloadplugin-jaxucpei2q-uc.a.run.app";
|
|
15
|
+
|
|
16
|
+
export { DATA_ALIAS, PLUGIN_URL, SENTINEL_FILE, WEBSITE };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { P as PROJECT_CATEGORY } from './PROJECT_CATEGORY-BivLHtB6.js';
|
|
2
|
+
|
|
3
|
+
declare const SENTINEL_FILE = ".release.commit";
|
|
4
|
+
|
|
5
|
+
declare const WEBSITE: {
|
|
6
|
+
main: string;
|
|
7
|
+
console: string;
|
|
8
|
+
marketplace: string;
|
|
9
|
+
docs: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
declare const DATA_ALIAS = "${userData}";
|
|
13
|
+
|
|
14
|
+
declare const PLUGIN_URL = "https://downloadplugin-jaxucpei2q-uc.a.run.app";
|
|
15
|
+
|
|
16
|
+
export { DATA_ALIAS, PLUGIN_URL, SENTINEL_FILE, WEBSITE };
|
package/dist/constant.js
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-NBMM2TZK.js');
|
|
2
|
+
|
|
3
|
+
// src/constants/SENTINEL_FILE.ts
|
|
4
|
+
var SENTINEL_FILE = ".release.commit";
|
|
5
|
+
var SENTINEL_FILE_default = SENTINEL_FILE;
|
|
6
|
+
|
|
7
|
+
// src/constants/WEBSITE.ts
|
|
8
|
+
var WEBSITE = {
|
|
9
|
+
main: "http://bb-editor.adeolaade.com/",
|
|
10
|
+
console: "http://bb-console.adeolaade.com",
|
|
11
|
+
marketplace: "http://bb-marketplace.adeolaade.com",
|
|
12
|
+
docs: "http://bb-docs.adeolaade.com"
|
|
13
|
+
};
|
|
14
|
+
var WEBSITE_default = WEBSITE;
|
|
15
|
+
|
|
16
|
+
// src/constants/DATA_ALIAS.ts
|
|
17
|
+
var DATA_ALIAS = "${userData}";
|
|
18
|
+
|
|
19
|
+
// src/constants/PLUGIN_URL.ts
|
|
20
|
+
var PLUGIN_URL = "https://downloadplugin-jaxucpei2q-uc.a.run.app";
|
|
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;
|
|
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;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import "./chunk-S47CVTVK.mjs";
|
|
2
|
+
|
|
3
|
+
// src/constants/SENTINEL_FILE.ts
|
|
4
|
+
var SENTINEL_FILE = ".release.commit";
|
|
5
|
+
var SENTINEL_FILE_default = SENTINEL_FILE;
|
|
6
|
+
|
|
7
|
+
// src/constants/WEBSITE.ts
|
|
8
|
+
var WEBSITE = {
|
|
9
|
+
main: "http://bb-editor.adeolaade.com/",
|
|
10
|
+
console: "http://bb-console.adeolaade.com",
|
|
11
|
+
marketplace: "http://bb-marketplace.adeolaade.com",
|
|
12
|
+
docs: "http://bb-docs.adeolaade.com"
|
|
13
|
+
};
|
|
14
|
+
var WEBSITE_default = WEBSITE;
|
|
15
|
+
|
|
16
|
+
// src/constants/DATA_ALIAS.ts
|
|
17
|
+
var DATA_ALIAS = "${userData}";
|
|
18
|
+
|
|
19
|
+
// src/constants/PLUGIN_URL.ts
|
|
20
|
+
var PLUGIN_URL = "https://downloadplugin-jaxucpei2q-uc.a.run.app";
|
|
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;
|
|
49
|
+
export {
|
|
50
|
+
DATA_ALIAS,
|
|
51
|
+
PLUGIN_URL_default as PLUGIN_URL,
|
|
52
|
+
PROJECT_CATEGORY_default as PROJECT_CATEGORY,
|
|
53
|
+
SENTINEL_FILE_default as SENTINEL_FILE,
|
|
54
|
+
WEBSITE_default as WEBSITE
|
|
55
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { W as Wrapper } from './Project-pc12hNVn.mjs';
|
|
2
|
+
export { P as Project } from './Project-pc12hNVn.mjs';
|
|
3
|
+
import './PROJECT_CATEGORY-BivLHtB6.mjs';
|
|
4
|
+
|
|
5
|
+
type BaseUser = {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
username: string;
|
|
9
|
+
email: string;
|
|
10
|
+
bio: string;
|
|
11
|
+
avatar: string;
|
|
12
|
+
createdAt: string;
|
|
13
|
+
updatedAt: string;
|
|
14
|
+
};
|
|
15
|
+
type User = Wrapper<BaseUser>;
|
|
16
|
+
|
|
17
|
+
type BaseRelease = {
|
|
18
|
+
storageRef: string;
|
|
19
|
+
changes: string;
|
|
20
|
+
version: string;
|
|
21
|
+
type: "production" | "beta" | "draft";
|
|
22
|
+
slug: string;
|
|
23
|
+
metadata: {
|
|
24
|
+
uploadedAt: number;
|
|
25
|
+
totalFiles: number;
|
|
26
|
+
totalSize: number;
|
|
27
|
+
};
|
|
28
|
+
createdAt: string;
|
|
29
|
+
id: string;
|
|
30
|
+
updatedAt: string;
|
|
31
|
+
userId: string;
|
|
32
|
+
installs: number;
|
|
33
|
+
};
|
|
34
|
+
type Release = Wrapper<BaseRelease>;
|
|
35
|
+
|
|
36
|
+
type Status = Omit<Release["doc"], "type">;
|
|
37
|
+
/**
|
|
38
|
+
* This will be pulled from two firestore
|
|
39
|
+
* The part of name, description etc will be in the main
|
|
40
|
+
* Things like installs will be in the registry
|
|
41
|
+
*/
|
|
42
|
+
type BasePlugin = {
|
|
43
|
+
userId: string;
|
|
44
|
+
slug: string;
|
|
45
|
+
name: string;
|
|
46
|
+
description: string | null;
|
|
47
|
+
archived?: boolean;
|
|
48
|
+
deprecated?: boolean;
|
|
49
|
+
beta: Status | null;
|
|
50
|
+
production: Status | null;
|
|
51
|
+
createdAt: string;
|
|
52
|
+
updatedAt: string;
|
|
53
|
+
tags: string[];
|
|
54
|
+
username: string;
|
|
55
|
+
id: string;
|
|
56
|
+
avatar?: string;
|
|
57
|
+
};
|
|
58
|
+
type Plugin = Wrapper<BasePlugin>;
|
|
59
|
+
|
|
60
|
+
type BaseRating = {
|
|
61
|
+
userId: string;
|
|
62
|
+
RatingId: string;
|
|
63
|
+
rating: number;
|
|
64
|
+
comment?: string;
|
|
65
|
+
createdAt: string;
|
|
66
|
+
updatedAt?: string;
|
|
67
|
+
username: string;
|
|
68
|
+
avatar?: string;
|
|
69
|
+
id: string;
|
|
70
|
+
};
|
|
71
|
+
type Rating = Wrapper<BaseRating>;
|
|
72
|
+
|
|
73
|
+
export type { Plugin, Rating, Release, User };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { W as Wrapper } from './Project-BejSoNnE.js';
|
|
2
|
+
export { P as Project } from './Project-BejSoNnE.js';
|
|
3
|
+
import './PROJECT_CATEGORY-BivLHtB6.js';
|
|
4
|
+
|
|
5
|
+
type BaseUser = {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
username: string;
|
|
9
|
+
email: string;
|
|
10
|
+
bio: string;
|
|
11
|
+
avatar: string;
|
|
12
|
+
createdAt: string;
|
|
13
|
+
updatedAt: string;
|
|
14
|
+
};
|
|
15
|
+
type User = Wrapper<BaseUser>;
|
|
16
|
+
|
|
17
|
+
type BaseRelease = {
|
|
18
|
+
storageRef: string;
|
|
19
|
+
changes: string;
|
|
20
|
+
version: string;
|
|
21
|
+
type: "production" | "beta" | "draft";
|
|
22
|
+
slug: string;
|
|
23
|
+
metadata: {
|
|
24
|
+
uploadedAt: number;
|
|
25
|
+
totalFiles: number;
|
|
26
|
+
totalSize: number;
|
|
27
|
+
};
|
|
28
|
+
createdAt: string;
|
|
29
|
+
id: string;
|
|
30
|
+
updatedAt: string;
|
|
31
|
+
userId: string;
|
|
32
|
+
installs: number;
|
|
33
|
+
};
|
|
34
|
+
type Release = Wrapper<BaseRelease>;
|
|
35
|
+
|
|
36
|
+
type Status = Omit<Release["doc"], "type">;
|
|
37
|
+
/**
|
|
38
|
+
* This will be pulled from two firestore
|
|
39
|
+
* The part of name, description etc will be in the main
|
|
40
|
+
* Things like installs will be in the registry
|
|
41
|
+
*/
|
|
42
|
+
type BasePlugin = {
|
|
43
|
+
userId: string;
|
|
44
|
+
slug: string;
|
|
45
|
+
name: string;
|
|
46
|
+
description: string | null;
|
|
47
|
+
archived?: boolean;
|
|
48
|
+
deprecated?: boolean;
|
|
49
|
+
beta: Status | null;
|
|
50
|
+
production: Status | null;
|
|
51
|
+
createdAt: string;
|
|
52
|
+
updatedAt: string;
|
|
53
|
+
tags: string[];
|
|
54
|
+
username: string;
|
|
55
|
+
id: string;
|
|
56
|
+
avatar?: string;
|
|
57
|
+
};
|
|
58
|
+
type Plugin = Wrapper<BasePlugin>;
|
|
59
|
+
|
|
60
|
+
type BaseRating = {
|
|
61
|
+
userId: string;
|
|
62
|
+
RatingId: string;
|
|
63
|
+
rating: number;
|
|
64
|
+
comment?: string;
|
|
65
|
+
createdAt: string;
|
|
66
|
+
updatedAt?: string;
|
|
67
|
+
username: string;
|
|
68
|
+
avatar?: string;
|
|
69
|
+
id: string;
|
|
70
|
+
};
|
|
71
|
+
type Rating = Wrapper<BaseRating>;
|
|
72
|
+
|
|
73
|
+
export type { Plugin, Rating, Release, User };
|
package/dist/database.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
File without changes
|