Renée Kooi преди 6 години
родител
ревизия
bebcf49fb3
променени са 5 файла, в които са добавени 154 реда и са изтрити 63 реда
  1. 21 0
      packages/uppy/LICENSE
  2. 39 0
      packages/uppy/index.js
  3. 38 0
      packages/uppy/index.mjs
  4. 56 0
      packages/uppy/package.json
  5. 0 63
      src/index.js

+ 21 - 0
packages/uppy/LICENSE

@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2018 Transloadit
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.

+ 39 - 0
packages/uppy/index.js

@@ -0,0 +1,39 @@
+// Core
+exports.Core = require('@uppy/core')
+
+// Utilities
+exports.server = require('@uppy/server-utils')
+exports.views = {
+  ProviderView: require('@uppy/provider-views')
+}
+
+// Stores
+exports.DefaultStore = require('@uppy/store-default')
+exports.ReduxStore = require('@uppy/store-redux')
+
+// UI plugins
+exports.Dashboard = require('@uppy/dashboard')
+exports.DragDrop = require('@uppy/drag-drop')
+exports.FileInput = require('@uppy/file-input')
+exports.Informer = require('@uppy/informer')
+exports.ProgressBar = require('@uppy/progress-bar')
+exports.StatusBar = require('@uppy/statusbar')
+
+// Acquirers
+exports.Dropbox = require('@uppy/dropbox')
+exports.GoogleDrive = require('@uppy/google-drive')
+exports.Instagram = require('@uppy/instagram')
+exports.Url = require('@uppy/url')
+exports.Webcam = require('@uppy/webcam')
+
+// Uploaders
+exports.AwsS3 = require('@uppy/aws-s3')
+exports.Transloadit = require('@uppy/transloadit')
+exports.Tus = require('@uppy/tus')
+exports.XHRUpload = require('@uppy/xhrupload')
+
+// Miscellaneous
+exports.Form = require('@uppy/form')
+exports.GoldenRetriever = require('@uppy/golden-retriever')
+exports.ReduxDevTools = require('@uppy/redux-dev-tools')
+exports.ThumbnailGenerator = require('@uppy/thumbnail-generator')

+ 38 - 0
packages/uppy/index.mjs

@@ -0,0 +1,38 @@
+// Core
+export { default as Core } from '@uppy/core'
+
+// Utilities
+export { default as server } from '@uppy/server-utils'
+import ProviderView from '@uppy/provider-views'
+export var views = { ProviderView: ProviderView }
+
+// Stores
+export { default as DefaultStore } from '@uppy/store-default'
+export { default as ReduxStore } from '@uppy/store-redux'
+
+// UI plugins
+export { default as Dashboard } from '@uppy/dashboard'
+export { default as DragDrop } from '@uppy/drag-drop'
+export { default as FileInput } from '@uppy/file-input'
+export { default as Informer } from '@uppy/informer'
+export { default as ProgressBar } from '@uppy/progress-bar'
+export { default as StatusBar } from '@uppy/statusbar'
+
+// Acquirers
+export { default as Dropbox } from '@uppy/dropbox'
+export { default as GoogleDrive } from '@uppy/google-drive'
+export { default as Instagram } from '@uppy/instagram'
+export { default as Url } from '@uppy/url'
+export { default as Webcam } from '@uppy/webcam'
+
+// Uploaders
+export { default as AwsS3 } from '@uppy/aws-s3'
+export { default as Transloadit } from '@uppy/transloadit'
+export { default as Tus } from '@uppy/tus'
+export { default as XHRUpload } from '@uppy/xhrupload'
+
+// Miscellaneous
+export { default as Form } from '@uppy/form'
+export { default as GoldenRetriever } from '@uppy/golden-retriever'
+export { default as ReduxDevTools } from '@uppy/redux-dev-tools'
+export { default as ThumbnailGenerator } from '@uppy/thumbnail-generator'

+ 56 - 0
packages/uppy/package.json

