@galadrim/galadmin 0.1.6 → 0.1.8

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.
Files changed (27) hide show
  1. package/README.md +21 -0
  2. package/dist/api.js +40 -4
  3. package/dist/api.js.map +1 -1
  4. package/dist/tsconfig.tsbuildinfo +1 -1
  5. package/dist/types/config.d.ts +5 -0
  6. package/package.json +3 -2
  7. package/src/api.ts +38 -4
  8. package/src/front/build/asset-manifest.json +7 -7
  9. package/src/front/build/index.html +1 -1
  10. package/src/front/build/static/js/{2.f7eb6c73.chunk.js → 2.778cdac1.chunk.js} +3 -3
  11. package/src/front/build/static/js/{2.f7eb6c73.chunk.js.LICENSE.txt → 2.778cdac1.chunk.js.LICENSE.txt} +0 -0
  12. package/src/front/build/static/js/2.778cdac1.chunk.js.map +1 -0
  13. package/src/front/build/static/js/main.e23875e4.chunk.js +2 -0
  14. package/src/front/build/static/js/main.e23875e4.chunk.js.map +1 -0
  15. package/src/front/node_modules/.cache/.eslintcache +1 -1
  16. package/src/front/node_modules/.cache/babel-loader/0568c20044caccc1c4bd148d4199ec33.json +1 -0
  17. package/src/front/node_modules/.cache/babel-loader/8bf1ffce0aafe512d86b54b91d3edb80.json +1 -0
  18. package/src/front/node_modules/.cache/terser-webpack-plugin/content-v2/sha512/a0/a5/02eb7c3686fc0b8b368d7571ac99d9057923ade02523769a0104df72645454c3abb5e1abd7959435a4592ccfc6f625105898092e038cb444bea039289fc9 +1 -0
  19. package/src/front/node_modules/.cache/terser-webpack-plugin/content-v2/sha512/c2/5c/7ec02edf68834865ea433a20d030f518416edf440adfad32f86931fc70519fb17d2ff282c9020744289218a9fe89f1e1d5f7280e9438171f28f8c5075582 +1 -0
  20. package/src/front/node_modules/.cache/terser-webpack-plugin/index-v5/62/bf/4d0bed81c731f8de025d3d7325b3ddecae4d4940036de9027a342c5100df +2 -0
  21. package/src/front/node_modules/.cache/terser-webpack-plugin/index-v5/f3/67/591e18ebf4c0bef454dd26c51b3a6caca691338ed27811d59ddef26e7031 +2 -0
  22. package/src/front/src/components/inputs/FileInput.js +6 -3
  23. package/src/front/src/components/inputs/RichTextInput.js +2 -2
  24. package/src/types/config.ts +5 -0
  25. package/src/front/build/static/js/2.f7eb6c73.chunk.js.map +0 -1
  26. package/src/front/build/static/js/main.8f781ead.chunk.js +0 -2
  27. package/src/front/build/static/js/main.8f781ead.chunk.js.map +0 -1
