@lobb-js/lobb-ext-storage 0.8.2 → 0.8.4
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/extension.types.d.ts +25 -0
- package/dist/extension.types.js +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +25 -0
- package/dist/lib/components/childrenFileExplorer.svelte +12 -0
- package/dist/lib/components/childrenFileExplorer.svelte.d.ts +14 -0
- package/dist/lib/components/explorerNotSupported.svelte +13 -0
- package/dist/lib/components/explorerNotSupported.svelte.d.ts +14 -0
- package/dist/lib/components/fileExplorer.svelte +399 -0
- package/dist/lib/components/fileExplorer.svelte.d.ts +22 -0
- package/dist/lib/components/fileIcon.svelte +45 -0
- package/dist/lib/components/fileIcon.svelte.d.ts +14 -0
- package/dist/lib/components/fileManagerBreadCrumbs.svelte +50 -0
- package/dist/lib/components/fileManagerBreadCrumbs.svelte.d.ts +14 -0
- package/dist/lib/components/foreignKeyComponent.svelte +44 -0
- package/dist/lib/components/foreignKeyComponent.svelte.d.ts +14 -0
- package/dist/lib/components/pages/fileExplorerPage.svelte +66 -0
- package/dist/lib/components/pages/fileExplorerPage.svelte.d.ts +14 -0
- package/dist/lib/index.d.ts +0 -0
- package/dist/lib/index.js +2 -0
- package/dist/lib/utils.d.ts +12 -0
- package/dist/lib/utils.js +5 -0
- package/dist/tests/fileManager.spec.d.ts +1 -0
- package/dist/tests/fileManager.spec.js +18 -0
- package/dist/tests/package.json +1 -0
- package/dist/tests/playwright.config.cjs +27 -0
- package/dist/tests/playwright.config.d.cts +2 -0
- package/package.json +7 -3
- package/.github/workflows/create_tag_on_version_change.yaml +0 -45
- package/.github/workflows/publish_npm_package.yaml +0 -26
- package/.vscode/settings.json +0 -5
- package/CHANGELOG.md +0 -207
- package/lobb.ts +0 -54
- package/scripts/postpublish.sh +0 -12
- package/scripts/prepublish.sh +0 -17
- package/studio/app.html +0 -12
- package/studio/routes/+layout.svelte +0 -7
- package/studio/routes/+layout.ts +0 -1
- package/studio/routes/[...path]/+page.svelte +0 -6
- package/svelte.config.js +0 -24
- package/todo.md +0 -36
- package/tsconfig.app.json +0 -27
- package/tsconfig.json +0 -13
- package/tsconfig.node.json +0 -26
- package/vite.config.ts +0 -8
package/svelte.config.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import adapter from '@sveltejs/adapter-node';
|
|
2
|
-
|
|
3
|
-
/** @type {import('@sveltejs/kit').Config} */
|
|
4
|
-
const config = {
|
|
5
|
-
kit: {
|
|
6
|
-
adapter: adapter(),
|
|
7
|
-
paths: {
|
|
8
|
-
base: '/studio'
|
|
9
|
-
},
|
|
10
|
-
files: {
|
|
11
|
-
lib: 'studio/lib',
|
|
12
|
-
routes: 'studio/routes',
|
|
13
|
-
appTemplate: 'studio/app.html',
|
|
14
|
-
assets: 'public',
|
|
15
|
-
hooks: {
|
|
16
|
-
server: 'studio/hooks.server',
|
|
17
|
-
client: 'studio/hooks.client',
|
|
18
|
-
},
|
|
19
|
-
params: 'studio/params',
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export default config;
|
package/todo.md
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
# high priority
|
|
2
|
-
|
|
3
|
-
- move the validation logic that checks if the directory of uploaded file path exists or not in the service level and not in the controller level.
|
|
4
|
-
|
|
5
|
-
- a better way to implement this extension is to update or overright the collectionService. so that you can use the same exsting CollectionService class normally but with the ability to adjust the params of that service funciton. so the storage extension version of the normal collection overright will have different params set. for example it should have a param of type blob or File. so you shouldnt really expose services. in the mod.ts. the services already exists why expose. we shouldnt really have at all the services property
|
|
6
|
-
- remove services from this extension and from everywhere
|
|
7
|
-
- instead of creating your own service method. you can just overwrite or update the existing method
|
|
8
|
-
- for example to upload a file you can just use the collectionService mutated create version instead of creating your own function
|
|
9
|
-
- you need to also overwrite the controllers to call the new service function correctly
|
|
10
|
-
- this way is much better from exposing a bunch of service functions and more consistant
|
|
11
|
-
- you should use workflows to overwrite the controllers and the services
|
|
12
|
-
- make sure the tests work correctly
|
|
13
|
-
- remove totally the services from this extension and from the extensionSystem totally
|
|
14
|
-
- go to the `social_to_courier` and fix the storage update part.
|
|
15
|
-
|
|
16
|
-
- remove the unique index of (location, name)
|
|
17
|
-
- implement uploading a file by drag and drop
|
|
18
|
-
- implement the listview
|
|
19
|
-
|
|
20
|
-
# low priority
|
|
21
|
-
|
|
22
|
-
- you need to add a refresh button
|
|
23
|
-
- when the user tries to upload a file or a directory in a non existing.
|
|
24
|
-
directory you have to respond with a 400 Error
|
|
25
|
-
- check if a file exists by sending a GET request instead of reading the
|
|
26
|
-
directory. because thats a unit test specific to local adapter. but the first
|
|
27
|
-
way would work in all kinds of adapters. and it will make the unit tests more
|
|
28
|
-
adaptable
|
|
29
|
-
- prevent the user from not adding a / at the beggining of the path or adding a
|
|
30
|
-
/ at the end of the path when inserting or updating a storage record and make
|
|
31
|
-
sure the path is not empty
|
|
32
|
-
- implement a validation mechanism at the instatiating of the storage extension
|
|
33
|
-
that checks of all operations are successfully doable in that specific adapter
|
|
34
|
-
without issues. (really important)
|
|
35
|
-
- Allow multiple versions of a file to be stored, enabling users to access
|
|
36
|
-
previous versions if needed.
|
package/tsconfig.app.json
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "@tsconfig/svelte/tsconfig.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
5
|
-
"target": "ES2022",
|
|
6
|
-
"useDefineForClassFields": true,
|
|
7
|
-
"module": "ESNext",
|
|
8
|
-
"types": ["svelte", "vite/client"],
|
|
9
|
-
"noEmit": true,
|
|
10
|
-
"allowArbitraryExtensions": true,
|
|
11
|
-
/**
|
|
12
|
-
* Typecheck JS in `.svelte` and `.js` files by default.
|
|
13
|
-
* Disable checkJs if you'd like to use dynamic types in JS.
|
|
14
|
-
* Note that setting allowJs false does not prevent the use
|
|
15
|
-
* of JS in `.svelte` files.
|
|
16
|
-
*/
|
|
17
|
-
"allowJs": true,
|
|
18
|
-
"checkJs": true,
|
|
19
|
-
"moduleDetection": "force",
|
|
20
|
-
"baseUrl": ".",
|
|
21
|
-
"paths": {
|
|
22
|
-
"$lib": ["./studio/lib"],
|
|
23
|
-
"$lib/*": ["./studio/lib/*"]
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
"include": ["studio/**/*.ts", "studio/**/*.js", "studio/**/*.svelte"]
|
|
27
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./.svelte-kit/tsconfig.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"allowJs": true,
|
|
5
|
-
"checkJs": true,
|
|
6
|
-
"esModuleInterop": true,
|
|
7
|
-
"forceConsistentCasingInFileNames": true,
|
|
8
|
-
"resolveJsonModule": true,
|
|
9
|
-
"skipLibCheck": true,
|
|
10
|
-
"sourceMap": true,
|
|
11
|
-
"strict": true
|
|
12
|
-
}
|
|
13
|
-
}
|
package/tsconfig.node.json
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
|
4
|
-
"target": "ES2023",
|
|
5
|
-
"lib": ["ES2023"],
|
|
6
|
-
"module": "ESNext",
|
|
7
|
-
"types": ["node"],
|
|
8
|
-
"skipLibCheck": true,
|
|
9
|
-
|
|
10
|
-
/* Bundler mode */
|
|
11
|
-
"moduleResolution": "bundler",
|
|
12
|
-
"allowImportingTsExtensions": true,
|
|
13
|
-
"verbatimModuleSyntax": true,
|
|
14
|
-
"moduleDetection": "force",
|
|
15
|
-
"noEmit": true,
|
|
16
|
-
|
|
17
|
-
/* Linting */
|
|
18
|
-
"strict": true,
|
|
19
|
-
"noUnusedLocals": true,
|
|
20
|
-
"noUnusedParameters": true,
|
|
21
|
-
"erasableSyntaxOnly": true,
|
|
22
|
-
"noFallthroughCasesInSwitch": true,
|
|
23
|
-
"noUncheckedSideEffectImports": true
|
|
24
|
-
},
|
|
25
|
-
"include": ["vite.config.ts"]
|
|
26
|
-
}
|
package/vite.config.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { sveltekit } from '@sveltejs/kit/vite';
|
|
2
|
-
import { defineConfig } from 'vite';
|
|
3
|
-
import tailwindcss from "@tailwindcss/vite";
|
|
4
|
-
import { lobbStudioPlugins } from '@lobb-js/studio/vite-plugins';
|
|
5
|
-
|
|
6
|
-
export default defineConfig({
|
|
7
|
-
plugins: [tailwindcss(), sveltekit(), ...lobbStudioPlugins()],
|
|
8
|
-
});
|