pybiolib 1.2.1352__py3-none-any.whl → 1.2.1361__py3-none-any.whl
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.
Potentially problematic release.
This version of pybiolib might be problematic. Click here for more details.
- biolib/_internal/templates/gui_template/biolib-sdk.ts +6 -3
- biolib/_internal/templates/gui_template/package.json +1 -0
- biolib/_internal/templates/gui_template/vite-plugin-dev-data.ts +4 -7
- biolib/_internal/templates/gui_template/vite.config.mts +1 -1
- {pybiolib-1.2.1352.dist-info → pybiolib-1.2.1361.dist-info}/METADATA +1 -1
- {pybiolib-1.2.1352.dist-info → pybiolib-1.2.1361.dist-info}/RECORD +9 -9
- {pybiolib-1.2.1352.dist-info → pybiolib-1.2.1361.dist-info}/WHEEL +0 -0
- {pybiolib-1.2.1352.dist-info → pybiolib-1.2.1361.dist-info}/entry_points.txt +0 -0
- {pybiolib-1.2.1352.dist-info → pybiolib-1.2.1361.dist-info}/licenses/LICENSE +0 -0
|
@@ -6,14 +6,17 @@ declare global {
|
|
|
6
6
|
const biolib: IBioLibGlobals;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// DO NOT MODIFY: Development data files are injected at build time from gui/dev-data/ folder
|
|
10
|
+
const DEV_DATA_FILES: Record<string, string> = {};
|
|
10
11
|
|
|
11
12
|
const devSdkBioLib: IBioLibGlobals = {
|
|
12
13
|
getOutputFileData: async (path: string): Promise<Uint8Array> => {
|
|
13
14
|
console.log(`[SDK] getOutputFileData called with path: ${path}`);
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
const normalizedPath = path.startsWith('/') ? path.slice(1) : path;
|
|
17
|
+
|
|
18
|
+
if (typeof DEV_DATA_FILES !== 'undefined' && normalizedPath in DEV_DATA_FILES) {
|
|
19
|
+
const base64Data = DEV_DATA_FILES[normalizedPath];
|
|
17
20
|
const binaryString = atob(base64Data);
|
|
18
21
|
const bytes = new Uint8Array(binaryString.length);
|
|
19
22
|
for (let i = 0; i < binaryString.length; i++) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Plugin } from 'vite';
|
|
1
|
+
import type { Plugin } from 'vite';
|
|
2
2
|
import fs from 'fs';
|
|
3
3
|
import path from 'path';
|
|
4
4
|
|
|
@@ -32,14 +32,11 @@ export function devDataPlugin(): Plugin {
|
|
|
32
32
|
|
|
33
33
|
const devDataJson = JSON.stringify(devDataMap);
|
|
34
34
|
injectedCode = code.replace(
|
|
35
|
-
|
|
36
|
-
`const DEV_DATA_FILES
|
|
35
|
+
"const DEV_DATA_FILES = {};",
|
|
36
|
+
`const DEV_DATA_FILES = ${devDataJson};`
|
|
37
37
|
);
|
|
38
38
|
} else {
|
|
39
|
-
injectedCode = code
|
|
40
|
-
'/* DEV_DATA_INJECTION */',
|
|
41
|
-
'// Dev data not included in production build'
|
|
42
|
-
);
|
|
39
|
+
injectedCode = code;
|
|
43
40
|
}
|
|
44
41
|
|
|
45
42
|
return {
|
|
@@ -2,7 +2,7 @@ import { defineConfig } from "vite";
|
|
|
2
2
|
import react from "@vitejs/plugin-react";
|
|
3
3
|
import tailwindcss from "@tailwindcss/vite";
|
|
4
4
|
import { viteSingleFile } from "vite-plugin-singlefile";
|
|
5
|
-
import { devDataPlugin } from "./vite-plugin-dev-data";
|
|
5
|
+
import { devDataPlugin } from "./gui/vite-plugin-dev-data";
|
|
6
6
|
|
|
7
7
|
export default defineConfig({
|
|
8
8
|
plugins: [react(), tailwindcss(), devDataPlugin(), viteSingleFile()],
|
|
@@ -30,15 +30,15 @@ biolib/_internal/templates/copilot_template/.github/prompts/biolib_run_apps.prom
|
|
|
30
30
|
biolib/_internal/templates/gui_template/.yarnrc.yml,sha256=Rz5t74b8A2OBIODAHQyLurCVZ3JWRg-k6nY-XUaX8nA,25
|
|
31
31
|
biolib/_internal/templates/gui_template/App.tsx,sha256=VfaJO_mxbheRrfO1dU28G9Q4pGsGzeJpPREqtAT4fGE,1692
|
|
32
32
|
biolib/_internal/templates/gui_template/Dockerfile,sha256=nGZQiL7coQBUnH1E2abK2PJ4XRjVS1QXn6HDX9UGpcE,479
|
|
33
|
-
biolib/_internal/templates/gui_template/biolib-sdk.ts,sha256=
|
|
33
|
+
biolib/_internal/templates/gui_template/biolib-sdk.ts,sha256=zRN2h4ws7ZuidxYKaRPaurfTxNJN-hX0MdG6POvdxU0,1195
|
|
34
34
|
biolib/_internal/templates/gui_template/dev-data/output.json,sha256=wKcJQtN7NGaCJkmEWyRjEbBtTLMHB6pOkqTgWsKmOh8,162
|
|
35
35
|
biolib/_internal/templates/gui_template/index.css,sha256=WYds1xQY2of84ebHhRW9ummbw0Bg9N-EyfmBzJKigck,70
|
|
36
36
|
biolib/_internal/templates/gui_template/index.html,sha256=EM5xzJ9CsJalgzL-jLNkAoP4tgosw0WYExcH5W6DOs8,403
|
|
37
37
|
biolib/_internal/templates/gui_template/index.tsx,sha256=YrdrpcckwLo0kYIA-2egtzlo0OMWigGxnt7mNN4qmlU,234
|
|
38
|
-
biolib/_internal/templates/gui_template/package.json,sha256=
|
|
38
|
+
biolib/_internal/templates/gui_template/package.json,sha256=4E8pDdnrYYjmKAL8NYFE3OZzBf4-CWdHWEZFAo_zBwg,652
|
|
39
39
|
biolib/_internal/templates/gui_template/tsconfig.json,sha256=T3DJIzeLQ2BL8HLfPHI-IvHtJhnMXdHOoRjkmQlJQAw,541
|
|
40
|
-
biolib/_internal/templates/gui_template/vite-plugin-dev-data.ts,sha256=
|
|
41
|
-
biolib/_internal/templates/gui_template/vite.config.mts,sha256=
|
|
40
|
+
biolib/_internal/templates/gui_template/vite-plugin-dev-data.ts,sha256=jLFSl7_DU9W3ScM6fm0aFSCzDhAtzhI9G6zr1exze84,1397
|
|
41
|
+
biolib/_internal/templates/gui_template/vite.config.mts,sha256=5RjRfJHgqLOr-LRydBUnDPr5GrHQuRsviTMC60hvKxU,348
|
|
42
42
|
biolib/_internal/templates/init_template/.biolib/config.yml,sha256=gxMVd1wjbsDvMv4byc8fKEdJFby4qgi6v38mO5qmhoY,453
|
|
43
43
|
biolib/_internal/templates/init_template/.github/workflows/biolib.yml,sha256=sphjoiycV_oc4VbaA8wbUEokSMpnrdB6N-bYju_5Ibo,522
|
|
44
44
|
biolib/_internal/templates/init_template/.gitignore,sha256=dR_jhtT0boUspgk3S5PPUwuO0o8gKGIbdwu8IH638CY,20
|
|
@@ -161,8 +161,8 @@ biolib/utils/cache_state.py,sha256=u256F37QSRIVwqKlbnCyzAX4EMI-kl6Dwu6qwj-Qmag,3
|
|
|
161
161
|
biolib/utils/multipart_uploader.py,sha256=XvGP1I8tQuKhAH-QugPRoEsCi9qvbRk-DVBs5PNwwJo,8452
|
|
162
162
|
biolib/utils/seq_util.py,sha256=rImaghQGuIqTVWks6b9P2yKuN34uePUYPUFW_Wyoa4A,6737
|
|
163
163
|
biolib/utils/zip/remote_zip.py,sha256=0wErYlxir5921agfFeV1xVjf29l9VNgGQvNlWOlj2Yc,23232
|
|
164
|
-
pybiolib-1.2.
|
|
165
|
-
pybiolib-1.2.
|
|
166
|
-
pybiolib-1.2.
|
|
167
|
-
pybiolib-1.2.
|
|
168
|
-
pybiolib-1.2.
|
|
164
|
+
pybiolib-1.2.1361.dist-info/METADATA,sha256=Mc0J-5SkgNFy4G4hYW2XaekpJp1qODDRm2TB6LlMaww,1644
|
|
165
|
+
pybiolib-1.2.1361.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
166
|
+
pybiolib-1.2.1361.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
|
|
167
|
+
pybiolib-1.2.1361.dist-info/licenses/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
|
|
168
|
+
pybiolib-1.2.1361.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|