Skip to content

Instantly share code, notes, and snippets.

1:43 PM
ella @here Jill pointed out that there is now an “unpublish” button in the admin side. is this in relation to the #505? that looks like it still in the backlog tho (edited)
1:43 PM
they urgently want to know the purpose of the unpublish and how it came to be
1:43 PM
seb github.com/bean-la/culinistas-react/issues/505
1:45 PM
ella @seb that ticket is still in backlog and doesnt say anything about an unblish button is it related? (edited)
1:45 PM
seb linking the issue
async function shopfifyImagesToAssetList(cfEnv, shopifyProduct) {
return await Promise.all(
shopifyProduct.images.map(async shopImg => {
try {
let asset = await cfEnv.getAsset(shopImg.id.toString())
asset.fields.description['en-US'] = shopImg.alt
return await asset.update()
} catch {
const imageData = {
fields: {
Support
Customer support
👍👎
You — Update your info
why is christian a beginner if johnny cash is a pro?
Chat started
You — Update your info
since christian made more than 100k
Support joined the chat
Support
@sebbean
sebbean / fluid inbox unread badge
Created July 8, 2015 23:18
Fluid app Inbox SSB userscript for unread email badge
updateBadge();
setTimers();
function setTimers() {
setTimeout(checkUnread, 3000);
setInterval(checkUnread, 3000);
}
function checkUnread() {
// updateBadge(document.getElementsByClassName('top-level-item').length);
<tr> <td> <table cellpadding="0" cellspacing="0" border="0" width="444" align="center" style="border-bottom: 1px solid #dedfdf"> <tr><td height="17"></td></tr> <tr valign="top"> <td width="83"> <!-- image container --> <img src="{{PRODUCT-IMAGE-URL}}" width="66" height="77" /> </td> <td width="221"> <!-- product description --> <span style="font-size: 12px;font-weight: normal;line-height: 100%;display: block;line-height: 200%;"></span> <p style="margin-bottom: 4px;"> {{PRODUCT_NAME}} </p> <p style="font-size: 12px;margin: 0;"> Size: {{SIZE}} | Color: {{COLOR}} | Qty: {{QUANTITY}} </p> </td> <td width="140" style="text-align: right"> <!-- price --> {{PRICE}} </td> </tr> <tr><td height="25" colspan="3"></td></tr> </table> </td> </tr>
namespace :hub do
namespace :push do
task :products, [:limit] => [:environment] do |t, args|
limit = args[:limit]
Spree::Product.all.limit(limit).each do |p|
# variants = p.variants_including_master
ap HubPushWorker.perform_async({class_name:'Spree::Product',id:p.id})
end
end
class HubPushWorker
include Sidekiq::Worker
sidekiq_options unique: true#, unique_unlock_order: :never
def perform(params)
klass = params.delete('class_name').constantize
objs = klass.where(params)
push_spree_obj(objs)
end