added 260907 version of worker toolkit

This commit is contained in:
2026-09-08 20:30:51 -04:00
parent cbd3f0f8ca
commit 97aca37663
1283 changed files with 142951 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import Ember from 'ember';
export function truncateText(params, hash) {
const text = params[0];
const len = hash.limit;
if (typeof text !== 'undefined') {
if (len !== null && text.length > len) {
return `${text.substr(0, len)}...`;
} else {
return text;
}
}
return '';
}
export default Ember.Helper.helper(truncateText);