-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
3,760 additions
and
410 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@frak-labs/nexus-sdk": patch | ||
--- | ||
|
||
Add a `modalBuilder` to ease modal creation |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,13 @@ | ||
import { loginModalStep } from "./config"; | ||
|
||
export function modalShare() { | ||
const finalAction = { | ||
key: "sharing", | ||
options: { | ||
popupTitle: "Share this article with your friends", | ||
text: "Discover this awesome article", | ||
link: typeof window !== "undefined" ? window.location.href : "", | ||
}, | ||
} as const; | ||
if (!window.FrakSetup.frakClient) { | ||
if (!window.FrakSetup.modalBuilder) { | ||
console.error("Frak client not initialized"); | ||
return; | ||
} | ||
window.NexusSDK.displayModal(window.FrakSetup.frakClient, { | ||
metadata: { | ||
lang: "fr", | ||
isDismissible: true, | ||
}, | ||
steps: { | ||
login: loginModalStep, | ||
openSession: {}, | ||
final: { | ||
action: finalAction, | ||
}, | ||
}, | ||
}); | ||
window.FrakSetup.modalBuilder | ||
.sharing({ | ||
popupTitle: "Share this article with your friends", | ||
text: "Discover this awesome article", | ||
link: typeof window !== "undefined" ? window.location.href : "", | ||
}) | ||
.display(); | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
-- Drop items that would conflict with the created index | ||
DELETE FROM "product_oracle_purchase_item" | ||
WHERE id NOT IN ( | ||
SELECT MIN(id) | ||
FROM "product_oracle_purchase_item" | ||
GROUP BY "external_id", "purchase_id" | ||
); | ||
|
||
-- Create the index | ||
CREATE UNIQUE INDEX IF NOT EXISTS "unique_external_purchase_item_id" ON "product_oracle_purchase_item" USING btree ("external_id","purchase_id"); |
8 changes: 8 additions & 0 deletions
8
packages/backend-elysia/drizzle/dev/0006_moaning_mastermind.sql
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
DO $$ BEGIN | ||
CREATE TYPE "public"."product_oracle_plateform" AS ENUM('shopify', 'woocommerce', 'custom'); | ||
EXCEPTION | ||
WHEN duplicate_object THEN null; | ||
END $$; | ||
--> statement-breakpoint | ||
ALTER TABLE "product_oracle" ADD COLUMN "plateform" "product_oracle_plateform" DEFAULT 'shopify' NOT NULL;--> statement-breakpoint | ||
ALTER TABLE "product_oracle_purchase_item" ADD COLUMN "image_url" varchar; |
1 change: 1 addition & 0 deletions
1
packages/backend-elysia/drizzle/dev/0007_flashy_shinko_yamashiro.sql
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ALTER TABLE "product_oracle" RENAME COLUMN "plateform" TO "platform"; |
Oops, something went wrong.