@@ -0,0 +1,56 @@
+{
+  "name": "uppy",
+  "description": "Extensible JavaScript file upload widget with support for drag&drop, resumable uploads, previews, restrictions, file processing/encoding, remote providers like Instagram, Dropbox, Google Drive, S3 and more :dog:",
+  "version": "0.25.5",
+  "license": "MIT",
+  "main": "index.js",
+  "module": "index.mjs",
+  "types": "types/index.d.ts",
+  "keywords": [
+    "file uploader",
+    "drag-drop",
+    "progress",
+    "preview",
+    "resumable uploads",
+    "xhr",
+    "tus",
+    "s3",
+    "google drive",
+    "dropbox",
+    "webcam"
+  ],
+  "homepage": "https://uppy.io",
+  "bugs": {
+    "url": "https://github.com/transloadit/uppy/issues"
+  },
+  "repository": {
+    "type": "git",
+    "url": "git+https://github.com/transloadit/uppy.git"
+  },
+  "dependencies": {
+    "@uppy/aws-s3": "^0.25.5",
+    "@uppy/core": "^0.25.5",
+    "@uppy/dashboard": "^0.25.5",
+    "@uppy/drag-drop": "^0.25.5",
+    "@uppy/dropbox": "^0.25.5",
+    "@uppy/file-input": "^0.25.5",
+    "@uppy/form": "^0.25.5",
+    "@uppy/golden-retriever": "^0.25.5",
+    "@uppy/google-drive": "^0.25.5",
+    "@uppy/informer": "^0.25.5",
+    "@uppy/instagram": "^0.25.5",
+    "@uppy/progress-bar": "^0.25.5",
+    "@uppy/provider-views": "^0.25.5",
+    "@uppy/redux-dev-tools": "^0.25.5",
+    "@uppy/server-utils": "^0.25.5",
+    "@uppy/statusbar": "^0.25.5",
+    "@uppy/store-default": "^0.25.5",
+    "@uppy/store-redux": "^0.25.5",
+    "@uppy/thumbnail-generator": "^0.25.5",
+    "@uppy/transloadit": "^0.25.5",
+    "@uppy/tus": "^0.25.5",
+    "@uppy/url": "^0.25.5",
+    "@uppy/webcam": "^0.25.5",
+    "@uppy/xhrupload": "^0.25.5"
+  }
+}

+ 0 - 63
src/index.js

@@ -1,63 +0,0 @@
-const Core = require('@uppy/core')
-
-// Communication with Uppy Server
-const server = require('@uppy/server-utils')
-
-// Reusable views
-const ProviderView = require('@uppy/provider-views')
-
-// Parent
-const Plugin = require('@uppy/core/lib/Plugin')
-
-// Acquirers
-const Dashboard = require('@uppy/dashboard')
-const DragDrop = require('@uppy/drag-drop')
-const FileInput = require('@uppy/file-input')
-const GoogleDrive = require('@uppy/google-drive')
-const Dropbox = require('@uppy/dropbox')
-const Instagram = require('@uppy/instagram')
-const Url = require('@uppy/url')
-const Webcam = require('@uppy/webcam')
-
-// Progressindicators
-const StatusBar = require('@uppy/statusbar')
-const ProgressBar = require('@uppy/progress-bar')
-const Informer = require('@uppy/informer')
-
-// Uploaders
-const Tus = require('@uppy/tus')
-const XHRUpload = require('@uppy/aws-s3')
-const Transloadit = require('@uppy/transloadit')
-const AwsS3 = require('@uppy/aws-s3')
-
-// Helpers and utilities
-const Form = require('@uppy/form')
-const ThumbnailGenerator = require('@uppy/thumbnail-generator')
-const GoldenRetriever = require('@uppy/golden-retriever')
-const ReduxDevTools = require('@uppy/ReduxDevTools')
-
-module.exports = {
-  Core,
-  views: { ProviderView },
-  server,
-  Plugin,
-  StatusBar,
-  ProgressBar,
-  Informer,
-  DragDrop,
-  GoogleDrive,
-  Dropbox,
-  Instagram,
-  Url,
-  FileInput,
-  Tus,
-  XHRUpload,
-  Transloadit,
-  AwsS3,
-  Dashboard,
-  Webcam,
-  Form,
-  ThumbnailGenerator,
-  GoldenRetriever,
-  ReduxDevTools
-}