@@ -0,0 +1,2 @@
1
+
2
+ 2bd7c8fe71ca5eae246b86a00a6aec1cf8e0b938 {"key":"{\"terser\":\"5.7.1\",\"terser-webpack-plugin\":\"4.2.3\",\"terser-webpack-plugin-options\":{\"test\":new RegExp(\"\\\\.[cm]?js(\\\\?.*)?$\", \"i\"),\"extractComments\":true,\"sourceMap\":true,\"cache\":true,\"cacheKeys\":defaultCacheKeys => defaultCacheKeys,\"parallel\":true,\"include\":undefined,\"exclude\":undefined,\"minify\":undefined,\"terserOptions\":{\"parse\":{\"ecma\":8},\"compress\":{\"ecma\":5,\"warnings\":false,\"comparisons\":false,\"inline\":2},\"mangle\":{\"safari10\":true},\"keep_classnames\":false,\"keep_fnames\":false,\"output\":{\"ecma\":5,\"comments\":false,\"ascii_only\":true},\"ecma\":5}},\"name\":\"static\\u002Fjs\\u002Fmain.e23875e4.chunk.js\",\"contentHash\":\"77f46ce61f1309303696\"}","integrity":"sha512-wlx+wC7faINIZepDOiDQMPUYQW7fRArfrTL4aTH8cFGfsX0v8oLJAgdEKJIYqf6J8eHV9ygOlDgXHyj4xQdVgg==","time":1663166663831,"size":370646}
@@ -0,0 +1,2 @@
1
+
2
+ b5d6c47f518ef095b5a629db61a66c71a7ac5aab {"key":"{\"terser\":\"5.7.1\",\"terser-webpack-plugin\":\"4.2.3\",\"terser-webpack-plugin-options\":{\"test\":new RegExp(\"\\\\.[cm]?js(\\\\?.*)?$\", \"i\"),\"extractComments\":true,\"sourceMap\":true,\"cache\":true,\"cacheKeys\":defaultCacheKeys => defaultCacheKeys,\"parallel\":true,\"include\":undefined,\"exclude\":undefined,\"minify\":undefined,\"terserOptions\":{\"parse\":{\"ecma\":8},\"compress\":{\"ecma\":5,\"warnings\":false,\"comparisons\":false,\"inline\":2},\"mangle\":{\"safari10\":true},\"keep_classnames\":false,\"keep_fnames\":false,\"output\":{\"ecma\":5,\"comments\":false,\"ascii_only\":true},\"ecma\":5}},\"name\":\"static\\u002Fjs\\u002F2.778cdac1.chunk.js\",\"contentHash\":\"ce4b87f45f8664279b8c\"}","integrity":"sha512-oKUC63w2hvwLizaNdXGsmdkFeSOt4CUjdpoBBN9yZFRUw6u14avXlZQ1pFksz8b2JRBYmAkuA4y0RL6gOSifyQ==","time":1663166667112,"size":1867086}
@@ -1,8 +1,12 @@
1
1
  import { useRef, useState } from "react";
2
2
  import axios from "axios";
3
+ import {
4
+ useParams
5
+ } from "react-router-dom";
3
6
 
4
7
  export default ({ column, onChange, initialData }) => {
5
8
  const form = useRef(null);
9
+ const { viewIndex } = useParams();
6
10
  const [isLoading, setIsLoading] = useState(false)
7
11
  const [path, setPath] = useState(initialData?.[column.name])
8
12
 
@@ -15,9 +19,8 @@ export default ({ column, onChange, initialData }) => {
15
19
  url: `/uploadFile`,
16
20
  data: f,
17
21
  params: {
18
- subdirectory: column.subdirectory,
19
- publicPath: column.publicPath,
20
- s3Config: column.s3Config
22
+ viewIndex,
23
+ columnId: column.__id__
21
24
  },
22
25
  headers: { "Content-Type": "multipart/form-data" }
23
26
  })
@@ -14,7 +14,7 @@ export default ({ column, onChange, initialData }) => {
14
14
  modules: {
15
15
  toolbar: [
16
16
  [{
17
- 'header': [1, 2, 3, false]
17
+ 'header': [1, 2, 3, 4, false]
18
18
  }],
19
19
  ['bold', 'italic', 'underline', 'link'],
20
20
  ['image'],
@@ -52,4 +52,4 @@ export default ({ column, onChange, initialData }) => {
52
52
  <div class="quill" ref={quillContainer} style={column.height ? { height: column.height } : null} />
53
53
  </div>
54
54
  )
55
- }
55
+ }
@@ -107,6 +107,11 @@ export type FileColumn = {
107
107
  subfolder?: string
108
108
  signedUrlNeeded?: boolean,
109
109
  region?: string,
110
+ },
111
+ sftpConfig?: {
112
+ host: string,
113
+ user: string,
114
+ password: string
110
115
  }
111
116
  }
112
117