@webexatech/plugin-collection-transfer 0.0.0-stage → 0.1.2
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/CHANGELOG.md +33 -0
- package/LICENSE +201 -0
- package/README.md +149 -2
- package/client-v2.d.ts +2 -0
- package/client-v2.js +1 -0
- package/client.d.ts +2 -0
- package/client.js +1 -0
- package/dist/client/949.3230de7f57066bc7.js +10 -0
- package/dist/client/SettingsPage.d.ts +3 -0
- package/dist/client/index.d.ts +1 -0
- package/dist/client/index.js +10 -0
- package/dist/client/plugin.d.ts +5 -0
- package/dist/client-v2/907.bed81d14270e80c6.js +10 -0
- package/dist/client-v2/CollectionTransferSettings.d.ts +21 -0
- package/dist/client-v2/SettingsPage.d.ts +4 -0
- package/dist/client-v2/index.d.ts +1 -0
- package/dist/client-v2/index.js +10 -0
- package/dist/client-v2/locale.d.ts +7 -0
- package/dist/client-v2/plugin.d.ts +7 -0
- package/dist/externalVersion.js +24 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +48 -0
- package/dist/locale/en-US.json +70 -0
- package/dist/locale/zh-CN.json +70 -0
- package/dist/node_modules/archiver/LICENSE +22 -0
- package/dist/node_modules/archiver/index.js +68 -0
- package/dist/node_modules/archiver/lib/core.js +974 -0
- package/dist/node_modules/archiver/lib/error.js +40 -0
- package/dist/node_modules/archiver/lib/plugins/json.js +110 -0
- package/dist/node_modules/archiver/lib/plugins/tar.js +167 -0
- package/dist/node_modules/archiver/lib/plugins/zip.js +120 -0
- package/dist/node_modules/archiver/node_modules/async/all.js +119 -0
- package/dist/node_modules/archiver/node_modules/async/allLimit.js +46 -0
- package/dist/node_modules/archiver/node_modules/async/allSeries.js +45 -0
- package/dist/node_modules/archiver/node_modules/async/any.js +122 -0
- package/dist/node_modules/archiver/node_modules/async/anyLimit.js +47 -0
- package/dist/node_modules/archiver/node_modules/async/anySeries.js +46 -0
- package/dist/node_modules/archiver/node_modules/async/apply.js +11 -0
- package/dist/node_modules/archiver/node_modules/async/applyEach.js +57 -0
- package/dist/node_modules/archiver/node_modules/async/applyEachSeries.js +37 -0
- package/dist/node_modules/archiver/node_modules/async/asyncify.js +118 -0
- package/dist/node_modules/archiver/node_modules/async/auto.js +333 -0
- package/dist/node_modules/archiver/node_modules/async/autoInject.js +182 -0
- package/dist/node_modules/archiver/node_modules/async/bower.json +17 -0
- package/dist/node_modules/archiver/node_modules/async/cargo.js +63 -0
- package/dist/node_modules/archiver/node_modules/async/cargoQueue.js +71 -0
- package/dist/node_modules/archiver/node_modules/async/compose.js +55 -0
- package/dist/node_modules/archiver/node_modules/async/concat.js +115 -0
- package/dist/node_modules/archiver/node_modules/async/concatLimit.js +60 -0
- package/dist/node_modules/archiver/node_modules/async/concatSeries.js +41 -0
- package/dist/node_modules/archiver/node_modules/async/constant.js +14 -0
- package/dist/node_modules/archiver/node_modules/async/detect.js +96 -0
- package/dist/node_modules/archiver/node_modules/async/detectLimit.js +48 -0
- package/dist/node_modules/archiver/node_modules/async/detectSeries.js +47 -0
- package/dist/node_modules/archiver/node_modules/async/dir.js +43 -0
- package/dist/node_modules/archiver/node_modules/async/dist/async.js +6062 -0
- package/dist/node_modules/archiver/node_modules/async/dist/async.min.js +1 -0
- package/dist/node_modules/archiver/node_modules/async/doDuring.js +68 -0
- package/dist/node_modules/archiver/node_modules/async/doUntil.js +46 -0
- package/dist/node_modules/archiver/node_modules/async/doWhilst.js +68 -0
- package/dist/node_modules/archiver/node_modules/async/during.js +78 -0
- package/dist/node_modules/archiver/node_modules/async/each.js +129 -0
- package/dist/node_modules/archiver/node_modules/async/eachLimit.js +50 -0
- package/dist/node_modules/archiver/node_modules/async/eachOf.js +185 -0
- package/dist/node_modules/archiver/node_modules/async/eachOfLimit.js +47 -0
- package/dist/node_modules/archiver/node_modules/async/eachOfSeries.js +39 -0
- package/dist/node_modules/archiver/node_modules/async/eachSeries.js +44 -0
- package/dist/node_modules/archiver/node_modules/async/ensureAsync.js +67 -0
- package/dist/node_modules/archiver/node_modules/async/every.js +119 -0
- package/dist/node_modules/archiver/node_modules/async/everyLimit.js +46 -0
- package/dist/node_modules/archiver/node_modules/async/everySeries.js +45 -0
- package/dist/node_modules/archiver/node_modules/async/filter.js +93 -0
- package/dist/node_modules/archiver/node_modules/async/filterLimit.js +45 -0
- package/dist/node_modules/archiver/node_modules/async/filterSeries.js +43 -0
- package/dist/node_modules/archiver/node_modules/async/find.js +96 -0
- package/dist/node_modules/archiver/node_modules/async/findLimit.js +48 -0
- package/dist/node_modules/archiver/node_modules/async/findSeries.js +47 -0
- package/dist/node_modules/archiver/node_modules/async/flatMap.js +115 -0
- package/dist/node_modules/archiver/node_modules/async/flatMapLimit.js +60 -0
- package/dist/node_modules/archiver/node_modules/async/flatMapSeries.js +41 -0
- package/dist/node_modules/archiver/node_modules/async/foldl.js +153 -0
- package/dist/node_modules/archiver/node_modules/async/foldr.js +41 -0
- package/dist/node_modules/archiver/node_modules/async/forEach.js +129 -0
- package/dist/node_modules/archiver/node_modules/async/forEachLimit.js +50 -0
- package/dist/node_modules/archiver/node_modules/async/forEachOf.js +185 -0
- package/dist/node_modules/archiver/node_modules/async/forEachOfLimit.js +47 -0
- package/dist/node_modules/archiver/node_modules/async/forEachOfSeries.js +39 -0
- package/dist/node_modules/archiver/node_modules/async/forEachSeries.js +44 -0
- package/dist/node_modules/archiver/node_modules/async/forever.js +68 -0
- package/dist/node_modules/archiver/node_modules/async/groupBy.js +108 -0
- package/dist/node_modules/archiver/node_modules/async/groupByLimit.js +71 -0
- package/dist/node_modules/archiver/node_modules/async/groupBySeries.js +36 -0
- package/dist/node_modules/archiver/node_modules/async/index.js +588 -0
- package/dist/node_modules/archiver/node_modules/async/inject.js +153 -0
- package/dist/node_modules/archiver/node_modules/async/internal/DoublyLinkedList.js +92 -0
- package/dist/node_modules/archiver/node_modules/async/internal/Heap.js +120 -0
- package/dist/node_modules/archiver/node_modules/async/internal/applyEach.js +29 -0
- package/dist/node_modules/archiver/node_modules/async/internal/asyncEachOfLimit.js +75 -0
- package/dist/node_modules/archiver/node_modules/async/internal/awaitify.js +28 -0
- package/dist/node_modules/archiver/node_modules/async/internal/breakLoop.js +10 -0
- package/dist/node_modules/archiver/node_modules/async/internal/consoleFunc.js +31 -0
- package/dist/node_modules/archiver/node_modules/async/internal/createTester.js +40 -0
- package/dist/node_modules/archiver/node_modules/async/internal/eachOfLimit.js +90 -0
- package/dist/node_modules/archiver/node_modules/async/internal/filter.js +55 -0
- package/dist/node_modules/archiver/node_modules/async/internal/getIterator.js +11 -0
- package/dist/node_modules/archiver/node_modules/async/internal/initialParams.js +14 -0
- package/dist/node_modules/archiver/node_modules/async/internal/isArrayLike.js +10 -0
- package/dist/node_modules/archiver/node_modules/async/internal/iterator.js +57 -0
- package/dist/node_modules/archiver/node_modules/async/internal/map.js +30 -0
- package/dist/node_modules/archiver/node_modules/async/internal/once.js +17 -0
- package/dist/node_modules/archiver/node_modules/async/internal/onlyOnce.js +15 -0
- package/dist/node_modules/archiver/node_modules/async/internal/parallel.js +34 -0
- package/dist/node_modules/archiver/node_modules/async/internal/promiseCallback.js +23 -0
- package/dist/node_modules/archiver/node_modules/async/internal/queue.js +294 -0
- package/dist/node_modules/archiver/node_modules/async/internal/range.js +14 -0
- package/dist/node_modules/archiver/node_modules/async/internal/reject.js +26 -0
- package/dist/node_modules/archiver/node_modules/async/internal/setImmediate.js +34 -0
- package/dist/node_modules/archiver/node_modules/async/internal/withoutIndex.js +10 -0
- package/dist/node_modules/archiver/node_modules/async/internal/wrapAsync.js +34 -0
- package/dist/node_modules/archiver/node_modules/async/log.js +41 -0
- package/dist/node_modules/archiver/node_modules/async/map.js +142 -0
- package/dist/node_modules/archiver/node_modules/async/mapLimit.js +45 -0
- package/dist/node_modules/archiver/node_modules/async/mapSeries.js +44 -0
- package/dist/node_modules/archiver/node_modules/async/mapValues.js +152 -0
- package/dist/node_modules/archiver/node_modules/async/mapValuesLimit.js +61 -0
- package/dist/node_modules/archiver/node_modules/async/mapValuesSeries.js +37 -0
- package/dist/node_modules/archiver/node_modules/async/memoize.js +91 -0
- package/dist/node_modules/archiver/node_modules/async/nextTick.js +52 -0
- package/dist/node_modules/archiver/node_modules/async/package.json +75 -0
- package/dist/node_modules/archiver/node_modules/async/parallel.js +180 -0
- package/dist/node_modules/archiver/node_modules/async/parallelLimit.js +41 -0
- package/dist/node_modules/archiver/node_modules/async/priorityQueue.js +60 -0
- package/dist/node_modules/archiver/node_modules/async/queue.js +24 -0
- package/dist/node_modules/archiver/node_modules/async/race.js +67 -0
- package/dist/node_modules/archiver/node_modules/async/reduce.js +153 -0
- package/dist/node_modules/archiver/node_modules/async/reduceRight.js +41 -0
- package/dist/node_modules/archiver/node_modules/async/reflect.js +78 -0
- package/dist/node_modules/archiver/node_modules/async/reflectAll.js +93 -0
- package/dist/node_modules/archiver/node_modules/async/reject.js +87 -0
- package/dist/node_modules/archiver/node_modules/async/rejectLimit.js +45 -0
- package/dist/node_modules/archiver/node_modules/async/rejectSeries.js +43 -0
- package/dist/node_modules/archiver/node_modules/async/retry.js +159 -0
- package/dist/node_modules/archiver/node_modules/async/retryable.js +77 -0
- package/dist/node_modules/archiver/node_modules/async/select.js +93 -0
- package/dist/node_modules/archiver/node_modules/async/selectLimit.js +45 -0
- package/dist/node_modules/archiver/node_modules/async/selectSeries.js +43 -0
- package/dist/node_modules/archiver/node_modules/async/seq.js +79 -0
- package/dist/node_modules/archiver/node_modules/async/series.js +186 -0
- package/dist/node_modules/archiver/node_modules/async/setImmediate.js +45 -0
- package/dist/node_modules/archiver/node_modules/async/some.js +122 -0
- package/dist/node_modules/archiver/node_modules/async/someLimit.js +47 -0
- package/dist/node_modules/archiver/node_modules/async/someSeries.js +46 -0
- package/dist/node_modules/archiver/node_modules/async/sortBy.js +190 -0
- package/dist/node_modules/archiver/node_modules/async/timeout.js +89 -0
- package/dist/node_modules/archiver/node_modules/async/times.js +50 -0
- package/dist/node_modules/archiver/node_modules/async/timesLimit.js +43 -0
- package/dist/node_modules/archiver/node_modules/async/timesSeries.js +32 -0
- package/dist/node_modules/archiver/node_modules/async/transform.js +173 -0
- package/dist/node_modules/archiver/node_modules/async/tryEach.js +78 -0
- package/dist/node_modules/archiver/node_modules/async/unmemoize.js +25 -0
- package/dist/node_modules/archiver/node_modules/async/until.js +61 -0
- package/dist/node_modules/archiver/node_modules/async/waterfall.js +105 -0
- package/dist/node_modules/archiver/node_modules/async/whilst.js +78 -0
- package/dist/node_modules/archiver/node_modules/async/wrapSync.js +118 -0
- package/dist/node_modules/archiver/node_modules/readable-stream/errors-browser.js +127 -0
- package/dist/node_modules/archiver/node_modules/readable-stream/errors.js +116 -0
- package/dist/node_modules/archiver/node_modules/readable-stream/experimentalWarning.js +17 -0
- package/dist/node_modules/archiver/node_modules/readable-stream/lib/_stream_duplex.js +126 -0
- package/dist/node_modules/archiver/node_modules/readable-stream/lib/_stream_passthrough.js +37 -0
- package/dist/node_modules/archiver/node_modules/readable-stream/lib/_stream_readable.js +1027 -0
- package/dist/node_modules/archiver/node_modules/readable-stream/lib/_stream_transform.js +190 -0
- package/dist/node_modules/archiver/node_modules/readable-stream/lib/_stream_writable.js +641 -0
- package/dist/node_modules/archiver/node_modules/readable-stream/lib/internal/streams/async_iterator.js +180 -0
- package/dist/node_modules/archiver/node_modules/readable-stream/lib/internal/streams/buffer_list.js +183 -0
- package/dist/node_modules/archiver/node_modules/readable-stream/lib/internal/streams/destroy.js +96 -0
- package/dist/node_modules/archiver/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +86 -0
- package/dist/node_modules/archiver/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
- package/dist/node_modules/archiver/node_modules/readable-stream/lib/internal/streams/from.js +52 -0
- package/dist/node_modules/archiver/node_modules/readable-stream/lib/internal/streams/pipeline.js +86 -0
- package/dist/node_modules/archiver/node_modules/readable-stream/lib/internal/streams/state.js +22 -0
- package/dist/node_modules/archiver/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
- package/dist/node_modules/archiver/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
- package/dist/node_modules/archiver/node_modules/readable-stream/package.json +68 -0
- package/dist/node_modules/archiver/node_modules/readable-stream/readable-browser.js +9 -0
- package/dist/node_modules/archiver/node_modules/readable-stream/readable.js +16 -0
- package/dist/node_modules/archiver/node_modules/tar-stream/extract.js +257 -0
- package/dist/node_modules/archiver/node_modules/tar-stream/headers.js +295 -0
- package/dist/node_modules/archiver/node_modules/tar-stream/index.js +2 -0
- package/dist/node_modules/archiver/node_modules/tar-stream/pack.js +255 -0
- package/dist/node_modules/archiver/node_modules/tar-stream/package.json +58 -0
- package/dist/node_modules/archiver/node_modules/tar-stream/sandbox.js +11 -0
- package/dist/node_modules/archiver/package.json +1 -0
- package/dist/node_modules/yauzl/LICENSE +21 -0
- package/dist/node_modules/yauzl/fd-slicer.js +314 -0
- package/dist/node_modules/yauzl/index.js +1 -0
- package/dist/node_modules/yauzl/package.json +1 -0
- package/dist/server/exporter.d.ts +42 -0
- package/dist/server/exporter.js +311 -0
- package/dist/server/field-value-writer.d.ts +9 -0
- package/dist/server/field-value-writer.js +107 -0
- package/dist/server/importer.d.ts +138 -0
- package/dist/server/importer.js +842 -0
- package/dist/server/index.d.ts +1 -0
- package/dist/server/index.js +42 -0
- package/dist/server/package-format.d.ts +50 -0
- package/dist/server/package-format.js +115 -0
- package/dist/server/plugin.d.ts +6 -0
- package/dist/server/plugin.js +61 -0
- package/dist/server/resourcer.d.ts +14 -0
- package/dist/server/resourcer.js +144 -0
- package/package.json +54 -4
- package/server.d.ts +2 -0
- package/server.js +1 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react-i18next"),require("@nocobase/client-v2"),require("react"),require("antd"),require("@ant-design/icons")):"function"==typeof define&&define.amd?define("@webexatech/plugin-collection-transfer/client-v2",["react-i18next","@nocobase/client-v2","react","antd","@ant-design/icons"],t):"object"==typeof exports?exports["@webexatech/plugin-collection-transfer/client-v2"]=t(require("react-i18next"),require("@nocobase/client-v2"),require("react"),require("antd"),require("@ant-design/icons")):e["@webexatech/plugin-collection-transfer/client-v2"]=t(e["react-i18next"],e["@nocobase/client-v2"],e.react,e.antd,e["@ant-design/icons"])}(self,function(e,t,n,r,o){return function(){"use strict";var i,c,a,u={143:function(e,t,n){n.d(t,{C:function(){return c},k:function(){return a}});var r=n(155),o=n(953);function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}var c=JSON.parse('{"UU":"@webexatech/plugin-collection-transfer"}').UU;function a(){var e=(0,o.useTranslation)([c,"client"],{nsMode:"fallback"}).t;return(0,r.useCallback)(function(t,n){var r,o;return e(t,(r=i({},n),o=o={interpolation:i({escapeValue:!1},null==n?void 0:n.interpolation)},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}),r))},[e])}},375:function(e){e.exports=o},485:function(e){e.exports=t},59:function(e){e.exports=r},155:function(e){e.exports=n},953:function(t){t.exports=e}},l={};function f(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={exports:{}};return u[e](n,n.exports,f),n.exports}f.m=u,f.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(t,{a:t}),t},f.d=function(e,t){for(var n in t)f.o(t,n)&&!f.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},f.f={},f.e=function(e){return Promise.all(Object.keys(f.f).reduce(function(t,n){return f.f[n](e,t),t},[]))},f.u=function(e){return""+e+".bed81d14270e80c6.js"},f.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),f.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},p={},f.l=function(e,t,n,r){if(p[e])return void p[e].push(t);if(void 0!==n)for(var o,i,c=document.getElementsByTagName("script"),a=0;a<c.length;a++){var u=c[a];if(u.getAttribute("src")==e||u.getAttribute("data-rspack")=="@webexatech/plugin-collection-transfer/client-v2:"+n){o=u;break}}o||(i=!0,(o=document.createElement("script")).timeout=120,f.nc&&o.setAttribute("nonce",f.nc),o.setAttribute("data-rspack","@webexatech/plugin-collection-transfer/client-v2:"+n),o.src=e),p[e]=[t];var l=function(t,n){o.onerror=o.onload=null,clearTimeout(s);var r=p[e];if(delete p[e],o.parentNode&&o.parentNode.removeChild(o),r&&r.forEach(function(e){return e(n)}),t)return t(n)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=l.bind(null,o.onerror),o.onload=l.bind(null,o.onload),i&&document.head.appendChild(o)},f.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.g.importScripts&&(s=f.g.location+"");var p,s,b=f.g.document;if(!s&&b&&(b.currentScript&&"SCRIPT"===b.currentScript.tagName.toUpperCase()&&(s=b.currentScript.src),!s)){var d=b.getElementsByTagName("script");if(d.length)for(var v=d.length-1;v>-1&&(!s||!/^http(s?):/.test(s));)s=d[v--].src}if(!s)throw Error("Automatic publicPath is not supported in this browser");f.p=s.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i={889:0},f.f.j=function(e,t){var n=f.o(i,e)?i[e]:void 0;if(0!==n)if(n)t.push(n[2]);else{var r=new Promise(function(t,r){n=i[e]=[t,r]});t.push(n[2]=r);var o=f.p+f.u(e),c=Error();f.l(o,function(t){if(f.o(i,e)&&(0!==(n=i[e])&&(i[e]=void 0),n)){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",c.name="ChunkLoadError",c.type=r,c.request=o,n[1](c)}},"chunk-"+e,e)}},c=function(e,t){var n,r,o=t[0],c=t[1],a=t[2],u=0;if(o.some(function(e){return 0!==i[e]})){for(n in c)f.o(c,n)&&(f.m[n]=c[n]);a&&a(f)}for(e&&e(t);u<o.length;u++)r=o[u],f.o(i,r)&&i[r]&&i[r][0](),i[r]=0},(a=self.webpackChunk_webexatech_plugin_collection_transfer_client_v2=self.webpackChunk_webexatech_plugin_collection_transfer_client_v2||[]).forEach(c.bind(null,0)),a.push=c.bind(null,a.push.bind(a));var y={};return!function(){var e="",t="u">typeof document?document.currentScript:null;if(t&&t.src){var n=t.src.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"");n.indexOf("/static/plugins/@webexatech/plugin-collection-transfer/dist/client-v2/")>=0&&(e=n.replace(/\/[^\/]+$/,"/"))}if(!e){var r=window.__webpack_public_path__||"";r&&("/"!==r.charAt(r.length-1)&&(r+="/"),e=r+"static/plugins/@webexatech/plugin-collection-transfer/dist/client-v2/")}if(!e){var o=window.__nocobase_modern_client_prefix__||"v",i="/"+(o=String(o).replace(/^\/+|\/+$/g,"")||"v")+"/";if(!(e=window.__nocobase_public_path__||"")&&window.location&&window.location.pathname){var c=window.location.pathname||"/",a=c.indexOf(i);e=a>=0?c.slice(0,a+1):"/"}e&&(e=e.replace(RegExp("/"+o+"/?$"),"/")),e||(e="/"),"/"!==e.charAt(e.length-1)&&(e+="/"),e+="static/plugins/@webexatech/plugin-collection-transfer/dist/client-v2/"}f.p=e}(),!function(){f.r(y),f.d(y,{default:function(){return u}});var e=f(485),t=f(143);function n(e,t,n,r,o,i,c){try{var a=e[i](c),u=a.value}catch(e){n(e);return}a.done?t(u):Promise.resolve(u).then(r,o)}function r(e,t,n){return(r=a()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&i(o,n.prototype),o}).apply(null,arguments)}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t="function"==typeof Map?new Map:void 0;return(c=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return r(e,arguments,o(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),i(n,e)})(e)}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}var u=function(e){var r;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function c(){var e,t;if(!(this instanceof c))throw TypeError("Cannot call a class as a function");return e=c,t=arguments,e=o(e),function(e,t){var n;if(t&&("object"==((n=t)&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,a()?Reflect.construct(e,t||[],o(this).constructor):e.apply(this,t))}return c.prototype=Object.create(e&&e.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),e&&i(c,e),r=[{key:"load",value:function(){var e;return(e=function(){var e;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),a=Object.defineProperty;return a(c,"next",{value:u(0)}),a(c,"throw",{value:u(1)}),a(c,"return",{value:u(2)}),"function"==typeof Symbol&&a(c,Symbol.iterator,{value:function(){return this}}),c;function u(a){return function(u){var l=[a,u];if(n)throw TypeError("Generator is already executing.");for(;c&&(c=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}(this,function(n){return e=this.t("Collection transfer",{ns:t.C}),this.pluginSettingsManager.addMenuItem({key:"collection-transfer",title:e,icon:"SwapOutlined",aclSnippet:"pm.collection-transfer"}),this.pluginSettingsManager.addPageTabItem({menuKey:"collection-transfer",key:"index",title:e,componentLoader:function(){return f.e("907").then(f.bind(f,598))}}),[2]})},function(){var t=this,r=arguments;return new Promise(function(o,i){var c=e.apply(t,r);function a(e){n(c,o,i,a,u,"next",e)}function u(e){n(c,o,i,a,u,"throw",e)}a(void 0)})}).call(this)}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(c.prototype,r),c}(c(e.Plugin))}(),y}()});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TOptions } from 'i18next';
|
|
2
|
+
export declare const NAMESPACE: string;
|
|
3
|
+
/**
|
|
4
|
+
* Translation hook for this plugin. React already escapes rendered text, so i18next's own HTML escaping is turned
|
|
5
|
+
* off; otherwise interpolated values such as "@nocobase/plugin-x" render as "@nocobase/plugin-x".
|
|
6
|
+
*/
|
|
7
|
+
export declare function useT(): (key: string, options?: TOptions) => string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Application } from '@nocobase/client-v2';
|
|
2
|
+
import { Plugin } from '@nocobase/client-v2';
|
|
3
|
+
export declare const ACL_SNIPPET = "pm.collection-transfer";
|
|
4
|
+
export declare class PluginCollectionTransferClientV2 extends Plugin<Record<string, never>, Application> {
|
|
5
|
+
load(): Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
export default PluginCollectionTransferClientV2;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
module.exports = {
|
|
11
|
+
"@nocobase/client": "2.2.50",
|
|
12
|
+
"react": "18.2.0",
|
|
13
|
+
"@ant-design/icons": "5.6.1",
|
|
14
|
+
"antd": "5.24.2",
|
|
15
|
+
"i18next": "22.5.1",
|
|
16
|
+
"react-i18next": "11.18.6",
|
|
17
|
+
"@nocobase/client-v2": "2.2.50",
|
|
18
|
+
"@nocobase/database": "2.2.50",
|
|
19
|
+
"@nocobase/server": "2.2.50",
|
|
20
|
+
"lodash": "4.18.1",
|
|
21
|
+
"sequelize": "6.35.2",
|
|
22
|
+
"@nocobase/utils": "2.2.50",
|
|
23
|
+
"@nocobase/actions": "2.2.50"
|
|
24
|
+
};
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
var __create = Object.create;
|
|
11
|
+
var __defProp = Object.defineProperty;
|
|
12
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
14
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
15
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
16
|
+
var __export = (target, all) => {
|
|
17
|
+
for (var name in all)
|
|
18
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
19
|
+
};
|
|
20
|
+
var __copyProps = (to, from, except, desc) => {
|
|
21
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
|
+
for (let key of __getOwnPropNames(from))
|
|
23
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
24
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
25
|
+
}
|
|
26
|
+
return to;
|
|
27
|
+
};
|
|
28
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
29
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
30
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
31
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
32
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
33
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
34
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
35
|
+
mod
|
|
36
|
+
));
|
|
37
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
38
|
+
var src_exports = {};
|
|
39
|
+
__export(src_exports, {
|
|
40
|
+
default: () => import_server.default
|
|
41
|
+
});
|
|
42
|
+
module.exports = __toCommonJS(src_exports);
|
|
43
|
+
__reExport(src_exports, require("./server"), module.exports);
|
|
44
|
+
var import_server = __toESM(require("./server"));
|
|
45
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
46
|
+
0 && (module.exports = {
|
|
47
|
+
...require("./server")
|
|
48
|
+
});
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"\"{{collection}}\" contains an expression that is not allowed in a package: {{detail}}": "\"{{collection}}\" contains an expression that is not allowed in a package: {{detail}}",
|
|
3
|
+
"\"{{collection}}\" here lacks columns from the file ({{detail}}), so its data cannot be added": "\"{{collection}}\" here lacks columns from the file ({{detail}}), so its data cannot be added",
|
|
4
|
+
"\"{{collection}}\" would change something outside the package: {{detail}}": "\"{{collection}}\" would change something outside the package: {{detail}}",
|
|
5
|
+
"A database table for \"{{collection}}\" already exists in this environment": "A database table for \"{{collection}}\" already exists in this environment",
|
|
6
|
+
"Added because they are needed: {{names}}": "Added because they are needed: {{names}}",
|
|
7
|
+
"Already exists here": "Already exists here",
|
|
8
|
+
"Cancel": "Cancel",
|
|
9
|
+
"Checking package…": "Checking package…",
|
|
10
|
+
"Choose what to do with the existing collection \"{{collection}}\"": "Choose what to do with the existing collection \"{{collection}}\"",
|
|
11
|
+
"Click or drag a collection package (.zip) here": "Click or drag a collection package (.zip) here",
|
|
12
|
+
"Collection": "Collection",
|
|
13
|
+
"Collection \"{{collection}}\" already exists in this environment": "Collection \"{{collection}}\" already exists in this environment",
|
|
14
|
+
"Collection \"{{collection}}\" is referenced by a relation but does not exist in this environment": "Collection \"{{collection}}\" is referenced by a relation but does not exist in this environment",
|
|
15
|
+
"Collection \"{{collection}}\" uses template \"{{detail}}\", which cannot be transferred yet": "Collection \"{{collection}}\" uses template \"{{detail}}\", which cannot be transferred yet",
|
|
16
|
+
"Collection name \"{{collection}}\" is not valid": "Collection name \"{{collection}}\" is not valid",
|
|
17
|
+
"Collection transfer": "Collection transfer",
|
|
18
|
+
"Enabled in the source environment but not here: {{names}}": "Enabled in the source environment but not here: {{names}}",
|
|
19
|
+
"Export": "Export",
|
|
20
|
+
"Exported at": "Exported at",
|
|
21
|
+
"Exported {{count}} collection(s)": "Exported {{count}} collection(s)",
|
|
22
|
+
"Field \"{{collection}}.{{field}}\" uses the \"{{detail}}\" field kind, which is not available here": "Field \"{{collection}}.{{field}}\" uses the \"{{detail}}\" field kind, which is not available here",
|
|
23
|
+
"Field \"{{collection}}.{{field}}\" uses type \"{{detail}}\", which is not available here": "Field \"{{collection}}.{{field}}\" uses type \"{{detail}}\", which is not available here",
|
|
24
|
+
"Fields": "Fields",
|
|
25
|
+
"Import": "Import",
|
|
26
|
+
"Imported {{count}} collection(s)": "Imported {{count}} collection(s)",
|
|
27
|
+
"Include data": "Include data",
|
|
28
|
+
"Includes data": "Includes data",
|
|
29
|
+
"Junction table": "Junction table",
|
|
30
|
+
"Missing columns here: {{columns}}": "Missing columns here: {{columns}}",
|
|
31
|
+
"Must already exist in the target environment: {{names}}": "Must already exist in the target environment: {{names}}",
|
|
32
|
+
"Name": "Name",
|
|
33
|
+
"Name \"{{detail}}\" in \"{{collection}}\" is too long for the database": "Name \"{{detail}}\" in \"{{collection}}\" is too long for the database",
|
|
34
|
+
"No": "No",
|
|
35
|
+
"No collections to export": "No collections to export",
|
|
36
|
+
"No rows were imported.": "No rows were imported.",
|
|
37
|
+
"Not supported": "Not supported",
|
|
38
|
+
"Nothing is changed until you confirm the import.": "Nothing is changed until you confirm the import.",
|
|
39
|
+
"Only general collections can be transferred in this version": "Only general collections can be transferred in this version",
|
|
40
|
+
"Overridden: {{names}}": "Overridden: {{names}}",
|
|
41
|
+
"Override collection and data": "Override collection and data",
|
|
42
|
+
"Override collection, without data": "Override collection, without data",
|
|
43
|
+
"Overriding also removes these fields from other collections: {{fields}}": "Overriding also removes these fields from other collections: {{fields}}",
|
|
44
|
+
"Preview": "Preview",
|
|
45
|
+
"Ready to import. All collections are created in a single step and rolled back on error.": "Ready to import. All collections are created in a single step and rolled back on error.",
|
|
46
|
+
"Replace and import": "Replace and import",
|
|
47
|
+
"Replace existing collections?": "Replace existing collections?",
|
|
48
|
+
"Requires": "Requires",
|
|
49
|
+
"Rows": "Rows",
|
|
50
|
+
"Select at least one collection": "Select at least one collection",
|
|
51
|
+
"Select the collections to export. The file can be imported into another environment.": "Select the collections to export. The file can be imported into another environment.",
|
|
52
|
+
"Skip collection and data": "Skip collection and data",
|
|
53
|
+
"Skip collection, import data": "Skip collection, import data",
|
|
54
|
+
"Skipped: {{names}}": "Skipped: {{names}}",
|
|
55
|
+
"Source version": "Source version",
|
|
56
|
+
"Template": "Template",
|
|
57
|
+
"The existing data of these collections will be permanently deleted:": "The existing data of these collections will be permanently deleted:",
|
|
58
|
+
"The file contains no data": "The file contains no data",
|
|
59
|
+
"The package format version {{detail}} is not supported": "The package format version {{detail}} is not supported",
|
|
60
|
+
"The package is incomplete or damaged ({{detail}})": "The package is incomplete or damaged ({{detail}})",
|
|
61
|
+
"The package was exported from a different database type ({{detail}})": "The package was exported from a different database type ({{detail}})",
|
|
62
|
+
"This package cannot be imported here": "This package cannot be imported here",
|
|
63
|
+
"Title": "Title",
|
|
64
|
+
"Upload a package file": "Upload a package file",
|
|
65
|
+
"What to do": "What to do",
|
|
66
|
+
"What to do with \"{{name}}\"": "What to do with \"{{name}}\"",
|
|
67
|
+
"Yes": "Yes",
|
|
68
|
+
"{{name}}: {{count}} row(s)": "{{name}}: {{count}} row(s)",
|
|
69
|
+
"\"{{collection}}\" is a system or plugin collection here and cannot be replaced by an import": "\"{{collection}}\" is a system or plugin collection here and cannot be replaced by an import"
|
|
70
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"\"{{collection}}\" contains an expression that is not allowed in a package: {{detail}}": "“{{collection}}”包含迁移文件中不允许的表达式:{{detail}}",
|
|
3
|
+
"\"{{collection}}\" here lacks columns from the file ({{detail}}), so its data cannot be added": "当前环境中的“{{collection}}”缺少文件中的字段({{detail}}),无法添加其数据",
|
|
4
|
+
"\"{{collection}}\" would change something outside the package: {{detail}}": "“{{collection}}”会修改迁移文件之外的内容:{{detail}}",
|
|
5
|
+
"A database table for \"{{collection}}\" already exists in this environment": "当前环境中已存在“{{collection}}”对应的数据库表",
|
|
6
|
+
"Added because they are needed: {{names}}": "因依赖关系自动加入:{{names}}",
|
|
7
|
+
"Already exists here": "当前环境中已存在",
|
|
8
|
+
"Cancel": "取消",
|
|
9
|
+
"Checking package…": "正在检查文件…",
|
|
10
|
+
"Choose what to do with the existing collection \"{{collection}}\"": "请选择如何处理已存在的数据表“{{collection}}”",
|
|
11
|
+
"Click or drag a collection package (.zip) here": "点击或拖拽数据表迁移文件(.zip)到此处",
|
|
12
|
+
"Collection": "数据表",
|
|
13
|
+
"Collection \"{{collection}}\" already exists in this environment": "数据表“{{collection}}”在当前环境中已存在",
|
|
14
|
+
"Collection \"{{collection}}\" is referenced by a relation but does not exist in this environment": "数据表“{{collection}}”被关系字段引用,但在当前环境中不存在",
|
|
15
|
+
"Collection \"{{collection}}\" uses template \"{{detail}}\", which cannot be transferred yet": "数据表“{{collection}}”使用的模板“{{detail}}”暂不支持迁移",
|
|
16
|
+
"Collection name \"{{collection}}\" is not valid": "数据表名称“{{collection}}”无效",
|
|
17
|
+
"Collection transfer": "数据表迁移",
|
|
18
|
+
"Enabled in the source environment but not here: {{names}}": "在来源环境中已启用、但当前环境未启用:{{names}}",
|
|
19
|
+
"Export": "导出",
|
|
20
|
+
"Exported at": "导出时间",
|
|
21
|
+
"Exported {{count}} collection(s)": "已导出 {{count}} 个数据表",
|
|
22
|
+
"Field \"{{collection}}.{{field}}\" uses the \"{{detail}}\" field kind, which is not available here": "字段“{{collection}}.{{field}}”使用的字段类型“{{detail}}”在当前环境中不可用",
|
|
23
|
+
"Field \"{{collection}}.{{field}}\" uses type \"{{detail}}\", which is not available here": "字段“{{collection}}.{{field}}”使用的类型“{{detail}}”在当前环境中不可用",
|
|
24
|
+
"Fields": "字段",
|
|
25
|
+
"Import": "导入",
|
|
26
|
+
"Imported {{count}} collection(s)": "已导入 {{count}} 个数据表",
|
|
27
|
+
"Include data": "包含数据",
|
|
28
|
+
"Includes data": "包含数据",
|
|
29
|
+
"Junction table": "中间表",
|
|
30
|
+
"Missing columns here: {{columns}}": "当前环境缺少字段:{{columns}}",
|
|
31
|
+
"Must already exist in the target environment: {{names}}": "目标环境中必须已存在:{{names}}",
|
|
32
|
+
"Name": "名称",
|
|
33
|
+
"Name \"{{detail}}\" in \"{{collection}}\" is too long for the database": "“{{collection}}”中的名称“{{detail}}”超出数据库长度限制",
|
|
34
|
+
"No": "否",
|
|
35
|
+
"No collections to export": "没有可导出的数据表",
|
|
36
|
+
"No rows were imported.": "未导入任何数据行。",
|
|
37
|
+
"Not supported": "不支持",
|
|
38
|
+
"Nothing is changed until you confirm the import.": "确认导入前不会做任何更改。",
|
|
39
|
+
"Only general collections can be transferred in this version": "当前版本仅支持迁移普通数据表",
|
|
40
|
+
"Overridden: {{names}}": "已覆盖:{{names}}",
|
|
41
|
+
"Override collection and data": "覆盖数据表和数据",
|
|
42
|
+
"Override collection, without data": "覆盖数据表,不含数据",
|
|
43
|
+
"Overriding also removes these fields from other collections: {{fields}}": "覆盖还会删除其他数据表中的这些字段:{{fields}}",
|
|
44
|
+
"Preview": "预览",
|
|
45
|
+
"Ready to import. All collections are created in a single step and rolled back on error.": "可以导入。所有数据表将在同一事务中创建,出错时全部回滚。",
|
|
46
|
+
"Replace and import": "替换并导入",
|
|
47
|
+
"Replace existing collections?": "替换已存在的数据表?",
|
|
48
|
+
"Requires": "依赖",
|
|
49
|
+
"Rows": "行数",
|
|
50
|
+
"Select at least one collection": "请至少选择一个数据表",
|
|
51
|
+
"Select the collections to export. The file can be imported into another environment.": "选择要导出的数据表,导出的文件可以导入到其他环境。",
|
|
52
|
+
"Skip collection and data": "跳过数据表和数据",
|
|
53
|
+
"Skip collection, import data": "跳过数据表,导入数据",
|
|
54
|
+
"Skipped: {{names}}": "已跳过:{{names}}",
|
|
55
|
+
"Source version": "来源版本",
|
|
56
|
+
"Template": "模板",
|
|
57
|
+
"The existing data of these collections will be permanently deleted:": "以下数据表的现有数据将被永久删除:",
|
|
58
|
+
"The file contains no data": "文件中不包含数据",
|
|
59
|
+
"The package format version {{detail}} is not supported": "不支持该文件格式版本 {{detail}}",
|
|
60
|
+
"The package is incomplete or damaged ({{detail}})": "文件不完整或已损坏({{detail}})",
|
|
61
|
+
"The package was exported from a different database type ({{detail}})": "该文件导出自不同类型的数据库({{detail}})",
|
|
62
|
+
"This package cannot be imported here": "该文件无法导入到当前环境",
|
|
63
|
+
"Title": "标题",
|
|
64
|
+
"Upload a package file": "请上传迁移文件",
|
|
65
|
+
"What to do": "处理方式",
|
|
66
|
+
"What to do with \"{{name}}\"": "如何处理“{{name}}”",
|
|
67
|
+
"Yes": "是",
|
|
68
|
+
"{{name}}: {{count}} row(s)": "{{name}}:{{count}} 行",
|
|
69
|
+
"\"{{collection}}\" is a system or plugin collection here and cannot be replaced by an import": "“{{collection}}”在当前环境中是系统或插件数据表,不能通过导入替换"
|
|
70
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person
|
|
4
|
+
obtaining a copy of this software and associated documentation
|
|
5
|
+
files (the "Software"), to deal in the Software without
|
|
6
|
+
restriction, including without limitation the rights to use,
|
|
7
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
copies of the Software, and to permit persons to whom the
|
|
9
|
+
Software is furnished to do so, subject to the following
|
|
10
|
+
conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be
|
|
13
|
+
included in all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
16
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
17
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
18
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
19
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
20
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
21
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
22
|
+
OTHER DEALINGS IN THE SOFTWARE.
|