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
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" } |