body {
background-color: #23262e !important;
color: #aeb8c7 !important;
}
nav.bg-light{
background-color: #23262e !important;
}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require("fs"); | |
const path = require("path"); | |
/** | |
* Function to keep only specified keys in an object. | |
* @param {Object} obj - The object to filter. | |
* @param {Array<string>} keysToKeep - The keys to keep in the object. | |
* @returns {Object} - A new object with only the specified keys. | |
*/ | |
function keepObjectKeys(obj, keysToKeep) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Add SRCSET data to images | |
Description: Adds srcset information to WooCommerce product images in the REST API. | |
Version: 1.0 | |
Author: Dago | |
*/ | |
add_filter('woocommerce_rest_prepare_product_object', 'add_srcset_to_product_images', 10, 3); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
createClient, | |
ApiKeyStrategy, | |
OAuthStrategy, | |
media, | |
Tokens, | |
OauthData, | |
LoginState | |
// Tokens // for the future | |
} from "@wix/api-client"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createClient, OAuthStrategy } from "@wix/api-client"; | |
import { cart } from "@wix/ecom"; | |
import { CreateCartOptions } from "@wix/ecom/build/cjs/src/ecom-v1-cart-cart.universal"; | |
const WIX_STORES_APP_ID = "1380b703-ce81-ff05-f115-39571d94dfcd"; | |
const wixClient = createClient({ | |
modules: { cart }, | |
auth: OAuthStrategy({ clientId: "ID" }) | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
Outlet, | |
isRouteErrorResponse, | |
useLoaderData, | |
useOutletContext, | |
useRouteError | |
} from "@remix-run/react"; | |
import { createClient, LoginState, OAuthStrategy, Tokens, WixClient } from "@wix/api-client"; | |
import type { LoaderArgs } from "@remix-run/server-runtime"; | |
import { json } from "@remix-run/cloudflare"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { defer, json, redirect } from "@remix-run/cloudflare"; | |
import type { ActionArgs, LinksFunction, LoaderArgs, V2_MetaFunction } from "@remix-run/cloudflare"; | |
import { thirty_days_from_now } from "~/lib/lib.server"; | |
export async function loader({ params, request, context }: LoaderArgs) { | |
const { session_storage, wix_cart_api } = context; | |
const session = await session_storage.getSession(request.headers.get("Cookie")); | |
const stored_cat_id = session.get("cart_id") as string; | |
console.log(`\r\t -> cart_id: `, stored_cat_id); | |
if (typeof stored_cat_id != "string") { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
createClient, | |
ApiKeyStrategy, | |
OAuthStrategy, | |
media, | |
Tokens, | |
OauthData, | |
LoginState | |
// Tokens // for the future | |
} from "@wix/api-client"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function create_wix_member_api({ client_id, env }: { client_id: string; env: Env }) { | |
var oauth = OAuthStrategy({ | |
clientId: client_id | |
}); | |
var client = createClient({ | |
modules: {}, | |
auth: oauth | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Required parameters: | |
# @raycast.schemaVersion 1 | |
# @raycast.title Sam tell me | |
# @raycast.mode silent | |
# Optional parameters: | |
# @raycast.icon 🗣 | |
# @raycast.argument1 { "type": "text", "placeholder": "Expression" } |