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,39 @@
import Ember from 'ember';
const {
get,
inject: {
service,
},
TextArea
} = Ember;
export default TextArea.extend({
ajax: service(),
placeholder: 'Leave a comment...',
classNames: ['atwho-inputor'],
didInsertElement() {
this._super(...arguments);
const ajax = get(this, 'ajax');
const postId = get(this, 'postId');
ajax.request('/profiles', { data: { post_id: postId } }).then(({ profiles }) => {
let userList = profiles.map(function(item) {
return { screen_name: item.screen_name, slug_name: item.slug_name };
});
if(!get(this, 'isDestroyed')) {
this.$().atwho({
at: "@",
insertTpl: "@${slug_name}",
displayTpl: '<li>${screen_name}</li>',
searchKey: "screen_name",
data: userList,
});
}
});
}
});