Another comparison between old/new posts. 122 each.
Total Posts: 244 (split chronologically into two equal groups of 122 posts each)
Date Range: February 2020 - September 2024
| import React, { useState, useEffect, useCallback } from 'react'; | |
| function StateCitySelector() { | |
| // State initialization | |
| const [states, setStates] = useState([]); | |
| const [selectedState, setSelectedState] = useState(''); | |
| const [cities, setCities] = useState([]); | |
| const [selectedCity, setSelectedCity] = useState(''); | |
| // Loading state management (mimics Svelte's implicit $effect.pending()) |
| [ | |
| { | |
| "title": "Bisan from Gaza: “This is a reminder to boycott Coca-Cola”", | |
| "link": "/r/Tunisia/comments/1miqf92/bisan_from_gaza_this_is_a_reminder_to_boycott/", | |
| "time": "2025-08-06T00:36:08.659Z" | |
| }, | |
| { | |
| "title": "An inmate in a California prison donated $17.74 to Gaza. He worked 136 hours to save up.", | |
| "link": "/r/Tunisia/comments/1b35gx9/an_inmate_in_a_california_prison_donated_1774_to/", | |
| "time": "2024-02-29T17:09:46.562Z" |
| {* | |
| open themes/[your theme]/templates/checkout/_partials/order-confirmation-table.tpl | |
| look for {foreach from=$product.customizations item="customization"} | |
| replace that block with the following block | |
| *} | |
| {foreach from=$product.customizations item="customization"} | |
| {foreach from=$customization.fields item="field"} | |
| <div class="product-customization-line"> | |
| <div class="label" style="text-align: left"> | |
| {$field.label} |
| export const page_load = async ( | |
| { fetch, route }: RequestEvent, | |
| extra_data: Record<string, any> = {} | |
| ): Promise<any> => { | |
| if (!route.id) { | |
| return error(401, 'Bad request'); | |
| } | |
| const backend_url = getBackendURL(route.id, 'page'); | |
| for (const [key, value] of Object.entries(extra_data)) { | |
| backend_url.searchParams.set(key, value); |
| window.dp_calc.subscribe(function(calc) { | |
| if (!calc.input_fields) { | |
| return | |
| } | |
| if(calc.input_fields.max_largeur && calc.input_fields.max_hauteur){ | |
| const max_largeur = calc.input_fields.max_largeur.value; | |
| const max_hauteur = calc.input_fields.max_hauteur.value; | |
| window.updateField('largeur', { |
| document.addEventListener('DOMContentLoaded', function () { | |
| var designer = document.getElementById('dsn-product-footer') | |
| if (designer) { | |
| var section = designer.closest('section') | |
| section.insertAdjacentElement('afterend', designer) | |
| } | |
| }) |
| if (result.resultCode == Activity.RESULT_OK && result.data != null) { | |
| val uriList = mutableListOf<Uri>() | |
| if (result.data?.clipData != null) { | |
| for (i in 0 until result.data?.clipData?.itemCount!!) { | |
| uriList.add(result.data?.clipData?.getItemAt(i)?.uri!!) | |
| } | |
| } else { | |
| uriList.add(result.data?.data!!) | |
| } |
| <?php | |
| $unit_price = Product::getPriceStatic( | |
| $id_product, | |
| false, | |
| $id_product_attribute, | |
| 6, | |
| null, | |
| false, | |
| true, |