learningtribes-studio-frontend 1.1.0 → 1.2.1
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/accessibilityPolicy.min.js +1 -1
- package/dist/assets.min.js +1 -1
- package/dist/assets.min.js.map +1 -1
- package/dist/common.min.js +9 -9
- package/dist/common.min.js.map +1 -1
- package/dist/courseHealthCheck.min.js +1 -1
- package/dist/courseOutlineHealthCheck.min.js +1 -1
- package/dist/editImageModal.min.js +1 -1
- package/dist/i18n/messages/ar.json +6 -5
- package/dist/i18n/messages/de_DE.json +16 -0
- package/dist/i18n/messages/el.json +16 -0
- package/dist/i18n/messages/es_419.json +1 -0
- package/dist/i18n/messages/fr.json +3 -2
- package/dist/i18n/messages/it_IT.json +16 -0
- package/dist/i18n/messages/pt_BR.json +16 -0
- package/dist/i18n/messages/tr_TR.json +16 -0
- package/dist/i18nMessages.min.js +1 -1
- package/dist/i18nMessages.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/AssetsFilters/index.jsx +5 -5
- package/src/components/AssetsPage/index.jsx +7 -7
- package/src/components/AssetsResultsCount/index.jsx +1 -1
- package/src/data/i18n/default/transifex_input.json +7 -6
- package/src/data/i18n/locales/ar.json +6 -5
- package/src/data/i18n/locales/currentlySupportedLangs.jsx +15 -0
- package/src/data/i18n/locales/de_DE.json +16 -0
- package/src/data/i18n/locales/el.json +16 -0
- package/src/data/i18n/locales/es_419.json +1 -0
- package/src/data/i18n/locales/fr.json +3 -2
- package/src/data/i18n/locales/it_IT.json +16 -0
- package/src/data/i18n/locales/pt_BR.json +16 -0
- package/src/data/i18n/locales/tr_TR.json +16 -0
- package/src/utils/i18n/loadI18nDomData.jsx +2 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","2","exports","module","l","m","c","d","name","getter","o","defineProperty","configurable","enumerable","get","r","value","n","__esModule","object","property","p","jsonpArray","window","oldJsonpFunction","bind","slice"],"mappings":"aACA,SAAAA,EAAAC,GAOA,IANA,IAKAC,EAAAC,EALAC,EAAAH,EAAA,GACAI,EAAAJ,EAAA,GACAK,EAAAL,EAAA,GAGAM,EAAA,EAAAC,KACQD,EAAAH,EAAAK,OAAoBF,IAC5BJ,EAAAC,EAAAG,GACAG,EAAAP,IACAK,EAAAG,KAAAD,EAAAP,GAAA,IAEAO,EAAAP,GAAA,EAEA,IAAAD,KAAAG,EACAO,OAAAC,UAAAC,eAAAC,KAAAV,EAAAH,KACAc,EAAAd,GAAAG,EAAAH,IAIA,IADAe,KAAAhB,GACAO,EAAAC,QACAD,EAAAU,OAAAV,GAOA,OAHAW,EAAAR,KAAAS,MAAAD,EAAAb,OAGAe,IAEA,SAAAA,IAEA,IADA,IAAAC,EACAf,EAAA,EAAiBA,EAAAY,EAAAV,OAA4BF,IAAA,CAG7C,IAFA,IAAAgB,EAAAJ,EAAAZ,GACAiB,GAAA,EACAC,EAAA,EAAkBA,EAAAF,EAAAd,OAA2BgB,IAAA,CAC7C,IAAAC,EAAAH,EAAAE,GACA,IAAAf,EAAAgB,KAAAF,GAAA,GAEAA,IACAL,EAAAQ,OAAApB,IAAA,GACAe,EAAAM,IAAAC,EAAAN,EAAA,KAGA,OAAAD,EAIA,IAAAQ,KAKApB,GACAqB,EAAA,GAGAZ,KAGA,SAAAS,EAAA1B,GAGA,GAAA4B,EAAA5B,GACA,OAAA4B,EAAA5B,GAAA8B,QAGA,IAAAC,EAAAH,EAAA5B,IACAK,EAAAL,EACAgC,GAAA,EACAF,YAUA,OANAhB,EAAAd,GAAAa,KAAAkB,EAAAD,QAAAC,IAAAD,QAAAJ,GAGAK,EAAAC,GAAA,EAGAD,EAAAD,QAKAJ,EAAAO,EAAAnB,EAGAY,EAAAQ,EAAAN,EAGAF,EAAAS,EAAA,SAAAL,EAAAM,EAAAC,GACAX,EAAAY,EAAAR,EAAAM,IACA1B,OAAA6B,eAAAT,EAAAM,GACAI,cAAA,EACAC,YAAA,EACAC,IAAAL,KAMAX,EAAAiB,EAAA,SAAAb,GACApB,OAAA6B,eAAAT,EAAA,cAAiDc,OAAA,KAIjDlB,EAAAmB,EAAA,SAAAd,GACA,IAAAM,EAAAN,KAAAe,WACA,WAA2B,OAAAf,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAL,EAAAS,EAAAE,EAAA,IAAAA,GACAA,GAIAX,EAAAY,EAAA,SAAAS,EAAAC,GAAsD,OAAAtC,OAAAC,UAAAC,eAAAC,KAAAkC,EAAAC,IAGtDtB,EAAAuB,EAAA,GAEA,IAAAC,EAAAC,OAAA,oBAAAA,OAAA,wBACAC,EAAAF,EAAAzC,KAAA4C,KAAAH,GACAA,EAAAzC,KAAAX,EACAoD,IAAAI,QACA,QAAAjD,EAAA,EAAgBA,EAAA6C,EAAA3C,OAAuBF,IAAAP,EAAAoD,EAAA7C,IACvC,IAAAU,EAAAqC,EAIAnC,EAAAR,MAAA,QAEAU","file":"i18nMessages.min.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t2: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \tvar jsonpArray = window[\"studiofrontendJsonP\"] = window[\"studiofrontendJsonP\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","2","exports","module","l","m","c","d","name","getter","o","defineProperty","configurable","enumerable","get","r","value","n","__esModule","object","property","p","jsonpArray","window","oldJsonpFunction","bind","slice"],"mappings":"aACA,SAAAA,EAAAC,GAOA,IANA,IAKAC,EAAAC,EALAC,EAAAH,EAAA,GACAI,EAAAJ,EAAA,GACAK,EAAAL,EAAA,GAGAM,EAAA,EAAAC,KACQD,EAAAH,EAAAK,OAAoBF,IAC5BJ,EAAAC,EAAAG,GACAG,EAAAP,IACAK,EAAAG,KAAAD,EAAAP,GAAA,IAEAO,EAAAP,GAAA,EAEA,IAAAD,KAAAG,EACAO,OAAAC,UAAAC,eAAAC,KAAAV,EAAAH,KACAc,EAAAd,GAAAG,EAAAH,IAIA,IADAe,KAAAhB,GACAO,EAAAC,QACAD,EAAAU,OAAAV,GAOA,OAHAW,EAAAR,KAAAS,MAAAD,EAAAb,OAGAe,IAEA,SAAAA,IAEA,IADA,IAAAC,EACAf,EAAA,EAAiBA,EAAAY,EAAAV,OAA4BF,IAAA,CAG7C,IAFA,IAAAgB,EAAAJ,EAAAZ,GACAiB,GAAA,EACAC,EAAA,EAAkBA,EAAAF,EAAAd,OAA2BgB,IAAA,CAC7C,IAAAC,EAAAH,EAAAE,GACA,IAAAf,EAAAgB,KAAAF,GAAA,GAEAA,IACAL,EAAAQ,OAAApB,IAAA,GACAe,EAAAM,IAAAC,EAAAN,EAAA,KAGA,OAAAD,EAIA,IAAAQ,KAKApB,GACAqB,EAAA,GAGAZ,KAGA,SAAAS,EAAA1B,GAGA,GAAA4B,EAAA5B,GACA,OAAA4B,EAAA5B,GAAA8B,QAGA,IAAAC,EAAAH,EAAA5B,IACAK,EAAAL,EACAgC,GAAA,EACAF,YAUA,OANAhB,EAAAd,GAAAa,KAAAkB,EAAAD,QAAAC,IAAAD,QAAAJ,GAGAK,EAAAC,GAAA,EAGAD,EAAAD,QAKAJ,EAAAO,EAAAnB,EAGAY,EAAAQ,EAAAN,EAGAF,EAAAS,EAAA,SAAAL,EAAAM,EAAAC,GACAX,EAAAY,EAAAR,EAAAM,IACA1B,OAAA6B,eAAAT,EAAAM,GACAI,cAAA,EACAC,YAAA,EACAC,IAAAL,KAMAX,EAAAiB,EAAA,SAAAb,GACApB,OAAA6B,eAAAT,EAAA,cAAiDc,OAAA,KAIjDlB,EAAAmB,EAAA,SAAAd,GACA,IAAAM,EAAAN,KAAAe,WACA,WAA2B,OAAAf,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAL,EAAAS,EAAAE,EAAA,IAAAA,GACAA,GAIAX,EAAAY,EAAA,SAAAS,EAAAC,GAAsD,OAAAtC,OAAAC,UAAAC,eAAAC,KAAAkC,EAAAC,IAGtDtB,EAAAuB,EAAA,GAEA,IAAAC,EAAAC,OAAA,oBAAAA,OAAA,wBACAC,EAAAF,EAAAzC,KAAA4C,KAAAH,GACAA,EAAAzC,KAAAX,EACAoD,IAAAI,QACA,QAAAjD,EAAA,EAAgBA,EAAA6C,EAAA3C,OAAuBF,IAAAP,EAAAoD,EAAA7C,IACvC,IAAAU,EAAAqC,EAIAnC,EAAAR,MAAA,QAEAU","file":"i18nMessages.min.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t2: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \tvar jsonpArray = window[\"studiofrontendJsonP\"] = window[\"studiofrontendJsonP\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([437,0]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n"],"sourceRoot":""}
|
package/package.json
CHANGED
|
@@ -6,11 +6,11 @@ import ASSET_TYPES from '../../data/constants/assetTypeFilters';
|
|
|
6
6
|
import WrappedMessage from '../../utils/i18n/formattedMessageWrapper';
|
|
7
7
|
import styles from './AssetsFilters.scss';
|
|
8
8
|
import messages from './displayMessages';
|
|
9
|
-
import WrappedAssetsSearch from
|
|
9
|
+
import WrappedAssetsSearch from '../AssetsSearch/container';
|
|
10
10
|
|
|
11
11
|
const AssetsFilters = ({ assetsFilters, updateFilter, courseDetails }) => {
|
|
12
|
-
const checkAll = Object.values(assetsFilters.assetTypes).find(p=>p) == null
|
|
13
|
-
return <div role="group" aria-labelledby="filter-label">
|
|
12
|
+
const checkAll = Object.values(assetsFilters.assetTypes).find(p => p) == null;
|
|
13
|
+
return (<div role="group" aria-labelledby="filter-label">
|
|
14
14
|
<WrappedMessage message={messages.assetsFiltersSectionLabel}>
|
|
15
15
|
{
|
|
16
16
|
displayText =>
|
|
@@ -25,14 +25,14 @@ const AssetsFilters = ({ assetsFilters, updateFilter, courseDetails }) => {
|
|
|
25
25
|
id={type.key}
|
|
26
26
|
name={type.key}
|
|
27
27
|
label={<WrappedMessage message={messages[`assetsFilters${type.displayName}`]} />}
|
|
28
|
-
checked={(type.key
|
|
28
|
+
checked={(type.key === 'All' && checkAll) || assetsFilters.assetTypes[type.key]}
|
|
29
29
|
onChange={(checked) => { updateFilter(type.key, checked, courseDetails); }}
|
|
30
30
|
/>
|
|
31
31
|
))}
|
|
32
32
|
</CheckBoxGroup>
|
|
33
33
|
<WrappedAssetsSearch />
|
|
34
34
|
</div>
|
|
35
|
-
</div>
|
|
35
|
+
</div>);
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
AssetsFilters.propTypes = {
|
|
@@ -9,7 +9,7 @@ import WrappedAssetsTable from '../AssetsTable/container';
|
|
|
9
9
|
import WrappedAssetsFilters from '../AssetsFilters/container';
|
|
10
10
|
import WrappedAssetsImagePreviewFilter from '../AssetsImagePreviewFilter/container';
|
|
11
11
|
import WrappedPagination from '../Pagination/container';
|
|
12
|
-
import WrappedAssetsSearch from '../AssetsSearch/container';
|
|
12
|
+
// import WrappedAssetsSearch from '../AssetsSearch/container';
|
|
13
13
|
import WrappedAssetsStatusAlert from '../AssetsStatusAlert/container';
|
|
14
14
|
import WrappedAssetsResultsCount from '../AssetsResultsCount/container';
|
|
15
15
|
import WrappedAssetsClearFiltersButton from '../AssetsClearFiltersButton/container';
|
|
@@ -73,9 +73,9 @@ export default class AssetsPage extends React.Component {
|
|
|
73
73
|
case pageTypes.NO_RESULTS:
|
|
74
74
|
return this.renderNoResultsPage();
|
|
75
75
|
case pageTypes.SKELETON:
|
|
76
|
-
//please use an empty tag instead of skeleton to avoid display no style frames for user.
|
|
77
|
-
return (<div
|
|
78
|
-
//return this.renderSkeletonPage();
|
|
76
|
+
// please use an empty tag instead of skeleton to avoid display no style frames for user.
|
|
77
|
+
return (<div />);
|
|
78
|
+
// return this.renderSkeletonPage();
|
|
79
79
|
default:
|
|
80
80
|
throw new Error(`Unknown pageType ${type}.`);
|
|
81
81
|
}
|
|
@@ -98,7 +98,7 @@ export default class AssetsPage extends React.Component {
|
|
|
98
98
|
<div className="row">
|
|
99
99
|
<div className="col-md-8">
|
|
100
100
|
<div aria-hidden>
|
|
101
|
-
{
|
|
101
|
+
{/* <WrappedAssetsResultsCount /> */}
|
|
102
102
|
</div>
|
|
103
103
|
</div>
|
|
104
104
|
<div className="col-md-4 text-right">
|
|
@@ -133,7 +133,7 @@ export default class AssetsPage extends React.Component {
|
|
|
133
133
|
</div>
|
|
134
134
|
</div>
|
|
135
135
|
<div className="row">
|
|
136
|
-
|
|
136
|
+
<WrappedAssetsResultsCount />
|
|
137
137
|
</div>
|
|
138
138
|
<div className="row">
|
|
139
139
|
<div className="col-10 offset-2">
|
|
@@ -211,7 +211,7 @@ export default class AssetsPage extends React.Component {
|
|
|
211
211
|
this.state.pageType === pageTypes.NO_RESULTS) && (
|
|
212
212
|
<div className="row">
|
|
213
213
|
<div className="col-12 p-0">
|
|
214
|
-
{
|
|
214
|
+
{/* <WrappedAssetsSearch /> */}
|
|
215
215
|
</div>
|
|
216
216
|
</div>
|
|
217
217
|
)}
|
|
@@ -21,7 +21,7 @@ const AssetsResultsCount = ({ paginationMetadata, filtersMetadata, searchMetadat
|
|
|
21
21
|
|
|
22
22
|
return (
|
|
23
23
|
<div className={styles['result-count-wrapper']}>
|
|
24
|
-
<i className="fal fa-eye"
|
|
24
|
+
<i className="fal fa-eye" />
|
|
25
25
|
<WrappedMessage
|
|
26
26
|
message={message}
|
|
27
27
|
values={{
|
|
@@ -38,9 +38,10 @@
|
|
|
38
38
|
"assetsClearFiltersButtonLabel": "Clear all filters",
|
|
39
39
|
"assetsClearSearchButtonLabel": "Clear search",
|
|
40
40
|
"assetsDropZoneAriaLabel": "Upload assets",
|
|
41
|
-
"assetsDropZoneBrowseLabel": "
|
|
42
|
-
"assetsDropZoneHeader": "Drag
|
|
43
|
-
"assetsDropZoneMaxFileSizeLabel": "
|
|
41
|
+
"assetsDropZoneBrowseLabel": "Select from your computer",
|
|
42
|
+
"assetsDropZoneHeader": "Drag & Drop",
|
|
43
|
+
"assetsDropZoneMaxFileSizeLabel": "Size limit: {maxFileSizeMB} MB",
|
|
44
|
+
"assetsFiltersAll": "All",
|
|
44
45
|
"assetsFiltersAudio": "Audio",
|
|
45
46
|
"assetsFiltersCode": "Code",
|
|
46
47
|
"assetsFiltersDocuments": "Document",
|
|
@@ -69,12 +70,12 @@
|
|
|
69
70
|
"assetsTableFailedLock": "Failed to toggle lock for {assetName}.",
|
|
70
71
|
"assetsTableLoadingStatus": "Loading",
|
|
71
72
|
"assetsTablePreviewLabel": "Image Preview",
|
|
72
|
-
"assetsTableNameLabel": "
|
|
73
|
+
"assetsTableNameLabel": "Files",
|
|
73
74
|
"assetsTableTypeLable": "Type",
|
|
74
75
|
"assetsTableDateLabel": "Date Added",
|
|
75
76
|
"assetsTableCaption": "Assets Table",
|
|
76
77
|
"assetsTableCopyLabel": "Copy URLs",
|
|
77
|
-
"assetsTableDeleteLabel": "
|
|
78
|
+
"assetsTableDeleteLabel": "Action",
|
|
78
79
|
"assetsTableStatusLabel": "Private URL",
|
|
79
80
|
"assetsTableLockLabel": "Lock Asset",
|
|
80
81
|
"assetsTableNoDescription": "Description not available",
|
|
@@ -168,4 +169,4 @@
|
|
|
168
169
|
"paginationPage": "page",
|
|
169
170
|
"paginationCurrentPage": "current page",
|
|
170
171
|
"paginationOf": "of"
|
|
171
|
-
}
|
|
172
|
+
}
|
|
@@ -41,9 +41,10 @@
|
|
|
41
41
|
"assetsDropZoneBrowseLabel": "Browse your computer",
|
|
42
42
|
"assetsDropZoneHeader": "سحب وإسقاط",
|
|
43
43
|
"assetsDropZoneMaxFileSizeLabel": "Maximum file size: {maxFileSizeMB} MB",
|
|
44
|
-
"
|
|
44
|
+
"assetsFiltersAll": "الجميع",
|
|
45
|
+
"assetsFiltersAudio": "صوتي",
|
|
45
46
|
"assetsFiltersCode": "رمز",
|
|
46
|
-
"assetsFiltersDocuments": "
|
|
47
|
+
"assetsFiltersDocuments": "وثيقة",
|
|
47
48
|
"assetsFiltersImages": "صورة",
|
|
48
49
|
"assetsFiltersOther": "آخر",
|
|
49
50
|
"assetsFiltersSectionLabel": "Filter by File Type",
|
|
@@ -54,8 +55,8 @@
|
|
|
54
55
|
"assetsPageNoResultsMessage": "0 files found",
|
|
55
56
|
"assetsPageNoAssetsMessage": "0 files uploaded",
|
|
56
57
|
"assetsPageSkipLink": "Skip to table contents",
|
|
57
|
-
"assetsResultsCountFiltered": "
|
|
58
|
-
"assetsResultsCountTotal": "
|
|
58
|
+
"assetsResultsCountFiltered": "إظهار {start}-{end} من إجمالي {formatted_total} ملف",
|
|
59
|
+
"assetsResultsCountTotal": "إظهار {start}-{end} من إجمالي {formatted_total} ملف",
|
|
59
60
|
"assetsSearchInputLabel": "البحث",
|
|
60
61
|
"assetsSearchSubmitLabel": "Submit search",
|
|
61
62
|
"assetsTableGenericUpdateError": "The action could not be completed. Refresh the page, and then try the action again.",
|
|
@@ -73,7 +74,7 @@
|
|
|
73
74
|
"assetsTableTypeLable": "النوع",
|
|
74
75
|
"assetsTableDateLabel": "تاريخ الإضافة",
|
|
75
76
|
"assetsTableCaption": "Assets Table",
|
|
76
|
-
"assetsTableCopyLabel": "
|
|
77
|
+
"assetsTableCopyLabel": "نسخ عناوين URL",
|
|
77
78
|
"assetsTableDeleteLabel": "Delete Asset",
|
|
78
79
|
"assetsTableStatusLabel": "URL الخاص",
|
|
79
80
|
"assetsTableLockLabel": "Lock Asset",
|
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
import arData from 'react-intl/locale-data/ar';
|
|
2
|
+
import deData from 'react-intl/locale-data/de';
|
|
3
|
+
import elData from 'react-intl/locale-data/el';
|
|
2
4
|
import enData from 'react-intl/locale-data/en';
|
|
3
5
|
import esData from 'react-intl/locale-data/es';
|
|
4
6
|
import frData from 'react-intl/locale-data/fr';
|
|
7
|
+
import itData from 'react-intl/locale-data/it';
|
|
8
|
+
import ptData from 'react-intl/locale-data/pt';
|
|
9
|
+
import trData from 'react-intl/locale-data/tr';
|
|
5
10
|
import zhData from 'react-intl/locale-data/zh';
|
|
6
11
|
|
|
7
12
|
import './ar.json';
|
|
13
|
+
import './de_DE.json';
|
|
14
|
+
import './el.json';
|
|
8
15
|
import './es_419.json';
|
|
9
16
|
import './fr.json';
|
|
17
|
+
import './it_IT.json';
|
|
18
|
+
import './pt_BR.json';
|
|
19
|
+
import './tr_TR.json';
|
|
10
20
|
import './zh_CN.json';
|
|
11
21
|
|
|
12
22
|
// Methodology: These languages (plus the default english) are the only ones that appear on edx.org
|
|
@@ -19,9 +29,14 @@ import './zh_CN.json';
|
|
|
19
29
|
|
|
20
30
|
const localeDataMap = {
|
|
21
31
|
'ar': arData,
|
|
32
|
+
'de-de': deData,
|
|
33
|
+
'el': elData,
|
|
22
34
|
'en': enData,
|
|
23
35
|
'es-419': esData,
|
|
24
36
|
'fr': frData,
|
|
37
|
+
'it-it': itData,
|
|
38
|
+
'pt-br': ptData,
|
|
39
|
+
'tr-tr': trData,
|
|
25
40
|
'zh-cn': zhData,
|
|
26
41
|
};
|
|
27
42
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"assetsFiltersAll": "Alle",
|
|
3
|
+
"assetsFiltersAudio": "Audio",
|
|
4
|
+
"assetsFiltersCode": "Code",
|
|
5
|
+
"assetsFiltersDocuments": "Dokument",
|
|
6
|
+
"assetsFiltersImages": "Bild",
|
|
7
|
+
"assetsFiltersOther": "Andere",
|
|
8
|
+
"assetsTableNameLabel": "Dateien",
|
|
9
|
+
"assetsTableTypeLable": "Typ",
|
|
10
|
+
"assetsTableDateLabel": "Datum hinzugefügt",
|
|
11
|
+
"assetsTableCopyLabel": "URLs kopieren",
|
|
12
|
+
"assetsTableStatusLabel": "Private URL",
|
|
13
|
+
"assetsTableDeleteLabel": "Aktion",
|
|
14
|
+
"assetsResultsCountTotal": "Es werden {start}-{end} von insgesamt {total, plural, one {{formatted_total} Dateien angezeigt} other {{formatted_total} Dateien angezeigt}}.",
|
|
15
|
+
"assetsResultsCountFiltered": "Es werden {start}-{end} von insgesamt {total, plural, one {{formatted_total} Dateien angezeigt} other {{formatted_total} Dateien angezeigt}}."
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"assetsFiltersAll": "Όλα",
|
|
3
|
+
"assetsFiltersAudio": "Ήχος",
|
|
4
|
+
"assetsFiltersCode": "Κωδικός",
|
|
5
|
+
"assetsFiltersDocuments": "Έγγραφο",
|
|
6
|
+
"assetsFiltersImages": "Εικόνα",
|
|
7
|
+
"assetsFiltersOther": "Άλλα",
|
|
8
|
+
"assetsTableNameLabel": "Αρχεία",
|
|
9
|
+
"assetsTableTypeLable": "Τύπος",
|
|
10
|
+
"assetsTableDateLabel": "Ημερομηνία προσθήκης",
|
|
11
|
+
"assetsTableCopyLabel": "Αντιγραφή URLs",
|
|
12
|
+
"assetsTableStatusLabel": "Ιδιωτική διεύθυνση URL",
|
|
13
|
+
"assetsTableDeleteLabel": "Ενέργεια",
|
|
14
|
+
"assetsResultsCountTotal": "Εμφάνιση {start}-{end} από {total, plural, one {{formatted_total} συνολικό αρχείο} other {{formatted_total} συνολικό αρχείο}}.",
|
|
15
|
+
"assetsResultsCountFiltered": "Εμφάνιση {start}-{end} από {total, plural, one {{formatted_total} συνολικό αρχείο} other {{formatted_total} συνολικό αρχείο}}."
|
|
16
|
+
}
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"assetsDropZoneBrowseLabel": "Buscar en tu computadora",
|
|
42
42
|
"assetsDropZoneHeader": "Arrastrar y soltar",
|
|
43
43
|
"assetsDropZoneMaxFileSizeLabel": "Tamaño máximo de archivo: {maxFileSizeMB} MB",
|
|
44
|
+
"assetsFiltersAll": "Todos",
|
|
44
45
|
"assetsFiltersAudio": "Audio",
|
|
45
46
|
"assetsFiltersCode": "Código",
|
|
46
47
|
"assetsFiltersDocuments": "Documento",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"assetsDropZoneBrowseLabel": "Parcourir votre ordinateur",
|
|
42
42
|
"assetsDropZoneHeader": "Glisser Déposer",
|
|
43
43
|
"assetsDropZoneMaxFileSizeLabel": "Taille maximale du fichier : {maxFileSizeMB} Mo",
|
|
44
|
+
"assetsFiltersAll": "Tout",
|
|
44
45
|
"assetsFiltersAudio": "Audio",
|
|
45
46
|
"assetsFiltersCode": "Code",
|
|
46
47
|
"assetsFiltersDocuments": "Document",
|
|
@@ -54,8 +55,8 @@
|
|
|
54
55
|
"assetsPageNoResultsMessage": "0 fichiers trouvés",
|
|
55
56
|
"assetsPageNoAssetsMessage": "0 fichiers chargés",
|
|
56
57
|
"assetsPageSkipLink": "Passer à la table des matières",
|
|
57
|
-
"assetsResultsCountFiltered": "Affichage
|
|
58
|
-
"assetsResultsCountTotal": "Affichage
|
|
58
|
+
"assetsResultsCountFiltered": "Affichage {start}-{end} sur {total, plural, one {{formatted_total} fichier total} sur {{formatted_total} fichier total}}.",
|
|
59
|
+
"assetsResultsCountTotal": "Affichage {start}-{end} sur {total, plural, one {{formatted_total} fichier total} sur {{formatted_total} fichier total}}.",
|
|
59
60
|
"assetsSearchInputLabel": "Recherche",
|
|
60
61
|
"assetsSearchSubmitLabel": "Lancer la recherche",
|
|
61
62
|
"assetsTableGenericUpdateError": "Cette action n'a pas pu être complétée. Rafraîchissez la page, puis réessayez.",
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"assetsFiltersAll": "Tutti",
|
|
3
|
+
"assetsFiltersAudio": "Audio",
|
|
4
|
+
"assetsFiltersCode": "Codice",
|
|
5
|
+
"assetsFiltersDocuments": "Documento",
|
|
6
|
+
"assetsFiltersImages": "Immagine",
|
|
7
|
+
"assetsFiltersOther": "Altri file",
|
|
8
|
+
"assetsTableNameLabel": "File",
|
|
9
|
+
"assetsTableTypeLable": "Tipo",
|
|
10
|
+
"assetsTableDateLabel": "Data aggiunta",
|
|
11
|
+
"assetsTableCopyLabel": "URL di copia",
|
|
12
|
+
"assetsTableStatusLabel": "URL privato",
|
|
13
|
+
"assetsTableDeleteLabel": "Azione",
|
|
14
|
+
"assetsResultsCountTotal": "Mostra {start}-{end} su {total, plural, one {{formatted_total} file totale} other {{formatted_total} file totale}}.",
|
|
15
|
+
"assetsResultsCountFiltered": "Mostra {start}-{end} su {total, plural, one {{formatted_total} file totale} other {{formatted_total} file totale}}."
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"assetsFiltersAll": "Todos",
|
|
3
|
+
"assetsFiltersAudio": "Áudio",
|
|
4
|
+
"assetsFiltersCode": "Código",
|
|
5
|
+
"assetsFiltersDocuments": "Documento",
|
|
6
|
+
"assetsFiltersImages": "Imagem",
|
|
7
|
+
"assetsFiltersOther": "Outros",
|
|
8
|
+
"assetsTableNameLabel": "Ficheiros",
|
|
9
|
+
"assetsTableTypeLable": "Tipo",
|
|
10
|
+
"assetsTableDateLabel": "Data adicionada",
|
|
11
|
+
"assetsTableCopyLabel": "Copiar URLs",
|
|
12
|
+
"assetsTableStatusLabel": "URL Privado",
|
|
13
|
+
"assetsTableDeleteLabel": "Acção",
|
|
14
|
+
"assetsResultsCountTotal": "Mostrando {start}-{end} de {total, plural, one {{formatted_total} ficheiro total} other {{formatted_total} ficheiro total}}.",
|
|
15
|
+
"assetsResultsCountFiltered": "Mostrando {start}-{end} de {total, plural, one {{formatted_total} ficheiro total} other {{formatted_total} ficheiro total}}."
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"assetsFiltersAll": "Tüm",
|
|
3
|
+
"assetsFiltersAudio": "Ses",
|
|
4
|
+
"assetsFiltersCode": "Kod",
|
|
5
|
+
"assetsFiltersDocuments": "Belge",
|
|
6
|
+
"assetsFiltersImages": "Resim",
|
|
7
|
+
"assetsFiltersOther": "Diğer",
|
|
8
|
+
"assetsTableNameLabel": "Dosyalar",
|
|
9
|
+
"assetsTableTypeLable": "Tip",
|
|
10
|
+
"assetsTableDateLabel": "Tarih Eklendi",
|
|
11
|
+
"assetsTableCopyLabel": "URL'leri kopyalama",
|
|
12
|
+
"assetsTableStatusLabel": "Özel URL",
|
|
13
|
+
"assetsTableDeleteLabel": "Eylem",
|
|
14
|
+
"assetsResultsCountTotal": "Toplam {formatted_total} dosyadan {start}-{end}'i gösteriliyor.",
|
|
15
|
+
"assetsResultsCountFiltered": "Toplam {formatted_total} dosyadan {start}-{end}'i gösteriliyor."
|
|
16
|
+
}
|
|
@@ -11,6 +11,8 @@ const loadI18nDomData = () => {
|
|
|
11
11
|
return domDefinedData;
|
|
12
12
|
} catch (err) {
|
|
13
13
|
// fail back to default english values if any errors
|
|
14
|
+
// eslint-disable-next-line no-console
|
|
15
|
+
console.error('loadI18nDomData', err);
|
|
14
16
|
addLocaleData(enLocaleData);
|
|
15
17
|
return {
|
|
16
18
|
locale: 'en',
|