@takagaki/cortex-decisions-viewer 0.4.16 → 0.4.18
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/render.js +8 -3
- package/package.json +1 -1
package/dist/render.js
CHANGED
|
@@ -719,12 +719,17 @@ const CLIENT_JS = `
|
|
|
719
719
|
fileListEl.appendChild(el("span", { class: "file-chip" }, [el("span", { text: f.name }), x]));
|
|
720
720
|
});
|
|
721
721
|
}
|
|
722
|
+
function isAllowed(f) {
|
|
723
|
+
// 資料はフロントで弾かない(どんなファイルも受け付ける)。対応可否の最終判断はバックエンドに任せる。
|
|
724
|
+
if (!isT) return true;
|
|
725
|
+
// 文字起こしは議事録化に不適なファイルを避けるため拡張子で判定する。
|
|
726
|
+
var ext = extOf(f.name);
|
|
727
|
+
return !!(ext && allowedExt[ext]);
|
|
728
|
+
}
|
|
722
729
|
function addFiles(list) {
|
|
723
730
|
var rejected = [];
|
|
724
731
|
Array.prototype.slice.call(list || []).forEach(function (f) {
|
|
725
|
-
|
|
726
|
-
if (!ext || !allowedExt[ext]) { rejected.push(f.name); return; }
|
|
727
|
-
selectedFiles.push(f);
|
|
732
|
+
if (isAllowed(f)) selectedFiles.push(f); else rejected.push(f.name || "(名前なし)");
|
|
728
733
|
});
|
|
729
734
|
renderFiles();
|
|
730
735
|
update();
|
package/package.json
CHANGED